升级obi

This commit is contained in:
2026-01-22 22:08:21 +08:00
parent 120b8cda26
commit 20f14322bc
1067 changed files with 149894 additions and 29583 deletions

View File

@@ -1,19 +0,0 @@
#ifndef OBILIGHTINGBUILTIN_INCLUDED
#define OBILIGHTINGBUILTIN_INCLUDED
#include "UnityCG.cginc"
#include "UnityStandardUtils.cginc"
#include "AutoLight.cginc"
half3 SampleSphereAmbient(float3 eyeNormal, float3 eyePos)
{
#if UNITY_SHOULD_SAMPLE_SH
half3 worldNormal = mul(transpose((float3x3)UNITY_MATRIX_V),eyeNormal);
half3 worldPos = mul(_Camera_to_World,half4(eyePos,1.0));
return ShadeSHPerPixel(half4(worldNormal, 1.0),half3(0,0,0),worldPos);
#else
return UNITY_LIGHTMODEL_AMBIENT;
#endif
}
#endif