summaryrefslogtreecommitdiff
path: root/source/shaders/ui_text_shader.vs.glsl
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2024-04-28 15:48:28 +0500
committertalha <talha@talhaamir.xyz>2024-04-28 15:48:28 +0500
commitba43db84ce7e80449c505c1381b33786cc047131 (patch)
tree00df517ef5f5f86df126e32fc27e91f94ce55ac7 /source/shaders/ui_text_shader.vs.glsl
parent708b6e523d7f57f4eb4eb8395530be9ddf67986a (diff)
Basic text rendering is now working
Diffstat (limited to 'source/shaders/ui_text_shader.vs.glsl')
-rw-r--r--source/shaders/ui_text_shader.vs.glsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/shaders/ui_text_shader.vs.glsl b/source/shaders/ui_text_shader.vs.glsl
new file mode 100644
index 0000000..ecaefa4
--- /dev/null
+++ b/source/shaders/ui_text_shader.vs.glsl
@@ -0,0 +1,12 @@
+#version 330 core
+layout(location=0) in vec3 aPos;
+layout(location=1) in vec2 aTex;
+
+uniform mat4 Projection;
+
+out vec2 TexCoords;
+
+void main() {
+ gl_Position = Projection * vec4(aPos, 1.0);
+ TexCoords = aTex;
+}