From 348a4cdc6ba1bbf43e1fd7c6217fd2b62a1d605c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 18 Dec 2022 14:23:18 +0000 Subject: First cut of view scope shadow mapper view --- gfx/gl/shaders/shadowDynamicPoint.vs | 1 + 1 file changed, 1 insertion(+) (limited to 'gfx/gl/shaders/shadowDynamicPoint.vs') 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); } -- cgit v1.2.3