From fb0bf6553eecb64f99c98a9f628d5fbd84be2e9a Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 13 Jun 2025 03:12:56 -0700 Subject: More c30 work Add ability to select hidden faces, and begin work on smart UV projection algo --- yum_lighting.cginc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yum_lighting.cginc') diff --git a/yum_lighting.cginc b/yum_lighting.cginc index dab631a..dabc148 100644 --- a/yum_lighting.cginc +++ b/yum_lighting.cginc @@ -222,7 +222,7 @@ float4 getIndirectDiffuse(v2f i, float4 vertexLightColor, float4 diffuse = vertexLightColor; #if defined(FORWARD_BASE_PASS) #if defined(LIGHTMAP_ON) - diffuse.xyz = DecodeLightmap(UNITY_SAMPLE_TEX2D(unity_Lightmap, i.uv2)); + diffuse.xyz = DecodeLightmap(UNITY_SAMPLE_TEX2D(unity_Lightmap, i.uv01.zw)); #else diffuse.xyz += max(0, yumSH9(float4(i.normal, 0), i.worldPos, light)); #endif -- cgit v1.2.3