summary refs log tree commit diff
path: root/src/shaders/triangle.vert.glsl
diff options
context:
space:
mode:
authoriurii plugatarov <[email protected]>2024-08-11 01:12:21 +0200
committeriurii plugatarov <[email protected]>2024-08-11 01:12:21 +0200
commit3e4e449f585cddd590fb7f77a849ccc17c640425 (patch)
treee3c17d49fe82b180ebe44b265294a21c8be7b141 /src/shaders/triangle.vert.glsl
parentee735611611bf7b27bccbca808e5d72da45b9937 (diff)
downloadogl-main.tar.gz
linal main
Diffstat (limited to '')
-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);
+}