Cleanup
This commit is contained in:
+3
-3
@@ -240,7 +240,7 @@ instanceLightMap ::
|
||||
IO ()
|
||||
instanceLightMap cfig nWalls nSils nCaps toPos tanormals lightPoints pdata = do
|
||||
let lcapShad = _shadowCapShader pdata
|
||||
(xsize, ysize) = getWindowSize cfig
|
||||
(xsize, ysize) = getWindowSize _graphics_world_resolution cfig
|
||||
withArray (lightsToArray lightPoints) $ \ptr ->
|
||||
glNamedBufferSubData (pdata ^. lightsUBO) 0 620 ptr
|
||||
forM_ [0 .. 19] $ \i ->
|
||||
@@ -257,8 +257,8 @@ instanceLightMap cfig nWalls nSils nCaps toPos tanormals lightPoints pdata = do
|
||||
0
|
||||
0
|
||||
i
|
||||
(fromIntegral xsize)
|
||||
(fromIntegral ysize)
|
||||
xsize
|
||||
ysize
|
||||
1
|
||||
glBindFramebuffer GL_FRAMEBUFFER $ pdata ^. fboShadow . _1 . unFBO
|
||||
glDepthMask GL_FALSE
|
||||
|
||||
Reference in New Issue
Block a user