Skip to main content

OFFSET

Constant OFFSET 

Source
pub const OFFSET: &str = "// The picture shifted by `shift` of the output, what moves out coming back in per `edge`.\nfn effect(uv: vec2f, _src: vec4f) -> vec4f {\n    let source = uv - params.shift;\n    return builtin_sample_edge(source, fwidthFine(source), params.edge);\n}\n";
Expand description

Built-in offset body.