summaryrefslogtreecommitdiffstats
path: root/lighting.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-11-11 18:38:53 -0800
committeryum <yum.food.vr@gmail.com>2025-11-11 18:38:53 -0800
commit3e9d00aaf3bdaa23ee5f762c85273de70c993fe5 (patch)
tree9be3e82061d09891eace78e6c03e862e7538f576 /lighting.cginc
parentc64b900801c963e5be3abb6f5c0ed3ff849e73d5 (diff)
minor bugfixes
Diffstat (limited to 'lighting.cginc')
-rw-r--r--lighting.cginc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lighting.cginc b/lighting.cginc
index 5f66b80..d6ca4de 100644
--- a/lighting.cginc
+++ b/lighting.cginc
@@ -185,7 +185,7 @@ void GetLighting(v2f i, Pbr pbr, out LightData data) {
data.direct.double_LoV = saturate(2.0f * direct_LoV * direct_LoV - 1.0f);
float4 lightColorIntensity = getDirectLightColorIntensity();
- data.direct.color = lightColorIntensity.rgb * lightColorIntensity.w;
+ data.direct.color = lightColorIntensity.rgb * lightColorIntensity.w * getShadowAttenuation(i);
// Indirect lighting
float3 reflect_dir = -reflect(data.common.V, pbr.normal);