Skip to content

Commit

Permalink
Fix shadow mapping when PCF is disabled (#11888)
Browse files Browse the repository at this point in the history
  • Loading branch information
x2048 committed Jan 2, 2022
1 parent e030d9c commit 8355246
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/shaders/nodes_shader/opengl_fragment.glsl
Expand Up @@ -185,6 +185,7 @@ float getPenumbraRadius(sampler2D shadowsampler, vec2 smTexCoord, float realDist
float baseLength = getBaseLength(smTexCoord);
float perspectiveFactor;

if (PCFBOUND == 0.0) return 0.0;
// Return fast if sharp shadows are requested
if (SOFTSHADOWRADIUS <= 1.0) {
perspectiveFactor = getDeltaPerspectiveFactor(baseLength);
Expand Down

0 comments on commit 8355246

Please sign in to comment.