1#version 450 core 2 3#extension GL_ARB_shader_draw_parameters: enable 4 5layout(binding = 0) uniform Block 6{ 7 vec4 pos[2][4]; 8} block; 9 10void main() 11{ 12 if ((gl_BaseVertexARB > 0) || (gl_BaseInstanceARB > 0)) 13 gl_Position = block.pos[0][gl_DrawIDARB % 4]; 14 else 15 gl_Position = block.pos[1][gl_DrawIDARB % 4]; 16} 17