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.glsl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shaders/triangle.vert.glsl b/src/shaders/triangle.vert.glsl
new file mode 100644
index 0000000..dbef13e
--- /dev/null
+++ b/src/shaders/triangle.vert.glsl
@@ -0,0 +1,6 @@
+#version 330 core
+layout (location = 0) in vec2 aPos;
+void main()
+{
+    gl_Position = vec4(aPos.x, aPos.y, 0.0, 1.0);
+}