14 lines
292 B
GLSL
14 lines
292 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;
|
|
|
|
uniform mat4 model;
|
|
uniform mat4 viewproj;
|
|
|
|
void main() {
|
|
vert_texcoord = attr_texcoord;
|
|
gl_Position = viewproj * model * attr_pos;
|
|
}
|