diff options
| author | yum <yum.food.vr@gmail.com> | 2024-09-28 15:55:06 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-09-28 15:55:06 -0700 |
| commit | 2e6a2df16dc5fa9758de06240e44b781b05e6f5a (patch) | |
| tree | 0236d7d36e5278cacf6bfe56dec2973c83709d0a /interpolators.cginc | |
| parent | db11ed0901600e316ac54c2e2d8fdeec46c8af68 (diff) | |
World lighting bugfixes
Remove explicit world interpolators flag, fix specular reflections.
Diffstat (limited to 'interpolators.cginc')
| -rw-r--r-- | interpolators.cginc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/interpolators.cginc b/interpolators.cginc index 09fd14c..ce0058a 100644 --- a/interpolators.cginc +++ b/interpolators.cginc @@ -12,15 +12,11 @@ struct appdata float2 uv0 : TEXCOORD0; float2 uv1 : TEXCOORD1; float2 uv2 : TEXCOORD2; -#if defined(_WORLD_INTERPOLATORS) - UNITY_LIGHTING_COORDS(3, 4) -#else float2 uv3 : TEXCOORD3; float2 uv4 : TEXCOORD4; float2 uv5 : TEXCOORD5; float2 uv6 : TEXCOORD6; float2 uv7 : TEXCOORD7; -#endif UNITY_VERTEX_INPUT_INSTANCE_ID }; @@ -31,7 +27,7 @@ struct v2f float2 uv0 : TEXCOORD0; float2 uv1 : TEXCOORD1; float2 uv2 : TEXCOORD2; -#if defined(_WORLD_INTERPOLATORS) +#if defined(LIGHTMAP_ON) UNITY_LIGHTING_COORDS(3, 4) #else float2 uv3 : TEXCOORD3; @@ -58,15 +54,11 @@ struct appdata float2 uv0 : TEXCOORD0; float2 uv1 : TEXCOORD1; float2 uv2 : TEXCOORD2; -#if defined(_WORLD_INTERPOLATORS) - UNITY_LIGHTING_COORDS(3, 4) -#else float2 uv3 : TEXCOORD3; float2 uv4 : TEXCOORD4; float2 uv5 : TEXCOORD5; float2 uv6 : TEXCOORD6; float2 uv7 : TEXCOORD7; -#endif float3 normal : NORMAL; float4 tangent : TANGENT; @@ -79,7 +71,7 @@ struct v2f float2 uv0 : TEXCOORD0; float2 uv1 : TEXCOORD1; float2 uv2 : TEXCOORD2; -#if defined(_WORLD_INTERPOLATORS) +#if defined(LIGHTMAP_ON) UNITY_LIGHTING_COORDS(3, 4) #else float2 uv3 : TEXCOORD3; |
