Skip to main content

RADIAL

Constant RADIAL 

Source
pub const RADIAL: &str = "// Port of gl-transitions/transitions/Radial.glsl\n// Author: Xaychru\n// License: MIT\nfn gl_transition(uv: vec2f) -> vec4f {\n    let centered = uv * 2.0 - vec2f(1.0);\n    let edge = atan2(centered.y, centered.x) - (progress() - 0.5) * 3.141592653589 * 2.5;\n    return mix(\n        gl_to_color(uv),\n        gl_from_color(uv),\n        builtin_aa_ramp(0.0, params.smoothness, edge, builtin_angle_width(uv - 0.5)),\n    );\n}\n";
Expand description

Radial sweep transition body.