diff options
Diffstat (limited to 'gfx/gl/shaders/shadowFixedPoint.vs')
-rw-r--r-- | gfx/gl/shaders/shadowFixedPoint.vs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx/gl/shaders/shadowFixedPoint.vs b/gfx/gl/shaders/shadowFixedPoint.vs index 75c04c4..246890c 100644 --- a/gfx/gl/shaders/shadowFixedPoint.vs +++ b/gfx/gl/shaders/shadowFixedPoint.vs @@ -8,4 +8,5 @@ void main() { gl_Position = viewProjection * vec4(position, 1.0); + gl_Position.z = max(gl_Position.z, -1); } |