Skip to main content

INVERT

Constant INVERT 

Source
pub const INVERT: &str = "// Inverts the encoded straight color, as editing tools do.\nfn effect(_uv: vec2f, src: vec4f) -> vec4f {\n    let rgb = builtin_straight(src);\n    return builtin_output(mix(rgb, vec3f(1.0) - rgb, params.amount), src.a);\n}\n";
Expand description

Built-in invert body.