diff -r 5b91bbab1ac0 -r e5f8c99b0987 shader/sprite_vtx.glsl --- a/shader/sprite_vtx.glsl Sat May 10 15:42:56 2025 +0200 +++ b/shader/sprite_vtx.glsl Sat May 10 18:51:45 2025 +0200 @@ -1,6 +1,7 @@ #version 400 core -layout(location = 0) in vec2 position; +layout(location = 0) in vec2 in_pos; +layout(location = 1) in vec2 in_uv; out vec2 texcoord; out vec2 uvcoord; @@ -9,8 +10,9 @@ uniform mat4 model; void main(void) { - vec4 pos = projection*view*model*vec4(position.xy, 0.0, 1.0); + vec4 pos = projection*view*model*vec4(in_pos.xy, 0.0, 1.0); gl_Position = pos; - uvcoord = position; - texcoord = vec2(model[0].x, model[1].y)*position; + uvcoord = in_uv; + // TODO: we don't need that in the future + texcoord = vec2(model[0].x, model[1].y)*in_pos; }