gl01/internal/asset/shader/world/shadowmap.vert

18 lines
341 B
GLSL
Raw Normal View History

2022-01-20 21:58:50 +08:00
#version 330
uniform mat4 model;
uniform mat4 lightspace;
layout (location = 0) in vec3 vert;
layout (location = 1) in vec3 normal;
layout (location = 2) in vec2 vertTexCoord;
layout (location = 3) in float light;
2022-02-25 21:10:38 +08:00
out vec2 fragTexCoord;
2022-01-20 21:58:50 +08:00
void main() {
2022-02-25 21:10:38 +08:00
fragTexCoord = vertTexCoord;
2022-01-20 21:58:50 +08:00
gl_Position = lightspace * model * vec4(vert, 1.0);
}