shader/sprite_vtx.glsl

changeset 88
6234b7ea48f3
parent 83
f7ce0db6f72b
--- a/shader/sprite_vtx.glsl	Sat Apr 19 19:30:46 2025 +0200
+++ b/shader/sprite_vtx.glsl	Sun Apr 20 15:41:16 2025 +0200
@@ -2,6 +2,7 @@
 
 layout(location = 0) in vec2 position;
 out vec2 texcoord;
+out vec2 uvcoord;
 
 uniform mat4 projection;
 uniform mat4 view;
@@ -13,5 +14,6 @@
     // apply depth
     pos.z = depth / -1024.0;
     gl_Position = pos;
+    uvcoord = position;
     texcoord = vec2(model[0].x, model[1].y)*position;
 }

mercurial