filtrate 0.2.0

GPU texture filter library: built-in filters (blur, brightness, color matrix, ...) and runtime, built on filtrate-core.
Documentation
1
2
3
4
5
6
7
8
9
10
    // Photo effect: process — cool cast with crushed highlights.
    {
        let cooled = color.rgb * vec3<f32>(0.90, 0.95, 1.10);
        let crushed = vec3<f32>(
            min(cooled.r, 0.92),
            min(cooled.g, 0.94),
            min(cooled.b, 0.96),
        );
        color = vec4<f32>(clamp(crushed, vec3<f32>(0.0), vec3<f32>(COLOR_CLAMP_MAX)), color.a);
    }