You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
344 B
17 lines
344 B
#version 450 core
|
|
|
|
#extension GL_ARB_shader_draw_parameters: enable
|
|
|
|
layout(binding = 0) uniform Block
|
|
{
|
|
vec4 pos[2][4];
|
|
} block;
|
|
|
|
void main()
|
|
{
|
|
if ((gl_BaseVertexARB > 0) || (gl_BaseInstanceARB > 0))
|
|
gl_Position = block.pos[0][gl_DrawIDARB % 4];
|
|
else
|
|
gl_Position = block.pos[1][gl_DrawIDARB % 4];
|
|
}
|