Prevent drawing of shadow caps when turned off

This commit is contained in:
2023-03-25 17:46:54 +00:00
parent d989acd6f2
commit 3dd386e908
3 changed files with 38 additions and 25 deletions
+4 -4
View File
@@ -1,11 +1,11 @@
#version 450 core
layout (location = 0) in vec3 position;
layout (location = 0) in vec4 position;
layout (std140, binding = 0) uniform TheMat { mat4 theMat; } ;
uniform vec3 lightPos;
uniform vec4 lumRad;
out vec3 dField;
out vec3 lum;
out float drawbit;
void main()
{
gl_Position = vec4(position,1);
gl_Position = vec4(position.xyz,1);
drawbit = position.w;
}