From 7f0ddc5463608f30bcd854eb4fd8d157f1b99052 Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 25 Sep 2024 18:00:24 -0700 Subject: 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 --- interpolators.cginc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'interpolators.cginc') 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; -- cgit v1.2.3