17 lines
398 B
GLSL
17 lines
398 B
GLSL
#version 460 core
|
|
|
|
layout (location = 0) in vec4 attr_pos;
|
|
layout (location = 1) in vec2 attr_texcoord;
|
|
out vec4 vert_color;
|
|
out vec2 vert_texcoord;
|
|
out vec4 vert_pos;
|
|
|
|
uniform mat4 model;
|
|
uniform mat4 viewproj;
|
|
uniform mat4 shadowmap_viewproj;
|
|
|
|
void main() {
|
|
vert_texcoord = attr_texcoord;
|
|
vert_pos = shadowmap_viewproj * model * attr_pos;
|
|
gl_Position = viewproj * model * attr_pos;
|
|
}
|