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/pixsort.vshader

13 lines
282 B
Plaintext
Raw Permalink Normal View History

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