Skip to main content

DREAMY

Constant DREAMY 

Source
pub const DREAMY: &str = "// Port of gl-transitions/transitions/Dreamy.glsl\n// Author: mikolalysenko\n// License: MIT\nfn dreamy_offset(phase: f32, x: f32) -> vec2f {\n    let shift_y = 0.03 * phase * cos(10.0 * (phase + x));\n    return vec2f(0.0, shift_y);\n}\n\nfn gl_transition(uv: vec2f) -> vec4f {\n    return mix(\n        gl_from_color(uv + dreamy_offset(progress(), uv.x)),\n        gl_to_color(uv + dreamy_offset(1.0 - progress(), uv.x)),\n        progress(),\n    );\n}\n";
Expand description

Dreamy vertical-warp transition body.