Initial pass at shadows from level geometry

This commit is contained in:
2021-06-29 15:27:26 +02:00
parent 089dcc3f5d
commit 3d16c33d33
20 changed files with 181 additions and 74 deletions
+5 -2
View File
@@ -14,7 +14,7 @@ import Dodge.Render.Picture
import Geometry
import Geometry.Data
--import Picture
import Picture.Render
import Render
import Data.Preload.Render
import Picture.Data
import Picture.Tree
@@ -22,6 +22,8 @@ import Shader
import Shader.Data
import Shader.Poke
import MatrixHelper
--import Polyhedra.Data
import Polyhedra
import Foreign
--import Control.Applicative
@@ -102,7 +104,8 @@ doDrawing pdata w = do
depthMask $= Enabled
depthFunc $= Just Lequal
_ <- renderFoldable pdata $ picToLTree (Just 0) (foregroundPics w)
_ <- renderFoldable pdata $ picToLTree (Just 0) (polysToPic $ foregroundPics w)
--(Pictures $ concatmap (Poly3D 0 . _pyFaces) (foregroundPics w))
-- draw the fbo to the screen
-- allows for post-processing