mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
14 lines
333 B
GLSL
14 lines
333 B
GLSL
R"(
|
|
#version 420
|
|
layout(location=0) out vec2 tc0;
|
|
|
|
void main()
|
|
{
|
|
vec2 positions[] = {vec2(-1., -1.), vec2(1., -1.), vec2(-1., 1.), vec2(1., 1.)};
|
|
vec2 coords[] = {vec2(0., 1.), vec2(1., 1.), vec2(0., 0.), vec2(1., 0.)};
|
|
tc0 = coords[gl_VertexID % 4];
|
|
vec2 pos = positions[gl_VertexID % 4];
|
|
gl_Position = vec4(pos, 0., 1.);
|
|
}
|
|
)"
|