pub const PERLIN: &str = "// Port of gl-transitions/transitions/perlin.glsl\n// Author: Rich Harris\n// License: MIT\n// alpha2: replaces upstream\'s noise and hash with `builtin_value_noise`, salted by the seed\'s\n// bits, and antialiases the ramp where it is narrower than a pixel.\nfn gl_transition(uv: vec2f) -> vec4f {\n let n = builtin_value_noise(uv * params.scale, bitcast<u32>(params.seed));\n let p = mix(-params.smoothness, 1.0 + params.smoothness, progress());\n let q = builtin_aa_smoothstep(p - params.smoothness, p + params.smoothness, n);\n return mix(gl_from_color(uv), gl_to_color(uv), 1.0 - q);\n}\n";Expand description
Value-noise dissolve transition body.