Files
somaesque-native/assets/shaders/2d-tex.vertex.glsl
Daniel Ledda a89ef8ddde update
2025-02-16 23:43:10 +01:00

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;
}