diff options
author | kartofen <mladenovnasko0@gmail.com> | 2023-10-16 23:46:15 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2023-10-16 23:46:15 +0300 |
commit | 5e910c7e41d18dab95e34ceb6e620a8958197ae6 (patch) | |
tree | bf49c8ca6dd123d0765beef63d5858445dcf24aa /files/shaders/shader1.vert |
things done
Diffstat (limited to 'files/shaders/shader1.vert')
-rw-r--r-- | files/shaders/shader1.vert | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/files/shaders/shader1.vert b/files/shaders/shader1.vert new file mode 100644 index 0000000..c5d117f --- /dev/null +++ b/files/shaders/shader1.vert @@ -0,0 +1,10 @@ +#version 450 + +vec2 positions[3] = vec2[]( + vec2(0.0, -0.5), + vec2(0.5, 0.5), + vec2(-0.5, 0.5)); + +void main() { + gl_Position = vec4(positions[gl_VertexIndex], 0.0, 1.0); +} |