summaryrefslogtreecommitdiffstats
path: root/yum_lighting.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-06-13 03:12:56 -0700
committeryum <yum.food.vr@gmail.com>2025-06-13 03:12:56 -0700
commitfb0bf6553eecb64f99c98a9f628d5fbd84be2e9a (patch)
treec3d104181265e6029af4ef24a4274e9d7837aebd /yum_lighting.cginc
parent9e5f80c045a648348bdb3b36b8181b928dfbb0ba (diff)
More c30 work
Add ability to select hidden faces, and begin work on smart UV projection algo
Diffstat (limited to 'yum_lighting.cginc')
-rw-r--r--yum_lighting.cginc2
1 files changed, 1 insertions, 1 deletions
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