fyrox-impl 0.36.2

Feature-rich, easy-to-use, 2D/3D game engine with a scene editor. Like Godot, but in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
uniform sampler2D oldLumSampler;
uniform sampler2D newLumSampler;

layout (std140) uniform Uniforms {
    mat4 worldViewProjection;
    float speed;
};

out float outLum;

void main() {
    float oldLum = texture(oldLumSampler, vec2(0.5, 0.5)).r;
    float newLum = texture(newLumSampler, vec2(0.5, 0.5)).r;
    outLum = clamp(oldLum + (newLum - oldLum) * speed, 0.0, newLum);
}