disabled capsule reflection for planar reflection material

This commit is contained in:
Turánszki János
2025-07-05 07:54:32 +02:00
parent f0bff93c91
commit 16f4b80c57
+2
View File
@@ -612,10 +612,12 @@ inline void TiledLighting(inout Surface surface, inout Lighting lighting, uint f
capsuleshadow = saturate(capsuleshadow);
surface.occlusion *= capsuleshadow;
#ifndef PLANARREFLECTION
capsulereflection = sqr(capsulereflection);
capsulereflection = lerp(capsulereflection, 1, GetCapsuleShadowFade());
lighting.direct.specular *= capsulereflection;
lighting.indirect.specular *= capsulereflection;
#endif // PLANARREFLECTION
}
}