diff options
Diffstat (limited to 'gfx/gl/shaders/shadowDynamicPoint.vs')
-rw-r--r-- | gfx/gl/shaders/shadowDynamicPoint.vs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx/gl/shaders/shadowDynamicPoint.vs b/gfx/gl/shaders/shadowDynamicPoint.vs index 91d8bf7..6ea352f 100644 --- a/gfx/gl/shaders/shadowDynamicPoint.vs +++ b/gfx/gl/shaders/shadowDynamicPoint.vs @@ -9,4 +9,5 @@ void main() { gl_Position = viewProjection * model * vec4(position, 1.0); + gl_Position.z = max(gl_Position.z, -1); } |