summaryrefslogtreecommitdiff
path: root/shader.vert
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2017-07-12 21:19:22 +0200
committerChristoph Helma <helma@in-silico.ch>2017-07-12 21:19:22 +0200
commit1d89df9e2a03c72a1b5789b066128555fc086d82 (patch)
treefa19d3f79bd261b6a815fdbe6daa6e2ad984d827 /shader.vert
initial stdin parsing
Diffstat (limited to 'shader.vert')
-rw-r--r--shader.vert4
1 files changed, 4 insertions, 0 deletions
diff --git a/shader.vert b/shader.vert
new file mode 100644
index 0000000..24eb59c
--- /dev/null
+++ b/shader.vert
@@ -0,0 +1,4 @@
+#version 420 core
+#extension GL_ARB_shading_language_420pack : require
+const vec2 quadVertices[4] = { vec2(-1.0, -1.0), vec2(1.0, -1.0), vec2(-1.0, 1.0), vec2(1.0, 1.0) };
+void main() { gl_Position = vec4(quadVertices[gl_VertexID], 0.0, 1.0); }