Separate cloud & surface lighting
This commit is contained in:
@@ -160,6 +160,7 @@ doDrawing' win pdata u = do
|
||||
glEnable GL_BLEND
|
||||
--draw lightmap into its own buffer
|
||||
createLightMap
|
||||
False
|
||||
(w ^. wCam)
|
||||
cfig
|
||||
(cfig ^. gr_shadow_rendering)
|
||||
@@ -284,6 +285,7 @@ doDrawing' win pdata u = do
|
||||
glEnable GL_BLEND
|
||||
glBindFramebuffer GL_FRAMEBUFFER (_unFBO (fst (_fboLighting pdata)))
|
||||
createLightMap
|
||||
True
|
||||
(w ^. wCam)
|
||||
cfig
|
||||
(cfig ^. gr_shadows_on_clouds)
|
||||
|
||||
Reference in New Issue
Block a user