Set depth buffer from your pov before casting shadows

This commit is contained in:
jgk
2021-08-19 18:43:49 +02:00
parent 4f33e93d78
commit bc236671f2
+2
View File
@@ -42,6 +42,8 @@ createLightMap pdata lightPoints nWalls nSils nsurfVs = do
drawShader (_lightingWallShader pdata) nWalls
-- draw foreground elements to set z buffer
drawShader (_lightingSurfaceShader pdata) nsurfVs
drawShader (_lightingOccludeShader pdata) nWalls
-- for each of the lights:
-- stencil out the walls from this light's point of view
-- draw fading lightmap circles on the floor