13 lines
221 B
GLSL
13 lines
221 B
GLSL
#version 330 core
|
|
layout (location = 0) in vec2 xy;
|
|
layout (location = 1) in vec2 uv;
|
|
|
|
uniform mat4 projection;
|
|
|
|
out vec2 tex_coord;
|
|
|
|
void main() {
|
|
gl_Position = projection * vec4(xy, 0.0, 1.0);
|
|
tex_coord = uv;
|
|
}
|