@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.);
}