ggraphics 0.0.2

A 2d graphics library (tentative)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 300 es
precision mediump float;
in vec2 vert;
in vec2 tex_coord;
in vec4 frag_color;
uniform sampler2D tex;

layout(location=0) out vec4 color;

void main() {
    // Useful for looking at UV values
    //color = vec4(tex_coord, 0.5, 1.0);

    color = texture(tex, tex_coord) * frag_color;
}