gedeng/Shader/shadow.vs
karl 3c35a730f5 Add basic setup for shadow rendering
adapted from the previous ECS project. working to some extent, but far from ideal
2021-05-20 00:15:58 +02:00

10 lines
179 B
GLSL

#version 430
layout (location = 0) in vec3 aPos;
uniform mat4 lightSpaceMatrix;
uniform mat4 model;
void main()
{
gl_Position = lightSpaceMatrix * model * vec4(aPos, 1.0);
}