vulkan_test2

annotate sdr/vertex.glsl @ 14:9fb6c24691ea

this shit never ends...
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 26 Jun 2018 07:20:03 +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 }