This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/core/loshader/posteffect.vshader
falsycat 84c3a02b9a [RELEASE] u22-v03
This version is submitted to U22 breau.
2020-09-14 00:00:00 +00:00

12 lines
286 B
GLSL

out vec2 v_uv;
void main(void) {
const vec2[] verts = vec2[](
vec2(-1., 1.), vec2(-1., -1.), vec2( 1., -1.),
vec2(-1., 1.), vec2( 1., -1.), vec2( 1., 1.)
);
v_uv = gl_VertexID < verts.length()? verts[gl_VertexID]: vec2(0.);
gl_Position = vec4(v_uv, 0., 1.);
}