18 lines
398 B
Text
18 lines
398 B
Text
|
#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;
|
||
|
}
|