gypsum 0.1.0

A Rust library for drawing ASCII-style roguelike graphics targetting both native (OpenGL) and wasm (WebGL) platforms
Documentation
1
2
3
4
5
6
7
8
9
precision mediump float;

in vec2 frag_tex;

out vec4 FragColor;

void main() {
    FragColor = vec4(fract(frag_tex.xy * 20.0), 0.5, 0.0);
}