Move pair to V2

This commit is contained in:
2025-11-14 02:13:03 +00:00
parent 292a1c3f42
commit bfd7aa619e
6 changed files with 27 additions and 27 deletions
+2
View File
@@ -162,6 +162,8 @@ renderShadows cam cfig shadrendertype nWalls nSils nCaps positiontexture normalt
-- note that the stencil shadows rely on the depth buffer
let d = rad * cam ^. camZoom
V2 x' y' = worldPosToResOffset cfig cam (V2 x y)
-- this is probably too strict, it will be possible for high up lights
-- to have some of their light cast high up cut off
glScissor (round (x'-d)) (round (y'-d)) (round $ 2 *d) (round $ 2* d)
glDepthFunc GL_LESS
glColorMask GL_FALSE GL_FALSE GL_FALSE GL_FALSE