mirror of
https://github.com/Haui1112/minetest.git
synced 2024-10-23 01:21:52 +02:00
Fix shadow mapping when PCF is disabled (#11888)
This commit is contained in:
parent
e030d9cff0
commit
835524654e
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue