diff --git a/code/renderergl2/glsl/shadowmask_fp.glsl b/code/renderergl2/glsl/shadowmask_fp.glsl index 8a5597a9..053907cf 100644 --- a/code/renderergl2/glsl/shadowmask_fp.glsl +++ b/code/renderergl2/glsl/shadowmask_fp.glsl @@ -82,7 +82,7 @@ float PCF(const sampler2DShadow shadowmap, const vec2 st, const float dist) mult *= 0.33333; #endif #else - mult = shadow2D(shadowmap, vec3(st, dist)); + mult = shadow2D(shadowmap, vec3(st, dist)).r; #endif return mult;