Draw shape shadows using index buffer
This commit is contained in:
+1
-1
@@ -79,7 +79,7 @@ setupWorldBounds w = w
|
||||
|
||||
setupForegroundEdgeVerxs :: World -> World
|
||||
setupForegroundEdgeVerxs w = w & foregroundEdgeVerx .~ polyhedrasToEdges (_foregroundDecorations w)
|
||||
& foregroundShape .~ (vs,es)
|
||||
& foregroundShape .~ ([ShapeObj ListV vs],es)
|
||||
where
|
||||
vs = shVfromList $ map pairToSV $ concatMap polyToTris $ concatMap _pyFaces $ _foregroundDecorations w
|
||||
es = shEfromList $ polyhedrasToEdges (_foregroundDecorations w)
|
||||
|
||||
Reference in New Issue
Block a user