Skip to content

Commit 8355246

Browse files
authoredJan 2, 2022
Fix shadow mapping when PCF is disabled (#11888)
1 parent e030d9c commit 8355246

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

Diff for: ‎client/shaders/nodes_shader/opengl_fragment.glsl

+1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ float getPenumbraRadius(sampler2D shadowsampler, vec2 smTexCoord, float realDist
185185
float baseLength = getBaseLength(smTexCoord);
186186
float perspectiveFactor;
187187

188+
if (PCFBOUND == 0.0) return 0.0;
188189
// Return fast if sharp shadows are requested
189190
if (SOFTSHADOWRADIUS <= 1.0) {
190191
perspectiveFactor = getDeltaPerspectiveFactor(baseLength);

0 commit comments

Comments
 (0)