summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/shadowDynamicPoint.vs
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-12-18 14:23:18 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-12-18 14:23:18 +0000
commit348a4cdc6ba1bbf43e1fd7c6217fd2b62a1d605c (patch)
treeb91093ac1ff3d6d1dedc768efcbe0555d8711cd8 /gfx/gl/shaders/shadowDynamicPoint.vs
parentHelper for midpoint of pair (diff)
downloadilt-348a4cdc6ba1bbf43e1fd7c6217fd2b62a1d605c.tar.bz2
ilt-348a4cdc6ba1bbf43e1fd7c6217fd2b62a1d605c.tar.xz
ilt-348a4cdc6ba1bbf43e1fd7c6217fd2b62a1d605c.zip
First cut of view scope shadow mapper view
Diffstat (limited to 'gfx/gl/shaders/shadowDynamicPoint.vs')
-rw-r--r--gfx/gl/shaders/shadowDynamicPoint.vs1
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);
}