rend3-routine 0.3.0

Customizable Render Routines for the rend3 rendering library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#version 440

layout(location = 0) out vec2 o_clip_position;

void main() {
    uint id = gl_VertexIndex;
    vec2 position = vec2(float(id / 2) * 4.0 - 1.0, float(id % 2) * 4.0 - 1.0);
    o_clip_position = position;

    // We use 0.0 (the infinite far plane) as depth
    gl_Position = vec4(position, 0.0, 1.0);
}