rend3-routine 0.3.0

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

layout(location = 0) out vec2 tex_coords;

void main() {
    uint id = gl_VertexIndex;
    gl_Position = vec4(float(id / 2) * 4.0 - 1.0, float(id % 2) * 4.0 - 1.0, 0.0, 1.0);
    tex_coords = vec2(float(id / 2) * 2.0,  1.0 - (float(id % 2) * 2.0));
}