ADD: CSM with base shadow map 2
This commit is contained in:
1 parent
fde6a18f80
commit
4c41c93d44
5 files changed
+55
-57
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user