gled 2.29.0

gled is an application for creating animations and effects on artnet or dmx installations
1
2
3
4
5
6
7
8
9
10
11
12
@fragment
fn fs_main(@location(0) coord: vec2<f32>) -> @location(0) vec4<f32> {
    var beat_progression = (uniforms.beat_progression * uniforms.speed) % 1.0;

    let color = animation(coord, beat_progression);

    if color.r == 0.0 && color.g == 0.0 && color.b == 0.0 {
        return vec4<f32>(0.0);
    }

    return vec4<f32>(color, 1.);
}