Files
somaesque-native/assets/shaders/2d.vertex.glsl
Daniel Ledda f250254ae3 update
2025-02-14 23:59:44 +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;
}