rayengine 0.0.3

A small Linux-first Rust game SDK over raylib
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#version 330
in vec2 fragTexCoord;
in vec4 fragColor;
uniform sampler2D texture0;
uniform float strength;
out vec4 finalColor;
void main() {
    vec4 c = texture(texture0, fragTexCoord) * fragColor;
    vec2 p = fragTexCoord * 2.0 - 1.0;
    float shade = 1.0 - clamp(strength, 0.0, 1.0) * smoothstep(0.15, 1.4, dot(p, p));
    finalColor = vec4(c.rgb * shade, c.a);
}