Add scissor test when creating lightmap
This commit is contained in:
@@ -161,6 +161,7 @@ doDrawing' win pdata u = do
|
||||
glEnable GL_BLEND
|
||||
--draw lightmap into its own buffer
|
||||
createLightMap
|
||||
(w ^. wCam)
|
||||
cfig
|
||||
(fromIntegral trueNWalls)
|
||||
nSilIndices
|
||||
@@ -284,6 +285,7 @@ doDrawing' win pdata u = do
|
||||
glEnable GL_BLEND
|
||||
glBindFramebuffer GL_FRAMEBUFFER (_unFBO (fst (_fboLighting pdata)))
|
||||
createLightMap
|
||||
(w ^. wCam)
|
||||
cfig
|
||||
(fromIntegral trueNWalls)
|
||||
nSilIndices
|
||||
|
||||
Reference in New Issue
Block a user