protot/data/shaders/vs_shadowmap.vert

19 lines
326 B
GLSL
Raw Normal View History

#version 150 core
in vec4 inCoord;
2018-03-15 11:54:00 +01:00
in vec3 inNormal;
in vec2 inUV;
in vec4 inColor;
2018-03-15 11:54:00 +01:00
uniform mat4 uViewMatrix;
uniform mat4 uProjectionMatrix;
uniform mat4 uModelMatrix;
2018-03-15 11:01:55 +01:00
uniform mat4 uLightSpaceMatrix;
2018-03-15 11:54:00 +01:00
out vec4 ioFragColor;
void main() {
2018-03-15 11:01:55 +01:00
gl_Position = uLightSpaceMatrix * uModelMatrix * inCoord;
ioFragColor = inColor;
}