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
+2
View File
@@ -9,6 +9,7 @@ layout (std140, binding = 1) uniform LightsBlock
} ;
uniform int lightID;
vec3 lightPos = posBool[lightID].xyz ;
float theBool = posBool[gl_InvocationID].w;
// this code is duplicated in lineShadow.geom, should not be changed on its own
vec4 projNear (vec4 pos)
{
@@ -29,6 +30,7 @@ void main()
( p0.z - lightPos.z > 0 )
&& ( p1.z - lightPos.z > 0 )
&& ( p2.z - lightPos.z > 0 )
&& theBool == 1
)
{
// the front cap