// XC_BUILTIN_SKYBOX_VULKAN_VS #version 450 layout(location = 0) out vec2 vNdc; void main() { const vec2 positions[3] = vec2[3]( vec2(-1.0, -1.0), vec2(-1.0, 3.0), vec2( 3.0, -1.0) ); vec2 position = positions[gl_VertexIndex]; gl_Position = vec4(position, 1.0, 1.0); vNdc = position; }