Draw shadows in a framebuffer object

This commit is contained in:
jgk
2021-03-16 21:47:00 +01:00
parent 3707954913
commit b68e39ba2f
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ setupLoop wName xSize ySize
(\_ -> bracket customInit initCleanup $ \setup -> do -- setup <- customInit
-- swapInterval $= ImmediateUpdates
GL.blend $= GL.Enabled
GL.depthMask $= GL.Enabled
-- GL.depthMask $= GL.Enabled
GL.blendEquation $= GL.FuncAdd
GL.blendFunc $= (GL.SrcAlpha,GL.OneMinusSrcAlpha)
GL.clearColor $= GL.Color4 0 0.5 0 1