Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

382 B
Raw Blame
struct Params { amount: f32 }

// Saturates the dull colours more than the vivid ones, and skin less
// than either: a face should be the last thing a vibrance boost reaches.
fn effect(uv: vec2<f32>) -> vec4<f32> {
    let c = sample(uv);
    let boosted = vibrance(c.rgb, params.amount);
    let out = mix(boosted, c.rgb, skin_mask(c.rgb) * 0.6);
    return vec4<f32>(out, c.a);
}