rpcsx/rpcs3/Emu/RSX/Program/GLSLSnippets/GenericVSPassthrough.glsl

14 lines
333 B
Plaintext
Raw Normal View History

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.);
}
)"