Fix remote camera bug
This commit is contained in:
+4
-3
@@ -38,11 +38,12 @@ createLightMap pdata lightPoints nWalls nSils nsurfVs = do
|
||||
clear [ColorBuffer,DepthBuffer]
|
||||
--colorMask $= Color4 Disabled Disabled Disabled Disabled
|
||||
cullFace $= Just Back
|
||||
-- draw wall surfaces from your point of view in order to set z buffer
|
||||
-- we assume that the camera position uniforms have been correctly set elsewhere
|
||||
-- draw wall surfaces from the camera's point of view in order to set z buffer
|
||||
drawShader (_lightingWallShader pdata) nWalls
|
||||
-- draw foreground elements from your point of view to set z buffer
|
||||
-- draw foreground elements the camera's your point of view to set z buffer
|
||||
drawShader (_lightingSurfaceShader pdata) nsurfVs
|
||||
-- draw wall occlusions from your point of view
|
||||
-- draw wall occlusions from the camera's point of view
|
||||
drawShader (_lightingOccludeShader pdata) nWalls
|
||||
--hypothesis: the above three draw calls only work because the
|
||||
--uniform was set to your position, that being the last light source in the list
|
||||
|
||||
Reference in New Issue
Block a user