shader/font_vtx.glsl

changeset 16
c5dde81b6fb2
parent 15
362b7659dc76
--- a/shader/font_vtx.glsl	Wed Nov 08 23:17:07 2023 +0100
+++ b/shader/font_vtx.glsl	Wed Nov 15 22:51:40 2023 +0100
@@ -1,6 +1,6 @@
 #version 400 core
 
-in vec2 position;
+layout(location = 0) in vec2 position;
 out vec2 texcoord;
 
 uniform mat4 projection;
@@ -8,5 +8,5 @@
 
 void main(void) {
     gl_Position = projection*model*vec4(position, 0.0, 1.0);
-    texcoord = position;
+    texcoord = vec2(model[0].x, model[1].y)*position;
 }

mercurial