Skip to main content

FOLD

Constant FOLD 

Source
pub const FOLD: &str = "// Port of gl-transitions/transitions/Fold.glsl\n// Author: nwoeanhinnogaehr\n// License: MIT\n// alpha2: the fold line is antialiased.\nfn gl_transition(uv: vec2f) -> vec4f {\n    let unfolded = builtin_aa_step(progress(), uv.x);\n    let a = gl_from_color((uv - vec2f(progress(), 0.0)) / vec2f(1.0 - progress(), 1.0));\n    let b = gl_to_color(uv / vec2f(progress(), 1.0));\n    return mix(b, a, unfolded);\n}\n";
Expand description

Squash push transition body.