Skip to content

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

401 B
Raw Blame
struct Params { amount: f32 }

// The quiet one: a gentle curve, a touch of colour, reds eased on skin.
fn effect(uv: vec2<f32>) -> vec4<f32> {
    let c = sample(uv);
    let amount = params.amount / 100.0;
    var out = s_curve(c.rgb, amount * 0.3);
    out = saturation(out, 1.0 + amount * 0.1);
    out = hsl_band(out, 10.0, 40.0, 0.0, 1.0 - amount * 0.12, 1.0);
    return vec4<f32>(out, c.a);
}