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 00:17:42 +0200
committeriurii plugatarov <[email protected]>2024-08-11 00:17:42 +0200
commitee735611611bf7b27bccbca808e5d72da45b9937 (patch)
treecc42e64bb2e0814db9056d9147e388fe2d3bded0 /src/shaders/triangle.vert.glsl
parent90e85b2fe655a2643535b0f49d99836ac72e724c (diff)
downloadogl-ee735611611bf7b27bccbca808e5d72da45b9937.tar.gz
textures
Diffstat (limited to '')
-rw-r--r--src/shaders/triangle.vert.glsl9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/shaders/triangle.vert.glsl b/src/shaders/triangle.vert.glsl
index f1dbe00..22041cd 100644
--- a/src/shaders/triangle.vert.glsl
+++ b/src/shaders/triangle.vert.glsl
@@ -1,9 +1,14 @@
 #version 330 core
 layout (location = 0) in vec3 aPos;
 layout (location = 1) in vec3 aColor;
+layout (location = 2) in vec2 aTexCoord;
+
 out vec3 ourColor;
+out vec2 TexCoord;
+
 void main()
 {
-   gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);
-   ourColor = aColor;
+    gl_Position = vec4(aPos, 1.0);
+    ourColor = aColor;
+    TexCoord = aTexCoord;
 }