summary refs log tree commit diff
path: root/src/shaders/triangle.vert.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/shaders/triangle.vert.glsl')
-rw-r--r--src/shaders/triangle.vert.glsl13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/shaders/triangle.vert.glsl b/src/shaders/triangle.vert.glsl
index 22041cd..08be169 100644
--- a/src/shaders/triangle.vert.glsl
+++ b/src/shaders/triangle.vert.glsl
@@ -1,14 +1,13 @@
 #version 330 core
 layout (location = 0) in vec3 aPos;
-layout (location = 1) in vec3 aColor;
-layout (location = 2) in vec2 aTexCoord;
+layout (location = 1) in vec2 aTexCoord;
 
-out vec3 ourColor;
 out vec2 TexCoord;
+  
+uniform mat4 transform;
 
 void main()
 {
-    gl_Position = vec4(aPos, 1.0);
-    ourColor = aColor;
-    TexCoord = aTexCoord;
-}
+    gl_Position = transform * vec4(aPos, 1.0f);
+    TexCoord = vec2(aTexCoord.x, aTexCoord.y);
+}