diff options
author | Christoph Helma <helma@in-silico.ch> | 2017-07-12 21:19:22 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2017-07-12 21:19:22 +0200 |
commit | 1d89df9e2a03c72a1b5789b066128555fc086d82 (patch) | |
tree | fa19d3f79bd261b6a815fdbe6daa6e2ad984d827 /shader.vert |
initial stdin parsing
Diffstat (limited to 'shader.vert')
-rw-r--r-- | shader.vert | 4 |
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); } |