enigma-3d 0.2.9

A 3D Rendering Engine with a focus on simplicity and ease of use. Far from feature complete and not recommended for production use.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#version 140

in vec2 TEXCOORD;

out vec4 color;

uniform sampler2D scene;

void main() {
    vec4 c = texture(scene, TEXCOORD);
    float grayscale = dot(c.rgb, vec3(0.299, 0.587, 0.114));
    color = vec4(grayscale, grayscale, grayscale, c.a);
}