diff options
| author | yum <yum.food.vr@gmail.com> | 2026-03-16 19:35:38 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-03-16 19:35:38 -0700 |
| commit | a0c233000c210273ca93c0444413fd45b1e6c928 (patch) | |
| tree | 6928b8ded04f04dc670f049ccbdd673360c1b516 /lighting.cginc | |
| parent | 11e9d97c5ac694773149d6059f90c670b9c00262 (diff) | |
Begin work on cloth (again)
Diffstat (limited to 'lighting.cginc')
| -rwxr-xr-x | lighting.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lighting.cginc b/lighting.cginc index c8c3f64..c735fdb 100755 --- a/lighting.cginc +++ b/lighting.cginc @@ -229,7 +229,7 @@ void GetLighting(v2f i, Pbr pbr, out LightData data) { data.direct.double_LoV = max(1e-4, 2.0f * direct_LoV * direct_LoV - 1.0f); float4 lightColorIntensity = getDirectLightColorIntensity(); - data.direct.color = lightColorIntensity.rgb * getShadowAttenuation(i); + data.direct.color = lightColorIntensity.rgb * (lightColorIntensity.w * getShadowAttenuation(i)); // Indirect lighting float3 reflect_dir = reflect(-data.common.V, pbr.normal); |
