summary refs log tree commit diff
path: root/shader/tri.vert
diff options
context:
space:
mode:
authorWormHeamer2025-07-17 18:29:19 -0400
committerWormHeamer2025-07-17 18:29:19 -0400
commitc796b74bba315d4b2f14c6433ffa038dd87a4e04 (patch)
tree78e9c185836142042cdcec1109c7eb9f21ae4cfd /shader/tri.vert
initial commit
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;
+}