diff options
Diffstat (limited to 'source/shaders/ui_text_shader.vs.glsl')
-rw-r--r-- | source/shaders/ui_text_shader.vs.glsl | 12 |
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; +} |