From ba43db84ce7e80449c505c1381b33786cc047131 Mon Sep 17 00:00:00 2001 From: talha Date: Sun, 28 Apr 2024 15:48:28 +0500 Subject: Basic text rendering is now working --- source/shaders/ui_text_shader.vs.glsl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 source/shaders/ui_text_shader.vs.glsl (limited to 'source/shaders/ui_text_shader.vs.glsl') 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; +} -- cgit v1.2.3