From 1d89df9e2a03c72a1b5789b066128555fc086d82 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Wed, 12 Jul 2017 21:19:22 +0200 Subject: initial stdin parsing --- shader.vert | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 shader.vert (limited to 'shader.vert') 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); } -- cgit v1.2.3