ADD: CSM with base shadow map 2

This commit is contained in:
2025-10-22 00:53:36 +09:00
parent fde6a18f80
commit 4c41c93d44
5 changed files with 55 additions and 57 deletions

View File

@@ -88,7 +88,6 @@ float calcShadowVisibility(vec3 worldPos, vec3 N, vec3 L)
float w = 1.0 - smoothstep(0.0, 0.65, pr);
float mapD = texture(shadowTex[ci], suv + off).r;
// Reversed-Z friendly compare: visible when current <= map depth
float vis = step(mapD, current + bias);
visible += vis * w;