vulkan_test2
annotate sdr/vertex.glsl @ 12:e17abe477616
pipeline madness
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 23 Jun 2018 07:47:49 +0300 |
parents | |
children | f8bd29f124a8 |
rev | line source |
---|---|
nuclear@10 | 1 #version 450 |
nuclear@10 | 2 #extension GL_ARB_separate_shader_objects: enable |
nuclear@10 | 3 |
nuclear@10 | 4 layout(location = 0) out vec4 outpos; |
nuclear@10 | 5 |
nuclear@10 | 6 const vec3 vdata[] = vec3[]( |
nuclear@10 | 7 vec3(-0.5, -0.5, 0.0), |
nuclear@10 | 8 vec3(0.5, -0.5, 0.0), |
nuclear@10 | 9 vec3(0.7, 0.0, 0.0)); |
nuclear@10 | 10 |
nuclear@10 | 11 void main() |
nuclear@10 | 12 { |
nuclear@10 | 13 outpos = vec4(vdata[gl_VertexIndex], 1.0); |
nuclear@10 | 14 } |