Working dynamic shadows using shape vertices buffer
This commit is contained in:
+2
-2
@@ -77,7 +77,7 @@ createLightMap pdata lightPoints nWalls nSils nCaps toPos = do
|
||||
glDrawElements
|
||||
(marshalEPrimitiveMode $ _shadPrim llss)
|
||||
(fromIntegral nSils)
|
||||
(GL_UNSIGNED_SHORT)
|
||||
GL_UNSIGNED_SHORT
|
||||
nullPtr
|
||||
cullFace $= Just Back
|
||||
|
||||
@@ -91,7 +91,7 @@ createLightMap pdata lightPoints nWalls nSils nCaps toPos = do
|
||||
glDrawElements
|
||||
(marshalEPrimitiveMode $ _shadPrim fs)
|
||||
(fromIntegral nCaps)
|
||||
(GL_UNSIGNED_SHORT)
|
||||
GL_UNSIGNED_SHORT
|
||||
nullPtr
|
||||
--drawShader (_lightingCapShader pdata) nCaps
|
||||
--draw lightmap itself
|
||||
|
||||
Reference in New Issue
Block a user