From 708b6e523d7f57f4eb4eb8395530be9ddf67986a Mon Sep 17 00:00:00 2001 From: talha Date: Thu, 25 Apr 2024 03:19:05 +0500 Subject: Added freetype, started refactoring --- source/shaders/textured_quad.vs.glsl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 source/shaders/textured_quad.vs.glsl (limited to 'source/shaders/textured_quad.vs.glsl') diff --git a/source/shaders/textured_quad.vs.glsl b/source/shaders/textured_quad.vs.glsl new file mode 100644 index 0000000..7696b65 --- /dev/null +++ b/source/shaders/textured_quad.vs.glsl @@ -0,0 +1,14 @@ +#version 330 core +layout(location=0) in vec3 aPos; +layout(location=1) in vec2 aTex; + +uniform mat4 Model; +uniform mat4 View; +uniform mat4 Projection; + +out vec2 TexCoords; + +void main() { + gl_Position = Projection * View * Model * vec4(aPos, 1.0); + TexCoords = aTex; +} -- cgit v1.2.3