Skip to main content

SEPIA

Constant SEPIA 

Source
pub const SEPIA: &str = "// The common sepia matrix on the encoded color; white passes one and is clamped.\nfn effect(_uv: vec2f, src: vec4f) -> vec4f {\n    let rgb = builtin_straight(src);\n    let toned = vec3f(\n        dot(rgb, vec3f(0.393, 0.769, 0.189)),\n        dot(rgb, vec3f(0.349, 0.686, 0.168)),\n        dot(rgb, vec3f(0.272, 0.534, 0.131)),\n    );\n    return builtin_output(mix(rgb, toned, params.amount), src.a);\n}\n";
Expand description

Built-in sepia body.