Skip to main content

TILE

Constant TILE 

Source
pub const TILE: &str = "// The picture repeated `tiles` times about the center. Repeated tiles can show seams where\n// opposite edges differ; mirrored tiles cannot.\nfn effect(uv: vec2f, _src: vec4f) -> vec4f {\n    let p = (uv - 0.5 - params.offset) * params.tiles + 0.5;\n    let mode = select(2u, 3u, params.mirror != 0u);\n    return sample_src(builtin_wrap(p, mode));\n}\n";
Expand description

Built-in tile body.