summary refs log tree commit diff
path: root/shader/tri.vert
diff options
context:
space:
mode:
Diffstat (limited to 'shader/tri.vert')
-rw-r--r--shader/tri.vert9
1 files changed, 9 insertions, 0 deletions
diff --git a/shader/tri.vert b/shader/tri.vert
new file mode 100644
index 0000000..701d7c6
--- /dev/null
+++ b/shader/tri.vert
@@ -0,0 +1,9 @@
+#version 450
+
+layout(location = 0) in vec2 in_pos;
+layout(location = 0) out vec4 out_pos;
+
+void main() {
+	gl_Position = vec4(in_pos.x, in_pos.y, 0.0, 1.0);
+	out_pos = gl_Position;
+}