mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-30 00:10:53 +00:00
17 lines
297 B
GLSL
17 lines
297 B
GLSL
#version 450
|
|
#extension GL_ARB_separate_shader_objects : enable
|
|
|
|
out gl_PerVertex {
|
|
vec4 gl_Position;
|
|
};
|
|
|
|
void main()
|
|
{
|
|
vec4 positions[3] = {
|
|
vec4(-1.0f, -1.0f, 0.0f, 1.0f),
|
|
vec4(3.0f, -1.0f, 0.0f, 1.0f),
|
|
vec4(-1.0f, 3.0f, 0.0f, 1.0f)
|
|
};
|
|
|
|
gl_Position = positions[gl_VertexIndex % 3];
|
|
}
|