summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/text.v.glsl7
1 files changed, 4 insertions, 3 deletions
diff --git a/res/text.v.glsl b/res/text.v.glsl
index 89bded5c..07a50376 100644
--- a/res/text.v.glsl
+++ b/res/text.v.glsl
@@ -1,11 +1,12 @@
#version 330 core
-layout (location = 0) in vec4 vertex;
+layout (location = 0) in vec2 position;
+layout (location = 1) in vec2 uvMask;
out vec2 TexCoords;
uniform mat4 projection;
void main()
{
- gl_Position = projection * vec4(vertex.xy, 0.0, 1.0);
- TexCoords = vertex.zw;
+ gl_Position = projection * vec4(position.xy, 0.0, 1.0);
+ TexCoords = uvMask.xy;
}