summaryrefslogtreecommitdiffstats
path: root/yum_lighting.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-06-13 18:21:34 -0700
committeryum <yum.food.vr@gmail.com>2025-06-13 18:21:34 -0700
commit8ba49869f909036002b8f2cb9d07cf2ed6b15c6c (patch)
treeb796088fa69b53164cd883e3d540e722d227b8e9 /yum_lighting.cginc
parenta9dbbfa1488a9ec3bd772fc9847888502f49a65e (diff)
Add lightmap occlusion term to specular AO
Diffstat (limited to 'yum_lighting.cginc')
-rw-r--r--yum_lighting.cginc7
1 files changed, 2 insertions, 5 deletions
diff --git a/yum_lighting.cginc b/yum_lighting.cginc
index d1cf779..a8e5d4b 100644
--- a/yum_lighting.cginc
+++ b/yum_lighting.cginc
@@ -253,9 +253,6 @@ YumLighting GetYumLighting(v2f i, YumPbr pbr) {
light.attenuation = getShadowAttenuation(i);
#endif
- // Use filamented's comprehensive irradiance calculation
- float occlusion;
- Light derivedLight;
float3 tangentNormal = mul(pbr.normal, transpose(float3x3(i.tangent, i.binormal, i.normal)));
float3x3 tangentToWorld = float3x3(i.tangent, i.binormal, i.normal);
@@ -274,8 +271,8 @@ YumLighting GetYumLighting(v2f i, YumPbr pbr) {
// You'll need to add this to your v2f if using Bakery vertex directional
i.bakeryVertexDir,
#endif
- occlusion, // out occlusion
- derivedLight // out Light
+ light.occlusion, // out occlusion
+ light.derivedLight // out Light
);
#if defined(_MIN_BRIGHTNESS)