Commit before adding coloured light sources

This commit is contained in:
2021-08-21 12:09:58 +02:00
parent a730dd66e0
commit e35b95bf36
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -34,7 +34,7 @@ createLightMap pdata lightPoints nWalls nSils nsurfVs = do
depthFunc $= Just Less
-- clear buffer to full alpha and furthest depth
-- clearColor is specified in preloadRender
clearColor $= Color4 0 0 0 1
clearColor $= Color4 1 1 1 1
clear [ColorBuffer,DepthBuffer]
--colorMask $= Color4 Disabled Disabled Disabled Disabled
cullFace $= Just Back
@@ -82,7 +82,8 @@ createLightMap pdata lightPoints nWalls nSils nsurfVs = do
-- draw geometry surfaces
cullFace $= Just Back
colorMask $= Color4 Disabled Disabled Disabled Enabled
--colorMask $= Color4 Disabled Disabled Disabled Enabled
colorMask $= Color4 Enabled Enabled Enabled Enabled
stencilFunc $= (Equal, 0, 255)
currentProgram $= Just (_shaderProgram $ _lightingSurfaceShader pdata)
uniform (head $ _shaderCustomUnis $ _lightingSurfaceShader pdata)