Commit before moving buffer swapping command

This commit is contained in:
2023-03-02 11:49:40 +00:00
parent 6b0f78d4eb
commit ed8efd21d9
4 changed files with 11 additions and 5 deletions
+3
View File
@@ -30,6 +30,8 @@ divideSize :: Int -> Size -> Size
divideSize i (Size x y) = Size (div x $ fromIntegral i) (div y $ fromIntegral i)
-- | Determine where light is shining in the world.
-- think of the produced texture as showing what RGB values should be "taken
-- away" from the shape colors.
createLightMap ::
RenderData ->
[(Point3, Float, Point3)] -> -- Lights
@@ -55,6 +57,7 @@ createLightMap pdata lightPoints nWalls nSils nCaps drawObjShads toPos drawCPUSh
-- we will not be changing that here
depthMask $= Disabled
-- clearColor is specified differently in preloadRender
-- the colors are inverted
clearColor $= Color4 1 1 1 1
clear [ColorBuffer]
-- for each of the lights: