diff --git a/code/renderergl2/glsl/shadowmask_fp.glsl b/code/renderergl2/glsl/shadowmask_fp.glsl index 56d480fb6e..1a562cbfa0 100644 --- a/code/renderergl2/glsl/shadowmask_fp.glsl +++ b/code/renderergl2/glsl/shadowmask_fp.glsl @@ -103,7 +103,7 @@ void main() vec4 shadowpos = u_ShadowMvp * biasPos; - if ( depth >= 1.0 - DEPTH_MAX_ERROR ) + if ( depth >= 0.999 ) { result = 1.0; }