ecsgame/Shaders/shadow-vertex.vs
karl 0254b81882 Implement basic shadows
Still shadow acne, but working in principle
2020-10-27 21:13:07 +01:00

10 lines
184 B
GLSL

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