Work on geometry shader based shadows

This commit is contained in:
2023-03-11 22:59:19 +00:00
parent 5724a0543e
commit 7ee3f6581d
18 changed files with 235 additions and 144 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
module Shader.AuxAddition
( addTexture
( addSamplerTexture2D
, vaddTextureNoFilter
, addTextureArray
, addUniforms
@@ -20,8 +20,8 @@ import GLHelp
-- I am not sure if this assumes that the shader is constructed directly before
-- the texture is added...
addTexture :: String -> FullShader -> IO FullShader
addTexture = addTexture2D 3 GL_LINEAR_MIPMAP_LINEAR GL_LINEAR
addSamplerTexture2D :: String -> FullShader -> IO FullShader
addSamplerTexture2D = addTexture2D 3 GL_LINEAR_MIPMAP_LINEAR GL_LINEAR
vaddTextureNoFilter :: String -> FullShader -> IO FullShader
vaddTextureNoFilter = addTexture2D 1 GL_NEAREST GL_NEAREST