Implement (not fully working) alternate shadow volumes

This commit is contained in:
2023-02-24 19:51:41 +00:00
parent ed9a46a18d
commit bf1bd5bb0b
9 changed files with 136 additions and 116 deletions
+2 -1
View File
@@ -27,6 +27,7 @@ module Shader.Data
, geom
, frag
) where
import Data.Vector (Vector)
import Graphics.Rendering.OpenGL
import Foreign
import Control.Lens
@@ -36,7 +37,7 @@ data FullShader = FullShader
, _shadVAO :: VAO
, _shadPrim :: EPrimitiveMode
, _shadTex :: Maybe ShaderTexture
, _shadUnis :: [UniformLocation]
, _shadUnis :: Vector UniformLocation
}
{- | Vertex array object: contains the reference to the object,
and its buffer targets. -}