sky_renderer 0.5.1

[DEPRECATED: use wilhelm_renderer instead] A minimalist 2D data rendering engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#version 330 core

uniform mat4 u_Transform;                     // projection matrix
uniform vec2 u_screen_offset;                 // single-shape translation (uniform). Forced to 0 when instancing

layout (location = 0) in vec2 aPos;           // mesh-local vertex
layout (location = 1) in vec2 aInstanceXY;    // optional; if disabled => (0,0)

void main() {
    vec2 p = aPos + u_screen_offset + aInstanceXY;
    gl_Position = u_Transform * vec4(p, 0.0, 1.0);
}