diff options
| author | yum <yum.food.vr@gmail.com> | 2025-11-11 18:38:53 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-11-11 18:38:53 -0800 |
| commit | 3e9d00aaf3bdaa23ee5f762c85273de70c993fe5 (patch) | |
| tree | 9be3e82061d09891eace78e6c03e862e7538f576 /lighting.cginc | |
| parent | c64b900801c963e5be3abb6f5c0ed3ff849e73d5 (diff) | |
minor bugfixes
Diffstat (limited to 'lighting.cginc')
| -rw-r--r-- | lighting.cginc | 2 |
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); |
