nuclear@10: #version 450 nuclear@10: #extension GL_ARB_separate_shader_objects: enable nuclear@10: nuclear@10: layout(location = 0) out vec4 outpos; nuclear@10: nuclear@10: const vec3 vdata[] = vec3[]( nuclear@10: vec3(-0.5, -0.5, 0.0), nuclear@10: vec3(0.5, -0.5, 0.0), nuclear@10: vec3(0.7, 0.0, 0.0)); nuclear@10: nuclear@10: void main() nuclear@10: { nuclear@10: outpos = vec4(vdata[gl_VertexIndex], 1.0); nuclear@10: }