mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-11 05:11:16 +00:00
10 lines
183 B
GLSL
10 lines
183 B
GLSL
|
#version 450
|
||
|
|
||
|
void
|
||
|
main ()
|
||
|
{
|
||
|
float x = (gl_VertexIndex & 2);
|
||
|
float y = (gl_VertexIndex & 1);
|
||
|
gl_Position = vec4 (2, 4, 0, 1) * vec4 (x, y, 0, 1) - vec4 (1, 1, 0, 0);
|
||
|
}
|