diff options
| author | yum <yum.food.vr@gmail.com> | 2024-09-25 18:00:24 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-09-25 18:00:24 -0700 |
| commit | 7f0ddc5463608f30bcd854eb4fd8d157f1b99052 (patch) | |
| tree | ec373d572c7592a3a6f316ee85fd5707260eddc8 /interpolators.cginc | |
| parent | 2b9e36fde45c5f488539f390288e0a2731d11fcf (diff) | |
Bugfixes & small tweaks
* UNITY_LIGHTING_COORDS no longer clashes with uv2
* Direct light is only sampled once in world mode
* Overlay mask always uses most detailed mip map
Diffstat (limited to 'interpolators.cginc')
| -rw-r--r-- | interpolators.cginc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/interpolators.cginc b/interpolators.cginc index bbe4742..09fd14c 100644 --- a/interpolators.cginc +++ b/interpolators.cginc @@ -32,7 +32,7 @@ struct v2f float2 uv1 : TEXCOORD1; float2 uv2 : TEXCOORD2; #if defined(_WORLD_INTERPOLATORS) - UNITY_LIGHTING_COORDS(2, 3) + UNITY_LIGHTING_COORDS(3, 4) #else float2 uv3 : TEXCOORD3; float2 uv4 : TEXCOORD4; @@ -59,7 +59,7 @@ struct appdata float2 uv1 : TEXCOORD1; float2 uv2 : TEXCOORD2; #if defined(_WORLD_INTERPOLATORS) - UNITY_LIGHTING_COORDS(2, 3) + UNITY_LIGHTING_COORDS(3, 4) #else float2 uv3 : TEXCOORD3; float2 uv4 : TEXCOORD4; @@ -80,7 +80,7 @@ struct v2f float2 uv1 : TEXCOORD1; float2 uv2 : TEXCOORD2; #if defined(_WORLD_INTERPOLATORS) - UNITY_LIGHTING_COORDS(2, 3) + UNITY_LIGHTING_COORDS(3, 4) #else float2 uv3 : TEXCOORD3; float2 uv4 : TEXCOORD4; |
