vulkan_test2

view 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
line source
1 #version 450
2 #extension GL_ARB_separate_shader_objects: enable
4 const vec3 vdata[] = vec3[](
5 vec3(-0.5, -0.5, 0.0),
6 vec3(0.5, -0.5, 0.0),
7 vec3(0.7, 0.0, 0.0));
9 void main()
10 {
11 gl_Position = vec4(vdata[gl_VertexIndex], 1.0);
12 }