vulkan_test2
annotate sdr/vertex.glsl @ 17:f8bd29f124a8
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 27 Jun 2018 01:57:55 +0300 |
parents | 8eb3126cc2f1 |
children |
rev | line source |
---|---|
nuclear@10 | 1 #version 450 |
nuclear@10 | 2 #extension GL_ARB_separate_shader_objects: enable |
nuclear@10 | 3 |
nuclear@10 | 4 const vec3 vdata[] = vec3[]( |
nuclear@10 | 5 vec3(-0.5, -0.5, 0.0), |
nuclear@10 | 6 vec3(0.5, -0.5, 0.0), |
nuclear@10 | 7 vec3(0.7, 0.0, 0.0)); |
nuclear@10 | 8 |
nuclear@10 | 9 void main() |
nuclear@10 | 10 { |
nuclear@17 | 11 gl_Position = vec4(vdata[gl_VertexIndex], 1.0); |
nuclear@10 | 12 } |