gl-transitions 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +80 -0
- package/compatibility.json +455 -11
- package/gl-transitions.js +1 -1
- package/gl-transitions.json +1 -1
- package/glsl3/BookFlip.glsl +124 -21
- package/glsl3/CircleBurst.glsl +77 -0
- package/glsl3/Clothesline.glsl +217 -0
- package/glsl3/CodeRain.glsl +114 -0
- package/glsl3/ComicPanels.glsl +174 -0
- package/glsl3/Cube.glsl +105 -52
- package/glsl3/CurtainRise.glsl +71 -0
- package/glsl3/DominoFall.glsl +114 -0
- package/glsl3/Doorway.glsl +74 -38
- package/glsl3/Drape.glsl +186 -0
- package/glsl3/DuotoneFade.glsl +58 -0
- package/glsl3/FacetedGlass.glsl +137 -0
- package/glsl3/FrostWipe.glsl +176 -0
- package/glsl3/Funnel.glsl +71 -0
- package/glsl3/GlitterDissolve.glsl +171 -0
- package/glsl3/GravityLens.glsl +66 -0
- package/glsl3/GridFlip.glsl +151 -56
- package/glsl3/HeartWipe.glsl +71 -11
- package/glsl3/InsideCube.glsl +114 -0
- package/glsl3/KeyholeWipe.glsl +104 -0
- package/glsl3/LedWall.glsl +127 -0
- package/glsl3/MoireWipe.glsl +75 -0
- package/glsl3/PaperFold.glsl +168 -0
- package/glsl3/PuzzleCube.glsl +205 -0
- package/glsl3/RibbonTwist.glsl +53 -0
- package/glsl3/RingSpin.glsl +112 -0
- package/glsl3/Shatter.glsl +231 -35
- package/glsl3/SketchDissolve.glsl +100 -0
- package/glsl3/SlotReels.glsl +118 -0
- package/glsl3/SplitFlap.glsl +124 -0
- package/glsl3/SpotlightWipe.glsl +63 -0
- package/glsl3/Swirl.glsl +52 -21
- package/glsl3/TruchetWipe.glsl +80 -0
- package/glsl3/Tumble.glsl +113 -0
- package/glsl3/WaterDrop.glsl +69 -13
- package/glsl3/WaveWipe.glsl +154 -0
- package/index.js +1 -1
- package/layouts.json +1232 -29
- package/llms-full.txt +890 -403
- package/llms.txt +225 -197
- package/msl/BookFlip.metal +575 -114
- package/msl/CircleBurst.metal +351 -0
- package/msl/Clothesline.metal +828 -0
- package/msl/CodeRain.metal +451 -0
- package/msl/ComicPanels.metal +959 -0
- package/msl/Cube.metal +466 -170
- package/msl/CurtainRise.metal +263 -0
- package/msl/DominoFall.metal +510 -0
- package/msl/Doorway.metal +350 -124
- package/msl/Drape.metal +767 -0
- package/msl/DuotoneFade.metal +218 -0
- package/msl/FacetedGlass.metal +529 -0
- package/msl/FrostWipe.metal +677 -0
- package/msl/Funnel.metal +276 -0
- package/msl/GlitterDissolve.metal +637 -0
- package/msl/GravityLens.metal +236 -0
- package/msl/GridFlip.metal +548 -191
- package/msl/HeartWipe.metal +230 -58
- package/msl/InsideCube.metal +537 -0
- package/msl/KeyholeWipe.metal +370 -0
- package/msl/LedWall.metal +437 -0
- package/msl/MoireWipe.metal +252 -0
- package/msl/PaperFold.metal +762 -0
- package/msl/PuzzleCube.metal +1179 -0
- package/msl/RibbonTwist.metal +235 -0
- package/msl/RingSpin.metal +474 -0
- package/msl/Shatter.metal +1136 -160
- package/msl/SketchDissolve.metal +446 -0
- package/msl/SlotReels.metal +436 -0
- package/msl/SplitFlap.metal +589 -0
- package/msl/SpotlightWipe.metal +217 -0
- package/msl/Swirl.metal +144 -77
- package/msl/TruchetWipe.metal +285 -0
- package/msl/Tumble.metal +466 -0
- package/msl/WaterDrop.metal +258 -49
- package/msl/WaveWipe.metal +618 -0
- package/package.json +1 -1
- package/skills/gl-transitions/references/catalog.md +115 -57
- package/sksl/BookFlip.sksl +117 -20
- package/sksl/CircleBurst.sksl +84 -0
- package/sksl/Clothesline.sksl +217 -0
- package/sksl/CodeRain.sksl +124 -0
- package/sksl/ComicPanels.sksl +176 -0
- package/sksl/Cube.sksl +99 -46
- package/sksl/CurtainRise.sksl +84 -0
- package/sksl/DominoFall.sksl +122 -0
- package/sksl/Doorway.sksl +65 -35
- package/sksl/Drape.sksl +192 -0
- package/sksl/DuotoneFade.sksl +71 -0
- package/sksl/FacetedGlass.sksl +148 -0
- package/sksl/FrostWipe.sksl +183 -0
- package/sksl/Funnel.sksl +83 -0
- package/sksl/GlitterDissolve.sksl +175 -0
- package/sksl/GravityLens.sksl +77 -0
- package/sksl/GridFlip.sksl +141 -52
- package/sksl/HeartWipe.sksl +60 -11
- package/sksl/InsideCube.sksl +123 -0
- package/sksl/KeyholeWipe.sksl +109 -0
- package/sksl/LedWall.sksl +137 -0
- package/sksl/MoireWipe.sksl +85 -0
- package/sksl/PaperFold.sksl +170 -0
- package/sksl/PuzzleCube.sksl +203 -0
- package/sksl/RibbonTwist.sksl +66 -0
- package/sksl/RingSpin.sksl +121 -0
- package/sksl/Shatter.sksl +218 -33
- package/sksl/SketchDissolve.sksl +111 -0
- package/sksl/SlotReels.sksl +127 -0
- package/sksl/SplitFlap.sksl +131 -0
- package/sksl/SpotlightWipe.sksl +74 -0
- package/sksl/Swirl.sksl +49 -20
- package/sksl/TruchetWipe.sksl +92 -0
- package/sksl/Tumble.sksl +122 -0
- package/sksl/WaterDrop.sksl +64 -10
- package/sksl/WaveWipe.sksl +165 -0
- package/sksl/index.js +1 -1
- package/transitions/BookFlip.glsl +124 -21
- package/transitions/CircleBurst.glsl +76 -0
- package/transitions/Clothesline.glsl +216 -0
- package/transitions/CodeRain.glsl +113 -0
- package/transitions/ComicPanels.glsl +173 -0
- package/transitions/Cube.glsl +105 -52
- package/transitions/CurtainRise.glsl +70 -0
- package/transitions/DominoFall.glsl +113 -0
- package/transitions/Doorway.glsl +74 -38
- package/transitions/Drape.glsl +185 -0
- package/transitions/DuotoneFade.glsl +57 -0
- package/transitions/FacetedGlass.glsl +136 -0
- package/transitions/FrostWipe.glsl +175 -0
- package/transitions/Funnel.glsl +70 -0
- package/transitions/GlitterDissolve.glsl +170 -0
- package/transitions/GravityLens.glsl +65 -0
- package/transitions/GridFlip.glsl +151 -56
- package/transitions/HeartWipe.glsl +71 -11
- package/transitions/InsideCube.glsl +113 -0
- package/transitions/KeyholeWipe.glsl +103 -0
- package/transitions/LedWall.glsl +126 -0
- package/transitions/MoireWipe.glsl +74 -0
- package/transitions/PaperFold.glsl +167 -0
- package/transitions/PuzzleCube.glsl +204 -0
- package/transitions/RibbonTwist.glsl +52 -0
- package/transitions/RingSpin.glsl +111 -0
- package/transitions/Shatter.glsl +231 -35
- package/transitions/SketchDissolve.glsl +99 -0
- package/transitions/SlotReels.glsl +117 -0
- package/transitions/SplitFlap.glsl +123 -0
- package/transitions/SpotlightWipe.glsl +62 -0
- package/transitions/Swirl.glsl +52 -21
- package/transitions/TruchetWipe.glsl +79 -0
- package/transitions/Tumble.glsl +112 -0
- package/transitions/WaterDrop.glsl +69 -13
- package/transitions/WaveWipe.glsl +153 -0
- package/wgsl/BookFlip.wgsl +552 -105
- package/wgsl/CircleBurst.wgsl +310 -0
- package/wgsl/Clothesline.wgsl +756 -0
- package/wgsl/CodeRain.wgsl +415 -0
- package/wgsl/ComicPanels.wgsl +886 -0
- package/wgsl/Cube.wgsl +461 -156
- package/wgsl/CurtainRise.wgsl +235 -0
- package/wgsl/DominoFall.wgsl +461 -0
- package/wgsl/Doorway.wgsl +333 -117
- package/wgsl/Drape.wgsl +715 -0
- package/wgsl/DuotoneFade.wgsl +185 -0
- package/wgsl/FacetedGlass.wgsl +476 -0
- package/wgsl/FrostWipe.wgsl +617 -0
- package/wgsl/Funnel.wgsl +248 -0
- package/wgsl/GlitterDissolve.wgsl +582 -0
- package/wgsl/GravityLens.wgsl +206 -0
- package/wgsl/GridFlip.wgsl +523 -188
- package/wgsl/HeartWipe.wgsl +225 -55
- package/wgsl/InsideCube.wgsl +496 -0
- package/wgsl/KeyholeWipe.wgsl +337 -0
- package/wgsl/LedWall.wgsl +397 -0
- package/wgsl/MoireWipe.wgsl +222 -0
- package/wgsl/PaperFold.wgsl +700 -0
- package/wgsl/PuzzleCube.wgsl +1087 -0
- package/wgsl/RibbonTwist.wgsl +206 -0
- package/wgsl/RingSpin.wgsl +426 -0
- package/wgsl/Shatter.wgsl +1091 -148
- package/wgsl/SketchDissolve.wgsl +409 -0
- package/wgsl/SlotReels.wgsl +391 -0
- package/wgsl/SplitFlap.wgsl +533 -0
- package/wgsl/SpotlightWipe.wgsl +186 -0
- package/wgsl/Swirl.wgsl +138 -77
- package/wgsl/TruchetWipe.wgsl +255 -0
- package/wgsl/Tumble.wgsl +424 -0
- package/wgsl/WaterDrop.wgsl +251 -49
- package/wgsl/WaveWipe.wgsl +581 -0
package/gl-transitions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
window.GLTransitions=
|
|
2
|
-
[{"name":"Accordion","paramsTypes":{"pleats":"int","direction":"vec2","shading":"float","perspective":"float","backColor":"vec4"},"defaultParams":{"pleats":4,"direction":[-1,0],"shading":0.7,"perspective":1.5,"backColor":[0,0,0,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image folds up like a pleated paper toward one side while the incoming one unfolds out of the other, both in 3D with lit and shadowed pleats\n// Tags: fold, 3d, slide, stripes\n\n// @range(1, 12, 1) Number of pleats in each image (a pleat is a pair of panels, one lit and one in the shade)\nuniform int pleats; // = 4\n// @param Direction in which the images move, snapped to its main axis (left, right, up or down): the outgoing image folds up toward it, the incoming one unfolds from the opposite side\nuniform vec2 direction; // = vec2(-1.0, 0.0)\n// @range(0, 1) Contrast between the lit and the shaded panels\nuniform float shading; // = 0.7\n// @range(0, 3) Amount of perspective: the valleys between the pleats recede\nuniform float perspective; // = 1.5\n// @color Color seen around the folded images, where the valleys recede\nuniform vec4 backColor; // = vec4(0.0, 0.0, 0.0, 1.0)\n\n// light from the front and the side: its sideways and front components\nconst float LIGHT_SIDE = 0.55;\nconst float LIGHT_FRONT = 0.835;\n// width of the anti-aliased folds and edges, in frame heights\nconst float EDGE = 0.0015;\n\n// brightness of a panel folded by angle (c, s) = (cos, sin), facing the light (sign 1) or away (-1)\nfloat panelLight(float c, float s, float facing) {\n float lambert = (c * LIGHT_FRONT + facing * s * LIGHT_SIDE) / LIGHT_FRONT;\n return mix(1.0, clamp(lambert, 0.08, 1.25), shading);\n}\n\n// one folded image: f is the position along it (0 to 1, from its anchored side), c the visible part\n// of its length (cos of the fold angle), len its length and b the position across it, in frame heights\nvec4 pleated(float f, float c, float len, float b, float bLen, bool incoming, bool flipA, bool vertical) {\n float m = 2.0 * float(pleats > 1 ? pleats : 1);\n float s = sqrt(max(1.0 - c * c, 0.0));\n float u = f * m;\n // f = 1 is the end of the last panel, not the start of one more\n float panel = min(floor(u), m - 1.0);\n float fu = u - panel;\n // the ridges (odd boundaries) stay in the frame's plane, the valleys (even ones) recede\n float tri = 1.0 - abs(mod(u, 2.0) - 1.0);\n float panelLen = len / m;\n float z = panelLen * s * (1.0 - tri);\n // farther parts look smaller\n float scale = 1.0 / (1.0 + perspective * z);\n float bb = (b - 0.5 * bLen) / scale / bLen + 0.5;\n // soft top and bottom edges while folded (sharp when flat, to keep the first and last frames exact)\n float edge = EDGE * min(1.0, 20.0 * s * c) + 1e-6;\n float cover = clamp(min(bb, 1.0 - bb) * bLen * scale / edge, 0.0, 1.0);\n float a = flipA ? 1.0 - f : f;\n vec2 st = clamp(vertical ? vec2(bb, a) : vec2(a, bb), 0.0, 1.0);\n vec4 img = incoming ? getToColor(st) : getFromColor(st);\n // even panels face the light, odd ones turn away; blend across each fold over a pixel or so\n float facing = mod(panel, 2.0) < 0.5 ? 1.0 : -1.0;\n float toEdge = min(fu, 1.0 - fu) * panelLen * c;\n float k = 0.5 + 0.5 * clamp(toEdge / EDGE, 0.0, 1.0);\n float light = mix(panelLight(c, s, -facing), panelLight(c, s, facing), k);\n // a touch of shade deep in the valleys\n float valley = 1.0 - tri;\n light *= 1.0 - 0.4 * shading * s * valley * valley;\n return mix(backColor, vec4(img.rgb * light, img.a), cover);\n}\n\nvec4 transition(vec2 uv) {\n bool vertical = abs(direction.y) > abs(direction.x);\n bool positive = vertical ? direction.y > 0.0 : direction.x > 0.0;\n // a: along the motion, 0 on the side the outgoing image folds up toward; b: across it\n float a = vertical ? uv.y : uv.x;\n if (positive) a = 1.0 - a;\n float b = vertical ? uv.x : uv.y;\n float len = vertical ? 1.0 : ratio;\n float bLen = vertical ? ratio : 1.0;\n\n float p = progress;\n float e = p * p * (3.0 - 2.0 * p);\n e = mix(p, e, 0.8);\n // visible part of each image's length\n float cFrom = 1.0 - e;\n float cTo = e;\n if (a < cFrom || cTo <= 0.0) {\n // the outgoing image, anchored on its side\n return pleated(a / cFrom, cFrom, len, b * bLen, bLen, false, positive, vertical);\n }\n // the incoming image, anchored on the opposite side\n return pleated(1.0 - (1.0 - a) / cTo, cTo, len, b * bLen, bLen, true, positive, vertical);\n}\n","author":"gre","license":"MIT","description":"The outgoing image folds up like a pleated paper toward one side while the incoming one unfolds out of the other, both in 3D with lit and shadowed pleats","tags":["fold","3d","slide","stripes"],"params":{"pleats":{"type":"int","default":4,"min":1,"max":12,"step":1,"description":"Number of pleats in each image (a pleat is a pair of panels, one lit and one in the shade)"},"direction":{"type":"vec2","default":[-1,0],"description":"Direction in which the images move, snapped to its main axis (left, right, up or down): the outgoing image folds up toward it, the incoming one unfolds from the opposite side"},"shading":{"type":"float","default":0.7,"min":0,"max":1,"description":"Contrast between the lit and the shaded panels"},"perspective":{"type":"float","default":1.5,"min":0,"max":3,"description":"Amount of perspective: the valleys between the pleats recede"},"backColor":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color seen around the folded images, where the valleys recede"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:36:49 +0100","updatedAt":"Sun, 1 Nov 2026 20:36:49 +0100"},{"name":"ApertureWipe","paramsTypes":{"blades":"int","rotation":"float","shadow":"float"},"defaultParams":{"blades":6,"rotation":60,"shadow":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: A camera aperture opens its turning blades to reveal the incoming image\n// Tags: shape, wipe, iris, rotate\n\n#define PI 3.141592653589793\n\n// @range(3, 12) Number of blades\nuniform int blades; // = 6\n// @range(-180, 180) How much the blades turn while opening, in degrees\nuniform float rotation; // = 60.0\n// @range(0, 1) How dark the blades are shaded along their edges\nuniform float shadow; // = 0.5\n\nconst float AA = 0.006;\n\nvec4 transition (vec2 uv) {\n // Square pixels, normalized so the frame's corners are at distance 1\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0) / (0.5 * length(vec2(ratio, 1.0)));\n float n = clamp(float(blades), 3.0, 12.0);\n float sector = 2.0 * PI / n;\n float turn = radians(rotation) * progress;\n // Each blade's straight edge is at distance r from the center: the opening is the polygon they enclose\n float r = mix(-AA, 1.0 + AA, progress);\n float dist = -1e3;\n float seam = 0.0;\n for (int i = 0; i < 12; i++) {\n if (float(i) < n) {\n float angle = turn + float(i) * sector;\n float d = dot(q, vec2(cos(angle), sin(angle))) - r;\n float next = dot(q, vec2(cos(angle + sector), sin(angle + sector))) - r;\n dist = max(dist, d);\n // Past its corner, the edge of a blade lies over the next blade and casts a shadow on it\n float s = 1.0 - smoothstep(0.0, 0.12, -d);\n seam = max(seam, (1.0 - smoothstep(0.0, AA, d)) * s * s * smoothstep(0.0, AA, next));\n }\n }\n // The blades are also shaded along the opening; the shading fades in as the aperture starts to open\n float rim = 1.0 - smoothstep(0.0, 0.08, dist);\n float shade = shadow * max(rim * rim, seam) * smoothstep(0.0, 0.1, progress);\n vec4 from = getFromColor(uv);\n from.rgb *= 1.0 - shade;\n return mix(from, getToColor(uv), 1.0 - smoothstep(0.0, AA, dist));\n}\n","author":"gre","license":"MIT","description":"A camera aperture opens its turning blades to reveal the incoming image","tags":["shape","wipe","iris","rotate"],"params":{"blades":{"type":"int","default":6,"min":3,"max":12,"description":"Number of blades"},"rotation":{"type":"float","default":60,"min":-180,"max":180,"description":"How much the blades turn while opening, in degrees"},"shadow":{"type":"float","default":0.5,"min":0,"max":1,"description":"How dark the blades are shaded along their edges"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:17:51 +0100","updatedAt":"Sat, 31 Oct 2026 18:17:51 +0100"},{"name":"ArrowWipe","paramsTypes":{"direction":"vec2","notch":"float","width":"float","count":"int","origin":"bool","smoothness":"float"},"defaultParams":{"direction":[1,0],"notch":0.4,"width":80,"count":1,"origin":false,"smoothness":0.004},"glsl":"// Author: gre\n// License: MIT\n// Description: A notched arrowhead window onto the incoming image flies in from the edge behind it (or appears at the center), then swells until it fills the frame\n// Tags: shape, wipe, arrow, chevron, directional\n\n// @param Direction the arrow points and flies toward\nuniform vec2 direction; // = vec2(1.0, 0.0)\n// @range(0, 0.9) Depth of the notch at the back of the arrowhead (0 for a plain triangle)\nuniform float notch; // = 0.4\n// @range(20, 160) Opening angle of the arrowhead's tip, in degrees\nuniform float width; // = 80.0\n// @range(1, 3, 1) Number of nested chevrons flying in a row\nuniform int count; // = 1\n// @param Grow the arrow from the center of the frame instead of flying it in\nuniform bool origin; // = false\n// @range(0, 0.1) Softness of the arrow's edges\nuniform float smoothness; // = 0.004\n\n// Signed distance (in frame heights) to an arrowhead whose tip is at x = tip and whose notch\n// reaches back to x = back, in the arrow's frame (x along the direction, y = |across|)\nfloat arrow(vec2 q, float tip, float back, vec2 tipN, vec2 notchN) {\n float front = dot(vec2(q.x - tip, q.y), tipN);\n float rear = dot(vec2(back - q.x, -q.y), notchN);\n return max(front, rear);\n}\n\nvec4 transition(vec2 uv) {\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n vec2 across = vec2(-dir.y, dir.x);\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n vec2 q = vec2(dot(p, dir), abs(dot(p, across)));\n\n float s = max(smoothness, 0.001);\n float n = clamp(notch, 0.0, 0.9);\n float h = radians(0.5 * clamp(width, 20.0, 160.0));\n float cot = cos(h) / sin(h);\n // outward normals of the tip's edges and of the notch's edges\n vec2 tipN = vec2(sin(h), cos(h));\n float notchLen = length(vec2(1.0, n * cot));\n vec2 notchN = vec2(1.0, n * cot) / notchLen;\n // how far the tip must pass a point for the soft edge to clear it\n float tipPad = s / sin(h);\n\n // The frame's corners in the arrow's frame\n vec2 c1 = vec2(0.5 * ratio, 0.5);\n vec2 c2 = vec2(0.5 * ratio, -0.5);\n vec2 k1 = vec2(abs(dot(c1, dir)), abs(dot(c1, across)));\n vec2 k2 = vec2(abs(dot(c2, dir)), abs(dot(c2, across)));\n // half extent of the frame along the direction, and where its back edge crosses the axis\n float e = max(k1.x, k2.x);\n float r = 0.5 / max(abs(dir.x) / ratio, abs(dir.y));\n // To cover the frame, the tip must be ahead of every corner, and the notch behind every\n // corner and behind the back edge's middle (with room for the soft edge)\n float tipMin = max(k1.x + k1.y * cot, k2.x + k2.y * cot) + tipPad;\n float notchMax = min(min(n * cot * k1.y - k1.x, n * cot * k2.y - k2.x), -r) - s * notchLen;\n\n // The arrow (length 1 from tip to barbs) turns around the middle of its axis: its tip is\n // half its body ahead of that point, its notch half its body behind\n float body = 0.5 * (1.0 - n);\n // The scale at which the arrow centered on the frame covers it\n float cover = max(tipMin, -notchMax) / body;\n\n float t = progress;\n float o; // middle of the arrow\n float l; // size of the arrow\n if (origin) {\n o = 0.0;\n l = cover * t * (0.4 + 0.6 * t);\n } else {\n // while it flies, its larger side (length or span) is about the frame's smaller side\n float l0 = 0.92 * min(1.0, ratio) / max(1.0, 2.0 * tan(h));\n // starts just behind the frame, flies to the middle, then swells\n float o0 = -e - 2.0 * tipPad - body * l0;\n // it is already moving when it enters, and slows down as it starts to swell\n float u = 1.0 - clamp(t / 0.65, 0.0, 1.0);\n float fly = 1.0 - u * u * u;\n // the swell speeds up and still moves at the end, so the last corners do not linger\n float grow = clamp((t - 0.3) / 0.7, 0.0, 1.0);\n o = mix(o0, 0.0, fly);\n l = mix(l0, cover, grow * grow * (2.0 - grow));\n }\n\n // the nested chevrons follow the first one, each tucked behind the previous one's notch\n float gap = (1.0 - n) * 1.35;\n float d = arrow(q, o + body * l, o - body * l, tipN, notchN);\n for (int i = 1; i < 3; i++) {\n if (i < count) {\n float back = o - float(i) * gap * l;\n d = min(d, arrow(q, back + body * l, back - body * l, tipN, notchN));\n }\n }\n // the soft edge slides from outside the arrow to inside it, so nothing shows at the start\n float m = 1.0 - smoothstep(-s, s, d + 2.0 * s * (1.0 - t));\n\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"A notched arrowhead window onto the incoming image flies in from the edge behind it (or appears at the center), then swells until it fills the frame","tags":["shape","wipe","arrow","chevron","directional"],"params":{"direction":{"type":"vec2","default":[1,0],"description":"Direction the arrow points and flies toward"},"notch":{"type":"float","default":0.4,"min":0,"max":0.9,"description":"Depth of the notch at the back of the arrowhead (0 for a plain triangle)"},"width":{"type":"float","default":80,"min":20,"max":160,"description":"Opening angle of the arrowhead's tip, in degrees"},"count":{"type":"int","default":1,"min":1,"max":3,"step":1,"description":"Number of nested chevrons flying in a row"},"origin":{"type":"bool","default":false,"description":"Grow the arrow from the center of the frame instead of flying it in"},"smoothness":{"type":"float","default":0.004,"min":0,"max":0.1,"description":"Softness of the arrow's edges"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 16:31:10 +0100","updatedAt":"Wed, 4 Nov 2026 16:31:10 +0100"},{"name":"Ascii","paramsTypes":{"cellSize":"float","colored":"bool","ink":"vec4","background":"vec4"},"defaultParams":{"cellSize":0.04,"colored":true,"ink":[0.3,1,0.45,1],"background":[0,0,0,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The image turns into text-mode characters, denser where it is brighter, the characters scramble into those of the incoming image, then resolve back into it\n// Tags: text, pattern, retro, digital\n\n// @range(0.01, 0.1) Height of a character, in frame heights\nuniform float cellSize; // = 0.04\n// @param Color the characters with the image (otherwise, with the ink color)\nuniform bool colored; // = true\n// @color Color of the characters when they are not colored with the image\nuniform vec4 ink; // = vec4(0.3, 1.0, 0.45, 1.0)\n// @color Color behind the characters\nuniform vec4 background; // = vec4(0.0, 0.0, 0.0, 1.0)\n\n// width of a character cell, in cell heights\nconst float ASPECT = 0.6;\n// half width of the strokes, in cell heights\nconst float STROKE = 0.05;\n\nfloat hash12(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// distance to the segment from a to b\nfloat segment(vec2 q, vec2 a, vec2 b) {\n vec2 pa = q - a;\n vec2 ba = b - a;\n return length(pa - ba * clamp(dot(pa, ba) / dot(ba, ba), 0.0, 1.0));\n}\n\n// distance to the strokes of the character of this density, from 0 (\" \") to 9 (\"@\"),\n// at q, in cell heights from the cell's center\nfloat glyph(float g, vec2 q) {\n if (g < 0.5) return 1.0; // \" \"\n if (g < 1.5) return length(q - vec2(0.0, -0.27)) - 0.035; // \".\"\n if (g < 2.5) return min(length(q - vec2(0.0, -0.25)), length(q - vec2(0.0, 0.1))) - 0.035; // \":\"\n if (g < 3.5) return segment(q, vec2(-0.17, 0.0), vec2(0.17, 0.0)) - STROKE; // \"-\"\n if (g < 4.5) { // \"=\"\n return min(segment(q, vec2(-0.18, 0.1), vec2(0.18, 0.1)), segment(q, vec2(-0.18, -0.1), vec2(0.18, -0.1))) - STROKE;\n }\n if (g < 5.5) { // \"+\"\n return min(segment(q, vec2(-0.19, 0.0), vec2(0.19, 0.0)), segment(q, vec2(0.0, -0.19), vec2(0.0, 0.19))) - STROKE;\n }\n if (g < 6.5) { // \"*\"\n float d = segment(q, vec2(0.0, -0.2), vec2(0.0, 0.2));\n d = min(d, segment(q, vec2(-0.18, -0.11), vec2(0.18, 0.11)));\n d = min(d, segment(q, vec2(-0.18, 0.11), vec2(0.18, -0.11)));\n return d - STROKE;\n }\n if (g < 7.5) { // \"#\"\n float d = min(segment(q, vec2(-0.06, -0.3), vec2(-0.1, 0.3)), segment(q, vec2(0.12, -0.3), vec2(0.08, 0.3)));\n d = min(d, min(segment(q, vec2(-0.24, 0.11), vec2(0.24, 0.11)), segment(q, vec2(-0.24, -0.11), vec2(0.24, -0.11))));\n return d - STROKE;\n }\n if (g < 8.5) { // \"%\"\n float d = segment(q, vec2(-0.2, -0.3), vec2(0.2, 0.3));\n d = min(d, abs(length(q - vec2(-0.13, 0.19)) - 0.08));\n d = min(d, abs(length(q - vec2(0.13, -0.19)) - 0.08));\n return d - STROKE;\n }\n // \"@\": a ring around a small \"a\"\n float d = abs(length(q) - 0.25);\n d = min(d, abs(length(q - vec2(-0.02, 0.0)) - 0.1));\n d = min(d, segment(q, vec2(0.08, 0.1), vec2(0.08, -0.12)));\n return d - 0.8 * STROKE;\n}\n\n// the brightness of a color, from 0 to 1, as a character density\nfloat density(vec4 c) {\n return floor(pow(clamp(dot(c.rgb, vec3(0.299, 0.587, 0.114)) * c.a, 0.0, 1.0), 0.75) * 9.99);\n}\n\n// the average color of a cell, from 4 samples\nvec4 cellColor(vec2 center, vec2 dims, bool incoming) {\n vec4 c = vec4(0.0);\n for (int i = 0; i < 4; i++) {\n vec2 o = (vec2(mod(float(i), 2.0), floor(float(i) / 2.0)) - 0.5) * 0.5 * dims;\n vec2 st = clamp((center + o) / vec2(ratio, 1.0) + 0.5, 0.0, 1.0);\n c += incoming ? getToColor(st) : getFromColor(st);\n }\n return c * 0.25;\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n float h = cellSize;\n vec2 fp = (uv - 0.5) * vec2(ratio, 1.0);\n vec2 dims = vec2(ASPECT * h, h);\n vec2 cell = floor(fp / dims);\n vec2 center = (cell + 0.5) * dims;\n vec2 q = (fp - center) / h;\n\n // each cell switches to the incoming image at its own time, scrambling through\n // random characters around it\n float r = hash12(cell + 100.0);\n float at = 0.4 + 0.2 * r;\n bool incoming = p > at;\n vec4 c = cellColor(center, dims, incoming);\n float g = density(c);\n float scramble = 1.0 - smoothstep(0.02, 0.045, abs(p - at));\n if (hash12(cell + floor(p * 40.0) * vec2(17.0, 31.0)) < scramble) {\n g = 1.0 + floor(9.0 * hash12(cell * 1.7 + floor(p * 40.0) * vec2(5.0, 11.0)));\n }\n\n float cover = 1.0 - smoothstep(-0.02, 0.02, glyph(g, q));\n vec3 tint = colored ? mix(c.rgb, c.rgb / max(max(c.r, max(c.g, c.b)), 0.05), 0.7) : ink.rgb;\n float alpha = colored ? c.a : ink.a * c.a;\n // where the image is transparent, so are the characters and their background\n // colored characters glow faintly over their cell, so the picture stays readable\n vec3 behind = colored ? mix(background.rgb, c.rgb, 0.3) : background.rgb;\n vec4 back = vec4(behind, background.a * c.a);\n vec4 text = mix(back, vec4(clamp(tint, 0.0, 1.0), alpha), cover);\n\n // each cell dissolves into its character at its own time, from 0.05 to 0.35,\n // and back into the incoming image from 0.65 to 0.95\n float into = 0.05 + 0.22 * hash12(cell + 200.0);\n float outof = 0.95 - 0.22 * hash12(cell + 300.0);\n float show = smoothstep(into, into + 0.08, p) * (1.0 - smoothstep(outof - 0.08, outof, p));\n vec4 image = p < 0.5 ? getFromColor(uv) : getToColor(uv);\n return mix(image, text, show);\n}\n","author":"gre","license":"MIT","description":"The image turns into text-mode characters, denser where it is brighter, the characters scramble into those of the incoming image, then resolve back into it","tags":["text","pattern","retro","digital"],"params":{"cellSize":{"type":"float","default":0.04,"min":0.01,"max":0.1,"description":"Height of a character, in frame heights"},"colored":{"type":"bool","default":true,"description":"Color the characters with the image (otherwise, with the ink color)"},"ink":{"type":"vec4","default":[0.3,1,0.45,1],"color":true,"description":"Color of the characters when they are not colored with the image"},"background":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color behind the characters"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:41:06 +0100","updatedAt":"Sun, 1 Nov 2026 20:41:06 +0100"},{"name":"BandWipe","paramsTypes":{"bands":"int","vertical":"bool","smoothness":"float","stagger":"float"},"defaultParams":{"bands":8,"vertical":false,"smoothness":0.02,"stagger":0.1},"glsl":"// Author: gre\n// License: MIT\n// Description: Alternating bands wipe in from opposite sides together and interleave like fingers, while both images stay still\n// Tags: wipe, stripes, interleave, horizontal\n\n// @range(2, 40, 1) Number of bands\nuniform int bands; // = 8\n// @param Cut the frame into columns that wipe up and down instead of rows that wipe sideways\nuniform bool vertical; // = false\n// @range(0, 0.2) Softness of the bands' leading edges\nuniform float smoothness; // = 0.02\n// @range(0, 0.8) Delay between the first and the last band, so they cascade from the top (or the left)\nuniform float stagger; // = 0.1\n\n// half width of the antialiased edges, in frame heights\nconst float AA = 0.0015;\n\n// how far band i has wiped in (0..1) at position a along the bands (0..l), alternate bands\n// entering from opposite ends\nfloat bandMask(float i, float n, float a, float l, float s) {\n // each band takes the same time, starting a little after the one before it from the top\n // (or the left)\n float k = vertical ? i : n - 1.0 - i;\n float g = clamp(stagger, 0.0, 0.95);\n float t = clamp((progress - g * k / max(n - 1.0, 1.0)) / (1.0 - g), 0.0, 1.0);\n t = mix(t, t * t * (3.0 - 2.0 * t), 0.5);\n float x = mod(i, 2.0) > 0.5 ? l - a : a;\n // the edge starts fully before the band and ends fully past it\n float c = mix(-s, l + s, t);\n return 1.0 - smoothstep(c - s, c + s, x);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n float n = float(bands < 1 ? 1 : bands);\n // along: position along the bands, in frame heights; across: position across them (0..1)\n float along = vertical ? uv.y : uv.x * ratio;\n float across = vertical ? uv.x : uv.y;\n float l = vertical ? 1.0 : ratio;\n // the antialiasing across the bands, in units of across\n float aaAcross = vertical ? AA / ratio : AA;\n float s = max(smoothness, AA);\n\n float f = across * n;\n float i = clamp(floor(f), 0.0, n - 1.0);\n float m = bandMask(i, n, along, l, s);\n\n // near a cut between two bands, blend with the neighbor band over a pixel or so so the cut\n // does not alias (at the frame's borders the neighbor is the band itself)\n float fr = f - i;\n float edge = min(fr, 1.0 - fr) / n;\n if (edge < aaAcross) {\n float j = clamp(fr < 0.5 ? i - 1.0 : i + 1.0, 0.0, n - 1.0);\n m = mix(bandMask(j, n, along, l, s), m, 0.5 + 0.5 * smoothstep(0.0, aaAcross, edge));\n }\n\n if (m <= 0.0) return getFromColor(uv);\n if (m >= 1.0) return getToColor(uv);\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Alternating bands wipe in from opposite sides together and interleave like fingers, while both images stay still","tags":["wipe","stripes","interleave","horizontal"],"params":{"bands":{"type":"int","default":8,"min":2,"max":40,"step":1,"description":"Number of bands"},"vertical":{"type":"bool","default":false,"description":"Cut the frame into columns that wipe up and down instead of rows that wipe sideways"},"smoothness":{"type":"float","default":0.02,"min":0,"max":0.2,"description":"Softness of the bands' leading edges"},"stagger":{"type":"float","default":0.1,"min":0,"max":0.8,"description":"Delay between the first and the last band, so they cascade from the top (or the left)"}},"textures":[],"createdAt":"Thu, 5 Nov 2026 07:30:55 +0100","updatedAt":"Thu, 5 Nov 2026 07:30:55 +0100"},{"name":"BlockCover","paramsTypes":{"blocks":"int","color":"vec4","pop":"float","smoothness":"float"},"defaultParams":{"blocks":16,"color":[0.95,0.32,0.26,1],"pop":0.5,"smoothness":0.03},"glsl":"// Author: gre\n// License: MIT\n// Description: Blocks of a solid color pop in at random over the outgoing image until they cover the frame, then pop out in another random order to show the incoming image\n// Tags: blocks, grid, squares, color, cover\n\n// @range(1, 40, 1) Number of blocks along the longer side of the frame (the blocks stay about square)\nuniform int blocks; // = 16\n// @color Color of the blocks\nuniform vec4 color; // = vec4(0.95, 0.32, 0.26, 1.0)\n// @range(0, 1) How much a block overshoots its cell as it pops in\nuniform float pop; // = 0.5\n// @range(0, 0.5) Softness of the blocks' edges, in blocks\nuniform float smoothness; // = 0.03\n\nconst float duration = 0.14; // of one block's pop, in progress\nconst float cut = 0.45; // the frame is fully covered from cut - hold to cut + hold\nconst float hold = 0.02;\n\nfloat hash (vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// eases from 0 to 1, a little past 1 (more with a larger c) and back\nfloat backOut (float t, float c) {\n float u = t - 1.0;\n return 1.0 + (c + 1.0) * u * u * u + c * u * u;\n}\n\n// when a cell's block starts to pop in (.x) and to pop out (.y)\nvec2 timing (vec2 cell) {\n return vec2(\n (cut - hold - duration) * hash(cell + 0.5),\n cut + hold + (1.0 - cut - hold - duration) * hash(cell + 71.7));\n}\n\n// scale of the block of a cell: 0 when it is not there, 1 when it fills its cell\nfloat blockScale (vec2 cell, float c) {\n vec2 t = timing(cell);\n float a = clamp((progress - t.x) / duration, 0.0, 1.0);\n float b = clamp((progress - t.y) / duration, 0.0, 1.0);\n // it grows from nothing with an overshoot, and shrinks back to nothing\n return b > 0.0 ? (1.0 - b) * (1.0 - b) : backOut(a, c);\n}\n\n// how much of the point q (in cells) the block of a cell covers\nfloat coverage (vec2 q, vec2 cell, float s, float sm) {\n // at scale 1, its solid part fills the whole cell, so that a covered frame shows no seams\n float h = s * (0.5 + sm);\n vec2 d = abs(q - cell - 0.5);\n return s > 0.0 ? 1.0 - smoothstep(h - sm, h, max(d.x, d.y)) : 0.0;\n}\n\nvec4 transition (vec2 uv) {\n float nLong = max(float(blocks), 1.0);\n vec2 n = ratio >= 1.0\n ? vec2(nLong, max(1.0, floor(nLong / ratio + 0.5)))\n : vec2(max(1.0, floor(nLong * ratio + 0.5)), nLong);\n vec2 q = uv * n;\n vec2 cell = floor(q);\n float sm = max(smoothness, 0.001);\n float c = 2.0 * clamp(pop, 0.0, 1.0);\n float s = blockScale(cell, c);\n if (s >= 1.0) return color;\n float cover = coverage(q, cell, s, sm);\n // a neighbour's block can overshoot onto this cell, near its border only\n float u = -2.0 * c / (3.0 * (c + 1.0));\n float reach = backOut(1.0 + u, c) * (0.5 + sm);\n vec2 o = abs(q - cell - 0.5);\n if (max(o.x, o.y) > 1.0 - reach) {\n for (int j = -1; j <= 1; j++) {\n for (int i = -1; i <= 1; i++) {\n vec2 nb = cell + vec2(float(i), float(j));\n vec2 inside = step(vec2(0.0), nb) * step(nb, n - 1.0);\n if (inside.x * inside.y > 0.0 && (i != 0 || j != 0)) {\n cover = max(cover, coverage(q, nb, blockScale(nb, c), sm));\n }\n }\n }\n }\n // each cell switches to the incoming image while its own block covers it\n vec2 t = timing(cell);\n vec4 under = progress < 0.5 * (t.x + duration + t.y) ? getFromColor(uv) : getToColor(uv);\n return mix(under, color, cover);\n}\n","author":"gre","license":"MIT","description":"Blocks of a solid color pop in at random over the outgoing image until they cover the frame, then pop out in another random order to show the incoming image","tags":["blocks","grid","squares","color","cover"],"params":{"blocks":{"type":"int","default":16,"min":1,"max":40,"step":1,"description":"Number of blocks along the longer side of the frame (the blocks stay about square)"},"color":{"type":"vec4","default":[0.95,0.32,0.26,1],"color":true,"description":"Color of the blocks"},"pop":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much a block overshoots its cell as it pops in"},"smoothness":{"type":"float","default":0.03,"min":0,"max":0.5,"description":"Softness of the blocks' edges, in blocks"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 09:50:49 +0100","updatedAt":"Mon, 2 Nov 2026 09:50:49 +0100"},{"name":"BlockSlide","paramsTypes":{"grid":"ivec2","direction":"vec2","stagger":"float","zoom":"float","background":"vec4"},"defaultParams":{"grid":[5,4],"direction":[1,0],"stagger":0.6,"zoom":0.35,"background":[0,0,0,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame is cut into a grid of blocks that slide out one after another in a staggered cascade, some of them shrinking as they go, while the blocks of the incoming image slide in behind them to take their place\n// Tags: slide, blocks, grid, directional, zoom\n\n// @param Number of blocks (columns, rows), at most 40 along the direction\nuniform ivec2 grid; // = ivec2(5, 4)\n// @param Direction the blocks slide toward (rounded to the nearest axis)\nuniform vec2 direction; // = vec2(1.0, 0.0)\n// @range(0, 0.95) Share of the transition over which the blocks set off one after another (0 slides them all together)\nuniform float stagger; // = 0.6\n// @range(0, 0.9) How much the zooming blocks shrink on their way, as a share of their size\nuniform float zoom; // = 0.35\n// @color Color seen in the gaps between the blocks\nuniform vec4 background; // = vec4(0.0, 0.0, 0.0, 1.0)\n\n// blocks per strip, at most\nconst int MAX_BLOCKS = 40;\n\nfloat hash(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n bool vertical = abs(direction.y) > abs(direction.x);\n bool backward = vertical ? direction.y < 0.0 : direction.x < 0.0;\n vec2 g = max(vec2(grid), 1.0);\n // a: position along the motion, toward which the blocks slide, b: across it\n float a = vertical ? uv.y : uv.x;\n float b = vertical ? uv.x : uv.y;\n if (backward) a = 1.0 - a;\n float n = min(vertical ? g.y : g.x, float(MAX_BLOCKS));\n float strips = vertical ? g.x : g.y;\n // every block of a strip slides along it, so a point can only show a block of its own strip\n float r = min(floor(b * strips), strips - 1.0);\n // the strips set off one after another, from the top (or the left)\n float rowOrder = strips > 1.0 ? (vertical ? r : strips - 1.0 - r) / (strips - 1.0) : 0.0;\n float st = clamp(stagger, 0.0, 0.95);\n float z = clamp(zoom, 0.0, 0.9);\n // in blocks\n float an = a * n;\n float bn = b * strips - r;\n\n // the incoming blocks follow the last outgoing block to leave, the rear one: they all\n // stay behind it, so no block ever overlaps another, and each one gets closer to the\n // block ahead of it until they all arrive together\n float rear = clamp((progress - st * mix(rowOrder, 1.0, 0.2)) / (1.0 - st), 0.0, 1.0);\n rear = rear * rear * (3.0 - 2.0 * rear);\n\n for (int k = 0; k < MAX_BLOCKS; k++) {\n float i = float(k);\n if (i >= n) break;\n // the block at the front sets off first, so that the outgoing blocks move apart\n float order = mix(rowOrder, n > 1.0 ? (n - 1.0 - i) / (n - 1.0) : 0.0, 0.2);\n float p = clamp((progress - st * order) / (1.0 - st), 0.0, 1.0);\n p = p * p * (3.0 - 2.0 * p);\n float pin = max(0.0, 1.0 - (1.0 - rear) * (1.0 + (n - 1.0 - i) / n));\n // about half of the blocks shrink as they leave, and their incoming blocks grow as they come\n float zi = hash(vec2(i, r) + 3.7) < 0.5 ? z : 0.0;\n // position in the block, from its corner, for the outgoing block (xy), which travels the\n // frame's length to leave it, and the incoming one (zw), from one length behind; at rest,\n // the blocks tile the frame exactly\n float sFrom = 1.0 - zi * p * p;\n float sTo = 1.0 - zi * (1.0 - pin) * (1.0 - pin);\n vec4 l = vec4(\n (an - i - p * n - 0.5 * (1.0 - sFrom)) / sFrom,\n (bn - 0.5 * (1.0 - sFrom)) / sFrom,\n (an - i - (pin - 1.0) * n - 0.5 * (1.0 - sTo)) / sTo,\n (bn - 0.5 * (1.0 - sTo)) / sTo);\n bool inFrom = all(greaterThanEqual(l.xy, vec2(0.0))) && all(lessThan(l.xy, vec2(1.0)));\n bool inTo = all(greaterThanEqual(l.zw, vec2(0.0))) && all(lessThan(l.zw, vec2(1.0)));\n if (inFrom || inTo) {\n // back to the frame's coordinates\n vec2 q = (vec2(i, r) + (inTo ? l.zw : l.xy)) / vec2(n, strips);\n if (backward) q.x = 1.0 - q.x;\n q = vertical ? q.yx : q;\n return inTo ? getToColor(q) : getFromColor(q);\n }\n }\n return background;\n}\n","author":"gre","license":"MIT","description":"The frame is cut into a grid of blocks that slide out one after another in a staggered cascade, some of them shrinking as they go, while the blocks of the incoming image slide in behind them to take their place","tags":["slide","blocks","grid","directional","zoom"],"params":{"grid":{"type":"ivec2","default":[5,4],"description":"Number of blocks (columns, rows), at most 40 along the direction"},"direction":{"type":"vec2","default":[1,0],"description":"Direction the blocks slide toward (rounded to the nearest axis)"},"stagger":{"type":"float","default":0.6,"min":0,"max":0.95,"description":"Share of the transition over which the blocks set off one after another (0 slides them all together)"},"zoom":{"type":"float","default":0.35,"min":0,"max":0.9,"description":"How much the zooming blocks shrink on their way, as a share of their size"},"background":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color seen in the gaps between the blocks"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:11:46 +0100","updatedAt":"Wed, 4 Nov 2026 20:11:46 +0100"},{"name":"BloomDissolve","paramsTypes":{"spread":"float","threshold":"float","intensity":"float","tint":"vec3"},"defaultParams":{"spread":0.25,"threshold":0.6,"intensity":1.5,"tint":[1,0.9,0.75]},"glsl":"// Author: gre\n// License: MIT\n// Description: The highlights of the outgoing image blow out into a soft, wide glow that floods the frame; under it the incoming image takes over, then the glow subsides back into its highlights while the image stays sharp\n// Tags: light, glow, bloom, dissolve\n\n// @range(0, 0.6) Reach of the glow at the peak, in frame heights\nuniform float spread; // = 0.25\n// @range(0, 1) Brightness above which the image glows (the whole frame does at the peak)\nuniform float threshold; // = 0.6\n// @range(0, 4) Brightness of the glow\nuniform float intensity; // = 1.5\n// @color Tint of the glow, toward its edges\nuniform vec3 tint; // = vec3(1.0, 0.9, 0.75)\n\n// pairs of opposite taps: 20 reads per pixel\nconst int PAIRS = 10;\nconst float GOLDEN_ANGLE = 2.399963;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// the image on screen at a point, premultiplied: one image, or both during the short switch\nvec4 image(vec2 st, float m) {\n if (m <= 0.0) {\n vec4 c = getFromColor(st);\n return vec4(c.rgb * c.a, c.a);\n }\n if (m >= 1.0) {\n vec4 c = getToColor(st);\n return vec4(c.rgb * c.a, c.a);\n }\n vec4 a = getFromColor(st);\n vec4 b = getToColor(st);\n return mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n}\n\n// the light of a pixel (premultiplied): its color above the knee, full well before white\nvec3 glow(vec4 c, float knee) {\n float lum = dot(c.rgb, vec3(0.2126, 0.7152, 0.0722));\n return c.rgb * smoothstep(knee, knee + max(0.3 * (1.0 - knee), 1e-3), lum);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n // the glow blooms on the outgoing image, and subsides on the incoming one\n float amount = 4.0 * p * (1.0 - p);\n float peak = amount * amount;\n // around the middle, the whole frame catches the light and floods with glow\n float flood = peak * peak * peak;\n // the switch, under the glow at its brightest\n float m = smoothstep(0.44, 0.56, p);\n if (amount <= 0.0) return m < 0.5 ? getFromColor(uv) : getToColor(uv);\n\n // the image stays sharp underneath (premultiplied colors, only the images on screen are read)\n vec4 c = image(uv, m);\n if (c.a <= 0.0) return vec4(0.0);\n c.rgb /= c.a;\n\n // more and more of the image catches the light as the glow grows\n float knee = threshold * (1.0 - 0.3 * peak) * (1.0 - flood);\n float radius = spread * amount;\n // a rotation and a radial shift of the spiral for each pixel blend the taps into a smooth glow;\n // hashed by integer cell so that every GPU computes the same values\n vec2 cell = floor(uv * vec2(ratio, 1.0) * 997.0);\n float spin = 6.2831853 * hash12(cell);\n float shift = hash12(cell + 71.0);\n\n // a golden-angle spiral, denser toward the center so the glow is bright at its core with a wide soft tail;\n // each tap is read with its opposite, which cancels most of the noise across smooth gradients\n vec3 bloom = vec3(0.0);\n vec4 soft = vec4(0.0);\n float total = 0.0;\n for (int i = 0; i < PAIRS; i++) {\n float s = (float(i) + shift) / float(PAIRS);\n float r = s * s;\n float a = float(i) * GOLDEN_ANGLE + spin;\n vec2 offset = radius * r * vec2(cos(a) / ratio, sin(a));\n vec4 i0 = image(mirror(uv + offset), m);\n vec4 i1 = image(mirror(uv - offset), m);\n vec3 l = glow(i0, knee) + glow(i1, knee);\n // the sparse outer taps weigh less, so the tail of the glow stays smooth\n float w = 1.0 - 0.75 * s;\n // white at the core, tinted toward the edges\n bloom += w * mix(vec3(1.0), tint, smoothstep(0.0, 0.5, r)) * l;\n total += w;\n // a closer blur of the image, to soften it\n float sw = (1.0 - s) * (1.0 - s);\n soft += sw * (i0 + i1);\n }\n bloom /= 2.0 * total;\n // at the peak the light softens the image itself, which hides the switch\n vec3 blurred = soft.a > 0.0 ? soft.rgb / soft.a : c.rgb;\n vec3 base = mix(c.rgb, blurred, 0.7 * flood);\n bloom *= intensity * peak * (1.0 + 2.0 * flood);\n // compressed, so that the glow floods the frame without flattening into white\n bloom = 0.92 * (1.0 - exp(-bloom));\n\n // the glow is a light screened over the image: it adds nothing to its alpha\n base = min(base * (1.0 + 0.25 * peak), 1.0);\n return vec4(base + bloom - base * bloom, c.a);\n}\n","author":"gre","license":"MIT","description":"The highlights of the outgoing image blow out into a soft, wide glow that floods the frame; under it the incoming image takes over, then the glow subsides back into its highlights while the image stays sharp","tags":["light","glow","bloom","dissolve"],"params":{"spread":{"type":"float","default":0.25,"min":0,"max":0.6,"description":"Reach of the glow at the peak, in frame heights"},"threshold":{"type":"float","default":0.6,"min":0,"max":1,"description":"Brightness above which the image glows (the whole frame does at the peak)"},"intensity":{"type":"float","default":1.5,"min":0,"max":4,"description":"Brightness of the glow"},"tint":{"type":"vec3","default":[1,0.9,0.75],"color":true,"description":"Tint of the glow, toward its edges"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 21:47:56 +0100","updatedAt":"Mon, 2 Nov 2026 21:47:56 +0100"},{"name":"BokehDissolve","paramsTypes":{"radius":"float","blades":"int","threshold":"float","intensity":"float"},"defaultParams":{"radius":0.05,"blades":0,"threshold":0.7,"intensity":1},"glsl":"// Author: gre\n// License: MIT\n// Description: The image falls out of focus like a camera lens, its highlights swelling into large bright bokeh discs, and the incoming image sharpens back out of its own bokeh\n// Tags: blur, bokeh, lens, dissolve, light\n\n// @range(0.01, 0.15) Radius of the bokeh discs at the peak, in frame heights\nuniform float radius; // = 0.05\n// @range(0, 9) Number of aperture blades, which shape the discs into polygons (below 3: round)\nuniform int blades; // = 0\n// @range(0, 1) Brightness above which a pixel is a highlight that swells into a disc\nuniform float threshold; // = 0.7\n// @range(0, 3) Brightness of the bokeh discs\nuniform float intensity; // = 1.0\n\n#define PI 3.141592653589793\nconst int TAPS = 16;\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// a hash of an integer cell, stable across precisions\nfloat hash12(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// how much a pixel is a highlight: none below the threshold, full at white\nfloat highlight(vec4 c, float t) {\n float lum = dot(c.rgb, vec3(0.2126, 0.7152, 0.0722));\n // nothing is brighter than white, so a threshold of 1 makes no highlights\n if (t >= 1.0) return 0.0;\n float h = smoothstep(t, 1.0, lum);\n return h * h * c.a;\n}\n\nvec4 transition(vec2 uv) {\n // the lens defocuses then focuses back: 0 at both ends, 1 at the peak\n float t = 1.0 - abs(2.0 * progress - 1.0);\n float k = t * t * (3.0 - 2.0 * t);\n // the incoming image takes over while everything is out of focus\n float w = smoothstep(0.35, 0.65, progress);\n float r = radius * k;\n // the highlights weigh more as they swell, so they read as bright discs\n float boost = 12.0 * intensity * k;\n\n // fewer than 3 blades: a round aperture\n float n = blades >= 3 ? float(blades) : 0.0;\n float sector = n > 0.0 ? 2.0 * PI / n : 1.0;\n float apothem = cos(0.5 * sector);\n\n // per-pixel stratification of the taps over the disc, so its edge stays crisp\n vec2 cell = floor(uv * vec2(ratio, 1.0) * 997.0);\n float spin = 2.0 * PI * hash12(cell);\n float jitter = hash12(cell + 17.0);\n\n // each image is only read while it shows\n bool useFrom = w < 1.0;\n bool useTo = w > 0.0;\n // premultiplied, weighted sums of each image, and the light of their highlights,\n // starting with the pixel itself\n vec4 s0 = vec4(0.0);\n vec4 s1 = vec4(0.0);\n float t0 = 0.0;\n float t1 = 0.0;\n vec3 l0 = vec3(0.0);\n vec3 l1 = vec3(0.0);\n if (useFrom) {\n vec4 c = getFromColor(uv);\n float h = highlight(c, threshold);\n float wt = 1.0 + boost * h;\n s0 = wt * vec4(c.rgb * c.a, c.a);\n t0 = wt;\n l0 = h * c.rgb;\n }\n if (useTo) {\n vec4 c = getToColor(uv);\n float h = highlight(c, threshold);\n float wt = 1.0 + boost * h;\n s1 = wt * vec4(c.rgb * c.a, c.a);\n t1 = wt;\n l1 = h * c.rgb;\n }\n for (int i = 0; i < TAPS; i++) {\n float fi = float(i);\n float a = fi * 2.39996323 + spin;\n float d = sqrt((fi + jitter) / float(TAPS));\n if (n > 0.0) {\n // the aperture's polygon: its boundary in the direction of the tap\n float s = mod(a, sector) - 0.5 * sector;\n d *= apothem / cos(s);\n }\n vec2 st = mirror(uv + r * d * vec2(cos(a) / ratio, sin(a)));\n if (useFrom) {\n vec4 c = getFromColor(st);\n float h = highlight(c, threshold);\n float wt = 1.0 + boost * h;\n s0 += wt * vec4(c.rgb * c.a, c.a);\n t0 += wt;\n l0 += h * c.rgb;\n }\n if (useTo) {\n vec4 c = getToColor(st);\n float h = highlight(c, threshold);\n float wt = 1.0 + boost * h;\n s1 += wt * vec4(c.rgb * c.a, c.a);\n t1 += wt;\n l1 += h * c.rgb;\n }\n }\n vec4 b = mix(useFrom ? s0 / t0 : vec4(0.0), useTo ? s1 / t1 : vec4(0.0), w);\n if (b.a <= 0.0) {\n return vec4(0.0);\n }\n vec3 rgb = b.rgb / b.a;\n // the discs glow: light lifts the color, never the alpha\n vec3 light = mix(l0, l1, w) * (intensity * k * 4.0 / float(TAPS + 1));\n rgb = 1.0 - (1.0 - clamp(rgb, 0.0, 1.0)) * exp(-light);\n return vec4(rgb, b.a);\n}\n","author":"gre","license":"MIT","description":"The image falls out of focus like a camera lens, its highlights swelling into large bright bokeh discs, and the incoming image sharpens back out of its own bokeh","tags":["blur","bokeh","lens","dissolve","light"],"params":{"radius":{"type":"float","default":0.05,"min":0.01,"max":0.15,"description":"Radius of the bokeh discs at the peak, in frame heights"},"blades":{"type":"int","default":0,"min":0,"max":9,"description":"Number of aperture blades, which shape the discs into polygons (below 3: round)"},"threshold":{"type":"float","default":0.7,"min":0,"max":1,"description":"Brightness above which a pixel is a highlight that swells into a disc"},"intensity":{"type":"float","default":1,"min":0,"max":3,"description":"Brightness of the bokeh discs"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 20:51:47 +0100","updatedAt":"Mon, 2 Nov 2026 20:51:47 +0100"},{"name":"BookFlip","paramsTypes":{},"defaultParams":{},"glsl":"// Author: hong\n// License: MIT\n// Description: The outgoing image turns like a book page from right to left, revealing the incoming one\n// Tags: page, flip, 3d\n\n// Avoids dividing by zero when the page is edge-on (progress = 0.5).\nfloat nonZero(float x) {\n return abs(x) < 1e-4 ? (x < 0.0 ? -1e-4 : 1e-4) : x;\n}\n\nvec2 skewRight(vec2 p) {\n float skewX = (p.x - progress)/nonZero(0.5 - progress) * 0.5;\n float skewY = (p.y - 0.5)/(0.5 + progress * (p.x - 0.5) / 0.5)* 0.5 + 0.5;\n return vec2(skewX, skewY);\n}\n\nvec2 skewLeft(vec2 p) {\n float skewX = (p.x - 0.5)/nonZero(progress - 0.5) * 0.5 + 0.5;\n float skewY = (p.y - 0.5) / (0.5 + (1.0 - progress ) * (0.5 - p.x) / 0.5) * 0.5 + 0.5;\n return vec2(skewX, skewY);\n}\n\nvec4 addShade() {\n float shadeVal = max(0.7, abs(progress - 0.5) * 2.0);\n return vec4(vec3(shadeVal ), 1.0);\n}\n\nvec4 transition (vec2 p) {\n float pr = step(1.0 - progress, p.x);\n\n if (p.x < 0.5) {\n return mix(getFromColor(p), getToColor(skewLeft(p)) * addShade(), pr);\n } else {\n return mix(getFromColor(skewRight(p)) * addShade(), getToColor(p), pr);\n }\n}\n","author":"hong","license":"MIT","description":"The outgoing image turns like a book page from right to left, revealing the incoming one","tags":["page","flip","3d"],"params":{},"textures":[],"createdAt":"Fri, 27 May 2022 19:13:57 +0800","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"Bounce","paramsTypes":{"shadow_colour":"vec4","shadow_height":"float","bounces":"float"},"defaultParams":{"shadow_colour":[0,0,0,0.6],"shadow_height":0.075,"bounces":3},"glsl":"// Author: Adrian Purser\n// License: MIT\n// Description: The outgoing image drops out of the frame with a few bounces, revealing the incoming one\n// Tags: bounce, slide, vertical, shadow\n\n// @color Color of the shadow cast on the incoming image\nuniform vec4 shadow_colour; // = vec4(0.,0.,0.,.6)\n// @range(0.01, 0.5) Height of the shadow, relative to the image height\nuniform float shadow_height; // = 0.075\n// @range(1, 10, 1) Number of bounces before settling\nuniform float bounces; // = 3.0\n\nconst float PI = 3.14159265358;\n\nvec4 transition (vec2 uv) {\n float time = progress;\n float stime = sin(time * PI / 2.);\n float phase = time * PI * bounces;\n float y = (abs(cos(phase))) * (1.0 - stime);\n float d = uv.y - y;\n vec4 to = getToColor(uv);\n return mix(\n mix(\n to,\n vec4(shadow_colour.rgb, 1.0), // shadow_colour.a is in the amount: the shadow darkens, it does not make the image transparent\n step(d, shadow_height) * (1. - mix(\n ((d / shadow_height) * shadow_colour.a) + (1.0 - shadow_colour.a),\n 1.0,\n smoothstep(0.95, 1., progress) // fade-out the shadow at the end\n )) * to.a // cast on the incoming image, not on its transparent areas\n ),\n getFromColor(vec2(uv.x, uv.y + (1.0 - y))),\n step(d, 0.0)\n );\n}\n","author":"Adrian Purser","license":"MIT","description":"The outgoing image drops out of the frame with a few bounces, revealing the incoming one","tags":["bounce","slide","vertical","shadow"],"params":{"shadow_colour":{"type":"vec4","default":[0,0,0,0.6],"color":true,"description":"Color of the shadow cast on the incoming image"},"shadow_height":{"type":"float","default":0.075,"min":0.01,"max":0.5,"description":"Height of the shadow, relative to the image height"},"bounces":{"type":"float","default":3,"min":1,"max":10,"step":1,"description":"Number of bounces before settling"}},"textures":[],"createdAt":"Fri, 10 Nov 2017 17:01:45 +0000","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"BowTie","paramsTypes":{"adjust":"float","reverse":"bool"},"defaultParams":{"adjust":0.5,"reverse":false},"glsl":"// Author: KMojek\n// License: MIT\n// Description: Two triangles grow from the top and bottom edges into a bow tie that reveals the incoming image, with an adjustable shape, and can run in reverse\n// Tags: wipe, shape\n\nuniform float adjust; // = 0.5\n// @param Run the wipe in reverse\nuniform bool reverse; // = false\n\nfloat check(vec2 p1, vec2 p2, vec2 p3)\n{\n return (p1.x - p3.x) * (p2.y - p3.y) - (p2.x - p3.x) * (p1.y - p3.y);\n}\n\nbool pointInTriangle(vec2 pt, vec2 p1, vec2 p2, vec2 p3)\n{\n\n bool b1 = check(pt, p1, p2) < 0.0;\n bool b2 = check(pt, p2, p3) < 0.0;\n bool b3 = check(pt, p3, p1) < 0.0;\n return b1 == b2 && b2 == b3;\n}\n\nconst float height = 0.5;\n\nvec4 transition_firstHalf( vec2 uv, float prog )\n{\n if ( uv.y < 0.5 )\n {\n vec2 botLeft = vec2( -0., prog-height );\n vec2 botRight = vec2( 1., prog-height );\n vec2 tip = vec2( adjust, prog );\n if ( pointInTriangle( uv, botLeft, botRight, tip ) )\n return getToColor(uv);\n }\n else\n {\n vec2 topLeft = vec2( -0., 1.-prog+height );\n vec2 topRight = vec2( 1., 1.-prog+height );\n vec2 tip = vec2( adjust, 1.-prog );\n if ( pointInTriangle( uv, topLeft, topRight, tip ) )\n return getToColor( uv );\n }\n return getFromColor( uv );\n}\n\nvec4 transition_secondHalf( vec2 uv, float prog )\n{\n if ( uv.x > adjust )\n {\n vec2 top = vec2( prog + height, 1. );\n vec2 bot = vec2( prog + height, -0. );\n vec2 tip = vec2( mix( adjust, 1.0, 2.0 * (prog - 0.5) ), 0.5 );\n if ( pointInTriangle( uv, top, bot, tip) )\n return getFromColor( uv );\n }\n else\n {\n vec2 top = vec2( 1.0-prog - height, 1. );\n vec2 bot = vec2( 1.0-prog - height, -0. );\n vec2 tip = vec2( mix( adjust, 0.0, 2.0 * (prog - 0.5) ), 0.5 );\n if ( pointInTriangle( uv, top, bot, tip) )\n return getFromColor( uv );\n }\n return getToColor( uv );\n}\n\nvec4 transition (vec2 uv) {\n if ( reverse )\n return ( progress < 0.5 ) ? transition_secondHalf( uv, 1.-progress ) : transition_firstHalf( uv, 1.-progress );\n else\n return ( progress < 0.5 ) ? transition_firstHalf( uv, progress ) : transition_secondHalf( uv, progress );\n}","author":"KMojek","license":"MIT","description":"Two triangles grow from the top and bottom edges into a bow tie that reveals the incoming image, with an adjustable shape, and can run in reverse","tags":["wipe","shape"],"params":{"adjust":{"type":"float","default":0.5},"reverse":{"type":"bool","default":false,"description":"Run the wipe in reverse"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Thu, 5 Nov 2026 11:34:33 +0100"},{"name":"BowTieHorizontal","paramsTypes":{},"defaultParams":{},"glsl":"// Author: huynx\n// License: MIT\n// Description: Two triangles grow from the left and right edges into a bow tie that reveals the incoming image\n// Tags: wipe, shape, horizontal\n\nconst vec2 bottom_left = vec2(0.0, 1.0);\nconst vec2 bottom_right = vec2(1.0, 1.0);\nconst vec2 top_left = vec2(0.0, 0.0);\nconst vec2 top_right = vec2(1.0, 0.0);\nconst vec2 center = vec2(0.5, 0.5);\n\nfloat check(vec2 p1, vec2 p2, vec2 p3)\n{\n return (p1.x - p3.x) * (p2.y - p3.y) - (p2.x - p3.x) * (p1.y - p3.y);\n}\n\nbool PointInTriangle (vec2 pt, vec2 p1, vec2 p2, vec2 p3)\n{\n bool b1, b2, b3;\n b1 = check(pt, p1, p2) < 0.0;\n b2 = check(pt, p2, p3) < 0.0;\n b3 = check(pt, p3, p1) < 0.0;\n return ((b1 == b2) && (b2 == b3));\n}\n\nbool in_left_triangle(vec2 p){\n vec2 vertex1, vertex2, vertex3;\n vertex1 = vec2(progress, 0.5);\n vertex2 = vec2(0.0, 0.5-progress);\n vertex3 = vec2(0.0, 0.5+progress);\n if (PointInTriangle(p, vertex1, vertex2, vertex3))\n {\n return true;\n }\n return false;\n}\n\nbool in_right_triangle(vec2 p){\n vec2 vertex1, vertex2, vertex3;\n vertex1 = vec2(1.0-progress, 0.5);\n vertex2 = vec2(1.0, 0.5-progress);\n vertex3 = vec2(1.0, 0.5+progress);\n if (PointInTriangle(p, vertex1, vertex2, vertex3))\n {\n return true;\n }\n return false;\n}\n\nfloat blur_edge(vec2 bot1, vec2 bot2, vec2 top, vec2 testPt)\n{\n vec2 lineDir = bot1 - top;\n vec2 perpDir = vec2(lineDir.y, -lineDir.x);\n vec2 dirToPt1 = bot1 - testPt;\n float dist1 = abs(dot(normalize(perpDir), dirToPt1));\n \n lineDir = bot2 - top;\n perpDir = vec2(lineDir.y, -lineDir.x);\n dirToPt1 = bot2 - testPt;\n float min_dist = min(abs(dot(normalize(perpDir), dirToPt1)), dist1);\n \n if (min_dist < 0.005) {\n return min_dist / 0.005;\n }\n else {\n return 1.0;\n };\n}\n\n\nvec4 transition (vec2 uv) {\n if (in_left_triangle(uv))\n {\n if (progress < 0.1)\n {\n return getFromColor(uv);\n }\n if (uv.x < 0.5)\n {\n vec2 vertex1 = vec2(progress, 0.5);\n vec2 vertex2 = vec2(0.0, 0.5-progress);\n vec2 vertex3 = vec2(0.0, 0.5+progress);\n return mix(\n getFromColor(uv),\n getToColor(uv),\n blur_edge(vertex2, vertex3, vertex1, uv)\n );\n }\n else\n {\n if (progress > 0.0)\n {\n return getToColor(uv);\n }\n else\n {\n return getFromColor(uv);\n }\n } \n }\n else if (in_right_triangle(uv))\n {\n if (uv.x >= 0.5)\n {\n vec2 vertex1 = vec2(1.0-progress, 0.5);\n vec2 vertex2 = vec2(1.0, 0.5-progress);\n vec2 vertex3 = vec2(1.0, 0.5+progress);\n return mix(\n getFromColor(uv),\n getToColor(uv),\n blur_edge(vertex2, vertex3, vertex1, uv)\n ); \n }\n else\n {\n return getFromColor(uv);\n }\n }\n else {\n return getFromColor(uv);\n }\n}","author":"huynx","license":"MIT","description":"Two triangles grow from the left and right edges into a bow tie that reveals the incoming image","tags":["wipe","shape","horizontal"],"params":{},"textures":[],"createdAt":"Sat, 24 Mar 2018 12:54:26 +0100","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"BrushWipe","paramsTypes":{"strokes":"float","angle":"float","roughness":"float","waviness":"float"},"defaultParams":{"strokes":4,"angle":-7,"roughness":0.6,"waviness":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: A few broad brush strokes sweep across the frame in turn, back and forth, painting in the incoming image with streaky bristle edges and dry, ragged ends\n// Tags: wipe, paint, brush, organic\n\n// @range(1, 8, 1) Number of brush strokes needed to cover the frame\nuniform float strokes; // = 4.0\n// @range(-45, 45) Angle of the strokes, in degrees\nuniform float angle; // = -7.0\n// @range(0, 1) How rough the bristles make the edges and ends of the strokes\nuniform float roughness; // = 0.6\n// @range(0, 1) How much the strokes wave along their way\nuniform float waviness; // = 0.5\n\nconst float PI = 3.141592653589793;\n\nfloat hash (vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// value noise, smooth along both axes\nfloat vnoise (vec2 p) {\n vec2 i = floor(p);\n vec2 f = fract(p);\n f = f * f * (3.0 - 2.0 * f);\n return mix(\n mix(hash(i), hash(i + vec2(1.0, 0.0)), f.x),\n mix(hash(i + vec2(0.0, 1.0)), hash(i + vec2(1.0, 1.0)), f.x),\n f.y\n );\n}\n\n// bristle streaks: fine across the stroke (t), long along it (u)\nfloat bristles (float t, float u, float seed) {\n return 0.6 * vnoise(vec2(t * 26.0 + seed, u * 1.3 + seed)) + 0.4 * vnoise(vec2(t * 8.0 - seed, u * 0.7));\n}\n\n// one stroke: k its index, t the position across it (-1..1 is its core), u along it\n// returns (coverage, wet streak shading)\nvec2 stroke (float k, float t, float u, float U, float n, float h) {\n float dir = mod(k, 2.0) < 0.5 ? 1.0 : -1.0;\n float x = u * dir;\n float dur = min(1.0, 1.8 / (n + 0.8));\n float start = n > 1.0 ? k * (1.0 - dur) / (n - 1.0) : 0.0;\n float s = clamp((progress - start) / dur, 0.0, 1.0);\n s = mix(s, s * s * (3.0 - 2.0 * s), 0.7);\n float r = roughness;\n float lag = (0.15 + 0.6 * r) * h; // how far the longest bristles run ahead of the shortest\n float dry = (0.1 + 0.9 * r) * h; // length of the streaky, dry trail behind the head of the stroke\n // at the end even the shortest bristles, at the rounded corners, are past the far edge with their dry trail\n float head = mix(-U, U + lag + 0.3 * h + 1.15 * dry + 0.01, s);\n float b = bristles(t, k * 3.7, k * 17.0);\n float front = head - lag * (1.0 - b) - 0.3 * h * t * t; // a rounded, ragged head\n float streak = bristles(t * 1.7, x * 2.0 / h, k * 5.0 + 9.0);\n float along = clamp(((front - x) / (dry + 0.001) - 0.1 - 0.8 * streak) * 6.0, 0.0, 1.0);\n float fringe = 0.1 + 0.7 * r;\n float e = (abs(t) - 1.0) / fringe; // < 0 in the core of the stroke\n float reach = 0.5 + 0.5 * vnoise(vec2(x * 2.5 / h, k * 7.0 + (t > 0.0 ? 3.0 : 0.0))); // the edge wanders\n float hair = clamp(bristles(t * 1.4, x * 3.0 / h, k * 11.0 + 3.0) * 2.0 - 0.5, 0.0, 1.0);\n float side = clamp((reach * hair - e) * 12.0 + 1.0, 0.0, 1.0);\n float cover = along * side;\n float wet = (1.0 - clamp((progress - start - dur) / 0.25, 0.0, 1.0)) * min(1.0, (1.0 - progress) * 6.0);\n return vec2(cover, cover * wet * (bristles(t * 2.0, x * 2.0 / h, k) - 0.5));\n}\n\nvec4 transition (vec2 uv) {\n float a = angle * PI / 180.0;\n float c = cos(a);\n float sn = sin(a);\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0);\n float u = c * q.x + sn * q.y; // along the strokes\n float v = -sn * q.x + c * q.y; // across them\n float U = 0.5 * (abs(c) * ratio + abs(sn));\n float V = 0.5 * (abs(sn) * ratio + abs(c));\n float n = max(1.0, floor(strokes + 0.5));\n float h = 2.0 * V / n; // height of a stroke\n // waves shared by the neighbouring strokes so that they always tile the frame\n float A = 0.12 * waviness * h;\n float w = v + A * sin(u * 5.0 / U + v * 2.0 / h + 1.3) + 0.5 * A * sin(u * 11.0 / U - v * 3.0 / h);\n float y = (V + 1.5 * A - w) / (2.0 * V + 3.0 * A) * n; // strokes go from top to bottom\n float hh = (2.0 * V + 3.0 * A) / n;\n float k = clamp(floor(y), 0.0, n - 1.0);\n float cover = 0.0;\n float shade = 0.0;\n for (int i = -1; i <= 1; i++) {\n float j = k + float(i);\n if (j >= 0.0 && j <= n - 1.0) {\n vec2 s = stroke(j, (y - j - 0.5) * 2.0, u, U, n, hh);\n cover = max(cover, s.x);\n shade = mix(shade, s.y, s.x); // the latest stroke is on top\n }\n }\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n to.rgb = min(to.rgb * (1.0 + 0.2 * shade), 1.0);\n return mix(from, to, cover);\n}\n","author":"gre","license":"MIT","description":"A few broad brush strokes sweep across the frame in turn, back and forth, painting in the incoming image with streaky bristle edges and dry, ragged ends","tags":["wipe","paint","brush","organic"],"params":{"strokes":{"type":"float","default":4,"min":1,"max":8,"step":1,"description":"Number of brush strokes needed to cover the frame"},"angle":{"type":"float","default":-7,"min":-45,"max":45,"description":"Angle of the strokes, in degrees"},"roughness":{"type":"float","default":0.6,"min":0,"max":1,"description":"How rough the bristles make the edges and ends of the strokes"},"waviness":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the strokes wave along their way"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:25:47 +0100","updatedAt":"Sun, 1 Nov 2026 20:25:47 +0100"},{"name":"BurnThrough","paramsTypes":{"burnColor":"vec3"},"defaultParams":{"burnColor":[1,0.5,0]},"glsl":"// Author: liubailin2020@gmail.com\n// License: MIT\n// Description: The outgoing image burns away in noisy, glowing patches\n// Tags: burn, fire, noise\n\n// @color Color of the burning edges\nuniform vec3 burnColor; // = vec3(1.0, 0.5, 0.0)\n\nfloat random (in vec2 st) {\n return fract(sin(dot(st.xy,\n vec2(12.9898,78.233)))*\n 43758.5453123);\n}\n\n// Based on Morgan McGuire @morgan3d\n// https://www.shadertoy.com/view/4dS3Wd\nfloat noise (in vec2 st) {\n vec2 i = floor(st);\n vec2 f = fract(st);\n\n float a = random(i);\n float b = random(i + vec2(1.0, 0.0));\n float c = random(i + vec2(0.0, 1.0));\n float d = random(i + vec2(1.0, 1.0));\n\n vec2 u = f * f * (3.0 - 2.0 * f);\n\n return mix(a, b, u.x) +\n (c - a)* u.y * (1.0 - u.x) +\n (d - b) * u.x * u.y;\n}\n\n#define OCTAVES 4\nfloat fbm (in vec2 st) {\n float value = 0.0;\n float amplitude = .5;\n for (int i = 0; i < OCTAVES; i++) {\n value += amplitude * noise(st);\n st *= 2.;\n amplitude *= .5;\n }\n return value;\n}\n\nvec4 transition (vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n float n = fbm(uv * 4.);\n float l = smoothstep(progress, progress + 0.05, n);\n float edge = (1.0 - l) * l * 5.0;\n return mix(to, from, l) + vec4(burnColor, 0.0) * edge;\n}\n","author":"liubailin2020@gmail.com","license":"MIT","description":"The outgoing image burns away in noisy, glowing patches","tags":["burn","fire","noise"],"params":{"burnColor":{"type":"vec3","default":[1,0.5,0],"color":true,"description":"Color of the burning edges"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ButterflyWaveScrawler","paramsTypes":{"amplitude":"float","waves":"float","colorSeparation":"float"},"defaultParams":{"amplitude":1,"waves":30,"colorSeparation":0.3},"glsl":"// Author: mandubian\n// License: MIT\n// Description: Wavy, color-separated ripples scramble the outgoing image into the incoming one\n// Tags: wave, distort, chromatic\nuniform float amplitude; // = 1.0\nuniform float waves; // = 30.0\nuniform float colorSeparation; // = 0.3\nconst float PI = 3.14159265358979323846264;\nfloat compute(vec2 p, float progress, vec2 center) {\nvec2 o = p*sin(progress * amplitude)-center;\n// horizontal vector\nvec2 h = vec2(1., 0.);\n// butterfly polar function (don't ask me why this one :))\nfloat theta = acos(dot(o, h)) * waves;\nfloat s = sin((2.*theta - PI) / 24.);\nfloat s2 = s * s;\nreturn (exp(cos(theta)) - 2.*cos(4.*theta) + s2 * s2 * s) / 10.;\n}\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n vec2 p = uv;\n float inv = 1. - progress;\n float disp = compute(p, progress, vec2(0.5, 0.5));\n vec4 texTo = getToColor(p + inv*disp);\n vec4 fromCenter = getFromColor(p + progress*disp);\n vec4 texFrom = vec4(\n getFromColor(p + progress*disp*(1.0 - colorSeparation)).r,\n fromCenter.g,\n getFromColor(p + progress*disp*(1.0 + colorSeparation)).b,\n fromCenter.a);\n return texTo*progress + texFrom*inv;\n}\n","author":"mandubian","license":"MIT","description":"Wavy, color-separated ripples scramble the outgoing image into the incoming one","tags":["wave","distort","chromatic"],"params":{"amplitude":{"type":"float","default":1},"waves":{"type":"float","default":30},"colorSeparation":{"type":"float","default":0.3}},"textures":[],"createdAt":"Thu, 1 Jun 2017 11:47:17 +0200","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"CameraShake","paramsTypes":{"strength":"float","jolts":"float","blur":"float","split":"float"},"defaultParams":{"strength":0.5,"jolts":12,"blur":0.5,"split":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The camera jolts violently in random directions, with motion blur and color fringes along each jolt; the cut happens at the peak of the shake, which then settles on the incoming image\n// Tags: shake, camera, motion-blur, chromatic, impact\n\n// @range(0, 1) How far the camera jolts (and rolls) at the peak of the shake\nuniform float strength; // = 0.5\n// @range(4, 32) Number of jolts over the transition\nuniform float jolts; // = 12.0\n// @range(0, 1) Length of the motion blur along each jolt\nuniform float blur; // = 0.5\n// @range(0, 1) How far the color channels split apart along each jolt\nuniform float split; // = 0.5\n\nconst int TAPS = 10;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// the camera position at jolt key k: offset (x, y) and roll, each in -1..1\nvec3 jolt(float k) {\n // successive jolts go in nearly opposite directions\n float a = 2.4 * k + 1.2 * hash12(vec2(k, 11.0));\n float m = 0.55 + 0.45 * hash12(vec2(k, 23.0));\n return vec3(m * cos(a), m * sin(a), 2.0 * hash12(vec2(k, 37.0)) - 1.0);\n}\n\n// how strong the shake is at time t: it builds up quickly, peaks around the cut, then settles\nfloat envelope(float t) {\n float h = clamp(1.6 * (1.0 - abs(2.0 * t - 1.0)), 0.0, 1.0);\n return h * h * (3.0 - 2.0 * h);\n}\n\n// the image seen by the camera at time t (in progress units), premultiplied\nvec4 shot(vec2 uv, float t, bool incoming) {\n float env = envelope(t);\n // a key every 1/jolts, one of them exactly at the cut\n float s = (t - 0.5) * jolts;\n float k = floor(s);\n float g = 1.0 - (s - k);\n float e = 1.0 - g * g * g; // snaps to the next key, then holds\n vec3 j = mix(jolt(k), jolt(k + 1.0), e) * env;\n float omax = 0.14 * strength * env;\n float rmax = 0.07 * strength * env;\n vec2 off = j.xy * omax;\n float roll = j.z * rmax;\n // zoom in just enough that the frame edges never show, for any offset and roll up to these\n float zoom = (cos(rmax) + sin(rmax) * max(ratio, 1.0 / ratio)) / (1.0 - 2.0 * omax);\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0);\n q = mat2(cos(roll), sin(roll), -sin(roll), cos(roll)) * q / zoom;\n vec2 p = mirror(q / vec2(ratio, 1.0) + 0.5 + off);\n vec4 c = incoming ? getToColor(p) : getFromColor(p);\n return vec4(c.rgb * c.a, c.a);\n}\n\nvec4 transition(vec2 uv) {\n // the exposure follows the shake: no blur at the very ends\n float open = envelope(progress);\n float shutter = 0.8 * blur / jolts * open;\n float lag = 0.2 * split / jolts * open;\n // each channel, premultiplied, and its alpha\n vec2 sumR = vec2(0.0);\n vec2 sumG = vec2(0.0);\n vec2 sumB = vec2(0.0);\n float wsum = 0.0;\n for (int i = 0; i < TAPS; i++) {\n float u = (float(i) + 0.5) / float(TAPS) - 0.5;\n float t = progress + u * shutter;\n // the trails fade out at both ends of the exposure\n float w = 1.0 - 1.4 * abs(u);\n // the cut happens during the exposure: the channels of a tap show the same image\n bool incoming = t >= 0.5;\n // red leads and blue trails the motion, so they split by the speed of the jolt\n vec4 r = shot(uv, t + lag, incoming);\n vec4 c = shot(uv, t, incoming);\n vec4 b = shot(uv, t - lag, incoming);\n sumR += w * r.ra;\n sumG += w * c.ga;\n sumB += w * b.ba;\n wsum += w;\n }\n float alpha = (sumR.y + sumG.y + sumB.y) / (3.0 * wsum);\n if (alpha <= 0.0) return vec4(0.0);\n vec3 color = vec3(\n sumR.x / max(sumR.y, 1e-5),\n sumG.x / max(sumG.y, 1e-5),\n sumB.x / max(sumB.y, 1e-5)\n );\n return vec4(color, alpha);\n}\n","author":"gre","license":"MIT","description":"The camera jolts violently in random directions, with motion blur and color fringes along each jolt; the cut happens at the peak of the shake, which then settles on the incoming image","tags":["shake","camera","motion-blur","chromatic","impact"],"params":{"strength":{"type":"float","default":0.5,"min":0,"max":1,"description":"How far the camera jolts (and rolls) at the peak of the shake"},"jolts":{"type":"float","default":12,"min":4,"max":32,"description":"Number of jolts over the transition"},"blur":{"type":"float","default":0.5,"min":0,"max":1,"description":"Length of the motion blur along each jolt"},"split":{"type":"float","default":0.5,"min":0,"max":1,"description":"How far the color channels split apart along each jolt"}},"textures":[],"createdAt":"Tue, 3 Nov 2026 13:10:45 +0100","updatedAt":"Tue, 3 Nov 2026 13:10:45 +0100"},{"name":"CardSwipe","paramsTypes":{"direction":"vec2","rotation":"float","depth":"float","backColor":"vec4"},"defaultParams":{"direction":[1,0.25],"rotation":0.5,"depth":0.15,"backColor":[0.06,0.06,0.07,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image is flicked off like the top card of a stack, swinging around a point below it as it flies out, while the incoming card behind it grows to fill the frame\n// Tags: card, swipe, stack, rotate, slide, directional\n\n// @param Direction in which the outgoing card is flicked\nuniform vec2 direction; // = vec2(1.0, 0.25)\n// @range(0, 1) How much the outgoing card swings as it flies out\nuniform float rotation; // = 0.5\n// @range(0, 0.5) How much smaller the incoming card starts\nuniform float depth; // = 0.15\n// @color Color seen around the incoming card while it is smaller than the frame\nuniform vec4 backColor; // = vec4(0.06, 0.06, 0.07, 1.0)\n\nconst float RADIUS = 0.045; // corner radius of the cards, in frame heights\nconst float AA = 0.002; // width of the antialiased card edges\n\n// signed distance to a rounded box of half size b and corner radius r\nfloat roundedBox(vec2 q, vec2 b, float r) {\n vec2 d = abs(q) - b + r;\n return length(max(d, 0.0)) + min(max(d.x, d.y), 0.0) - r;\n}\n\nvec4 premultiply(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\nvec4 transition(vec2 uv) {\n float dl = length(direction);\n vec2 d = dl > 1e-6 ? direction / dl : vec2(0.970143, 0.242536);\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0);\n vec2 b = vec2(0.5 * ratio, 0.5);\n float p = progress;\n\n // the incoming card, behind: grows from a smaller card to the full frame,\n // and its corners straighten as it fills it\n float h = clamp((p - 0.2) / 0.8, 0.0, 1.0);\n float g = h * h * (3.0 - 2.0 * h);\n float k = 1.0 - g;\n float sc = 1.0 - depth * k;\n float rb = RADIUS * min(1.0, 12.0 * k);\n float db = roundedBox(q, b * sc, rb);\n float cb = clamp(0.5 - db / max(AA * min(1.0, 40.0 * k), 1e-6), 0.0, 1.0);\n vec4 tc = getToColor(clamp(0.5 + (uv - 0.5) / sc, 0.0, 1.0));\n // still in the shade of the top card at first\n tc.rgb *= 1.0 - 0.35 * k * k;\n // the cards are opaque: each one replaces what is behind it, keeping its image's alpha\n vec4 col = mix(premultiply(backColor), premultiply(tc), cb);\n\n // the outgoing card, on top: swings around a point below it as it is flicked away\n float t = clamp(p / 0.75, 0.0, 1.0);\n float lift = smoothstep(0.0, 0.15, p);\n float u = min(t / 0.7, 1.0);\n float swing = u * u * (3.0 - 2.0 * u);\n // it tilts toward the side it is flicked to\n float a = (d.x < 0.0 ? 1.3 : -1.3) * rotation * swing;\n vec2 pivot = vec2(0.0, -1.1);\n // where the swing alone takes the center of the card, to throw it far enough\n float ca = cos(a), sa = sin(a);\n vec2 swung = pivot + mat2(ca, sa, -sa, ca) * -pivot;\n float far = 2.0 * length(b) + length(swung) + 0.3;\n vec2 shift = d * far * t * t * (0.4 + 0.6 * t);\n mat2 unrotate = mat2(ca, -sa, sa, ca);\n vec2 r = unrotate * (q - shift - pivot) + pivot;\n float rf = RADIUS * lift;\n\n // its soft shadow on the card behind, cast down and away as it lifts\n float sh = 0.6 * lift * (1.0 - t);\n if (sh > 0.0) {\n vec2 rs = unrotate * (q - (0.03 * d + vec2(0.0, -0.03)) * lift - shift - pivot) + pivot;\n float ds = roundedBox(rs, b, rf);\n col.rgb *= 1.0 - sh * (1.0 - smoothstep(-0.05, 0.08, ds));\n }\n\n float df = roundedBox(r, b, rf);\n float cf = clamp(0.5 - df / max(AA * min(1.0, 40.0 * lift), 1e-6), 0.0, 1.0);\n vec4 fc = getFromColor(clamp(r / vec2(ratio, 1.0) + 0.5, 0.0, 1.0));\n col = mix(col, premultiply(fc), cf);\n return col.a > 0.0 ? vec4(col.rgb / col.a, col.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The outgoing image is flicked off like the top card of a stack, swinging around a point below it as it flies out, while the incoming card behind it grows to fill the frame","tags":["card","swipe","stack","rotate","slide","directional"],"params":{"direction":{"type":"vec2","default":[1,0.25],"description":"Direction in which the outgoing card is flicked"},"rotation":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the outgoing card swings as it flies out"},"depth":{"type":"float","default":0.15,"min":0,"max":0.5,"description":"How much smaller the incoming card starts"},"backColor":{"type":"vec4","default":[0.06,0.06,0.07,1],"color":true,"description":"Color seen around the incoming card while it is smaller than the frame"}},"textures":[],"createdAt":"Tue, 3 Nov 2026 21:55:02 +0100","updatedAt":"Tue, 3 Nov 2026 21:55:02 +0100"},{"name":"CellDissolve","paramsTypes":{"cells":"float","smoothness":"float","border":"float","borderColor":"vec4","seed":"float"},"defaultParams":{"cells":8,"smoothness":0.1,"border":0.006,"borderColor":[1,0.95,0.8,1],"seed":0},"glsl":"// Author: gre\n// License: MIT\n// Description: Irregular cells, like cracked mud or soap foam, switch to the incoming image one by one, with an optional bright border glowing along the cracks between them\n// Tags: dissolve, cells, voronoi, random\n\n// @range(1, 40) Number of cells across the height of the frame\nuniform float cells; // = 8.0\n// @range(0, 1) Duration of each cell's switch, as a fraction of the transition (0: each cell switches at once)\nuniform float smoothness; // = 0.1\n// @range(0, 0.05) Width of the border along the cell edges, in frame heights (0: no border)\nuniform float border; // = 0.006\n// @color Color of the border\nuniform vec4 borderColor; // = vec4(1.0, 0.95, 0.8, 1.0)\n// @param Random seed: another value gives other cells, switching in another order\nuniform float seed; // = 0.0\n\n// half width of the antialiased edges, in frame heights\nconst float AA = 0.0015;\n\nvec2 hash22(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * vec3(0.1031, 0.1030, 0.0973));\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.xx + p3.yz) * p3.zy);\n}\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return b;\n\n float n = max(cells, 1.0);\n // measured in square pixels, so the cells are not stretched\n vec2 p = uv * vec2(ratio, 1.0) * n;\n vec2 i = floor(p);\n vec2 f = p - i;\n vec2 offset = vec2(17.31, 41.97) * seed;\n\n // nearest cell point\n vec2 mg = vec2(0.0);\n vec2 mr = vec2(0.0);\n float md = 8.0;\n for (int y = -1; y <= 1; y++) {\n for (int x = -1; x <= 1; x++) {\n vec2 g = vec2(float(x), float(y));\n vec2 r = g + hash22(i + g + offset) - f;\n float d = dot(r, r);\n if (d < md) {\n md = d;\n mr = r;\n mg = g;\n }\n }\n }\n\n // distance to the nearest cell edge: the bisector with the closest neighbor point,\n // searched over 5x5 cells around the nearest one so that no edge is missed\n float edge = 8.0;\n for (int y = -2; y <= 2; y++) {\n for (int x = -2; x <= 2; x++) {\n vec2 g = mg + vec2(float(x), float(y));\n vec2 r = g + hash22(i + g + offset) - f;\n vec2 dr = r - mr;\n if (dot(dr, dr) > 0.00001) {\n edge = min(edge, dot(0.5 * (mr + r), normalize(dr)));\n }\n }\n }\n // in frame heights\n edge /= n;\n\n // the cell's own switch time, from its hash\n float h = hash22(i + mg + offset + 97.13).x;\n float w = clamp(smoothness, 0.0, 1.0);\n float start = h * (1.0 - w);\n float m = w > 0.0 ? smoothstep(start, start + w, progress) : step(start, progress);\n\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n\n // the cracks open at the start and close at the end\n float open = smoothstep(0.0, 0.2, progress) * (1.0 - smoothstep(0.8, 1.0, progress));\n float bw = max(border, 0.0) * open;\n if (bw > 0.0) {\n float l = 1.0 - smoothstep(0.5 * bw - AA, 0.5 * bw + AA, edge);\n float ba = borderColor.a * l * min(1.0, bw / (2.0 * AA));\n c = vec4(borderColor.rgb * ba, ba) + c * (1.0 - ba);\n }\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Irregular cells, like cracked mud or soap foam, switch to the incoming image one by one, with an optional bright border glowing along the cracks between them","tags":["dissolve","cells","voronoi","random"],"params":{"cells":{"type":"float","default":8,"min":1,"max":40,"description":"Number of cells across the height of the frame"},"smoothness":{"type":"float","default":0.1,"min":0,"max":1,"description":"Duration of each cell's switch, as a fraction of the transition (0: each cell switches at once)"},"border":{"type":"float","default":0.006,"min":0,"max":0.05,"description":"Width of the border along the cell edges, in frame heights (0: no border)"},"borderColor":{"type":"vec4","default":[1,0.95,0.8,1],"color":true,"description":"Color of the border"},"seed":{"type":"float","default":0,"description":"Random seed: another value gives other cells, switching in another order"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:14:00 +0100","updatedAt":"Wed, 4 Nov 2026 20:14:00 +0100"},{"name":"Chessboard","paramsTypes":{"grid_num":"float"},"defaultParams":{"grid_num":10},"glsl":"// Author: lql\n// License: MIT\n// Description: A chessboard pattern of squares reveals the incoming image\n// Tags: grid, squares, pattern\n\n// @param Number of squares per row\nuniform float grid_num; // = 10.0\n\nvec4 transition(vec2 uv) {\n vec2 st = uv * grid_num;\n vec2 idx = floor(st);\n vec2 grid = fract(st);\n\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n\n float checker = mod(idx.x + idx.y, 2.0);\n float mixFactor;\n\n if (progress <= 0.5) {\n mixFactor = (checker > 0.5) ? step(grid.x, progress * 2.0) : 0.0;\n } else {\n mixFactor = (checker < 0.5) ? step(grid.x, (progress - 0.5) * 2.0) : 1.0;\n }\n\n return mix(a, b, mixFactor);\n}\n","author":"lql","license":"MIT","description":"A chessboard pattern of squares reveals the incoming image","tags":["grid","squares","pattern"],"params":{"grid_num":{"type":"float","default":10,"description":"Number of squares per row"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"CircleIris","paramsTypes":{"center":"vec2","backColor":"vec4"},"defaultParams":{"center":[0.5,0.5],"backColor":[0.1,0.1,0.1,1]},"glsl":"// Author: Fernando Kuteken\n// License: MIT\n// Description: The outgoing image closes into a circle over a background color, then the incoming one opens from it\n// Tags: circle, iris, shape\n\n// @param Center of the circle\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @color Background color\nuniform vec4 backColor; // = vec4(0.1, 0.1, 0.1, 1.0)\n\nvec4 transition (vec2 uv) {\n \n float distance = length(uv - center);\n float radius = sqrt(8.0) * abs(progress - 0.5);\n \n if (distance > radius) {\n return backColor;\n }\n else {\n if (progress < 0.5) return getFromColor(uv);\n else return getToColor(uv);\n }\n}\n","author":"Fernando Kuteken","license":"MIT","description":"The outgoing image closes into a circle over a background color, then the incoming one opens from it","tags":["circle","iris","shape"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Center of the circle"},"backColor":{"type":"vec4","default":[0.1,0.1,0.1,1],"color":true,"description":"Background color"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"CircleOpen","paramsTypes":{"smoothness":"float","opening":"bool"},"defaultParams":{"smoothness":0.3,"opening":true},"glsl":"// Author: gre\n// License: MIT\n// Description: A soft-edged circle opens from the center to reveal the incoming image\n// Tags: circle, iris, wipe\n// @param Softness of the circle's edge\nuniform float smoothness; // = 0.3\n// @param Open the circle; false closes it instead\nuniform bool opening; // = true\n\nconst vec2 center = vec2(0.5, 0.5);\nconst float SQRT_2 = 1.414213562373;\n\nvec4 transition (vec2 uv) {\n float x = opening ? progress : 1.-progress;\n float m = smoothstep(-smoothness, 0.0, SQRT_2*distance(center, uv) - x*(1.+smoothness));\n return mix(getFromColor(uv), getToColor(uv), opening ? 1.-m : m);\n}\n","author":"gre","license":"MIT","description":"A soft-edged circle opens from the center to reveal the incoming image","tags":["circle","iris","wipe"],"params":{"smoothness":{"type":"float","default":0.3,"description":"Softness of the circle's edge"},"opening":{"type":"bool","default":true,"description":"Open the circle; false closes it instead"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ClockWipe","paramsTypes":{"startingAngle":"float"},"defaultParams":{"startingAngle":90},"glsl":"// Author: Fernando Kuteken\n// License: MIT\n// Description: A wipe that sweeps around the center from a starting angle\n// Tags: wipe, radial, clock\n\n#define PI 3.141592653589\n\n// @range(0, 360) Angle where the wipe starts, in degrees\nuniform float startingAngle; // = 90\n\nvec4 transition (vec2 uv) {\n \n float offset = startingAngle * PI / 180.0;\n float angle = atan(uv.y - 0.5, uv.x - 0.5) + offset;\n float normalizedAngle = (angle + PI) / (2.0 * PI);\n \n normalizedAngle = normalizedAngle - floor(normalizedAngle);\n\n return mix(\n getFromColor(uv),\n getToColor(uv),\n step(normalizedAngle, progress)\n );\n}\n","author":"Fernando Kuteken","license":"MIT","description":"A wipe that sweeps around the center from a starting angle","tags":["wipe","radial","clock"],"params":{"startingAngle":{"type":"float","default":90,"min":0,"max":360,"description":"Angle where the wipe starts, in degrees"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ColorCoords","paramsTypes":{},"defaultParams":{},"glsl":"// Author: haiyoucuv\n// License: MIT\n// Description: A crossfade in which the colors of one image displace the other\n// Tags: displace, distort, blend\n\nvec4 transition (vec2 uv) {\n\n vec4 coordTo = getToColor(uv);\n vec4 coordFrom = getFromColor(uv);\n\n return mix(\n getFromColor(mix(uv, coordTo.rg, progress)),\n getToColor(mix(coordFrom.rg, uv, progress)),\n progress\n );\n\n}\n","author":"haiyoucuv","license":"MIT","description":"A crossfade in which the colors of one image displace the other","tags":["displace","distort","blend"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ColorDistance","paramsTypes":{"power":"float"},"defaultParams":{"power":5},"glsl":"// License: MIT\n// Author: P-Seebauer\n// Description: Pixels switch to the incoming image in order of how close their colors are\n// Tags: blend, color\n// ported by gre from https://gist.github.com/P-Seebauer/2a5fa2f77c883dd661f9\n\nuniform float power; // = 5.0\n\nvec4 transition(vec2 p) {\n vec4 fTex = getFromColor(p);\n vec4 tTex = getToColor(p);\n float m = step(distance(fTex, tTex), progress);\n return mix(\n mix(fTex, tTex, m),\n tTex,\n pow(progress, power)\n );\n}\n","author":"P-Seebauer","license":"MIT","description":"Pixels switch to the incoming image in order of how close their colors are","tags":["blend","color"],"params":{"power":{"type":"float","default":5}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ColorPanelWipe","paramsTypes":{"direction":"vec2","panels":"int","color1":"vec4","color2":"vec4","color3":"vec4","stagger":"float","skew":"float"},"defaultParams":{"direction":[1,0],"panels":3,"color1":[0.98,0.76,0.22,1],"color2":[0.93,0.33,0.36,1],"color3":[0.16,0.2,0.42,1],"stagger":0.35,"skew":0.25},"glsl":"// Author: gre\n// License: MIT\n// Description: Solid color panels, slightly staggered, sweep across and cover the frame, then sweep off the far side and reveal the incoming image\n// Tags: wipe, panels, color, slanted, motion-graphics\n\n// @param Direction the panels sweep toward\nuniform vec2 direction; // = vec2(1.0, 0.0)\n// @range(1, 3, 1) Number of panels\nuniform int panels; // = 3\n// @color Color of the first panel\nuniform vec4 color1; // = vec4(0.98, 0.76, 0.22, 1.0)\n// @color Color of the second panel\nuniform vec4 color2; // = vec4(0.93, 0.33, 0.36, 1.0)\n// @color Color of the third panel\nuniform vec4 color3; // = vec4(0.16, 0.2, 0.42, 1.0)\n// @range(0, 1) Delay between the panels, relative to the sweep of one panel (at 0, they move as one and only the last shows)\nuniform float stagger; // = 0.35\n// @range(-1, 1) Slant of the panels' edges\nuniform float skew; // = 0.25\n\n// the frame is fully covered from cut - hold to cut + hold, where the image switches\nconst float cut = 0.46;\nconst float hold = 0.01;\n// half width of the antialiased edges, in frame heights\nconst float aa = 0.0015;\n\n// a short acceleration, a fast sweep, and a long settle\nfloat ease(float t) {\n float s = clamp(t, 0.0, 1.0);\n float u = 1.0 - s * s * (3.0 - 2.0 * s);\n return 1.0 - u * u * u;\n}\n\n// how much of x a panel between the edges back and front covers\nfloat cover(float x, float back, float front) {\n return smoothstep(back - aa, back + aa, x) * (1.0 - smoothstep(front - aa, front + aa, x));\n}\n\nvec4 transition(vec2 uv) {\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n float k = clamp(skew, -1.0, 1.0);\n // position along the sweep, slanted across it, in frame heights across the edges\n vec2 a = (dir + k * vec2(-dir.y, dir.x)) / sqrt(1.0 + k * k);\n float x = dot(p, a);\n // half extent of the frame along x\n float e = 0.5 * (abs(a.x) * ratio + abs(a.y));\n float start = -e - 2.0 * aa;\n float span = 2.0 * (e + 2.0 * aa);\n\n int n = panels < 1 ? 1 : panels > 3 ? 3 : panels;\n float m = float(n - 1);\n float st = clamp(stagger, 0.0, 1.0);\n // durations of a panel's sweep in and out\n vec2 d = vec2(cut - hold, 1.0 - cut - hold) / (1.0 + m * st);\n\n // the first panel enters first and leaves last: the outgoing image is ahead of it, the incoming one behind it\n // (both are sampled, so that no texture read sits in a branch that differs between pixels)\n float front0 = start + span * ease(progress / d.x);\n float back0 = start + span * ease((progress - 1.0 + d.y) / d.y);\n vec4 c = mix(getToColor(uv), getFromColor(uv), step(0.5 * (front0 + back0), x));\n c = mix(c, color1, cover(x, back0, front0));\n\n // each next panel covers the ones before it, enters after them and leaves before them\n for (int i = 1; i < 3; i++) {\n if (i < n) {\n vec2 t = float(i) * st * d;\n float front = start + span * ease((progress - t.x) / d.x);\n float back = start + span * ease((progress - 1.0 + d.y + t.y) / d.y);\n c = mix(c, i == 1 ? color2 : color3, cover(x, back, front));\n }\n }\n return c.a > 0.0 ? c : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Solid color panels, slightly staggered, sweep across and cover the frame, then sweep off the far side and reveal the incoming image","tags":["wipe","panels","color","slanted","motion-graphics"],"params":{"direction":{"type":"vec2","default":[1,0],"description":"Direction the panels sweep toward"},"panels":{"type":"int","default":3,"min":1,"max":3,"step":1,"description":"Number of panels"},"color1":{"type":"vec4","default":[0.98,0.76,0.22,1],"color":true,"description":"Color of the first panel"},"color2":{"type":"vec4","default":[0.93,0.33,0.36,1],"color":true,"description":"Color of the second panel"},"color3":{"type":"vec4","default":[0.16,0.2,0.42,1],"color":true,"description":"Color of the third panel"},"stagger":{"type":"float","default":0.35,"min":0,"max":1,"description":"Delay between the panels, relative to the sweep of one panel (at 0, they move as one and only the last shows)"},"skew":{"type":"float","default":0.25,"min":-1,"max":1,"description":"Slant of the panels' edges"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 08:57:58 +0100","updatedAt":"Wed, 4 Nov 2026 08:57:58 +0100"},{"name":"ColorPhase","paramsTypes":{"fromStep":"vec4","toStep":"vec4"},"defaultParams":{"fromStep":[0,0.2,0.4,0],"toStep":[0.6,0.8,1,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: A crossfade in which each color channel changes at a different time\n// Tags: fade, color\n\n// Usage: fromStep and toStep must be in [0.0, 1.0] range \n// and all(fromStep) must be < all(toStep)\n\n// @range(0, 1) When each channel (r, g, b, a) starts changing\nuniform vec4 fromStep; // = vec4(0.0, 0.2, 0.4, 0.0)\n// @range(0, 1) When each channel (r, g, b, a) finishes changing\nuniform vec4 toStep; // = vec4(0.6, 0.8, 1.0, 1.0)\n\nvec4 transition (vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n return mix(a, b, smoothstep(fromStep, toStep, vec4(progress)));\n}\n","author":"gre","license":"MIT","description":"A crossfade in which each color channel changes at a different time","tags":["fade","color"],"params":{"fromStep":{"type":"vec4","default":[0,0.2,0.4,0],"min":0,"max":1,"description":"When each channel (r, g, b, a) starts changing"},"toStep":{"type":"vec4","default":[0.6,0.8,1,1],"min":0,"max":1,"description":"When each channel (r, g, b, a) finishes changing"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ColorWrap","paramsTypes":{"r_strength":"float","g_strength":"float","b_strength":"float"},"defaultParams":{"r_strength":1,"g_strength":1,"b_strength":1},"glsl":"// Author: Yoni Maltsman @friendlyspinach\n// License: MIT\n// Description: Each color channel of the outgoing image is shifted and wraps around into psychedelic bands, while crossfading to the incoming image\n// Tags: color, glitch, psychedelic, fade\n\n// @range(-2, 2) Shift of the red channel over the transition\nuniform float r_strength; // = 1.0\n// @range(-2, 2) Shift of the green channel over the transition\nuniform float g_strength; // = 1.0\n// @range(-2, 2) Shift of the blue channel over the transition\nuniform float b_strength; // = 1.0\n\nvec4 transition (vec2 uv) {\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n vec3 c = from.rgb + vec3(r_strength, g_strength, b_strength)*progress;\n // The wrap flips bright (or, with negative strengths, dark) channels at once: fade it in over the first frames\n from.rgb = mix(from.rgb, mod(c, 1.0), smoothstep(0.0, 0.1, progress));\n return mix(from, to, progress);\n}\n","author":"Yoni Maltsman @friendlyspinach","license":"MIT","description":"Each color channel of the outgoing image is shifted and wraps around into psychedelic bands, while crossfading to the incoming image","tags":["color","glitch","psychedelic","fade"],"params":{"r_strength":{"type":"float","default":1,"min":-2,"max":2,"description":"Shift of the red channel over the transition"},"g_strength":{"type":"float","default":1,"min":-2,"max":2,"description":"Shift of the green channel over the transition"},"b_strength":{"type":"float","default":1,"min":-2,"max":2,"description":"Shift of the blue channel over the transition"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Comb","paramsTypes":{"strips":"int","vertical":"bool"},"defaultParams":{"strips":10,"vertical":false},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame is cut into interleaved strips that slide in opposite directions, each pushing the outgoing image out and the incoming one in\n// Tags: slide, stripes, push, horizontal\n\n// @range(2, 40, 1) Number of strips\nuniform int strips; // = 10\n// @param Cut the frame into columns that slide up and down instead\nuniform bool vertical; // = false\n\nvec4 transition (vec2 uv) {\n // a: the axis along which the strips slide, b: the axis across them\n float a = vertical ? uv.y : uv.x;\n float b = vertical ? uv.x : uv.y;\n // alternate strips slide in opposite directions\n float dir = mod(floor(b * float(strips)), 2.0) < 0.5 ? 1.0 : -1.0;\n // ease in and out, but keep moving from the first frame\n float t = mix(progress, progress * progress * (3.0 - 2.0 * progress), 0.6);\n float fa = a - dir * t;\n if (fa >= 0.0 && fa <= 1.0) {\n return getFromColor(vertical ? vec2(b, fa) : vec2(fa, b));\n }\n float ta = fa + dir;\n return getToColor(vertical ? vec2(b, ta) : vec2(ta, b));\n}\n","author":"gre","license":"MIT","description":"The frame is cut into interleaved strips that slide in opposite directions, each pushing the outgoing image out and the incoming one in","tags":["slide","stripes","push","horizontal"],"params":{"strips":{"type":"int","default":10,"min":2,"max":40,"step":1,"description":"Number of strips"},"vertical":{"type":"bool","default":false,"description":"Cut the frame into columns that slide up and down instead"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:17:22 +0100","updatedAt":"Sat, 31 Oct 2026 18:17:22 +0100"},{"name":"CrazyParametricFun","paramsTypes":{"a":"float","b":"float","amplitude":"float","smoothness":"float"},"defaultParams":{"a":4,"b":1,"amplitude":120,"smoothness":0.1},"glsl":"// Author: mandubian\n// License: MIT\n// Description: The outgoing image is pulled along a parametric curve into a psychedelic swirl\n// Tags: distort, psychedelic\n\nuniform float a; // = 4\nuniform float b; // = 1\nuniform float amplitude; // = 120\nuniform float smoothness; // = 0.1\n\nvec4 transition(vec2 uv) {\n vec2 p = uv.xy / vec2(1.0).xy;\n vec2 dir = p - vec2(.5);\n float dist = length(dir);\n float x = (a - b) * cos(progress) + b * cos(progress * ((a / b) - 1.) );\n float y = (a - b) * sin(progress) - b * sin(progress * ((a / b) - 1.));\n vec2 offset = dir * vec2(sin(progress * dist * amplitude * x), sin(progress * dist * amplitude * y)) / smoothness;\n return mix(getFromColor(p + offset), getToColor(p), smoothstep(0.2, 1.0, progress));\n}\n","author":"mandubian","license":"MIT","description":"The outgoing image is pulled along a parametric curve into a psychedelic swirl","tags":["distort","psychedelic"],"params":{"a":{"type":"float","default":4},"b":{"type":"float","default":1},"amplitude":{"type":"float","default":120},"smoothness":{"type":"float","default":0.1}},"textures":[],"createdAt":"Thu, 1 Jun 2017 13:03:12 +0200","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"CrossWarp","paramsTypes":{},"defaultParams":{},"glsl":"// Author: Eke Péter <peterekepeter@gmail.com>\n// License: MIT\n// Description: The outgoing image zooms in while the incoming one zooms out into place, sweeping from right to left\n// Tags: warp, zoom, horizontal\nvec4 transition(vec2 p) {\n float x = progress;\n x=smoothstep(.0,1.0,(x*2.0+p.x-1.0));\n return mix(getFromColor((p-.5)*(1.-x)+.5), getToColor((p-.5)*x+.5), x);\n}\n","author":"Eke Péter <peterekepeter@gmail.com>","license":"MIT","description":"The outgoing image zooms in while the incoming one zooms out into place, sweeping from right to left","tags":["warp","zoom","horizontal"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"CrossZoom","paramsTypes":{"strength":"float"},"defaultParams":{"strength":0.4},"glsl":"// License: MIT\n// Author: rectalogic\n// Description: A crossfade through a strong zoom blur\n// Tags: zoom, blur, blend\n// ported by gre from https://gist.github.com/rectalogic/b86b90161503a0023231\n\n// Converted from https://github.com/rectalogic/rendermix-basic-effects/blob/master/assets/com/rendermix/CrossZoom/CrossZoom.frag\n// Which is based on https://github.com/evanw/glfx.js/blob/master/src/filters/blur/zoomblur.js\n// With additional easing functions from https://github.com/rectalogic/rendermix-basic-effects/blob/master/assets/com/rendermix/Easing/Easing.glsllib\n\n// @range(0, 1) Blur strength\nuniform float strength; // = 0.4\n\nconst float PI = 3.141592653589793;\n\nfloat Linear_ease(in float begin, in float change, in float duration, in float time) {\n return change * time / duration + begin;\n}\n\nfloat Exponential_easeInOut(in float begin, in float change, in float duration, in float time) {\n if (time == 0.0)\n return begin;\n else if (time == duration)\n return begin + change;\n time = time / (duration / 2.0);\n if (time < 1.0)\n return change / 2.0 * pow(2.0, 10.0 * (time - 1.0)) + begin;\n return change / 2.0 * (-pow(2.0, -10.0 * (time - 1.0)) + 2.0) + begin;\n}\n\nfloat Sinusoidal_easeInOut(in float begin, in float change, in float duration, in float time) {\n return -change / 2.0 * (cos(PI * time / duration) - 1.0) + begin;\n}\n\nfloat rand (vec2 co) {\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n\nvec4 crossFade(in vec2 uv, in float dissolve) {\n return mix(getFromColor(uv), getToColor(uv), dissolve);\n}\n\nvec4 transition(vec2 uv) {\n vec2 texCoord = uv.xy / vec2(1.0).xy;\n\n // Linear interpolate center across center half of the image\n vec2 center = vec2(Linear_ease(0.25, 0.5, 1.0, progress), 0.5);\n float dissolve = Exponential_easeInOut(0.0, 1.0, 1.0, progress);\n\n // Mirrored sinusoidal loop. 0->strength then strength->0\n float strength = Sinusoidal_easeInOut(0.0, strength, 0.5, progress);\n\n vec4 color = vec4(0.0);\n float total = 0.0;\n vec2 toCenter = center - texCoord;\n\n /* randomize the lookup values to hide the fixed number of samples */\n float offset = rand(uv);\n\n for (float t = 0.0; t <= 40.0; t++) {\n float percent = (t + offset) / 40.0;\n float weight = 4.0 * (percent - percent * percent);\n color += crossFade(texCoord + toCenter * percent * strength, dissolve) * weight;\n total += weight;\n }\n return color / total;\n}\n","author":"rectalogic","license":"MIT","description":"A crossfade through a strong zoom blur","tags":["zoom","blur","blend"],"params":{"strength":{"type":"float","default":0.4,"min":0,"max":1,"description":"Blur strength"}},"textures":[],"createdAt":"Mon, 12 Jun 2017 12:33:07 +0800","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"Crosshatch","paramsTypes":{"center":"vec2","threshold":"float","fadeEdge":"float"},"defaultParams":{"center":[0.5,0.5],"threshold":3,"fadeEdge":0.1},"glsl":"// License: MIT\n// Author: pthrasher\n// Description: The incoming image appears through a crosshatch of lines spreading from the center\n// Tags: pattern, lines, noise\n// adapted by gre from https://gist.github.com/pthrasher/04fd9a7de4012cbb03f6\n\n// @param Point the lines spread from\nuniform vec2 center; // = vec2(0.5)\nuniform float threshold; // = 3.0\nuniform float fadeEdge; // = 0.1\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\nvec4 transition(vec2 p) {\n float dist = distance(center, p) / threshold;\n float r = progress - min(rand(vec2(p.y, 0.0)), rand(vec2(0.0, p.x)));\n return mix(getFromColor(p), getToColor(p), mix(0.0, mix(step(dist, r), 1.0, smoothstep(1.0-fadeEdge, 1.0, progress)), smoothstep(0.0, fadeEdge, progress))); \n}\n","author":"pthrasher","license":"MIT","description":"The incoming image appears through a crosshatch of lines spreading from the center","tags":["pattern","lines","noise"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Point the lines spread from"},"threshold":{"type":"float","default":3},"fadeEdge":{"type":"float","default":0.1}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Crumple","paramsTypes":{"creases":"int","size":"float","direction":"vec2","paper":"vec4","shadow":"vec4"},"defaultParams":{"creases":16,"size":0.2,"direction":[1,0.4],"paper":[0.96,0.95,0.91,1],"shadow":[0,0,0,0.45]},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image crumples into a creased paper ball, shaded along its folds, which is then tossed away to reveal the incoming image\n// Tags: paper, 3d, shrink, shadow\n\n// @range(1, 32, 1) Number of folds creasing the paper\nuniform int creases; // = 16\n// @range(0.05, 0.4) Radius of the paper ball, relative to the image height\nuniform float size; // = 0.2\n// @param Direction the ball is tossed toward\nuniform vec2 direction; // = vec2(1.0, 0.4)\n// @color Color of the bare paper showing through the ink along the sharpest creases\nuniform vec4 paper; // = vec4(0.96, 0.95, 0.91, 1.0)\n// @color Color of the shadow cast on the incoming image\nuniform vec4 shadow; // = vec4(0.0, 0.0, 0.0, 0.45)\n\nconst float PI = 3.14159265;\n\nvec2 hash2(vec2 p) {\n p = vec2(dot(p, vec2(127.1, 311.7)), dot(p, vec2(269.5, 183.3)));\n return fract(sin(p) * 43758.5453);\n}\n\nmat2 rot(float a) {\n float s = sin(a);\n float c = cos(a);\n return mat2(c, -s, s, c);\n}\n\n// distance from the center to the edge of the frame in the direction a (unit vector)\nfloat frame(vec2 a) {\n return min(0.5 * ratio / max(abs(a.x), 1e-4), 0.5 / max(abs(a.y), 1e-4));\n}\n\n// distance from the center to the edge of the paper in the direction a (unit vector):\n// the frame shrinking and buckling while it crumples (c), turning into a lumpy ball (k)\nfloat outline(vec2 a, float c, float k, float radius) {\n float rect = frame(a);\n float th = atan(a.y, a.x);\n float buckle = 0.03 + 0.05 * abs(sin(4.0 * th + 0.7)) + 0.03 * abs(sin(9.0 * th + 2.0)) + 0.015 * abs(sin(23.0 * th + 1.3));\n // the ball is a polygon with irregular corners\n float i = floor((th / (2.0 * PI) + 0.5) * 9.0);\n float a0 = i * 2.0 * PI / 9.0 - PI;\n float a1 = a0 + 2.0 * PI / 9.0;\n vec2 v0 = vec2(cos(a0), sin(a0)) * (0.78 + 0.27 * hash2(vec2(mod(i, 9.0), 3.0)).x);\n vec2 v1 = vec2(cos(a1), sin(a1)) * (0.78 + 0.27 * hash2(vec2(mod(i + 1.0, 9.0), 3.0)).x);\n vec2 e = v1 - v0;\n float ball = radius * (v0.x * e.y - v0.y * e.x) / (a.x * e.y - a.y * e.x);\n return mix(rect * mix(1.0, 0.75, c) * (1.0 - c * buckle), ball, k);\n}\n\n// n straight creases of random position, orientation and length, in a space where the\n// paper spans about [-span, span]; each one tilts the paper on its two sides (a sharp ridge\n// or valley between flat facets) and swallows a strip of the image. They come one after\n// another as c grows; px is the half width of a crease line, in the units of x.\nvoid fold(vec2 x, float seed, int n, vec2 span, float len, float c, float px, float weight,\n inout vec2 grad, inout vec2 shift, inout float valley, inout float ridge) {\n float tilt = 2.0 / sqrt(float(n));\n for (int i = 0; i < 32; i++) {\n if (i >= n) break;\n float fi = float(i);\n vec2 h = hash2(vec2(fi, seed));\n vec2 g = hash2(vec2(fi, seed + 11.8));\n vec2 o = (h - 0.5) * 2.0 * span;\n vec2 nrm = vec2(cos(2.0 * PI * g.x), sin(2.0 * PI * g.x));\n float d = dot(x - o, nrm);\n float along = dot(x - o, vec2(-nrm.y, nrm.x));\n float l = len * (0.5 + g.y);\n float start = 0.4 * fi / float(n);\n float act = weight * smoothstep(start, start + 0.3, c) * (1.0 - smoothstep(0.5 * l, l, abs(along)));\n float amp = (h.x > 0.5 ? 1.0 : -1.0) * (0.5 + 0.5 * h.y);\n float side = d / (abs(d) + px);\n grad += act * amp * side * nrm * tilt;\n shift += act * 0.03 * side * nrm;\n float line = 1.0 - smoothstep(0.0, 2.0 * px, abs(d));\n if (amp < 0.0) valley += act * line;\n else ridge += act * line * amp;\n }\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress >= 1.0) return b;\n\n // crumpling (c), balling up (k), then tossing (t)\n float c = smoothstep(0.0, 0.6, progress);\n float k = smoothstep(0.1, 0.62, progress);\n float t = smoothstep(0.58, 1.0, progress);\n t *= t;\n\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n float radius = max(size, 0.01) * mix(1.0, 0.6, t);\n // far enough along the direction for the ball and its shadow (offset and blurred by up\n // to about 0.09 each) to leave the frame\n float reach = 0.5 * (abs(dir.x) * ratio + abs(dir.y)) + 1.2 * radius + 0.3;\n float bend = dir.x < 0.0 ? -1.0 : 1.0;\n vec2 center = dir * reach * t + vec2(-dir.y, dir.x) * 0.15 * bend * sin(PI * t);\n float angle = 0.6 * c - 5.0 * bend * t;\n // how high the paper is above the incoming image\n float lift = 0.012 * c + 0.06 * t;\n\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n\n // soft shadow on the incoming image\n vec2 sp = rot(angle) * (p - center - vec2(0.6, -1.0) * lift);\n float sl = length(sp);\n float sd = sl - outline(sl > 1e-5 ? sp / sl : vec2(1.0, 0.0), c, k, radius);\n float blur = 0.005 + 1.2 * lift;\n vec4 col = vec4(mix(b.rgb, shadow.rgb, shadow.a * c * (1.0 - smoothstep(-blur, blur, sd))), b.a);\n\n vec2 q = rot(angle) * (p - center);\n float l = length(q);\n vec2 dq = l > 1e-5 ? q / l : vec2(1.0, 0.0);\n float edge = outline(dq, c, k, radius);\n // the edge (about a pixel at 300 px high) is antialiased only once the sheet has left the\n // borders of the frame\n float aa = 0.003 * smoothstep(0.0, 0.1, progress) + 1e-5;\n float inside = 1.0 - smoothstep(-aa, aa, l - edge);\n if (inside <= 0.0) return col;\n\n // back onto the flat sheet: the outline is mapped onto the frame, the middle of the ball\n // holds more of it, as if the edges were tucked under\n float r = l / edge;\n float rect = frame(dq);\n vec2 s = dq * rect * mix(r, r * (0.6 + 0.4 * r), k);\n\n // the creases of the sheet, then those of the ball, that crumpling adds over them\n int count = creases < 1 ? 1 : creases;\n vec2 grad = vec2(0.0);\n vec2 shift = vec2(0.0);\n float valley = 0.0;\n float ridge = 0.0;\n fold(s, 7.3, count, 0.45 * vec2(ratio, 1.0), 0.6, c, 0.003 * rect / edge, 1.0 - 0.8 * k, grad, shift, valley, ridge);\n vec2 g2 = vec2(0.0);\n vec2 s2 = vec2(0.0);\n float v2 = 0.0;\n float r2 = 0.0;\n fold(q / radius, 2.9, count, vec2(0.7), 8.0, k, 0.003 / radius, k, g2, s2, v2, r2);\n grad += g2 * 0.8;\n vec2 piece = s + shift + s2 * 3.0;\n\n // the facets over the volume of the ball, lit from the top left (the light does not turn\n // with the ball)\n float rr = clamp(l / (radius * 1.1), 0.0, 1.0);\n vec3 sphere = vec3(q / (radius * 1.1) * k * 0.8, sqrt(1.0 - 0.64 * rr * rr * k));\n vec3 n = normalize(sphere + vec3(grad, 0.0));\n n.xy = rot(-angle) * n.xy;\n vec3 light = normalize(vec3(-0.5, 0.6, 0.8));\n float diffuse = max(dot(n, light), 0.0);\n vec3 hv = normalize(light + vec3(0.0, 0.0, 1.0));\n // only what facets add over the flat sheet\n float spec = max(pow(max(dot(n, hv), 0.0), 20.0) - pow(hv.z, 20.0), 0.0);\n float level = light.z;\n float relief = min(2.0 * c, 1.0);\n float shade = 1.0 + relief * ((0.12 + diffuse) / (0.12 + level) - 1.0) + 0.7 * spec * relief;\n shade -= 0.2 * relief * min(valley, 1.0);\n // occlusion toward the rim of the ball\n shade *= 1.0 - 0.3 * k * smoothstep(0.6, 1.0, r);\n\n // the edges of the sheet that the folds pull in are mirrored, as if folded back\n vec2 f = piece / vec2(ratio, 1.0) + 0.5;\n vec4 img = getFromColor(1.0 - abs(1.0 - mod(f, 2.0)));\n // the ink cracks along the ridges\n img.rgb = mix(img.rgb, paper.rgb, 0.6 * min(ridge, 1.0) * paper.a * c);\n vec4 ball = vec4(img.rgb * shade, img.a);\n\n // mixed premultiplied, so transparent images do not bleed their color\n float m = inside * ball.a;\n vec4 o = vec4(mix(col.rgb * col.a, ball.rgb, m), mix(col.a, 1.0, m));\n return o.a > 0.0 ? vec4(o.rgb / o.a, o.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The outgoing image crumples into a creased paper ball, shaded along its folds, which is then tossed away to reveal the incoming image","tags":["paper","3d","shrink","shadow"],"params":{"creases":{"type":"int","default":16,"min":1,"max":32,"step":1,"description":"Number of folds creasing the paper"},"size":{"type":"float","default":0.2,"min":0.05,"max":0.4,"description":"Radius of the paper ball, relative to the image height"},"direction":{"type":"vec2","default":[1,0.4],"description":"Direction the ball is tossed toward"},"paper":{"type":"vec4","default":[0.96,0.95,0.91,1],"color":true,"description":"Color of the bare paper showing through the ink along the sharpest creases"},"shadow":{"type":"vec4","default":[0,0,0,0.45],"color":true,"description":"Color of the shadow cast on the incoming image"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:12:49 +0100","updatedAt":"Wed, 4 Nov 2026 20:12:49 +0100"},{"name":"Cube","paramsTypes":{"persp":"float","unzoom":"float","reflection":"float","floating":"float"},"defaultParams":{"persp":0.7,"unzoom":0.3,"reflection":0.4,"floating":3},"glsl":"// Author: gre\n// License: MIT\n// Description: The two images are faces of a rotating 3D cube, with a floor reflection\n// Tags: 3d, cube, rotate, reflection\n// @range(0, 1) Amount of perspective\nuniform float persp; // = 0.7\nuniform float unzoom; // = 0.3\n// @range(0, 1) Strength of the reflection\nuniform float reflection; // = 0.4\nuniform float floating; // = 3.0\n\nvec2 project (vec2 p) {\n return p * vec2(1.0, -1.2) + vec2(0.0, -floating/100.);\n}\n\nbool inBounds (vec2 p) {\n return all(lessThan(vec2(0.0), p)) && all(lessThan(p, vec2(1.0)));\n}\n\nvec4 bgColor (vec2 p, vec2 pfr, vec2 pto) {\n vec4 c = vec4(0.0); // where no image is drawn: transparent\n pfr = project(pfr);\n // FIXME avoid branching might help perf!\n if (inBounds(pfr)) {\n c += mix(vec4(0.0), getFromColor(pfr), reflection * mix(1.0, 0.0, pfr.y));\n }\n pto = project(pto);\n if (inBounds(pto)) {\n c += mix(vec4(0.0), getToColor(pto), reflection * mix(1.0, 0.0, pto.y));\n }\n return c;\n}\n\n// p : the position\n// persp : the perspective in [ 0, 1 ]\n// center : the xcenter in [0, 1] \\ 0.5 excluded\nvec2 xskew (vec2 p, float persp, float center) {\n float x = mix(p.x, 1.0-p.x, center);\n return (\n (\n vec2( x, (p.y - 0.5*(1.0-persp) * x) / (1.0+(persp-1.0)*x) )\n - vec2(0.5-distance(center, 0.5), 0.0)\n )\n * vec2(0.5 / distance(center, 0.5) * (center<0.5 ? 1.0 : -1.0), 1.0)\n + vec2(center<0.5 ? 0.0 : 1.0, 0.0)\n );\n}\n\nvec4 transition(vec2 op) {\n float uz = unzoom * 2.0*(0.5-distance(0.5, progress));\n vec2 p = -uz*0.5+(1.0+uz) * op;\n vec2 fromP = xskew(\n (p - vec2(progress, 0.0)) / vec2(1.0-progress, 1.0),\n 1.0-mix(progress, 0.0, persp),\n 0.0\n );\n vec2 toP = xskew(\n p / vec2(progress, 1.0),\n mix(pow(progress, 2.0), 1.0, persp),\n 1.0\n );\n // FIXME avoid branching might help perf!\n if (inBounds(fromP)) {\n return getFromColor(fromP);\n }\n else if (inBounds(toP)) {\n return getToColor(toP);\n }\n return bgColor(op, fromP, toP);\n}\n","author":"gre","license":"MIT","description":"The two images are faces of a rotating 3D cube, with a floor reflection","tags":["3d","cube","rotate","reflection"],"params":{"persp":{"type":"float","default":0.7,"min":0,"max":1,"description":"Amount of perspective"},"unzoom":{"type":"float","default":0.3},"reflection":{"type":"float","default":0.4,"min":0,"max":1,"description":"Strength of the reflection"},"floating":{"type":"float","default":3}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"Curtains","paramsTypes":{"folds":"float","shading":"float","bunch":"float","sway":"float"},"defaultParams":{"folds":7,"shading":0.7,"bunch":0.12,"sway":0.4},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image parts in the middle like stage curtains, gathering into shaded folds as it is pulled to the sides\n// Tags: split, horizontal, fold, 3d\n\n// @range(1, 16, 1) Number of folds in each curtain (fewer in a portrait image)\nuniform float folds; // = 7.0\n// @range(0, 1) Depth of the shading on the folds\nuniform float shading; // = 0.7\n// @range(0, 0.4) Width of each curtain once gathered, relative to the image width\nuniform float bunch; // = 0.12\n// @range(0, 1) How much the bottom of the curtains lags behind the top\nuniform float sway; // = 0.4\n\nconst float PI = 3.141592653589793;\n\nvec4 transition (vec2 uv) {\n // the bottom of the fabric follows the top with a little delay\n float lag = sway * (1.0 - uv.y);\n float p = progress * (1.0 - lag * (1.0 - progress));\n float open = mix(p, p * p * (3.0 - 2.0 * p), 0.75);\n // each curtain hangs from its outer edge, gathers to the bunch width, then leaves the frame\n float edge = -bunch * open * open;\n float w = mix(0.5, bunch, open);\n float x = min(uv.x, 1.0 - uv.x) - edge; // distance to the outer edge of the curtain\n if (x >= w) {\n // soft shadow of the curtain on the stage, fading as the curtain leaves the frame\n vec4 to = getToColor(uv);\n float shadow = 0.4 * exp((w - x) * 25.0) * clamp((edge + w) * 20.0, 0.0, 1.0);\n return vec4(to.rgb * (1.0 - shadow * open), to.a);\n }\n float t = x / w;\n // pleats: the fabric bunches up where cos(a) > 0 and is stretched elsewhere\n float n = max(1.0, floor(folds * min(ratio, 1.0) + 0.5)); // folds keep their size in portrait\n float a = 2.0 * PI * n * t;\n float f = 1.0 - (1.0 - open) * (1.0 - open) * (1.0 - open); // the folds form early\n float gather = 0.92 * f;\n float s = 0.5 * (t + gather * sin(a) / (2.0 * PI * n)); // position in the fabric\n vec4 c = getFromColor(vec2(uv.x < 0.5 ? s : 1.0 - s, uv.y));\n // light comes from the front, a bit from the middle of the stage\n float slope = 3.0 * gather * cos(a) * (uv.x < 0.5 ? 1.0 : -1.0);\n float diffuse = (1.0 + 0.5 * slope) / sqrt(1.25 * (1.0 + slope * slope));\n float crease = 0.5 + 0.5 * sin(a); // the back of each pleat is in the dark\n float light = mix(1.0, diffuse * (1.0 - 0.6 * crease * crease), shading * f);\n return vec4(c.rgb * light, c.a);\n}\n","author":"gre","license":"MIT","description":"The outgoing image parts in the middle like stage curtains, gathering into shaded folds as it is pulled to the sides","tags":["split","horizontal","fold","3d"],"params":{"folds":{"type":"float","default":7,"min":1,"max":16,"step":1,"description":"Number of folds in each curtain (fewer in a portrait image)"},"shading":{"type":"float","default":0.7,"min":0,"max":1,"description":"Depth of the shading on the folds"},"bunch":{"type":"float","default":0.12,"min":0,"max":0.4,"description":"Width of each curtain once gathered, relative to the image width"},"sway":{"type":"float","default":0.4,"min":0,"max":1,"description":"How much the bottom of the curtains lags behind the top"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:18:48 +0100","updatedAt":"Sat, 31 Oct 2026 18:18:48 +0100"},{"name":"CurvedWipe","paramsTypes":{"direction":"vec2","curvature":"float","smoothness":"float","shadow":"vec4"},"defaultParams":{"direction":[0,1],"curvature":0.6,"smoothness":0.02,"shadow":[0,0,0,0.4]},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image is pulled away by its middle: the wipe edge bulges into a smooth curve that leads the way, then flattens as it reaches the far side\n// Tags: wipe, curve, directional, shadow\n\n// @param Direction the edge moves toward\nuniform vec2 direction; // = vec2(0.0, 1.0)\n// @range(0, 1) How far the middle of the edge leads its sides\nuniform float curvature; // = 0.6\n// @range(0, 0.2) Softness of the edge\nuniform float smoothness; // = 0.02\n// @color Color of the soft shadow the lifted edge casts on the incoming image (its alpha is its strength; 0 for none)\nuniform vec4 shadow; // = vec4(0.0, 0.0, 0.0, 0.4)\n\nconst float PI = 3.141592653589793;\n\n// a gentle ease in and out, which does not linger at the ends\nfloat ease (float t) {\n return 0.5 * (t + t * t * (3.0 - 2.0 * t));\n}\n\nvec4 transition (vec2 uv) {\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(0.0, 1.0);\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n // half extents of the frame along the direction and across it\n float e = 0.5 * (abs(dir.x) * ratio + abs(dir.y));\n float w = 0.5 * (abs(dir.y) * ratio + abs(dir.x));\n vec2 across = vec2(-dir.y, dir.x);\n float d = dot(p, dir);\n // where the pixel is across the frame, from -1 to 1 (on a diagonal, these are the corners); it is the same\n // all along the direction, so the edge is a single curve, centered on the middle of the frame\n float x = clamp(dot(p, across) / w, -1.0, 1.0);\n float s = max(smoothness, 0.001);\n // each point of the edge runs on its own clock: the middle runs ahead and slows down at the far side,\n // where the sides catch up with it; the lead keeps the curve's shape alike on wide and narrow frames\n float k = clamp(curvature, 0.0, 1.0) * min(1.0, w / e) * (1.0 - x * x);\n float t = progress + k * progress * (1.0 - progress);\n float travel = 2.0 * (e + s);\n float edge = -e - s + travel * ease(t);\n float side = -e - s + travel * ease(progress);\n float m = 1.0 - smoothstep(-s, s, d - edge);\n // the more the edge is lifted, the wider and softer the shadow it casts on the incoming image\n float lift = edge - side;\n float spread = 0.012 + 0.25 * lift;\n // it falls behind the edge only, on the incoming image, cast by the outgoing image at the edge\n vec4 to = getToColor(uv);\n vec2 caster = clamp((p + (edge - d) * dir) / vec2(ratio, 1.0) + 0.5, 0.0, 1.0);\n float sh = shadow.a * sin(PI * progress) * exp(-max(edge - d, 0.0) / spread) * m * getFromColor(caster).a * to.a;\n to.rgb = mix(to.rgb, shadow.rgb, sh);\n return mix(getFromColor(uv), to, m);\n}\n","author":"gre","license":"MIT","description":"The outgoing image is pulled away by its middle: the wipe edge bulges into a smooth curve that leads the way, then flattens as it reaches the far side","tags":["wipe","curve","directional","shadow"],"params":{"direction":{"type":"vec2","default":[0,1],"description":"Direction the edge moves toward"},"curvature":{"type":"float","default":0.6,"min":0,"max":1,"description":"How far the middle of the edge leads its sides"},"smoothness":{"type":"float","default":0.02,"min":0,"max":0.2,"description":"Softness of the edge"},"shadow":{"type":"vec4","default":[0,0,0,0.4],"color":true,"description":"Color of the soft shadow the lifted edge casts on the incoming image (its alpha is its strength; 0 for none)"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 09:49:41 +0100","updatedAt":"Mon, 2 Nov 2026 09:49:41 +0100"},{"name":"CylinderRoll","paramsTypes":{"curvature":"float","blur":"float","shading":"float","chroma":"float","downward":"bool"},"defaultParams":{"curvature":0.8,"blur":0.5,"shading":0.6,"chroma":0.5,"downward":false},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame wraps around a drum that rolls up, the outgoing image turning away over its top in a motion blur and the incoming one coming around from below and unrolling flat\n// Tags: 3d, roll, motion-blur, vertical, chromatic\n\n// @range(0, 1) How much the frame wraps around the drum\nuniform float curvature; // = 0.8\n// @range(0, 1) Length of the motion blur at full speed\nuniform float blur; // = 0.5\n// @range(0, 1) How much the drum darkens as it turns away\nuniform float shading; // = 0.6\n// @range(0, 1) Amount of RGB split along the roll, growing with speed\nuniform float chroma; // = 0.5\n// @param Roll downward instead, the incoming image coming around from above\nuniform bool downward; // = false\n\nconst int SAMPLES = 24;\n// the half angle of the drum seen in the frame height, at full curvature\nconst float MAX_ANGLE = 1.1;\n// distance from the camera to the drum's axis, in drum radii\nconst float DIST = 2.6;\n// how much the horizontal lines arc away from the middle, per frame height squared\nconst float ARC = 0.12;\n\nfloat hash(vec2 c) {\n vec2 q = fract(c * vec2(0.1031, 0.1030));\n q += dot(q, q.yx + 33.33);\n return fract((q.x + q.y) * q.x);\n}\n\n// mirrored coordinate, folded back into 0..1\nfloat fold(float v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// the strip around the drum: the outgoing image, with the incoming one below it (or above)\nvec4 strip(float x, float v) {\n if (downward ? v > 1.0 : v < 0.0) {\n return getToColor(vec2(x, fold(downward ? v - 1.0 : v + 1.0)));\n }\n return getFromColor(vec2(x, fold(v)));\n}\n\n// angle on the drum seen at the projected height c (the drum has a radius of 1)\nfloat angleAt(float c) {\n c = clamp(c, -0.98 / sqrt(DIST * DIST - 1.0), 0.98 / sqrt(DIST * DIST - 1.0));\n return asin(c * DIST / sqrt(1.0 + c * c)) - atan(c);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n // ease in, roll fast in the middle, ease out\n float h = 1.0 - abs(2.0 * p - 1.0); // 0 at both ends, 1 in the middle\n float e = 0.5 * h * (0.1 + 0.9 * h * h);\n float roll = p < 0.5 ? e : 1.0 - e;\n // the blur and the RGB split stay low until the peak of the roll\n float h3 = h * h * h;\n float peak = h3 * h3;\n\n // the frame wraps around the drum early, and unwraps to flat sooner as the incoming image settles\n float bend = curvature * (p < 0.5 ? h * (2.0 - h) : h * h * (3.0 - 2.0 * h));\n float phi = MAX_ANGLE * bend + 1e-4;\n float arcK = ARC * bend;\n // the height of the frame's edge, projected with perspective\n float edgeY = sin(phi) / (DIST - cos(phi));\n\n vec2 n = 2.0 * uv - 1.0;\n // the horizontal lines arc away from the middle, toward the left and right edges\n float xr = n.x * ratio;\n float yn = n.y * (1.0 + arcK * xr * xr);\n float theta = angleAt(yn * edgeY);\n // nearer parts of the drum look wider: the drum is made wide enough to fill the frame's corners\n float thetaCorner = angleAt((1.0 + arcK * ratio * ratio) * edgeY);\n float width = (DIST - 1.0) / (DIST - cos(theta));\n float zoom = (DIST - cos(thetaCorner)) / (DIST - 1.0);\n float x = 0.5 + 0.5 * n.x / (zoom * width);\n // lit from the camera: darker as the surface turns away\n float facing = (DIST * cos(theta) - 1.0)\n / sqrt(1.0 + DIST * DIST - 2.0 * DIST * cos(theta)) ;\n float light = mix(1.0, clamp(facing, 0.0, 1.0), shading);\n\n // position on the strip (the frame height when flat), rolling the outgoing image away\n float v = 0.5 * (theta / phi + 1.0) + (downward ? roll : -roll);\n float len = 0.5 * blur * peak;\n float split = chroma * peak;\n float jitter = hash(uv * 1000.0);\n vec3 color = vec3(0.0);\n vec3 weight = vec3(0.0);\n float alpha = 0.0;\n for (int i = 0; i < SAMPLES; i++) {\n float t = (float(i) + jitter) / float(SAMPLES) - 0.5;\n vec4 img = strip(x, v + t * len);\n // the channels weigh the samples differently along the roll: an RGB split\n vec3 w = vec3(max(1.0 - 4.0 * split * t, 0.0), 1.0, max(1.0 + 4.0 * split * t, 0.0));\n color += img.rgb * img.a * w;\n weight += img.a * w;\n alpha += img.a;\n }\n color = color / max(weight, vec3(1e-5));\n return vec4(color * light, alpha / float(SAMPLES));\n}\n","author":"gre","license":"MIT","description":"The frame wraps around a drum that rolls up, the outgoing image turning away over its top in a motion blur and the incoming one coming around from below and unrolling flat","tags":["3d","roll","motion-blur","vertical","chromatic"],"params":{"curvature":{"type":"float","default":0.8,"min":0,"max":1,"description":"How much the frame wraps around the drum"},"blur":{"type":"float","default":0.5,"min":0,"max":1,"description":"Length of the motion blur at full speed"},"shading":{"type":"float","default":0.6,"min":0,"max":1,"description":"How much the drum darkens as it turns away"},"chroma":{"type":"float","default":0.5,"min":0,"max":1,"description":"Amount of RGB split along the roll, growing with speed"},"downward":{"type":"bool","default":false,"description":"Roll downward instead, the incoming image coming around from above"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 23:20:50 +0100","updatedAt":"Sat, 31 Oct 2026 23:20:50 +0100"},{"name":"DefocusBlur","paramsTypes":{"blurSize":"float"},"defaultParams":{"blurSize":0.02},"glsl":"// Author: Sergey Kosarevsky\n// License: MIT\n// Description: A crossfade through an out-of-focus blur\n// Tags: blur, blend\n// Ported from https://gist.github.com/corporateshark/b9f8e5675c647e615419\n\n// @param Amount of blur\nuniform float blurSize; // = 0.02\n\n// 12-tap Poisson disk\n// https://github.com/spite/Wagner/blob/master/fragment-shaders/poisson-disc-blur-fs.glsl\n\nvec4 transition(vec2 uv) {\n float T = progress;\n float half_ = 0.5;\n float D = (T < half_) ? mix(0.0, blurSize, T / half_) : mix(blurSize, 0.0, (T - half_) / half_);\n vec4 C0 = getFromColor(uv);\n vec4 C1 = getToColor(uv);\n C0 += getFromColor(vec2(-0.326, -0.406) * D + uv);\n C1 += getToColor(vec2(-0.326, -0.406) * D + uv);\n C0 += getFromColor(vec2(-0.840, -0.074) * D + uv);\n C1 += getToColor(vec2(-0.840, -0.074) * D + uv);\n C0 += getFromColor(vec2(-0.696, 0.457) * D + uv);\n C1 += getToColor(vec2(-0.696, 0.457) * D + uv);\n C0 += getFromColor(vec2(-0.203, 0.621) * D + uv);\n C1 += getToColor(vec2(-0.203, 0.621) * D + uv);\n C0 += getFromColor(vec2( 0.962, -0.195) * D + uv);\n C1 += getToColor(vec2( 0.962, -0.195) * D + uv);\n C0 += getFromColor(vec2( 0.473, -0.480) * D + uv);\n C1 += getToColor(vec2( 0.473, -0.480) * D + uv);\n C0 += getFromColor(vec2( 0.519, 0.767) * D + uv);\n C1 += getToColor(vec2( 0.519, 0.767) * D + uv);\n C0 += getFromColor(vec2( 0.185, -0.893) * D + uv);\n C1 += getToColor(vec2( 0.185, -0.893) * D + uv);\n C0 += getFromColor(vec2( 0.507, 0.064) * D + uv);\n C1 += getToColor(vec2( 0.507, 0.064) * D + uv);\n C0 += getFromColor(vec2( 0.896, 0.412) * D + uv);\n C1 += getToColor(vec2( 0.896, 0.412) * D + uv);\n C0 += getFromColor(vec2(-0.322, -0.933) * D + uv);\n C1 += getToColor(vec2(-0.322, -0.933) * D + uv);\n C0 += getFromColor(vec2(-0.792, -0.598) * D + uv);\n C1 += getToColor(vec2(-0.792, -0.598) * D + uv);\n C0 /= 13.0;\n C1 /= 13.0;\n return mix(C0, C1, T);\n}\n","author":"Sergey Kosarevsky","license":"MIT","description":"A crossfade through an out-of-focus blur","tags":["blur","blend"],"params":{"blurSize":{"type":"float","default":0.02,"description":"Amount of blur"}},"textures":[],"createdAt":"Sun, 29 Mar 2026 20:32:54 +0200","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"DiamondWipe","paramsTypes":{"center":"vec2","smoothness":"float"},"defaultParams":{"center":[0.5,0.5],"smoothness":0.03},"glsl":"// Author: gre\n// License: MIT\n// Description: A soft-edged diamond grows from the center to reveal the incoming image\n// Tags: shape, wipe, iris\n\n// @param Center of the diamond\nuniform vec2 center; // = vec2(0.5)\n// @range(0, 0.5) Softness of the diamond's edge\nuniform float smoothness; // = 0.03\n\nvec4 transition (vec2 uv) {\n // Measured in square pixels, so the diamond is not stretched\n vec2 d = abs(uv - center) * vec2(ratio, 1.0);\n // The diamond covers the frame once it reaches the farthest corner\n vec2 far = max(center, 1.0 - center) * vec2(ratio, 1.0);\n float dist = (d.x + d.y) / (far.x + far.y);\n float s = max(smoothness, 0.001);\n float m = smoothstep(0.0, s, progress * (1.0 + s) - dist);\n return mix(getFromColor(uv), getToColor(uv), m);\n}\n","author":"gre","license":"MIT","description":"A soft-edged diamond grows from the center to reveal the incoming image","tags":["shape","wipe","iris"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Center of the diamond"},"smoothness":{"type":"float","default":0.03,"min":0,"max":0.5,"description":"Softness of the diamond's edge"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:17:51 +0100","updatedAt":"Sat, 31 Oct 2026 18:17:51 +0100"},{"name":"Directional","paramsTypes":{"direction":"vec2"},"defaultParams":{"direction":[0,1]},"glsl":"// Author: Gaëtan Renaudeau\n// License: MIT\n// Description: The incoming image pushes the outgoing one out in a given direction\n// Tags: slide, push, directional\n\n// @param Direction of the movement\nuniform vec2 direction; // = vec2(0.0, 1.0)\n\nvec4 transition (vec2 uv) {\n vec2 p = uv + progress * sign(direction);\n vec2 f = fract(p);\n return mix(\n getToColor(f),\n getFromColor(f),\n step(0.0, p.y) * step(p.y, 1.0) * step(0.0, p.x) * step(p.x, 1.0)\n );\n}\n","author":"Gaëtan Renaudeau","license":"MIT","description":"The incoming image pushes the outgoing one out in a given direction","tags":["slide","push","directional"],"params":{"direction":{"type":"vec2","default":[0,1],"description":"Direction of the movement"}},"textures":[],"createdAt":"Thu, 19 Apr 2018 12:20:29 +0200","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"DirectionalEased","paramsTypes":{"direction":"vec2"},"defaultParams":{"direction":[0,1]},"glsl":"// Author: Max Plotnikov\n// License: MIT\n// Description: Like Directional, with an eased movement\n// Tags: slide, push, directional\n\n// @param Direction of the movement\nuniform vec2 direction; // = vec2(0.0, 1.0)\n\nvec4 transition (vec2 uv) {\n float easing = sqrt((2.0 - progress) * progress);\n vec2 p = uv + easing * sign(direction);\n vec2 f = fract(p);\n return mix(\n getToColor(f),\n getFromColor(f),\n step(0.0, p.y) * step(p.y, 1.0) * step(0.0, p.x) * step(p.x, 1.0)\n );\n}\n","author":"Max Plotnikov","license":"MIT","description":"Like Directional, with an eased movement","tags":["slide","push","directional"],"params":{"direction":{"type":"vec2","default":[0,1],"description":"Direction of the movement"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"DirectionalScaled","paramsTypes":{"direction":"vec2","scale":"float"},"defaultParams":{"direction":[0,1],"scale":0.7},"glsl":"// Author: Thibaut Foussard\n// based on Directional transition by Gaëtan Renaudeau\n// https://gl-transitions.com/editor/Directional\n// License: MIT\n// Description: Like Directional, with both images scaled down while they slide\n// Tags: slide, push, zoom, directional\n\n#define PI acos(-1.0)\n\n// @param Direction of the movement\nuniform vec2 direction; // = vec2(0.0, 1.0)\nuniform float scale; // = .7\n\nfloat parabola(float x) {\n float y = pow(sin(x * PI), 1.);\n return y;\n}\n\nvec4 transition (vec2 uv) {\n float easedProgress = pow(sin(progress * PI / 2.), 3.);\n vec2 p = uv + easedProgress * sign(direction);\n vec2 f = fract(p);\n \n float s = 1. - (1. - (1. / scale)) * parabola(progress);\n f = (f - 0.5) * s + 0.5;\n \n float mixer = step(0.0, p.y) * step(p.y, 1.0) * step(0.0, p.x) * step(p.x, 1.0);\n vec4 col = mix(getToColor(f), getFromColor(f), mixer);\n \n float border = step(0., f.x) * step(0., (1. - f.x)) * step(0., f.y) * step(0., 1. - f.y);\n col *= border;\n \n return col;\n}\n","author":"Thibaut Foussard","license":"MIT","description":"Like Directional, with both images scaled down while they slide","tags":["slide","push","zoom","directional"],"params":{"direction":{"type":"vec2","default":[0,1],"description":"Direction of the movement"},"scale":{"type":"float","default":0.7}},"textures":[],"createdAt":"Tue, 4 Apr 2023 03:29:34 -0400","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"DirectionalWarp","paramsTypes":{"smoothness":"float","direction":"vec2"},"defaultParams":{"smoothness":0.1,"direction":[-1,1]},"glsl":"// Author: pschroen\n// License: MIT\n// Description: A diagonal wipe with a warped, smeared edge\n// Tags: wipe, warp, directional\n\n// @param Softness of the edge\nuniform float smoothness; // = 0.1\n// @param Direction of the wipe\nuniform vec2 direction; // = vec2(-1.0, 1.0)\n\nconst vec2 center = vec2(0.5, 0.5);\n\nvec4 transition (vec2 uv) {\n vec2 v = normalize(direction);\n v /= abs(v.x) + abs(v.y);\n float d = v.x * center.x + v.y * center.y;\n float m = 1.0 - smoothstep(-smoothness, 0.0, v.x * uv.x + v.y * uv.y - (d - 0.5 + progress * (1.0 + smoothness)));\n return mix(getFromColor((uv - 0.5) * (1.0 - m) + 0.5), getToColor((uv - 0.5) * m + 0.5), m);\n}\n","author":"pschroen","license":"MIT","description":"A diagonal wipe with a warped, smeared edge","tags":["wipe","warp","directional"],"params":{"smoothness":{"type":"float","default":0.1,"description":"Softness of the edge"},"direction":{"type":"vec2","default":[-1,1],"description":"Direction of the wipe"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"DirectionalWipe","paramsTypes":{"direction":"vec2","smoothness":"float"},"defaultParams":{"direction":[1,-1],"smoothness":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: A straight wipe in any direction, diagonal and soft-edged by default; a smoothness of 0 gives a hard edge\n// Tags: wipe, directional\n\n// @param Direction of the wipe\nuniform vec2 direction; // = vec2(1.0, -1.0)\n// @param Softness of the edge\nuniform float smoothness; // = 0.5\n \nconst vec2 center = vec2(0.5, 0.5);\n \nvec4 transition (vec2 uv) {\n vec2 v = normalize(direction);\n v /= abs(v.x)+abs(v.y);\n float d = v.x * center.x + v.y * center.y;\n float m =\n (1.0-step(progress, 0.0)) * // there is something wrong with our formula that makes m not equals 0.0 with progress is 0.0\n (1.0 - smoothstep(-smoothness, 0.0, v.x * uv.x + v.y * uv.y - (d-0.5+progress*(1.+smoothness))));\n return mix(getFromColor(uv), getToColor(uv), m);\n}\n","author":"gre","license":"MIT","description":"A straight wipe in any direction, diagonal and soft-edged by default; a smoothness of 0 gives a hard edge","tags":["wipe","directional"],"params":{"direction":{"type":"vec2","default":[1,-1],"description":"Direction of the wipe"},"smoothness":{"type":"float","default":0.5,"description":"Softness of the edge"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Thu, 5 Nov 2026 11:34:33 +0100"},{"name":"Disintegrate","paramsTypes":{"particleSize":"float","direction":"vec2","spread":"float"},"defaultParams":{"particleSize":0.008,"direction":[1,-0.15],"spread":0.75},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image crumbles into fine dust from one side, its grains blown away by the wind and fading out, revealing the incoming image underneath\n// Tags: particles, dust, wind, directional\n\n// @range(0.0075, 0.03) Size of the dust grains, in frame heights\nuniform float particleSize; // = 0.008\n// @param Direction in which the wind blows the dust\nuniform vec2 direction; // = vec2(1.0, -0.15)\n// @range(0, 1) How far the dust flies and scatters before it fades out\nuniform float spread; // = 0.75\n\n// the grains a pixel looks back to, along the wind: every grain up to 16 cells away,\n// one in 2 up to 32 cells, one in 4 up to 64 cells (only those stay visible that far,\n// so the dust thins out as it flies): 35 candidates, without unrolling a long loop\nconst int NEAR = 17;\nconst int CANDIDATES = 35;\n// part of the transition during which a grain flies, from its release to its fade-out\nconst float LIFE = 0.45;\n\nfloat hash12(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// smooth value noise, between -1 and 1\nfloat noise(vec2 p) {\n vec2 i = floor(p);\n vec2 f = fract(p);\n f = f * f * (3.0 - 2.0 * f);\n float a = hash12(i);\n float b = hash12(i + vec2(1.0, 0.0));\n float c = hash12(i + vec2(0.0, 1.0));\n float d = hash12(i + vec2(1.0, 1.0));\n return 2.0 * mix(mix(a, b, f.x), mix(c, d, f.x), f.y) - 1.0;\n}\n\n// the grains' sideways drift, in gusts along the wind, between -1 and 1: it depends only\n// on where a grain comes from along the wind, so that a pixel knows which row to look in\nfloat gust(float x) {\n float i = floor(x);\n float f = fract(x);\n f = f * f * (3.0 - 2.0 * f);\n return 2.0 * mix(hash12(vec2(i, 7.0)), hash12(vec2(i + 1.0, 7.0)), f) - 1.0;\n}\n\n// when the grain at this center (in cells) is released, from the downwind side first,\n// along a ragged front\nfloat release(vec2 center, float h, float halfLength, float s) {\n float front = 1.0 - (center.x + halfLength) / (2.0 * halfLength) + 0.14 * noise(center * s * 6.0) + 0.08 * (h - 0.5);\n return clamp((front + 0.12) / 1.24, 0.0, 1.0) * (1.0 - LIFE);\n}\n\nvec4 transition(vec2 uv) {\n vec2 d = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n vec2 n = vec2(-d.y, d.x);\n // grid of grains aligned with the wind: x along it, y across it, in cells\n vec2 fp = (uv - 0.5) * vec2(ratio, 1.0);\n float s = particleSize;\n vec2 g = vec2(dot(fp, d), dot(fp, n)) / s;\n float halfLength = 0.5 * (ratio * abs(d.x) + abs(d.y)) / s;\n // the longest flight, in cells (at most 60, within the 64 cells looked back to)\n float reach = min(spread * 0.45 / s, 60.0);\n float px = floor(g.x);\n\n // this pixel's own grain: once it has left, the incoming image shows through\n vec2 own = floor(g);\n vec4 under = progress > release(own + 0.5, hash12(own), halfLength, s) ? getToColor(uv) : getFromColor(uv);\n vec2 grainUV = vec2(0.5);\n float cover = 0.0;\n for (int i = 0; i < CANDIDATES; i++) {\n // the column of the candidate grain\n float fi = float(i);\n float cx = px - fi;\n if (i >= NEAR + 9) {\n cx = floor(px / 4.0) * 4.0 - 4.0 * (fi - float(NEAR + 9) + 8.0);\n } else if (i >= NEAR) {\n cx = floor(px / 2.0) * 2.0 - 2.0 * (fi - float(NEAR) + 8.0);\n }\n // how far the grain stays visible (in cells): further when its column is a multiple\n // of 2, and of 4, as far as the pixels look back to\n float visible = mod(cx, 4.0) < 0.5 ? 63.0 : mod(cx, 2.0) < 0.5 ? 31.0 : 15.0;\n float drift = 0.3 * gust(cx * s * 4.0);\n // the row the grain comes from: its sideways drift is known from its column and how\n // far it has flown to get here\n vec2 cell = vec2(cx, floor(g.y - drift * (g.x - cx - 0.5)));\n vec2 center = cell + 0.5;\n vec2 cuv = (center.x * d + center.y * n) * s / vec2(ratio, 1.0) + 0.5;\n if (cuv.x < 0.0 || cuv.x > 1.0 || cuv.y < 0.0 || cuv.y > 1.0) continue;\n float h = hash12(cell);\n float t = (progress - release(center, h, halfLength, s)) / LIFE;\n if (t <= 0.0 || t >= 1.0) continue;\n float r2 = fract(h * 13.7);\n // the grain speeds up, drifts sideways, shrinks and fades out\n float travel = reach * (0.4 + 0.6 * r2) * t * (0.2 + 0.8 * t);\n // it first fills its cell, then crumbles to a smaller speck\n float crumble = smoothstep(0.0, 0.25, t);\n vec2 pos = center + vec2(travel + (fract(h * 71.1) - 0.5) * 0.3 * crumble, drift * travel);\n vec2 local = abs(g - pos);\n float size = mix(0.5, 0.3 * (1.0 - 0.5 * t) * (0.6 + 0.4 * h), crumble);\n float feather = 0.001 + 0.12 * crumble;\n float a = (1.0 - smoothstep(size - feather, size, max(local.x, local.y))) * (1.0 - smoothstep(0.15, 1.0, t))\n * (1.0 - smoothstep(0.6 * visible, visible, travel));\n if (a > cover) {\n cover = a;\n grainUV = cuv;\n }\n }\n return mix(under, getFromColor(grainUV), cover);\n}\n","author":"gre","license":"MIT","description":"The outgoing image crumbles into fine dust from one side, its grains blown away by the wind and fading out, revealing the incoming image underneath","tags":["particles","dust","wind","directional"],"params":{"particleSize":{"type":"float","default":0.008,"min":0.0075,"max":0.03,"description":"Size of the dust grains, in frame heights"},"direction":{"type":"vec2","default":[1,-0.15],"description":"Direction in which the wind blows the dust"},"spread":{"type":"float","default":0.75,"min":0,"max":1,"description":"How far the dust flies and scatters before it fades out"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:55:33 +0100","updatedAt":"Sun, 1 Nov 2026 20:55:33 +0100"},{"name":"DisplacementMap","paramsTypes":{"strength":"float"},"defaultParams":{"strength":0.5},"glsl":"// Author: Travis Fischer\n// License: MIT\n// Description: A crossfade in which a displacement map (an extra grayscale texture) warps both images\n// Tags: displace, distort, blend\n//\n// Adapted from a Codrops article by Robin Delaporte\n// https://tympanus.net/Development/DistortionHoverEffect\n\nuniform sampler2D displacementMap;\n\n// @param Strength of the displacement\nuniform float strength; // = 0.5\n\nvec4 transition (vec2 uv) {\n float displacement = texture2D(displacementMap, uv).r * strength;\n\n vec2 uvFrom = vec2(uv.x + progress * displacement, uv.y);\n vec2 uvTo = vec2(uv.x - (1.0 - progress) * displacement, uv.y);\n\n return mix(\n getFromColor(uvFrom),\n getToColor(uvTo),\n progress\n );\n}\n","author":"Travis Fischer","license":"MIT","description":"A crossfade in which a displacement map (an extra grayscale texture) warps both images","tags":["displace","distort","blend"],"params":{"strength":{"type":"float","default":0.5,"description":"Strength of the displacement"}},"textures":["displacementMap"],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"DitherDissolve","paramsTypes":{"dotSize":"float"},"defaultParams":{"dotSize":0.02},"glsl":"// Author: gre\n// License: MIT\n// Description: The incoming image appears through a regular 8x8 ordered dither pattern, like a retro computer screen\n// Tags: dissolve, pattern, retro, pixelate\n\n// @range(0.002, 0.05) Size of a dither dot, relative to the height\nuniform float dotSize; // = 0.02\n\n// Threshold of the 8x8 Bayer matrix at integer cell c, in (0, 1)\nfloat bayer(vec2 c) {\n float v = 0.0;\n float scale = 16.0;\n for (int i = 0; i < 3; i++) {\n vec2 bit = mod(floor(c), 2.0);\n // a 2x2 step: 0 2 / 3 1, i.e. 2 * (x xor y) + y\n v += scale * (2.0 * abs(bit.x - bit.y) + bit.y);\n c *= 0.5;\n scale *= 0.25;\n }\n return (v + 0.5) / 64.0;\n}\n\nvec4 transition(vec2 uv) {\n vec2 cell = floor(uv * vec2(ratio, 1.0) / dotSize);\n return progress < bayer(cell) ? getFromColor(uv) : getToColor(uv);\n}\n","author":"gre","license":"MIT","description":"The incoming image appears through a regular 8x8 ordered dither pattern, like a retro computer screen","tags":["dissolve","pattern","retro","pixelate"],"params":{"dotSize":{"type":"float","default":0.02,"min":0.002,"max":0.05,"description":"Size of a dither dot, relative to the height"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:16:40 +0100","updatedAt":"Sat, 31 Oct 2026 18:16:40 +0100"},{"name":"DoomMelt","paramsTypes":{"bars":"int","amplitude":"float","noise":"float","frequency":"float","dripScale":"float"},"defaultParams":{"bars":30,"amplitude":2,"noise":0.1,"frequency":0.5,"dripScale":0.5},"glsl":"// Author: Zeh Fernando\n// License: MIT\n// Description: The outgoing image melts down in uneven columns, like the Doom screen wipe\n// Tags: melt, columns, retro\n\n\n// Transition parameters --------\n\n// Number of total bars/columns\nuniform int bars; // = 30\n\n// Multiplier for speed ratio. 0 = no variation when going down, higher = some elements go much faster\nuniform float amplitude; // = 2\n\n// Further variations in speed. 0 = no noise, 1 = super noisy (ignore frequency)\nuniform float noise; // = 0.1\n\n// Speed variation horizontally. the bigger the value, the shorter the waves\nuniform float frequency; // = 0.5\n\n// How much the bars seem to \"run\" from the middle of the screen first (sticking to the sides). 0 = no drip, 1 = curved drip\nuniform float dripScale; // = 0.5\n\n\n// The code proper --------\n\nfloat rand(int num) {\n return fract(mod(float(num) * 67123.313, 12.0) * sin(float(num) * 10.3) * cos(float(num)));\n}\n\nfloat wave(int num) {\n float fn = float(num) * frequency * 0.1 * float(bars);\n return cos(fn * 0.5) * cos(fn * 0.13) * sin((fn+10.0) * 0.3) / 2.0 + 0.5;\n}\n\nfloat drip(int num) {\n return sin(float(num) / float(bars - 1) * 3.141592) * dripScale;\n}\n\nfloat pos(int num) {\n return (noise == 0.0 ? wave(num) : mix(wave(num), rand(num), noise)) + (dripScale == 0.0 ? 0.0 : drip(num));\n}\n\nvec4 transition(vec2 uv) {\n int bar = int(uv.x * (float(bars)));\n float scale = 1.0 + pos(bar) * amplitude;\n float phase = progress * scale;\n float posY = uv.y / vec2(1.0).y;\n vec2 p;\n vec4 c;\n if (phase + posY < 1.0) {\n p = vec2(uv.x, uv.y + mix(0.0, vec2(1.0).y, phase)) / vec2(1.0).xy;\n c = getFromColor(p);\n } else {\n p = uv.xy / vec2(1.0).xy;\n c = getToColor(p);\n }\n\n // Finally, apply the color\n return c;\n}\n","author":"Zeh Fernando","license":"MIT","description":"The outgoing image melts down in uneven columns, like the Doom screen wipe","tags":["melt","columns","retro"],"params":{"bars":{"type":"int","default":30},"amplitude":{"type":"float","default":2},"noise":{"type":"float","default":0.1},"frequency":{"type":"float","default":0.5},"dripScale":{"type":"float","default":0.5}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Doorway","paramsTypes":{"reflection":"float","perspective":"float","depth":"float"},"defaultParams":{"reflection":0.4,"perspective":0.4,"depth":3},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image opens like double doors as the incoming one comes forward, with a floor reflection\n// Tags: doors, 3d, reflection\n// @param Strength of the reflection\nuniform float reflection; // = 0.4\n// @param Amount of perspective\nuniform float perspective; // = 0.4\nuniform float depth; // = 3\n\nconst vec4 black = vec4(0.0); // where no image is drawn: transparent\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec2 project (vec2 p) {\n return p * vec2(1.0, -1.2) + vec2(0.0, -0.02);\n}\n\nvec4 bgColor (vec2 p, vec2 pto) {\n vec4 c = black;\n pto = project(pto);\n if (inBounds(pto)) {\n c += mix(black, getToColor(pto), reflection * mix(1.0, 0.0, pto.y));\n }\n return c;\n}\n\n\nvec4 transition (vec2 p) {\n vec2 pfr = vec2(-1.), pto = vec2(-1.);\n float middleSlit = 2.0 * abs(p.x-0.5) - progress;\n if (middleSlit > 0.0) {\n pfr = p + (p.x > 0.5 ? -1.0 : 1.0) * vec2(0.5*progress, 0.0);\n float d = 1.0/(1.0+perspective*progress*(1.0-middleSlit));\n pfr.y -= d/2.;\n pfr.y *= d;\n pfr.y += d/2.;\n }\n float size = mix(1.0, depth, 1.-progress);\n pto = (p + vec2(-0.5, -0.5)) * vec2(size, size) + vec2(0.5, 0.5);\n if (inBounds(pfr)) {\n return getFromColor(pfr);\n }\n else if (inBounds(pto)) {\n return getToColor(pto);\n }\n else {\n return bgColor(p, pto);\n }\n}\n","author":"gre","license":"MIT","description":"The outgoing image opens like double doors as the incoming one comes forward, with a floor reflection","tags":["doors","3d","reflection"],"params":{"reflection":{"type":"float","default":0.4,"description":"Strength of the reflection"},"perspective":{"type":"float","default":0.4,"description":"Amount of perspective"},"depth":{"type":"float","default":3}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"Dreamy","paramsTypes":{},"defaultParams":{},"glsl":"// Author: mikolalysenko\n// License: MIT\n// Description: A crossfade with a gentle wavy distortion\n// Tags: wave, blend\n\nvec2 offset(float progress, float x, float theta) {\n float phase = progress*progress + progress + theta;\n float shifty = 0.03*progress*cos(10.0*(progress+x));\n return vec2(0, shifty);\n}\nvec4 transition(vec2 p) {\n return mix(getFromColor(p + offset(progress, p.x, 0.0)), getToColor(p + offset(1.0-progress, p.x, 3.14)), progress);\n}\n","author":"mikolalysenko","license":"MIT","description":"A crossfade with a gentle wavy distortion","tags":["wave","blend"],"params":{},"textures":[],"createdAt":"Mon, 12 Jun 2017 12:27:38 +0800","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"DreamyZoom","paramsTypes":{"rotation":"float","scale":"float"},"defaultParams":{"rotation":6,"scale":1.2},"glsl":"// Author: Zeh Fernando\n// License: MIT\n// Description: Zooms and rotates into a bright flash, then out to the incoming image\n// Tags: zoom, rotate, flash\n\n// Definitions --------\n#define DEG2RAD 0.03926990816987241548078304229099 // 1/180*PI\n\n\n// Transition parameters --------\n\n// In degrees\nuniform float rotation; // = 6\n\n// Multiplier\nuniform float scale; // = 1.2\n\n\n// The code proper --------\n\nvec4 transition(vec2 uv) {\n // Massage parameters\n float phase = progress < 0.5 ? progress * 2.0 : (progress - 0.5) * 2.0;\n float angleOffset = progress < 0.5 ? mix(0.0, rotation * DEG2RAD, phase) : mix(-rotation * DEG2RAD, 0.0, phase);\n float newScale = progress < 0.5 ? mix(1.0, scale, phase) : mix(scale, 1.0, phase);\n \n vec2 center = vec2(0, 0);\n\n // Calculate the source point\n vec2 assumedCenter = vec2(0.5, 0.5);\n vec2 p = (uv.xy - vec2(0.5, 0.5)) / newScale * vec2(ratio, 1.0);\n\n // This can probably be optimized (with distance())\n float angle = atan(p.y, p.x) + angleOffset;\n float dist = distance(center, p);\n p.x = cos(angle) * dist / ratio + 0.5;\n p.y = sin(angle) * dist + 0.5;\n vec4 c = progress < 0.5 ? getFromColor(p) : getToColor(p);\n\n // Finally, apply the color\n // The flash lights up the image, not the transparent areas around it.\n return vec4(c.rgb + (progress < 0.5 ? mix(0.0, 1.0, phase) : mix(1.0, 0.0, phase)), c.a);\n}\n","author":"Zeh Fernando","license":"MIT","description":"Zooms and rotates into a bright flash, then out to the incoming image","tags":["zoom","rotate","flash"],"params":{"rotation":{"type":"float","default":6},"scale":{"type":"float","default":1.2}},"textures":[],"createdAt":"Tue, 30 May 2017 10:44:06 -0700","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"EdgeGlow","paramsTypes":{"edge_thickness":"float","edge_brightness":"float"},"defaultParams":{"edge_thickness":0.001,"edge_brightness":8},"glsl":"// Author: Woohyun Kim\n// License: MIT\n// Description: Both images fade through black with their edges glowing\n// Tags: edges, fade\n\nuniform float edge_thickness; // = 0.001\nuniform float edge_brightness; // = 8.0\n\nvec3 detectEdgeColor(vec3[9] c) {\n /* adjacent texel array for texel c[4]\n 036\n 147\n 258\n */\n vec3 dx = 2.0 * abs(c[7]-c[1]) + abs(c[2] - c[6]) + abs(c[8] - c[0]);\n\tvec3 dy = 2.0 * abs(c[3]-c[5]) + abs(c[6] - c[8]) + abs(c[0] - c[2]);\n float delta = length(0.25 * (dx + dy) * 0.5);\n\treturn clamp(edge_brightness * delta, 0.0, 1.0) * c[4];\n}\n\nvec4 getFromEdgeColor(vec2 uv) {\n\tvec3 c[9];\n\tfloat alpha = 0.0;\n\tfor (int i=0; i < 3; ++i) for (int j=0; j < 3; ++j)\n\t{\n\t vec4 color = getFromColor(uv + edge_thickness * vec2(i-1,j-1));\n c[3*i + j] = color.rgb;\n if (i == 1 && j == 1) alpha = color.a;\n\t}\n\treturn vec4(detectEdgeColor(c), alpha);\n}\n\nvec4 getToEdgeColor(vec2 uv) {\n\tvec3 c[9];\n\tfloat alpha = 0.0;\n\tfor (int i=0; i < 3; ++i) for (int j=0; j < 3; ++j)\n\t{\n\t vec4 color = getToColor(uv + edge_thickness * vec2(i-1,j-1));\n c[3*i + j] = color.rgb;\n if (i == 1 && j == 1) alpha = color.a;\n\t}\n\treturn vec4(detectEdgeColor(c), alpha);\n}\n\nvec4 transition (vec2 uv) {\n vec4 start = mix(getFromColor(uv), getFromEdgeColor(uv), clamp(2.0 * progress, 0.0, 1.0));\n vec4 end = mix(getToEdgeColor(uv), getToColor(uv), clamp(2.0 * (progress - 0.5), 0.0, 1.0));\n return mix(\n start,\n end,\n progress\n );\n}\n","author":"Woohyun Kim","license":"MIT","description":"Both images fade through black with their edges glowing","tags":["edges","fade"],"params":{"edge_thickness":{"type":"float","default":0.001},"edge_brightness":{"type":"float","default":8}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"EyeBlink","paramsTypes":{"blur":"float","softness":"float","blinks":"int","color":"vec4"},"defaultParams":{"blur":0.5,"softness":0.12,"blinks":1,"color":[0.03,0.02,0.02,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: Curved eyelids close from the top and bottom over the outgoing image, which blurs and dims, then open on the incoming image as it comes back into focus, as if the viewer blinked\n// Tags: blink, eye, blur, shape\n\n// @range(0, 1) How much the image blurs and dims while the eyes are closed\nuniform float blur; // = 0.5\n// @range(0.01, 0.3) Width of the soft shadow along the rim of the eyelids\nuniform float softness; // = 0.12\n// @range(1, 2, 1) Number of blinks: 1, or 2 for a quick double blink (the cut happens on the first one)\nuniform int blinks; // = 1\n// @color Color of the eyelids\nuniform vec4 color; // = vec4(0.03, 0.02, 0.02, 1.0)\n\nconst int TAPS = 16;\n// how much the eyelids curve: the opening is widest at the center and the corners close first\nconst float CURVE = 0.25;\n// where the eyelids meet, below the middle: the upper lid travels further than the lower one\nconst float MEET = 0.44;\n\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// a blink fully closed at c (held for 2 * hold): the lids close over wc before it\n// and open over wo after it, slower, like a real blink\nfloat lidBlink(float t, float c, float wc, float wo, float hold) {\n return 1.0 - smoothstep(hold, t < c ? wc : wo, abs(t - c));\n}\n\nvec4 image(vec2 uv, bool incoming) {\n vec4 c = incoming ? getToColor(uv) : getFromColor(uv);\n return vec4(c.rgb * c.a, c.a);\n}\n\nvec4 transition(vec2 uv) {\n bool two = blinks > 1;\n // the moment the eyes are fully closed, when the images are swapped\n float cut = two ? 0.3 : 0.42;\n // how closed the eyes are: 0 open, 1 closed\n float closed = two\n ? max(lidBlink(progress, cut, 0.26, 0.26, 0.015), lidBlink(progress, 0.7, 0.14, 0.24, 0.01))\n : lidBlink(progress, cut, 0.36, 0.5, 0.02);\n bool incoming = progress >= cut;\n\n // the rim of each eyelid is an arc; fully open, even its corners clear the frame by the widest shadow\n float soft = clamp(softness, 0.001, 0.3);\n float x = 2.0 * uv.x - 1.0;\n float rim = (1.0 - closed) * (1.31 + CURVE) - CURVE * x * x;\n // distance inside the opening from the nearest lid, as a share of that lid's travel\n float y = uv.y - MEET;\n float d = rim - max(y / (1.0 - MEET), -y / MEET);\n // the lid fills beyond its rim, with a soft shadow falling inside the opening\n float s = 1.0 - smoothstep(0.0, soft, d);\n float lid = s * s;\n if (lid >= 1.0) return color;\n\n // how out of focus and dim the view is: it peaks at the cut, follows the lids, and clears at both ends\n float f = progress < cut ? progress / cut : (1.0 - progress) / (1.0 - cut);\n f = clamp(f, 0.0, 1.0);\n f = max(f * (2.0 - f), closed) * blur;\n\n vec4 c;\n if (f <= 0.0) {\n c = incoming ? getToColor(uv) : getFromColor(uv);\n } else {\n // a disc of taps along a golden-angle spiral, premultiplied\n float r = 0.025 * f;\n c = vec4(0.0);\n for (int i = 0; i < TAPS; i++) {\n float k = float(i) + 0.5;\n float a = 2.39996 * k;\n vec2 o = sqrt(k / float(TAPS)) * vec2(cos(a), sin(a)) * r;\n c += image(mirror(uv + o * vec2(1.0 / ratio, 1.0)), incoming);\n }\n c /= float(TAPS);\n c = c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n // less light reaches the eye as it closes\n c.rgb *= 1.0 - 0.35 * f;\n }\n return mix(c, color, lid);\n}\n","author":"gre","license":"MIT","description":"Curved eyelids close from the top and bottom over the outgoing image, which blurs and dims, then open on the incoming image as it comes back into focus, as if the viewer blinked","tags":["blink","eye","blur","shape"],"params":{"blur":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the image blurs and dims while the eyes are closed"},"softness":{"type":"float","default":0.12,"min":0.01,"max":0.3,"description":"Width of the soft shadow along the rim of the eyelids"},"blinks":{"type":"int","default":1,"min":1,"max":2,"step":1,"description":"Number of blinks: 1, or 2 for a quick double blink (the cut happens on the first one)"},"color":{"type":"vec4","default":[0.03,0.02,0.02,1],"color":true,"description":"Color of the eyelids"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 08:57:38 +0100","updatedAt":"Wed, 4 Nov 2026 08:57:38 +0100"},{"name":"Fade","paramsTypes":{},"defaultParams":{},"glsl":"// Author: gre\n// License: MIT\n// Description: A linear crossfade between the two images\n// Tags: fade, blend\n\nvec4 transition (vec2 uv) {\n return mix(\n getFromColor(uv),\n getToColor(uv),\n progress\n );\n}\n","author":"gre","license":"MIT","description":"A linear crossfade between the two images","tags":["fade","blend"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"FadeColor","paramsTypes":{"color":"vec4","colorPhase":"float"},"defaultParams":{"color":[0,0,0,1],"colorPhase":0.4},"glsl":"// Author: gre\n// License: MIT\n// Description: A fade through a solid color, black by default\n// Tags: fade, color\n// @color Color to fade through\nuniform vec4 color; // = vec4(0.0, 0.0, 0.0, 1.0)\n// @range(0, 1) How long the color shows in the middle\nuniform float colorPhase; // = 0.4 ; // if 0.0, there is no black phase, if 0.9, the black phase is very important\nvec4 transition (vec2 uv) {\n return mix(\n mix(color, getFromColor(uv), smoothstep(1.0-colorPhase, 0.0, progress)),\n mix(color, getToColor(uv), smoothstep( colorPhase, 1.0, progress)),\n progress);\n}\n","author":"gre","license":"MIT","description":"A fade through a solid color, black by default","tags":["fade","color"],"params":{"color":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color to fade through"},"colorPhase":{"type":"float","default":0.4,"min":0,"max":1,"description":"How long the color shows in the middle"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"FadeGrayscale","paramsTypes":{"intensity":"float"},"defaultParams":{"intensity":0.3},"glsl":"// Author: gre\n// License: MIT\n// Description: A crossfade through grayscale\n// Tags: fade, grayscale, color\n\n// @range(0, 1) How long the grayscale phase lasts\nuniform float intensity; // = 0.3; // if 0.0, the image directly turn grayscale, if 0.9, the grayscale transition phase is very important\n \nvec3 grayscale (vec3 color) {\n return vec3(0.2126*color.r + 0.7152*color.g + 0.0722*color.b);\n}\n \nvec4 transition (vec2 uv) {\n vec4 fc = getFromColor(uv);\n vec4 tc = getToColor(uv);\n return mix(\n mix(vec4(grayscale(fc.rgb), fc.a), fc, smoothstep(1.0-intensity, 0.0, progress)),\n mix(vec4(grayscale(tc.rgb), tc.a), tc, smoothstep( intensity, 1.0, progress)),\n progress);\n}\n","author":"gre","license":"MIT","description":"A crossfade through grayscale","tags":["fade","grayscale","color"],"params":{"intensity":{"type":"float","default":0.3,"min":0,"max":1,"description":"How long the grayscale phase lasts"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"FallOver","paramsTypes":{"perspective":"float","shading":"float"},"defaultParams":{"perspective":0.8,"shading":0.7},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image falls over backward, hinged on its bottom edge, revealing the incoming one behind it\n// Tags: rotate, vertical, 3d\n\n// @range(0, 1) Strength of the perspective\nuniform float perspective; // = 0.8\n// @range(0, 1) How much the image darkens as it falls\nuniform float shading; // = 0.7\n\nconst float PI = 3.141592653589793;\n\nvec4 transition (vec2 uv) {\n // it starts slowly, then gravity takes over\n float fall = progress * (0.25 + 0.75 * progress);\n float angle = 0.5 * PI * fall;\n float c = cos(angle), s = sin(angle);\n // a camera in front of the middle of the image goes down to the level of the hinge,\n // so that the image ends edge-on\n float dist = 1.0 / max(perspective, 0.01);\n vec3 eye = vec3(0.5 * ratio, 0.5 * c, -dist);\n vec3 dir = vec3(uv.x * ratio, uv.y, 0.0) - eye;\n // cast a ray onto the plane of the image turned back by angle around its bottom edge\n float den = dir.z * c - dir.y * s;\n if (den > 0.0) {\n float t = (eye.y * s - eye.z * c) / den;\n vec3 hit = eye + t * dir;\n vec2 puv = vec2(hit.x / ratio, hit.y * c + hit.z * s);\n if (t > 0.0 && puv.y > 0.0 && puv.y <= 1.0 && puv.x >= 0.0 && puv.x <= 1.0) {\n vec4 col = getFromColor(puv);\n return vec4(col.rgb * (1.0 - shading * s), col.a);\n }\n }\n return getToColor(uv);\n}\n","author":"gre","license":"MIT","description":"The outgoing image falls over backward, hinged on its bottom edge, revealing the incoming one behind it","tags":["rotate","vertical","3d"],"params":{"perspective":{"type":"float","default":0.8,"min":0,"max":1,"description":"Strength of the perspective"},"shading":{"type":"float","default":0.7,"min":0,"max":1,"description":"How much the image darkens as it falls"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:18:48 +0100","updatedAt":"Sat, 31 Oct 2026 18:18:48 +0100"},{"name":"FilmBurn","paramsTypes":{"Seed":"float"},"defaultParams":{"Seed":2.31},"glsl":"// Author: Anastasia Dunbar\n// License: MIT\n// Description: Glowing film-burn light leaks wash over the image and reveal the incoming one\n// Tags: burn, film, light-leak\n// @param Random seed\nuniform float Seed; // = 2.31\nfloat sigmoid(float x, float a) {\n float b = pow(x*2.,a)/2.;\n if (x > .5) {\n b = 1.-pow(2.-(x*2.),a)/2.;\n }\n\treturn b;\n}\nfloat rand(float co){\n return fract(sin((co*24.9898)+Seed)*43758.5453);\n}\nfloat rand(vec2 co){\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\nfloat apow(float a,float b) { return pow(abs(a),b)*sign(b); }\nvec3 pow3(vec3 a,vec3 b) { return vec3(apow(a.r,b.r),apow(a.g,b.g),apow(a.b,b.b)); }\nfloat smooth_mix(float a,float b,float c) { return mix(a,b,sigmoid(c,2.)); }\nfloat random(vec2 co, float shft){\n co += 10.;\n return smooth_mix(fract(sin(dot(co.xy ,vec2(12.9898+(floor(shft)*.5),78.233+Seed))) * 43758.5453),fract(sin(dot(co.xy ,vec2(12.9898+(floor(shft+1.)*.5),78.233+Seed))) * 43758.5453),fract(shft));\n}\nfloat smooth_random(vec2 co, float shft) {\n\treturn smooth_mix(smooth_mix(random(floor(co),shft),random(floor(co+vec2(1.,0.)),shft),fract(co.x)),smooth_mix(random(floor(co+vec2(0.,1.)),shft),random(floor(co+vec2(1.,1.)),shft),fract(co.x)),fract(co.y));\n}\nvec4 blendedColor(vec2 p) {\n return mix(getFromColor(p), getToColor(p), sigmoid(progress,10.));\n}\n#define pi 3.14159265358979323\n#define clamps(x) clamp(x,0.,1.)\n\nvec4 transition(vec2 p) {\n vec3 f = vec3(0.);\n for (float i = 0.; i < 13.; i++) {\n f += sin(((p.x*rand(i)*6.)+(progress*8.))+rand(i+1.43))*sin(((p.y*rand(i+4.4)*6.)+(progress*6.))+rand(i+2.4));\n f += 1.-clamps(length(p-vec2(smooth_random(vec2(progress*1.3),i+1.),smooth_random(vec2(progress*.5),i+6.25)))*mix(20.,70.,rand(i)));\n }\n f += 4.;\n f /= 11.;\n f = pow3(f*vec3(1.,0.7,0.6),vec3(1.,2.-sin(progress*pi),1.3));\n f *= sin(progress*pi);\n \n p -= .5;\n p *= 1.+(smooth_random(vec2(progress*5.),6.3)*sin(progress*pi)*.05);\n p += .5;\n \n vec4 blurred_image = vec4(0.);\n float bluramount = sin(progress*pi)*.03;\n #define repeats 50.\n for (float i = 0.; i < repeats; i++) { \n vec2 q = vec2(cos(degrees((i/repeats)*360.)),sin(degrees((i/repeats)*360.))) * (rand(vec2(i,p.x+p.y))+bluramount); \n vec2 uv2 = p+(q*bluramount);\n blurred_image += blendedColor(uv2);\n }\n blurred_image /= repeats;\n \n return blurred_image+vec4(f,0.);\n}\n","author":"Anastasia Dunbar","license":"MIT","description":"Glowing film-burn light leaks wash over the image and reveal the incoming one","tags":["burn","film","light-leak"],"params":{"Seed":{"type":"float","default":2.31,"description":"Random seed"}},"textures":[],"createdAt":"Wed, 21 Feb 2018 20:52:13 +0100","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"FilmDissolve","paramsTypes":{"overlap":"float","smoothness":"float"},"defaultParams":{"overlap":0.25,"smoothness":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: A cross-dissolve blended in linear light, as light adds up on film: the frame keeps its brightness all the way through and the highlights of each image shine through the other\n// Tags: dissolve, fade, blend, light\n\n// @range(0, 1) Extra light where the two images overlap at mid-dissolve, softly rolled off so it never clips\nuniform float overlap; // = 0.25\n// @range(0, 1) Easing of the dissolve: 0 is linear, 1 eases in and out\nuniform float smoothness; // = 0.5\n\n// sRGB to linear light (the exact piecewise curve)\nvec3 toLinear(vec3 c) {\n vec3 lo = c / 12.92;\n vec3 hi = pow((c + 0.055) / 1.055, vec3(2.4));\n return mix(lo, hi, vec3(greaterThan(c, vec3(0.04045))));\n}\n\n// linear light back to sRGB\nvec3 toSrgb(vec3 c) {\n vec3 lo = c * 12.92;\n vec3 hi = 1.055 * pow(c, vec3(1.0 / 2.4)) - 0.055;\n return mix(lo, hi, vec3(greaterThan(c, vec3(0.0031308))));\n}\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return b;\n\n float t = mix(progress, smoothstep(0.0, 1.0, progress), smoothness);\n\n // premultiplied linear light\n vec3 la = toLinear(clamp(a.rgb, 0.0, 1.0)) * a.a;\n vec3 lb = toLinear(clamp(b.rgb, 0.0, 1.0)) * b.a;\n vec3 base = mix(la, lb, t);\n float alpha = mix(a.a, b.a, t);\n\n // the overlap: each image stays brighter for longer, as in an additive dissolve,\n // rolled off toward full exposure so that bright areas glow instead of clipping\n float extra = overlap * min(t, 1.0 - t);\n vec3 excess = extra * (la + lb);\n vec3 room = max(vec3(alpha) - base, vec3(1e-5));\n vec3 color = base + room * (1.0 - exp(-excess / room));\n\n if (alpha <= 0.0) return vec4(0.0);\n return vec4(toSrgb(clamp(color / alpha, 0.0, 1.0)), alpha);\n}\n","author":"gre","license":"MIT","description":"A cross-dissolve blended in linear light, as light adds up on film: the frame keeps its brightness all the way through and the highlights of each image shine through the other","tags":["dissolve","fade","blend","light"],"params":{"overlap":{"type":"float","default":0.25,"min":0,"max":1,"description":"Extra light where the two images overlap at mid-dissolve, softly rolled off so it never clips"},"smoothness":{"type":"float","default":0.5,"min":0,"max":1,"description":"Easing of the dissolve: 0 is linear, 1 eases in and out"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:33:12 +0100","updatedAt":"Sun, 1 Nov 2026 20:33:12 +0100"},{"name":"FilmStrip","paramsTypes":{"frames":"int","shrink":"float","blur":"float","weave":"float","filmColor":"vec4","holeColor":"vec4"},"defaultParams":{"frames":2,"shrink":0.2,"blur":0.5,"weave":0.5,"filmColor":[0.06,0.05,0.05,1],"holeColor":[0.96,0.93,0.85,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The picture slips like film in a projector gate: it shrinks to show the sprocket holes, the strip runs down with motion blur and a slight weave, then the incoming frame lands in place\n// Tags: retro, vertical, motion-blur, film\n\n// @range(1, 6, 1) Number of frames that slip by\nuniform int frames; // = 2\n// @range(0, 0.4) How much the picture shrinks during the slip, showing the film's edges\nuniform float shrink; // = 0.2\n// @range(0, 1) Length of the motion blur at full speed\nuniform float blur; // = 0.5\n// @range(0, 1) Amount of horizontal weave and vertical jitter\nuniform float weave; // = 0.5\n// @color Color of the film around the pictures and of the line between frames\nuniform vec4 filmColor; // = vec4(0.06, 0.05, 0.05, 1.0)\n// @color Color of the light through the sprocket holes\nuniform vec4 holeColor; // = vec4(0.96, 0.93, 0.85, 1.0)\n\n// height of the line between two frames, in frame heights\nconst float FRAME_LINE = 0.08;\n// sprocket holes per frame\nconst float HOLES = 4.0;\nconst int SAMPLES = 16;\n\n// a fine, evenly spread dither pattern over small cells of the frame\nfloat dither(vec2 cell) {\n return fract(52.9829189 * fract(dot(cell, vec2(0.06711056, 0.00583715))));\n}\n\n// the film at (x, y): x across it (0 to 1 over the picture), y along it from the start of frame\n// number base, in frame heights; holes fades the sprocket holes in\nvec4 film(float x, float y, float base, float n, float aa, float holeX, vec2 holeSize, float holes) {\n float pitch = 1.0 + FRAME_LINE;\n float jy = floor(y / pitch);\n float j = base + jy;\n float fy = y - jy * pitch;\n vec4 c = filmColor;\n if (x >= 0.0 && x <= 1.0 && fy <= 1.0) {\n vec2 q = vec2(x, fy);\n c = j < n ? getFromColor(q) : getToColor(q);\n }\n // soft edges for the picture during the slip (none at rest, where it fills the frame)\n float inside = min(min(x, 1.0 - x) * ratio, min(fy, 1.0 - fy));\n c = mix(filmColor, c, clamp(inside / aa + 0.5, 0.0, 1.0));\n // the sprocket holes, in the margins on both sides, in frame heights\n float hy = mod(y, pitch / HOLES) - 0.5 * pitch / HOLES;\n float hx = (abs(x - 0.5) - holeX) * ratio;\n vec2 dd = abs(vec2(hx, hy)) - holeSize + 0.3 * holeSize.x;\n float sd = length(max(dd, 0.0)) + min(max(dd.x, dd.y), 0.0) - 0.3 * holeSize.x;\n return mix(c, holeColor, clamp(0.5 - sd / aa, 0.0, 1.0) * holes);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n float n = max(float(frames), 1.0);\n float pitch = 1.0 + FRAME_LINE;\n float p = progress;\n // the picture shrinks first, slips, then grows back\n float env = smoothstep(0.0, 0.3, p) * (1.0 - smoothstep(0.7, 1.0, p));\n float k = 1.0 - shrink * env;\n // the slip, in frames: smooth start and landing\n float x0 = clamp((p - 0.15) / 0.7, 0.0, 1.0);\n float slip = x0 * x0 * x0 * (x0 * (x0 * 6.0 - 15.0) + 10.0);\n float speed = 30.0 * x0 * x0 * (1.0 - x0) * (1.0 - x0) / 0.7; // d(slip)/d(progress), up to ~2.7\n // weave and jitter, only while the film moves\n float wob = weave * env;\n // (the weave stays within the film's margin)\n float dx = wob * smoothstep(0.0, 0.1, shrink) * (0.006 * sin(p * 47.0) + 0.004 * sin(p * 113.0 + 1.3));\n float dy = wob * 0.012 * sin(p * 71.0 + 0.4) * (1.0 - speed / 2.7);\n\n // the frames slipped by so far: whole frames, and the position within the current one\n float frameSlip = slip * n;\n float base = floor(frameSlip);\n float x = (uv.x - 0.5) / k + 0.5 + dx;\n float y = (uv.y - 0.5) / k + 0.5 + dy + (frameSlip - base) * pitch;\n // anti-aliasing width, in frame heights: none at rest or without margin\n float aa = 0.002 * min(1.0, 10.0 * env) * min(1.0, 20.0 * shrink) + 1e-4;\n // the holes sit in the middle of the margin the shrinking picture shows\n float margin = 0.5 * shrink / max(1.0 - shrink, 0.01);\n float holeX = 0.5 + 0.5 * margin;\n vec2 holeSize = vec2(0.28 * margin * ratio, 0.11 * pitch / HOLES);\n float holes = smoothstep(0.0, 0.02, margin);\n\n // motion blur along the strip, dithered to hide the steps\n float len = blur * 0.06 * speed * n;\n vec4 color = vec4(0.0);\n if (len < 1e-5) {\n color = film(x, y, base, n, aa, holeX, holeSize, holes);\n } else {\n // averaged with premultiplied colors, so transparent parts don't darken the others\n float jitter = dither(floor(uv * vec2(ratio, 1.0) * 540.0));\n for (int i = 0; i < SAMPLES; i++) {\n float t = (float(i) + jitter) / float(SAMPLES) - 0.5;\n vec4 c = film(x, y + t * len, base, n, aa, holeX, holeSize, holes);\n color += vec4(c.rgb * c.a, c.a);\n }\n color /= float(SAMPLES);\n color.rgb = color.a > 0.0 ? color.rgb / color.a : vec3(0.0);\n }\n // the projector's light flickers a little while the film runs\n color.rgb *= 1.0 - 0.08 * wob * (0.5 + 0.5 * sin(p * 157.0));\n return color;\n}\n","author":"gre","license":"MIT","description":"The picture slips like film in a projector gate: it shrinks to show the sprocket holes, the strip runs down with motion blur and a slight weave, then the incoming frame lands in place","tags":["retro","vertical","motion-blur","film"],"params":{"frames":{"type":"int","default":2,"min":1,"max":6,"step":1,"description":"Number of frames that slip by"},"shrink":{"type":"float","default":0.2,"min":0,"max":0.4,"description":"How much the picture shrinks during the slip, showing the film's edges"},"blur":{"type":"float","default":0.5,"min":0,"max":1,"description":"Length of the motion blur at full speed"},"weave":{"type":"float","default":0.5,"min":0,"max":1,"description":"Amount of horizontal weave and vertical jitter"},"filmColor":{"type":"vec4","default":[0.06,0.05,0.05,1],"color":true,"description":"Color of the film around the pictures and of the line between frames"},"holeColor":{"type":"vec4","default":[0.96,0.93,0.85,1],"color":true,"description":"Color of the light through the sprocket holes"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:37:57 +0100","updatedAt":"Sun, 1 Nov 2026 20:37:57 +0100"},{"name":"Fisheye","paramsTypes":{"strength":"float"},"defaultParams":{"strength":0.8},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image bulges toward the viewer through a strong fisheye lens, then the incoming one flattens back into place\n// Tags: lens, distort, zoom, blend\n\n// @range(0, 1) Strength of the lens at its peak\nuniform float strength; // = 0.8\n\nvec4 transition(vec2 uv) {\n // lens amount: grows, peaks in the middle, then relaxes, eased so that\n // the magnification of the center (1 / (1 - k)) changes at an even pace\n float h = smoothstep(0.0, 1.0, 1.0 - abs(2.0 * progress - 1.0));\n float k = 1.0 - pow(max(1.0 - strength, 0.01), h);\n // round lens: aspect-corrected coordinates, 1.0 at the corners\n vec2 aspect = vec2(ratio, 1.0);\n vec2 c = (uv - 0.5) * aspect;\n float r = length(c) / length(0.5 * aspect);\n // barrel mapping that keeps the corners in place: the center is magnified,\n // the edges squeezed, and every sample stays inside the image\n vec2 q = 0.5 + (uv - 0.5) * (1.0 - k + k * r * r);\n return mix(getFromColor(q), getToColor(q), smoothstep(0.38, 0.62, progress));\n}\n","author":"gre","license":"MIT","description":"The outgoing image bulges toward the viewer through a strong fisheye lens, then the incoming one flattens back into place","tags":["lens","distort","zoom","blend"],"params":{"strength":{"type":"float","default":0.8,"min":0,"max":1,"description":"Strength of the lens at its peak"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:20:26 +0100","updatedAt":"Sat, 31 Oct 2026 18:20:26 +0100"},{"name":"FlameWipe","paramsTypes":{"direction":"vec2","height":"float","scorch":"float","glow":"float","color":"vec3"},"defaultParams":{"direction":[0,1],"height":0.4,"scorch":0.7,"glow":0.6,"color":[1,0.4,0.08]},"glsl":"// Author: gre\n// License: MIT\n// Description: A wall of flames sweeps across the frame, scorching the outgoing image ahead of it and leaving the incoming image under a fading warm glow\n// Tags: fire, flame, burn, wipe, directional\n\n// @param Direction in which the flames sweep across the frame\nuniform vec2 direction; // = vec2(0.0, 1.0)\n// @range(0, 1) Height of the flames, as a fraction of the frame height\nuniform float height; // = 0.4\n// @range(0, 1) How much the outgoing image browns and chars ahead of the flames\nuniform float scorch; // = 0.7\n// @range(0, 1) Strength of the warm glow left on the incoming image\nuniform float glow; // = 0.6\n// @color Tint of the body of the flames\nuniform vec3 color; // = vec3(1.0, 0.4, 0.08)\n\n// width of the scorched band ahead of the flames, and of the glow behind them\nconst float BAND = 0.45;\n// how far off the frame the front starts and ends\nconst float PAD = 0.3;\n// how far the front of the fire wanders around its straight line\nconst float RAGGED = 0.05;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\nfloat noise(vec2 v) {\n vec2 i = floor(v);\n vec2 f = v - i;\n f = f * f * (3.0 - 2.0 * f);\n return mix(mix(hash12(i), hash12(i + vec2(1.0, 0.0)), f.x),\n mix(hash12(i + vec2(0.0, 1.0)), hash12(i + vec2(1.0, 1.0)), f.x), f.y);\n}\n\nfloat fbm(vec2 v) {\n float sum = 0.0;\n float amp = 0.5;\n for (int i = 0; i < 4; i++) {\n sum += amp * noise(v);\n v = v * 2.03 + vec2(17.3, 9.1);\n amp *= 0.5;\n }\n return sum / 0.9375;\n}\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// color of the fire by its heat: dark red tips, a tinted body, a white-yellow core\nvec3 fire(float h) {\n vec3 c = mix(vec3(0.22, 0.01, 0.0), color * color * vec3(1.0, 0.6, 0.4), smoothstep(0.0, 0.3, h));\n c = mix(c, color, smoothstep(0.25, 0.55, h));\n c = mix(c, vec3(1.0, 0.8, 0.35), smoothstep(0.55, 0.8, h));\n return mix(c, vec3(1.0, 0.96, 0.82), smoothstep(0.8, 1.0, h));\n}\n\n// width of a flame tongue climbing along an upright line, from its base (s = 0) to its tip\n// (s = 1), with a random size\nfloat climbing(float s, float size) {\n return (0.42 + 0.56 * size) * 6.75 * s * (1.0 - s) * (1.0 - s);\n}\n\nvec4 transition(vec2 uv) {\n vec2 dir = length(direction) > 1e-5 ? normalize(direction) : vec2(1.0, 0.0);\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0);\n // the flames rise upward from the front: over this distance along the direction\n float rise = height * dir.y;\n // half-width of the burning line, and how far it swells\n float w = 0.05 + 0.35 * height;\n float reach = w * (1.75 + 0.6 * abs(dir.x));\n // the front crosses the frame at the same pace whatever the height of the flames\n float extent = 0.5 * (abs(dir.x) * ratio + abs(dir.y)) + PAD;\n float e = mix(progress, progress * progress * (3.0 - 2.0 * progress), 0.3);\n // the fire catches at the start and dies out at the end, the scorch grows in, the glow fades\n float burn = smoothstep(0.0, 0.12, progress) * (1.0 - smoothstep(0.88, 1.0, progress));\n float scorchAmount = scorch * smoothstep(0.0, 0.2, progress);\n float glowAmount = glow * (1.0 - smoothstep(0.75, 1.0, progress));\n // the flames flicker as they go\n float t = progress * 5.0;\n\n float side = dot(q, vec2(-dir.y, dir.x));\n float front = mix(-extent, extent, e) + RAGGED * (2.0 * noise(vec2(side * 4.0, t * 0.4)) - 1.0);\n // > 0 ahead of the fire, on the outgoing image\n float k = dot(q, dir) - front;\n\n // heat before the turbulence: the burning line, and the flames rising from it.\n // Billows rising in screen space swell and thin the line; where it stands upright,\n // they are tongues climbing along it, each widest at its base and pointed at its tip\n float billow = noise(vec2(q.x * 3.0 + 5.0, q.y * 2.5 - t * 1.6));\n float y = q.y * 3.0 - t * 1.4;\n float y2 = y + 0.5;\n float climb = max(climbing(fract(y), hash12(vec2(floor(y), 3.0))),\n climbing(fract(y2), hash12(vec2(floor(y2), 7.0))));\n billow = mix(billow, 0.4 * billow + climb, abs(dir.x));\n float lineWidth = w * (0.25 + 1.5 * billow);\n float line = 1.0 - smoothstep(0.0, lineWidth, abs(k));\n float tongue = 0.0;\n if (abs(rise) > 1e-4) {\n float s = k / rise;\n if (s >= 0.0) tongue = clamp(1.0 - s, 0.0, 1.0);\n }\n float heat = max(line, tongue) * burn;\n float near = 1.0 - smoothstep(0.0, BAND, abs(k));\n\n // the outgoing image shimmers in the heat ahead of the fire\n vec2 h = q * vec2(9.0, 5.0) + vec2(0.0, -t * 3.0);\n vec2 shimmer = (vec2(noise(h), noise(h + 31.7)) - 0.5) * 0.012 * min(near + heat, 1.0) * burn;\n vec4 a = getFromColor(mirror(uv + shimmer));\n vec4 b = getToColor(uv);\n\n // the outgoing image browns, then chars close to the flames\n float brown = k > 0.0 ? scorchAmount * near : 0.0;\n float lum = dot(a.rgb, vec3(0.299, 0.587, 0.114));\n a.rgb = mix(a.rgb, lum * vec3(0.9, 0.55, 0.28), brown) * (1.0 - 0.35 * brown) * (1.0 - 0.9 * brown * near * near);\n // the incoming image under a warm glow fading away from the fire\n float g = k < 0.0 ? glowAmount * near : 0.0;\n b.rgb = b.rgb * mix(vec3(1.0), vec3(1.0, 0.6, 0.35), 0.7 * g) + color * 0.4 * g * g;\n\n // far from the fire, only one of the images shows\n if (k >= max(BAND, max(rise, reach))) return a.a > 0.0 ? a : vec4(0.0);\n if (-k >= max(BAND, max(-rise, reach))) return b.a > 0.0 ? b : vec4(0.0);\n\n // the two images meet under the burning line (mixed premultiplied)\n float m = smoothstep(-0.5 * w, 0.5 * w, k);\n vec4 c = mix(vec4(b.rgb * b.a, b.a), vec4(a.rgb * a.a, a.a), m);\n if (c.a <= 0.0) return vec4(0.0);\n vec3 col = c.rgb / c.a;\n\n // turbulence rising in screen space, stretched upward and swaying into pointed tongues\n vec2 f = vec2(q.x * mix(10.0, 6.0, abs(dir.x)), q.y * mix(1.8, 3.2, abs(dir.x)) - t * 2.4);\n float sway = fbm(vec2(q.x * 2.5, q.y * 1.5 - t * 1.2));\n float n = fbm(f + vec2(1.5 * sway - 0.75, 0.0));\n n = clamp(1.7 * n - 0.35, 0.0, 1.0);\n // a continuous hot core hugging the base of the flames\n float core = (1.0 - smoothstep(0.0, 0.35 * lineWidth, abs(k + 0.4 * w * (sway - 0.5)))) * burn * (1.0 - 0.5 * abs(dir.x));\n // under the flames, where they take root, the turbulence calms down into a soft glow\n float root = rise > 0.0 ? clamp(-k / w, 0.0, 1.0) : rise < 0.0 ? clamp(k / w, 0.0, 1.0) : 0.0;\n root *= abs(dir.y);\n float flame = clamp(heat * 0.95 + 0.45 * core * (0.75 + 0.25 * n) - (1.0 - n) * 1.1 * (1.0 - 0.8 * root), 0.0, 1.0);\n\n // the flames darken what is behind their body and add their light, with a soft halo;\n // the alpha stays the image's\n // crisp around the tongues, soft at their roots\n float body = smoothstep(0.0, 0.08 + 0.5 * root, flame);\n col = col * (1.0 - 0.7 * body) + fire(flame) * (0.45 + 0.65 * flame) * body;\n col += color * 0.25 * heat * heat * (1.0 - body);\n return vec4(clamp(col, 0.0, 1.0), c.a);\n}\n","author":"gre","license":"MIT","description":"A wall of flames sweeps across the frame, scorching the outgoing image ahead of it and leaving the incoming image under a fading warm glow","tags":["fire","flame","burn","wipe","directional"],"params":{"direction":{"type":"vec2","default":[0,1],"description":"Direction in which the flames sweep across the frame"},"height":{"type":"float","default":0.4,"min":0,"max":1,"description":"Height of the flames, as a fraction of the frame height"},"scorch":{"type":"float","default":0.7,"min":0,"max":1,"description":"How much the outgoing image browns and chars ahead of the flames"},"glow":{"type":"float","default":0.6,"min":0,"max":1,"description":"Strength of the warm glow left on the incoming image"},"color":{"type":"vec3","default":[1,0.4,0.08],"color":true,"description":"Tint of the body of the flames"}},"textures":[],"createdAt":"Tue, 3 Nov 2026 09:42:36 +0100","updatedAt":"Tue, 3 Nov 2026 09:42:36 +0100"},{"name":"FlashFade","paramsTypes":{"color":"vec3"},"defaultParams":{"color":[0.9,0.4,0.2]},"glsl":"// Author: gre\n// License: MIT\n// Description: A crossfade that brightens toward a color in the middle\n// Tags: fade, color, flash\n// @color Color the images brighten toward\nuniform vec3 color /* = vec3(0.9, 0.4, 0.2) */;\nvec4 transition (vec2 uv) {\n return mix(\n getFromColor(uv) + vec4(progress*color, 0.0),\n getToColor(uv) + vec4((1.0-progress)*color, 0.0),\n progress\n );\n}\n","author":"gre","license":"MIT","description":"A crossfade that brightens toward a color in the middle","tags":["fade","color","flash"],"params":{"color":{"type":"vec3","default":[0.9,0.4,0.2],"color":true,"description":"Color the images brighten toward"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"FlowerWipe","paramsTypes":{"segments":"int"},"defaultParams":{"segments":5},"glsl":"// Author: Fernando Kuteken\n// License: MIT\n// Description: A flower shape with several petals grows to reveal the incoming image\n// Tags: shape, wipe, polar\n\n#define PI 3.14159265359\n\n// @param Number of petals\nuniform int segments; // = 5\n\nvec4 transition (vec2 uv) {\n \n float angle = atan(uv.y - 0.5, uv.x - 0.5) - 0.5 * PI;\n float normalized = (angle + 1.5 * PI) * (2.0 * PI);\n \n float radius = (cos(float(segments) * angle) + 4.0) / 4.0;\n float difference = length(uv - vec2(0.5, 0.5));\n \n if (difference > radius * progress)\n return getFromColor(uv);\n else\n return getToColor(uv);\n}\n","author":"Fernando Kuteken","license":"MIT","description":"A flower shape with several petals grows to reveal the incoming image","tags":["shape","wipe","polar"],"params":{"segments":{"type":"int","default":5,"description":"Number of petals"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"FlyEye","paramsTypes":{"size":"float","zoom":"float","colorSeparation":"float"},"defaultParams":{"size":0.04,"zoom":50,"colorSeparation":0.3},"glsl":"// Author: gre\n// License: MIT\n// Description: The image breaks into a fly's-eye grid of lenses with color separation\n// Tags: lens, distort, chromatic\nuniform float size; // = 0.04\nuniform float zoom; // = 50.0\nuniform float colorSeparation; // = 0.3\n\nvec4 transition(vec2 p) {\n float inv = 1. - progress;\n vec2 disp = size*vec2(cos(zoom*p.x), sin(zoom*p.y));\n vec4 texTo = getToColor(p + inv*disp);\n vec4 fromCenter = getFromColor(p + progress*disp);\n vec4 texFrom = vec4(\n getFromColor(p + progress*disp*(1.0 - colorSeparation)).r,\n fromCenter.g,\n getFromColor(p + progress*disp*(1.0 + colorSeparation)).b,\n fromCenter.a);\n return texTo*progress + texFrom*inv;\n}\n","author":"gre","license":"MIT","description":"The image breaks into a fly's-eye grid of lenses with color separation","tags":["lens","distort","chromatic"],"params":{"size":{"type":"float","default":0.04},"zoom":{"type":"float","default":50},"colorSeparation":{"type":"float","default":0.3}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"Fold","paramsTypes":{},"defaultParams":{},"glsl":"// Author: nwoeanhinnogaehr\n// License: MIT\n// Description: The incoming image unfolds from the left while the outgoing one folds away to the right\n// Tags: fold, slide, horizontal\n// Ported from https://gist.github.com/nwoeanhinnogaehr/f6fc39f4cfcbb97f96a6\n\nvec4 transition(vec2 uv) {\n // Only sample the visible side: the other one divides by zero at progress 0 and 1.\n if (progress == 0.0 || uv.x > progress) return getFromColor((uv - vec2(progress, 0.0)) / vec2(1.0 - progress, 1.0));\n return getToColor(uv / vec2(progress, 1.0));\n}\n","author":"nwoeanhinnogaehr","license":"MIT","description":"The incoming image unfolds from the left while the outgoing one folds away to the right","tags":["fold","slide","horizontal"],"params":{},"textures":[],"createdAt":"Sun, 29 Mar 2026 20:32:54 +0200","updatedAt":"Sat, 10 Oct 2026 11:26:01 +0200"},{"name":"Gallery","paramsTypes":{"direction":"float","tilt":"float","gap":"float","zoom":"float","reflection":"float","background":"vec4"},"defaultParams":{"direction":1,"tilt":0.6,"gap":0.15,"zoom":2,"reflection":0.3,"background":[0.07,0.07,0.08,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The camera pulls back from the outgoing image to show it as a slide hanging in a row on a wall in perspective, the row glides along as each slide turns away from the center, and the camera moves back in on the incoming slide until it fills the frame\n// Tags: 3d, perspective, gallery, slide, reflection, directional\n\n// @param Way the row moves: 1 brings the incoming slide in from the right, -1 from the left\nuniform float direction; // = 1.0\n// @range(0, 1) How much the slides turn as they leave the center\nuniform float tilt; // = 0.6\n// @range(0, 1) Space between two slides, in slide widths\nuniform float gap; // = 0.15\n// @range(0.2, 3) How far the camera pulls back\nuniform float zoom; // = 2.0\n// @range(0, 1) Strength of the reflection of the slides on the floor\nuniform float reflection; // = 0.3\n// @color Color of the wall and the floor around the slides\nuniform vec4 background; // = vec4(0.07, 0.07, 0.08, 1.0)\n\nconst float FOCAL = 1.6; // distance from the camera to a slide when it fills the frame\nconst float MAX_ANGLE = 1.4; // turn of a side slide at tilt = 1, in radians\nconst float NEIGHBOUR = 0.3; // how visible the repeats beyond the two images are\nconst float AA = 0.002; // width of the antialiased slide edges, in frame heights\n\nvec4 premultiply(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\n// how far slide k sits from the center of the view, in slides, clamped to one slide on each side\nfloat offset(float k, float camQ, float spacing) {\n return clamp((k * spacing - camQ) / spacing, -1.0, 1.0);\n}\n\n// the ray o + t d against slide k of the row (a plane turned around its vertical axis):\n// returns (u, v, t, coverage), coverage antialiased over aa frame heights at the slide's edges\nvec4 slideHit(vec3 o, vec3 d, float k, float s, float camQ, float spacing, float aa) {\n // a side slide turns away from the center: its outer edge goes back into the wall\n float a = -s * MAX_ANGLE * tilt * offset(k, camQ, spacing);\n vec3 c = vec3(s * k * spacing, 0.0, 0.0);\n vec3 tg = vec3(cos(a), 0.0, sin(a)); // along the slide, left to right\n vec3 n = vec3(-tg.z, 0.0, tg.x);\n float dn = dot(d, n);\n if (abs(dn) < 1e-5) return vec4(0.0, 0.0, -1.0, 0.0);\n float t = dot(c - o, n) / dn;\n vec3 q = o + d * t - c;\n float lx = dot(q, tg) + 0.5 * ratio;\n float ly = q.y + 0.5;\n // distances to the edges on screen: along the slide, how fast its local x moves with the screen x\n float jx = abs(t * (tg.x - dot(d, tg) * n.x / dn));\n float ex = min(lx, ratio - lx) / max(jx, 1e-6);\n float ey = min(ly, 1.0 - ly) / max(t, 1e-6);\n float cov = t > 0.0 ? clamp(0.5 + min(ex, ey) / aa, 0.0, 1.0) : 0.0;\n return vec4(lx / ratio, ly, t, cov);\n}\n\n// the premultiplied color of slide k where the ray hit it; the row is from (k = 0), to (k = 1),\n// and faint repeats beyond them on their own side; refl > 0 is the strength of its reflection\nvec4 slideColor(vec4 h, float k, float camQ, float spacing, float refl, vec4 bg) {\n if (h.w <= 0.0) return vec4(0.0);\n vec2 st = clamp(h.xy, 0.0, 1.0);\n vec4 c = premultiply(k < 0.5 ? getFromColor(st) : getToColor(st));\n // turned away from the light as it turns away from the center\n c.rgb *= 1.0 - 0.3 * tilt * abs(offset(k, camQ, spacing));\n if (k < -0.5 || k > 1.5) c = mix(bg, c, NEIGHBOUR);\n // the reflection fades out below the bottom of the slide\n float f = refl > 0.0 ? refl * (1.0 - smoothstep(0.0, 0.6, st.y)) : 1.0;\n return c * (h.w * f);\n}\n\n// how much the slides cover along the ray, whatever their images' alpha\nfloat sceneCover(vec3 o, vec3 d, float s, float camQ, float spacing, float aa) {\n float kc = floor(s * (o.x + d.x * o.z / -d.z) / spacing + 0.5);\n float w0 = slideHit(o, d, kc - 1.0, s, camQ, spacing, aa).w;\n float w1 = slideHit(o, d, kc, s, camQ, spacing, aa).w;\n float w2 = slideHit(o, d, kc + 1.0, s, camQ, spacing, aa).w;\n return 1.0 - (1.0 - w0) * (1.0 - w1) * (1.0 - w2);\n}\n\n// the slides seen along the ray, composited back to front (premultiplied)\nvec4 scene(vec3 o, vec3 d, float s, float camQ, float spacing, float aa, float refl, vec4 bg) {\n // the slide in front of which the ray crosses the wall, and its two neighbours\n float wallQ = s * (o.x + d.x * o.z / -d.z);\n float kc = floor(wallQ / spacing + 0.5);\n vec4 h0 = slideHit(o, d, kc - 1.0, s, camQ, spacing, aa);\n vec4 h1 = slideHit(o, d, kc, s, camQ, spacing, aa);\n vec4 h2 = slideHit(o, d, kc + 1.0, s, camQ, spacing, aa);\n vec4 c0 = slideColor(h0, kc - 1.0, camQ, spacing, refl, bg);\n vec4 c1 = slideColor(h1, kc, camQ, spacing, refl, bg);\n vec4 c2 = slideColor(h2, kc + 1.0, camQ, spacing, refl, bg);\n float t0 = h0.w > 0.0 ? h0.z : 1e6;\n float t1 = h1.w > 0.0 ? h1.z : 1e6;\n float t2 = h2.w > 0.0 ? h2.z : 1e6;\n // sort far to near: t0 >= t1 >= t2\n vec4 tc;\n float tt;\n if (t0 < t1) { tc = c0; c0 = c1; c1 = tc; tt = t0; t0 = t1; t1 = tt; }\n if (t1 < t2) { tc = c1; c1 = c2; c2 = tc; tt = t1; t1 = t2; t2 = tt; }\n if (t0 < t1) { tc = c0; c0 = c1; c1 = tc; }\n vec4 col = c0;\n col = c1 + col * (1.0 - c1.a);\n col = c2 + col * (1.0 - c2.a);\n return col;\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n float s = direction < 0.0 ? -1.0 : 1.0;\n float spacing = ratio * (1.0 + gap);\n // the camera pulls back, glides along the row, and moves back in\n float back = smoothstep(0.0, 0.42, p) * (1.0 - smoothstep(0.58, 1.0, p));\n float m = clamp((p - 0.18) / 0.64, 0.0, 1.0);\n float glide = m * m * m * (m * (m * 6.0 - 15.0) + 10.0);\n float camQ = spacing * glide;\n vec3 o = vec3(s * camQ, 0.0, FOCAL * (1.0 + zoom * back));\n vec3 d = vec3((uv - 0.5) * vec2(ratio, 1.0), -FOCAL);\n float amount = min(1.0, 40.0 * back);\n float aa = max(AA * amount, 1e-6);\n vec4 bg = premultiply(background);\n\n vec4 col = scene(o, d, s, camQ, spacing, aa, 0.0, bg);\n if (col.a < 1.0) {\n vec4 under = bg;\n // the floor, below the slides, reflects them\n if (d.y < 0.0 && reflection > 0.0) {\n vec4 r = scene(vec3(o.x, -1.0 - o.y, o.z), vec3(d.x, -d.y, d.z), s, camQ, spacing, aa, reflection, bg);\n under = r + bg * (1.0 - r.a);\n }\n // the wall shows around the slides, and only fades in behind their transparent parts,\n // so that the images keep their own alpha at the start and the end\n col += under * (mix(1.0, amount, sceneCover(o, d, s, camQ, spacing, aa)) * (1.0 - col.a));\n }\n return col.a > 0.0 ? vec4(col.rgb / col.a, col.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The camera pulls back from the outgoing image to show it as a slide hanging in a row on a wall in perspective, the row glides along as each slide turns away from the center, and the camera moves back in on the incoming slide until it fills the frame","tags":["3d","perspective","gallery","slide","reflection","directional"],"params":{"direction":{"type":"float","default":1,"description":"Way the row moves: 1 brings the incoming slide in from the right, -1 from the left"},"tilt":{"type":"float","default":0.6,"min":0,"max":1,"description":"How much the slides turn as they leave the center"},"gap":{"type":"float","default":0.15,"min":0,"max":1,"description":"Space between two slides, in slide widths"},"zoom":{"type":"float","default":2,"min":0.2,"max":3,"description":"How far the camera pulls back"},"reflection":{"type":"float","default":0.3,"min":0,"max":1,"description":"Strength of the reflection of the slides on the floor"},"background":{"type":"vec4","default":[0.07,0.07,0.08,1],"color":true,"description":"Color of the wall and the floor around the slides"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 08:03:21 +0100","updatedAt":"Wed, 4 Nov 2026 08:03:21 +0100"},{"name":"GlintDissolve","paramsTypes":{"size":"float","threshold":"float","intensity":"float","diagonals":"bool","rotation":"float","rainbow":"float","tint":"vec3"},"defaultParams":{"size":0.15,"threshold":0.6,"intensity":2,"diagonals":false,"rotation":0,"rainbow":0.35,"tint":[1,0.95,0.85]},"glsl":"// Author: gre\n// License: MIT\n// Description: The bright points of the outgoing image sparkle into crisp four-point star glints that swell and twinkle up to the cut, then shrink back into the highlights of the incoming image, which stays sharp\n// Tags: light, glints, sparkle, dissolve\n\n// @range(0.02, 0.3) Length of the longest rays of the glints at the peak, in frame heights\nuniform float size; // = 0.15\n// @range(0, 1) Brightness above which the image sparkles\nuniform float threshold; // = 0.6\n// @range(0, 4) Brightness of the glints\nuniform float intensity; // = 2.0\n// @param Add a shorter, softer pair of diagonal rays to each glint\nuniform bool diagonals; // = false\n// @range(-45, 45) Angle of the cross, in degrees\nuniform float rotation; // = 0.0\n// @range(0, 1) Rainbow fringes along the rays\nuniform float rainbow; // = 0.35\n// @color Tint of the glints, added as light\nuniform vec3 tint; // = vec3(1.0, 0.95, 0.85)\n\n// the long rays reach over this many cells of the glint grid\nconst float REACH = 6.0;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\n// one thin ray along x, from the glint center to its tip at x = len (in cells)\nfloat ray(vec2 d, float len, float width) {\n float a = abs(d.x) / len;\n if (a >= 1.0) return 0.0;\n float fall = (1.0 - a) * (1.0 - a);\n float w = width * (1.0 - 0.7 * a);\n return fall * exp(-d.y * d.y / (w * w));\n}\n\nvec3 spectrum(float a) {\n return 0.5 + 0.5 * cos(6.2831853 * (a + vec3(0.0, 0.33, 0.67)));\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n // the glints swell up to the cut, then shrink back: 0 at both ends\n float t = 1.0 - abs(2.0 * p - 1.0);\n float amount = t * (2.0 - t);\n // a short crossfade under the glints at their brightest\n float m = smoothstep(0.42, 0.58, p);\n if (amount <= 0.0) return m < 0.5 ? getFromColor(uv) : getToColor(uv);\n\n vec4 fromColor = getFromColor(uv);\n vec4 toColor = getToColor(uv);\n vec4 c = mix(vec4(fromColor.rgb * fromColor.a, fromColor.a), vec4(toColor.rgb * toColor.a, toColor.a), m);\n if (c.a <= 0.0) return vec4(0.0);\n vec3 base = c.rgb / c.a;\n\n // a grid of glint cells, turned with the cross so that its long rays run along the rows and columns\n float cell = size / REACH;\n float ang = radians(rotation);\n vec2 cs = vec2(cos(ang), sin(ang));\n vec2 aspect = vec2(ratio, 1.0);\n vec2 o = (uv - 0.5) * aspect;\n vec2 q = vec2(o.x * cs.x + o.y * cs.y, o.y * cs.x - o.x * cs.y) / cell;\n vec2 home = floor(q);\n // thin rays, in cells, thin enough to vanish before the next row of cells\n float width = min(0.0022 / cell, 0.07);\n\n vec3 light = vec3(0.0);\n // the glints of the own cell, of the cells along its row and column (whose long rays reach this\n // pixel) and of its four diagonal neighbours (for their short diagonal rays and their cores)\n for (int k = 0; k < 29; k++) {\n float fk = float(k);\n vec2 off = vec2(0.0);\n if (k >= 1 && k <= 12) off = vec2(fk < 7.0 ? fk - 7.0 : fk - 6.0, 0.0);\n else if (k >= 13 && k <= 24) off = vec2(0.0, fk < 19.0 ? fk - 19.0 : fk - 18.0);\n else if (k >= 25) off = vec2(mod(fk, 2.0) * 2.0 - 1.0, fk < 27.0 ? -1.0 : 1.0);\n // the rays are never longer than this, so farther glints cannot reach the pixel\n if (max(abs(off.x), abs(off.y)) > REACH * amount + 1.0) continue;\n vec2 id = home + off;\n // only some of the cells hold a glint\n if (hash12(id + 89.5) > 0.55) continue;\n float h0 = hash12(id + 0.5);\n float h1 = hash12(id + 19.5);\n float h2 = hash12(id + 41.5);\n float h3 = hash12(id + 67.5);\n // the glint: somewhere in its cell, so that the grid never shows\n vec2 center = id + 0.5 + 0.6 * (vec2(h0, h1) - 0.5);\n vec2 cw = center * cell;\n vec2 st = vec2(cw.x * cs.x - cw.y * cs.y, cw.x * cs.y + cw.y * cs.x) / aspect + 0.5;\n if (st.x < 0.0 || st.x > 1.0 || st.y < 0.0 || st.y > 1.0) continue;\n // each glint reads one image: it blinks out at its own moment of the crossfade and comes back\n // on the incoming image\n float turn = 0.15 + 0.7 * h3;\n vec4 src = m < turn ? getFromColor(st) : getToColor(st);\n float lum = dot(src.rgb, vec3(0.2126, 0.7152, 0.0722)) * src.a;\n // the brighter the image, the more of its cells sparkle\n float knee = threshold + 0.8 * (1.0 - threshold) * h2;\n float b = smoothstep(knee, knee + 0.2 * (1.0 - threshold) + 1e-3, lum);\n if (b <= 0.0) continue;\n // each glint twinkles at its own pace\n float twinkle = (0.6 + 0.4 * sin(6.2831853 * (h2 + (1.5 + h0) * p))) * smoothstep(0.0, 0.12, abs(m - turn));\n float len = REACH * amount * (0.45 + 0.55 * b) * (0.3 + 0.7 * h1 * h1) * (0.85 + 0.15 * twinkle);\n vec2 d = q - center;\n float r = length(d);\n float star = ray(d, len, width) + ray(d.yx, len, width);\n if (diagonals) {\n vec2 e = vec2(d.x + d.y, d.x - d.y) * 0.70710678;\n star += 0.5 * (ray(e, 0.25 * len, width) + ray(e.yx, 0.25 * len, width));\n }\n // a bright core and a faint halo\n float cr = r / (0.08 * len);\n star += exp(-cr * cr) + 0.3 * exp(-r / 0.2);\n // white light with the hue of the highlight, and rainbow fringes toward the tips\n float along = r / len;\n vec3 hue = mix(vec3(1.0), spectrum(1.3 * along + h0), rainbow * smoothstep(0.05, 0.4, along));\n vec3 col = mix(src.rgb / max(max(src.r, max(src.g, src.b)), 1e-3), vec3(1.0), 0.6);\n light += b * twinkle * star * hue * col;\n }\n light *= tint * intensity * amount * amount;\n // compressed, so that crossing rays never flatten into white\n light = 1.0 - exp(-light);\n return vec4(clamp(base + light - base * light, 0.0, 1.0), c.a);\n}\n","author":"gre","license":"MIT","description":"The bright points of the outgoing image sparkle into crisp four-point star glints that swell and twinkle up to the cut, then shrink back into the highlights of the incoming image, which stays sharp","tags":["light","glints","sparkle","dissolve"],"params":{"size":{"type":"float","default":0.15,"min":0.02,"max":0.3,"description":"Length of the longest rays of the glints at the peak, in frame heights"},"threshold":{"type":"float","default":0.6,"min":0,"max":1,"description":"Brightness above which the image sparkles"},"intensity":{"type":"float","default":2,"min":0,"max":4,"description":"Brightness of the glints"},"diagonals":{"type":"bool","default":false,"description":"Add a shorter, softer pair of diagonal rays to each glint"},"rotation":{"type":"float","default":0,"min":-45,"max":45,"description":"Angle of the cross, in degrees"},"rainbow":{"type":"float","default":0.35,"min":0,"max":1,"description":"Rainbow fringes along the rays"},"tint":{"type":"vec3","default":[1,0.95,0.85],"color":true,"description":"Tint of the glints, added as light"}},"textures":[],"createdAt":"Thu, 5 Nov 2026 11:34:15 +0100","updatedAt":"Thu, 5 Nov 2026 11:34:15 +0100"},{"name":"GlitchBands","paramsTypes":{"ampx":"float","ampy":"float"},"defaultParams":{"ampx":1,"ampy":1},"glsl":"// Author: Yoni Maltsman @friendlyspinach\n// License: MIT\n// Description: A crossfade with glitchy horizontal bands and color shifts\n// Tags: glitch, blend\n\n\n\n// @param Horizontal amplitude of the glitch\nuniform float ampx; // =1.0\n// @param Vertical amplitude of the glitch\nuniform float ampy; //=1.0\n\nvec4 transition (vec2 uv) {\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n float r = from.r;\n float g = from.g;\n float b = from.b;\n float sphere = r*r + g*g + b*b - 1.0; //3 to 1\n float spiralX = cos(sphere - uv.x/(progress + .01));\n float spiralY = sin(sphere - uv.y/(progress+.01));\n vec2 st = uv;\n st.x = fract(ampx*st.x*spiralX); //1 to 2\n st.y = fract(ampy*st.y*spiralY);\n vec2 diff = uv - st;\n from = getFromColor(uv + progress*diff);\n return mix(from, to, progress);\n}\n","author":"Yoni Maltsman @friendlyspinach","license":"MIT","description":"A crossfade with glitchy horizontal bands and color shifts","tags":["glitch","blend"],"params":{"ampx":{"type":"float","default":1,"description":"Horizontal amplitude of the glitch"},"ampy":{"type":"float","default":1,"description":"Vertical amplitude of the glitch"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"GlitchDisplace","paramsTypes":{},"defaultParams":{},"glsl":"// Author: Matt DesLauriers\n// License: MIT\n// Description: Blocks of the image are displaced in a glitch that flashes into the incoming image\n// Tags: glitch, displace\n\nfloat random(vec2 co)\n{\n float a = 12.9898;\n float b = 78.233;\n float c = 43758.5453;\n float dt= dot(co.xy ,vec2(a,b));\n float sn= mod(dt,3.14);\n return fract(sin(sn) * c);\n}\nfloat voronoi( in vec2 x ) {\n vec2 p = floor( x );\n vec2 f = fract( x );\n float res = 8.0;\n for( float j=-1.; j<=1.; j++ )\n for( float i=-1.; i<=1.; i++ ) {\n vec2 b = vec2( i, j );\n vec2 r = b - f + random( p + b );\n float d = dot( r, r );\n res = min( res, d );\n }\n return sqrt( res );\n}\n\nvec2 displace(vec4 tex, vec2 texCoord, float dotDepth, float textureDepth, float strength) {\n float b = voronoi(.003 * texCoord + 2.0);\n float g = voronoi(0.2 * texCoord);\n float r = voronoi(texCoord - 1.0);\n vec4 dt = tex * 1.0;\n vec4 dis = dt * dotDepth + 1.0 - tex * textureDepth;\n\n dis.x = dis.x - 1.0 + textureDepth*dotDepth;\n dis.y = dis.y - 1.0 + textureDepth*dotDepth;\n dis.x *= strength;\n dis.y *= strength;\n vec2 res_uv = texCoord ;\n res_uv.x = res_uv.x + dis.x - 0.0;\n res_uv.y = res_uv.y + dis.y;\n return res_uv;\n}\n\nfloat ease1(float t) {\n return t == 0.0 || t == 1.0\n ? t\n : t < 0.5\n ? +0.5 * pow(2.0, (20.0 * t) - 10.0)\n : -0.5 * pow(2.0, 10.0 - (t * 20.0)) + 1.0;\n}\nfloat ease2(float t) {\n return t == 1.0 ? t : 1.0 - pow(2.0, -10.0 * t);\n}\n\n\n\nvec4 transition(vec2 uv) {\n vec2 p = uv.xy / vec2(1.0).xy;\n vec4 color1 = getFromColor(p);\n vec4 color2 = getToColor(p);\n vec2 disp = displace(color1, p, 0.33, 0.7, 1.0-ease1(progress));\n vec2 disp2 = displace(color2, p, 0.33, 0.5, ease2(progress));\n vec4 dColor1 = getToColor(disp);\n vec4 dColor2 = getFromColor(disp2);\n float val = ease1(progress);\n vec3 gray = vec3(dot(min(dColor2, dColor1).rgb, vec3(0.299, 0.587, 0.114)));\n dColor2 = vec4(gray * 2.0, dColor2.a);\n color1 = mix(color1, dColor2, smoothstep(0.0, 0.5, progress));\n color2 = mix(color2, dColor1, smoothstep(1.0, 0.5, progress));\n return mix(color1, color2, val);\n //gl_FragColor = mix(gl_FragColor, dColor, smoothstep(0.0, 0.5, progress));\n\n //gl_FragColor = mix(texture2D(from, p), texture2D(to, p), progress);\n}\n","author":"Matt DesLauriers","license":"MIT","description":"Blocks of the image are displaced in a glitch that flashes into the incoming image","tags":["glitch","displace"],"params":{},"textures":[],"createdAt":"Tue, 30 May 2017 14:53:04 -0400","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"GlitchFlicker","paramsTypes":{"frameRate":"float","rgbOffset":"float","blockAmount":"float","ghostAmount":"float","redCyan":"float","scanline":"float"},"defaultParams":{"frameRate":24,"rgbOffset":0.014,"blockAmount":0.72,"ghostAmount":0.62,"redCyan":0.58,"scanline":0.075},"glsl":"// Author: bread\n// License: MIT\n// Description: A flickering glitch with RGB offset, ghosting and scanlines that flashes back to the outgoing image\n// Tags: glitch, flicker, chromatic, scanlines\n// Drop_Zone_Flicker.glsl\n// gl-transitions compatible: progress, ratio, getFromColor, getToColor\nuniform float frameRate; // = 24.0\nuniform float rgbOffset; // = 0.014\nuniform float blockAmount; // = 0.72\nuniform float ghostAmount; // = 0.62\nuniform float redCyan; // = 0.58\nuniform float scanline; // = 0.075\n\nfloat sat(float x) {\n return clamp(x, 0.0, 1.0);\n}\n\nfloat hash12(vec2 p) {\n p = fract(p * vec2(443.8975, 397.2973));\n p += dot(p, p.yx + 19.19);\n return fract(p.x * p.y);\n}\n\nvec2 safeUv(vec2 uv) {\n return clamp(uv, vec2(0.001), vec2(0.999));\n}\n\n// 24fps reference-matched reveal curve.\n// Non-monotonic on purpose: the reference flashes back to the old clip.\nfloat frameReveal(float f) {\n if (f < 0.5) return 0.00;\n if (f < 1.5) return 0.28;\n if (f < 2.5) return 0.43;\n if (f < 3.5) return 0.46;\n if (f < 4.5) return 0.38;\n if (f < 5.5) return 0.48;\n if (f < 6.5) return 0.26;\n if (f < 7.5) return 0.10;\n if (f < 8.5) return 0.00;\n if (f < 9.5) return 0.00;\n if (f < 10.5) return 0.30;\n if (f < 11.5) return 0.58;\n if (f < 12.5) return 1.00;\n if (f < 13.5) return 0.70;\n if (f < 14.5) return 0.42;\n if (f < 15.5) return 0.55;\n if (f < 16.5) return 0.72;\n if (f < 17.5) return 0.88;\n if (f < 18.5) return 0.34;\n if (f < 19.5) return 0.48;\n if (f < 20.5) return 0.56;\n if (f < 21.5) return 0.76;\n if (f < 22.5) return 0.93;\n return 1.00;\n}\n\nfloat frameGlitch(float f) {\n if (f < 0.5) return 0.00;\n if (f < 6.5) return 0.92;\n if (f < 10.5) return 0.38;\n if (f < 11.5) return 0.78;\n if (f < 12.5) return 0.12;\n if (f < 17.5) return 0.74;\n if (f < 22.5) return 0.88;\n if (f < 23.5) return 0.28;\n return 0.00;\n}\n\nvec4 chromaFrom(vec2 uv, float amt) {\n vec2 o = vec2(amt, 0.0);\n vec4 center = getFromColor(safeUv(uv));\n return vec4(\n getFromColor(safeUv(uv + o)).r,\n center.g,\n getFromColor(safeUv(uv - o)).b,\n center.a\n );\n}\n\nvec4 chromaTo(vec2 uv, float amt) {\n vec2 o = vec2(amt, 0.0);\n vec4 center = getToColor(safeUv(uv));\n return vec4(\n getToColor(safeUv(uv - o)).r,\n center.g,\n getToColor(safeUv(uv + o)).b,\n center.a\n );\n}\n\nfloat blockMask(vec2 uv, float f) {\n vec2 big = floor(uv * vec2(4.0, 2.0));\n vec2 small = floor(uv * vec2(8.0, 4.0));\n\n float wide = step(0.48, hash12(vec2(big.x, f * 1.37)));\n float chunks = step(0.56, hash12(small + vec2(f * 2.11, f * 0.73)));\n\n float verticalCut = smoothstep(\n -0.035,\n 0.035,\n uv.x - mix(0.18, 0.78, hash12(vec2(f, 4.7)))\n );\n\n return sat(mix(wide, chunks, 0.38) * 0.72 + verticalCut * 0.28);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n float f = floor(progress * frameRate);\n float reveal = frameReveal(f);\n float glitch = frameGlitch(f);\n\n float rnd = hash12(vec2(f, 9.13));\n vec2 jitter = vec2(\n (rnd - 0.5) * 0.042,\n (hash12(vec2(f, 2.71)) - 0.5) * 0.010\n ) * glitch;\n\n vec2 fromUv = safeUv(uv + jitter);\n vec2 toUv = safeUv(uv - jitter * 0.55);\n\n float block = blockMask(uv, f);\n float localReveal = sat(\n reveal +\n (block - 0.5) * blockAmount * glitch +\n (hash12(vec2(f, floor(uv.y * 9.0))) - 0.5) * 0.18 * glitch\n );\n\n localReveal = smoothstep(0.22, 0.78, localReveal);\n\n vec4 oldClip = chromaFrom(fromUv, rgbOffset * glitch);\n vec4 newClip = chromaTo(toUv, rgbOffset * glitch);\n\n vec4 color = mix(oldClip, newClip, localReveal);\n\n float leftWash = (1.0 - smoothstep(0.10, 0.78, uv.x)) * glitch;\n float cyanWash = smoothstep(0.08, 0.62, uv.x) * (1.0 - smoothstep(0.86, 1.0, uv.x)) * glitch;\n\n vec3 redGhost = oldClip.rgb * vec3(1.34, 0.42, 0.38);\n vec3 cyanGhost = newClip.rgb * vec3(0.48, 1.12, 1.24);\n\n color.rgb = mix(color.rgb, redGhost, leftWash * redCyan * 0.42);\n color.rgb = mix(color.rgb, cyanGhost, cyanWash * redCyan * 0.30);\n\n // Keeps the old circular \"drop zone\" visible as a translucent flash,\n // especially after the first full new-frame hit.\n float oldReturn = glitch * (1.0 - smoothstep(0.94, 1.0, reveal));\n oldReturn *= 0.18 + 0.52 * (1.0 - abs(localReveal - 0.5) * 2.0);\n color.rgb = mix(color.rgb, oldClip.rgb, oldReturn * ghostAmount);\n\n float lines = sin((uv.y + f * 0.017) * 1080.0);\n color.rgb += lines * scanline * glitch;\n\n float exposurePulse = (hash12(vec2(f, 12.4)) - 0.35) * 0.10 * glitch;\n color.rgb += exposurePulse;\n\n return vec4(sat(color.r), sat(color.g), sat(color.b), color.a);\n}\n","author":"bread","license":"MIT","description":"A flickering glitch with RGB offset, ghosting and scanlines that flashes back to the outgoing image","tags":["glitch","flicker","chromatic","scanlines"],"params":{"frameRate":{"type":"float","default":24},"rgbOffset":{"type":"float","default":0.014},"blockAmount":{"type":"float","default":0.72},"ghostAmount":{"type":"float","default":0.62},"redCyan":{"type":"float","default":0.58},"scanline":{"type":"float","default":0.075}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"GlitchMemories","paramsTypes":{},"defaultParams":{},"glsl":"// Author: Gunnar Roth\n// based on work from natewave\n// License: MIT\n// Description: A crossfade with glitchy, color-shifted blocks\n// Tags: glitch, chromatic, blend\nvec4 transition(vec2 p) {\n vec2 block = floor(p.xy / vec2(16));\n vec2 uv_noise = block / vec2(64);\n uv_noise += floor(vec2(progress) * vec2(1200.0, 3500.0)) / vec2(64);\n vec2 dist = progress > 0.0 ? (fract(uv_noise) - 0.5) * 0.3 *(1.0 -progress) : vec2(0.0);\n vec2 red = p + dist * 0.2;\n vec2 green = p + dist * .3;\n vec2 blue = p + dist * .5;\n\n vec4 center = mix(getFromColor(green), getToColor(green), progress);\n return vec4(mix(getFromColor(red), getToColor(red), progress).r, center.g, mix(getFromColor(blue), getToColor(blue), progress).b, center.a);\n}\n\n","author":"Gunnar Roth","license":"MIT","description":"A crossfade with glitchy, color-shifted blocks","tags":["glitch","chromatic","blend"],"params":{},"textures":[],"createdAt":"Wed, 21 Feb 2018 00:52:15 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"GlowDissolve","paramsTypes":{"uLineWidth":"float","uSpreadClr":"vec3","uHotClr":"vec3","uPow":"float","uIntensity":"float"},"defaultParams":{"uLineWidth":0.1,"uSpreadClr":[1,0,0],"uHotClr":[0.9,0.9,0.2],"uPow":5,"uIntensity":1},"glsl":"// Author: hjm1fb\n// License: MIT\n// Description: The incoming image spreads over the outgoing one with a hot, glowing edge\n// Tags: dissolve, burn, glow\n\nuniform float uLineWidth; // = 0.1\n// @color Color of the spreading edge\nuniform vec3 uSpreadClr; // = vec3(1.0, 0.0, 0.0)\n// @color Color of the hottest part of the edge\nuniform vec3 uHotClr; // = vec3(0.9, 0.9, 0.2)\nuniform float uPow; // = 5.0\nuniform float uIntensity; // = 1.0\n\nvec2 hash(vec2 p) // replace this by something better\n{\n p = vec2(dot(p, vec2(127.1, 311.7)), dot(p, vec2(269.5, 183.3)));\n return -1.0 + 2.0 * fract(sin(p) * 43758.5453123);\n}\n\nfloat noise(in vec2 p) {\n const float K1 = 0.366025404; // (sqrt(3)-1)/2;\n const float K2 = 0.211324865; // (3-sqrt(3))/6;\n\n vec2 i = floor(p + (p.x + p.y) * K1);\n vec2 a = p - i + (i.x + i.y) * K2;\n float m = step(a.y, a.x);\n vec2 o = vec2(m, 1.0 - m);\n vec2 b = a - o + K2;\n vec2 c = a - 1.0 + 2.0 * K2;\n vec3 h = max(0.5 - vec3(dot(a, a), dot(b, b), dot(c, c)), 0.0);\n vec3 n = h * h * h * h * vec3(dot(a, hash(i + 0.0)), dot(b, hash(i + o)), dot(c, hash(i + 1.0)));\n return dot(n, vec3(70.0));\n}\n\nvec4 transition(vec2 uv) {\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n vec4 outColor;\n float burn;\n burn = 0.5 + 0.5 * (0.299 * from.r + 0.587 * from.g + 0.114 * from.b);\n\n float show = burn - progress;\n if (show < 0.001) {\n outColor = to;\n } else {\n float factor = 1.0 - smoothstep(0.0, uLineWidth, show);\n vec3 burnColor = mix(uSpreadClr, uHotClr, factor);\n burnColor = pow(burnColor, vec3(uPow)) * uIntensity;\n vec3 finalRGB = mix(from.rgb, burnColor, factor * step(0.0001, progress));\n outColor = vec4(finalRGB, from.a); // straight alpha, like the images\n }\n return outColor;\n}\n","author":"hjm1fb","license":"MIT","description":"The incoming image spreads over the outgoing one with a hot, glowing edge","tags":["dissolve","burn","glow"],"params":{"uLineWidth":{"type":"float","default":0.1},"uSpreadClr":{"type":"vec3","default":[1,0,0],"color":true,"description":"Color of the spreading edge"},"uHotClr":{"type":"vec3","default":[0.9,0.9,0.2],"color":true,"description":"Color of the hottest part of the edge"},"uPow":{"type":"float","default":5},"uIntensity":{"type":"float","default":1}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"GooeyWipe","paramsTypes":{"blobs":"float","smoothness":"float","highlight":"vec4","shadow":"vec4"},"defaultParams":{"blobs":5,"smoothness":0.5,"highlight":[1,1,1,0.7],"shadow":[0,0,0,0.3]},"glsl":"// Author: gre\n// License: MIT\n// Description: Soft, glossy blobs of liquid pop up over the outgoing image, swell and melt into each other, revealing the incoming image until they cover the whole frame\n// Tags: blob, liquid, organic, reveal\n\n// @range(2, 12, 1) Number of blobs across the frame\nuniform float blobs; // = 5.0\n// @range(0, 1) How smoothly neighbouring blobs melt into each other\nuniform float smoothness; // = 0.5\n// @color Color of the glossy highlight on the rim of the blobs (its alpha is its strength)\nuniform vec4 highlight; // = vec4(1.0, 1.0, 1.0, 0.7)\n// @color Color of the soft shadow that the blobs cast on the outgoing image\nuniform vec4 shadow; // = vec4(0.0, 0.0, 0.0, 0.3)\n\nfloat hash (vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\nvec2 fold (vec2 p) {\n return 1.0 - abs(1.0 - mod(p, 2.0));\n}\n\n// signed distance to the blob of a grid cell (in cells), its center returned in .yz\nvec3 blob (vec2 cell, float rStart, float rEnd) {\n vec2 c = cell + 0.5 + 0.7 * (vec2(hash(cell + 0.5), hash(cell + 41.3)) - 0.5);\n float t0 = 0.02 + 0.43 * hash(cell + 17.9); // when it pops up\n float s = clamp((progress - t0) / (1.0 - t0), 0.0, 1.0);\n // it pops up fast with a little wobble, then swells slowly\n float pop = clamp((progress - t0) / 0.12, 0.0, 1.0);\n pop = 1.0 - (1.0 - pop) * (1.0 - pop) * (1.0 - pop);\n float r = mix(rStart, 0.18, pop) + (rEnd - 0.18) * s * sqrt(s);\n r += 0.05 * sin(pop * 9.0) * (1.0 - s) * pop;\n return vec3(r, c);\n}\n\nvec4 transition (vec2 uv) {\n float n = max(1.0, floor(blobs + 0.5));\n float cellSize = max(ratio, 1.0) / n;\n vec2 q = vec2(uv.x * ratio, uv.y) / cellSize; // in cells\n vec2 base = floor(q);\n float k = 0.02 + 0.25 * smoothness; // melting distance, in cells\n float w = 0.16; // width of the rounded rim, in cells\n // a blob starts far enough below the surface not to show (the union of 49 blobs bulges by up to k * log(49)),\n // and ends up covering the whole of its cell (its center is at most 0.85 * sqrt(2) cells away) and its rim\n float rStart = -(0.03 + 4.0 * k);\n float rEnd = 0.85 * sqrt(2.0) + w + 0.05;\n // smooth union (log-sum-exp, computed online) of the blobs around, with its gradient;\n // blobs further than 3 cells away weigh less than exp(-7) and are left out\n float m = 1e3; // distance to the nearest blob\n float sum = 0.0;\n vec2 grad = vec2(0.0);\n float rNear = 0.0; // radius of the nearest blob\n for (int j = -3; j <= 3; j++) {\n for (int i = -3; i <= 3; i++) {\n vec3 b = blob(base + vec2(float(i), float(j)), rStart, rEnd);\n vec2 dq = q - b.yz;\n float l = length(dq);\n float dist = l - b.x;\n vec2 g = dq / max(l, 1e-4);\n if (dist < m) {\n float scale = exp((dist - m) / k);\n sum = sum * scale + 1.0;\n grad = grad * scale + g;\n m = dist;\n rNear = b.x;\n } else {\n float wt = exp((m - dist) / k);\n sum += wt;\n grad += wt * g;\n }\n }\n }\n float d = m - k * log(sum); // < 0 inside the goo\n grad /= sum;\n float aa = 0.012 * n / 5.0;\n float inside = 1.0 - smoothstep(-aa, aa, d);\n // a rounded, glossy surface near the edge, flat further inside; the goo settles flat at the end\n float h = clamp(-d / w, 0.0, 1.0);\n float settle = 1.0 - smoothstep(0.45, 0.85, progress);\n float tilt = (1.0 - h) * (1.0 - h) * settle;\n vec3 nrm = normalize(vec3(grad * tilt * 3.0, 1.0));\n vec3 halfway = normalize(vec3(-0.35, 0.45, 1.0) + vec3(0.0, 0.0, 1.0));\n float spec = pow(max(dot(nrm, halfway), 0.0), 200.0) * settle;\n // thick, opaque goo: darker toward its edge, more so on the side away from the light\n float shade = 1.0 - tilt * (0.25 + 0.3 * clamp(dot(grad, vec2(0.6, -0.8)) + 0.3, 0.0, 1.0));\n vec4 to = getToColor(fold(uv - grad * tilt * 0.01 * cellSize / vec2(ratio, 1.0)));\n float t2 = tilt * tilt;\n float gloss = 0.3 * t2 * t2; // a thin bright line right on the rim\n to.rgb = mix(to.rgb * shade, highlight.rgb, clamp(spec + gloss, 0.0, 1.0) * highlight.a);\n vec4 from = getFromColor(uv);\n float sh = shadow.a * (1.0 - smoothstep(0.0, 0.15, d + 0.03)) * smoothstep(0.0, 0.3, rNear);\n from.rgb = mix(from.rgb, shadow.rgb, sh);\n return mix(from, to, inside);\n}\n","author":"gre","license":"MIT","description":"Soft, glossy blobs of liquid pop up over the outgoing image, swell and melt into each other, revealing the incoming image until they cover the whole frame","tags":["blob","liquid","organic","reveal"],"params":{"blobs":{"type":"float","default":5,"min":2,"max":12,"step":1,"description":"Number of blobs across the frame"},"smoothness":{"type":"float","default":0.5,"min":0,"max":1,"description":"How smoothly neighbouring blobs melt into each other"},"highlight":{"type":"vec4","default":[1,1,1,0.7],"color":true,"description":"Color of the glossy highlight on the rim of the blobs (its alpha is its strength)"},"shadow":{"type":"vec4","default":[0,0,0,0.3],"color":true,"description":"Color of the soft shadow that the blobs cast on the outgoing image"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:35:40 +0100","updatedAt":"Sun, 1 Nov 2026 20:35:40 +0100"},{"name":"GridFlip","paramsTypes":{"size":"ivec2","pause":"float","dividerWidth":"float","bgcolor":"vec4","randomness":"float"},"defaultParams":{"size":[4,4],"pause":0.1,"dividerWidth":0.05,"bgcolor":[0,0,0,1],"randomness":0.1},"glsl":"// License: MIT\n// Author: TimDonselaar\n// Description: The image splits into a grid of tiles that flip one by one to the incoming image\n// Tags: grid, tiles, flip\n// ported by gre from https://gist.github.com/TimDonselaar/9bcd1c4b5934ba60087bdb55c2ea92e5\n\n// @param Number of tiles (columns, rows)\nuniform ivec2 size; // = ivec2(4)\nuniform float pause; // = 0.1\nuniform float dividerWidth; // = 0.05\n// @color Color behind the tiles\nuniform vec4 bgcolor; // = vec4(0.0, 0.0, 0.0, 1.0)\nuniform float randomness; // = 0.1\n \nfloat rand (vec2 co) {\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n\nfloat getDelta(vec2 p) {\n vec2 rectanglePos = floor(vec2(size) * p);\n vec2 rectangleSize = vec2(1.0 / vec2(size).x, 1.0 / vec2(size).y);\n float top = rectangleSize.y * (rectanglePos.y + 1.0);\n float bottom = rectangleSize.y * rectanglePos.y;\n float left = rectangleSize.x * rectanglePos.x;\n float right = rectangleSize.x * (rectanglePos.x + 1.0);\n float minX = min(abs(p.x - left), abs(p.x - right));\n float minY = min(abs(p.y - top), abs(p.y - bottom));\n return min(minX, minY);\n}\n\nfloat getDividerSize() {\n vec2 rectangleSize = vec2(1.0 / vec2(size).x, 1.0 / vec2(size).y);\n return min(rectangleSize.x, rectangleSize.y) * dividerWidth;\n}\n\nvec4 transition(vec2 p) {\n if(progress < pause) {\n float currentProg = progress / pause;\n float a = 1.0;\n if(getDelta(p) < getDividerSize()) {\n a = 1.0 - currentProg;\n }\n return mix(bgcolor, getFromColor(p), a);\n }\n else if(progress < 1.0 - pause){\n if(getDelta(p) < getDividerSize()) {\n return bgcolor;\n } else {\n float currentProg = (progress - pause) / (1.0 - pause * 2.0);\n vec2 q = p;\n vec2 rectanglePos = floor(vec2(size) * q);\n \n float r = rand(rectanglePos) - randomness;\n float cp = smoothstep(0.0, 1.0 - r, currentProg);\n \n float rectangleSize = 1.0 / vec2(size).x;\n float delta = rectanglePos.x * rectangleSize;\n float offset = rectangleSize / 2.0 + delta;\n \n p.x = (p.x - offset)/abs(cp - 0.5)*0.5 + offset;\n vec4 a = getFromColor(p);\n vec4 b = getToColor(p);\n \n float s = step(abs(vec2(size).x * (q.x - delta) - 0.5), abs(cp - 0.5));\n return mix(bgcolor, mix(b, a, step(cp, 0.5)), s);\n }\n }\n else {\n float currentProg = (progress - 1.0 + pause) / pause;\n float a = 1.0;\n if(getDelta(p) < getDividerSize()) {\n a = currentProg;\n }\n return mix(bgcolor, getToColor(p), a);\n }\n}\n","author":"TimDonselaar","license":"MIT","description":"The image splits into a grid of tiles that flip one by one to the incoming image","tags":["grid","tiles","flip"],"params":{"size":{"type":"ivec2","default":[4,4],"description":"Number of tiles (columns, rows)"},"pause":{"type":"float","default":0.1},"dividerWidth":{"type":"float","default":0.05},"bgcolor":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color behind the tiles"},"randomness":{"type":"float","default":0.1}},"textures":[],"createdAt":"Mon, 12 Jun 2017 11:32:51 +0800","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"Halftone","paramsTypes":{"dots":"float","angle":"float","paper":"vec4"},"defaultParams":{"dots":28,"angle":45,"paper":[1,1,1,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The image breaks into printed halftone dots whose size follows its shades, the dots reshape into the incoming image, then merge back into it\n// Tags: dots, pattern, retro\n\n// @range(4, 80) Number of dots across the shorter side\nuniform float dots; // = 28.0\n// @range(0, 90) Angle of the dot grid, in degrees\nuniform float angle; // = 45.0\n// @color Color of the paper between the dots\nuniform vec4 paper; // = vec4(1.0, 1.0, 1.0, 1.0)\n\n// Dot radius, in cells, of a halftone printing this color (darker is bigger)\nfloat dotRadius(vec4 c) {\n float shade = 1.0 - dot(c.rgb, vec3(0.299, 0.587, 0.114));\n return mix(0.1, 0.74, sqrt(clamp(shade, 0.0, 1.0))) * c.a;\n}\n\nvec4 transition(vec2 uv) {\n // the image turns into dots until 0.3, the dots reshape from left to right, then merge back from 0.7\n float h = smoothstep(0.0, 0.3, progress) * (1.0 - smoothstep(0.7, 1.0, progress));\n float t = (progress - 0.3) / 0.4;\n // rotated square grid, in cells\n float a = radians(angle);\n mat2 rot = mat2(cos(a), sin(a), -sin(a), cos(a));\n vec2 scale = vec2(ratio, 1.0) * dots / min(ratio, 1.0);\n vec2 g = rot * ((uv - 0.5) * scale);\n vec2 base = floor(g - 0.5) + 0.5;\n vec4 pixel = progress < 0.5 ? getFromColor(uv) : getToColor(uv);\n // the dots of the 4 nearest cells may overlap this point: keep the one it is deepest in\n float best = 1e3;\n vec4 ink = pixel;\n for (int i = 0; i < 4; i++) {\n vec2 center = base + vec2(mod(float(i), 2.0), floor(float(i) / 2.0));\n vec2 cuv = (center * rot) / scale + 0.5; // inverse rotation\n vec4 cf = getFromColor(cuv);\n vec4 ct = getToColor(cuv);\n float m = smoothstep(0.0, 1.0, clamp(2.5 * t - 1.5 * cuv.x, 0.0, 1.0));\n // at h = 0, the dots cover their whole cell with the image itself\n float r = mix(0.78, mix(dotRadius(cf), dotRadius(ct), m), h);\n float sd = length(g - center) - r;\n if (sd < best) {\n best = sd;\n ink = mix(pixel, mix(cf, ct, m), h);\n }\n }\n return mix(paper, ink, 1.0 - smoothstep(-0.06, 0.06, best));\n}\n","author":"gre","license":"MIT","description":"The image breaks into printed halftone dots whose size follows its shades, the dots reshape into the incoming image, then merge back into it","tags":["dots","pattern","retro"],"params":{"dots":{"type":"float","default":28,"min":4,"max":80,"description":"Number of dots across the shorter side"},"angle":{"type":"float","default":45,"min":0,"max":90,"description":"Angle of the dot grid, in degrees"},"paper":{"type":"vec4","default":[1,1,1,1],"color":true,"description":"Color of the paper between the dots"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:26:58 +0100","updatedAt":"Sat, 31 Oct 2026 18:26:58 +0100"},{"name":"HeartWipe","paramsTypes":{},"defaultParams":{},"glsl":"// Author: gre\n// License: MIT\n// Description: A heart shape grows from the center to reveal the incoming image\n// Tags: shape, wipe, heart\n\nfloat inHeart (vec2 p, vec2 center, float size) {\n if (size==0.0) return 0.0;\n vec2 o = (p-center)/(1.6*size);\n float a = o.x*o.x+o.y*o.y-0.3;\n return step(a*a*a, o.x*o.x*o.y*o.y*o.y);\n}\nvec4 transition (vec2 uv) {\n return mix(\n getFromColor(uv),\n getToColor(uv),\n inHeart(uv, vec2(0.5, 0.4), progress)\n );\n}\n","author":"gre","license":"MIT","description":"A heart shape grows from the center to reveal the incoming image","tags":["shape","wipe","heart"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"HeatHaze","paramsTypes":{"strength":"float","scale":"float","speed":"float"},"defaultParams":{"strength":0.04,"scale":6,"speed":2},"glsl":"// Author: gre\n// License: MIT\n// Description: Shimmering heat waves rise through the frame, strongest at the bottom, making the outgoing image wobble like the air over hot asphalt; the incoming image shows through the haze and settles as it calms\n// Tags: distort, heat, shimmer, noise, organic, blend\n\n// @range(0, 0.1) How far the haze bends the image, in frame heights (the strongest waves bend it about 1.5 times as far)\nuniform float strength; // = 0.04\n// @range(1, 12) Size of the heat waves: more, smaller ones with a larger value\nuniform float scale; // = 6.0\n// @range(0, 6) How fast the heat waves rise\nuniform float speed; // = 2.0\n\n// reflects coordinates that leave the frame back into it, so the edges do not smear\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\nfloat vnoise(vec2 v) {\n vec2 i = floor(v);\n vec2 f = fract(v);\n f = f * f * (3.0 - 2.0 * f);\n return mix(\n mix(hash12(i), hash12(i + vec2(1.0, 0.0)), f.x),\n mix(hash12(i + vec2(0.0, 1.0)), hash12(i + vec2(1.0, 1.0)), f.x),\n f.y\n );\n}\n\n// centered on 0, within [-1.5, 1.5]\nfloat fbm(vec2 v) {\n float sum = 0.0;\n float amp = 0.5;\n for (int i = 0; i < 4; i++) {\n sum += amp * vnoise(v);\n v = mat2(1.6, 1.2, -1.2, 1.6) * v + 5.3;\n amp *= 0.5;\n }\n return (sum / 0.9375 - 0.5) * 3.0;\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n const float PI = 3.141592653589793;\n float p = progress;\n // the haze builds up then calms down\n float amount = sin(PI * p);\n // the waves scroll upward and slowly churn as they rise\n float t = p * speed;\n // in square pixels, then squashed vertically into the thin bands of rising air\n vec2 q = vec2(uv.x * ratio, uv.y * 2.5) * scale;\n q.y -= t * scale;\n // the bands are bent by a slower, larger turbulence so they do not stay straight\n vec2 w = vec2(fbm(q * 0.35 + vec2(0.0, t)), fbm(q * 0.35 + vec2(7.1, -t)));\n q += 1.5 * w;\n vec2 offset = vec2(fbm(q), 0.5 * fbm(q + vec2(3.7, 1.9)));\n // the hot air is near the ground: strongest at the bottom, fainter at the top\n float ground = mix(1.0, 0.3, uv.y);\n offset *= strength * amount * ground * vec2(1.0 / ratio, 1.0);\n\n vec2 d = mirror(uv + offset);\n // the images swap in the thick of the haze\n float m = smoothstep(0.3, 0.7, p);\n if (m <= 0.0) return getFromColor(d);\n if (m >= 1.0) return getToColor(d);\n vec4 a = getFromColor(d);\n vec4 b = getToColor(d);\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Shimmering heat waves rise through the frame, strongest at the bottom, making the outgoing image wobble like the air over hot asphalt; the incoming image shows through the haze and settles as it calms","tags":["distort","heat","shimmer","noise","organic","blend"],"params":{"strength":{"type":"float","default":0.04,"min":0,"max":0.1,"description":"How far the haze bends the image, in frame heights (the strongest waves bend it about 1.5 times as far)"},"scale":{"type":"float","default":6,"min":1,"max":12,"description":"Size of the heat waves: more, smaller ones with a larger value"},"speed":{"type":"float","default":2,"min":0,"max":6,"description":"How fast the heat waves rise"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:12:23 +0100","updatedAt":"Wed, 4 Nov 2026 20:12:23 +0100"},{"name":"Hexagonalize","paramsTypes":{"steps":"int","horizontalHexagons":"float"},"defaultParams":{"steps":50,"horizontalHexagons":20},"glsl":"// Author: Fernando Kuteken\n// License: MIT\n// Description: Both images turn into hexagons, crossfade, then sharpen again\n// Tags: pixelate, hexagon, blend\n// Hexagonal math from: http://www.redblobgames.com/grids/hexagons/\n\nuniform int steps; // = 50\n// @param Number of hexagons across\nuniform float horizontalHexagons; // = 20\n\nstruct Hexagon {\n float q;\n float r;\n float s;\n};\n\nHexagon createHexagon(float q, float r){\n Hexagon hex;\n hex.q = q;\n hex.r = r;\n hex.s = -q - r;\n return hex;\n}\n\nHexagon roundHexagon(Hexagon hex){\n \n float q = floor(hex.q + 0.5);\n float r = floor(hex.r + 0.5);\n float s = floor(hex.s + 0.5);\n\n float deltaQ = abs(q - hex.q);\n float deltaR = abs(r - hex.r);\n float deltaS = abs(s - hex.s);\n\n if (deltaQ > deltaR && deltaQ > deltaS)\n q = -r - s;\n else if (deltaR > deltaS)\n r = -q - s;\n else\n s = -q - r;\n\n return createHexagon(q, r);\n}\n\nHexagon hexagonFromPoint(vec2 point, float size) {\n \n point.y /= ratio;\n point = (point - 0.5) / size;\n \n float q = (sqrt(3.0) / 3.0) * point.x + (-1.0 / 3.0) * point.y;\n float r = 0.0 * point.x + 2.0 / 3.0 * point.y;\n\n Hexagon hex = createHexagon(q, r);\n return roundHexagon(hex);\n \n}\n\nvec2 pointFromHexagon(Hexagon hex, float size) {\n \n float x = (sqrt(3.0) * hex.q + (sqrt(3.0) / 2.0) * hex.r) * size + 0.5;\n float y = (0.0 * hex.q + (3.0 / 2.0) * hex.r) * size + 0.5;\n \n return vec2(x, y * ratio);\n}\n\nvec4 transition (vec2 uv) {\n \n float dist = 2.0 * min(progress, 1.0 - progress);\n dist = steps > 0 ? ceil(dist * float(steps)) / float(steps) : dist;\n \n float size = (sqrt(3.0) / 3.0) * dist / horizontalHexagons;\n \n vec2 point = dist > 0.0 ? pointFromHexagon(hexagonFromPoint(uv, size), size) : uv;\n\n return mix(getFromColor(point), getToColor(point), progress);\n \n}\n","author":"Fernando Kuteken","license":"MIT","description":"Both images turn into hexagons, crossfade, then sharpen again","tags":["pixelate","hexagon","blend"],"params":{"steps":{"type":"int","default":50},"horizontalHexagons":{"type":"float","default":20,"description":"Number of hexagons across"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Hologram","paramsTypes":{"tint":"vec3","background":"vec4","scanlines":"float","jitter":"float","flicker":"float"},"defaultParams":{"tint":[0.2,0.75,1],"background":[0,0.02,0.05,1],"scanlines":150,"jitter":0.04,"flicker":0.6},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image turns into a flickering hologram (blue by default) with scanlines and jittering rows, breaks up, and the hologram resolves into the incoming image in full color\n// Tags: hologram, sci-fi, scanlines, flicker, glitch\n\n// @color Color of the hologram\nuniform vec3 tint; // = vec3(0.2, 0.75, 1.0)\n// @color Color behind the hologram, seen between its scanlines and where it breaks up\nuniform vec4 background; // = vec4(0.0, 0.02, 0.05, 1.0)\n// @range(20, 300) Number of scanlines over the frame height\nuniform float scanlines; // = 150.0\n// @range(0, 0.2) How far rows of the hologram jump sideways, relative to the frame width\nuniform float jitter; // = 0.04\n// @range(0, 1) Strength of the flicker and of the rows that drop out\nuniform float flicker; // = 0.6\n\nconst float PI = 3.14159265;\n// steps per transition of the flicker and the jitter\nconst float STEPS = 32.0;\n\nfloat hash(vec2 p) {\n p = fract(p * vec2(443.897, 441.423));\n p += dot(p, p.yx + 19.19);\n return fract((p.x + p.y) * p.x);\n}\n\nfloat luma(vec3 c) {\n return dot(c, vec3(0.299, 0.587, 0.114));\n}\n\nvec4 premultiplied(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\n// the image the hologram shows: rows switch from the outgoing image to the incoming one\n// while the hologram breaks up\nvec4 source(vec2 uv, float m) {\n return m > 0.5 ? getToColor(uv) : getFromColor(uv);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n float p = progress;\n // how much of the hologram shows, and how broken up it is (peaking mid-transition)\n float h = smoothstep(0.0, 0.3, p) * (1.0 - smoothstep(0.7, 1.0, p));\n float b = smoothstep(0.0, 1.0, 1.0 - abs(p - 0.5) / 0.22);\n float f = floor(p * STEPS);\n\n // rows of the hologram jump sideways, more while it breaks up\n float band = floor(uv.y * 36.0);\n float jump = step(1.0 - (0.2 + 0.6 * b) * h, hash(vec2(band, f)));\n float offset = (hash(vec2(band, f + 0.37)) - 0.5) * 2.0 * jitter * jump * (0.3 + 0.7 * b);\n offset += sin(uv.y * 23.0 + f * 1.7) * 0.0015 * h;\n vec2 q = uv + vec2(offset, 0.0);\n\n // when each row of the hologram switches to the incoming image\n float m = step(hash(vec2(floor(uv.y * 24.0), 7.0)), (p - 0.35) / 0.3);\n\n // the hologram: the luma of the image in the tint, with colored fringes\n // (sampled inside the frame, the fringes weighted by the alpha of their texels)\n vec4 c = source(clamp(q, 0.0, 1.0), m);\n vec2 dx = vec2(0.003 + 0.01 * b, 0.0);\n float l = luma(c.rgb);\n vec4 cr = source(clamp(q + dx, 0.0, 1.0), m);\n vec4 cb = source(clamp(q - dx, 0.0, 1.0), m);\n float lr = luma(cr.rgb) * cr.a;\n float lb = luma(cb.rgb) * cb.a;\n vec3 g = smoothstep(0.05, 0.9, vec3(lr, l, lb));\n // the brightest parts burn toward white\n vec3 holo = tint * (0.06 + 1.25 * g) + 0.45 * g * g * g;\n // brighter scan band rolling down\n float roll = fract(uv.y + 2.0 * p);\n holo += tint * 0.35 * smoothstep(0.85, 1.0, roll) * (1.0 - smoothstep(0.98, 1.0, roll));\n holo = clamp(holo, 0.0, 1.0);\n // nothing outside the image where a row jumped out of the frame\n float inside = step(0.0, q.x) * step(q.x, 1.0);\n\n // opacity of the hologram: scanlines, flicker and missing rows\n float lines = 0.5 + 0.5 * sin((uv.y * scanlines - p * 6.0) * 2.0 * PI);\n float vis = mix(1.0, 0.15 + 0.85 * lines, h);\n vis *= 1.0 - flicker * (0.25 + 0.75 * b) * hash(vec2(f, 3.1)) * h;\n float gap = step(hash(vec2(floor(uv.y * 90.0), f + 0.71)), flicker * 0.45 * b);\n vis *= 1.0 - gap;\n vec4 layer = vec4(holo, c.a * vis * inside);\n // the hologram over its background, transparent where neither the image nor the\n // hologram is\n vec4 plain = premultiplied(source(uv, m));\n vec4 back = premultiplied(vec4(background.rgb, background.a * max(plain.a, layer.a)));\n vec4 holoColor = premultiplied(layer) + back * (1.0 - layer.a);\n\n // the images in full color, then the hologram over them\n vec4 o = mix(plain, holoColor, h);\n return o.a > 0.0 ? vec4(o.rgb / o.a, o.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The outgoing image turns into a flickering hologram (blue by default) with scanlines and jittering rows, breaks up, and the hologram resolves into the incoming image in full color","tags":["hologram","sci-fi","scanlines","flicker","glitch"],"params":{"tint":{"type":"vec3","default":[0.2,0.75,1],"color":true,"description":"Color of the hologram"},"background":{"type":"vec4","default":[0,0.02,0.05,1],"color":true,"description":"Color behind the hologram, seen between its scanlines and where it breaks up"},"scanlines":{"type":"float","default":150,"min":20,"max":300,"description":"Number of scanlines over the frame height"},"jitter":{"type":"float","default":0.04,"min":0,"max":0.2,"description":"How far rows of the hologram jump sideways, relative to the frame width"},"flicker":{"type":"float","default":0.6,"min":0,"max":1,"description":"Strength of the flicker and of the rows that drop out"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:14:30 +0100","updatedAt":"Wed, 4 Nov 2026 20:14:30 +0100"},{"name":"Honeycomb","paramsTypes":{"size":"float"},"defaultParams":{"size":6},"glsl":"// Author: gre\n// License: MIT\n// Description: The image splits into hexagons that spin and shrink away in a wave from the center, uncovering the incoming image\n// Tags: hexagon, tiles, rotate, radial\n\n// @range(2, 30) Number of hexagons across the shorter side\nuniform float size; // = 6.0\n\n// Distance to the center of a pointy-top hexagon, 0.5 on the edges of a cell\nfloat hexDist(vec2 p) {\n p = abs(p);\n return max(p.x, dot(p, vec2(0.5, 0.8660254)));\n}\n\nmat2 rotation(float a) {\n return mat2(cos(a), sin(a), -sin(a), cos(a));\n}\n\n// Coverage of a hexagon turned by a and scaled by s inside its cell, with soft edges of width e\n// (unturned at s = 1, it covers its whole cell)\nfloat hexMask(vec2 local, float s, float a, float e) {\n float r = (0.52 + e) * s;\n return 1.0 - smoothstep(r - e, r, hexDist(rotation(-a) * local));\n}\n\n// Where the image is sampled, for a point of a hexagon turned by a and scaled by s\nvec2 hexUv(vec2 uv, vec2 local, vec2 cellToUv, float s, float a) {\n return uv + cellToUv * (rotation(-a) * local / max(s, 0.001) - local);\n}\n\nvec4 transition(vec2 uv) {\n // nearest hexagon center, on two interleaved rectangular grids (centers 1 apart)\n vec2 toCells = vec2(ratio, 1.0) * size / min(ratio, 1.0);\n vec2 p = (uv - 0.5) * toCells;\n const vec2 grid = vec2(1.0, 1.7320508);\n vec2 a = (floor(p / grid) + 0.5) * grid;\n vec2 b = (floor((p - 0.5 * grid) / grid) + 1.0) * grid;\n vec2 center = dot(p - a, p - a) < dot(p - b, p - b) ? a : b;\n vec2 local = p - center;\n\n // each hexagon starts later the further it is from the center\n float d = min(length(center / toCells * vec2(ratio, 1.0)) / (0.5 * length(vec2(ratio, 1.0))), 1.0);\n float t = clamp((progress - 0.6 * d) / 0.4, 0.0, 1.0);\n\n // the outgoing hexagon spins (opening gaps at the corners of its cell), shrinks away and darkens,\n // casting a soft shadow on the incoming image\n float s = 1.0 - smoothstep(0.1, 1.0, t);\n float turn = 1.8 * t * (2.0 - t);\n vec4 fromTile = getFromColor(hexUv(uv, local, 1.0 / toCells, s, turn));\n fromTile.rgb *= 1.0 - 0.3 * t;\n vec4 below = getToColor(uv);\n below.rgb *= 1.0 - 0.5 * hexMask(local - vec2(0.06, -0.08) * s, s, turn, 0.2);\n return mix(below, fromTile, hexMask(local, s, turn, 0.03));\n}\n","author":"gre","license":"MIT","description":"The image splits into hexagons that spin and shrink away in a wave from the center, uncovering the incoming image","tags":["hexagon","tiles","rotate","radial"],"params":{"size":{"type":"float","default":6,"min":2,"max":30,"description":"Number of hexagons across the shorter side"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:26:58 +0100","updatedAt":"Sat, 31 Oct 2026 18:26:58 +0100"},{"name":"HorizontalClose","paramsTypes":{},"defaultParams":{},"glsl":"// Author: martiniti\n// License: MIT\n// Description: The incoming image closes in from the top and bottom edges toward the middle\n// Tags: wipe, split\n\nvec4 transition (vec2 uv) {\n\n float s = 2.0 - abs((uv.y - 0.5) / (progress - 1.0)) - 2.0 * progress;\n \n return mix(\n getFromColor(uv),\n getToColor(uv),\n smoothstep(0.5, 0.0, s)\n ); \n}\n","author":"martiniti","license":"MIT","description":"The incoming image closes in from the top and bottom edges toward the middle","tags":["wipe","split"],"params":{},"textures":[],"createdAt":"Tue, 4 Apr 2023 10:35:23 +0300","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"HorizontalOpen","paramsTypes":{},"defaultParams":{},"glsl":"// Author: martiniti\n// License: MIT\n// Description: The incoming image opens from a line in the middle toward the top and bottom edges\n// Tags: wipe, split\n\nvec4 transition (vec2 uv) {\n \n float regress = 1.0 - progress;\n\n float s = 2.0 - abs((uv.y - 0.5) / (regress - 1.0)) - 2.0 * regress;\n \n return mix(\n getFromColor(uv),\n getToColor(uv),\n smoothstep(0.0, 0.5, s)\n );\n}\n","author":"martiniti","license":"MIT","description":"The incoming image opens from a line in the middle toward the top and bottom edges","tags":["wipe","split"],"params":{},"textures":[],"createdAt":"Tue, 4 Apr 2023 10:35:30 +0300","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"HsvFade","paramsTypes":{},"defaultParams":{},"glsl":"// Author: nwoeanhinnogaehr\n// License: MIT\n// Description: A crossfade through the HSV color space that cycles through hues\n// Tags: fade, color, hue\n// Ported from https://gist.github.com/nwoeanhinnogaehr/b185145363d65751009b\n\n// HSV functions from http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl\n\nvec3 hsv2rgb(vec3 c) {\n const vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);\n vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);\n return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);\n}\n\nvec3 rgb2hsv(vec3 c) {\n const vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);\n vec4 p = mix(vec4(c.bg, K.wz), vec4(c.gb, K.xy), step(c.b, c.g));\n vec4 q = mix(vec4(p.xyw, c.r), vec4(c.r, p.yzx), step(p.x, c.r));\n float d = q.x - min(q.w, q.y);\n return vec3(abs(q.z + (q.w - q.y) / (6.0 * d + 0.001)), d / (q.x + 0.001), q.x);\n}\n\nvec4 transition(vec2 uv) {\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n vec3 m = mix(rgb2hsv(from.rgb), rgb2hsv(to.rgb), progress);\n return vec4(hsv2rgb(m), mix(from.a, to.a, progress));\n}\n","author":"nwoeanhinnogaehr","license":"MIT","description":"A crossfade through the HSV color space that cycles through hues","tags":["fade","color","hue"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"InkBleed","paramsTypes":{"drops":"float","tendrils":"float","rim":"float","seed":"float"},"defaultParams":{"drops":4,"tendrils":0.7,"rim":0.5,"seed":3},"glsl":"// Author: gre\n// License: MIT\n// Description: The incoming image spreads over the outgoing one like drops of ink in water, blooming from a few points with curling, wispy edges and a darker rim, until it fills the frame\n// Tags: ink, organic, fluid, noise\n\n// @range(1, 8, 1) Number of ink drops\nuniform float drops; // = 4.0\n// @range(0, 1) How far the curling tendrils reach out of the blooms\nuniform float tendrils; // = 0.7\n// @range(0, 1) How dark the rim of ink at the front of the blooms is\nuniform float rim; // = 0.5\n// @param Random seed for the drop positions and the swirls\nuniform float seed; // = 3.0\n\nfloat hash (vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\nfloat vnoise (vec2 p) {\n vec2 i = floor(p);\n vec2 f = fract(p);\n f = f * f * (3.0 - 2.0 * f);\n return mix(\n mix(hash(i), hash(i + vec2(1.0, 0.0)), f.x),\n mix(hash(i + vec2(0.0, 1.0)), hash(i + vec2(1.0, 1.0)), f.x),\n f.y\n );\n}\n\nfloat fbm (vec2 p) {\n float v = 0.0;\n float a = 0.5;\n for (int i = 0; i < 4; i++) {\n v += a * vnoise(p);\n p = mat2(1.6, 1.2, -1.2, 1.6) * p + 7.3;\n a *= 0.5;\n }\n return v / 0.9375;\n}\n\nvec2 fold (vec2 p) {\n return 1.0 - abs(1.0 - mod(p, 2.0));\n}\n\nvec4 transition (vec2 uv) {\n float p = progress;\n vec2 q = vec2(uv.x * ratio, uv.y);\n // swirls: noise warped twice by itself, drifting as the ink spreads\n vec2 o = vec2(seed * 3.1, seed * 1.7);\n vec2 sq = q * 2.2 + o;\n vec2 w1 = vec2(fbm(sq + vec2(0.0, 0.6 * p)), fbm(sq + vec2(5.2, 1.3) - vec2(0.5 * p, 0.0)));\n vec2 w2 = vec2(fbm(sq + 3.0 * w1 + vec2(1.7, 9.2)), fbm(sq + 3.0 * w1 + vec2(8.3, 2.8)));\n float swirl = fbm(sq * 0.8 + 2.5 * w2) - 0.5; // marbled, curling pattern\n vec2 flow = w2 - 0.5;\n float amp = 0.05 + 0.35 * tendrils;\n float n = clamp(floor(drops + 0.5), 1.0, 8.0);\n float rimW = 0.1;\n float feather = 0.05; // soft, diluted ink around the front\n float margin = 1.2 * amp + rimW + 0.08; // how far the swirls can pull the front back\n float f = -1e3; // > 0 inside the ink\n float fs = -1e3; // the same, only for the drops already fallen, which fades their haze in\n for (int i = 0; i < 8; i++) {\n float fi = float(i);\n if (fi < n) {\n vec2 hs = vec2(fi * 7.13 + seed, fi * 3.71 - seed);\n vec2 c = vec2(mix(0.15, 0.85, hash(hs)) * ratio, mix(0.15, 0.85, hash(hs + 19.7)));\n float start = 0.2 * fi / n;\n float s = clamp((p - start) / (1.0 - start), 0.0, 1.0);\n // distance to the farthest corner: each bloom alone covers the frame in the end\n vec2 m = max(c, vec2(ratio, 1.0) - c);\n float far = length(m) + margin;\n float s3 = s * s * s;\n float r = (far + 0.02) * s * (0.35 + 0.65 * s3 * s3) - 0.02;\n // a drop starts round, then its front curls more and more as it spreads\n float reach = amp * min(1.0, max(r, 0.0) * 5.0);\n float g = r - length(q - c + 1.3 * reach * flow) + reach * 0.9 * swirl;\n f = max(f, g);\n fs = max(fs, g - 0.15 * (1.0 - min(1.0, s * 12.0)));\n }\n }\n float aa = 0.003;\n float inside = smoothstep(-aa, aa, f);\n // feathered wisps of diluted ink, streaked along the swirls, ahead of the front\n float wisp = 1.0 - smoothstep(0.0, 0.08, abs(fbm(sq * 2.0 + 5.0 * w2) - 0.5));\n float soft = smoothstep(-feather, 0.0, fs) * (0.35 + 0.4 * wisp);\n float haze = 0.35 * wisp * (1.0 - smoothstep(0.0, 0.1, -fs));\n float cover = max(inside, max(soft, haze));\n // the ink is denser, and still moving, close to its front\n float edge = 1.0 - smoothstep(0.0, rimW, f);\n vec4 to = getToColor(fold(uv - 0.015 * edge * flow / vec2(ratio, 1.0)));\n to.rgb = mix(to.rgb, to.rgb * to.rgb * 0.7, rim * edge);\n return mix(getFromColor(uv), to, cover);\n}\n","author":"gre","license":"MIT","description":"The incoming image spreads over the outgoing one like drops of ink in water, blooming from a few points with curling, wispy edges and a darker rim, until it fills the frame","tags":["ink","organic","fluid","noise"],"params":{"drops":{"type":"float","default":4,"min":1,"max":8,"step":1,"description":"Number of ink drops"},"tendrils":{"type":"float","default":0.7,"min":0,"max":1,"description":"How far the curling tendrils reach out of the blooms"},"rim":{"type":"float","default":0.5,"min":0,"max":1,"description":"How dark the rim of ink at the front of the blooms is"},"seed":{"type":"float","default":3,"description":"Random seed for the drop positions and the swirls"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:34:30 +0100","updatedAt":"Sun, 1 Nov 2026 20:34:30 +0100"},{"name":"InsetWipe","paramsTypes":{"anchor":"vec2","smoothness":"float","borderWidth":"float","borderColor":"vec4","reverse":"bool"},"defaultParams":{"anchor":[1,1],"smoothness":0,"borderWidth":0,"borderColor":[1,1,1,1],"reverse":false},"glsl":"// Author: gre\n// License: MIT\n// Description: A rectangle anchored in a corner, on an edge or in the center grows until the incoming image fills the frame, revealing it in place without scaling it; in reverse, the outgoing image shrinks into the rectangle\n// Tags: wipe, shape, box\n\n// @param Where the rectangle grows from: (0, 0) bottom left, (1, 1) top right, (0.5, 0) middle of the bottom edge, (0.5, 0.5) center\nuniform vec2 anchor; // = vec2(1.0, 1.0)\n// @range(0, 0.2) Softness of the rectangle's edge\nuniform float smoothness; // = 0.0\n// @range(0, 0.1) Width of a border drawn around the rectangle, in frame heights (0: no border)\nuniform float borderWidth; // = 0.0\n// @color Color of the border\nuniform vec4 borderColor; // = vec4(1.0, 1.0, 1.0, 1.0)\n// @param The outgoing image shrinks into the rectangle instead, toward the anchor\nuniform bool reverse; // = false\n\n// half width of the antialiased edge, in frame heights\nconst float AA = 0.001;\n\nvec4 premultiplied(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return b;\n\n vec2 an = clamp(anchor, 0.0, 1.0);\n vec2 sq = vec2(ratio, 1.0);\n // the rectangle keeps the proportions that make it reach every far side of the frame\n // at once; measured in square pixels so its edge and border have an even width\n vec2 ext = max(an, 1.0 - an) * sq;\n vec2 d = abs(uv - an) * sq;\n float s = max(smoothness, AA);\n float bw = max(borderWidth, 0.0);\n\n // eased growth, from a rectangle whose border is not yet in the frame to one whose\n // soft edge has left it on every side\n float t = reverse ? 1.0 - progress : progress;\n float p = mix(t, t * t * (3.0 - 2.0 * t), 0.3);\n vec2 size = p * ext + mix(-(bw + s), s, p);\n // signed distance to the rectangle's edge, square-cornered, < 0 inside\n float e = max(d.x - size.x, d.y - size.y);\n\n // the rectangle shows the incoming image, or the outgoing one in reverse\n vec4 inside = reverse ? a : b;\n vec4 c = premultiplied(reverse ? b : a);\n if (bw > 0.0) {\n // laid over the image outside the rectangle, so a translucent border tints it\n float m = 1.0 - smoothstep(bw - s, bw + s, e);\n c = premultiplied(borderColor) * m + c * (1.0 - borderColor.a * m);\n }\n c = mix(c, premultiplied(inside), 1.0 - smoothstep(-s, s, e));\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"A rectangle anchored in a corner, on an edge or in the center grows until the incoming image fills the frame, revealing it in place without scaling it; in reverse, the outgoing image shrinks into the rectangle","tags":["wipe","shape","box"],"params":{"anchor":{"type":"vec2","default":[1,1],"description":"Where the rectangle grows from: (0, 0) bottom left, (1, 1) top right, (0.5, 0) middle of the bottom edge, (0.5, 0.5) center"},"smoothness":{"type":"float","default":0,"min":0,"max":0.2,"description":"Softness of the rectangle's edge"},"borderWidth":{"type":"float","default":0,"min":0,"max":0.1,"description":"Width of a border drawn around the rectangle, in frame heights (0: no border)"},"borderColor":{"type":"vec4","default":[1,1,1,1],"color":true,"description":"Color of the border"},"reverse":{"type":"bool","default":false,"description":"The outgoing image shrinks into the rectangle instead, toward the anchor"}},"textures":[],"createdAt":"Thu, 5 Nov 2026 07:31:05 +0100","updatedAt":"Thu, 5 Nov 2026 11:34:33 +0100"},{"name":"InvertedPageCurl","paramsTypes":{},"defaultParams":{},"glsl":"// Author: Hewlett-Packard\n// License: BSD 3 Clause\n// Description: The outgoing image curls away like a page, revealing the incoming one\n// Tags: page, curl, 3d\n// Adapted by Sergey Kosarevsky from:\n// http://rectalogic.github.io/webvfx/examples_2transition-shader-pagecurl_8html-example.html\n\n/*\nCopyright (c) 2010 Hewlett-Packard Development Company, L.P. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following disclaimer\n in the documentation and/or other materials provided with the\n distribution.\n * Neither the name of Hewlett-Packard nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\nin vec2 texCoord;\n*/\n\nconst float MIN_AMOUNT = -0.16;\nconst float MAX_AMOUNT = 1.5;\n\nconst float PI = 3.141592653589793;\n\nconst float scale = 512.0;\nconst float sharpness = 3.0;\n\nconst float cylinderRadius = 1.0 / PI / 2.0;\n\n// These depend on the progress uniform and must be computed per-fragment.\n// Global initializers with uniforms are invalid in GLSL ES and fail on Mesa.\nfloat amount;\nfloat cylinderCenter;\nfloat cylinderAngle;\n\nvec3 hitPoint(float hitAngle, float yc, vec3 point, mat3 rrotation)\n{\n float hitPoint = hitAngle / (2.0 * PI);\n point.y = hitPoint;\n return rrotation * point;\n}\n\nvec4 antiAlias(vec4 color1, vec4 color2, float distanc)\n{\n distanc *= scale;\n if (distanc < 0.0) return color2;\n if (distanc > 2.0) return color1;\n float dd = pow(1.0 - distanc / 2.0, sharpness);\n return ((color2 - color1) * dd) + color1;\n}\n\nfloat distanceToEdge(vec3 point)\n{\n float dx = abs(point.x > 0.5 ? 1.0 - point.x : point.x);\n float dy = abs(point.y > 0.5 ? 1.0 - point.y : point.y);\n if (point.x < 0.0) dx = -point.x;\n if (point.x > 1.0) dx = point.x - 1.0;\n if (point.y < 0.0) dy = -point.y;\n if (point.y > 1.0) dy = point.y - 1.0;\n if ((point.x < 0.0 || point.x > 1.0) && (point.y < 0.0 || point.y > 1.0)) return sqrt(dx * dx + dy * dy);\n return min(dx, dy);\n}\n\nvec4 seeThrough(float yc, vec2 p, mat3 rotation, mat3 rrotation)\n{\n float hitAngle = PI - (acos(clamp(yc / cylinderRadius, -1.0, 1.0)) - cylinderAngle);\n vec3 point = hitPoint(hitAngle, yc, rotation * vec3(p, 1.0), rrotation);\n if (yc <= 0.0 && (point.x < 0.0 || point.y < 0.0 || point.x > 1.0 || point.y > 1.0))\n {\n return getToColor(p);\n }\n\n if (yc > 0.0) return getFromColor(p);\n\n vec4 color = getFromColor(point.xy);\n vec4 tcolor = vec4(0.0);\n\n return antiAlias(color, tcolor, distanceToEdge(point));\n}\n\nvec4 seeThroughWithShadow(float yc, vec2 p, vec3 point, mat3 rotation, mat3 rrotation)\n{\n float shadow = distanceToEdge(point) * 30.0;\n shadow = (1.0 - shadow) / 3.0;\n\n if (shadow < 0.0) shadow = 0.0; else shadow *= amount;\n\n vec4 shadowColor = seeThrough(yc, p, rotation, rrotation);\n shadowColor.r -= shadow;\n shadowColor.g -= shadow;\n shadowColor.b -= shadow;\n\n return shadowColor;\n}\n\nvec4 backside(float yc, vec3 point)\n{\n vec4 color = getFromColor(point.xy);\n float gray = (color.r + color.b + color.g) / 15.0;\n gray += (8.0 / 10.0) * (pow(max(0.0, 1.0 - abs(yc / cylinderRadius)), 2.0 / 10.0) / 2.0 + (5.0 / 10.0));\n color.rgb = vec3(gray);\n return color;\n}\n\nvec4 behindSurface(vec2 p, float yc, vec3 point, mat3 rrotation)\n{\n float safeAmount = amount >= 0.0 ? max(amount, 1e-4) : min(amount, -1e-4);\n float shado = (1.0 - ((-cylinderRadius - yc) / safeAmount * 7.0)) / 6.0;\n shado *= 1.0 - abs(point.x - 0.5);\n\n yc = (-cylinderRadius - cylinderRadius - yc);\n\n float hitAngle = (acos(clamp(yc / cylinderRadius, -1.0, 1.0)) + cylinderAngle) - PI;\n point = hitPoint(hitAngle, yc, point, rrotation);\n\n if (yc < 0.0 && point.x >= 0.0 && point.y >= 0.0 && point.x <= 1.0 && point.y <= 1.0 && (hitAngle < PI || amount > 0.5))\n {\n float dx = point.x - 0.5;\n float dy = point.y - 0.5;\n shado = 1.0 - (sqrt(dx * dx + dy * dy) / (71.0 / 100.0));\n float nyc = -yc / cylinderRadius;\n shado *= nyc * nyc * nyc;\n shado *= 0.5;\n }\n else\n {\n shado = 0.0;\n }\n vec4 to = getToColor(p);\n return vec4(to.rgb - shado, to.a);\n}\n\nvec4 transition(vec2 p) {\n amount = progress * (MAX_AMOUNT - MIN_AMOUNT) + MIN_AMOUNT;\n cylinderCenter = amount;\n cylinderAngle = 2.0 * PI * amount;\n\n const float angle = 100.0 * PI / 180.0;\n float c = cos(-angle);\n float s = sin(-angle);\n\n mat3 rotation = mat3( c, s, 0,\n -s, c, 0,\n -0.801, 0.8900, 1\n );\n c = cos(angle);\n s = sin(angle);\n\n mat3 rrotation = mat3(\tc, s, 0,\n -s, c, 0,\n 0.98500, 0.985, 1\n );\n\n vec3 point = rotation * vec3(p, 1.0);\n\n float yc = point.y - cylinderCenter;\n\n if (yc < -cylinderRadius)\n {\n // Behind surface\n return behindSurface(p,yc, point, rrotation);\n }\n\n if (yc > cylinderRadius)\n {\n // Flat surface\n return getFromColor(p);\n }\n\n float hitAngle = (acos(clamp(yc / cylinderRadius, -1.0, 1.0)) + cylinderAngle) - PI;\n\n float hitAngleMod = mod(hitAngle, 2.0 * PI);\n if ((hitAngleMod > PI && amount < 0.5) || (hitAngleMod > PI/2.0 && amount < 0.0))\n {\n return seeThrough(yc, p, rotation, rrotation);\n }\n\n point = hitPoint(hitAngle, yc, point, rrotation);\n\n if (point.x < 0.0 || point.y < 0.0 || point.x > 1.0 || point.y > 1.0)\n {\n return seeThroughWithShadow(yc, p, point, rotation, rrotation);\n }\n\n vec4 color = backside(yc, point);\n\n vec4 otherColor;\n if (yc < 0.0)\n {\n float dx2 = point.x - 0.5;\n float dy2 = point.y - 0.5;\n float shado = 1.0 - (sqrt(dx2 * dx2 + dy2 * dy2) / 0.71);\n float nyc2 = -yc / cylinderRadius;\n shado *= nyc2 * nyc2 * nyc2;\n shado *= 0.5;\n otherColor = vec4(0.0, 0.0, 0.0, shado * getToColor(p).a); // a shadow on the incoming image\n }\n else\n {\n otherColor = getFromColor(p);\n }\n\n color = antiAlias(color, otherColor, cylinderRadius - abs(yc));\n\n vec4 cl = seeThroughWithShadow(yc, p, point, rotation, rrotation);\n float dist = distanceToEdge(point);\n\n return antiAlias(color, cl, dist);\n}\n","author":"Hewlett-Packard","license":"BSD 3 Clause","description":"The outgoing image curls away like a page, revealing the incoming one","tags":["page","curl","3d"],"params":{},"textures":[],"createdAt":"Wed, 21 Feb 2018 01:13:49 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"Kaleidoscope","paramsTypes":{"speed":"float","angle":"float","power":"float"},"defaultParams":{"speed":1,"angle":1,"power":1.5},"glsl":"// Author: nwoeanhinnogaehr\n// License: MIT\n// Description: A crossfade through a spinning kaleidoscope\n// Tags: kaleidoscope, distort, blend\n\nuniform float speed; // = 1.0\nuniform float angle; // = 1.0\nuniform float power; // = 1.5\n\nvec4 transition(vec2 uv) {\n vec2 p = uv.xy / vec2(1.0).xy;\n vec2 q = p;\n float t = pow(progress, power)*speed;\n p = p -0.5;\n for (int i = 0; i < 7; i++) {\n p = vec2(sin(t)*p.x + cos(t)*p.y, sin(t)*p.y - cos(t)*p.x);\n t += angle;\n p = abs(mod(p, 2.0) - 1.0);\n }\n abs(mod(p, 1.0));\n return mix(\n mix(getFromColor(q), getToColor(q), progress),\n mix(getFromColor(p), getToColor(p), progress), 1.0 - 2.0*abs(progress - 0.5));\n}\n","author":"nwoeanhinnogaehr","license":"MIT","description":"A crossfade through a spinning kaleidoscope","tags":["kaleidoscope","distort","blend"],"params":{"speed":{"type":"float","default":1},"angle":{"type":"float","default":1},"power":{"type":"float","default":1.5}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"LeafWipe","paramsTypes":{},"defaultParams":{},"glsl":"// Author: @Flexi23\n// License: MIT\n// Description: A leaf shape grows from the center to reveal the incoming image\n// Tags: shape, wipe\n\n// inspired by http://www.wolframalpha.com/input/?i=cannabis+curve\n\nvec4 transition (vec2 uv) {\n if(progress == 0.0){\n return getFromColor(uv);\n }\n vec2 leaf_uv = (uv - vec2(0.5))/10./pow(progress,3.5);\n\tleaf_uv.y += 0.35;\n\tfloat r = 0.18;\n\tfloat o = atan(leaf_uv.y, leaf_uv.x);\n return mix(getFromColor(uv), getToColor(uv), 1.-step(1. - length(leaf_uv)+r*(1.+sin(o))*(1.+0.9 * cos(8.*o))*(1.+0.1*cos(24.*o))*(0.9+0.05*cos(200.*o)), 1.));\n}\n","author":"@Flexi23","license":"MIT","description":"A leaf shape grows from the center to reveal the incoming image","tags":["shape","wipe"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"LeftRight","paramsTypes":{},"defaultParams":{},"glsl":"// Author: zhmy\n// License: MIT\n// Description: The outgoing image shrinks away to the left while the incoming one slides in from the right\n// Tags: slide, zoom, horizontal\n\nconst vec4 black = vec4(0.0); // where no image is drawn: transparent\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n vec2 spfr,spto = vec2(-1.);\n\n float size = mix(1.0, 3.0, progress*0.2);\n spto = (uv + vec2(-0.5,-0.5))*vec2(size,size)+vec2(0.5,0.5);\n spfr = (uv - vec2(1.-progress, 0.0));\n if(inBounds(spfr)){\n return getToColor(spfr);\n }else if(inBounds(spto)){\n return getFromColor(spto) * (1.0 - progress);\n } else{\n return black;\n }\n}","author":"zhmy","license":"MIT","description":"The outgoing image shrinks away to the left while the incoming one slides in from the right","tags":["slide","zoom","horizontal"],"params":{},"textures":[],"createdAt":"Thu, 17 Dec 2020 11:50:34 +0800","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"LensFlare","paramsTypes":{"angle":"float","height":"float","intensity":"float","color":"vec3"},"defaultParams":{"angle":-12,"height":0.18,"intensity":1,"color":[0.35,0.6,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: A bright light sweeps across the frame and flares the lens: a long thin horizontal streak, a glowing core and a trail of colored ghost reflections; at its peak the incoming image spreads out from the light under its glare\n// Tags: light, flare, glow, streak\n\n// @range(-90, 90) Angle of the path of the light, in degrees (0 sweeps from left to right)\nuniform float angle; // = -12.0\n// @range(-0.5, 0.5) How far above the center of the frame the light passes\nuniform float height; // = 0.18\n// @range(0, 2) Brightness of the flare\nuniform float intensity; // = 1.0\n// @color Color of the streak and of the glare\nuniform vec3 color; // = vec3(0.35, 0.6, 1.0)\n\nconst int BLOOM_TAPS = 12;\nconst int GHOSTS = 6;\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\nvec4 premultiplied(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\n// the image on screen (premultiplied): the outgoing one, then the incoming one after the cut\nvec4 frame(vec2 st, float m) {\n if (m <= 0.0) return premultiplied(getFromColor(st));\n if (m >= 1.0) return premultiplied(getToColor(st));\n return mix(premultiplied(getFromColor(st)), premultiplied(getToColor(st)), m);\n}\n\n// the light of a pixel (premultiplied): its color above a knee\nvec3 highlight(vec4 c) {\n float lum = dot(c.rgb, vec3(0.2126, 0.7152, 0.0722));\n return c.rgb * smoothstep(0.55, 0.95, lum);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n if (p <= 0.0) return getFromColor(uv);\n if (p >= 1.0) return getToColor(uv);\n\n // 0 at both ends, 1 at the peak\n float env = 4.0 * p * (1.0 - p);\n float peak = pow(env, 24.0);\n // frame coordinates, centered, with square units\n vec2 aspect = vec2(ratio, 1.0);\n vec2 q = (uv - 0.5) * aspect;\n float r = radians(angle);\n vec2 dir = vec2(cos(r), -sin(r));\n vec2 normal = vec2(-dir.y, dir.x);\n // the light crosses the frame, slowing down as it passes the middle\n float t = p - 0.5;\n float travel = 0.5 * (abs(dir.x) * ratio + abs(dir.y)) + 0.3;\n float along = travel * (2.0 * t) * (0.55 + 1.8 * t * t);\n vec2 src = dir * along + normal * height;\n\n vec2 d = q - src;\n float dist = length(d);\n float k = intensity * env;\n\n // the cut, under the glare: the incoming image spreads out from the light in a soft circle,\n // slower as the flare gets dimmer so that it still reads as intended\n float cut = mix(0.2, 0.06, clamp(intensity, 0.0, 1.0));\n float s = clamp((p - 0.5 + cut) / (2.0 * cut), 0.0, 1.0);\n float soft = 0.3;\n float reach = 0.5 * length(aspect) + length(src) + soft;\n float front = s * (reach + soft);\n float m = smoothstep(front, front - soft, dist);\n vec4 base = frame(uv, m);\n\n // the anamorphic streak: long and thin, always horizontal, white at the center and tinted along\n float ax = abs(d.x);\n float ay = abs(d.y);\n float thin = exp(-ay * 140.0) * exp(-ax * 0.7);\n float wide = exp(-ay * 30.0) * exp(-ax * 1.6);\n vec3 tint = color;\n vec3 streak = (thin * mix(vec3(1.0), tint, smoothstep(0.0, 0.3, ax)) + 0.5 * wide * tint) * 3.0;\n\n // the core and its halo\n vec3 core = vec3(1.0, 0.97, 0.92) * exp(-dist * dist * 600.0) * 3.0 + mix(vec3(1.0), tint, 0.5) * exp(-dist * 7.0) * 0.6;\n\n // ghosts on the line from the light through the center of the frame\n vec3 ghosts = vec3(0.0);\n for (int i = 0; i < GHOSTS; i++) {\n float fi = float(i);\n float f = -0.45 + 0.42 * fi + 0.08 * sin(fi * 2.3);\n vec2 g = -src * f;\n float size = 0.025 + 0.06 * fract(fi * 0.618 + 0.2);\n float gd = length(q - g) / size;\n // a soft disc with a brighter rim\n float disc = smoothstep(1.0, 0.8, gd) * (0.35 + 0.65 * smoothstep(0.4, 0.95, gd));\n vec3 hue = mix(tint, vec3(1.0, 0.65, 0.35), fract(fi * 0.53));\n hue = mix(hue, vec3(0.5, 1.0, 0.6), step(4.5, fi) * 0.6);\n ghosts += disc * hue * 0.45;\n }\n\n // the highlights of the image bloom at the peak\n vec3 bloom = vec3(0.0);\n if (peak > 1e-3) {\n float radius = 0.06 * env;\n for (int i = 0; i < BLOOM_TAPS; i++) {\n float fi = float(i);\n float a = fi * 2.39996;\n float rr = radius * sqrt((fi + 0.5) / float(BLOOM_TAPS));\n vec2 o = vec2(cos(a), sin(a)) * rr / aspect;\n bloom += highlight(frame(mirror(uv + o), m));\n }\n bloom /= float(BLOOM_TAPS);\n }\n\n // at the peak, the glare: a wide halo around the light and a light veil over the frame, to hide the cut\n vec3 glare = mix(vec3(1.0), tint, 0.5) * peak * (0.45 + 2.2 * exp(-dist * 3.0));\n\n vec3 light = k * (streak + core + ghosts) + intensity * (bloom * 2.5 * peak + glare);\n light = 1.0 - exp(-light);\n\n // screened over the image; the flare only shows on the image, so transparency is kept\n vec3 c = base.rgb + light * base.a - base.rgb * light;\n if (base.a <= 0.0) return vec4(0.0);\n return vec4(clamp(c / base.a, 0.0, 1.0), base.a);\n}\n","author":"gre","license":"MIT","description":"A bright light sweeps across the frame and flares the lens: a long thin horizontal streak, a glowing core and a trail of colored ghost reflections; at its peak the incoming image spreads out from the light under its glare","tags":["light","flare","glow","streak"],"params":{"angle":{"type":"float","default":-12,"min":-90,"max":90,"description":"Angle of the path of the light, in degrees (0 sweeps from left to right)"},"height":{"type":"float","default":0.18,"min":-0.5,"max":0.5,"description":"How far above the center of the frame the light passes"},"intensity":{"type":"float","default":1,"min":0,"max":2,"description":"Brightness of the flare"},"color":{"type":"vec3","default":[0.35,0.6,1],"color":true,"description":"Color of the streak and of the glare"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 18:52:13 +0100","updatedAt":"Sun, 1 Nov 2026 18:52:13 +0100"},{"name":"LightRays","paramsTypes":{"center":"vec2","drift":"float","reach":"float","threshold":"float","intensity":"float","tint":"vec3"},"defaultParams":{"center":[0.5,0.6],"drift":0.15,"reach":0.6,"threshold":0.65,"intensity":1.5,"tint":[1,0.82,0.55]},"glsl":"// Author: gre\n// License: MIT\n// Description: Shafts of light burst from the highlights of the outgoing image and stream outward from a slowly drifting center; at their peak the incoming image takes over and its own rays shrink back into its highlights\n// Tags: light, glow, rays, radial\n\n// @param Point the rays stream away from, at the middle of the transition\nuniform vec2 center; // = vec2(0.5, 0.6)\n// @range(0, 0.5) How far the center drifts during the transition, from left to right\nuniform float drift; // = 0.15\n// @range(0, 1) Length of the rays at the peak, as a fraction of their distance to the center\nuniform float reach; // = 0.6\n// @range(0, 0.8) Brightness above which the image casts rays\nuniform float threshold; // = 0.65\n// @range(0, 4) Brightness of the rays\nuniform float intensity; // = 1.5\n// @color Tint of the rays, toward their ends\nuniform vec3 tint; // = vec3(1.0, 0.82, 0.55)\n\nconst int TAPS = 20;\n// number of shafts around the center\nconst float SHAFTS = 23.0;\nconst float PI = 3.141592653589793;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\n// smooth noise around the center, wrapping over a full turn (t in 0..1)\nfloat shaftNoise(float t, float n, float seed) {\n float x = t * n;\n float i = floor(x);\n float f = x - i;\n float a = hash12(vec2(mod(i, n), seed));\n float b = hash12(vec2(mod(i + 1.0, n), seed));\n return mix(a, b, f * f * (3.0 - 2.0 * f));\n}\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// the light of a pixel (premultiplied): its color above the threshold\nvec3 glow(vec4 c, float knee) {\n float lum = dot(c.rgb, vec3(0.2126, 0.7152, 0.0722));\n return c.rgb * c.a * smoothstep(knee, knee + 0.2, lum);\n}\n\n// the light at a ray tap: one image, or both during the short switch\nvec3 light(vec2 st, float knee, float m) {\n if (m <= 0.0) return glow(getFromColor(st), knee);\n if (m >= 1.0) return glow(getToColor(st), knee);\n return mix(glow(getFromColor(st), knee), glow(getToColor(st), knee), m);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n // the rays grow on the outgoing image, and shrink back into the incoming one\n float amount = p < 0.5 ? smoothstep(0.0, 0.5, p) : 1.0 - smoothstep(0.5, 1.0, p);\n float peak = amount * amount * amount;\n float m = smoothstep(0.46, 0.54, p);\n vec4 fromColor = getFromColor(uv);\n vec4 toColor = getToColor(uv);\n if (amount <= 0.0) return m < 0.5 ? fromColor : toColor;\n\n // the rays stream away from a center drifting slowly across the frame\n vec2 origin = center + vec2(drift * (p - 0.5), 0.0);\n float len = reach * amount;\n // more and more of the image catches the light as the rays grow\n float knee = mix(threshold, 0.75 * threshold, peak);\n // a small shift of the taps, under their spacing, blends them into smooth shafts;\n // hashed by integer cell so that every GPU computes the same shift\n float jitter = hash12(floor(uv * vec2(ratio, 1.0) * 997.0));\n\n // the light gathered on the way to the center, fading with the distance it travels\n vec3 rays = vec3(0.0);\n float total = 0.0;\n for (int i = 0; i < TAPS; i++) {\n float s = (float(i) + jitter) / float(TAPS);\n float w = exp(-2.0 * s);\n // warm white near the sources, tinted further along the rays\n vec3 hue = mix(vec3(1.0), tint, smoothstep(0.0, 0.6, s));\n rays += w * hue * light(mirror(mix(uv, origin, s * len)), knee, m);\n total += w;\n }\n // the light breaks into shafts of different strengths, slowly turning\n vec2 d = (uv - origin) * vec2(ratio, 1.0);\n // atan is undefined at the center itself\n float turn = length(d) > 1e-6 ? atan(d.y, d.x) / (2.0 * PI) + 0.5 : 0.0;\n float shafts = 0.6 * shaftNoise(fract(turn + 0.03 * p), SHAFTS, 1.0) + 0.4 * shaftNoise(fract(turn - 0.05 * p), 2.0 * SHAFTS + 1.0, 7.0);\n // merged back into a soft glow close to the center, where the shafts would meet in a point\n rays *= mix(1.0, mix(0.2, 1.6, smoothstep(0.15, 0.85, shafts)), smoothstep(0.0, 0.3, length(d)));\n rays *= intensity * amount * (1.0 + 3.0 * peak) / total;\n // compressed, so that bright areas never flatten into white\n rays = 0.9 * (1.0 - exp(-rays));\n\n // the image stays sharp, with a slight lift of the exposure at the peak; the rays are screened\n // on top of its colors and add nothing to its alpha\n vec4 c = mix(vec4(fromColor.rgb * fromColor.a, fromColor.a), vec4(toColor.rgb * toColor.a, toColor.a), m);\n if (c.a <= 0.0) return vec4(0.0);\n vec3 base = min(c.rgb / c.a * (1.0 + 0.2 * peak), 1.0);\n return vec4(base + rays - base * rays, c.a);\n}\n","author":"gre","license":"MIT","description":"Shafts of light burst from the highlights of the outgoing image and stream outward from a slowly drifting center; at their peak the incoming image takes over and its own rays shrink back into its highlights","tags":["light","glow","rays","radial"],"params":{"center":{"type":"vec2","default":[0.5,0.6],"description":"Point the rays stream away from, at the middle of the transition"},"drift":{"type":"float","default":0.15,"min":0,"max":0.5,"description":"How far the center drifts during the transition, from left to right"},"reach":{"type":"float","default":0.6,"min":0,"max":1,"description":"Length of the rays at the peak, as a fraction of their distance to the center"},"threshold":{"type":"float","default":0.65,"min":0,"max":0.8,"description":"Brightness above which the image casts rays"},"intensity":{"type":"float","default":1.5,"min":0,"max":4,"description":"Brightness of the rays"},"tint":{"type":"vec3","default":[1,0.82,0.55],"color":true,"description":"Tint of the rays, toward their ends"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 20:30:21 +0100","updatedAt":"Mon, 2 Nov 2026 20:30:21 +0100"},{"name":"LightStreaks","paramsTypes":{"reach":"float","threshold":"float","intensity":"float","tint":"vec3","blur":"float","vertical":"bool"},"defaultParams":{"reach":0.6,"threshold":0.7,"intensity":1.5,"tint":[0.45,0.7,1],"blur":0.1,"vertical":false},"glsl":"// Author: gre\n// License: MIT\n// Description: The highlights of the outgoing image flare into long horizontal (or vertical) lens streaks while it smears with motion blur; at the peak the incoming image takes over and its streaks shrink back into its highlights as it sharpens\n// Tags: light, flare, motion-blur, glow\n\n// @range(0, 2) Length of the streaks at the peak, in frame widths\nuniform float reach; // = 0.6\n// @range(0, 1) Brightness above which the image flares\nuniform float threshold; // = 0.7\n// @range(0, 4) Brightness of the streaks\nuniform float intensity; // = 1.5\n// @color Tint of the streaks, toward their ends\nuniform vec3 tint; // = vec3(0.45, 0.7, 1.0)\n// @range(0, 0.5) Length of the motion blur at the peak\nuniform float blur; // = 0.1\n// @param Streak and smear vertically instead\nuniform bool vertical; // = false\n\nconst int BLUR_TAPS = 6;\n// taps on each side of a streak, spaced further and further apart along its falloff\nconst int STREAK_TAPS = 11;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// the image on screen: the outgoing one, then the incoming one after a short switch\nvec4 frame(vec2 st, float m) {\n if (m <= 0.0) return getFromColor(st);\n if (m >= 1.0) return getToColor(st);\n return mix(getFromColor(st), getToColor(st), m);\n}\n\n// the light of a pixel: its color above the threshold\nvec3 glow(vec4 c, float knee) {\n float lum = dot(c.rgb, vec3(0.2126, 0.7152, 0.0722));\n return c.rgb * c.a * smoothstep(knee, knee + 0.2, lum);\n}\n\n// one image only, for the blur and streak taps: during the switch, every other tap reads each image\nvec4 light(vec2 st, float m, bool incoming) {\n if (m <= 0.0) return getFromColor(st);\n if (m >= 1.0) return getToColor(st);\n return incoming ? getToColor(st) : getFromColor(st);\n}\n\nfloat lightWeight(float m, bool incoming) {\n if (m <= 0.0 || m >= 1.0) return 1.0;\n return incoming ? 2.0 * m : 2.0 * (1.0 - m);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n // eased in on the outgoing side, and quickly out after the switch so the incoming image lands sharp\n float amount = p < 0.5 ? smoothstep(0.0, 0.5, p) : pow(2.0 - 2.0 * p, 3.0);\n float peak = amount * amount * amount;\n float m = smoothstep(0.44, 0.56, p);\n vec2 axis = vertical ? vec2(0.0, 1.0) : vec2(1.0, 0.0);\n // a small shift of the taps, under their spacing, blends their copies into a smooth smear;\n // hashed by integer cell so that every GPU computes the same shift\n float jitter = hash12(floor(uv * vec2(ratio, 1.0) * 997.0)) - 0.5;\n\n // the image smears along the streaks (a tent filter)\n float smear = blur * amount;\n vec3 base = vec3(0.0);\n float alpha = 0.0;\n float total = 0.0;\n for (int i = 0; i < BLUR_TAPS; i++) {\n float t = (float(i) + 0.5 + jitter) / float(BLUR_TAPS) - 0.5;\n float w = 1.0 - abs(t);\n total += w;\n bool incoming = mod(float(i), 2.0) > 0.5;\n w *= lightWeight(m, incoming);\n vec4 c = light(mirror(uv + axis * t * smear), m, incoming);\n base += w * c.rgb * c.a;\n alpha += w * c.a;\n }\n base /= total;\n alpha /= total;\n\n // the streaks: the light above the threshold, spread along the axis with an exponential falloff\n float falloff = 0.25 * reach * amount;\n float knee = mix(threshold, 0.8 * threshold, peak);\n vec3 streak = glow(frame(uv, m), knee);\n float weights = 1.0;\n for (int k = 1; k <= STREAK_TAPS; k++) {\n // the distance in units of the falloff, and the stretch of the streak this tap stands for\n float d = exp(0.14 * (float(k) + 0.8 * jitter)) - 1.0;\n float span = 0.14 * (d + 1.0);\n // white at the source, tinted along the streak, red fading first so the tails turn blue and violet\n vec3 hue = mix(vec3(1.0), tint, smoothstep(0.0, 0.8, d));\n hue *= exp(-d * vec3(0.6, 0.2, -0.15));\n float w = exp(-d) * span * 4.0;\n bool incoming = mod(float(k), 2.0) > 0.5;\n vec4 ahead = light(mirror(uv + axis * d * falloff), m, incoming);\n vec4 behind = light(mirror(uv - axis * d * falloff), m, !incoming);\n streak += w * hue * (glow(ahead, knee) * lightWeight(m, incoming) + glow(behind, knee) * lightWeight(m, !incoming));\n weights += 2.0 * w;\n }\n streak *= intensity * amount * (0.6 + 2.4 * peak) * 2.0 / weights;\n // compressed, so that bright skies never flatten into white\n streak = 0.85 * (1.0 - exp(-streak));\n\n // a lift of the exposure at the peak, then the streaks screened on top (premultiplied colors)\n base = min(base * (1.0 + 0.2 * peak), vec3(alpha));\n vec3 color = base + streak - base * streak;\n float a = alpha + max(streak.r, max(streak.g, streak.b)) * (1.0 - alpha);\n return vec4(clamp(color / max(a, 1e-5), 0.0, 1.0), a);\n}\n","author":"gre","license":"MIT","description":"The highlights of the outgoing image flare into long horizontal (or vertical) lens streaks while it smears with motion blur; at the peak the incoming image takes over and its streaks shrink back into its highlights as it sharpens","tags":["light","flare","motion-blur","glow"],"params":{"reach":{"type":"float","default":0.6,"min":0,"max":2,"description":"Length of the streaks at the peak, in frame widths"},"threshold":{"type":"float","default":0.7,"min":0,"max":1,"description":"Brightness above which the image flares"},"intensity":{"type":"float","default":1.5,"min":0,"max":4,"description":"Brightness of the streaks"},"tint":{"type":"vec3","default":[0.45,0.7,1],"color":true,"description":"Tint of the streaks, toward their ends"},"blur":{"type":"float","default":0.1,"min":0,"max":0.5,"description":"Length of the motion blur at the peak"},"vertical":{"type":"bool","default":false,"description":"Streak and smear vertically instead"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 23:20:50 +0100","updatedAt":"Sat, 31 Oct 2026 23:20:50 +0100"},{"name":"LightWipe","paramsTypes":{"direction":"vec2","width":"float","intensity":"float","color":"vec3"},"defaultParams":{"direction":[1,-0.35],"width":0.04,"intensity":1.2,"color":[1,0.86,0.66]},"glsl":"// Author: gre\n// License: MIT\n// Description: A band of intense light sweeps across the frame like a glint on glass, blooming the highlights of both images, and leaves the incoming image behind it\n// Tags: wipe, light, glow, glint\n\n// @param Direction the band of light moves toward\nuniform vec2 direction; // = vec2(1.0, -0.35)\n// @range(0.005, 0.2) Width of the bright core of the band, in frame heights\nuniform float width; // = 0.04\n// @range(0, 3) Brightness of the light\nuniform float intensity; // = 1.2\n// @color Tint of the light, toward the edges of the band (its core burns white)\nuniform vec3 color; // = vec3(1.0, 0.86, 0.66)\n\nconst int TAPS = 12;\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// a gentle ease in and out, which does not linger at the ends\nfloat ease(float t) {\n return 0.5 * (t + t * t * (3.0 - 2.0 * t));\n}\n\n// the image on screen at a point: the outgoing one ahead of the switch, the incoming one behind it\n// (both always sampled, so that no texture read sits in a branch that differs between pixels)\nvec4 frame(vec2 st, float m) {\n return mix(getFromColor(st), getToColor(st), m);\n}\n\n// the light of a pixel (premultiplied): its color above a soft knee\nvec3 highlight(vec4 c) {\n float lum = dot(c.rgb, vec3(0.2126, 0.7152, 0.0722));\n return c.rgb * c.a * smoothstep(0.45, 1.0, lum);\n}\n\nvec4 transition(vec2 uv) {\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n // half extent of the frame along the direction\n float e = 0.5 * (abs(dir.x) * ratio + abs(dir.y));\n float w = max(width, 0.001);\n float s = 0.35 * w;\n // the band starts and ends outside of the frame, with the switch out of sight\n float margin = s + 2.0 * w;\n float pos = -e - margin + 2.0 * (e + margin) * ease(progress);\n // signed distance to the middle of the band: < 0 has been swept\n float d = dot(p, dir) - pos;\n float m = 1.0 - smoothstep(-s, s, d);\n\n // the light ignites as it enters and dies away as it leaves: exactly none at both ends\n float env = smoothstep(0.0, 0.2, progress) * (1.0 - smoothstep(0.8, 1.0, progress));\n // a hot core, a thinner glint trailing behind it, and a wide soft halo\n float core = exp(-d * d / (w * w));\n float g = (d + 2.2 * w) / (0.3 * w);\n float glint = 0.45 * exp(-g * g);\n float halo = 0.35 * exp(-abs(d) / (5.0 * w));\n float band = (core + glint + halo) * env * intensity;\n // the moving glint itself, where the highlights bloom\n float glow = (core + glint) * env * intensity;\n\n vec4 c = frame(uv, m);\n\n // the highlights near the band bloom along it: taps across the band, sampled where the band is brightest\n vec3 bloom = vec3(0.0);\n // spread over the band, short enough that its taps blend into a smooth glow\n float spread = min(3.0 * w, 0.12);\n for (int i = 0; i < TAPS; i++) {\n float t = (float(i) + 0.5) / float(TAPS) * 2.0 - 1.0;\n vec2 st = mirror((p + dir * (t * spread)) / vec2(ratio, 1.0) + 0.5);\n // the image on screen where the tap reads, on the same side of the switch\n float dq = dot((st - 0.5) * vec2(ratio, 1.0), dir) - pos;\n bloom += (1.0 - abs(t)) * highlight(frame(st, 1.0 - smoothstep(-s, s, dq)));\n }\n // the sum of the tent weights\n bloom /= 0.5 * float(TAPS);\n\n // white at the heart of the core, tinted toward the edges of the band\n vec3 hue = mix(color, vec3(1.0), core * core);\n float lum = dot(c.rgb, vec3(0.2126, 0.7152, 0.0722));\n // the light lifts the image, the bright parts more: exposure that rolls off softly to white, never clipping\n vec3 light = hue * band * (0.3 + 0.9 * lum) + hue * bloom * glow * 4.0 + hue * core * env * intensity * 1.6;\n vec3 rgb = 1.0 - (1.0 - c.rgb) * exp(-light);\n // light adds to the image, not to its alpha\n return vec4(rgb, c.a);\n}\n","author":"gre","license":"MIT","description":"A band of intense light sweeps across the frame like a glint on glass, blooming the highlights of both images, and leaves the incoming image behind it","tags":["wipe","light","glow","glint"],"params":{"direction":{"type":"vec2","default":[1,-0.35],"description":"Direction the band of light moves toward"},"width":{"type":"float","default":0.04,"min":0.005,"max":0.2,"description":"Width of the bright core of the band, in frame heights"},"intensity":{"type":"float","default":1.2,"min":0,"max":3,"description":"Brightness of the light"},"color":{"type":"vec3","default":[1,0.86,0.66],"color":true,"description":"Tint of the light, toward the edges of the band (its core burns white)"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 12:39:22 +0100","updatedAt":"Mon, 2 Nov 2026 12:39:22 +0100"},{"name":"LightningFlash","paramsTypes":{"bolts":"int","strike":"float","seed":"float","color":"vec3","glow":"float","flashes":"int"},"defaultParams":{"bolts":2,"strike":0.55,"seed":0,"color":[0.75,0.85,1],"glow":0.5,"flashes":3},"glsl":"// Author: gre\n// License: MIT\n// Description: Forked lightning bolts crack down from the top of the frame, the screen flashes white in a few stuttering strobes, and the incoming image appears lit by the last flickers as they fade out\n// Tags: light, flash, weather, strobe\n\n// @range(1, 3, 1) Number of bolts: the main one strikes the ground, the others fork out higher in the sky\nuniform int bolts; // = 2\n// @range(0, 1) Where the main bolt strikes, from the left (0) to the right (1) of the frame\nuniform float strike; // = 0.55\n// @range(0, 100, 1) Changes the shape of the bolts\nuniform float seed; // = 0.0\n// @color Color of the light, added to the images\nuniform vec3 color; // = vec3(0.75, 0.85, 1.0)\n// @range(0, 1) Size and brightness of the glow around the bolts\nuniform float glow; // = 0.5\n// @range(1, 4, 1) Number of strobes; the images switch during the brightest one\nuniform int flashes; // = 3\n\n// the bolts crack down until this time, then the strobes start\nconst float LEADER = 0.3;\n\nfloat hash(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// a value noise that is linear between its cells: a jagged polyline, centered on 0\nfloat jag(float s, float k) {\n float i = floor(s);\n return mix(hash(vec2(i, k)), hash(vec2(i + 1.0, k)), fract(s)) - 0.5;\n}\n\n// the zigzag of a bolt around its straight line, at height y (narrower in a portrait frame)\nfloat zigzag(float y, float k) {\n return min(ratio, 1.0) * (0.15 * jag(y * 5.0, k) + 0.06 * jag(y * 13.0, k + 1.0) + 0.03 * jag(y * 31.0, k + 2.0) + 0.012 * jag(y * 67.0, k + 3.0));\n}\n\n// the x of a bolt at height y: from x0 at the top (y = 1) to x1 at its end (y = y1),\n// given z0 and z1, its zigzag at both ends\nfloat boltX(float y, float x0, float x1, float y1, float z0, float z1, float k) {\n float t = (1.0 - y) / (1.0 - y1);\n return mix(x0 - z0, x1 - z1, t) + zigzag(y, k);\n}\n\n// the x of a branch at height y: it leaves its bolt at (xb, yb), where its own zigzag is zb,\n// and drifts sideways by dir per unit of height\nfloat branchX(float y, float xb, float yb, float zb, float dir, float k) {\n return xb + dir * (yb - y) + 0.6 * (zigzag(y, k) - zb);\n}\n\n// distance to a curve x = f(y), knowing its x and its slope at the pixel's height,\n// and how far above or below its ends the pixel is; the slope only corrects the distance\n// close to the curve, so the glow farther away does not streak along the zigzags\nfloat curveDist(vec2 q, float x, float slope, float outside) {\n float dx = abs(q.x - x);\n float d = dx * mix(inversesqrt(1.0 + slope * slope), 1.0, smoothstep(0.0, 0.08, dx));\n return length(vec2(d, max(outside, 0.0)));\n}\n\n// a strobe at time t0: a quick rise, a plateau of length hold, then a decay\nfloat pulse(float p, float t0, float hold, float decay) {\n float x = p - t0;\n if (x < 0.0) return smoothstep(-0.012, 0.0, x);\n return exp(-max(x - hold, 0.0) / decay);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n vec2 q = vec2(uv.x * ratio, uv.y);\n // (seeds far apart, so that neighboring seeds share no hash keys)\n float k0 = floor(seed) * 61.0;\n int nb = bolts < 1 ? 1 : (bolts > 3 ? 3 : bolts);\n int nf = flashes < 1 ? 1 : (flashes > 4 ? 4 : flashes);\n // the images switch during the brightest strobe, the second one (or the only one)\n int cut = nf > 1 ? 1 : 0;\n\n // the strobes, a bit irregular; the bolts are lit by all of them, the screen mostly by the brightest\n float flash = 0.0;\n float lit = 0.0;\n float tCut = LEADER;\n float tLast = LEADER;\n float t = LEADER;\n for (int i = 0; i < 4; i++) {\n if (i < nf) {\n bool isCut = i == cut;\n float amp = isCut ? 1.0 : (i < cut ? 0.55 : 0.7 * pow(0.75, float(i - cut - 1)));\n float s = amp * pulse(p, t, isCut ? 0.025 : 0.004, isCut ? 0.03 : 0.022);\n flash = max(flash, s);\n lit = max(lit, pulse(p, t, 0.01, 0.045));\n if (isCut) tCut = t;\n tLast = t;\n t += (isCut ? 0.12 : 0.08) + 0.04 * hash(vec2(float(i), k0 + 5.0));\n }\n }\n // the stutter: the light jumps from one level to another a few times per strobe\n float stutter = mix(0.7, 1.0, hash(vec2(floor(p * 70.0), k0 + 9.0)));\n flash *= stutter;\n // the brightest strobe whites the screen out while the images switch\n float whiteout = pulse(p, tCut, 0.025, 0.02);\n // then a few last flickers, fading out\n float tail = p > tLast ? exp(-(p - tLast) / 0.1) * smoothstep(0.03, 0.06, p - tLast) : 0.0;\n flash = max(flash, 0.35 * tail * step(0.45, hash(vec2(floor(p * 40.0), k0 + 13.0))));\n\n // the bolts crack down in a few jumps while faintly lit, then light up with the strobes and go out\n float grow = clamp(p / LEADER, 0.0, 1.0);\n grow = (floor(grow * 7.0) + smoothstep(0.0, 1.0, fract(grow * 7.0))) / 7.0;\n float faint = 0.5 * mix(0.6, 1.0, hash(vec2(floor(p * 50.0), k0 + 11.0)));\n float boltLight = p < LEADER ? faint * smoothstep(0.0, 0.06, p) : max(lit * stutter, faint * exp(-(p - LEADER) / 0.12));\n boltLight = max(boltLight, 0.6 * flash * tail);\n boltLight *= 1.0 - smoothstep(tLast + 0.1, tLast + 0.3, p);\n\n // the bolts: the main one strikes the ground at strike, the others stop in the sky\n float core = 0.0;\n float halo = 0.0;\n float near = 10.0;\n bool lightsOn = boltLight > 0.0 || flash > 0.0;\n for (int b = 0; b < 3; b++) {\n if (b < nb && lightsOn) {\n float fb = float(b);\n float kb = k0 + fb * 17.0;\n float x1 = strike * ratio;\n float y1 = -0.05;\n float bright = 1.0;\n if (b > 0) {\n // the second bolt goes to the roomier side, the third to the other side if there is room there\n float roomy = strike < 0.5 ? 1.0 : -1.0;\n bool cramped = min(strike, 1.0 - strike) < 0.25;\n float side = b == 1 || cramped ? roomy : -roomy;\n float dist = b == 2 && cramped ? 0.5 : 0.22;\n x1 = clamp(x1 + side * ratio * (dist + 0.12 * hash(vec2(fb, kb))), 0.08 * ratio, 0.92 * ratio);\n y1 = 0.25 + 0.25 * hash(vec2(fb, kb + 1.0));\n bright = 0.7;\n }\n float x0 = clamp(x1 + (hash(vec2(fb, kb + 2.0)) - 0.5) * 0.5 * min(ratio, 1.0), 0.1 * ratio, 0.9 * ratio);\n // the tip of the bolt while it cracks down\n float tip = mix(1.02, y1, grow);\n // (the slope is measured over a few pixels, so it changes smoothly at the corners)\n float e = 0.01;\n float z0 = zigzag(1.0, kb);\n float z1 = zigzag(y1, kb);\n float x = boltX(q.y, x0, x1, y1, z0, z1, kb);\n float slope = (boltX(q.y + e, x0, x1, y1, z0, z1, kb) - boltX(q.y - e, x0, x1, y1, z0, z1, kb)) / (2.0 * e);\n float d = curveDist(q, x, slope, max(max(y1, tip) - q.y, q.y - 1.05));\n near = min(near, d);\n float w = 0.003 * mix(1.0, 0.7, fb / 2.0);\n core += bright * exp(-d * d / (w * w));\n halo += bright * (0.7 * exp(-d * 24.0) + 0.25 * exp(-d * 6.0));\n // three branches, leaving the bolt on either side and fading toward their ends\n for (int j = 0; j < 3; j++) {\n float fj = float(j);\n float kj = kb + 3.0 + fj * 5.0;\n float tb = 0.12 + 0.2 * fj + 0.15 * hash(vec2(fj, kj));\n float yb = mix(1.0, y1, tb);\n float len = (0.3 + 0.25 * hash(vec2(fj, kj + 1.0))) * (1.0 - tb) * (1.0 - y1);\n float dir = (j == 1 ? -1.0 : 1.0) * (0.2 + 0.45 * hash(vec2(fj, kj + 2.0))) * min(ratio, 1.0);\n float xb = boltX(yb, x0, x1, y1, z0, z1, kb);\n float zb = zigzag(yb, kj);\n float bx = branchX(q.y, xb, yb, zb, dir, kj);\n float bs = (branchX(q.y + e, xb, yb, zb, dir, kj) - branchX(q.y - e, xb, yb, zb, dir, kj)) / (2.0 * e);\n float bd = curveDist(q, bx, bs, max(max(yb - len, tip) - q.y, q.y - yb));\n near = min(near, bd);\n float along = clamp((yb - q.y) / len, 0.0, 1.0);\n float fade = bright * (1.0 - 0.8 * along);\n float bw = w * mix(0.8, 0.4, along);\n core += fade * exp(-bd * bd / (bw * bw));\n halo += fade * 0.6 * (0.7 * exp(-bd * 24.0) + 0.25 * exp(-bd * 6.0));\n }\n }\n }\n\n // the outgoing image gives way to the incoming one at the brightest strobe, hidden by it\n float m = smoothstep(tCut, tCut + 0.025, p);\n vec4 c = vec4(0.0);\n if (m < 1.0) {\n vec4 a = getFromColor(uv);\n c += (1.0 - m) * vec4(a.rgb * a.a, a.a);\n }\n if (m > 0.0) {\n vec4 a = getToColor(uv);\n c += m * vec4(a.rgb * a.a, a.a);\n }\n if (c.a <= 0.0) return vec4(0.0);\n vec3 col = c.rgb / c.a;\n\n // the effect fades in at the start and is gone at the end\n float live = smoothstep(0.0, 0.03, p) * (1.0 - smoothstep(0.85, 1.0, p));\n // the sky darkens a little as the storm builds, then the strobes overexpose the image,\n // more around the bolts, and the bolts glow over it\n float dim = 0.4 * smoothstep(0.0, LEADER, p) * (1.0 - smoothstep(tCut, tLast + 0.15, p));\n float f = flash * mix(0.6 + 0.4 * exp(-near * 4.0), 1.0, smoothstep(0.6, 1.0, flash));\n col *= 1.0 - dim * live;\n col = col * (1.0 + 2.5 * f * live) + color * (1.1 * f * live);\n float g = 0.4 + 1.2 * glow;\n vec3 light = mix(color, vec3(1.0), 0.75) * min(core, 1.5) * 1.6 + color * g * halo;\n col += light * boltLight * live;\n col = mix(col, vec3(1.0), 0.92 * whiteout * live);\n return vec4(clamp(col, 0.0, 1.0), c.a);\n}\n","author":"gre","license":"MIT","description":"Forked lightning bolts crack down from the top of the frame, the screen flashes white in a few stuttering strobes, and the incoming image appears lit by the last flickers as they fade out","tags":["light","flash","weather","strobe"],"params":{"bolts":{"type":"int","default":2,"min":1,"max":3,"step":1,"description":"Number of bolts: the main one strikes the ground, the others fork out higher in the sky"},"strike":{"type":"float","default":0.55,"min":0,"max":1,"description":"Where the main bolt strikes, from the left (0) to the right (1) of the frame"},"seed":{"type":"float","default":0,"min":0,"max":100,"step":1,"description":"Changes the shape of the bolts"},"color":{"type":"vec3","default":[0.75,0.85,1],"color":true,"description":"Color of the light, added to the images"},"glow":{"type":"float","default":0.5,"min":0,"max":1,"description":"Size and brightness of the glow around the bolts"},"flashes":{"type":"int","default":3,"min":1,"max":4,"step":1,"description":"Number of strobes; the images switch during the brightest one"}},"textures":[],"createdAt":"Thu, 5 Nov 2026 11:34:09 +0100","updatedAt":"Thu, 5 Nov 2026 11:34:09 +0100"},{"name":"LiquidFill","paramsTypes":{"direction":"vec2","amplitude":"float","waves":"float","highlight":"vec4","refraction":"float","bubbles":"float"},"defaultParams":{"direction":[0,1],"amplitude":0.06,"waves":1.5,"highlight":[1,1,1,0.8],"refraction":0.03,"bubbles":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The incoming image rises over the outgoing one like liquid filling a glass, its surface sloshing in waves, lit by a bright meniscus line, bending the image just below it, with a few bubbles rising through it\n// Tags: liquid, water, wave, directional, reveal\n\n// @param Direction the liquid rises toward\nuniform vec2 direction; // = vec2(0.0, 1.0)\n// @range(0, 0.3) Height of the waves on the surface, in frame heights\nuniform float amplitude; // = 0.06\n// @range(0.5, 6) Number of waves across the frame\nuniform float waves; // = 1.5\n// @color Color of the bright line along the surface and the rims of the bubbles (its alpha is its strength)\nuniform vec4 highlight; // = vec4(1.0, 1.0, 1.0, 0.8)\n// @range(0, 0.1) How much the incoming image is bent just below the surface\nuniform float refraction; // = 0.03\n// @range(0, 1) How many bubbles rise through the liquid\nuniform float bubbles; // = 0.5\n\nconst float PI = 3.141592653589793;\n// half width of the antialiased edges, in frame heights\nconst float AA = 0.0015;\n// width of the meniscus line, in frame heights\nconst float LINE = 0.006;\n// size of the cells the bubbles are scattered in, in frame heights\nconst float CELL = 0.08;\n\nfloat hash (vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// height of the surface above its mean level at x (across the frame, from -1 to 1), between -1 and 1:\n// a slosh from side to side and a smaller wave running along it\nfloat surface (float x, float t) {\n float k = PI * max(waves, 0.01);\n return 0.6 * sin(k * x + 0.5 * PI) * cos(2.0 * PI * 1.3 * t)\n + 0.4 * sin(1.7 * k * x - 9.0 * t + 1.3);\n}\n\nvec4 transition (vec2 uv) {\n vec4 a = getFromColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return getToColor(uv);\n\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(0.0, 1.0);\n vec2 across = vec2(-dir.y, dir.x);\n // measured in square pixels, so the waves and bubbles are not stretched\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n // half extents of the frame along the direction and across it\n float e = 0.5 * (abs(dir.x) * ratio + abs(dir.y));\n float w = 0.5 * (abs(dir.y) * ratio + abs(dir.x));\n float d = dot(p, dir);\n float x = dot(p, across);\n float t = progress;\n // the liquid moves most in the middle of the transition and settles at the ends\n float stir = sin(PI * t);\n float amp = max(amplitude, 0.0) * (0.35 + 0.65 * stir);\n // the surface starts fully below the frame and ends fully above it, waves and meniscus included\n float margin = max(amplitude, 0.0) + 2.0 * LINE + AA;\n float mean = mix(-e - margin, e + margin, mix(t, t * t * (3.0 - 2.0 * t), 0.5));\n float level = mean + amp * surface(x / w, t);\n // > 0 below the surface, in the liquid\n float depth = level - d;\n float m = smoothstep(-AA, AA, depth);\n\n // the incoming image is bent by the waves just below the surface, less and less deeper down\n float bend = refraction * stir * exp(-max(depth, 0.0) / 0.06);\n vec2 offset = bend * (dir * sin(18.0 * x - 7.0 * t) + across * cos(13.0 * x + 5.0 * t));\n vec4 b = getToColor(clamp(uv + offset / vec2(ratio, 1.0), 0.0, 1.0));\n\n // bubbles rise in columns through the liquid, carried up with it and rising faster still\n float glow = 0.0;\n float rise = mean + 0.5 * t;\n vec2 bq = vec2(x, d - rise) / CELL;\n vec2 cell = floor(bq);\n float hs = hash(cell + 7.1);\n float r = (0.12 + 0.18 * hash(cell + 3.7)) * stir;\n float px = AA / CELL;\n if (hs < bubbles * 0.6 && r > px) {\n // placed so that it stays inside its cell, wobble and soft edge included\n vec2 c = cell + 0.5 + (0.42 - r - px) * (vec2(hash(cell + 1.3), hash(cell + 9.4)) * 2.0 - 1.0);\n // a slight wobble as it rises\n c.x += 0.08 * sin(6.0 * t + 6.28 * hs);\n float dist = length(bq - c);\n // its rim, and a small glint near its top\n float rim = smoothstep(0.7 * r - px, 0.7 * r + px, dist) * (1.0 - smoothstep(r - px, r + px, dist));\n float glint = 1.0 - smoothstep(0.25 * r - px, 0.25 * r + px, length(bq - c - 0.45 * r * vec2(-0.7, 0.7)));\n // only in the liquid, and fading out as it nears the surface\n glow = max(rim * 0.6, glint) * smoothstep(0.0, 0.05, depth) * stir;\n }\n // the meniscus: a bright line along the surface, on the liquid side\n float line = 1.0 - smoothstep(LINE - AA, LINE + AA, abs(depth - LINE));\n line += 0.35 * stir * exp(-max(depth, 0.0) / 0.03) * m;\n float light = highlight.a * clamp(max(line, glow), 0.0, 1.0) * (0.4 + 0.6 * stir);\n b.rgb = mix(b.rgb, highlight.rgb, light);\n\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The incoming image rises over the outgoing one like liquid filling a glass, its surface sloshing in waves, lit by a bright meniscus line, bending the image just below it, with a few bubbles rising through it","tags":["liquid","water","wave","directional","reveal"],"params":{"direction":{"type":"vec2","default":[0,1],"description":"Direction the liquid rises toward"},"amplitude":{"type":"float","default":0.06,"min":0,"max":0.3,"description":"Height of the waves on the surface, in frame heights"},"waves":{"type":"float","default":1.5,"min":0.5,"max":6,"description":"Number of waves across the frame"},"highlight":{"type":"vec4","default":[1,1,1,0.8],"color":true,"description":"Color of the bright line along the surface and the rims of the bubbles (its alpha is its strength)"},"refraction":{"type":"float","default":0.03,"min":0,"max":0.1,"description":"How much the incoming image is bent just below the surface"},"bubbles":{"type":"float","default":0.5,"min":0,"max":1,"description":"How many bubbles rise through the liquid"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:12:38 +0100","updatedAt":"Wed, 4 Nov 2026 20:12:38 +0100"},{"name":"LissajousTiles","paramsTypes":{"speed":"float","freq":"vec2","offset":"float","zoom":"float","fade":"float"},"defaultParams":{"speed":0.5,"freq":[2,3],"offset":2,"zoom":0.8,"fade":3},"glsl":"// Author: Boundless <info@boundless-beta.com>\n// License: MIT\n// Description: The image breaks into a grid of tiles that swirl along Lissajous curves, in a Scanimate style, and flip one by one to the incoming image before settling back\n// Tags: tiles, grid, motion, retro\n// <3\n\n// @param Speed of the tiles along their curves\nuniform float speed; // = 0.5;\n// @param Number of loops of the curve, horizontally and vertically\nuniform vec2 freq; // = vec2(2.,3.);\n// @param Extra vertical speed, which bends the curve\nuniform float offset; // = 2.;\n// @range(0, 2) Size of the curve, relative to the image\nuniform float zoom; // = 0.8;\n// @range(0, 10) Spread of the tile-by-tile switch to the incoming image\nuniform float fade; // = 3.;\n\nconst vec2 grid = vec2(10.,10.); // grid size\nconst float TAU = 6.283185307;\n\nvec4 transition (vec2 uv) {\n // The tiles leave and come back with zero speed, so the image does not break apart in the first frame\n float p = 1.-pow(1.-smoothstep(0.,1.,1.-abs(1.-2.*progress)),3.); // transition curve\n // Find the last tile that covers this pixel (looping backwards, the first hit), then sample the images once\n for (float jBig = grid.y-1.; jBig >= 0.; jBig--) {\n for (float iBig = grid.x-1.; iBig >= 0.; iBig--) {\n float i = iBig/grid.x;\n float j = jBig/grid.y;\n float k = i/grid.y+j; // order of the tile along the curve\n vec2 uv0 = uv + vec2(i,j) - 0.5 + 0.5/grid + vec2(cos(k*TAU*freq.x+progress*6.*speed),sin(k*TAU*freq.y+progress*6.*(1.+offset)*speed))*zoom/2.;\n uv0 = mix(uv, uv0, p);\n if (uv0.x >= i && uv0.x < i+1./grid.x && uv0.y >= j && uv0.y < j+1./grid.y) { // mask for each (i,j) tile\n float tileMix = clamp(progress*((1.+fade)*2.*progress)-fade+k*fade, 0., 1.);\n return mix(getFromColor(uv0), getToColor(uv0), tileMix);\n }\n }\n }\n return vec4(0.); // between the tiles: transparent\n}\n","author":"Boundless <info@boundless-beta.com>","license":"MIT","description":"The image breaks into a grid of tiles that swirl along Lissajous curves, in a Scanimate style, and flip one by one to the incoming image before settling back","tags":["tiles","grid","motion","retro"],"params":{"speed":{"type":"float","default":0.5,"description":"Speed of the tiles along their curves"},"freq":{"type":"vec2","default":[2,3],"description":"Number of loops of the curve, horizontally and vertically"},"offset":{"type":"float","default":2,"description":"Extra vertical speed, which bends the curve"},"zoom":{"type":"float","default":0.8,"min":0,"max":2,"description":"Size of the curve, relative to the image"},"fade":{"type":"float","default":3,"min":0,"max":10,"description":"Spread of the tile-by-tile switch to the incoming image"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"LumaWipe","paramsTypes":{},"defaultParams":{},"glsl":"// Author: gre\n// License: MIT\n// Description: A wipe that follows the brightness of a grayscale mask (the luma texture)\n// Tags: wipe, luma, mask\n\nuniform sampler2D luma;\n\nvec4 transition(vec2 uv) {\n return mix(\n getToColor(uv),\n getFromColor(uv),\n step(progress, texture2D(luma, uv).r)\n );\n}\n","author":"gre","license":"MIT","description":"A wipe that follows the brightness of a grayscale mask (the luma texture)","tags":["wipe","luma","mask"],"params":{},"textures":["luma"],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"LuminanceMelt","paramsTypes":{"direction":"bool","l_threshold":"float","above":"bool"},"defaultParams":{"direction":true,"l_threshold":0.8,"above":false},"glsl":"// Author: 0gust1\n// License: MIT\n// Description: The outgoing image melts away in noisy vertical streaks, depending on its brightness\n// Tags: melt, noise, luma\n//My own first transition — based on crosshatch code (from pthrasher), using simplex noise formula (copied and pasted)\n//-> cooler with high contrasted images (isolated dark subject on light background f.e.)\n//TODO : try to rebase it on DoomTransition (from zeh)?\n//optimizations :\n//luminance (see http://stackoverflow.com/questions/596216/formula-to-determine-brightness-of-rgb-color#answer-596241)\n// Y = (R+R+B+G+G+G)/6\n//or Y = (R+R+R+B+G+G+G+G)>>3 \n\n\n//direction of movement : 0 : up, 1, down\n// @param Direction of the melt (false: up, true: down)\nuniform bool direction; // = true\n//luminance threshold\n// @range(0, 1) Luminance threshold\nuniform float l_threshold; // = 0.8 \n//does the movement takes effect above or below luminance threshold ?\n// @param Melt the parts above the threshold instead of below\nuniform bool above; // = false \n\n\n//Random function borrowed from everywhere\nfloat rand(vec2 co){\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n\n\n// Simplex noise :\n// Description : Array and textureless GLSL 2D simplex noise function.\n// Author : Ian McEwan, Ashima Arts.\n// Maintainer : ijm\n// Lastmod : 20110822 (ijm)\n// License : MIT \n// 2011 Ashima Arts. All rights reserved.\n// Distributed under the MIT License. See LICENSE file.\n// https://github.com/ashima/webgl-noise\n// \n\nvec3 mod289(vec3 x) {\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\n\nvec2 mod289(vec2 x) {\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\n\nvec3 permute(vec3 x) {\n return mod289(((x*34.0)+1.0)*x);\n}\n\nfloat snoise(vec2 v)\n {\n const vec4 C = vec4(0.211324865405187, // (3.0-sqrt(3.0))/6.0\n 0.366025403784439, // 0.5*(sqrt(3.0)-1.0)\n -0.577350269189626, // -1.0 + 2.0 * C.x\n 0.024390243902439); // 1.0 / 41.0\n// First corner\n vec2 i = floor(v + dot(v, C.yy) );\n vec2 x0 = v - i + dot(i, C.xx);\n\n// Other corners\n vec2 i1;\n //i1.x = step( x0.y, x0.x ); // x0.x > x0.y ? 1.0 : 0.0\n //i1.y = 1.0 - i1.x;\n i1 = (x0.x > x0.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);\n // x0 = x0 - 0.0 + 0.0 * C.xx ;\n // x1 = x0 - i1 + 1.0 * C.xx ;\n // x2 = x0 - 1.0 + 2.0 * C.xx ;\n vec4 x12 = x0.xyxy + C.xxzz;\n x12.xy -= i1;\n\n// Permutations\n i = mod289(i); // Avoid truncation effects in permutation\n vec3 p = permute( permute( i.y + vec3(0.0, i1.y, 1.0 ))\n\t\t+ i.x + vec3(0.0, i1.x, 1.0 ));\n\n vec3 m = max(0.5 - vec3(dot(x0,x0), dot(x12.xy,x12.xy), dot(x12.zw,x12.zw)), 0.0);\n m = m*m ;\n m = m*m ;\n\n// Gradients: 41 points uniformly over a line, mapped onto a diamond.\n// The ring size 17*17 = 289 is close to a multiple of 41 (41*7 = 287)\n\n vec3 x = 2.0 * fract(p * C.www) - 1.0;\n vec3 h = abs(x) - 0.5;\n vec3 ox = floor(x + 0.5);\n vec3 a0 = x - ox;\n\n// Normalise gradients implicitly by scaling m\n// Approximation of: m *= inversesqrt( a0*a0 + h*h );\n m *= 1.79284291400159 - 0.85373472095314 * ( a0*a0 + h*h );\n\n// Compute final noise value at P\n vec3 g;\n g.x = a0.x * x0.x + h.x * x0.y;\n g.yz = a0.yz * x12.xz + h.yz * x12.yw;\n return 130.0 * dot(m, g);\n}\n\n// Simplex noise -- end\n\nfloat luminance(vec4 color){\n //(0.299*R + 0.587*G + 0.114*B)\n return color.r*0.299+color.g*0.587+color.b*0.114;\n}\n\nvec4 transition(vec2 uv) {\n vec2 center = vec2(1.0, direction);\n vec2 p = uv.xy / vec2(1.0).xy;\n if (progress == 0.0) {\n return getFromColor(p);\n } else if (progress == 1.0) {\n return getToColor(p);\n } else {\n float x = progress;\n float dist = distance(center, p)- progress*exp(snoise(vec2(p.x, 0.0)));\n float r = x - rand(vec2(p.x, 0.1));\n float m;\n if(above){\n m = dist <= r && luminance(getFromColor(p))>l_threshold ? 1.0 : (progress*progress*progress);\n }\n else{\n m = dist <= r && luminance(getFromColor(p))<l_threshold ? 1.0 : (progress*progress*progress); \n }\n return mix(getFromColor(p), getToColor(p), m); \n }\n}\n","author":"0gust1","license":"MIT","description":"The outgoing image melts away in noisy vertical streaks, depending on its brightness","tags":["melt","noise","luma"],"params":{"direction":{"type":"bool","default":true,"description":"Direction of the melt (false: up, true: down)"},"l_threshold":{"type":"float","default":0.8,"min":0,"max":1,"description":"Luminance threshold"},"above":{"type":"bool","default":false,"description":"Melt the parts above the threshold instead of below"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Morph","paramsTypes":{"strength":"float"},"defaultParams":{"strength":0.1},"glsl":"// Author: paniq\n// License: MIT\n// Description: A crossfade in which each image is displaced by the other's colors, like a morph\n// Tags: morph, distort, blend\n// @param Strength of the displacement\nuniform float strength; // = 0.1\n\nvec4 transition(vec2 p) {\n vec4 ca = getFromColor(p);\n vec4 cb = getToColor(p);\n \n vec2 oa = (((ca.rg+ca.b)*0.5)*2.0-1.0);\n vec2 ob = (((cb.rg+cb.b)*0.5)*2.0-1.0);\n vec2 oc = mix(oa,ob,0.5)*strength;\n \n float w0 = progress;\n float w1 = 1.0-w0;\n return mix(getFromColor(p+oc*w0), getToColor(p-oc*w1), progress);\n}\n","author":"paniq","license":"MIT","description":"A crossfade in which each image is displaced by the other's colors, like a morph","tags":["morph","distort","blend"],"params":{"strength":{"type":"float","default":0.1,"description":"Strength of the displacement"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Mosaic","paramsTypes":{"endx":"int","endy":"int"},"defaultParams":{"endx":2,"endy":-1},"glsl":"// License: MIT\n// Author: Xaychru\n// Description: The view pans across a mosaic of rotated tiles from both images and settles on the incoming one\n// Tags: mosaic, tiles, zoom\n// ported by gre from https://gist.github.com/Xaychru/130bb7b7affedbda9df5\n\n#define PI 3.14159265358979323\n#define POW2(X) X*X\n#define POW3(X) X*X*X\nuniform int endx; // = 2\nuniform int endy; // = -1\n\nfloat Rand(vec2 v) {\n return fract(sin(dot(v.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\nvec2 Rotate(vec2 v, float a) {\n mat2 rm = mat2(cos(a), -sin(a),\n sin(a), cos(a));\n return rm*v;\n}\nfloat CosInterpolation(float x) {\n return -cos(x*PI)/2.+.5;\n}\nvec4 transition(vec2 uv) {\n vec2 p = uv.xy / vec2(1.0).xy - .5;\n vec2 rp = p;\n float rpr = (progress*2.-1.);\n float z = -(rpr*rpr*2.) + 3.;\n float az = abs(z);\n rp *= az;\n rp += mix(vec2(.5, .5), vec2(float(endx) + .5, float(endy) + .5), POW2(CosInterpolation(progress)));\n vec2 mrp = mod(rp, 1.);\n vec2 crp = rp;\n bool onEnd = int(floor(crp.x))==endx&&int(floor(crp.y))==endy;\n if(!onEnd) {\n float ang = float(int(Rand(floor(crp))*4.))*.5*PI;\n mrp = vec2(.5) + Rotate(mrp-vec2(.5), ang);\n }\n if(onEnd || Rand(floor(crp))>.5) {\n return getToColor(mrp);\n } else {\n return getFromColor(mrp);\n }\n}\n","author":"Xaychru","license":"MIT","description":"The view pans across a mosaic of rotated tiles from both images and settles on the incoming one","tags":["mosaic","tiles","zoom"],"params":{"endx":{"type":"int","default":2},"endy":{"type":"int","default":-1}},"textures":[],"createdAt":"Mon, 12 Jun 2017 10:26:51 +0800","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"MultiplyBlend","paramsTypes":{},"defaultParams":{},"glsl":"// Author: Fernando Kuteken\n// License: MIT\n// Description: A crossfade through the multiplied blend of both images\n// Tags: blend, fade\n\nvec4 blend(vec4 a, vec4 b) {\n return a * b;\n}\n\nvec4 transition (vec2 uv) {\n \n vec4 blended = blend(getFromColor(uv), getToColor(uv));\n \n if (progress < 0.5)\n return mix(getFromColor(uv), blended, 2.0 * progress);\n else\n return mix(blended, getToColor(uv), 2.0 * progress - 1.0);\n}\n\n","author":"Fernando Kuteken","license":"MIT","description":"A crossfade through the multiplied blend of both images","tags":["blend","fade"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"NoiseDissolve","paramsTypes":{},"defaultParams":{},"glsl":"// Author: towrabbit\n// License: MIT\n// Description: The incoming image appears pixel by pixel in random noise\n// Tags: dissolve, noise\n\nfloat random (vec2 st) {\n return fract(sin(dot(st.xy,vec2(12.9898,78.233)))*43758.5453123);\n}\nvec4 transition (vec2 uv) {\n vec4 leftSide = getFromColor(uv);\n vec4 rightSide = getToColor(uv);\n float uvz = floor(random(uv)+progress);\n return mix(leftSide,rightSide,uvz);\n}\n","author":"towrabbit","license":"MIT","description":"The incoming image appears pixel by pixel in random noise","tags":["dissolve","noise"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Overexposure","paramsTypes":{"strength":"float"},"defaultParams":{"strength":0.6},"glsl":"// Author: Ben Zhang\n// License: MIT\n// Description: A crossfade through a washed-out, overexposed white\n// Tags: flash, light, fade\n\n// @param Amount of overexposure\nuniform float strength; // = 0.6\nconst float PI = 3.141592653589793;\n\nvec4 transition (vec2 uv) {\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n\n // Multipliers\n float from_m = 1.0 - progress + sin(PI * progress) * strength;\n float to_m = progress + sin(PI * progress) * strength;\n \n return vec4(\n from.r * from.a * from_m + to.r * to.a * to_m,\n from.g * from.a * from_m + to.g * to.a * to_m,\n from.b * from.a * from_m + to.b * to.a * to_m,\n mix(from.a, to.a, progress)\n );\n}\n","author":"Ben Zhang","license":"MIT","description":"A crossfade through a washed-out, overexposed white","tags":["flash","light","fade"],"params":{"strength":{"type":"float","default":0.6,"description":"Amount of overexposure"}},"textures":[],"createdAt":"Tue, 15 Mar 2022 20:21:15 +0800","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"PaperTear","paramsTypes":{"roughness":"float","tilt":"float","rim":"float","paper":"vec4","shadow":"vec4"},"defaultParams":{"roughness":0.12,"tilt":0.1,"rim":0.012,"paper":[1,0.98,0.94,1],"shadow":[0,0,0,0.35]},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image tears in two along a ragged line, and the halves are pulled apart to reveal the incoming one\n// Tags: split, horizontal, shadow\n\n// @range(0, 0.3) How far the tear wanders from the middle, relative to the image height\nuniform float roughness; // = 0.12\n// @range(0, 0.5) How much the top of each half leans away first, so that the tear opens from the top\nuniform float tilt; // = 0.1\n// @range(0, 0.05) Width of the white torn edge, relative to the image height\nuniform float rim; // = 0.012\n// @color Color of the paper fibers on the torn edges\nuniform vec4 paper; // = vec4(1.0, 0.98, 0.94, 1.0)\n// @color Color of the shadow cast on the incoming image\nuniform vec4 shadow; // = vec4(0.0, 0.0, 0.0, 0.35)\n\nfloat tri (float x) {\n return abs(fract(x) - 0.5) - 0.25;\n}\n\n// horizontal position of the tear at height y: smooth meanders...\nfloat meander (float y) {\n return 0.5 * ratio + roughness * (0.5 * sin(y * 4.7 + 1.3) + 0.25 * sin(y * 11.3 + 4.1));\n}\n\n// ...and sharp jags\nfloat tear (float y) {\n return meander(y) + roughness * (0.1 * sin(y * 29.0 + 0.7) + 0.35 * tri(y * 19.0 + sin(y * 7.0)) + 0.12 * tri(y * 47.0 + 0.6 * sin(y * 13.0)));\n}\n\n// width of the torn edge along it, so that the fibers look uneven\nfloat fibers (float y, float seed) {\n return rim * (0.7 + 0.3 * sin(y * 37.0 + seed) + 0.4 * tri(y * 83.0 + seed));\n}\n\n// the left half (or the mirrored right half) slides out, its top leaning away first:\n// from a point on screen to the point of the paper (the frame edges stay covered)\nvec2 unfold (vec2 q, float away, float lean) {\n return vec2(q.x + away + lean * q.y, q.y);\n}\n\n// a torn half over the background, with its fibers and an anti-aliased edge\n// e: distance past the torn edge, limit: how far the fibers reach, aa: edge softness\nvec4 torn (vec4 bg, vec4 col, float e, float limit, float aa) {\n vec4 c = vec4(mix(col.rgb, paper.rgb, clamp(0.5 + e / aa, 0.0, 1.0) * paper.a), col.a);\n return mix(bg, c, clamp(0.5 - (e - limit) / aa, 0.0, 1.0));\n}\n\nvec4 transition (vec2 uv) {\n float p = progress;\n float away = p * p * (0.5 * ratio + 0.1 + roughness + 2.0 * rim); // far enough to leave the frame\n float lean = tilt * p * (2.0 - p);\n float fiber = smoothstep(0.0, 0.15, p); // no torn edge on the intact image\n float aa = 0.002 * fiber + 1e-6;\n vec2 q = vec2(uv.x * ratio, uv.y);\n vec2 l = unfold(q, away, lean);\n vec2 r = unfold(vec2(ratio - q.x, q.y), away, lean);\n float el = l.x - tear(l.y); // > 0 right of the left half's torn edge\n float er = r.x - (ratio - tear(r.y)); // > 0 left of the right half's torn edge\n // soft shadow of the two halves on the incoming image, cast toward the right\n vec2 sq = q - vec2(0.01, 0.0);\n float dl = unfold(sq, away, lean).x - meander(sq.y);\n float dr = unfold(vec2(ratio - sq.x, sq.y), away, lean).x - (ratio - meander(sq.y));\n vec4 to = getToColor(uv);\n float sh = shadow.a * (1.0 - smoothstep(-0.02, 0.08, min(dl, dr)));\n vec4 c = vec4(mix(to.rgb, shadow.rgb, sh), to.a);\n // the image stops at the tear; the bare paper fibers stick out a little beyond it\n if (r.x >= 0.0) {\n c = torn(c, getFromColor(vec2(1.0 - r.x / ratio, r.y)), er, fibers(r.y, 2.0) * 1.5 * fiber, aa);\n }\n if (l.x >= 0.0) {\n c = torn(c, getFromColor(vec2(l.x / ratio, l.y)), el, fibers(l.y, 0.0) * fiber, aa);\n }\n return c;\n}\n","author":"gre","license":"MIT","description":"The outgoing image tears in two along a ragged line, and the halves are pulled apart to reveal the incoming one","tags":["split","horizontal","shadow"],"params":{"roughness":{"type":"float","default":0.12,"min":0,"max":0.3,"description":"How far the tear wanders from the middle, relative to the image height"},"tilt":{"type":"float","default":0.1,"min":0,"max":0.5,"description":"How much the top of each half leans away first, so that the tear opens from the top"},"rim":{"type":"float","default":0.012,"min":0,"max":0.05,"description":"Width of the white torn edge, relative to the image height"},"paper":{"type":"vec4","default":[1,0.98,0.94,1],"color":true,"description":"Color of the paper fibers on the torn edges"},"shadow":{"type":"vec4","default":[0,0,0,0.35],"color":true,"description":"Color of the shadow cast on the incoming image"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:18:48 +0100","updatedAt":"Sat, 31 Oct 2026 18:18:48 +0100"},{"name":"PerlinDissolve","paramsTypes":{"scale":"float","smoothness":"float","seed":"float"},"defaultParams":{"scale":4,"smoothness":0.01,"seed":12.9898},"glsl":"// Author: Rich Harris\n// License: MIT\n// Description: The incoming image appears through blobs of Perlin noise\n// Tags: noise, dissolve\n\n// @param Scale of the noise; higher values make smaller blobs\nuniform float scale; // = 4.0\n// @param Softness of the blob edges\nuniform float smoothness; // = 0.01\n\n// @param Random seed\nuniform float seed; // = 12.9898\n\n// http://byteblacksmith.com/improvements-to-the-canonical-one-liner-glsl-rand-for-opengl-es-2-0/\nfloat random(vec2 co)\n{\n float a = seed;\n float b = 78.233;\n float c = 43758.5453;\n float dt= dot(co.xy ,vec2(a,b));\n float sn= mod(dt,3.14);\n return fract(sin(sn) * c);\n}\n\n// 2D Noise based on Morgan McGuire @morgan3d\n// https://www.shadertoy.com/view/4dS3Wd\nfloat noise (in vec2 st) {\n vec2 i = floor(st);\n vec2 f = fract(st);\n\n // Four corners in 2D of a tile\n float a = random(i);\n float b = random(i + vec2(1.0, 0.0));\n float c = random(i + vec2(0.0, 1.0));\n float d = random(i + vec2(1.0, 1.0));\n\n // Smooth Interpolation\n\n // Cubic Hermine Curve. Same as SmoothStep()\n vec2 u = f*f*(3.0-2.0*f);\n // u = smoothstep(0.,1.,f);\n\n // Mix 4 coorners porcentages\n return mix(a, b, u.x) +\n (c - a)* u.y * (1.0 - u.x) +\n (d - b) * u.x * u.y;\n}\n\nvec4 transition (vec2 uv) {\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n float n = noise(uv * scale);\n\n float p = mix(-smoothness, 1.0 + smoothness, progress);\n float lower = p - smoothness;\n float higher = p + smoothness;\n\n float q = smoothstep(lower, higher, n);\n\n return mix(\n from,\n to,\n 1.0 - q\n );\n}\n","author":"Rich Harris","license":"MIT","description":"The incoming image appears through blobs of Perlin noise","tags":["noise","dissolve"],"params":{"scale":{"type":"float","default":4,"description":"Scale of the noise; higher values make smaller blobs"},"smoothness":{"type":"float","default":0.01,"description":"Softness of the blob edges"},"seed":{"type":"float","default":12.9898,"description":"Random seed"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"PhotoDevelop","paramsTypes":{"card":"vec4","wash":"float","tint":"float"},"defaultParams":{"card":[0.93,0.91,0.85,1],"wash":0.35,"tint":0.8},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image washes out to a blank cream card, then the incoming image develops on it like an instant photo: shadows first, faint and tinted, then its contrast and colors come up and it settles\n// Tags: fade, color, photo, retro\n\n// @color Color of the blank card between the two images\nuniform vec4 card; // = vec4(0.93, 0.91, 0.85, 1.0)\n// @range(0, 1) How long the outgoing image takes to wash out (from 10% to 70% of the transition)\nuniform float wash; // = 0.35\n// @range(0, 1) Strength of the cyan and magenta cast while the image develops\nuniform float tint; // = 0.8\n\nvec3 saturation(vec3 c, float s) {\n float lum = dot(c, vec3(0.2126, 0.7152, 0.0722));\n return mix(vec3(lum), c, s);\n}\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n float p = progress;\n if (p <= 0.0) return a;\n if (p >= 1.0) return b;\n\n // the card only shows where the images are: it takes the alpha of the outgoing image, then the incoming one's\n float split = mix(0.1, 0.7, clamp(wash, 0.0, 1.0));\n float cardAlpha = card.a * mix(a.a, b.a, smoothstep(0.6 * split, split + 0.1, p));\n vec3 cardColor = card.rgb * cardAlpha;\n\n // the outgoing image fades and loses its contrast into the card, its lights first\n float w = smoothstep(0.0, split, p);\n float fromLum = dot(a.rgb, vec3(0.2126, 0.7152, 0.0722));\n float wl = clamp(w * (1.0 + 0.5 * fromLum), 0.0, 1.0);\n vec3 washed = mix(a.rgb, mix(vec3(fromLum), a.rgb, 0.4), w) * a.a;\n vec3 outgoing = mix(washed, cardColor, wl);\n float outAlpha = mix(a.a, cardAlpha, wl);\n\n // development of the incoming image: quick at first, then slowly settling\n float x = clamp((p - split) / max(1.0 - split, 1e-3), 0.0, 1.0);\n float d = 1.0 - pow(1.0 - x, 1.5);\n float lum = dot(b.rgb, vec3(0.2126, 0.7152, 0.0722));\n // the shadows develop first, the highlights last\n float dev = clamp((d - 0.45 * lum) / 0.55, 0.0, 1.0);\n dev = dev * dev * (3.0 - 2.0 * dev);\n // low contrast and nearly no colors at first, with a cast: cyan in the shadows, magenta in the lights\n float early = 1.0 - smoothstep(0.2, 0.95, d);\n vec3 tinted = saturation(b.rgb, smoothstep(0.3, 1.0, d));\n tinted = mix(vec3(0.6), tinted, mix(0.55, 1.0, d));\n vec3 tone = mix(vec3(-0.2, 0.06, 0.1), vec3(0.12, -0.1, 0.06), smoothstep(0.15, 0.6, lum));\n tinted += tone * tint * early;\n vec3 incoming = mix(cardColor, clamp(tinted, 0.0, 1.0) * b.a, dev);\n float inAlpha = mix(cardAlpha, b.a, dev);\n\n vec3 color = p < split ? outgoing : incoming;\n float alpha = p < split ? outAlpha : inAlpha;\n if (alpha <= 0.0) return vec4(0.0);\n return vec4(clamp(color / alpha, 0.0, 1.0), alpha);\n}\n","author":"gre","license":"MIT","description":"The outgoing image washes out to a blank cream card, then the incoming image develops on it like an instant photo: shadows first, faint and tinted, then its contrast and colors come up and it settles","tags":["fade","color","photo","retro"],"params":{"card":{"type":"vec4","default":[0.93,0.91,0.85,1],"color":true,"description":"Color of the blank card between the two images"},"wash":{"type":"float","default":0.35,"min":0,"max":1,"description":"How long the outgoing image takes to wash out (from 10% to 70% of the transition)"},"tint":{"type":"float","default":0.8,"min":0,"max":1,"description":"Strength of the cyan and magenta cast while the image develops"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:33:18 +0100","updatedAt":"Sun, 1 Nov 2026 20:33:18 +0100"},{"name":"Pinwheel","paramsTypes":{"speed":"float"},"defaultParams":{"speed":2},"glsl":"// Author: Mr Speaker\n// License: MIT\n// Description: A spinning pinwheel reveals the incoming image\n// Tags: pinwheel, radial, rotate\n\n// @param Rotation speed\nuniform float speed; // = 2.0\n\nvec4 transition(vec2 uv) {\n \n vec2 p = uv.xy / vec2(1.0).xy;\n \n float circPos = atan(p.y - 0.5, p.x - 0.5) + progress * speed;\n float modPos = mod(circPos, 3.1415 / 4.);\n float signed = sign(progress - modPos);\n \n return mix(getToColor(p), getFromColor(p), step(signed, 0.5));\n \n}\n","author":"Mr Speaker","license":"MIT","description":"A spinning pinwheel reveals the incoming image","tags":["pinwheel","radial","rotate"],"params":{"speed":{"type":"float","default":2,"description":"Rotation speed"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"PixelStretch","paramsTypes":{"direction":"vec2","stretch":"float","chroma":"float","softness":"float","jitter":"float"},"defaultParams":{"direction":[1,0],"stretch":0.45,"chroma":0.5,"softness":0.03,"jitter":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: A line sweeps across the frame and drags the outgoing image's pixels behind it as long streaks, which shorten as it goes and reveal the incoming image\n// Tags: smear, streaks, directional, chromatic\n\n// @param Direction in which the line sweeps\nuniform vec2 direction; // = vec2(1.0, 0.0)\n// @range(0, 1) Length of the streaks at the middle of the sweep, as a part of the frame\nuniform float stretch; // = 0.45\n// @range(0, 1) Amount of RGB split along the streaks\nuniform float chroma; // = 0.5\n// @range(0, 0.2) Softness of the line and of the streaks' ends, as a part of the frame\nuniform float softness; // = 0.03\n// @range(0, 1) How much the streaks jitter, each row at its own length\nuniform float jitter; // = 0.5\n\nfloat hash(float n) {\n n = fract(n * 0.1031);\n n *= n + 33.33;\n n *= n + n;\n return fract(n);\n}\n\n// smooth max with a compact support: exactly max(x, y) when they are k apart\nfloat smax(float x, float y, float k) {\n float h = max(k - abs(x - y), 0.0) / k;\n return max(x, y) + h * h * k * 0.25;\n}\n\n// position s along the sweep (0 to 1 across the frame) to a frame coordinate\nvec2 at(vec2 uv, float s0, float s, vec2 d, float ext) {\n return clamp(uv + d * (s - s0) * ext, 0.0, 1.0);\n}\n\nvec4 transition(vec2 uv) {\n vec2 d = normalize(direction + vec2(1e-6, 0.0));\n // ext: length of the frame along the sweep, in uv units\n float ext = abs(d.x) + abs(d.y);\n float s = 0.5 + dot(uv - 0.5, d) / ext;\n // rows across the streaks (about one per pixel line), in frame heights\n vec2 n = vec2(-d.y, d.x);\n float t = dot((uv - 0.5) * vec2(ratio, 1.0), n);\n float row = floor(t * 540.0);\n float clump = floor(t * 60.0);\n float rnd = 0.6 * hash(row + 17.0) + 0.4 * hash(clump + 311.0);\n\n float p = progress;\n float k = softness + 1e-4;\n // the line starts and ends at rest just beyond the frame, past its soft edge, so both ends are exact;\n // it enters at once and slows down a little toward the end\n float margin = k + 0.002;\n float a = mix(-margin, 1.0 + margin, mix(p, p * p * (3.0 - 2.0 * p), 0.5));\n\n // the streaks are longest when the line crosses the middle and vanish as it reaches the edges,\n // so they never repeat the frame's own border (often dark, or letterboxing)\n float h = clamp(4.0 * a * (1.0 - a), 0.0, 1.0);\n float len = stretch * h * (1.0 - 0.6 * jitter * rnd);\n float split = 0.02 * chroma * h;\n\n // ahead of the line the outgoing image is intact; behind it, each pixel repeats the pixel at the line\n vec4 fr = getFromColor(at(uv, s, smax(s, a + split, k), d, ext));\n vec4 fg = getFromColor(at(uv, s, smax(s, a, k), d, ext));\n vec4 fb = getFromColor(at(uv, s, smax(s, a - split, k), d, ext));\n vec4 streak = vec4(fr.r, fg.g, fb.b, fg.a);\n // a faint flicker along the streaks\n float behind = step(s, a);\n streak.rgb *= 1.0 + 0.06 * jitter * h * (hash(row * 3.0 + 5.0) - 0.5) * behind;\n\n // past the end of its streak, each row shows the incoming image as it is\n float w = smoothstep(len - k, len + k, a - s);\n return mix(streak, getToColor(uv), w);\n}\n","author":"gre","license":"MIT","description":"A line sweeps across the frame and drags the outgoing image's pixels behind it as long streaks, which shorten as it goes and reveal the incoming image","tags":["smear","streaks","directional","chromatic"],"params":{"direction":{"type":"vec2","default":[1,0],"description":"Direction in which the line sweeps"},"stretch":{"type":"float","default":0.45,"min":0,"max":1,"description":"Length of the streaks at the middle of the sweep, as a part of the frame"},"chroma":{"type":"float","default":0.5,"min":0,"max":1,"description":"Amount of RGB split along the streaks"},"softness":{"type":"float","default":0.03,"min":0,"max":0.2,"description":"Softness of the line and of the streaks' ends, as a part of the frame"},"jitter":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the streaks jitter, each row at its own length"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 09:38:52 +0100","updatedAt":"Sun, 1 Nov 2026 09:38:52 +0100"},{"name":"Pixelize","paramsTypes":{"squaresMin":"ivec2","steps":"int"},"defaultParams":{"squaresMin":[20,20],"steps":50},"glsl":"// Author: gre\n// License: MIT\n// Description: Both images pixelate, crossfade, then sharpen again\n// Tags: pixelate, blend\n// forked from https://gist.github.com/benraziel/c528607361d90a072e98\n\n// minimum number of squares (when the effect is at its higher level)\n// @param Number of squares at the strongest pixelation\nuniform ivec2 squaresMin; // = ivec2(20)\n// zero disable the stepping\n// @param Number of pixelation steps; 0 for a continuous effect\nuniform int steps; // = 50\n\nvec4 transition(vec2 uv) {\n float d = min(progress, 1.0 - progress);\n float dist = steps>0 ? ceil(d * float(steps)) / float(steps) : d;\n vec2 squareSize = 2.0 * dist / vec2(squaresMin);\n vec2 p = dist>0.0 ? (floor(uv / squareSize) + 0.5) * squareSize : uv;\n return mix(getFromColor(p), getToColor(p), progress);\n}\n","author":"gre","license":"MIT","description":"Both images pixelate, crossfade, then sharpen again","tags":["pixelate","blend"],"params":{"squaresMin":{"type":"ivec2","default":[20,20],"description":"Number of squares at the strongest pixelation"},"steps":{"type":"int","default":50,"description":"Number of pixelation steps; 0 for a continuous effect"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"PlasmaDissolve","paramsTypes":{"scale":"float","smoothness":"float","flow":"float","edgeColor":"vec3","edgeStrength":"float"},"defaultParams":{"scale":3,"smoothness":0.1,"flow":1,"edgeColor":[1,0.45,0.9],"edgeStrength":0.6},"glsl":"// Author: gre\n// License: MIT\n// Description: A flowing plasma of sine waves, as in the old demos, draws moving bands through which the incoming image spreads like tendrils, with a glowing edge\n// Tags: wipe, plasma, organic, glow\n\n// @range(0.5, 10) Size of the plasma: higher values make more, thinner bands\nuniform float scale; // = 3.0\n// @range(0, 0.5) Softness of the band edges\nuniform float smoothness; // = 0.1\n// @range(0, 1) How much the plasma flows during the transition (at most 1, so a revealed area never goes back)\nuniform float flow; // = 1.0\n// @color Color of the glow along the edges\nuniform vec3 edgeColor; // = vec3(1.0, 0.45, 0.9)\n// @range(0, 2) Strength of the glow along the edges\nuniform float edgeStrength; // = 0.6\n\nconst float PI = 3.14159265;\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return b;\n\n // measured in square pixels, so the waves are not stretched\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0) * max(scale, 0.0) * 2.0 * PI;\n // the phase of the waves; the folded plasma below then changes by at most 0.9 * flow per\n // unit of progress, slower than the threshold, so the reveal never goes back\n float t = clamp(flow, 0.0, 1.0) * progress * 0.5;\n // the classic plasma: sines of x, y, a diagonal and the distance to an off-center point\n float v = sin(p.x * 0.6 + t)\n + sin(p.y * 0.8 - t * 0.8)\n + sin((p.x * 0.5 + p.y * 0.7) * 0.7 + t * 0.6)\n + sin(length(p - vec2(0.15, -0.1) * max(scale, 0.0) * 2.0 * PI) * 0.9 - t * 1.2);\n // folded into bands in [0, 1]\n v = abs(fract(v * 0.25 + 0.5) * 2.0 - 1.0);\n\n // the soft edge is fully below every band at the start and above every band at the end\n float s = max(smoothness, 0.001);\n float threshold = mix(-s, 1.0 + s, progress);\n // > 0 where the incoming image shows\n float m = 1.0 - smoothstep(threshold - s, threshold + s, v);\n\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 col = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n if (col.a <= 0.0) return vec4(0.0);\n // a light along the edge, adding nothing to the alpha\n float glow = 4.0 * m * (1.0 - m) * max(edgeStrength, 0.0);\n return vec4(col.rgb / col.a + edgeColor * glow, col.a);\n}\n","author":"gre","license":"MIT","description":"A flowing plasma of sine waves, as in the old demos, draws moving bands through which the incoming image spreads like tendrils, with a glowing edge","tags":["wipe","plasma","organic","glow"],"params":{"scale":{"type":"float","default":3,"min":0.5,"max":10,"description":"Size of the plasma: higher values make more, thinner bands"},"smoothness":{"type":"float","default":0.1,"min":0,"max":0.5,"description":"Softness of the band edges"},"flow":{"type":"float","default":1,"min":0,"max":1,"description":"How much the plasma flows during the transition (at most 1, so a revealed area never goes back)"},"edgeColor":{"type":"vec3","default":[1,0.45,0.9],"color":true,"description":"Color of the glow along the edges"},"edgeStrength":{"type":"float","default":0.6,"min":0,"max":2,"description":"Strength of the glow along the edges"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:14:11 +0100","updatedAt":"Wed, 4 Nov 2026 20:14:11 +0100"},{"name":"PlusWipe","paramsTypes":{"smoothness":"float","reverse":"bool"},"defaultParams":{"smoothness":0.01,"reverse":false},"glsl":"// Author: gre\n// License: MIT\n// Description: A plus-shaped cross grows from the center and widens its arms until the incoming image fills the frame\n// Tags: shape, wipe, cross, plus\n\n// @range(0, 0.1) Softness of the cross's edge\nuniform float smoothness; // = 0.01\n// @param Close four corner rectangles in toward the middle instead\nuniform bool reverse; // = false\n\nfloat boxDist (vec2 p, vec2 halfSize) {\n vec2 d = abs(p) - halfSize;\n return length(max(d, 0.0)) + min(max(d.x, d.y), 0.0);\n}\n\n// 1 inside the cross at time t, 0 outside\nfloat plus (vec2 q, float t, float s) {\n vec2 frame = vec2(0.5 * ratio, 0.5);\n float k = min(frame.x, frame.y);\n // The arms start equally thick, then widen with the frame's proportions,\n // so the four corners left uncovered vanish together\n vec2 halfWidth = k * t + (frame - k) * t * t;\n // The arms reach out at the same speed in every direction\n float halfLength = 3.0 * max(frame.x, frame.y) * t;\n float d = min(boxDist(q, vec2(halfLength, halfWidth.y)), boxDist(q, vec2(halfWidth.x, halfLength)));\n // The soft edge slides from outside to inside the cross, so nothing shows at\n // t = 0 and everything at t = 1, whatever the softness\n return 1.0 - smoothstep(0.0, s, d + s * (1.0 - t));\n}\n\nvec4 transition (vec2 uv) {\n // Measured in square pixels, so the cross is not stretched\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0);\n float s = max(smoothness, 0.001);\n float m = reverse ? 1.0 - plus(q, 1.0 - progress, s) : plus(q, progress, s);\n return mix(getFromColor(uv), getToColor(uv), m);\n}\n","author":"gre","license":"MIT","description":"A plus-shaped cross grows from the center and widens its arms until the incoming image fills the frame","tags":["shape","wipe","cross","plus"],"params":{"smoothness":{"type":"float","default":0.01,"min":0,"max":0.1,"description":"Softness of the cross's edge"},"reverse":{"type":"bool","default":false,"description":"Close four corner rectangles in toward the middle instead"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 08:39:06 +0100","updatedAt":"Mon, 2 Nov 2026 08:39:06 +0100"},{"name":"PolkaDotsCurtain","paramsTypes":{"dots":"float","center":"vec2"},"defaultParams":{"dots":20,"center":[0,0]},"glsl":"// Author: bobylito\n// License: MIT\n// Description: The incoming image appears through growing polka dots\n// Tags: dots, pattern\nconst float SQRT_2 = 1.414213562373;\n// @param Number of dots across the image\nuniform float dots; // = 20.0\nuniform vec2 center; // = vec2(0, 0)\n\nvec4 transition(vec2 uv) {\n bool nextImage = distance(fract(uv * dots), vec2(0.5, 0.5)) < ( progress / distance(uv, center));\n return nextImage ? getToColor(uv) : getFromColor(uv);\n}\n","author":"bobylito","license":"MIT","description":"The incoming image appears through growing polka dots","tags":["dots","pattern"],"params":{"dots":{"type":"float","default":20,"description":"Number of dots across the image"},"center":{"type":"vec2","default":[0,0]}},"textures":[],"createdAt":"Tue, 20 Feb 2018 23:41:45 +0100","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"PopIn","paramsTypes":{"center":"vec2","bounce":"float","corner":"float","shadow":"float"},"defaultParams":{"center":[0.5,0.5],"bounce":1,"corner":0.12,"shadow":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The incoming image pops in as a rounded card over the outgoing one, with an elastic overshoot: too big, a bit small, then it settles into the full frame as its corners square off\n// Tags: pop, scale, zoom, elastic, bounce, shadow\n\n// @param Point of the frame the incoming image pops from\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @range(0, 1.5) How far the card overshoots (too big, then a bit small) before it settles\nuniform float bounce; // = 1.0\n// @range(0, 0.5) Corner radius of the card while it pops, relative to its shorter side\nuniform float corner; // = 0.12\n// @range(0, 1) Darkness of the drop shadow the card casts on the outgoing image\nuniform float shadow; // = 0.5\n\nconst float PI = 3.141592653589793;\n\n// signed distance to a rounded box of half size b and corner radius r\nfloat roundedBox(vec2 p, vec2 b, float r) {\n vec2 q = abs(p) - b + r;\n return length(max(q, 0.0)) + min(max(q.x, q.y), 0.0) - r;\n}\n\nvec4 transition(vec2 uv) {\n float t = progress;\n // scale of the card: an ease-out, plus a damped spring that overshoots and lands exactly at t = 1\n float easeOut = 1.0 - (1.0 - t) * (1.0 - t) * (1.0 - t);\n float spring = 1.0 - exp(-1.5 * t) * cos(2.5 * PI * t) * (1.0 - t);\n float s = mix(easeOut, spring, bounce);\n\n // the card is the incoming frame scaled by s around the center, in aspect-corrected space\n vec2 asp = vec2(ratio, 1.0);\n float side = min(ratio, 1.0);\n vec2 cardCenter = center + (0.5 - center) * s;\n vec2 halfSize = 0.5 * s * asp;\n float r = corner * s * side * (1.0 - t);\n float aa = 0.002;\n // the edge is pushed out by one antialiasing width, so at t = 1 the card covers the whole frame\n float d = roundedBox((uv - cardCenter) * asp, halfSize, r) - aa;\n float cover = clamp(0.5 - d / aa, 0.0, 1.0) * smoothstep(0.0, 0.08, t);\n\n // drop shadow on the outgoing image, offset down and blurred, growing with the card\n float k = min(s, 1.0) * side;\n float blur = 0.05 * k + 1e-4;\n vec2 offset = vec2(0.0, -0.03 * k);\n float ds = roundedBox((uv - cardCenter - offset) * asp, halfSize, r);\n float shade = shadow * (1.0 - smoothstep(-blur, blur, ds)) * smoothstep(0.0, 0.15, t);\n\n vec4 a = getFromColor(uv);\n // the shadow darkens the outgoing image, it does not change its alpha (no shadow on transparent areas)\n a.rgb *= 1.0 - shade;\n // clamped: only the antialiased rim, one pixel or two outside the card, reads past the edge\n vec4 b = getToColor(clamp((uv - center) / max(s, 1e-4) + center, 0.0, 1.0));\n // blend premultiplied, then back to straight alpha\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), cover);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The incoming image pops in as a rounded card over the outgoing one, with an elastic overshoot: too big, a bit small, then it settles into the full frame as its corners square off","tags":["pop","scale","zoom","elastic","bounce","shadow"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Point of the frame the incoming image pops from"},"bounce":{"type":"float","default":1,"min":0,"max":1.5,"description":"How far the card overshoots (too big, then a bit small) before it settles"},"corner":{"type":"float","default":0.12,"min":0,"max":0.5,"description":"Corner radius of the card while it pops, relative to its shorter side"},"shadow":{"type":"float","default":0.5,"min":0,"max":1,"description":"Darkness of the drop shadow the card casts on the outgoing image"}},"textures":[],"createdAt":"Tue, 3 Nov 2026 21:54:13 +0100","updatedAt":"Tue, 3 Nov 2026 21:54:13 +0100"},{"name":"PowerKaleido","paramsTypes":{"scale":"float","z":"float","speed":"float"},"defaultParams":{"scale":2,"z":1.5,"speed":5},"glsl":"// Name: Power Kaleido\n// Author: Boundless\n// License: MIT\n// Description: The image folds into an animated kaleidoscope before revealing the incoming one\n// Tags: kaleidoscope, distort\n#define PI 3.14159265358979\nconst float rad = 120.; // change this value to get different mirror effects\nconst float deg = rad / 180. * PI;\nuniform float scale; // = 2.0\nuniform float z; // = 1.5\nuniform float speed; // = 5.\nvec2 refl(vec2 p,vec2 o,vec2 n)\n{\n\treturn 2.0*o+2.0*n*dot(p-o,n)-p;\n}\n\nvec2 rot(vec2 p, vec2 o, float a)\n{\n float s = sin(a);\n float c = cos(a);\n\treturn o + mat2(c, -s, s, c) * (p - o);\n}\n\nvec4 mainImage(vec2 uv)\n{\n float dist = scale / 10.;\n vec2 uv0 = uv;\n\tuv -= 0.5;\n uv.x *= ratio;\n uv *= z;\n uv = rot(uv, vec2(0.0), progress*speed);\n // uv.x = fract(uv.x/l/3.0)*l*3.0;\n\tfloat theta = progress*6.+PI/.5;\n\tfor(int iter = 0; iter < 10; iter++) {\n for(float i = 0.; i < 2. * PI; i+=deg) {\n\t float ts = sign(asin(cos(i))) == 1.0 ? 1.0 : 0.0;\n if(((ts == 1.0) && (uv.y-dist*cos(i) > tan(i)*(uv.x+dist*+sin(i)))) || ((ts == 0.0) && (uv.y-dist*cos(i) < tan(i)*(uv.x+dist*+sin(i))))) {\n uv = refl(vec2(uv.x+sin(i)*dist*2.,uv.y-cos(i)*dist*2.), vec2(0.,0.), vec2(cos(i),sin(i)));\n }\n }\n }\n uv += 0.5;\n uv = rot(uv, vec2(0.5), progress*-speed);\n uv -= 0.5;\n uv.x /= ratio;\n uv += 0.5;\n uv = 2.*abs(uv/2.-floor(uv/2.+0.5));\n vec2 uvMix = mix(uv,uv0,cos(progress*PI*2.)/2.+0.5);\n vec4 color = mix(getFromColor(uvMix),getToColor(uvMix),cos((progress-1.)*PI)/2.+0.5);\n\treturn color;\n \n}\nvec4 transition (vec2 uv) {\n vec4 color = mainImage(uv);\n return color;\n}\n","author":"Boundless","license":"MIT","description":"The image folds into an animated kaleidoscope before revealing the incoming one","tags":["kaleidoscope","distort"],"params":{"scale":{"type":"float","default":2},"z":{"type":"float","default":1.5},"speed":{"type":"float","default":5}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Prisms","paramsTypes":{"slats":"int","stagger":"float","perspective":"float","shading":"float","horizontal":"bool","backColor":"vec4"},"defaultParams":{"slats":8,"stagger":0.45,"perspective":1,"shading":0.6,"horizontal":false,"backColor":[0,0,0,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame is cut into 3D prisms that turn in a cascade, like a rotating billboard, from the outgoing image on one face to the incoming one on the next\n// Tags: 3d, rotate, stripes\n\n// @range(2, 40, 1) Number of prisms\nuniform int slats; // = 8\n// @range(0, 0.9) Delay of the last prism's turn, as a part of the transition\nuniform float stagger; // = 0.45\n// @range(0, 4) Amount of perspective\nuniform float perspective; // = 1.0\n// @range(0, 1) How much the faces darken as they turn away\nuniform float shading; // = 0.6\n// @param Cut the frame into horizontal prisms instead\nuniform bool horizontal; // = false\n// @color Color seen where the turning prisms leave the frame uncovered\nuniform vec4 backColor; // = vec4(0.0, 0.0, 0.0, 1.0)\n\nconst float PI = 3.141592653589793;\n// width of the anti-aliased edges, in frame heights\nconst float EDGE = 0.002;\n\nvec4 transition (vec2 uv) {\n float n = float(slats);\n // a: the axis across the prisms, b: the axis they turn around\n float a = horizontal ? uv.y : uv.x;\n float b = horizontal ? uv.x : uv.y;\n // the prisms' half width in frame heights, and the perspective from their depth\n float hw = 0.5 / n * (horizontal ? 1.0 : ratio);\n float k = min(perspective * hw, 0.5);\n float bScale = horizontal ? ratio : 1.0;\n // a turning prism is wider than its strip: keep the two nearest faces\n vec4 near1 = vec4(0.0), near2 = vec4(0.0);\n float cover1 = 0.0, cover2 = 0.0;\n float z1 = -2.0, z2 = -2.0;\n for (int d = -1; d <= 1; d++) {\n float i = floor(a * n) + float(d);\n if (i < 0.0 || i > n - 1.0) continue;\n // each prism turns after a delay that grows across the frame, left to right or top to bottom\n float order = (horizontal ? n - 1.0 - i : i) / (n - 1.0);\n float t = clamp((progress - stagger * order) / (1.0 - stagger), 0.0, 1.0);\n t = mix(t, t * t * (3.0 - 2.0 * t), 0.7);\n float c = cos(0.5 * PI * t);\n float s = sin(0.5 * PI * t);\n // soft edges while turning (sharp at rest, to keep the first and last frames exact)\n float edge = EDGE * min(1.0, 20.0 * s * c) + 1e-6;\n // x: position across the strip, -1 to 1; the prism's square section has its faces at distance 1\n float x = 2.0 * (a * n - i) - 1.0;\n for (int f = 0; f < 2; f++) {\n // f = 0: the outgoing face turning away, f = 1: the incoming face turning in\n float cf = f == 0 ? c : s;\n if (cf < 1e-4) continue;\n // u: position on the face, z: depth (1 for a face at rest)\n float u = f == 0 ? (x + s) / c : (x - c) / s;\n float z = f == 0 ? u * s + c : s - u * c;\n if (abs(u) > 1.0 || z <= z2) continue;\n // nearer parts look bigger\n float scale = 1.0 - k * (z - 1.0);\n float y = (b - 0.5) * scale + 0.5;\n if (y < 0.0 || y > 1.0) continue;\n // soften the outer edges only: the faces meet at the prism's corner\n float outer = f == 0 ? 1.0 + u : 1.0 - u;\n float cover = clamp(outer * hw * cf / edge, 0.0, 1.0)\n * clamp(min(y, 1.0 - y) * bScale / scale / edge, 0.0, 1.0);\n float sa = (i + 0.5 + 0.5 * u) / n;\n vec2 p = horizontal ? vec2(y, sa) : vec2(sa, y);\n vec4 img = f == 0 ? getFromColor(p) : getToColor(p);\n // lit from the front and the incoming side: the outgoing face darkens as it turns away\n float lambert = clamp(f == 0 ? c - 0.6 * s : s + 0.6 * c, 0.0, 1.0);\n vec4 color = vec4(img.rgb * mix(1.0 - shading, 1.0, lambert), img.a);\n if (z > z1) {\n near2 = near1; cover2 = cover1; z2 = z1;\n near1 = color; cover1 = cover; z1 = z;\n } else {\n near2 = color; cover2 = cover; z2 = z;\n }\n }\n }\n return mix(mix(backColor, near2, cover2), near1, cover1);\n}\n","author":"gre","license":"MIT","description":"The frame is cut into 3D prisms that turn in a cascade, like a rotating billboard, from the outgoing image on one face to the incoming one on the next","tags":["3d","rotate","stripes"],"params":{"slats":{"type":"int","default":8,"min":2,"max":40,"step":1,"description":"Number of prisms"},"stagger":{"type":"float","default":0.45,"min":0,"max":0.9,"description":"Delay of the last prism's turn, as a part of the transition"},"perspective":{"type":"float","default":1,"min":0,"max":4,"description":"Amount of perspective"},"shading":{"type":"float","default":0.6,"min":0,"max":1,"description":"How much the faces darken as they turn away"},"horizontal":{"type":"bool","default":false,"description":"Cut the frame into horizontal prisms instead"},"backColor":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color seen where the turning prisms leave the frame uncovered"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:17:22 +0100","updatedAt":"Sat, 31 Oct 2026 18:17:22 +0100"},{"name":"Puzzle","paramsTypes":{"pieces":"float","shadow":"float"},"defaultParams":{"pieces":5,"shadow":0.6},"glsl":"// Author: gre\n// License: MIT\n// Description: The image is cut into jigsaw puzzle pieces that lift one after another and fall away, revealing the incoming image\n// Tags: tiles, shadow, rotate, fragments\n\n// @range(2, 12) Number of pieces across the shorter side\nuniform float pieces; // = 5.0\n// @range(0, 1) Darkness of the shadows of the lifted pieces\nuniform float shadow; // = 0.6\n\n// Hash of a cell, without sin, in [0, 1)\nfloat hash(vec2 c) {\n vec2 p = fract(c * vec2(0.1031, 0.1030));\n p += dot(p, p.yx + 33.33);\n return fract((p.x + p.y) * p.x);\n}\n\nfloat boxDist(vec2 p, vec2 halfSize) {\n vec2 q = abs(p) - halfSize;\n return length(max(q, 0.0)) + min(max(q.x, q.y), 0.0);\n}\n\n// Signed distance of a point, relative to the center of piece c, to that piece (cell units).\n// Each edge has a knob (a round head on a neck): a tab for one piece, a blank for its neighbor; border edges are flat.\nfloat pieceDist(vec2 p, vec2 c, vec2 grid, float aspect) {\n vec2 halfSize = vec2(0.5 * aspect, 0.5);\n float d = boxDist(p, halfSize);\n float tabs = 1e3;\n for (int e = 0; e < 4; e++) {\n // right, left, top, bottom: the edge key is the cell on its left or below\n vec2 dir = e == 0 ? vec2(1.0, 0.0) : e == 1 ? vec2(-1.0, 0.0) : e == 2 ? vec2(0.0, 1.0) : vec2(0.0, -1.0);\n vec2 key = c + min(dir, 0.0);\n vec2 next = c + dir;\n if (next.x >= 0.0 && next.y >= 0.0 && next.x < grid.x && next.y < grid.y) {\n float h = hash(key + (e < 2 ? vec2(0.0) : vec2(71.0, 37.0)));\n // the knob points right or up from the key cell when h < 0.5\n bool tab = (h < 0.5) == (dir.x + dir.y > 0.0);\n vec2 out1 = dir * (tab ? 1.0 : -1.0);\n vec2 along = vec2(abs(dir.y), abs(dir.x));\n vec2 edge = dir * halfSize + along * (fract(h * 2.0) - 0.5) * 0.16;\n float k = min(\n length(p - edge - out1 * 0.15) - 0.125,\n boxDist(p - edge - out1 * 0.06, abs(dir) * 0.08 + along * 0.085));\n if (tab) tabs = min(tabs, k);\n else d = max(d, -k);\n }\n }\n return min(d, tabs);\n}\n\nvec4 transition(vec2 uv) {\n // a grid of nearly square cells that fits the frame exactly\n float rows = ratio < 1.0 ? floor(pieces / ratio + 0.5) : pieces;\n float cols = ratio < 1.0 ? pieces : floor(pieces * ratio + 0.5);\n vec2 grid = vec2(cols, rows);\n float aspect = ratio * rows / cols;\n vec2 g = uv * grid;\n vec2 cell = floor(g);\n\n const float aa = 0.01; // soft edges, in cells\n float boardSum = 0.0;\n float allSum = 0.0;\n // the two top moving pieces under this point\n float prio1 = -1.0, prio2 = -1.0, cov1 = 0.0, cov2 = 0.0, shade1 = 1.0, shade2 = 1.0;\n vec2 uv1 = uv, uv2 = uv;\n float shadowAll = 0.0;\n float seam = 1.0;\n for (int i = 0; i < 9; i++) {\n vec2 c = cell + vec2(mod(float(i), 3.0), floor(float(i) / 3.0)) - 1.0;\n if (c.x < 0.0 || c.y < 0.0 || c.x >= cols || c.y >= rows) continue;\n vec2 center = c + 0.5;\n vec2 local = (g - center) * vec2(aspect, 1.0);\n float h = hash(c + vec2(13.0, 7.0));\n // diagonal order from the top left, a little shuffled\n float diag = (c.x / max(cols - 1.0, 1.0) + (rows - 1.0 - c.y) / max(rows - 1.0, 1.0)) * 0.5;\n float delay = (diag + 1.2 * (h - 0.5) * diag * (1.0 - diag)) * 0.6;\n float t = clamp((progress - delay) / 0.4, 0.0, 1.0);\n\n // where the piece was: the board keeps the outgoing image where pieces are still in place\n float d0 = pieceDist(local, c, grid, aspect);\n float w = 1.0 - smoothstep(-aa, aa, d0);\n allSum += w;\n if (t <= 0.0) {\n boardSum += w;\n seam = min(seam, abs(d0));\n continue;\n }\n // lift, then fall away: shrink, spin, drift down and darken\n float lift = smoothstep(0.0, 0.25, t);\n float fall = clamp((t - 0.2) / 0.8, 0.0, 1.0);\n fall *= fall;\n float s = max(1.0 - fall, 0.001);\n float a = (h - 0.5) * 3.0 * fall;\n vec2 off = vec2(0.0, -1.2 * fall);\n mat2 rot = mat2(cos(a), -sin(a), sin(a), cos(a));\n vec2 pl = rot * (local - off) / s;\n float dp = pieceDist(pl, c, grid, aspect);\n float cov = (1.0 - smoothstep(-aa, aa, dp * s)) * min(s * 20.0, 1.0); // fades when tiny\n // darker when falling, and on its edges when lifted\n float shade = (1.0 - 0.5 * fall) * (1.0 - 0.3 * lift * (1.0 - smoothstep(0.0, 0.035, -dp)));\n vec2 puv = (center + pl / vec2(aspect, 1.0)) / grid;\n // soft shadow, offset to the bottom right while lifted\n vec2 sl = rot * (local - off - vec2(0.08, -0.1) * lift) / s;\n float sh = (1.0 - smoothstep(-0.05, 0.12, pieceDist(sl, c, grid, aspect) * s)) * lift * (1.0 - fall) * shadow;\n // the hole it leaves is in its shadow too\n shadowAll = max(shadowAll, max(sh, w * lift * (1.0 - smoothstep(0.2, 0.5, t)) * shadow));\n float prio = delay;\n if (cov > 0.0 && prio > prio1) {\n prio2 = prio1; cov2 = cov1; uv2 = uv1; shade2 = shade1;\n prio1 = prio; cov1 = cov; uv1 = puv; shade1 = shade;\n } else if (cov > 0.0 && prio > prio2) {\n prio2 = prio; cov2 = cov; uv2 = puv; shade2 = shade;\n }\n }\n vec4 base = mix(getToColor(uv), getFromColor(uv), boardSum / max(allSum, 0.001));\n // the cuts show on the board as the transition starts\n base.rgb *= (1.0 - shadowAll) * (1.0 - 0.4 * smoothstep(0.0, 0.1, progress) * (1.0 - smoothstep(0.0, 0.015, seam)));\n vec4 p2 = getFromColor(uv2);\n p2.rgb *= shade2;\n vec4 p1 = getFromColor(uv1);\n p1.rgb *= shade1;\n return mix(mix(base, p2, cov2), p1, cov1);\n}\n","author":"gre","license":"MIT","description":"The image is cut into jigsaw puzzle pieces that lift one after another and fall away, revealing the incoming image","tags":["tiles","shadow","rotate","fragments"],"params":{"pieces":{"type":"float","default":5,"min":2,"max":12,"description":"Number of pieces across the shorter side"},"shadow":{"type":"float","default":0.6,"min":0,"max":1,"description":"Darkness of the shadows of the lifted pieces"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:26:58 +0100","updatedAt":"Sat, 31 Oct 2026 18:26:58 +0100"},{"name":"RadialWipe","paramsTypes":{"smoothness":"float"},"defaultParams":{"smoothness":1},"glsl":"// License: MIT\n// Author: Xaychru\n// Description: A radial wipe that sweeps around the center like a clock hand\n// Tags: wipe, radial, clock\n// ported by gre from https://gist.github.com/Xaychru/ce1d48f0ce00bb379750\n\nuniform float smoothness; // = 1.0\n\nconst float PI = 3.141592653589;\n\nvec4 transition(vec2 p) {\n vec2 rp = p*2.-1.;\n return mix(\n getToColor(p),\n getFromColor(p),\n smoothstep(0., smoothness, atan(rp.y,rp.x) - (progress-.5) * PI * 2.5)\n );\n}\n","author":"Xaychru","license":"MIT","description":"A radial wipe that sweeps around the center like a clock hand","tags":["wipe","radial","clock"],"params":{"smoothness":{"type":"float","default":1}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"RandomSquares","paramsTypes":{"size":"ivec2","smoothness":"float"},"defaultParams":{"size":[10,10],"smoothness":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The incoming image appears in random squares\n// Tags: squares, grid, dissolve\n\n// @param Number of squares (columns, rows)\nuniform ivec2 size; // = ivec2(10, 10)\n// @param Softness of each square's switch\nuniform float smoothness; // = 0.5\n \nfloat rand (vec2 co) {\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n\nvec4 transition(vec2 p) {\n float r = rand(floor(vec2(size) * p));\n float m = smoothstep(0.0, -smoothness, r - (progress * (1.0 + smoothness)));\n return mix(getFromColor(p), getToColor(p), m);\n}\n","author":"gre","license":"MIT","description":"The incoming image appears in random squares","tags":["squares","grid","dissolve"],"params":{"size":{"type":"ivec2","default":[10,10],"description":"Number of squares (columns, rows)"},"smoothness":{"type":"float","default":0.5,"description":"Softness of each square's switch"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"RectangleCover","paramsTypes":{"bgcolor":"vec4"},"defaultParams":{"bgcolor":[0,0,0,1]},"glsl":"// Author: martiniti\n// License: MIT\n// Description: A rectangle grows from the center to cover the outgoing image, then shrinks to reveal the incoming one\n// Tags: box, shape, iris\n\n// @color Color of the rectangle\nuniform vec4 bgcolor; // = vec4(0.0, 0.0, 0.0, 1.0)\n\nvec4 transition(vec2 p) {\n float s = pow(2.0 * abs(progress - 0.5), 3.0);\n \n vec2 sq = p.xy / vec2(1.0).xy;\n \n // bottom-left\n vec2 bl = step(vec2(abs(1. - 2.*progress)), sq + .25);\n float dist = bl.x * bl.y;\n\n // top-right\n vec2 tr = step(vec2(abs(1. - 2.*progress)), 1.25-sq);\n dist *= 1. * tr.x * tr.y;\n \n return mix(\n progress < 0.5 ? getFromColor(p) : getToColor(p),\n bgcolor,\n step(s, dist)\n );\n \n}\n","author":"martiniti","license":"MIT","description":"A rectangle grows from the center to cover the outgoing image, then shrinks to reveal the incoming one","tags":["box","shape","iris"],"params":{"bgcolor":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color of the rectangle"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"RectangleIris","paramsTypes":{"bgcolor":"vec4"},"defaultParams":{"bgcolor":[0,0,0,1]},"glsl":"// License: MIT\n// Author: martiniti\n// Description: The outgoing image shrinks into a small rectangle over a background color, then the incoming one grows from it\n// Tags: box, iris, zoom\n\n// @color Background color\nuniform vec4 bgcolor; // = vec4(0.0, 0.0, 0.0, 1.0)\n\nvec4 transition(vec2 uv) {\n \n float s = pow(2.0 * abs(progress - 0.5), 3.0);\n \n vec2 q = uv.xy / vec2(1.0).xy;\n \n // bottom-left\n vec2 bl = step(vec2(1.0 - 2.0*abs(progress - 0.5)), q + 0.25);\n \n // top-right\n vec2 tr = step(vec2(1.0 - 2.0*abs(progress - 0.5)), 1.25 - q);\n \n float dist = length(1.0 - bl.x * bl.y * tr.x * tr.y);\n \n return mix(\n progress < 0.5 ? getFromColor(uv) : getToColor(uv),\n bgcolor,\n step(s, dist)\n );\n \n}\n","author":"martiniti","license":"MIT","description":"The outgoing image shrinks into a small rectangle over a background color, then the incoming one grows from it","tags":["box","iris","zoom"],"params":{"bgcolor":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Background color"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Refraction","paramsTypes":{"strength":"float","scale":"float","dispersion":"float","brightness":"float"},"defaultParams":{"strength":0.15,"scale":2.5,"dispersion":0.5,"brightness":1},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame is seen through flowing liquid glass that bends the outgoing image more and more, with rainbow fringes, flares up as the incoming image takes over, then calms down and clears\n// Tags: distortion, refraction, chromatic-aberration, glow\n\n// @range(0, 0.3) How far the glass bends the image at the peak\nuniform float strength; // = 0.15\n// @range(0.5, 8) Size of the flowing waves: higher makes smaller waves\nuniform float scale; // = 2.5\n// @range(0, 1) Spread of the rainbow fringes\nuniform float dispersion; // = 0.5\n// @range(0, 3) Brightness of the flare at the peak\nuniform float brightness; // = 1.0\n\n// the wavelengths sampled from red to violet\nconst int TAPS = 7;\n\n// the glass surface: smooth waves of a few sizes, warped into each other and flowing over time\nfloat surface(vec2 q, float t) {\n q += 0.45 * vec2(sin(1.3 * q.y + 0.9 * t), sin(1.1 * q.x - 1.2 * t));\n float h = sin(q.x + 0.6 * t) * sin(1.2 * q.y - 0.8 * t);\n h += 0.5 * sin(dot(q, vec2(1.6, -1.2)) + 1.4 * t);\n h += 0.3 * sin(dot(q, vec2(-1.1, 2.9)) - 1.9 * t + 1.7 * sin(0.9 * q.x));\n h += 0.15 * sin(dot(q, vec2(4.3, 3.1)) + 2.6 * t);\n return h;\n}\n\n// a hash without sin, to jitter the wavelengths from pixel to pixel\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// rough spectral response of a wavelength w (0 = red, 1 = violet), in RGB\nvec3 spectrum(float w) {\n vec3 c = vec3(\n 1.0 - smoothstep(0.0, 0.55, w) + 0.35 * smoothstep(0.75, 1.0, w),\n 1.0 - abs(2.0 * w - 1.0) * 1.2,\n smoothstep(0.45, 1.0, w)\n );\n return clamp(c, 0.0, 1.0);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n // 0 at both ends, 1 in the middle: the glass builds up slowly, then calms down\n float h = 1.0 - abs(2.0 * p - 1.0);\n float amount = h * h * (2.0 - h);\n\n // the glass refracts along the slope of its surface\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0) * scale;\n float t = 3.0 * p;\n float e = 0.01;\n vec2 slope = vec2(\n surface(q + vec2(e, 0.0), t) - surface(q - vec2(e, 0.0), t),\n surface(q + vec2(0.0, e), t) - surface(q - vec2(0.0, e), t)\n ) / (2.0 * e);\n vec2 offset = slope * strength * amount / scale;\n // the switch to the incoming image, around the peak: it appears through the glass's waves,\n // the crests first, then the troughs\n float wave = clamp(0.5 * surface(q, t), -1.0, 1.0);\n float m = smoothstep(-0.015, 0.015, p - 0.5 + 0.1 * wave);\n\n // each wavelength bends a little differently: red the least, violet the most\n vec3 color = vec3(0.0);\n vec3 weights = vec3(0.0);\n float alpha = 0.0;\n // jittered wavelengths blend the fringes into a continuous rainbow\n float jitter = hash12(uv * vec2(ratio, 1.0) * 1000.0) - 0.5;\n for (int i = 0; i < TAPS; i++) {\n float w = float(i) / float(TAPS - 1);\n float wj = (float(i) + jitter) / float(TAPS - 1);\n vec2 st = mirror(uv + offset * (1.0 + dispersion * (wj - 0.5) * 1.6));\n vec4 c = mix(getFromColor(st), getToColor(st), m);\n vec3 s = spectrum(w);\n color += s * c.rgb * c.a;\n weights += s;\n alpha += c.a;\n }\n alpha /= float(TAPS);\n color = color / weights / max(alpha, 1e-5);\n\n // a flare at the peak: the image is pushed toward an overexposed white\n float flare = 2.0 * brightness * pow(h, 8.0);\n color = color * (1.0 + flare) / (1.0 + flare * color);\n color += 0.1 * flare * dot(color, vec3(0.3333));\n return vec4(clamp(color, 0.0, 1.0), alpha);\n}\n","author":"gre","license":"MIT","description":"The frame is seen through flowing liquid glass that bends the outgoing image more and more, with rainbow fringes, flares up as the incoming image takes over, then calms down and clears","tags":["distortion","refraction","chromatic-aberration","glow"],"params":{"strength":{"type":"float","default":0.15,"min":0,"max":0.3,"description":"How far the glass bends the image at the peak"},"scale":{"type":"float","default":2.5,"min":0.5,"max":8,"description":"Size of the flowing waves: higher makes smaller waves"},"dispersion":{"type":"float","default":0.5,"min":0,"max":1,"description":"Spread of the rainbow fringes"},"brightness":{"type":"float","default":1,"min":0,"max":3,"description":"Brightness of the flare at the peak"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 23:20:50 +0100","updatedAt":"Sat, 31 Oct 2026 23:20:50 +0100"},{"name":"Revolve","paramsTypes":{"center":"vec2","direction":"float","maxRotation":"float","peakZoom":"float","swirl":"float","barrel":"float","motionBlur":"float","switchStart":"float","switchEnd":"float","shadow":"float"},"defaultParams":{"center":[0.46,0.52],"direction":-1,"maxRotation":1.95,"peakZoom":2.22,"swirl":2.85,"barrel":0.38,"motionBlur":1,"switchStart":0.3,"switchEnd":0.5,"shadow":0.16},"glsl":"// Author: bread\n// License: MIT\n// Description: The outgoing image swirls and zooms with motion blur into the incoming one\n// Tags: swirl, zoom, rotate, blur\n// gl-transitions v1 compatible\n\n// @param Center of the swirl\nuniform vec2 center; // = vec2(0.46, 0.52)\nuniform float direction; // = -1.0\nuniform float maxRotation; // = 1.95\nuniform float peakZoom; // = 2.22\nuniform float swirl; // = 2.85\nuniform float barrel; // = 0.38\nuniform float motionBlur; // = 1.0\nuniform float switchStart; // = 0.30\nuniform float switchEnd; // = 0.50\nuniform float shadow; // = 0.16\n\nfloat sat(float x) {\n return clamp(x, 0.0, 1.0);\n}\n\nfloat ease(float x) {\n x = sat(x);\n return x * x * (3.0 - 2.0 * x);\n}\n\nfloat revolveEnvelope(float t) {\n float rise = ease((t - 0.10) / 0.33);\n float fall = 1.0 - ease((t - 0.43) / 0.29);\n return rise * fall;\n}\n\nvec2 rotate2(vec2 p, float a) {\n float s = sin(a);\n float c = cos(a);\n return vec2(c * p.x - s * p.y, s * p.x + c * p.y);\n}\n\nvec2 warpUv(vec2 uv, float t) {\n float e = revolveEnvelope(t);\n\n vec2 p = uv - center;\n p.x *= ratio;\n\n float r = length(p);\n float edgeSpin = maxRotation * e;\n float coreSpin = swirl * e * pow(1.0 - sat(r / 0.96), 1.55);\n float visibleAngle = direction * (edgeSpin + coreSpin);\n\n p = rotate2(p, -visibleAngle);\n\n float sc = 1.0 + (peakZoom - 1.0) * pow(e, 0.85);\n p /= sc;\n\n float rr = length(p);\n p *= 1.0 + barrel * e * rr * rr * 2.8;\n\n p.x /= ratio;\n return clamp(p + center, vec2(0.001), vec2(0.999));\n}\n\nvec4 sampleRevolve(vec2 uv, float t) {\n vec2 p = warpUv(uv, t);\n float reveal = smoothstep(switchStart, switchEnd, t);\n return mix(getFromColor(p), getToColor(p), reveal);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n float e = revolveEnvelope(progress);\n float span = 0.060 * motionBlur * e;\n\n vec4 color = vec4(0.0);\n float total = 0.0;\n\n for (int i = -8; i <= 8; i++) {\n float x = float(i) / 8.0;\n float w = 1.0 - abs(x);\n w = w * w + 0.01;\n\n float t = sat(progress + x * span);\n color += sampleRevolve(uv, t) * w;\n total += w;\n }\n\n color /= total;\n\n vec2 q = uv - vec2(0.5);\n q.x *= ratio;\n float vignette = 1.0 - shadow * e * smoothstep(0.35, 0.95, length(q));\n color.rgb *= vignette;\n\n return color;\n}\n","author":"bread","license":"MIT","description":"The outgoing image swirls and zooms with motion blur into the incoming one","tags":["swirl","zoom","rotate","blur"],"params":{"center":{"type":"vec2","default":[0.46,0.52],"description":"Center of the swirl"},"direction":{"type":"float","default":-1},"maxRotation":{"type":"float","default":1.95},"peakZoom":{"type":"float","default":2.22},"swirl":{"type":"float","default":2.85},"barrel":{"type":"float","default":0.38},"motionBlur":{"type":"float","default":1},"switchStart":{"type":"float","default":0.3},"switchEnd":{"type":"float","default":0.5},"shadow":{"type":"float","default":0.16}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"RingsWipe","paramsTypes":{"count":"int","center":"vec2","stagger":"float","radial":"bool","borderWidth":"float","borderColor":"vec4","smoothness":"float"},"defaultParams":{"count":6,"center":[0.5,0.5],"stagger":0.5,"radial":false,"borderWidth":0.008,"borderColor":[1,1,1,1],"smoothness":0.004},"glsl":"// Author: gre\n// License: MIT\n// Description: Concentric rings ripple out from the center and, one after another, each sweeps around like a clock hand in the opposite direction of its neighbors to reveal the incoming image, or fills across its width, with optional colored borders between the rings\n// Tags: wipe, circle, radial, rings, clock\n\n// @range(1, 20, 1) Number of rings, from the center to the farthest corner\nuniform int count; // = 6\n// @param Center of the rings, in texture coordinates\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @range(0, 1) Delay between the starts of two rings: 0 moves them all together, 1 starts each one when the previous one is done\nuniform float stagger; // = 0.5\n// @param Each ring fills across its width, outward and inward in turn, instead of sweeping around\nuniform bool radial; // = false\n// @range(0, 0.05) Width of the borders between the rings while they move, in frame heights (0 disables them)\nuniform float borderWidth; // = 0.008\n// @color Color of the borders between the rings\nuniform vec4 borderColor; // = vec4(1.0, 1.0, 1.0, 1.0)\n// @range(0, 0.1) Softness of the edges\nuniform float smoothness; // = 0.004\n\nconst float PI = 3.141592653589793;\n// half width of the antialiased edge, in frame heights\nconst float AA = 0.0015;\n\n// progress of ring i, from 0 (not started) to 1 (done), each ring lasting d and starting\n// k * d after the previous one\nfloat ringProgress(float i, float k, float d, float t) {\n return clamp((t - i * k * d) / d, 0.0, 1.0);\n}\n\n// how much ring i, of width w and progress lp, shows the incoming image at radius rad and\n// turn a (0 to 1)\nfloat ringMask(float i, float lp, float w, float rad, float a, float s) {\n bool odd = mod(i, 2.0) > 0.5;\n if (radial) {\n // the filled part grows across the ring, from its inner edge or from its outer one,\n // starting and ending a soft edge past the ring; measured within the ring, so a ring\n // that has not started does not leak into its neighbor's antialiased boundary\n float e = s / w;\n float f = mix(-e, 1.0 + e, lp);\n float x = clamp((rad - i * w) / w, 0.0, 1.0);\n float dist = (odd ? f - (1.0 - x) : f - x) * w;\n return smoothstep(-s, s, dist);\n }\n // the filled part is a growing arc from the top, clockwise on even rings and\n // counterclockwise on odd ones; both of its ends are soft, and it starts empty and\n // ends full, wrapping around, by a soft edge measured along the circle (no shorter than\n // the softness itself near the center, so the center is not left half blended)\n float aa = odd ? 1.0 - a : a;\n float arc = 2.0 * PI * max(rad, s);\n float e = s / arc;\n float lo = mix(e, -e, lp);\n float hi = mix(-e, 1.0 + e, lp);\n float dist = max(min(aa - lo, hi - aa), min(aa - 1.0 - lo, hi - aa + 1.0));\n return smoothstep(-s, s, dist * arc);\n}\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return b;\n\n float n = float(count < 1 ? 1 : count);\n // measured in square pixels, so the rings are round\n vec2 p = (uv - center) * vec2(ratio, 1.0);\n // the rings reach the farthest corner\n vec2 far = max(center, 1.0 - center) * vec2(ratio, 1.0);\n float R = length(far) + AA;\n float w = R / n;\n float rad = length(p);\n float turn = rad > 0.0 ? fract(atan(p.x, p.y) / (2.0 * PI)) : 0.0;\n float s = max(min(smoothness, 0.25 * w), AA);\n float t = mix(progress, progress * progress * (3.0 - 2.0 * progress), 0.35);\n float k = clamp(stagger, 0.0, 1.0);\n float d = 1.0 / (1.0 + k * (n - 1.0));\n\n // blend the two rings on either side of the nearest boundary, so it is antialiased\n float j = floor(rad / w + 0.5);\n float inner = clamp(j - 1.0, 0.0, n - 1.0);\n float outer = clamp(j, 0.0, n - 1.0);\n float li = ringProgress(inner, k, d, t);\n float lo = ringProgress(outer, k, d, t);\n float m = mix(\n ringMask(inner, li, w, rad, turn, s),\n ringMask(outer, lo, w, rad, turn, s),\n smoothstep(-AA, AA, rad - j * w)\n );\n\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n\n // the border between two rings shows from when the inner one starts until the outer one\n // is done, without dimming when one hands over to the other\n if (borderWidth > 0.0 && j >= 1.0 && j <= n - 1.0) {\n float on = min(1.0, 4.0 * li * (1.0 - lo));\n // never wider than the ring, and thinner than the antialiasing only by fading out\n float hw = min(0.5 * borderWidth, 0.5 * w - AA);\n float line = (1.0 - smoothstep(hw - AA, hw + AA, abs(rad - j * w)))\n * min(1.0, borderWidth / (2.0 * AA));\n float o = borderColor.a * line * on;\n c = vec4(borderColor.rgb * o, o) + c * (1.0 - o);\n }\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Concentric rings ripple out from the center and, one after another, each sweeps around like a clock hand in the opposite direction of its neighbors to reveal the incoming image, or fills across its width, with optional colored borders between the rings","tags":["wipe","circle","radial","rings","clock"],"params":{"count":{"type":"int","default":6,"min":1,"max":20,"step":1,"description":"Number of rings, from the center to the farthest corner"},"center":{"type":"vec2","default":[0.5,0.5],"description":"Center of the rings, in texture coordinates"},"stagger":{"type":"float","default":0.5,"min":0,"max":1,"description":"Delay between the starts of two rings: 0 moves them all together, 1 starts each one when the previous one is done"},"radial":{"type":"bool","default":false,"description":"Each ring fills across its width, outward and inward in turn, instead of sweeping around"},"borderWidth":{"type":"float","default":0.008,"min":0,"max":0.05,"description":"Width of the borders between the rings while they move, in frame heights (0 disables them)"},"borderColor":{"type":"vec4","default":[1,1,1,1],"color":true,"description":"Color of the borders between the rings"},"smoothness":{"type":"float","default":0.004,"min":0,"max":0.1,"description":"Softness of the edges"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:11:21 +0100","updatedAt":"Wed, 4 Nov 2026 20:11:21 +0100"},{"name":"Ripple","paramsTypes":{"amplitude":"float","speed":"float"},"defaultParams":{"amplitude":100,"speed":50},"glsl":"// Author: gre\n// License: MIT\n// Description: Ripples spread from the center while crossfading\n// Tags: ripple, wave, blend\n// @param Frequency of the ripples\nuniform float amplitude; // = 100.0\n// @param Speed of the ripples\nuniform float speed; // = 50.0\n\nvec4 transition (vec2 uv) {\n vec2 dir = uv - vec2(.5);\n float dist = length(dir);\n vec2 offset = dir * (sin(progress * dist * amplitude - progress * speed) + .5) / 30. * progress;\n return mix(\n getFromColor(uv + offset),\n getToColor(uv),\n smoothstep(0.2, 1.0, progress)\n );\n}\n","author":"gre","license":"MIT","description":"Ripples spread from the center while crossfading","tags":["ripple","wave","blend"],"params":{"amplitude":{"type":"float","default":100,"description":"Frequency of the ripples"},"speed":{"type":"float","default":50,"description":"Speed of the ripples"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Rolls","paramsTypes":{"type":"int","RotDown":"bool"},"defaultParams":{"type":0,"RotDown":false},"glsl":"// Author: Mark Craig\n// mrmcsoftware on github and youtube ( http://www.youtube.com/MrMcSoftware )\n// License: MIT\n// Description: The outgoing image rolls away around a corner, revealing the incoming one\n// Tags: rotate, roll\n\n// Rolls Transition by Mark Craig (Copyright © 2022)\n\n// @range(0, 3, 1) Corner to roll around\nuniform int type; // = 0\n// @param Roll the outgoing image down instead of up\nuniform bool RotDown; // = false\n// type (0-3): Rotate/Roll from which corner\n// RotDown: if true rotate old image down, otherwise rotate old image up\n\n#define M_PI 3.14159265358979323846\n\nvec4 transition(vec2 uv)\n{\nfloat theta, c1, s1;\nvec2 iResolution = vec2(ratio, 1.0);\nvec2 uvi;\n// I used if/else instead of switch in case it's an old GPU\nif (type == 0) { theta = (RotDown ? M_PI : -M_PI) / 2.0 * progress; uvi.x = 1.0 - uv.x; uvi.y = uv.y; }\nelse if (type == 1) { theta = (RotDown ? M_PI : -M_PI) / 2.0 * progress; uvi = uv; }\nelse if (type == 2) { theta = (RotDown ? -M_PI : M_PI) / 2.0 * progress; uvi.x = uv.x; uvi.y = 1.0 - uv.y; }\nelse if (type == 3) { theta = (RotDown ? -M_PI : M_PI) / 2.0 * progress; uvi = 1.0 - uv; }\nc1 = cos(theta); s1 = sin(theta);\nvec2 uv2;\nuv2.x = (uvi.x * iResolution.x * c1 - uvi.y * iResolution.y * s1);\nuv2.y = (uvi.x * iResolution.x * s1 + uvi.y * iResolution.y * c1);\nif ((uv2.x >= 0.0) && (uv2.x <= iResolution.x) && (uv2.y >= 0.0) && (uv2.y <= iResolution.y))\n\t{\n\tuv2 /= iResolution;\n\tif (type == 0) { uv2.x = 1.0 - uv2.x; }\n\telse if (type == 2) { uv2.y = 1.0 - uv2.y; }\n\telse if (type == 3) { uv2 = 1.0 - uv2; }\n\treturn(getFromColor(uv2));\n\t}\nreturn(getToColor(uv));\n}\n","author":"Mark Craig","license":"MIT","description":"The outgoing image rolls away around a corner, revealing the incoming one","tags":["rotate","roll"],"params":{"type":{"type":"int","default":0,"min":0,"max":3,"step":1,"description":"Corner to roll around"},"RotDown":{"type":"bool","default":false,"description":"Roll the outgoing image down instead of up"}},"textures":[],"createdAt":"Tue, 4 Apr 2023 03:31:55 -0400","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"RotateScaleFade","paramsTypes":{"center":"vec2","rotations":"float","scale":"float","backColor":"vec4"},"defaultParams":{"center":[0.5,0.5],"rotations":1,"scale":8,"backColor":[0.15,0.15,0.15,1]},"glsl":"// Author: Fernando Kuteken\n// License: MIT\n// Description: The outgoing image spins and zooms while fading to the incoming one, over a background color\n// Tags: rotate, zoom, fade\n\n#define PI 3.14159265359\n\n// @param Center of the rotation\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @param Number of turns\nuniform float rotations; // = 1\n// @param Maximum zoom\nuniform float scale; // = 8\n// @color Background color\nuniform vec4 backColor; // = vec4(0.15, 0.15, 0.15, 1.0)\n\nvec4 transition (vec2 uv) {\n \n vec2 difference = uv - center;\n vec2 dir = normalize(difference);\n float dist = length(difference);\n \n float angle = 2.0 * PI * rotations * progress;\n \n float c = cos(angle);\n float s = sin(angle);\n \n float currentScale = mix(scale, 1.0, 2.0 * abs(progress - 0.5));\n \n vec2 rotatedDir = vec2(dir.x * c - dir.y * s, dir.x * s + dir.y * c);\n vec2 rotatedUv = center + rotatedDir * dist / currentScale;\n \n if (rotatedUv.x < 0.0 || rotatedUv.x > 1.0 ||\n rotatedUv.y < 0.0 || rotatedUv.y > 1.0)\n return backColor;\n \n return mix(getFromColor(rotatedUv), getToColor(rotatedUv), progress);\n}\n","author":"Fernando Kuteken","license":"MIT","description":"The outgoing image spins and zooms while fading to the incoming one, over a background color","tags":["rotate","zoom","fade"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Center of the rotation"},"rotations":{"type":"float","default":1,"description":"Number of turns"},"scale":{"type":"float","default":8,"description":"Maximum zoom"},"backColor":{"type":"vec4","default":[0.15,0.15,0.15,1],"color":true,"description":"Background color"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"RotateScaleVanish","paramsTypes":{"FadeInSecond":"bool","ReverseEffect":"bool","ReverseRotation":"bool"},"defaultParams":{"FadeInSecond":true,"ReverseEffect":false,"ReverseRotation":false},"glsl":"// Author: Mark Craig\n// mrmcsoftware on github and youtube ( http://www.youtube.com/MrMcSoftware )\n// License: MIT\n// Description: The outgoing image spins and shrinks away over the incoming one\n// Tags: rotate, zoom, spin\n\n// RotateScaleVanish Transition by Mark Craig (Copyright © 2022)\n\n// @param Fade in the incoming image\nuniform bool FadeInSecond; // = true\n// @param Run the effect in reverse\nuniform bool ReverseEffect; // = false\n// @param Rotate the other way\nuniform bool ReverseRotation; // = false\n\n#define M_PI 3.14159265358979323846\n#define _TWOPI 6.283185307179586476925286766559\n\nvec4 transition(vec2 uv)\n{\nvec2 iResolution = vec2(ratio, 1.0);\nfloat t = ReverseEffect ? 1.0 - progress : progress;\nfloat theta = ReverseRotation ? _TWOPI * t : -_TWOPI * t;\nfloat c1 = cos(theta);\nfloat s1 = sin(theta);\nfloat rad = max(0.00001, 1.0 - t);\nfloat xc1 = (uv.x - 0.5) * iResolution.x;\nfloat yc1 = (uv.y - 0.5) * iResolution.y;\nfloat xc2 = (xc1 * c1 - yc1 * s1) / rad;\nfloat yc2 = (xc1 * s1 + yc1 * c1) / rad;\nvec2 uv2 = vec2(xc2 + iResolution.x / 2.0, yc2 + iResolution.y / 2.0);\nvec4 col3;\nvec4 ColorTo = ReverseEffect ? getFromColor(uv) : getToColor(uv);\nif ((uv2.x >= 0.0) && (uv2.x <= iResolution.x) && (uv2.y >= 0.0) && (uv2.y <= iResolution.y))\n\t{\n\tuv2 /= iResolution;\n\tcol3 = ReverseEffect ? getToColor(uv2) : getFromColor(uv2);\n\t}\nelse { col3 = FadeInSecond ? vec4(0.0) : ColorTo; } // transparent around the shrinking image\nreturn((1.0 - t) * col3 + t * ColorTo); // could have used mix\n}\n","author":"Mark Craig","license":"MIT","description":"The outgoing image spins and shrinks away over the incoming one","tags":["rotate","zoom","spin"],"params":{"FadeInSecond":{"type":"bool","default":true,"description":"Fade in the incoming image"},"ReverseEffect":{"type":"bool","default":false,"description":"Run the effect in reverse"},"ReverseRotation":{"type":"bool","default":false,"description":"Rotate the other way"}},"textures":[],"createdAt":"Tue, 4 Apr 2023 03:31:48 -0400","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"SawtoothWipe","paramsTypes":{"direction":"vec2","teeth":"int","depth":"float","jaws":"bool","smoothness":"float"},"defaultParams":{"direction":[1,0],"teeth":8,"depth":1,"jaws":false,"smoothness":0.004},"glsl":"// Author: gre\n// License: MIT\n// Description: A wipe whose edge is a row of sharp, regular triangular teeth sweeps across the frame, or two toothed edges that start interlocked part from the middle like jaws opening\n// Tags: wipe, shape, directional, zigzag\n\n// @param Direction the toothed edge moves toward (with jaws, the axis along which the two edges part)\nuniform vec2 direction; // = vec2(1.0, 0.0)\n// @range(1, 40, 1) Number of teeth along the edge\nuniform int teeth; // = 8\n// @range(0, 3) Length of the teeth, relative to their width\nuniform float depth; // = 1.0\n// @param Two toothed edges part from the middle instead of one sweeping across\nuniform bool jaws; // = false\n// @range(0, 0.1) Softness of the edge\nuniform float smoothness; // = 0.004\n\n// half width of the antialiased edge, in frame heights\nconst float AA = 0.0015;\n\n// signed distance to a zigzag line of period w and peak-to-peak height h, centered on y = 0,\n// its tips pointing up at x = 0; positive above it\nfloat zigzag(vec2 q, float w, float h) {\n // fold into half a tooth: the slope from the bottom of a notch to the tip of a tooth\n float x = abs(fract(q.x / w) - 0.5) * w;\n vec2 a = vec2(0.0, -0.5 * h);\n vec2 ab = vec2(0.5 * w, h);\n vec2 aq = vec2(x, q.y) - a;\n float d = length(aq - ab * clamp(dot(aq, ab) / dot(ab, ab), 0.0, 1.0));\n return q.y > h * (2.0 * x / w - 0.5) ? d : -d;\n}\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return b;\n\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n // measured in square pixels, so the teeth are not stretched\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n // half extents of the frame along the direction and across it\n float e = 0.5 * (abs(dir.x) * ratio + abs(dir.y));\n float w = 0.5 * (abs(dir.y) * ratio + abs(dir.x));\n float period = 2.0 * w / float(teeth < 1 ? 1 : teeth);\n // position across the edge, with the notches on the sides of the frame so that it shows\n // whole teeth, and along the direction\n vec2 q = vec2(dot(p, vec2(-dir.y, dir.x)) + w + 0.5 * period, dot(p, dir));\n float h = max(depth, 0.0) * period;\n // the soft edge never gets wide enough to blur small teeth away\n float s = max(min(smoothness, 0.25 * period), AA);\n float t = mix(progress, progress * progress * (3.0 - 2.0 * progress), 0.35);\n\n float d;\n if (jaws) {\n // the two edges are the same zigzag, interlocked at the start (crossed by the soft\n // edge, measured across the slopes of the teeth), then moving apart until each one\n // has left the frame on its side\n float overlap = s * sqrt(1.0 + 4.0 * h * h / (period * period));\n float o = mix(-overlap, e + 0.5 * h + s, t);\n d = max(zigzag(q - vec2(0.0, o), period, h), -zigzag(q + vec2(0.0, o), period, h));\n } else {\n // the edge starts fully ahead of the frame and ends fully past it\n float c = mix(-e - 0.5 * h - s, e + 0.5 * h + s, t);\n d = zigzag(q - vec2(0.0, c), period, h);\n }\n // > 0 where the incoming image shows\n float m = 1.0 - smoothstep(-s, s, d);\n\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"A wipe whose edge is a row of sharp, regular triangular teeth sweeps across the frame, or two toothed edges that start interlocked part from the middle like jaws opening","tags":["wipe","shape","directional","zigzag"],"params":{"direction":{"type":"vec2","default":[1,0],"description":"Direction the toothed edge moves toward (with jaws, the axis along which the two edges part)"},"teeth":{"type":"int","default":8,"min":1,"max":40,"step":1,"description":"Number of teeth along the edge"},"depth":{"type":"float","default":1,"min":0,"max":3,"description":"Length of the teeth, relative to their width"},"jaws":{"type":"bool","default":false,"description":"Two toothed edges part from the middle instead of one sweeping across"},"smoothness":{"type":"float","default":0.004,"min":0,"max":0.1,"description":"Softness of the edge"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 16:31:59 +0100","updatedAt":"Wed, 4 Nov 2026 16:31:59 +0100"},{"name":"Shatter","paramsTypes":{},"defaultParams":{},"glsl":"// Author: lbl\n// License: MIT\n// Description: The outgoing image shatters into fragments that fly away\n// Tags: shatter, fragments\n\n#define POINTS 10\n\nfloat random(vec2 par) {\n return fract(sin(dot(par.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvec2 random2(vec2 par) {\n float rand = random(par);\n return vec2(rand, random(par + rand));\n}\n\nvec4 transition (vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n const float duration = 8.0;\n float time = progress * duration;\n vec2 point[POINTS];\n for (int i = 0; i < POINTS; i++) {\n point[i] = random2(vec2(float(i)));\n }\n\n vec4 col = getToColor(uv);\n\n for (int i = 0; i < POINTS; i++) {\n vec2 dir = normalize(random2(vec2(float(i), float(i) + 11.)));\n float v = (1.0 + random(dir) * 0.5) * 0.2;\n vec2 ofst = dir * clamp(time - 0.5, 0.0, duration) * v;\n vec2 U = uv - ofst;\n\n if (U.x < 0.0 || U.x > 1.0 || U.y < 0.0 || U.y > 1.0) continue;\n\n float dist_i = distance(U, point[i]);\n bool closest = true;\n for (int j = 0; j < POINTS; j++) {\n if (distance(U, point[j]) < dist_i) {\n closest = false;\n break;\n }\n }\n\n if (closest) {\n col = getFromColor(U);\n break;\n }\n }\n return col;\n}\n","author":"lbl","license":"MIT","description":"The outgoing image shatters into fragments that fly away","tags":["shatter","fragments"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Shred","paramsTypes":{"strips":"int","stagger":"float","tilt":"float","shadow":"float"},"defaultParams":{"strips":20,"stagger":0.4,"tilt":0.1,"shadow":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image is cut into paper strips that drop away at uneven speeds, tilting as they fall, revealing the incoming image\n// Tags: slices, stripes, vertical, shadow\n\n// @range(4, 60, 1) Number of strips\nuniform int strips; // = 20\n// @range(0, 0.8) Spread of the strips' start times, as a part of the transition\nuniform float stagger; // = 0.4\n// @range(0, 0.3) Largest tilt of a falling strip, in radians\nuniform float tilt; // = 0.1\n// @range(0, 1) Darkness of the strips' cut edges and of their shadow\nuniform float shadow; // = 0.5\n\n// a deterministic random value in [0, 1) for each strip\nfloat hash (float n) {\n n = fract(n * 0.1031);\n n *= n + 33.33;\n n *= n + n;\n return fract(n);\n}\n\nvec4 transition (vec2 uv) {\n float n = float(strips);\n float w = ratio / n; // strip width, in frame heights\n vec2 q = vec2(uv.x * ratio, uv.y);\n vec4 color = getToColor(uv);\n float cover = -1.0;\n float shade = 0.0;\n // narrow strips tilt less, so that they only reach over their neighbours\n float maxTilt = min(tilt, 2.0 * w);\n for (int d = -3; d <= 3; d++) {\n float i = floor(uv.x * n) + float(d);\n if (i < 0.0 || i > n - 1.0) continue;\n // about one strip in five starts right away\n float delay = stagger * max(0.0, 1.25 * hash(i + 1.0) - 0.25);\n float speed = 1.0 + 0.5 * hash(i + 71.0);\n float t = clamp((progress - delay) / (1.0 - delay), 0.0, 1.0);\n // a pull then a fall that speeds up, long enough to leave the frame\n float fall = (0.4 * t + 0.6 * t * t) * (1.0 + w * (0.5 + tilt)) * speed;\n float angle = maxTilt * (2.0 * hash(i + 37.0) - 1.0) * t;\n // the strips are cut apart as they start moving\n float lift = min(1.0, 8.0 * t);\n float gap = 0.06 * w * lift;\n // position in the strip's own frame, relative to its center\n vec2 v = q - vec2((i + 0.5) * w, 0.5 - fall);\n float ca = cos(angle), sa = sin(angle);\n vec2 l = vec2(ca * v.x + sa * v.y, ca * v.y - sa * v.x);\n vec2 edge = vec2(0.5 * w - gap, 0.5) - abs(l);\n // a soft shadow, cast down and right by the moving strip\n vec2 so = abs(l - lift * vec2(0.15 * w, -0.25 * w)) - vec2(0.5 * w - gap, 0.5);\n shade = max(shade, lift * (1.0 - smoothstep(0.0, 0.5 * w, max(so.x, so.y))));\n if (min(edge.x, edge.y) >= 0.0 && fall > cover) {\n vec2 p = vec2((i + 0.5) * w + l.x, 0.5 + l.y);\n vec4 img = getFromColor(vec2(p.x / ratio, p.y));\n // darker cut edges\n float cut = lift * (1.0 - smoothstep(0.0, 0.25 * w, edge.x));\n color = vec4(img.rgb * (1.0 - 0.5 * shadow * cut), img.a);\n cover = fall;\n }\n }\n if (cover < 0.0) {\n color = vec4(color.rgb * (1.0 - 0.6 * shadow * shade), color.a);\n }\n return color;\n}\n","author":"gre","license":"MIT","description":"The outgoing image is cut into paper strips that drop away at uneven speeds, tilting as they fall, revealing the incoming image","tags":["slices","stripes","vertical","shadow"],"params":{"strips":{"type":"int","default":20,"min":4,"max":60,"step":1,"description":"Number of strips"},"stagger":{"type":"float","default":0.4,"min":0,"max":0.8,"description":"Spread of the strips' start times, as a part of the transition"},"tilt":{"type":"float","default":0.1,"min":0,"max":0.3,"description":"Largest tilt of a falling strip, in radians"},"shadow":{"type":"float","default":0.5,"min":0,"max":1,"description":"Darkness of the strips' cut edges and of their shadow"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:17:22 +0100","updatedAt":"Sat, 31 Oct 2026 18:17:22 +0100"},{"name":"SimpleFlip","paramsTypes":{},"defaultParams":{},"glsl":"// Author: nwoeanhinnogaehr\n// License: MIT\n// Description: The outgoing image flips around the vertical axis into the incoming one\n// Tags: flip, horizontal\n// Ported from https://gist.github.com/nwoeanhinnogaehr/408045772d255df97520\n\nvec4 transition(vec2 uv) {\n vec2 q = uv;\n uv.x = (uv.x - 0.5) / abs(progress - 0.5) * 0.5 + 0.5;\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n // Transparent beside the flipping image\n return mix(a, b, step(0.5, progress)) * step(abs(q.x - 0.5), abs(progress - 0.5));\n}\n","author":"nwoeanhinnogaehr","license":"MIT","description":"The outgoing image flips around the vertical axis into the incoming one","tags":["flip","horizontal"],"params":{},"textures":[],"createdAt":"Sun, 29 Mar 2026 20:32:54 +0200","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"SimpleZoom","paramsTypes":{"zoom_quickness":"float"},"defaultParams":{"zoom_quickness":0.8},"glsl":"// Author: 0gust1\n// License: MIT\n// Description: Zooms into the outgoing image, then fades to the incoming one\n// Tags: zoom, fade\n\n// @range(0.2, 1) Part of the transition spent zooming\nuniform float zoom_quickness; // = 0.8\nvec2 zoom(vec2 uv, float amount) {\n return 0.5 + ((uv - 0.5) * (1.0-amount));\t\n}\n\nvec4 transition (vec2 uv) {\n float nQuick = clamp(zoom_quickness,0.2,1.0);\n return mix(\n getFromColor(zoom(uv, smoothstep(0.0, nQuick, progress))),\n getToColor(uv),\n smoothstep(nQuick-0.2, 1.0, progress)\n );\n}","author":"0gust1","license":"MIT","description":"Zooms into the outgoing image, then fades to the incoming one","tags":["zoom","fade"],"params":{"zoom_quickness":{"type":"float","default":0.8,"min":0.2,"max":1,"description":"Part of the transition spent zooming"}},"textures":[],"createdAt":"Tue, 6 Mar 2018 00:43:47 +0100","updatedAt":"Sat, 10 Oct 2026 10:11:31 +0200"},{"name":"SimpleZoomOut","paramsTypes":{"zoom_quickness":"float","fade":"bool"},"defaultParams":{"zoom_quickness":0.8,"fade":true},"glsl":"// Author: Tianshuo\n// License: MIT\n// Description: The incoming image zooms out into place while fading in\n// Tags: zoom, fade\n\n\n// @range(0.2, 1) Part of the transition spent zooming\nuniform float zoom_quickness; // = 0.8\n// @param Fade instead of cutting to the incoming image\nuniform bool fade; // = true\nvec2 zoom(vec2 uv, float amount) {\n return 0.5 + ((uv - 0.5) * (1.0-amount));\t\n}\n\nvec4 transition (vec2 uv) {\n float nQuick = clamp(zoom_quickness,0.2,1.0);\n return mix(\n getFromColor(uv),\n getToColor(zoom(uv,1.-smoothstep(1.-nQuick, 1., progress))),\n fade?smoothstep(1.0-nQuick, 1., progress):(progress<1.0-nQuick?0.0:1.0)\n );\n}\n","author":"Tianshuo","license":"MIT","description":"The incoming image zooms out into place while fading in","tags":["zoom","fade"],"params":{"zoom_quickness":{"type":"float","default":0.8,"min":0.2,"max":1,"description":"Part of the transition spent zooming"},"fade":{"type":"bool","default":true,"description":"Fade instead of cutting to the incoming image"}},"textures":[],"createdAt":"Sun, 29 Mar 2026 19:32:53 +0200","updatedAt":"Sat, 10 Oct 2026 10:11:31 +0200"},{"name":"SlideAwayRight","paramsTypes":{},"defaultParams":{},"glsl":"// Author: lizhongjian\n// License: MIT\n// Description: The outgoing image slides to the right, uncovering a crossfade to the incoming one\n// Tags: slide, horizontal, blend\n\nvec4 transition (vec2 uv) {\n vec2 newUV = uv;\n newUV.x -= progress;\n if(uv.x >= progress)\n {\n return getFromColor(newUV);\n }\n\n \n return mix(\n getFromColor(uv),\n getToColor(uv),\n progress\n );\n}\n","author":"lizhongjian","license":"MIT","description":"The outgoing image slides to the right, uncovering a crossfade to the incoming one","tags":["slide","horizontal","blend"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Slides","paramsTypes":{"type":"int","In":"bool"},"defaultParams":{"type":0,"In":false},"glsl":"// Author: Mark Craig\n// mrmcsoftware on github and youtube ( http://www.youtube.com/MrMcSoftware )\n// License: MIT\n// Description: The outgoing image slides out, or the incoming one slides in, toward an edge, a corner or the center\n// Tags: slide, directional\n\n// Slides Transition by Mark Craig (Copyright © 2022)\n\nuniform int type; // = 0\n// @param Slide the incoming image in instead of the outgoing one out\nuniform bool In; // = false\n// type: slide to/from which edge, which corner, or center\n// In: if true slide new image in, otherwise slide old image out\n\n#define rad2 rad / 2.0\n\nvec4 transition(vec2 uv)\n{\nvec2 uv0 = uv;\nfloat rad = In ? progress : 1.0 - progress;\nfloat xc1, yc1;\n// I used if/else instead of switch in case it's an old GPU\nif (type == 0) { xc1 = .5 - rad2; yc1 = 0.0; }\nelse if (type == 1) { xc1 = 1.0 - rad; yc1 = .5 - rad2; }\nelse if (type == 2) { xc1 = .5 - rad2; yc1 = 1.0 - rad; }\nelse if (type == 3) { xc1 = 0.0; yc1 = .5 - rad2; }\nelse if (type == 4) { xc1 = 1.0 - rad; yc1 = 0.0; }\nelse if (type == 5) { xc1 = 1.0 - rad; yc1 = 1.0 - rad; }\nelse if (type == 6) { xc1 = 0.0; yc1 = 1.0 - rad; }\nelse if (type == 7) { xc1 = 0.0; yc1 = 0.0; }\nelse if (type == 8) { xc1 = .5 - rad2; yc1 = .5 - rad2; }\nuv.y = 1.0 - uv.y;\nvec2 uv2;\nif ((uv.x >= xc1) && (uv.x <= xc1 + rad) && (uv.y >= yc1) && (uv.y <= yc1 + rad))\n\t{\n\tuv2 = vec2((uv.x - xc1) / rad, 1.0 - (uv.y - yc1) / rad);\n\treturn(In ? getToColor(uv2) : getFromColor(uv2));\n\t}\nreturn(In ? getFromColor(uv0) : getToColor(uv0));\n}\n","author":"Mark Craig","license":"MIT","description":"The outgoing image slides out, or the incoming one slides in, toward an edge, a corner or the center","tags":["slide","directional"],"params":{"type":{"type":"int","default":0},"In":{"type":"bool","default":false,"description":"Slide the incoming image in instead of the outgoing one out"}},"textures":[],"createdAt":"Tue, 4 Apr 2023 03:32:13 -0400","updatedAt":"Sat, 10 Oct 2026 10:11:31 +0200"},{"name":"SmokeDissolve","paramsTypes":{"direction":"vec2","scale":"float","spread":"float","softness":"float","color":"vec4"},"defaultParams":{"direction":[0.5,0.1],"scale":2.5,"spread":0.4,"softness":0.5,"color":[0.86,0.86,0.88,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: Billowing smoke drifts in across the outgoing image, with lit tops, darker folds and wispy edges, and thickens until it covers the frame; as it thins out and drifts away, the incoming image shows through\n// Tags: smoke, fog, organic, noise, cover\n\n// @param Direction the smoke drifts toward (it comes in from the opposite side); its length is how far it drifts, in frame heights\nuniform vec2 direction; // = vec2(0.5, 0.1)\n// @range(1, 8) Size of the billows: more, smaller ones with a larger value\nuniform float scale; // = 2.5\n// @range(0, 1) How much the smoke rolls in from one side rather than everywhere at once\nuniform float spread; // = 0.4\n// @range(0.05, 1) Softness of the smoke: wispier, more see-through edges with a larger value\nuniform float softness; // = 0.5\n// @color Color of the smoke, lit from above\nuniform vec4 color; // = vec4(0.86, 0.86, 0.88, 1.0)\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\nfloat vnoise(vec2 v) {\n vec2 i = floor(v);\n vec2 f = fract(v);\n f = f * f * (3.0 - 2.0 * f);\n return mix(\n mix(hash12(i), hash12(i + vec2(1.0, 0.0)), f.x),\n mix(hash12(i + vec2(0.0, 1.0)), hash12(i + vec2(1.0, 1.0)), f.x),\n f.y\n );\n}\n\nfloat fbm(vec2 v) {\n float sum = 0.0;\n float amp = 0.5;\n for (int i = 0; i < 4; i++) {\n sum += amp * vnoise(v);\n v = mat2(1.6, 1.2, -1.2, 1.6) * v + 5.3;\n amp *= 0.5;\n }\n return sum / 0.9375;\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n vec2 pos = (uv - 0.5) * vec2(ratio, 1.0);\n\n // where along the drift the pixel is: 0 on the side the smoke comes from, 1 on the other\n float len = length(direction);\n vec2 dir = len > 1e-4 ? direction / len : vec2(0.0);\n float ext = 0.5 * (abs(dir.x) * ratio + abs(dir.y)) + 1e-4;\n float along = len > 1e-4 ? 0.5 + 0.5 * dot(pos, dir) / ext : 0.5;\n\n // the smoke rolls in (until 0.45), covers the whole frame, then thins out (from 0.55),\n // each side of the frame in turn\n float arrive = (p / 0.45) * (1.0 + spread) - spread * along;\n float leave = ((p - 0.55) / 0.45) * (1.0 + spread) - spread * along;\n float body = smoothstep(0.0, 1.0, arrive) * (1.0 - smoothstep(0.0, 1.0, leave));\n // the images switch while the smoke is fully dense everywhere\n float m = smoothstep(0.48, 0.52, p);\n // no smoke here (yet, or any more): one image only\n if (body <= 0.0) return m < 0.5 ? getFromColor(uv) : getToColor(uv);\n\n // billows: noise warped by itself, drifting with the smoke and slowly churning\n vec2 q = (pos - direction * (p - 0.5)) * scale;\n vec2 churn = vec2(0.5 * p, -0.35 * p);\n vec2 warp = vec2(fbm(q + vec2(3.1, 1.7) + churn), fbm(q + vec2(8.3, 2.8) - churn));\n vec2 w = q + 1.1 * (warp - 0.5);\n float n = fbm(w);\n // the billows catch the light from above: brighter where the smoke rises toward it\n // (on the coarse octave only, which shapes them)\n float lit = 0.53 * (vnoise(w) - vnoise(w + vec2(0.0, 0.2)));\n // finer curls that fray the edges into wisps\n float wisp = vnoise(w * 3.3 - 2.0 * churn) - 0.5;\n\n // density: the billows fill in first, the gaps between them last, and thin out first\n float edge = 2.0 * body - (1.0 - smoothstep(0.1, 0.6, n)) + 1.6 * body * (1.0 - body) * wisp;\n float d = smoothstep(0.0, softness, edge) * mix(0.5, 1.0, smoothstep(0.2, 0.9, body));\n\n // the image under the smoke: one image, or both mixed (premultiplied) during the switch\n vec4 base;\n if (m <= 0.0) base = getFromColor(uv);\n else if (m >= 1.0) base = getToColor(uv);\n else {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n base = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n base = base.a > 0.0 ? vec4(base.rgb / base.a, base.a) : vec4(0.0);\n }\n if (d <= 0.0) return base;\n\n // soft volumetric shading: lit tops, darker folds deep in the smoke, lighter thin wisps\n float shade = 0.92 + 1.3 * lit;\n shade *= mix(0.76, 1.04, smoothstep(0.25, 0.75, n));\n shade = mix(1.0, shade, 0.3 + 0.7 * d);\n vec3 smoke = clamp(color.rgb * shade, 0.0, 1.0);\n\n // the smoke color mixes as straight RGBA, like every fill color\n return mix(base, vec4(smoke, color.a), d);\n}\n","author":"gre","license":"MIT","description":"Billowing smoke drifts in across the outgoing image, with lit tops, darker folds and wispy edges, and thickens until it covers the frame; as it thins out and drifts away, the incoming image shows through","tags":["smoke","fog","organic","noise","cover"],"params":{"direction":{"type":"vec2","default":[0.5,0.1],"description":"Direction the smoke drifts toward (it comes in from the opposite side); its length is how far it drifts, in frame heights"},"scale":{"type":"float","default":2.5,"min":1,"max":8,"description":"Size of the billows: more, smaller ones with a larger value"},"spread":{"type":"float","default":0.4,"min":0,"max":1,"description":"How much the smoke rolls in from one side rather than everywhere at once"},"softness":{"type":"float","default":0.5,"min":0.05,"max":1,"description":"Softness of the smoke: wispier, more see-through edges with a larger value"},"color":{"type":"vec4","default":[0.86,0.86,0.88,1],"color":true,"description":"Color of the smoke, lit from above"}},"textures":[],"createdAt":"Tue, 3 Nov 2026 09:42:39 +0100","updatedAt":"Tue, 3 Nov 2026 09:42:39 +0100"},{"name":"SnakeBlockWipe","paramsTypes":{"grid":"ivec2","vertical":"bool","smoothness":"float"},"defaultParams":{"grid":[8,6],"vertical":false,"smoothness":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: Blocks switch to the incoming image one at a time, row after row from the top (or column after column from the left), each line running the opposite way to the one before, like a snake winding across the frame\n// Tags: wipe, blocks, grid, zigzag\n\n// @param Number of blocks (columns, rows)\nuniform ivec2 grid; // = ivec2(8, 6)\n// @param Wind down the columns instead of along the rows\nuniform bool vertical; // = false\n// @range(0, 4) How long each block takes to fade in, in turns of one block (0 switches it at once)\nuniform float smoothness; // = 0.5\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return b;\n\n vec2 g = max(vec2(grid), 1.0);\n // block coordinates from the top left corner\n vec2 cell = min(floor(vec2(uv.x, 1.0 - uv.y) * g), g - 1.0);\n // the snake runs along the rows, or along the columns when vertical\n float lines = vertical ? g.x : g.y;\n float len = vertical ? g.y : g.x;\n float line = vertical ? cell.x : cell.y;\n float pos = vertical ? cell.y : cell.x;\n // every other line runs backward\n if (mod(line, 2.0) > 0.5) pos = len - 1.0 - pos;\n float order = line * len + pos;\n\n // block k fades in from k to k + w, on a timeline from 0 to n - 1 + w\n float n = lines * len;\n float w = max(smoothness, 0.001);\n float m = clamp((progress * (n - 1.0 + w) - order) / w, 0.0, 1.0);\n\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Blocks switch to the incoming image one at a time, row after row from the top (or column after column from the left), each line running the opposite way to the one before, like a snake winding across the frame","tags":["wipe","blocks","grid","zigzag"],"params":{"grid":{"type":"ivec2","default":[8,6],"description":"Number of blocks (columns, rows)"},"vertical":{"type":"bool","default":false,"description":"Wind down the columns instead of along the rows"},"smoothness":{"type":"float","default":0.5,"min":0,"max":4,"description":"How long each block takes to fade in, in turns of one block (0 switches it at once)"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:13:39 +0100","updatedAt":"Wed, 4 Nov 2026 20:13:39 +0100"},{"name":"Snapshot","paramsTypes":{"tilt":"float","border":"float","flash":"float","shadow":"float","borderColor":"vec4"},"defaultParams":{"tilt":0.35,"border":0.04,"flash":0.85,"shadow":0.45,"borderColor":[0.96,0.94,0.89,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: A camera flash freezes the outgoing image into a printed photo with a white border, which shrinks, tilts and drops out of the frame, revealing the incoming image behind it\n// Tags: photo, flash, scale, rotate, fall, shadow\n\n// @range(0, 1) How much the photo turns as it drops\nuniform float tilt; // = 0.35\n// @range(0, 0.15) Width of the photo's border, relative to the frame height\nuniform float border; // = 0.04\n// @range(0, 1) Strength of the camera flash\nuniform float flash; // = 0.85\n// @range(0, 1) Darkness of the soft shadow the photo casts on the incoming image\nuniform float shadow; // = 0.45\n// @color Color of the photo's border\nuniform vec4 borderColor; // = vec4(0.96, 0.94, 0.89, 1.0)\n\nconst float SHRINK = 0.24; // how much smaller the photo gets before it drops\nconst float RADIUS = 0.008; // corner radius of the photo, in frame heights\nconst float AA = 0.0015; // width of the antialiased edges, in frame heights\n\n// signed distance to a rounded box of half size b and corner radius r\nfloat roundedBox(vec2 q, vec2 b, float r) {\n vec2 d = abs(q) - b + r;\n return length(max(d, 0.0)) + min(max(d.x, d.y), 0.0) - r;\n}\n\nvec4 premultiply(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n vec2 asp = vec2(ratio, 1.0);\n vec2 q = (uv - 0.5) * asp;\n vec2 halfImage = 0.5 * asp;\n vec2 halfCard = halfImage + border;\n\n // the photo shrinks right after the flash, then falls with gravity, turning as it goes\n float k = smoothstep(0.05, 0.4, p);\n float t = clamp((p - 0.3) / 0.7, 0.0, 1.0);\n float fall = t * t;\n float s = 1.0 - SHRINK * k;\n float a = -tilt * (0.12 * k + 0.88 * fall);\n // fall far enough for the turned photo and its shadow to be out of the frame at the end\n float bound = (abs(sin(tilt)) * halfCard.x + abs(cos(tilt)) * halfCard.y) * (1.0 - SHRINK);\n // it is lifted a little toward the viewer before it falls\n float lift = 0.035 * k * (1.0 - fall);\n vec2 center = vec2(0.08 * fall, lift - (0.5 + bound + 0.1) * fall);\n\n float rad = RADIUS * k;\n\n float ca = cos(a), sa = sin(a);\n mat2 unrotate = mat2(ca, -sa, sa, ca);\n\n // the incoming image, already behind the photo, in its soft shadow\n vec4 col = getToColor(uv);\n float sh = shadow * k;\n if (sh > 0.0) {\n vec2 rs = unrotate * (q - center - vec2(0.012, -0.022) * k) / s;\n float ds = roundedBox(rs, halfCard, rad) * s;\n float blur = 0.035 * s;\n col.rgb *= 1.0 - sh * (1.0 - smoothstep(-blur, blur, ds));\n }\n col = premultiply(col);\n\n // the photo: the outgoing image, framed by its border\n vec2 r = unrotate * (q - center) / s;\n float dCard = roundedBox(r, halfCard, rad) * s;\n float dImage = roundedBox(r, halfImage, 0.0) * s;\n // the edges are pushed out by one antialiasing width, so the photo covers the full frame at the start\n float cardCover = clamp(1.5 - dCard / AA, 0.0, 1.0);\n float imageCover = clamp(1.5 - dImage / AA, 0.0, 1.0);\n // the image replaces what is behind it, while the border is laid over the incoming image, which shows through a translucent border\n vec4 photo = premultiply(getFromColor(clamp(r / asp + 0.5, 0.0, 1.0)));\n vec4 paper = premultiply(borderColor);\n vec4 card = mix(paper + col * (1.0 - paper.a), photo, imageCover);\n col = mix(col, card, cardCover);\n if (col.a <= 0.0) return vec4(0.0);\n col.rgb /= col.a;\n\n // the flash only adds light: a quick bloom to white that fades as the photo comes out\n float f = flash * smoothstep(0.0, 0.05, p) * (1.0 - smoothstep(0.05, 0.3, p));\n col.rgb = 1.0 - (1.0 - col.rgb) * (1.0 - f);\n return col;\n}\n","author":"gre","license":"MIT","description":"A camera flash freezes the outgoing image into a printed photo with a white border, which shrinks, tilts and drops out of the frame, revealing the incoming image behind it","tags":["photo","flash","scale","rotate","fall","shadow"],"params":{"tilt":{"type":"float","default":0.35,"min":0,"max":1,"description":"How much the photo turns as it drops"},"border":{"type":"float","default":0.04,"min":0,"max":0.15,"description":"Width of the photo's border, relative to the frame height"},"flash":{"type":"float","default":0.85,"min":0,"max":1,"description":"Strength of the camera flash"},"shadow":{"type":"float","default":0.45,"min":0,"max":1,"description":"Darkness of the soft shadow the photo casts on the incoming image"},"borderColor":{"type":"vec4","default":[0.96,0.94,0.89,1],"color":true,"description":"Color of the photo's border"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 12:50:01 +0100","updatedAt":"Wed, 4 Nov 2026 12:50:01 +0100"},{"name":"Sphere","paramsTypes":{"direction":"vec2","size":"float","shading":"float","shadow":"float"},"defaultParams":{"direction":[1,0],"size":0.3,"shading":0.6,"shadow":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image wraps itself onto a shaded ball that shrinks and rolls away, revealing the incoming image under its shadow\n// Tags: 3d, sphere, roll, wrap, shape\n\n// @param Direction the ball rolls away toward\nuniform vec2 direction; // = vec2(1.0, 0.0)\n// @range(0.1, 0.5) Radius of the ball once wrapped, relative to the shorter side of the frame\nuniform float size; // = 0.3\n// @range(0, 1) Strength of the light and shading on the ball\nuniform float shading; // = 0.6\n// @range(0, 1) Darkness of the soft shadow the ball casts on the incoming image\nuniform float shadow; // = 0.5\n\nconst float PI = 3.14159265;\n// half width of the antialiased ball edge, in frame heights\nconst float AA = 0.0015;\n// toward the light, from the top left\nconst vec3 LIGHT = vec3(-0.5, 0.6, 1.0) / 1.2689;\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress >= 1.0) return b;\n\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n vec2 side = vec2(-dir.y, dir.x);\n // measured in square pixels, so the ball is round\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n float shorter = min(ratio, 1.0);\n float r0 = clamp(size, 0.1, 0.5) * shorter;\n\n // the image curves into a ball (infinite radius: exactly flat at the start), then the\n // ball shrinks while rolling away until it and its shadow have left the frame\n float w = clamp(progress / 0.45, 0.0, 1.0);\n w = 1.0 - (1.0 - w) * (1.0 - w);\n float away = smoothstep(0.3, 1.0, progress);\n away *= away;\n float wrapped = r0 / max(w, 1e-4);\n float radius = wrapped * mix(1.0, 0.5, away);\n // the image is pulled tighter as it wraps, so that it ends up covering the whole ball\n // (its shortest half extent reaches around to the back)\n float tight = mix(1.0, min(1.0, 0.48 * shorter / (PI * r0)), w * w);\n float paper = radius * tight;\n // half extent of the frame along the direction\n float e = 0.5 * (abs(dir.x) * ratio + abs(dir.y));\n // far enough that the ball (0.5 * r0 by then) and its shadow (within 0.9 * r0 of it) have left\n float full = e + 1.1 * r0 + 2.0 * AA;\n float travel = away * full;\n vec2 center = dir * travel;\n // rolling without slipping: the integral of dtravel / radius while the radius shrinks\n float angle = -2.0 * full * log(1.0 - 0.5 * away) / wrapped;\n\n vec2 d = p - center;\n float r = length(d);\n\n // soft shadow on the incoming image, below and to the right of the ball (light from the top left)\n vec2 sd = d - vec2(0.25, -0.3) * radius * w;\n float sh = shadow * w * (1.0 - smoothstep(0.6 * radius, 1.4 * radius, length(sd)));\n vec4 bg = vec4(b.rgb * b.a * (1.0 - sh), b.a);\n\n vec4 ball = vec4(0.0);\n float cover = 1.0 - smoothstep(radius - AA, radius + AA, r);\n if (cover > 0.0) {\n // normal of the visible point of the ball (no squared radius, which overflows when it is huge)\n vec2 nd = d / radius;\n vec3 n = vec3(nd, sqrt(max(1.0 - dot(nd, nd), 0.0)));\n // undo the roll: rotate around the axis across the direction\n float u = dot(n.xy, dir);\n float s = dot(n.xy, side);\n float cu = cos(angle), su = sin(angle);\n vec3 q = vec3(u * cu - n.z * su, s, u * su + n.z * cu);\n // the image is wrapped around the ball from its front point, distances kept along the surface\n float lq = length(q.xy);\n float arc = atan(lq, q.z) * paper;\n vec2 img = lq > 0.0 ? (q.x * dir + q.y * side) / lq * arc : vec2(0.0);\n vec2 iuv = img / vec2(ratio, 1.0) + 0.5;\n // distance to the edge of the image, antialiased like the ball's outline\n vec2 edge = min(iuv, 1.0 - iuv) * vec2(ratio, 1.0);\n float inside = cover * smoothstep(-AA, AA, min(edge.x, edge.y));\n if (inside > 0.0) {\n vec4 c = getFromColor(clamp(iuv, 0.0, 1.0));\n float diff = max(dot(n, LIGHT), 0.0);\n float spec = pow(max(reflect(-LIGHT, n).z, 0.0), 24.0);\n float k = shading * w;\n vec3 lit = c.rgb * mix(1.0, 0.25 + 0.85 * diff, k) + 0.35 * k * spec;\n ball = vec4(clamp(lit, 0.0, 1.0) * c.a, c.a) * inside;\n }\n }\n\n // the ball over the incoming image, premultiplied so transparent images do not bleed their color\n vec4 c = ball + bg * (1.0 - ball.a);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The outgoing image wraps itself onto a shaded ball that shrinks and rolls away, revealing the incoming image under its shadow","tags":["3d","sphere","roll","wrap","shape"],"params":{"direction":{"type":"vec2","default":[1,0],"description":"Direction the ball rolls away toward"},"size":{"type":"float","default":0.3,"min":0.1,"max":0.5,"description":"Radius of the ball once wrapped, relative to the shorter side of the frame"},"shading":{"type":"float","default":0.6,"min":0,"max":1,"description":"Strength of the light and shading on the ball"},"shadow":{"type":"float","default":0.5,"min":0,"max":1,"description":"Darkness of the soft shadow the ball casts on the incoming image"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:11:57 +0100","updatedAt":"Wed, 4 Nov 2026 20:11:57 +0100"},{"name":"SpiralBlockWipe","paramsTypes":{"grid":"ivec2","inward":"bool","clockwise":"bool","smoothness":"float"},"defaultParams":{"grid":[8,6],"inward":true,"clockwise":true,"smoothness":0.05},"glsl":"// Author: gre\n// License: MIT\n// Description: Square blocks switch to the incoming image one after another along a rectangular spiral, from the border inward or from the center outward\n// Tags: wipe, grid, blocks, spiral\n\n// @param Number of blocks (columns, rows)\nuniform ivec2 grid; // = ivec2(8, 6)\n// @param Spiral from the top left corner inward; false spirals from the center outward, ending at the top left corner\nuniform bool inward; // = true\n// @param Turn clockwise; false turns counterclockwise\nuniform bool clockwise; // = true\n// @range(0, 0.5) Duration of each block's fade, as a fraction of the transition\nuniform float smoothness; // = 0.05\n\n// Position of the cell c (from the top left corner) along the spiral that runs clockwise\n// from the top left corner of a n.x by n.y grid inward, from 0 to n.x * n.y - 1\nfloat spiralIndex(vec2 c, vec2 n) {\n // ring: distance to the border, in cells\n float k = min(min(c.x, c.y), min(n.x - 1.0 - c.x, n.y - 1.0 - c.y));\n // size of the ring, and the cell's position in it\n vec2 s = n - 2.0 * k;\n vec2 l = c - k;\n // the outer rings come first\n float before = n.x * n.y - s.x * s.y;\n float along;\n if (l.y == 0.0) along = l.x; // top side, to the right\n else if (l.x == s.x - 1.0) along = s.x - 1.0 + l.y; // right side, down\n else if (l.y == s.y - 1.0) along = 2.0 * s.x + s.y - 3.0 - l.x; // bottom side, to the left\n else along = 2.0 * (s.x - 1.0) + 2.0 * (s.y - 1.0) - l.y; // left side, up\n return before + along;\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n vec2 n = max(vec2(grid), vec2(1.0));\n // the cell, counted from the top left corner\n vec2 c = min(floor(vec2(uv.x, 1.0 - uv.y) * n), n - 1.0);\n // the transposed spiral turns the other way from the same corner; walking the spiral\n // outward reverses it too\n if (clockwise != inward) {\n c = c.yx;\n n = n.yx;\n }\n float count = n.x * n.y;\n float i = spiralIndex(c, n);\n if (!inward) i = count - 1.0 - i;\n\n // the blocks switch one after another, each one fading in over w blocks of time, the first\n // fade starting at 0 and the last ending at 1; without fade, block i switches at (i + 0.5) / count\n float w = max(smoothness, 0.0) * count;\n float o = max(0.5 * (1.0 - w), 0.0);\n float x = progress * (count - 1.0 + 2.0 * o + w) - i - o;\n float m = w > 0.0 ? smoothstep(0.0, w, x) : step(0.0, x);\n\n if (m <= 0.0) return getFromColor(uv);\n if (m >= 1.0) return getToColor(uv);\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 col = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n return col.a > 0.0 ? vec4(col.rgb / col.a, col.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Square blocks switch to the incoming image one after another along a rectangular spiral, from the border inward or from the center outward","tags":["wipe","grid","blocks","spiral"],"params":{"grid":{"type":"ivec2","default":[8,6],"description":"Number of blocks (columns, rows)"},"inward":{"type":"bool","default":true,"description":"Spiral from the top left corner inward; false spirals from the center outward, ending at the top left corner"},"clockwise":{"type":"bool","default":true,"description":"Turn clockwise; false turns counterclockwise"},"smoothness":{"type":"float","default":0.05,"min":0,"max":0.5,"description":"Duration of each block's fade, as a fraction of the transition"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:58:21 +0100","updatedAt":"Wed, 4 Nov 2026 20:58:21 +0100"},{"name":"SpiralWipe","paramsTypes":{"turns":"float","smoothness":"float","clockwise":"bool"},"defaultParams":{"turns":3,"smoothness":0.05,"clockwise":true},"glsl":"// Author: gre\n// License: MIT\n// Description: A spiral arm winds out from the center and widens to reveal the incoming image\n// Tags: shape, wipe, radial\n\n#define PI 3.141592653589793\n\n// @range(2, 8) Number of turns of the spiral\nuniform float turns; // = 3.0\n// @range(0, 0.5) Softness of the arm's edges\nuniform float smoothness; // = 0.05\n// @param Wind clockwise; false winds counterclockwise\nuniform bool clockwise; // = true\n\n// Coverage of the arm turn at position s (in turns along the spiral), d away from its middle line\nfloat arm (float s, float d) {\n // The tip reaches the frame's corners at 60% of the transition, and the whole arm widens until the end\n float end = -0.5 + (turns + 0.5) / 0.6;\n float tip = mix(-0.5, end, progress);\n s = max(s, -0.5);\n float width = sqrt(clamp((tip - s) / max(end - s, 0.001), 0.0, 1.0));\n // Edge softness in arm widths, at least a pixel wide\n float e = smoothness + 0.005 * turns;\n return smoothstep(0.0, e, width * (0.5 + e) - d);\n}\n\nvec4 transition (vec2 uv) {\n // Square pixels, normalized so the frame's corners are at distance 1\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0) / (0.5 * length(vec2(ratio, 1.0)));\n // Fraction of a turn, starting at the top\n float a = dot(q, q) < 1e-12 ? 0.0 : atan(q.x, q.y) / (2.0 * PI);\n a = fract(clockwise ? a : -a);\n // Radius in turns of the spiral, and the arm turn the point is in\n float w = length(q) * turns - a;\n float n = floor(w);\n float f = w - n;\n // The arm turns around it can overlap it near the edges\n float m = max(arm(n + a, abs(f - 0.5)), max(arm(n + 1.0 + a, 1.5 - f), arm(n - 1.0 + a, f + 0.5)));\n return mix(getFromColor(uv), getToColor(uv), m);\n}\n","author":"gre","license":"MIT","description":"A spiral arm winds out from the center and widens to reveal the incoming image","tags":["shape","wipe","radial"],"params":{"turns":{"type":"float","default":3,"min":2,"max":8,"description":"Number of turns of the spiral"},"smoothness":{"type":"float","default":0.05,"min":0,"max":0.5,"description":"Softness of the arm's edges"},"clockwise":{"type":"bool","default":true,"description":"Wind clockwise; false winds counterclockwise"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:17:51 +0100","updatedAt":"Sat, 31 Oct 2026 18:17:51 +0100"},{"name":"SplatterWipe","paramsTypes":{"splats":"float","spikiness":"float","droplets":"float","drips":"float","rim":"float","seed":"float"},"defaultParams":{"splats":4,"spikiness":0.6,"droplets":0.6,"drips":0.5,"rim":0.5,"seed":3},"glsl":"// Author: gre\n// License: MIT\n// Description: Splats of paint land one after another, each popping in with a spiky outline, flung droplets and a few drips running down, revealing the incoming image until they cover the frame\n// Tags: paint, splash, organic, reveal\n\n// @range(2, 10, 1) Number of splats across the frame\nuniform float splats; // = 4.0\n// @range(0, 1) How long the spikes around each splat are\nuniform float spikiness; // = 0.6\n// @range(0, 1) How many droplets are flung around each splat\nuniform float droplets; // = 0.6\n// @range(0, 1) How far the paint drips run down\nuniform float drips; // = 0.5\n// @range(0, 1) How dark and glossy the rim of the splats is\nuniform float rim; // = 0.5\n// @param Random seed for the splats\nuniform float seed; // = 3.0\n\nconst float PI = 3.141592653589793;\n// number of spikes around a splat\nconst float SPIKES = 14.0;\n// furthest reach of the shapes of a splat from its center, in cells. Splats are looked for in the 3x3 cells\n// around a pixel, and the center of a splat 2 cells away is more than 1.35 cells away; on top of REACH, the\n// smooth unions add up to 0.02 and the antialiasing 0.025 (at 10 splats), which leaves a margin of 0.055\n// so that no splat is ever cut by the search\nconst float REACH = 1.25;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\n// smooth noise around a splat, wrapping over a full turn (t in 0..1)\nfloat turnNoise(float t, float n, vec2 key) {\n float x = t * n;\n float i = floor(x);\n float f = x - i;\n float a = hash12(key + vec2(mod(i, n), 61.0));\n float b = hash12(key + vec2(mod(i + 1.0, n), 61.0));\n return mix(a, b, f * f * (3.0 - 2.0 * f));\n}\n\n// smooth union of two signed distances (> 0 inside)\nfloat smax(float a, float b, float k) {\n float h = max(k - abs(a - b), 0.0) / k;\n return max(a, b) + h * h * k * 0.25;\n}\n\n// signed distance (approximately, in cells, > 0 inside) to the splat of a grid cell\nfloat splat(vec2 q, vec2 cell, vec2 key) {\n float t0 = 0.01 + 0.6 * hash12(key + vec2(3.0, 0.0)); // when it lands\n if (progress <= t0) return -1.0;\n vec2 c = cell + 0.5 + 0.3 * (vec2(hash12(key + vec2(5.0, 1.0)), hash12(key + vec2(9.0, 2.0))) - 0.5);\n vec2 d = q - c;\n float l = length(d);\n // nothing of the splat reaches this far (its distance there would be below -0.08 anyway)\n if (l > REACH + 0.1) return -1.0;\n // a fast pop-in, then the paint slowly spreads until it covers its whole cell\n float pop = clamp((progress - t0) / 0.08, 0.0, 1.0);\n pop = 1.0 - (1.0 - pop) * (1.0 - pop) * (1.0 - pop);\n float x = clamp((progress - t0) / (0.96 - t0), 0.0, 1.0);\n float grow = x * x * x;\n float r0 = 0.42 + 0.2 * hash12(key + vec2(11.0, 3.0));\n // the farthest corner of the cell is at most 0.65 * sqrt(2) ~ 0.92 cells away, and the body dents by 6% at most in the end\n float rc = mix(r0 * pop, 1.03, grow);\n\n float a = l > 1e-5 ? atan(d.y, d.x) / (2.0 * PI) + 0.5 : 0.0;\n // an irregular body\n float lumps = mix(0.3, 0.06, grow) * (turnNoise(a, 5.0, key) - 0.5) + mix(0.18, 0.06, grow) * (turnNoise(a, 19.0, key + 3.0) - 0.5);\n float f = rc * (1.0 + lumps) - l;\n\n // a spike in each slice of the turn: a ray that tapers from a wide base, the long ones ending in a bead;\n // the slices on both sides are looked at too, as their spikes can lean over the boundary\n float s = floor(a * SPIKES);\n float spike = -1.0;\n for (int k = -1; k <= 1; k++) {\n float sl = s + float(k);\n vec2 sk = key + vec2(mod(sl, SPIKES), 17.0);\n float h = hash12(sk);\n float w0 = (0.022 + 0.03 * hash12(sk + 1.5)) * pop;\n float len = max(min(spikiness * (0.06 + 0.6 * h * h) * pop, REACH - 1.2 * w0 - rc), 0.0);\n if (len > 0.0) {\n // short spikes are thin too, so that no spikiness leaves a clean body\n float w = w0 * min(len / 0.06, 1.0);\n float ang = (sl + 0.5 + 0.4 * (hash12(sk + 0.5) - 0.5)) / SPIKES * 2.0 * PI - PI;\n vec2 dir = vec2(cos(ang), sin(ang));\n float along = dot(d, dir);\n float across = abs(d.x * dir.y - d.y * dir.x);\n float u = clamp((along - rc) / len, 0.0, 1.0);\n float ray = min(w * (1.0 - 0.7 * u) - across, rc + len - along);\n if (h > 0.5) ray = max(ray, w * 1.2 - length(d - dir * (rc + len)));\n spike = max(spike, ray);\n }\n }\n f = smax(f, spike, 0.08);\n\n // droplets flung out around the splat\n for (int j = 0; j < 5; j++) {\n vec2 dk = key + vec2(float(j), 29.0);\n float hr = hash12(dk + 0.5);\n float rad = (0.015 + 0.05 * hr * hr) * clamp(droplets * 5.0 - float(j), 0.0, 1.0) * pop;\n if (rad > 0.0) {\n float da = 2.0 * PI * hash12(dk);\n float dist = min(r0 + 0.08 + 0.5 * hash12(dk + 1.5), REACH - rad) * mix(0.5, 1.0, pop);\n f = max(f, rad - length(d - dist * vec2(cos(da), sin(da))));\n }\n }\n\n // drips running down from the bottom of the splat\n if (drips > 0.0) {\n float run = clamp((progress - t0 - 0.03) / 0.45, 0.0, 1.0);\n run = run * (2.0 - run);\n for (int j = 0; j < 2; j++) {\n vec2 dk = key + vec2(float(j), 43.0);\n float xo = (hash12(dk) - 0.5) * r0;\n float dw = (0.03 + 0.02 * hash12(dk + 0.5)) * pop;\n float top = sqrt(r0 * r0 - xo * xo) * pop;\n float bottom = min(top + drips * (0.25 + 0.75 * hash12(dk + 1.5)) * run, sqrt(REACH * REACH - xo * xo) - 1.6 * dw);\n float dx = abs(d.x - xo);\n float drip = min(dw - dx, min(d.y + bottom, -d.y));\n float tip = dw * 1.4 - length(vec2(dx, d.y + bottom + 0.2 * dw));\n f = smax(f, max(drip, tip), 0.05);\n }\n }\n return f;\n}\n\nvec4 transition(vec2 uv) {\n float n = max(1.0, floor(splats + 0.5));\n float cellSize = max(ratio, 1.0) / n;\n vec2 q = vec2(uv.x * ratio, uv.y) / cellSize; // in cells\n vec2 base = floor(q);\n vec2 sd = seed * vec2(7.0, 13.0);\n float f = -1.0;\n for (int j = -1; j <= 1; j++) {\n for (int i = -1; i <= 1; i++) {\n vec2 cell = base + vec2(float(i), float(j));\n f = max(f, splat(q, cell, cell + sd));\n }\n }\n float aa = 0.0025 / cellSize; // about a pixel or two, in cells\n float inside = smoothstep(-aa, aa, f);\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n // thick paint: a darker rim with a thin glossy line just inside it, gone once the frame is covered\n float e = clamp(f / 0.045, 0.0, 1.0);\n float amount = rim * (1.0 - smoothstep(0.75, 1.0, progress));\n float dark = (1.0 - e) * (1.0 - e) * 0.6;\n float gloss = smoothstep(0.2, 0.4, e) * (1.0 - smoothstep(0.4, 0.7, e)) * 0.3;\n to.rgb = mix(to.rgb * (1.0 - dark * amount), vec3(1.0), gloss * amount * to.a);\n return mix(from, to, inside);\n}\n","author":"gre","license":"MIT","description":"Splats of paint land one after another, each popping in with a spiky outline, flung droplets and a few drips running down, revealing the incoming image until they cover the frame","tags":["paint","splash","organic","reveal"],"params":{"splats":{"type":"float","default":4,"min":2,"max":10,"step":1,"description":"Number of splats across the frame"},"spikiness":{"type":"float","default":0.6,"min":0,"max":1,"description":"How long the spikes around each splat are"},"droplets":{"type":"float","default":0.6,"min":0,"max":1,"description":"How many droplets are flung around each splat"},"drips":{"type":"float","default":0.5,"min":0,"max":1,"description":"How far the paint drips run down"},"rim":{"type":"float","default":0.5,"min":0,"max":1,"description":"How dark and glossy the rim of the splats is"},"seed":{"type":"float","default":3,"description":"Random seed for the splats"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 22:33:20 +0100","updatedAt":"Mon, 2 Nov 2026 22:33:20 +0100"},{"name":"SplitSlideInHorizontal","paramsTypes":{"reverse":"bool"},"defaultParams":{"reverse":false},"glsl":"// Author: OllyOllyOlly\n// License: MIT\n// Description: The incoming image slides in as two halves moving horizontally in opposite directions\n// Tags: slide, split, horizontal\n\n// @param Swap the directions of the halves\nuniform bool reverse; // = false\n\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n float modifier = reverse ? -1.0 : 1.0;\n vec2 toP = (uv.y > 0.5) ?\n vec2((uv.x - (progress * modifier)) + modifier, uv.y) :\n vec2((uv.x + (progress * modifier)) - modifier, uv.y);\n\n vec2 fromP = uv;\n\n return inBounds(toP) ? getToColor(toP) : getFromColor(fromP);\n}\n","author":"OllyOllyOlly","license":"MIT","description":"The incoming image slides in as two halves moving horizontally in opposite directions","tags":["slide","split","horizontal"],"params":{"reverse":{"type":"bool","default":false,"description":"Swap the directions of the halves"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"SplitSlideInOutHorizontal","paramsTypes":{"reverse":"bool"},"defaultParams":{"reverse":false},"glsl":"// Author: OllyOllyOlly\n// License: MIT\n// Description: The halves of both images slide horizontally in opposite directions, out and in at once\n// Tags: slide, split, horizontal\n\n// @param Swap the directions of the halves\nuniform bool reverse; // = false\n\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n float modifier = (uv.y > 0.5 ? 1.0 : -1.0) * (reverse ? -1.0 : 1.0) ;\n vec2 fromP = vec2(uv.x + (progress * modifier), uv.y);\n vec2 toP = vec2((uv.x + (progress * modifier)) - modifier, uv.y);\n\n return inBounds(fromP) ? getFromColor(fromP) : getToColor(toP);\n}\n","author":"OllyOllyOlly","license":"MIT","description":"The halves of both images slide horizontally in opposite directions, out and in at once","tags":["slide","split","horizontal"],"params":{"reverse":{"type":"bool","default":false,"description":"Swap the directions of the halves"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"SplitSlideInOutVertical","paramsTypes":{"reverse":"bool"},"defaultParams":{"reverse":false},"glsl":"// Author: OllyOllyOlly\n// License: MIT\n// Description: The halves of both images slide vertically in opposite directions, out and in at once\n// Tags: slide, split, vertical\n\n// @param Swap the directions of the halves\nuniform bool reverse; // = false\n\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n float modifier = (uv.x > 0.5 ? 1.0 : -1.0) * (reverse ? -1.0 : 1.0) ;\n vec2 fromP = vec2(uv.x, uv.y + (progress * modifier));\n vec2 toP = vec2(uv.x, (uv.y + (progress * modifier)) - modifier);\n\n return inBounds(fromP) ? getFromColor(fromP) : getToColor(toP);\n}\n","author":"OllyOllyOlly","license":"MIT","description":"The halves of both images slide vertically in opposite directions, out and in at once","tags":["slide","split","vertical"],"params":{"reverse":{"type":"bool","default":false,"description":"Swap the directions of the halves"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"SplitSlideInVertical","paramsTypes":{"reverse":"bool"},"defaultParams":{"reverse":false},"glsl":"// Author: OllyOllyOlly\n// License: MIT\n// Description: The incoming image slides in as two halves moving vertically in opposite directions\n// Tags: slide, split, vertical\n\n// @param Swap the directions of the halves\nuniform bool reverse; // = false\n\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n float modifier = reverse ? -1.0 : 1.0;\n vec2 p = (uv.x > 0.5) ?\n vec2(uv.x, (uv.y - (progress * modifier)) + modifier) :\n vec2(uv.x, (uv.y + (progress * modifier)) - modifier);\n\n return inBounds(p) ? getToColor(p) : getFromColor(uv);\n}\n","author":"OllyOllyOlly","license":"MIT","description":"The incoming image slides in as two halves moving vertically in opposite directions","tags":["slide","split","vertical"],"params":{"reverse":{"type":"bool","default":false,"description":"Swap the directions of the halves"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"SplitSlideOutHorizontal","paramsTypes":{"reverse":"bool"},"defaultParams":{"reverse":false},"glsl":"// Author: OllyOllyOlly\n// License: MIT\n// Description: The outgoing image slides out as two halves moving horizontally in opposite directions\n// Tags: slide, split, horizontal\n\n// @param Swap the directions of the halves\nuniform bool reverse; // = false\n\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n float modifier = (uv.y > 0.5 ? 1.0 : -1.0) * (reverse ? -1.0 : 1.0) ;\n vec2 p = vec2(uv.x + (progress * modifier), uv.y);\n\n return inBounds(p) ? getFromColor(p) : getToColor(uv);\n}\n","author":"OllyOllyOlly","license":"MIT","description":"The outgoing image slides out as two halves moving horizontally in opposite directions","tags":["slide","split","horizontal"],"params":{"reverse":{"type":"bool","default":false,"description":"Swap the directions of the halves"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"SplitSlideOutVertical","paramsTypes":{"reverse":"bool"},"defaultParams":{"reverse":false},"glsl":"// Author: OllyOllyOlly\n// License: MIT\n// Description: The outgoing image slides out as two halves moving vertically in opposite directions\n// Tags: slide, split, vertical\n\n// @param Swap the directions of the halves\nuniform bool reverse; // = false\n\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n float modifier = (uv.x > 0.5 ? 1.0 : -1.0) * (reverse ? -1.0 : 1.0) ;\n vec2 p = vec2(uv.x, uv.y + (progress * modifier));\n\n return inBounds(p) ? getFromColor(p) : getToColor(uv);\n}\n","author":"OllyOllyOlly","license":"MIT","description":"The outgoing image slides out as two halves moving vertically in opposite directions","tags":["slide","split","vertical"],"params":{"reverse":{"type":"bool","default":false,"description":"Swap the directions of the halves"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"SquaresWipe","paramsTypes":{"squares":"ivec2","direction":"vec2","smoothness":"float"},"defaultParams":{"squares":[10,10],"direction":[1,-0.5],"smoothness":1.6},"glsl":"// Author: gre\n// License: MIT\n// Description: Squares grow along a diagonal sweep to reveal the incoming image\n// Tags: squares, grid, wipe, directional\n \n// @param Number of squares (columns, rows)\nuniform ivec2 squares;// = ivec2(10,10)\n// @param Direction of the sweep\nuniform vec2 direction;// = vec2(1.0, -0.5)\n// @param Softness of the sweep\nuniform float smoothness; // = 1.6\n\nconst vec2 center = vec2(0.5, 0.5);\nvec4 transition (vec2 p) {\n vec2 v = normalize(direction);\n v /= abs(v.x)+abs(v.y);\n float d = v.x * center.x + v.y * center.y;\n float offset = smoothness;\n float pr = smoothstep(-offset, 0.0, v.x * p.x + v.y * p.y - (d-0.5+progress*(1.+offset)));\n vec2 squarep = fract(p*vec2(squares));\n vec2 squaremin = vec2(pr/2.0);\n vec2 squaremax = vec2(1.0 - pr/2.0);\n float a = (1.0 - step(progress, 0.0)) * step(squaremin.x, squarep.x) * step(squaremin.y, squarep.y) * step(squarep.x, squaremax.x) * step(squarep.y, squaremax.y);\n return mix(getFromColor(p), getToColor(p), a);\n}\n","author":"gre","license":"MIT","description":"Squares grow along a diagonal sweep to reveal the incoming image","tags":["squares","grid","wipe","directional"],"params":{"squares":{"type":"ivec2","default":[10,10],"description":"Number of squares (columns, rows)"},"direction":{"type":"vec2","default":[1,-0.5],"description":"Direction of the sweep"},"smoothness":{"type":"float","default":1.6,"description":"Softness of the sweep"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Squeeze","paramsTypes":{"colorSeparation":"float"},"defaultParams":{"colorSeparation":0.04},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image is squeezed into a line with color separation, revealing the incoming one\n// Tags: squeeze, chromatic, vertical\n \n// @param Amount of color separation\nuniform float colorSeparation; // = 0.04\n \nvec4 transition (vec2 uv) {\n float y = 0.5 + (uv.y-0.5) / (1.0-progress);\n if (y < 0.0 || y > 1.0) {\n return getToColor(uv);\n }\n else {\n vec2 fp = vec2(uv.x, y);\n vec2 off = progress * vec2(0.0, colorSeparation);\n vec4 c = getFromColor(fp);\n vec4 cn = getFromColor(fp - off);\n vec4 cp = getFromColor(fp + off);\n return vec4(cn.r, c.g, cp.b, c.a);\n }\n}\n","author":"gre","license":"MIT","description":"The outgoing image is squeezed into a line with color separation, revealing the incoming one","tags":["squeeze","chromatic","vertical"],"params":{"colorSeparation":{"type":"float","default":0.04,"description":"Amount of color separation"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"StarWipe","paramsTypes":{"border_thickness":"float","star_rotation":"float","border_color":"vec4","star_center":"vec2"},"defaultParams":{"border_thickness":0.01,"star_rotation":0.75,"border_color":[1,1,1,1],"star_center":[0.5,0.5]},"glsl":"// Author: Ben Lucas\n// License: MIT\n// Description: A growing star reveals the incoming image\n// Tags: wipe, shape, star\n#define PI 3.141592653589793\n#define STAR_ANGLE 1.2566370614359172\n\n// @param Thickness of the star's border\nuniform float border_thickness;// = 0.01\nuniform float star_rotation;// = 0.75\n// @color Color of the star's border\nuniform vec4 border_color; // = vec4(1.0)\n// @param Center of the star\nuniform vec2 star_center;// = vec2(0.5)\n\nvec2 rotate(vec2 v, float theta) {\n float cosTheta = cos(theta);\n float sinTheta = sin(theta);\n\n return vec2(\n cosTheta * v.x - sinTheta * v.y,\n sinTheta * v.x + cosTheta * v.y\n );\n}\n\nbool inStar(vec2 uv, vec2 center, float radius){\n vec2 uv_centered = uv - center;\n uv_centered = rotate(uv_centered, star_rotation * STAR_ANGLE);\n float theta = atan(uv_centered.y, uv_centered.x) + PI;\n\n vec2 uv_rotated = rotate(uv_centered, -STAR_ANGLE * (floor(theta / STAR_ANGLE) + 0.5));\n\n float slope = 0.3;\n if(uv_rotated.y > 0.0){\n return (radius + uv_rotated.x * slope > uv_rotated.y);\n } else {\n return (-radius - uv_rotated.x * slope < uv_rotated.y);\n }\n}\n\nvec4 transition (vec2 uv) {\n float progressScaled = (2.0 * border_thickness + 1.0) * progress - border_thickness;\n if(inStar(uv, star_center, progressScaled)){\n return getToColor(uv);\n } else if(inStar(uv, star_center, progressScaled+border_thickness)){\n return border_color;\n } else {\n return getFromColor(uv);\n }\n}\n","author":"Ben Lucas","license":"MIT","description":"A growing star reveals the incoming image","tags":["wipe","shape","star"],"params":{"border_thickness":{"type":"float","default":0.01,"description":"Thickness of the star's border"},"star_rotation":{"type":"float","default":0.75},"border_color":{"type":"vec4","default":[1,1,1,1],"color":true,"description":"Color of the star's border"},"star_center":{"type":"vec2","default":[0.5,0.5],"description":"Center of the star"}},"textures":[],"createdAt":"Wed, 1 Apr 2026 10:31:54 -0700","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"StaticFade","paramsTypes":{"n_noise_pixels":"float","static_luminosity":"float"},"defaultParams":{"n_noise_pixels":200,"static_luminosity":0.8},"glsl":"// Author: Ben Lucas\n// License: MIT\n// Description: Cuts to the incoming image halfway, hidden behind a burst of TV static\n// Tags: static, noise, retro\n\nuniform float n_noise_pixels ; // = 200.0\nuniform float static_luminosity ; // = 0.8\n\nfloat rnd (vec2 st) {\n return fract(sin(dot(st.xy,\n vec2(10.5302340293,70.23492931)))*\n 12345.5453123);\n}\n\nvec4 staticNoise (vec2 st, float offset, float luminosity, float alpha) {\n float staticR = luminosity * rnd(st * vec2(offset * 2.0, offset * 3.0));\n float staticG = luminosity * rnd(st * vec2(offset * 3.0, offset * 5.0));\n float staticB = luminosity * rnd(st * vec2(offset * 5.0, offset * 7.0));\n return vec4(staticR, staticG, staticB, alpha);\n}\n\nfloat staticIntensity(float t)\n{\n float transitionProgress = abs(2.0*(t-0.5));\n float transformedThreshold =1.2*(1.0 - transitionProgress)-0.1;\n return min(1.0, transformedThreshold);\n}\n \nvec4 transition (vec2 uv) {\n\n float baseMix = step(0.5, progress);\n vec4 transitionMix = mix(\n getFromColor(uv),\n getToColor(uv),\n baseMix\n );\n \n vec2 uvStatic = floor(uv * n_noise_pixels)/n_noise_pixels;\n \n vec4 staticColor = staticNoise(uvStatic, progress, static_luminosity, transitionMix.a); // static where the image is\n\n float staticThresh = staticIntensity(progress);\n float staticMix = step(rnd(uvStatic), staticThresh);\n\n return mix(transitionMix, staticColor, staticMix);\n}\n","author":"Ben Lucas","license":"MIT","description":"Cuts to the incoming image halfway, hidden behind a burst of TV static","tags":["static","noise","retro"],"params":{"n_noise_pixels":{"type":"float","default":200},"static_luminosity":{"type":"float","default":0.8}},"textures":[],"createdAt":"Fri, 2 Jun 2023 04:27:43 -0400","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"StaticWipe","paramsTypes":{"u_transitionUpToDown":"bool","u_max_static_span":"float"},"defaultParams":{"u_transitionUpToDown":true,"u_max_static_span":0.5},"glsl":"// Author: Ben Lucas\n// License: MIT\n// Description: A wipe from top to bottom with a band of TV static at its edge\n// Tags: wipe, static, noise, vertical\n\n#define PI 3.14159265359\n\nfloat rnd (vec2 st) {\n return fract(sin(dot(st.xy,\n vec2(10,70)))*\n 12345.5453123);\n}\n\n// @param Wipe from top to bottom; false wipes from bottom to top\nuniform bool u_transitionUpToDown; // = true\n// @param Maximum height of the static band\nuniform float u_max_static_span; // = 0.5\n\nvec4 transition (vec2 uv) {\n \n\n float span = u_max_static_span*pow(sin(PI*progress),0.5);\n \n float transitionEdge = u_transitionUpToDown ? 1.0-uv.y : uv.y;\n float mixRatio = 1.0 - step(progress, transitionEdge);\n\n vec4 transitionMix = mix(\n getFromColor(uv),\n getToColor(uv),\n mixRatio\n );\n \n float noiseEnvelope = smoothstep(progress-span, progress, transitionEdge) * (1.0 - smoothstep(progress, progress + span, transitionEdge));\n vec4 noise = vec4(vec3(rnd(uv*(1.0+progress))), transitionMix.a); // static where the image is\n \n\n return mix(transitionMix, noise, noiseEnvelope);\n}\n","author":"Ben Lucas","license":"MIT","description":"A wipe from top to bottom with a band of TV static at its edge","tags":["wipe","static","noise","vertical"],"params":{"u_transitionUpToDown":{"type":"bool","default":true,"description":"Wipe from top to bottom; false wipes from bottom to top"},"u_max_static_span":{"type":"float","default":0.5,"description":"Maximum height of the static band"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"StereoViewer","paramsTypes":{"zoom":"float","corner_radius":"float"},"defaultParams":{"zoom":0.88,"corner_radius":0.22},"glsl":"// Tunable parameters\n// How much to zoom (out) for the effect ~ 0.5 - 1.0\n// @range(0.5, 1) How much the images zoom out\nuniform float zoom; // = 0.88\n// Corner radius as a fraction of the image height\nuniform float corner_radius; // = 0.22\n\n// Author: Ted Schundler\n// License: BSD 2 Clause\n// Description: Both images shrink into rounded cards that swap, like a stereo viewer toy\n// Tags: cards, zoom, retro\n// Free for use and modification by anyone with credit\n\n// Copyright (c) 2016, Theodore K Schundler\n// All rights reserved.\n\n// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n// 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n///////////////////////////////////////////////////////////////////////////////\n// Stereo Viewer Toy Transition //\n// //\n// Inspired by ViewMaster / Image3D image viewer devices. //\n// This effect is similar to what you see when you press the device's lever. //\n// There is a quick zoom in / out to make the transition 'valid' for GLSL.io //\n///////////////////////////////////////////////////////////////////////////////\n\nconst vec4 black = vec4(0.0); // where no image is drawn: transparent\nconst vec2 c00 = vec2(0.0, 0.0); // the four corner points\nconst vec2 c01 = vec2(0.0, 1.0);\nconst vec2 c11 = vec2(1.0, 1.0);\nconst vec2 c10 = vec2(1.0, 0.0);\n\n// Check if a point is within a given corner\nbool in_corner(vec2 p, vec2 corner, vec2 radius) {\n // determine the direction we want to be filled\n vec2 axis = (c11 - corner) - corner;\n\n // warp the point so we are always testing the bottom left point with the\n // circle centered on the origin\n p = p - (corner + axis * radius);\n p *= axis / radius;\n return (p.x > 0.0 && p.y > -1.0) || (p.y > 0.0 && p.x > -1.0) || dot(p, p) < 1.0;\n}\n\n// Check all four corners\n// return a float for v2 for anti-aliasing?\nbool test_rounded_mask(vec2 p, vec2 corner_size) {\n return\n in_corner(p, c00, corner_size) &&\n in_corner(p, c01, corner_size) &&\n in_corner(p, c10, corner_size) &&\n in_corner(p, c11, corner_size);\n}\n\n// Screen blend mode - https://en.wikipedia.org/wiki/Blend_modes\n// This more closely approximates what you see than linear blending\nvec4 screen(vec4 a, vec4 b) {\n return 1.0 - (1.0 - a) * (1.0 -b);\n}\n\n// Given RGBA, find a value that when screened with itself\n// will yield the original value.\nvec4 unscreen(vec4 c) {\n return 1.0 - sqrt(1.0 - c);\n}\n\n// Grab a pixel, only if it isn't masked out by the rounded corners\nvec4 sample_with_corners_from(vec2 p, vec2 corner_size) {\n p = (p - 0.5) / zoom + 0.5;\n if (!test_rounded_mask(p, corner_size)) {\n return black;\n }\n return unscreen(getFromColor(p));\n}\n\nvec4 sample_with_corners_to(vec2 p, vec2 corner_size) {\n p = (p - 0.5) / zoom + 0.5;\n if (!test_rounded_mask(p, corner_size)) {\n return black;\n }\n return unscreen(getToColor(p));\n}\n\n// special sampling used when zooming - extra zoom parameter and don't unscreen\nvec4 simple_sample_with_corners_from(vec2 p, vec2 corner_size, float zoom_amt) {\n p = (p - 0.5) / (1.0 - zoom_amt + zoom * zoom_amt) + 0.5;\n if (!test_rounded_mask(p, corner_size)) {\n return black;\n }\n return getFromColor(p);\n}\n\nvec4 simple_sample_with_corners_to(vec2 p, vec2 corner_size, float zoom_amt) {\n p = (p - 0.5) / (1.0 - zoom_amt + zoom * zoom_amt) + 0.5;\n if (!test_rounded_mask(p, corner_size)) {\n return black;\n }\n return getToColor(p);\n}\n\n// Basic 2D affine transform matrix helpers\n// These really shouldn't be used in a fragment shader - I should work out the\n// the math for a translate & rotate function as a pair of dot products instead\n\nmat3 rotate2d(float angle, float ratio) {\n float s = sin(angle);\n float c = cos(angle);\n return mat3(\n c, s ,0.0,\n -s, c, 0.0,\n 0.0, 0.0, 1.0);\n}\n\nmat3 translate2d(float x, float y) {\n return mat3(\n 1.0, 0.0, 0,\n 0.0, 1.0, 0,\n -x, -y, 1.0);\n}\n\nmat3 scale2d(float x, float y) {\n return mat3(\n x, 0.0, 0,\n 0.0, y, 0,\n 0, 0, 1.0);\n}\n\n// Split an image and rotate one up and one down along off screen pivot points\nvec4 get_cross_rotated(vec3 p3, float angle, vec2 corner_size, float ratio) {\n angle = angle * angle; // easing\n angle /= 2.4; // works out to be a good number of radians\n\n mat3 center_and_scale = translate2d(-0.5, -0.5) * scale2d(1.0, ratio);\n mat3 unscale_and_uncenter = scale2d(1.0, 1.0/ratio) * translate2d(0.5,0.5);\n mat3 slide_left = translate2d(-2.0,0.0);\n mat3 slide_right = translate2d(2.0,0.0);\n mat3 rotate = rotate2d(angle, ratio);\n\n mat3 op_a = center_and_scale * slide_right * rotate * slide_left * unscale_and_uncenter;\n mat3 op_b = center_and_scale * slide_left * rotate * slide_right * unscale_and_uncenter;\n\n vec4 a = sample_with_corners_from((op_a * p3).xy, corner_size);\n vec4 b = sample_with_corners_from((op_b * p3).xy, corner_size);\n\n return screen(a, b);\n}\n\n// Image stays put, but this time move two masks\nvec4 get_cross_masked(vec3 p3, float angle, vec2 corner_size, float ratio) {\n angle = 1.0 - angle;\n angle = angle * angle; // easing\n angle /= 2.4;\n\n vec4 img;\n\n mat3 center_and_scale = translate2d(-0.5, -0.5) * scale2d(1.0, ratio);\n mat3 unscale_and_uncenter = scale2d(1.0 / zoom, 1.0 / (zoom * ratio)) * translate2d(0.5,0.5);\n mat3 slide_left = translate2d(-2.0,0.0);\n mat3 slide_right = translate2d(2.0,0.0);\n mat3 rotate = rotate2d(angle, ratio);\n\n mat3 op_a = center_and_scale * slide_right * rotate * slide_left * unscale_and_uncenter;\n mat3 op_b = center_and_scale * slide_left * rotate * slide_right * unscale_and_uncenter;\n\n bool mask_a = test_rounded_mask((op_a * p3).xy, corner_size);\n bool mask_b = test_rounded_mask((op_b * p3).xy, corner_size);\n\n if (mask_a || mask_b) {\n img = sample_with_corners_to(p3.xy, corner_size);\n return screen(mask_a ? img : black, mask_b ? img : black);\n } else {\n return black;\n }\n}\n\nvec4 transition(vec2 uv) {\n float a;\n vec2 p=uv.xy/vec2(1.0).xy;\n vec3 p3 = vec3(p.xy, 1.0); // for 2D matrix transforms\n\n // corner is warped to represent to size after mapping to 1.0, 1.0\n vec2 corner_size = vec2(corner_radius / ratio, corner_radius);\n\n if (progress <= 0.0) {\n // 0.0: start with the base frame always\n return getFromColor(p);\n } else if (progress < 0.1) {\n // 0.0-0.1: zoom out and add rounded corners\n a = progress / 0.1;\n return simple_sample_with_corners_from(p, corner_size * a, a);\n } else if (progress < 0.48) {\n // 0.1-0.48: Split original image apart\n a = (progress - 0.1)/0.38;\n return get_cross_rotated(p3, a, corner_size, ratio);\n } else if (progress < 0.9) {\n // 0.48-0.52: black\n // 0.52 - 0.9: unmask new image\n return get_cross_masked(p3, (progress - 0.52)/0.38, corner_size, ratio);\n } else if (progress < 1.0) {\n // zoom out and add rounded corners\n a = (1.0 - progress) / 0.1;\n return simple_sample_with_corners_to(p, corner_size * a, a);\n } else {\n // 1.0 end with base frame\n return getToColor(p);\n }\n}\n","author":"Ted Schundler","license":"BSD 2 Clause","description":"Both images shrink into rounded cards that swap, like a stereo viewer toy","tags":["cards","zoom","retro"],"params":{"zoom":{"type":"float","default":0.88,"min":0.5,"max":1,"description":"How much the images zoom out"},"corner_radius":{"type":"float","default":0.22}},"textures":[],"createdAt":"Tue, 20 Feb 2018 23:20:29 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"StretchSlide","paramsTypes":{"direction":"vec2","stretch":"float","bounce":"float"},"defaultParams":{"direction":[-1,0],"stretch":0.6,"bounce":0.6},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image stretches out long as it shoots away to one side, pulling in the incoming one squashed behind it, which overshoots and springs back to its shape\n// Tags: slide, stretch, squash, elastic, bounce, directional\n\n// @param Direction in which the images slide\nuniform vec2 direction; // = vec2(-1.0, 0.0)\n// @range(0, 1) How long the outgoing image stretches and how much the squashed incoming one bulges\nuniform float stretch; // = 0.6\n// @range(0, 1) How far the incoming image overshoots before it springs back to its shape\nuniform float bounce; // = 0.6\n\nconst float PI = 3.14159265;\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\nvec4 transition(vec2 uv) {\n float dl = length(direction);\n vec2 d = dl > 1e-6 ? direction / dl : vec2(-1.0, 0.0);\n vec2 n = vec2(-d.y, d.x);\n // s: position along the slide across the frame, from 0 (trailing side) to 1 (leading side)\n float ext = abs(d.x) + abs(d.y);\n vec2 q = uv - 0.5;\n float s = 0.5 + dot(q, d) / ext;\n float t = progress;\n\n // the slide accelerates into the landing (a smoothstep when there is no bounce)\n float land = mix(1.0, 0.5, bounce);\n float m = 3.0 * bounce; // speed at the landing, relative to a linear slide\n float x = clamp(t / land, 0.0, 1.0);\n float e = x * x * (3.0 - 2.0 * x) + m * x * x * (x - 1.0);\n // then a damped spring, starting at the landing speed, that comes to rest exactly at the end\n float w = 2.5 * PI;\n float u = clamp((t - land) / max(1.0 - land, 1e-4), 0.0, 1.0);\n float osc = m * (1.0 - land) / (land * w) * exp(-u) * sin(w * u) * (1.0 - u) * (1.0 - u);\n // past the landing the frame stays covered: the spring stretches the incoming image\n // along the slide, and squashes it back into a sideways bulge\n float len = e + max(osc, 0.0);\n float bulge = 1.0 - e + 3.0 * max(-osc, 0.0);\n\n // the incoming image is pinned at the trailing side and spans up to the seam\n float g = 1.0 + 0.6 * stretch * bulge;\n vec2 pt = q + d * (s / max(len, 1e-4) - s) * ext;\n pt -= n * dot(pt, n) * (1.0 - 1.0 / g);\n vec4 b = getToColor(mirror(pt + 0.5));\n\n // the outgoing image hangs from the seam and stretches out long ahead of it,\n // the most near the seam, where it is pulled\n float l = 1.0 + 4.0 * stretch * e;\n float k = clamp(1.6 * stretch * e, 0.0, 0.8);\n float y = max(s - e, 0.0) / l;\n // invert y = (1 + k) v - k v^2\n float v = 2.0 * y / ((1.0 + k) + sqrt((1.0 + k) * (1.0 + k) - 4.0 * k * y));\n vec4 a = getFromColor(mirror(q + d * (v - s) * ext + 0.5));\n\n // past the landing, only the incoming image is left\n return (s < len || t >= land) ? b : a;\n}\n","author":"gre","license":"MIT","description":"The outgoing image stretches out long as it shoots away to one side, pulling in the incoming one squashed behind it, which overshoots and springs back to its shape","tags":["slide","stretch","squash","elastic","bounce","directional"],"params":{"direction":{"type":"vec2","default":[-1,0],"description":"Direction in which the images slide"},"stretch":{"type":"float","default":0.6,"min":0,"max":1,"description":"How long the outgoing image stretches and how much the squashed incoming one bulges"},"bounce":{"type":"float","default":0.6,"min":0,"max":1,"description":"How far the incoming image overshoots before it springs back to its shape"}},"textures":[],"createdAt":"Tue, 3 Nov 2026 13:10:31 +0100","updatedAt":"Tue, 3 Nov 2026 13:10:31 +0100"},{"name":"StripDatamoshGlitch","paramsTypes":{"strength":"float","horizontalBars":"float","verticalSlits":"float","tear":"float","chroma":"float","residue":"float","noiseAmount":"float","scanAmount":"float","flashAmount":"float"},"defaultParams":{"strength":1,"horizontalBars":42,"verticalSlits":18,"tear":0.18,"chroma":0.032,"residue":0.62,"noiseAmount":0.16,"scanAmount":0.13,"flashAmount":0.2},"glsl":"// Author: bread\n// License: MIT\n// Description: A datamosh glitch: torn strips, chroma shifts and scan noise drag the outgoing image into the incoming one\n// Tags: glitch, datamosh, chromatic\n\nuniform float strength; // = 1.0\nuniform float horizontalBars; // = 42.0\nuniform float verticalSlits; // = 18.0\nuniform float tear; // = 0.18\nuniform float chroma; // = 0.032\nuniform float residue; // = 0.62\nuniform float noiseAmount; // = 0.16\nuniform float scanAmount; // = 0.13\nuniform float flashAmount; // = 0.20\n\nconst float PI = 3.141592653589793;\n\nfloat hash(float n) {\n return fract(sin(n) * 43758.5453123);\n}\n\nfloat hash(vec2 p) {\n return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453123);\n}\n\nfloat sat(float v) {\n return clamp(v, 0.0, 1.0);\n}\n\nfloat burst() {\n return pow(max(0.0, sin(progress * PI)), 0.42) * strength;\n}\n\nvec2 safeUv(vec2 uv) {\n return clamp(uv, vec2(0.0), vec2(1.0));\n}\n\nfloat stripeY(vec2 uv, float density, float seed, float minWidth, float maxWidth) {\n float y = uv.y * density + seed * 0.137;\n float id = floor(y);\n float f = fract(y);\n float c = hash(vec2(id, seed));\n float w = mix(minWidth, maxWidth, hash(vec2(id + 9.17, seed + 2.31)));\n return 1.0 - smoothstep(w, w + 0.018, abs(f - c));\n}\n\nfloat stripeX(vec2 uv, float density, float seed, float minWidth, float maxWidth) {\n float x = uv.x * density + seed * 0.091;\n float id = floor(x);\n float f = fract(x);\n float c = hash(vec2(id, seed + 41.0));\n float w = mix(minWidth, maxWidth, hash(vec2(id + 4.7, seed + 8.9)));\n return 1.0 - smoothstep(w, w + 0.012, abs(f - c));\n}\n\nfloat brokenGate(vec2 uv, float row, float rnd, float frame) {\n float segs = mix(1.0, 9.0, hash(vec2(row, frame + 44.0)));\n float seg = floor(uv.x * segs);\n return step(0.16, hash(vec2(seg, row + frame * 3.0 + rnd)));\n}\n\nfloat horizontalMask(vec2 uv, float frame) {\n float r1 = floor((uv.y + hash(frame) * 0.031) * horizontalBars * 0.38);\n float r2 = floor((uv.y + hash(frame + 2.0) * 0.013) * horizontalBars);\n float r3 = floor((uv.y + hash(frame + 7.0) * 0.006) * horizontalBars * 3.4);\n\n float thick = stripeY(uv, horizontalBars * 0.38, frame + 1.0, 0.035, 0.22);\n float mid = stripeY(uv, horizontalBars, frame + 4.0, 0.014, 0.11);\n float hair = stripeY(uv, horizontalBars * 3.4, frame + 9.0, 0.004, 0.035);\n\n thick *= step(0.42, hash(vec2(r1, frame + 10.0)));\n mid *= step(0.48, hash(vec2(r2, frame + 20.0)));\n hair *= step(0.62, hash(vec2(r3, frame + 30.0)));\n\n thick *= brokenGate(uv, r1, hash(vec2(r1, frame)), frame);\n mid *= brokenGate(uv, r2, hash(vec2(r2, frame)), frame + 3.0);\n\n return sat(max(thick, max(mid, hair)));\n}\n\nfloat verticalMask(vec2 uv, float frame) {\n float col = floor((uv.x + hash(frame + 12.0) * 0.017) * verticalSlits);\n float slit = stripeX(uv, verticalSlits, frame + 13.0, 0.01, 0.075);\n slit *= step(0.66, hash(vec2(col, frame + 19.0)));\n return sat(slit);\n}\n\nvec4 chromaFrom(vec2 uv, vec2 s) {\n uv = safeUv(uv);\n vec4 center = getFromColor(uv);\n return vec4(\n getFromColor(safeUv(uv + s)).r,\n center.g,\n getFromColor(safeUv(uv - s)).b,\n center.a\n );\n}\n\nvec4 chromaTo(vec2 uv, vec2 s) {\n uv = safeUv(uv);\n vec4 center = getToColor(uv);\n return vec4(\n getToColor(safeUv(uv - s)).r,\n center.g,\n getToColor(safeUv(uv + s)).b,\n center.a\n );\n}\n\nvec2 distortUv(vec2 uv, float dir, float b, float h, float v, float frame) {\n float row = floor(uv.y * horizontalBars);\n float col = floor(uv.x * verticalSlits);\n\n float rowRnd = hash(vec2(row, frame));\n float colRnd = hash(vec2(col, frame + 27.0));\n\n float xTear = (rowRnd - 0.5) * 2.0 * tear * b * h;\n xTear += sin(uv.y * 120.0 + progress * 95.0) * 0.006 * b;\n\n float yDrag = (colRnd - 0.5) * 0.13 * b * v;\n float micro = (hash(vec2(row, col + frame)) - 0.5) * 0.018 * b * max(h, v);\n\n return uv + vec2(xTear * dir + micro, yDrag);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n float b = burst();\n float frame = floor(progress * 30.0);\n\n float h = horizontalMask(uv, frame);\n float v = verticalMask(uv, frame);\n float glitch = sat(max(h, v * 0.75));\n\n float row = floor(uv.y * horizontalBars);\n float rowRnd = hash(vec2(row, frame + 5.0));\n\n float bandDelay = (rowRnd - 0.5) * 0.30 * h;\n float reveal = smoothstep(0.18, 0.84, progress + bandDelay);\n\n vec2 split = vec2(chroma * b * (1.0 + 1.7 * glitch), chroma * 0.22 * b * v);\n\n vec2 fromUv = distortUv(uv, 1.0, b, h, v, frame);\n vec2 toUv = distortUv(uv, -1.0, b, h, v, frame);\n\n vec4 color = mix(\n chromaFrom(fromUv, split),\n chromaTo(toUv, split),\n reveal\n );\n\n // Horizontal time-slice residue: old/new frames dragged through uneven scan bands.\n vec2 smearUv = uv;\n smearUv.x += (rowRnd - 0.5) * 0.46 * b * h;\n smearUv.y += (hash(vec2(row, frame + 31.0)) - 0.5) * 0.045 * b * h;\n\n float sliceReveal = smoothstep(0.28, 0.78, progress + (rowRnd - 0.5) * 0.22);\n vec4 sliceColor = mix(\n chromaFrom(smearUv, split * 1.65),\n chromaTo(smearUv - vec2((rowRnd - 0.5) * 0.18 * b, 0.0), split * 1.65),\n sliceReveal\n );\n\n color = mix(color, sliceColor, h * b * residue);\n\n // Thin scan sparks and broken white lines, like the reference clip's bright horizontal noise.\n float hairLine = stripeY(uv, 190.0, frame + 55.0, 0.002, 0.012);\n hairLine *= step(0.70, hash(vec2(floor(uv.y * 190.0), frame + 56.0)));\n color.rgb += vec3(0.72, 0.90, 1.0) * hairLine * b * 0.28;\n\n float scan = 0.5 + 0.5 * sin(uv.y * 980.0 + progress * 130.0);\n color.rgb *= 1.0 - scanAmount * b * scan;\n\n vec2 nCell = floor(uv * vec2(360.0 * ratio, 210.0));\n float n = hash(nCell + vec2(frame * 7.0, frame * 13.0));\n color.rgb += (n - 0.5) * noiseAmount * b * (0.55 + glitch);\n\n // Slight desaturation during the damage peak makes it feel more like broadcast/video signal corruption.\n float luma = dot(color.rgb, vec3(0.299, 0.587, 0.114));\n color.rgb = mix(color.rgb, vec3(luma), 0.18 * b * glitch);\n\n float strobe = step(0.78, hash(vec2(frame, 3.14))) * pow(b, 1.65);\n color.rgb += vec3(strobe * flashAmount);\n\n return vec4(clamp(color.rgb, vec3(0.0), vec3(1.0)), color.a);\n}\n","author":"bread","license":"MIT","description":"A datamosh glitch: torn strips, chroma shifts and scan noise drag the outgoing image into the incoming one","tags":["glitch","datamosh","chromatic"],"params":{"strength":{"type":"float","default":1},"horizontalBars":{"type":"float","default":42},"verticalSlits":{"type":"float","default":18},"tear":{"type":"float","default":0.18},"chroma":{"type":"float","default":0.032},"residue":{"type":"float","default":0.62},"noiseAmount":{"type":"float","default":0.16},"scanAmount":{"type":"float","default":0.13},"flashAmount":{"type":"float","default":0.2}},"textures":[],"createdAt":"Fri, 12 Jun 2026 15:15:42 +0800","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"Swap","paramsTypes":{"reflection":"float","perspective":"float","depth":"float"},"defaultParams":{"reflection":0.4,"perspective":0.2,"depth":3},"glsl":"// Author: gre\n// License: MIT\n// Description: The two images swap places in 3D, with a floor reflection\n// Tags: 3d, swap, reflection\n// General parameters\n// @param Strength of the reflection\nuniform float reflection; // = 0.4\n// @param Amount of perspective\nuniform float perspective; // = 0.2\nuniform float depth; // = 3.0\n \nconst vec4 black = vec4(0.0); // where no image is drawn: transparent\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n \nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n \nvec2 project (vec2 p) {\n return p * vec2(1.0, -1.2) + vec2(0.0, -0.02);\n}\n \nvec4 bgColor (vec2 p, vec2 pfr, vec2 pto) {\n vec4 c = black;\n pfr = project(pfr);\n if (inBounds(pfr)) {\n c += mix(black, getFromColor(pfr), reflection * mix(1.0, 0.0, pfr.y));\n }\n pto = project(pto);\n if (inBounds(pto)) {\n c += mix(black, getToColor(pto), reflection * mix(1.0, 0.0, pto.y));\n }\n return c;\n}\n \nvec4 transition(vec2 p) {\n vec2 pfr, pto = vec2(-1.);\n \n float size = mix(1.0, depth, progress);\n float persp = perspective * progress;\n pfr = (p + vec2(-0.0, -0.5)) * vec2(size/(1.0-perspective*progress), size/(1.0-size*persp*p.x)) + vec2(0.0, 0.5);\n \n size = mix(1.0, depth, 1.-progress);\n persp = perspective * (1.-progress);\n pto = (p + vec2(-1.0, -0.5)) * vec2(size/(1.0-perspective*(1.0-progress)), size/(1.0-size*persp*(0.5-p.x))) + vec2(1.0, 0.5);\n\n if (progress < 0.5) {\n if (inBounds(pfr)) {\n return getFromColor(pfr);\n }\n if (inBounds(pto)) {\n return getToColor(pto);\n } \n }\n if (inBounds(pto)) {\n return getToColor(pto);\n }\n if (inBounds(pfr)) {\n return getFromColor(pfr);\n }\n return bgColor(p, pfr, pto);\n}\n","author":"gre","license":"MIT","description":"The two images swap places in 3D, with a floor reflection","tags":["3d","swap","reflection"],"params":{"reflection":{"type":"float","default":0.4,"description":"Strength of the reflection"},"perspective":{"type":"float","default":0.2,"description":"Amount of perspective"},"depth":{"type":"float","default":3}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"Swirl","paramsTypes":{},"defaultParams":{},"glsl":"// License: MIT\n// Author: Sergey Kosarevsky\n// Description: Both images swirl around the center while crossfading\n// Tags: swirl, rotate, blend\n// ( http://www.linderdaum.com )\n// ported by gre from https://gist.github.com/corporateshark/cacfedb8cca0f5ce3f7c\n\nvec4 transition(vec2 UV)\n{\n\tfloat Radius = 1.0;\n\n\tfloat T = progress;\n\n\tUV -= vec2( 0.5, 0.5 );\n\n\tfloat Dist = length(UV);\n\n\tif ( Dist < Radius )\n\t{\n\t\tfloat Percent = (Radius - Dist) / Radius;\n\t\tfloat A = ( T <= 0.5 ) ? mix( 0.0, 1.0, T/0.5 ) : mix( 1.0, 0.0, (T-0.5)/0.5 );\n\t\tfloat Theta = Percent * Percent * A * 8.0 * 3.14159;\n\t\tfloat S = sin( Theta );\n\t\tfloat C = cos( Theta );\n\t\tUV = vec2( dot(UV, vec2(C, -S)), dot(UV, vec2(S, C)) );\n\t}\n\tUV += vec2( 0.5, 0.5 );\n\n\tvec4 C0 = getFromColor(UV);\n\tvec4 C1 = getToColor(UV);\n\n\treturn mix( C0, C1, T );\n}\n","author":"Sergey Kosarevsky","license":"MIT","description":"Both images swirl around the center while crossfading","tags":["swirl","rotate","blend"],"params":{},"textures":[],"createdAt":"Mon, 12 Jun 2017 12:38:27 +0800","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"TangentMotionBlur","paramsTypes":{},"defaultParams":{},"glsl":"\n// License: MIT\n// Author: chenkai\n// Description: The outgoing image is flung away along a curve with motion blur\n// Tags: motion-blur, rotate, slide\n// ported from https://codertw.com/%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80/671116/\n\nfloat rand (vec2 co) {\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n \n// motion blur for texture from\nvec4 motionBlurFrom(vec2 _st, vec2 speed) {\n vec2 texCoord = _st.xy / vec2(1.0).xy;\n // Premultiplied sums, so that transparent samples do not darken the blur\n vec3 color = vec3(0.0);\n float alpha = 0.0;\n float total = 0.0;\n float offset = rand(_st);\n for (float t = 0.0; t <= 20.0; t++) {\n float percent = (t + offset) / 20.0;\n float weight = 4.0 * (percent - percent * percent);\n vec2 newuv = texCoord + speed * percent;\n newuv = fract(newuv);\n vec4 c = getFromColor(newuv);\n color += c.rgb * c.a * weight;\n alpha += c.a * weight;\n total += weight;\n }\n return vec4(color / max(alpha, 1e-5), alpha / total);\n}\n\n// motion blur for texture to\nvec4 motionBlurTo(vec2 _st, vec2 speed) {\n vec2 texCoord = _st.xy / vec2(1.0).xy;\n vec3 color = vec3(0.0);\n float alpha = 0.0;\n float total = 0.0;\n float offset = rand(_st);\n for (float t = 0.0; t <= 20.0; t++) {\n float percent = (t + offset) / 20.0;\n float weight = 4.0 * (percent - percent * percent);\n vec2 newuv = texCoord + speed * percent;\n newuv = fract(newuv);\n vec4 c = getToColor(newuv);\n color += c.rgb * c.a * weight;\n alpha += c.a * weight;\n total += weight;\n }\n return vec4(color / max(alpha, 1e-5), alpha / total);\n}\n\n\n// bezier in gpu\nfloat A(float aA1, float aA2) {\n return 1.0 - 3.0 * aA2 + 3.0 * aA1;\n}\nfloat B(float aA1, float aA2) {\n return 3.0 * aA2 - 6.0 * aA1;\n}\nfloat C(float aA1) {\n return 3.0 * aA1;\n}\nfloat GetSlope(float aT, float aA1, float aA2) {\n return 3.0 * A(aA1, aA2)*aT*aT + 2.0 * B(aA1, aA2) * aT + C(aA1);\n}\nfloat CalcBezier(float aT, float aA1, float aA2) {\n return ((A(aA1, aA2)*aT + B(aA1, aA2))*aT + C(aA1))*aT;\n}\nfloat GetTForX(float aX, float mX1, float mX2) {\n // iteration to solve\n float aGuessT = aX;\n for (int i = 0; i < 4; ++i) {\n float currentSlope = GetSlope(aGuessT, mX1, mX2);\n if (currentSlope == 0.0) return aGuessT;\n float currentX = CalcBezier(aGuessT, mX1, mX2) - aX;\n aGuessT -= currentX / currentSlope;\n }\n return aGuessT;\n}\nfloat KeySpline(float aX, float mX1, float mY1, float mX2, float mY2) {\n if (mX1 == mY1 && mX2 == mY2) return aX; // linear\n return CalcBezier(GetTForX(aX, mX1, mX2), mY1, mY2); // x to t, t to y\n}\n\n// norm distribution\nfloat normpdf(float x) {\n float d = x - .5;\n return exp(-20.*d*d);\n}\n\nvec2 rotateUv(vec2 uv, float angle, vec2 anchor, float zDirection) {\n uv = uv - anchor; // anchor to origin\n float s = sin(angle);\n\tfloat c = cos(angle);\n\tmat2 m = mat2(c, -s, s, c);\n uv = m * uv;\n uv += anchor; // anchor back\n return uv;\n}\n\n\n\nvec4 transition (vec2 uv) {\n \n vec2 myst = uv;\n float animationTime = progress; //getAnimationTime();\n float easingTime = KeySpline(animationTime, .68,.01,.17,.98);\n float blur = normpdf(easingTime);\n float r = 0.;\n float rotation = 180./180.*3.14159;\n if (easingTime <= .5) {\n r = rotation * easingTime;\n } else {\n r = -rotation + rotation * easingTime;\n }\n\n // rotation for current frame\n vec2 mystCurrent = myst;\n mystCurrent.y *= 1./ratio;\n mystCurrent = rotateUv(mystCurrent, r, vec2(1., 0.), -1.);\n mystCurrent.y *= ratio;\n \n // frame timeInterval by fps=30\n float timeInterval = 0.0167*2.0;\n if (easingTime <= .5) {\n r = rotation * (easingTime+timeInterval);\n } else {\n r = -rotation + rotation * (easingTime+timeInterval);\n }\n \n // rotation for next frame\n vec2 mystNext = myst;\n mystNext.y *= 1./ratio;\n mystNext = rotateUv(mystNext, r, vec2(1., 0.), -1.);\n mystNext.y *= ratio;\n \n // get speed at tagent direction\n vec2 speed = (mystNext - mystCurrent) / timeInterval * blur * 0.5;\n if (easingTime <= .5) {\n return motionBlurFrom(mystCurrent, speed);\n } else {\n return motionBlurTo(mystCurrent, speed);\n }\n}\n\n","author":"chenkai","license":"MIT","description":"The outgoing image is flung away along a curve with motion blur","tags":["motion-blur","rotate","slide"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"TilesWave","paramsTypes":{"tileCount":"ivec2","flipX":"bool","flipY":"bool"},"defaultParams":{"tileCount":[8,8],"flipX":true,"flipY":false},"glsl":"// Author: numb3r23\n// License: MIT\n// Description: The incoming image is revealed tile by tile in a diagonal wave\n// Tags: tiles, wave, wipe\n// Ported from https://gist.github.com/numb3r23/169781bb76f310e2bfde\n\n// @param Number of tiles (columns, rows)\nuniform ivec2 tileCount; // = ivec2(8, 8)\nuniform bool flipX; // = true\nuniform bool flipY; // = false\n\nvec4 transition(vec2 uv) {\n vec2 tileSize = 1.0 / vec2(tileCount);\n vec2 posInTile = fract(uv * vec2(tileCount));\n vec2 tileNum = floor(uv * vec2(tileCount));\n float countTiles = float(tileCount.x * tileCount.y);\n\n // Diagonal wave from bottom-left to top-right\n float offset = (tileNum.y + tileNum.x * float(tileCount.y)) / countTiles;\n float timeOffset = clamp((progress - offset) * countTiles, 0.0, 0.5);\n float sinTime = 1.0 - abs(cos(fract(timeOffset) * 3.1415926));\n\n vec2 texC = posInTile;\n\n if (sinTime <= 0.5) {\n if (flipX) {\n if (texC.x < sinTime || texC.x > 1.0 - sinTime)\n return getFromColor(uv);\n texC.x = texC.x < 0.5\n ? (texC.x - sinTime) * 0.5 / (0.5 - sinTime)\n : (texC.x - 0.5) * 0.5 / (0.5 - sinTime) + 0.5;\n }\n if (flipY) {\n if (texC.y < sinTime || texC.y > 1.0 - sinTime)\n return getFromColor(uv);\n texC.y = texC.y < 0.5\n ? (texC.y - sinTime) * 0.5 / (0.5 - sinTime)\n : (texC.y - 0.5) * 0.5 / (0.5 - sinTime) + 0.5;\n }\n vec2 globalUV = tileNum * tileSize + texC * tileSize;\n return getFromColor(globalUV);\n } else {\n if (flipX) {\n if (texC.x > sinTime || texC.x < 1.0 - sinTime)\n return getToColor(uv);\n texC.x = texC.x < 0.5\n ? (texC.x - sinTime) * 0.5 / (0.5 - sinTime)\n : (texC.x - 0.5) * 0.5 / (0.5 - sinTime) + 0.5;\n texC.x = 1.0 - texC.x;\n }\n if (flipY) {\n if (texC.y > sinTime || texC.y < 1.0 - sinTime)\n return getToColor(uv);\n texC.y = texC.y < 0.5\n ? (texC.y - sinTime) * 0.5 / (0.5 - sinTime)\n : (texC.y - 0.5) * 0.5 / (0.5 - sinTime) + 0.5;\n texC.y = 1.0 - texC.y;\n }\n vec2 globalUV = tileNum * tileSize + texC * tileSize;\n return getToColor(globalUV);\n }\n}\n","author":"numb3r23","license":"MIT","description":"The incoming image is revealed tile by tile in a diagonal wave","tags":["tiles","wave","wipe"],"params":{"tileCount":{"type":"ivec2","default":[8,8],"description":"Number of tiles (columns, rows)"},"flipX":{"type":"bool","default":true},"flipY":{"type":"bool","default":false}},"textures":[],"createdAt":"Sun, 29 Mar 2026 20:32:54 +0200","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"TopBottom","paramsTypes":{},"defaultParams":{},"glsl":"// Author: zhmy\n// License: MIT\n// Description: The outgoing image shrinks away upward while the incoming one slides in from the bottom\n// Tags: slide, zoom, vertical\n\nconst vec4 black = vec4(0.0); // where no image is drawn: transparent\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n vec2 spfr,spto = vec2(-1.);\n float size = mix(1.0, 3.0, progress*0.2);\n spto = (uv + vec2(-0.5,-0.5))*vec2(size,size)+vec2(0.5,0.5);\n spfr = (uv + vec2(0.0, 1.0 - progress));\n if(inBounds(spfr)){\n return getToColor(spfr);\n } else if(inBounds(spto)){\n return getFromColor(spto) * (1.0 - progress);\n } else{\n return black;\n }\n}","author":"zhmy","license":"MIT","description":"The outgoing image shrinks away upward while the incoming one slides in from the bottom","tags":["slide","zoom","vertical"],"params":{},"textures":[],"createdAt":"Thu, 17 Dec 2020 11:50:34 +0800","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"Tunnel","paramsTypes":{"speed":"float","twist":"float"},"defaultParams":{"speed":6,"twist":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The camera flies down a tunnel lined with the outgoing image toward the incoming one, which opens at its far end and grows to fill the frame\n// Tags: zoom, 3d, warp, radial\n\n// @range(0.5, 10) How far and fast the camera flies down the tunnel\nuniform float speed; // = 6.0\n// @range(-2, 2) How much the walls spiral as they rush by\nuniform float twist; // = 0.5\n\nvec2 rotate(vec2 v, float a) {\n float c = cos(a);\n float s = sin(a);\n return vec2(c * v.x - s * v.y, s * v.x + c * v.y);\n}\n\nvec4 transition(vec2 uv) {\n vec2 aspect = vec2(ratio, 1.0);\n vec2 c = (uv - 0.5) * aspect;\n float r = length(c);\n // A tube as wide as the frame's corners runs from the camera to an end wall\n // at depth `far`; the outgoing image is projected onto it from the starting\n // point of view, so it looks flat at first. The camera flies to one unit\n // before the end wall, where the incoming image hangs.\n float R = length(0.5 * aspect);\n float far = 1.0 + speed;\n // the distance to the end wall shrinks geometrically, so the end grows evenly\n float e = mix(progress, progress * progress * (3.0 - 2.0 * progress), 0.7);\n float d = pow(far, 1.0 - e);\n float t = far - d; // distance flown\n // the end wall covers the center of the view, the tube's walls the rest\n float k = r * d < R ? d / far : R / (R + t * r); // image scale at that point\n float a = twist * min(t * r / R, t / d); // spiral, continuous at the end wall\n vec4 walls = getFromColor(0.5 + rotate(c * k, a) / aspect);\n walls.rgb *= 0.4 + 0.6 * sqrt(k); // darker where the walls are close\n // the incoming image opens in the end wall\n float open = smoothstep(0.0, 0.6, progress);\n vec2 q = 0.5 + (uv - 0.5) * d / max(open, 1e-4);\n vec2 inside = step(0.0, q) * step(q, vec2(1.0));\n return mix(walls, getToColor(q), inside.x * inside.y * step(r * d, R));\n}\n","author":"gre","license":"MIT","description":"The camera flies down a tunnel lined with the outgoing image toward the incoming one, which opens at its far end and grows to fill the frame","tags":["zoom","3d","warp","radial"],"params":{"speed":{"type":"float","default":6,"min":0.5,"max":10,"description":"How far and fast the camera flies down the tunnel"},"twist":{"type":"float","default":0.5,"min":-2,"max":2,"description":"How much the walls spiral as they rush by"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:20:26 +0100","updatedAt":"Sat, 31 Oct 2026 18:20:26 +0100"},{"name":"TvLostSignal","paramsTypes":{},"defaultParams":{},"glsl":"// Author: mernking (gitlab.com/Godswork)\n// License: MIT\n// Description: A crossfade with drifting tracking lines and tearing, like a TV losing its signal\n// Tags: retro, glitch, scanlines\n\nfloat hash(vec2 p) {\n return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453);\n}\n\nvec4 transition(vec2 uv) {\n\n float p = progress;\n float strength = sin(p * 3.14159265);\n\n vec2 tv = uv;\n\n vec4 fromColor = getFromColor(tv);\n vec4 toColor = getToColor(tv);\n\n vec4 color = mix(fromColor, toColor, p);\n\n // horizontal tracking lines (key effect)\n float lineY = floor(tv.y * 120.0);\n\n float noise = hash(vec2(lineY, p * 20.0));\n\n float line = step(0.92, noise);\n\n // make lines drift during transition\n float drift =\n sin(tv.y * 30.0 + p * 10.0)\n * 0.02\n * strength;\n\n vec4 shiftedFrom = getFromColor(tv + vec2(drift, 0.0));\n vec4 shiftedTo = getToColor(tv + vec2(drift, 0.0));\n\n vec4 lineColor = mix(shiftedFrom, shiftedTo, p);\n\n // apply tearing only on selected scanlines\n color = mix(color, lineColor, line * strength);\n\n // mild scanline darkening (CRT feel)\n float scan =\n sin(tv.y * 900.0) * 0.03;\n\n color.rgb -= scan * strength;\n\n return color;\n}\n","author":"mernking (gitlab.com/Godswork)","license":"MIT","description":"A crossfade with drifting tracking lines and tearing, like a TV losing its signal","tags":["retro","glitch","scanlines"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"TvRoll","paramsTypes":{"rolls":"int","barHeight":"float","barColor":"vec4"},"defaultParams":{"rolls":3,"barHeight":0.12,"barColor":[0,0,0,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image rolls faster and faster, like an old TV losing its vertical hold, then the roll slows down and locks on the incoming image\n// Tags: retro, vertical, scanlines\n\n// @range(1, 8) Number of frames that roll by\nuniform int rolls; // = 3\n// @range(0, 0.5) Height of the bar between the frames\nuniform float barHeight; // = 0.12\n// @color Color of the bar between the frames\nuniform vec4 barColor; // = vec4(0.0, 0.0, 0.0, 1.0)\n\n// The rolling picture at a vertical position y, in frames of height 1 + barHeight\nvec4 picture(vec2 uv, float y, float m) {\n float period = 1.0 + barHeight;\n y = mod(y, period);\n if (y > 1.0) return barColor;\n vec2 q = vec2(uv.x, y);\n return mix(getFromColor(q), getToColor(q), m);\n}\n\nvec4 transition(vec2 uv) {\n float period = 1.0 + barHeight;\n // smooth start and stop: the picture locks again after a whole number of frames\n float s = progress * progress * (3.0 - 2.0 * progress);\n float offset = period * fract(float(rolls) * s);\n float speed = 4.0 * progress * (1.0 - progress); // 0 at both ends, 1 in the middle\n float m = smoothstep(0.42, 0.58, progress); // the channel changes at full speed\n // the horizontal sync wobbles a little\n vec2 p = uv + vec2(0.004 * speed * sin(uv.y * 9.0 + progress * 30.0), 0.0);\n // vertical motion blur\n vec4 c = vec4(0.0);\n for (int i = 0; i < 5; i++) {\n c += picture(p, p.y + offset - 0.0015 * float(rolls) * speed * float(i), m);\n }\n c /= 5.0;\n // scanlines and a flickering brightness\n float scan = 0.5 + 0.5 * sin(uv.y * 400.0);\n float flicker = 0.08 * (0.5 + 0.5 * sin(progress * 97.0));\n c.rgb *= 1.0 - speed * (0.08 * scan + flicker);\n return c;\n}\n","author":"gre","license":"MIT","description":"The outgoing image rolls faster and faster, like an old TV losing its vertical hold, then the roll slows down and locks on the incoming image","tags":["retro","vertical","scanlines"],"params":{"rolls":{"type":"int","default":3,"min":1,"max":8,"description":"Number of frames that roll by"},"barHeight":{"type":"float","default":0.12,"min":0,"max":0.5,"description":"Height of the bar between the frames"},"barColor":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color of the bar between the frames"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:16:40 +0100","updatedAt":"Sat, 31 Oct 2026 18:16:40 +0100"},{"name":"TvStatic","paramsTypes":{"offset":"float"},"defaultParams":{"offset":0.05},"glsl":"// Author: Brandon Anzaldi\n// License: MIT\n// Description: Cuts to full-screen TV static, then to the incoming image\n// Tags: static, noise, retro\n// @param Part of the transition, at each end, that shows the images instead of static\nuniform float offset; // = 0.05\n\n// Pseudo-random noise function\n// http://byteblacksmith.com/improvements-to-the-canonical-one-liner-glsl-rand-for-opengl-es-2-0/\nhighp float noise(vec2 co)\n{\n highp float a = 12.9898;\n highp float b = 78.233;\n highp float c = 43758.5453;\n highp float dt= dot(co.xy * progress, vec2(a, b));\n highp float sn= mod(dt,3.14);\n return fract(sin(sn) * c);\n}\n\nvec4 transition(vec2 p) {\n if (progress < offset) {\n return getFromColor(p);\n } else if (progress > (1.0 - offset)) {\n return getToColor(p);\n } else {\n return vec4(vec3(noise(p)), max(getFromColor(p).a, getToColor(p).a)); // static where the images are\n }\n}\n","author":"Brandon Anzaldi","license":"MIT","description":"Cuts to full-screen TV static, then to the incoming image","tags":["static","noise","retro"],"params":{"offset":{"type":"float","default":0.05,"description":"Part of the transition, at each end, that shows the images instead of static"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"TvTurnOff","paramsTypes":{"color":"vec4","glow":"float"},"defaultParams":{"color":[0,0,0,1],"glow":1},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image collapses into a glowing line and a dot, like an old TV turned off, then the incoming image powers on from the dot\n// Tags: retro, vertical, flash\n\n// @color Color of the switched-off screen\nuniform vec4 color; // = vec4(0.0, 0.0, 0.0, 1.0)\n// @range(0, 2) Strength of the glow around the line and the dot\nuniform float glow; // = 1.0\n\nvec4 getColor(vec2 uv, bool isFrom) {\n return isFrom ? getFromColor(uv) : getToColor(uv);\n}\n\n// The screen at a time t of its power-off: 0 is the full image, 1 is off\nvec4 screen(vec2 uv, float t, bool isFrom) {\n float collapse = smoothstep(0.0, 0.4, t); // the image squeezes into a line\n float shrink = smoothstep(0.3, 0.65, t); // the line shrinks into a dot\n float fade = 0.4 * smoothstep(0.75, 1.0, t); // the dot dims\n float radius = 0.01 * (1.0 - fade);\n // half size of the picture, in height units (x is scaled by ratio)\n vec2 size = vec2(mix(0.5 * ratio, radius, shrink), mix(0.5, radius, collapse));\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n vec2 q = clamp(0.5 + 0.5 * p / size, 0.0, 1.0);\n vec4 c = getColor(q, isFrom);\n // the squeezed picture gets brighter and burns to white\n float white = smoothstep(0.4, 1.0, collapse);\n vec4 light = vec4(mix(min(c.rgb * (1.0 + 2.0 * collapse), 1.0), vec3(1.0), white), c.a);\n // soft edges, outside the picture so that t = 0 is the exact image\n vec2 d = abs(p) - size;\n float dist = length(max(d, 0.0)) + min(max(d.x, d.y), 0.0);\n float inside = clamp(1.0 - dist / 0.004, 0.0, 1.0);\n // a glow around the line, tinted by the center of the picture, then warm white around the dot\n vec4 mid = getColor(vec2(0.5), isFrom);\n vec4 halo = vec4(mix(mix(mid.rgb, vec3(1.0), 0.7), vec3(1.0, 0.92, 0.8), shrink), mid.a);\n float h = 1.0 - exp(-2.0 * glow * white * exp(-max(dist, 0.0) / (0.02 + 0.04 * shrink)));\n vec4 col = mix(color, halo, h * (1.0 - fade));\n return mix(col, light, inside * (1.0 - fade));\n}\n\nvec4 transition(vec2 uv) {\n if (progress < 0.5) {\n return screen(uv, 2.0 * progress, true);\n }\n return screen(uv, 2.0 - 2.0 * progress, false);\n}\n","author":"gre","license":"MIT","description":"The outgoing image collapses into a glowing line and a dot, like an old TV turned off, then the incoming image powers on from the dot","tags":["retro","vertical","flash"],"params":{"color":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color of the switched-off screen"},"glow":{"type":"float","default":1,"min":0,"max":2,"description":"Strength of the glow around the line and the dot"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:16:40 +0100","updatedAt":"Sat, 31 Oct 2026 18:16:40 +0100"},{"name":"UndulatingBurnOut","paramsTypes":{"smoothness":"float","center":"vec2","color":"vec4"},"defaultParams":{"smoothness":0.03,"center":[0.5,0.5],"color":[0,0,0,1]},"glsl":"// License: MIT\n// Author: pthrasher\n// Description: A circle with a wavy edge burns out from the center to reveal the incoming image\n// Tags: circle, burn, wipe\n// adapted by gre from https://gist.github.com/pthrasher/8e6226b215548ba12734\n\n// @param Softness of the edge\nuniform float smoothness; // = 0.03\n// @param Center of the circle\nuniform vec2 center; // = vec2(0.5)\n// @color Color of the burning edge\nuniform vec4 color; // = vec4(0.0, 0.0, 0.0, 1.0)\n\nconst float M_PI = 3.14159265358979323846;\n\nfloat quadraticInOut(float t) {\n float p = 2.0 * t * t;\n return t < 0.5 ? p : -p + (4.0 * t) - 1.0;\n}\n\nfloat getGradient(float r, float dist) {\n float d = r - dist;\n return mix(\n smoothstep(-smoothness, 0.0, r - dist * (1.0 + smoothness)),\n -1.0 - step(0.005, d),\n step(-0.005, d) * step(d, 0.01)\n );\n}\n\nfloat getWave(vec2 p){\n vec2 _p = p - center; // offset from center\n float rads = atan(_p.y, _p.x);\n float degs = degrees(rads) + 180.0;\n vec2 range = vec2(0.0, M_PI * 30.0);\n vec2 domain = vec2(0.0, 360.0);\n float ratio = (M_PI * 30.0) / 360.0;\n degs = degs * ratio;\n float x = progress;\n float magnitude = mix(0.02, 0.09, smoothstep(0.0, 1.0, x));\n float offset = mix(40.0, 30.0, smoothstep(0.0, 1.0, x));\n float ease_degs = quadraticInOut(sin(degs));\n float deg_wave_pos = (ease_degs * magnitude) * sin(x * offset);\n // The soft edge reaches `smoothness` beyond the radius and the burn band 0.005 inside it:\n // start the radius below both so nothing but the outgoing image shows at progress 0\n // (unchanged from progress 0.1 on).\n return x - max(smoothness, 0.01) * (1.0 - smoothstep(0.0, 0.1, x)) + deg_wave_pos;\n}\n\nvec4 transition(vec2 p) {\n float dist = distance(center, p);\n float m = getGradient(getWave(p), dist);\n vec4 cfrom = getFromColor(p);\n vec4 cto = getToColor(p);\n return mix(mix(cfrom, cto, m), mix(cfrom, color, 0.75), step(m, -2.0));\n}\n","author":"pthrasher","license":"MIT","description":"A circle with a wavy edge burns out from the center to reveal the incoming image","tags":["circle","burn","wipe"],"params":{"smoothness":{"type":"float","default":0.03,"description":"Softness of the edge"},"center":{"type":"vec2","default":[0.5,0.5],"description":"Center of the circle"},"color":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color of the burning edge"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"VerticalClose","paramsTypes":{},"defaultParams":{},"glsl":"// Author: martiniti\n// License: MIT\n// Description: The incoming image closes in from the left and right edges toward the middle\n// Tags: wipe, split\n\nvec4 transition (vec2 uv) {\n\n float s = 2.0 - abs((uv.x - 0.5) / (progress - 1.0)) - 2.0 * progress;\n \n return mix(\n getFromColor(uv),\n getToColor(uv),\n smoothstep(0.5, 0.0, s)\n );\n}\n","author":"martiniti","license":"MIT","description":"The incoming image closes in from the left and right edges toward the middle","tags":["wipe","split"],"params":{},"textures":[],"createdAt":"Tue, 4 Apr 2023 10:35:17 +0300","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"VerticalOpen","paramsTypes":{},"defaultParams":{},"glsl":"// Author: martiniti\n// License: MIT\n// Description: The incoming image opens from a line in the middle toward the left and right edges\n// Tags: wipe, split\n\nvec4 transition (vec2 uv) {\n\n float regress = 1.0 - progress;\n float s = 2.0 - abs((uv.x - 0.5) / (regress - 1.0)) - 2.0 * regress;\n \n return mix(\n getFromColor(uv),\n getToColor(uv),\n smoothstep(0.0, 0.5, s)\n );\n}\n","author":"martiniti","license":"MIT","description":"The incoming image opens from a line in the middle toward the left and right edges","tags":["wipe","split"],"params":{},"textures":[],"createdAt":"Tue, 4 Apr 2023 10:35:12 +0300","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"VhsTracking","paramsTypes":{"bands":"int","noise":"float","bleed":"float","wobble":"float"},"defaultParams":{"bands":3,"noise":0.6,"bleed":0.5,"wobble":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: Tape-tracking bands of white snow roll down the frame, tearing the lines around them, with smeared color, wobbling lines, a jittering strip at the bottom and a dropout flash, as the incoming image is recorded over the outgoing one under the densest band\n// Tags: retro, glitch, noise, tape, scanlines\n\n// @range(1, 4, 1) Number of noise bands rolling down (the first one carries the cut)\nuniform int bands; // = 3\n// @range(0, 1) Amount of snow and tearing in the bands\nuniform float noise; // = 0.6\n// @range(0, 1) How far the color smears to the right of the picture\nuniform float bleed; // = 0.5\n// @range(0, 1) How much the lines wobble sideways\nuniform float wobble; // = 0.5\n\nconst float LINES = 220.0; // tape lines over the frame height\nconst float FRAMES = 40.0; // the noise changes this many times over the transition\nconst float BAND = 0.11; // half height of the main band\nconst float STRIP = 0.06; // height of the jittering strip at the bottom\nconst int TAPS = 6;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// the tape image on the outgoing (or, once re-recorded, incoming) side, premultiplied\nvec4 tape(vec2 p, bool fresh) {\n p = mirror(p);\n vec4 c = fresh ? getToColor(p) : getFromColor(p);\n return vec4(c.rgb * c.a, c.a);\n}\n\nfloat luma(vec3 c) {\n return dot(c, vec3(0.299, 0.587, 0.114));\n}\n\n// how dense a band centered at y = c of half height w is on line y, with ragged edges\nfloat bandDensity(float y, float c, float w, float jitter) {\n float d = abs(y - c) / w + 0.35 * jitter;\n return 1.0 - smoothstep(0.0, 1.0, d);\n}\n\nvec4 transition(vec2 uv) {\n // the effects build up quickly and settle at the end: exactly 0 at both ends\n float h = clamp(2.5 * (1.0 - abs(2.0 * progress - 1.0)), 0.0, 1.0);\n float env = h * h * (3.0 - 2.0 * h);\n // a short dropout flash when the main band crosses the middle of the frame\n float f = clamp(1.0 - abs(progress - 0.5) / 0.04, 0.0, 1.0);\n float flash = f * f * (3.0 - 2.0 * f);\n\n float frame = floor(progress * FRAMES);\n float line = floor(uv.y * LINES);\n float jitter = hash12(vec2(line, frame + 7.0)) - 0.5;\n\n // the main band rolls from above the frame to below it; the incoming image is above it\n float c0 = mix(1.0 + 1.2 * BAND, -1.2 * BAND, progress);\n // (the cut is ragged, line by line)\n bool fresh = uv.y > c0 + 0.8 * BAND * jitter;\n float dens = bandDensity(uv.y, c0, BAND, jitter);\n float tear = 1.0 - smoothstep(0.0, 1.0, abs(uv.y - c0) / (2.5 * BAND));\n // thinner and weaker bands roll faster, wrapping around the frame\n for (int i = 1; i < 4; i++) {\n if (i < bands) {\n float k = float(i);\n float w = BAND * (0.35 + 0.2 * hash12(vec2(k, 3.0)));\n float speed = 1.3 + 0.9 * k;\n float cy = -w + (1.0 + 2.0 * w) * fract(hash12(vec2(k, 5.0)) - speed * progress);\n dens = max(dens, 0.6 * bandDensity(uv.y, cy, w, jitter));\n tear = max(tear, 0.5 * (1.0 - smoothstep(0.0, 1.0, abs(uv.y - cy) / (2.5 * w))));\n }\n }\n dens *= env;\n tear *= env;\n\n // horizontal displacement of the line: a slow wobble, a fine jitter and the tearing\n float rowTear = hash12(vec2(floor(uv.y * LINES * 0.5), frame + 31.0)) - 0.5;\n float dx = wobble * env * (0.006 * sin(uv.y * 7.0 + progress * 23.0) + 0.004 * jitter);\n dx += (0.3 + 0.7 * noise) * tear * 0.18 * rowTear;\n // the head-switching strip at the bottom: lines skewed sideways and jittering\n float strip = env * (1.0 - smoothstep(0.0, STRIP, uv.y));\n dx += strip * (0.03 + 0.06 * (1.0 - uv.y / STRIP)) * (0.6 + 0.8 * hash12(vec2(frame, 41.0)));\n vec2 q = vec2(uv.x + dx, uv.y);\n\n vec4 c = tape(q, fresh);\n if (c.a <= 0.0) return vec4(0.0);\n // chroma bleed: the color is smeared to the right of the luma\n float len = bleed * (0.02 + 0.05 * dens) * env;\n vec4 avg = c;\n if (len > 0.0) {\n avg = vec4(0.0);\n for (int i = 0; i < TAPS; i++) {\n float u = (float(i) + 0.5) / float(TAPS);\n avg += tape(q - vec2(len * (0.4 + u), 0.0), fresh);\n }\n avg /= float(TAPS);\n }\n vec3 chroma = (avg.rgb - luma(avg.rgb)) / max(avg.a, 1e-5);\n vec3 rgb = luma(c.rgb) + chroma * c.a; // premultiplied by c.a\n // the signal fades and loses color under the bands\n rgb = mix(rgb, vec3(luma(rgb)), 0.6 * dens);\n\n // snow: short white streaks on the tape lines, denser in the bands\n // (the streaks of each line start at a random offset so they never line up vertically)\n vec2 cell = vec2(floor(uv.x * LINES * 0.3 * ratio + 40.0 * jitter), line);\n float n = hash12(cell + frame * vec2(37.0, 17.0));\n float amount = clamp(noise * max(1.3 * dens, 0.8 * strip) + 0.35 * flash, 0.0, 1.0);\n float snow = amount > 0.0 ? smoothstep(1.0 - amount, 1.0 - 0.6 * amount, n) : 0.0;\n snow *= 0.55 + 0.45 * hash12(cell.yx + frame);\n // and a finer sparkle between them\n float g = hash12(vec2(floor(uv.x * LINES * ratio), line) + frame * vec2(13.0, 29.0));\n snow = max(snow, amount > 0.0 ? 0.7 * smoothstep(1.0 - 0.4 * amount, 1.0, g) : 0.0);\n // and a few dark specks\n float dark = g < 0.1 * amount ? 1.0 : 0.0;\n // the dropout: whole stretches of a few lines go white\n float group = floor(uv.y * LINES / 3.0);\n float drop = step(1.0 - 0.15 * flash, hash12(vec2(group, floor(uv.x * 6.0 + 5.0 * hash12(vec2(group, frame))) + frame * 7.0)));\n rgb *= 1.0 - 0.5 * dark;\n rgb += (clamp(snow + drop + 0.12 * flash, 0.0, 1.0)) * (c.a - rgb);\n\n return vec4(clamp(rgb / c.a, 0.0, 1.0), c.a);\n}\n","author":"gre","license":"MIT","description":"Tape-tracking bands of white snow roll down the frame, tearing the lines around them, with smeared color, wobbling lines, a jittering strip at the bottom and a dropout flash, as the incoming image is recorded over the outgoing one under the densest band","tags":["retro","glitch","noise","tape","scanlines"],"params":{"bands":{"type":"int","default":3,"min":1,"max":4,"step":1,"description":"Number of noise bands rolling down (the first one carries the cut)"},"noise":{"type":"float","default":0.6,"min":0,"max":1,"description":"Amount of snow and tearing in the bands"},"bleed":{"type":"float","default":0.5,"min":0,"max":1,"description":"How far the color smears to the right of the picture"},"wobble":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the lines wobble sideways"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 08:02:59 +0100","updatedAt":"Wed, 4 Nov 2026 08:02:59 +0100"},{"name":"Vortex","paramsTypes":{"grid":"int","center":"vec2","spin":"float","randomness":"float"},"defaultParams":{"grid":24,"center":[0.5,0.5],"spin":1,"randomness":0.2},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image breaks into hundreds of small squares that a tornado carries away along a spiral around the center, from the eye outward, uncovering the incoming image\n// Tags: tiles, spiral, rotation, shatter\n\n// @range(4, 40, 1) Number of rows of squares\nuniform int grid; // = 24\n// Center of the tornado\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @range(-4, 4) Turns each square makes around the center as it flies away (negative turns clockwise)\nuniform float spin; // = 1.0\n// @range(0, 1) How randomly the squares leave: 0 from the center outward, 1 in any order\nuniform float randomness; // = 0.2\n\n// the squares leave in GROUPS waves, each one flying for DURATION of the transition\nconst int GROUPS = 24;\nconst float DURATION = 0.25;\n// half width of the antialiased edge of the squares, in frame heights\nconst float AA = 0.0015;\nconst float TAU = 6.2831853;\n\nfloat hash(vec2 n) {\n return fract(sin(dot(n, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\n// the wave a square (by its cell index) leaves with\nint groupOf(vec2 n, float h, vec2 c, float maxR) {\n // only the very corners leave last\n float r = min(length((n + 0.5) * h - c) / (0.85 * maxR), 1.0);\n float key = clamp(mix(r * sqrt(r), hash(n), clamp(randomness, 0.0, 1.0)), 0.0, 0.9999);\n return int(floor(key * float(GROUPS)));\n}\n\n// local time of a wave's flight, 0 before it leaves, 1 once it has vanished\nfloat flight(int g) {\n float delay = float(g) / float(GROUPS) * (1.0 - DURATION);\n return clamp((progress - delay) / DURATION, 0.0, 1.0);\n}\n\nvec4 premultiplied(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n // measured in square pixels, so the squares stay square\n vec2 aspect = vec2(ratio, 1.0);\n vec2 p = uv * aspect;\n vec2 c = center * aspect;\n float maxR = max(max(length(c), length(c - vec2(ratio, 0.0))), max(length(c - vec2(0.0, 1.0)), length(c - aspect)));\n float h = 1.0 / float(grid < 1 ? 1 : grid);\n // how far a square is pushed away from the center by the end of its flight\n float reach = 0.7 * maxR;\n\n // the incoming image, under the squares that have not left yet\n vec2 n0 = floor(p / h);\n vec4 col = flight(groupOf(n0, h, c, maxR)) <= 0.0 ? premultiplied(getFromColor(uv)) : premultiplied(getToColor(uv));\n\n // the flying squares, painted from the last wave to leave (lowest) to the first (highest)\n for (int k = 0; k < GROUPS; k++) {\n int g = GROUPS - 1 - k;\n float s = flight(g);\n if (s <= 0.0 || s >= 1.0) continue;\n float e = s * s;\n // like in a tornado, the squares near the eye (the first to leave) spin much faster than\n // the outer ones; all of them orbit before they are flung out\n float angle = spin * TAU * e * 2.0 / (1.0 + 6.0 * float(g) / float(GROUPS));\n float push = reach * e * s;\n // the squares lift toward the viewer, then shrink away\n float size = (1.0 + 0.35 * sin(3.1415927 * s)) * (1.0 - s * s * s);\n float ca = cos(angle);\n float sa = sin(angle);\n mat2 rot = mat2(ca, sa, -sa, ca);\n // undo the wave's spiral to guess which square lands here, then test its neighbors exactly\n vec2 u = (p - c) * rot;\n float ru = length(u);\n vec2 guess = c + (ru > 0.0 ? u / ru : vec2(0.0)) * max(ru - push, 0.0);\n vec2 ng = floor(guess / h);\n for (int j = -1; j <= 1; j++) {\n for (int i = -1; i <= 1; i++) {\n vec2 n = ng + vec2(float(i), float(j));\n if (groupOf(n, h, c, maxR) != g) continue;\n vec2 home = (n + 0.5) * h;\n vec2 rel = home - c;\n float rr = length(rel);\n vec2 dir = rr > 0.0 ? rel / rr : vec2(0.0);\n vec2 pos = c + rot * (dir * (rr + push));\n // each square also tumbles on itself\n float tumble = angle + (hash(n + 17.0) - 0.5) * 3.0 * e * sign(spin);\n float ct = cos(tumble);\n float st = sin(tumble);\n vec2 d = ((p - pos) * mat2(ct, st, -st, ct)) / max(size, 1e-4);\n float edge = 0.5 * h - max(abs(d.x), abs(d.y));\n float cov = clamp(edge * size / (2.0 * AA) + 0.5, 0.0, 1.0);\n vec2 src = home + d;\n if (cov <= 0.0 || src.x < 0.0 || src.y < 0.0 || src.x > ratio || src.y > 1.0) continue;\n vec4 piece = premultiplied(getFromColor(src / aspect)) * cov;\n col = piece + col * (1.0 - piece.a);\n }\n }\n }\n return col.a > 0.0 ? vec4(col.rgb / col.a, col.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The outgoing image breaks into hundreds of small squares that a tornado carries away along a spiral around the center, from the eye outward, uncovering the incoming image","tags":["tiles","spiral","rotation","shatter"],"params":{"grid":{"type":"int","default":24,"min":4,"max":40,"step":1,"description":"Number of rows of squares"},"center":{"type":"vec2","default":[0.5,0.5]},"spin":{"type":"float","default":1,"min":-4,"max":4,"description":"Turns each square makes around the center as it flies away (negative turns clockwise)"},"randomness":{"type":"float","default":0.2,"min":0,"max":1,"description":"How randomly the squares leave: 0 from the center outward, 1 in any order"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:13:09 +0100","updatedAt":"Wed, 4 Nov 2026 20:13:09 +0100"},{"name":"WarpSpeed","paramsTypes":{"center":"vec2","streaks":"float","streakColor":"vec4","strength":"float","flash":"float"},"defaultParams":{"center":[0.5,0.5],"streaks":160,"streakColor":[0.78,0.88,1,1],"strength":0.6,"flash":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The camera jumps to light speed: star streaks shoot out from the center and stretch longer and longer while the outgoing image is pulled into a radial smear, then after a flash the incoming image emerges from the center as the streaks shrink back\n// Tags: zoom, radial, light, motion-blur, space\n\n// @param Point the camera flies toward, from (0, 0) at the bottom left to (1, 1) at the top right\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @range(20, 400) Number of star streaks around the center\nuniform float streaks; // = 160.0\n// @color Color of the streaks and of the flash, added as light\nuniform vec4 streakColor; // = vec4(0.78, 0.88, 1.0, 1.0)\n// @range(0, 1) Length of the streaks and of the radial smear\nuniform float strength; // = 0.6\n// @range(0, 1) Brightness of the flash at the peak of the jump\nuniform float flash; // = 0.5\n\nconst float PI = 3.141592653589793;\nconst int TAPS = 12;\n\nfloat hash(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// one layer of stars: one per angular cell, flying outward and stretched along its ray\nfloat stars(float a, float r, float n, float layer, float travel, float speed, float reach) {\n float cell = floor(a * n);\n float h1 = hash(vec2(cell, layer));\n float h2 = hash(vec2(cell, layer + 17.0));\n float h3 = hash(vec2(cell, layer + 31.0));\n // where the star is in its flight, from near the center to past the corners,\n // speeding up as it comes closer\n float life = fract(h1 + travel * (0.6 + 0.8 * h2));\n float head = reach * (0.05 + 1.05 * pow(life, 1.4));\n // the streak is the path of the star during the exposure: longer when the camera is faster\n float tail = head * (1.0 - min(0.9, speed * (0.15 + 0.5 * h3)));\n float along = clamp((r - tail) / max(head - tail, 1e-4), 0.0, 1.0);\n float inside = step(tail, r) * (1.0 - smoothstep(head - 0.006, head, r));\n // brightest at the head, fading toward the tail\n float profile = inside * along * along;\n // thin across the ray, a bit wider away from the center, with a faint halo,\n // faded out before the edges of the cell so that no seam shows between cells\n float f = fract(a * n);\n float cellWidth = 2.0 * PI * r / n;\n float offset = 0.3 + 0.4 * h3;\n float across = (f - offset) * cellWidth;\n float width = min(0.0014 + 0.002 * r / reach, 0.15 * cellWidth);\n float x = across * across / (width * width);\n float line = (exp(-x) + 0.25 * exp(-x / 9.0)) * smoothstep(0.0, 0.2, min(f, 1.0 - f));\n // fade in from far away, out past the frame, and only some cells hold a star\n float fade = smoothstep(0.0, 0.2, life) * (1.0 - smoothstep(0.9, 1.0, life));\n return profile * line * fade * (0.4 + 0.6 * h2) * step(0.25, hash(vec2(cell, layer + 43.0)));\n}\n\n// an image pulled into a radial smear toward the center: scaled by k, blurred over a fraction b\nvec4 smear(vec2 uv, float k, float b, float jitter, bool incoming) {\n if (b <= 0.0 && k >= 1.0) {\n vec4 c = incoming ? getToColor(uv) : getFromColor(uv);\n return vec4(c.rgb * c.a, c.a);\n }\n vec4 sum = vec4(0.0);\n for (int i = 0; i < TAPS; i++) {\n float s = k * (1.0 - b * (float(i) + jitter) / float(TAPS));\n vec2 q = center + (uv - center) * s;\n vec4 c = incoming ? getToColor(q) : getFromColor(q);\n sum += vec4(c.rgb * c.a, c.a);\n }\n return sum / float(TAPS);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n vec2 aspect = vec2(ratio, 1.0);\n vec2 d = (uv - center) * aspect;\n float r = length(d);\n // (nudged off zero, where atan is undefined)\n float a = atan(d.y, d.x + 1e-6) / (2.0 * PI) + 0.5;\n // distance from the center to the farthest corner\n vec2 far = max(center, 1.0 - center) * aspect;\n float reach = length(far);\n\n // the camera speeds up to the jump, at the middle, then slows down\n float speed = sin(PI * p);\n speed *= speed;\n float travel = 3.0 * (p - sin(2.0 * PI * p) / (2.0 * PI));\n float jitter = hash(floor(uv * aspect * 997.0));\n\n // the outgoing image is pulled forward into the smear; the incoming one arrives\n // magnified and smeared, and settles\n float goOut = smoothstep(0.0, 0.55, p);\n float goIn = 1.0 - smoothstep(0.45, 1.0, p);\n // the incoming image emerges from the center and spreads out to the corners\n float soft = 0.35 * reach;\n float edge = mix(-soft, reach + soft, smoothstep(0.42, 0.78, p));\n float m = 1.0 - smoothstep(edge - soft, edge, r);\n vec4 before = vec4(0.0);\n vec4 after = vec4(0.0);\n if (m < 1.0) before = smear(uv, 1.0 - 0.3 * strength * goOut * goOut, 0.6 * strength * goOut, jitter, false);\n if (m > 0.0) after = smear(uv, 1.0 - 0.3 * strength * goIn * goIn, 0.6 * strength * goIn, jitter, true);\n vec4 c = mix(before, after, m);\n // darker while in the jump, so that the streaks stand out, and brighter soon after it\n // so the incoming image comes out clear\n float dark = p < 0.5 ? speed : speed * speed * speed;\n c.rgb *= 1.0 - 0.65 * (0.5 + 0.5 * strength) * dark;\n\n // the streaks: two layers of stars, their length growing with the speed\n float n = max(floor(streaks), 1.0);\n float len = speed * (0.5 + 1.5 * strength);\n float s = stars(a, r, n, 1.0, travel, len, reach);\n s += stars(fract(a + 0.37), r, max(floor(n * 0.71), 1.0), 2.0, travel * 1.3, len, reach);\n // the flash, brightest at the center, where the incoming image emerges\n float core = r / (0.35 * reach);\n float peak = (p - 0.5) * 9.0;\n float glow = flash * exp(-peak * peak) * speed * (0.35 + 0.9 * exp(-core * core));\n vec3 light = streakColor.rgb * streakColor.a * (2.2 * s * speed + glow);\n // light is added to the image, but adds no opacity\n return c.a > 0.0 ? vec4(clamp(c.rgb / c.a + light, 0.0, 1.0), c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The camera jumps to light speed: star streaks shoot out from the center and stretch longer and longer while the outgoing image is pulled into a radial smear, then after a flash the incoming image emerges from the center as the streaks shrink back","tags":["zoom","radial","light","motion-blur","space"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Point the camera flies toward, from (0, 0) at the bottom left to (1, 1) at the top right"},"streaks":{"type":"float","default":160,"min":20,"max":400,"description":"Number of star streaks around the center"},"streakColor":{"type":"vec4","default":[0.78,0.88,1,1],"color":true,"description":"Color of the streaks and of the flash, added as light"},"strength":{"type":"float","default":0.6,"min":0,"max":1,"description":"Length of the streaks and of the radial smear"},"flash":{"type":"float","default":0.5,"min":0,"max":1,"description":"Brightness of the flash at the peak of the jump"}},"textures":[],"createdAt":"Thu, 5 Nov 2026 07:29:56 +0100","updatedAt":"Thu, 5 Nov 2026 07:29:56 +0100"},{"name":"WaterDrop","paramsTypes":{"amplitude":"float","speed":"float"},"defaultParams":{"amplitude":30,"speed":30},"glsl":"// Author: Paweł Płóciennik\n// License: MIT\n// Description: Ripples spread from the center like a drop falling into water, crossfading to the incoming image\n// Tags: ripple, water, blend\n// @param Frequency of the ripples\nuniform float amplitude; // = 30\n// @param Speed of the ripples\nuniform float speed; // = 30\n\nvec4 transition(vec2 p) {\n vec2 dir = p - vec2(.5);\n float dist = length(dir);\n\n if (dist > progress) {\n return mix(getFromColor( p), getToColor( p), progress);\n } else {\n vec2 offset = dir * sin(dist * amplitude - progress * speed);\n return mix(getFromColor( p + offset), getToColor( p), progress);\n }\n}\n","author":"Paweł Płóciennik","license":"MIT","description":"Ripples spread from the center like a drop falling into water, crossfading to the incoming image","tags":["ripple","water","blend"],"params":{"amplitude":{"type":"float","default":30,"description":"Frequency of the ripples"},"speed":{"type":"float","default":30,"description":"Speed of the ripples"}},"textures":[],"createdAt":"Wed, 21 Feb 2018 19:37:15 +0100","updatedAt":"Sat, 10 Oct 2026 10:11:31 +0200"},{"name":"WedgeWipe","paramsTypes":{"angle":"float","smoothness":"float","center":"vec2"},"defaultParams":{"angle":0,"smoothness":0.01,"center":[0.5,0.5]},"glsl":"// Author: gre\n// License: MIT\n// Description: Two hands sweep away from each other around the center, opening a widening wedge that reveals the incoming image\n// Tags: wipe, radial, clock, wedge\n\n#define PI 3.141592653589793\n\n// @range(-180, 180) Direction the wedge opens from, in degrees clockwise from 12 o'clock\nuniform float angle; // = 0.0\n// @range(0, 0.2) Softness of the hands' edges\nuniform float smoothness; // = 0.01\n// @param Point the hands turn around\nuniform vec2 center; // = vec2(0.5)\n\nvec4 transition (vec2 uv) {\n // At the end, float PI rounds above pi and sin(spread) can turn slightly negative\n if (progress >= 1.0) return getToColor(uv);\n // Measured in square pixels, so the angles are not stretched\n vec2 q = (uv - center) * vec2(ratio, 1.0);\n float a = radians(angle);\n // Local frame: y along the starting direction, x across it (the wedge is symmetric)\n vec2 p = vec2(abs(q.x * cos(a) - q.y * sin(a)), q.x * sin(a) + q.y * cos(a));\n // Each hand has turned by half a turn at the end\n float spread = PI * progress;\n vec2 hand = vec2(sin(spread), cos(spread));\n // Signed distance to the wedge: the nearest hand, negative inside\n float l = length(p);\n float d = length(p - hand * clamp(dot(p, hand), 0.0, l)) * sign(hand.y * p.x - hand.x * p.y);\n // The soft edge keeps an even width and slides from outside to inside the hands,\n // so nothing is revealed at the start and everything is at the end\n float s = max(smoothness, 0.001);\n float m = 1.0 - smoothstep(0.0, s, d + s * (1.0 - progress));\n return mix(getFromColor(uv), getToColor(uv), m);\n}\n","author":"gre","license":"MIT","description":"Two hands sweep away from each other around the center, opening a widening wedge that reveals the incoming image","tags":["wipe","radial","clock","wedge"],"params":{"angle":{"type":"float","default":0,"min":-180,"max":180,"description":"Direction the wedge opens from, in degrees clockwise from 12 o'clock"},"smoothness":{"type":"float","default":0.01,"min":0,"max":0.2,"description":"Softness of the hands' edges"},"center":{"type":"vec2","default":[0.5,0.5],"description":"Point the hands turn around"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 09:49:36 +0100","updatedAt":"Mon, 2 Nov 2026 09:49:36 +0100"},{"name":"WhipPan","paramsTypes":{"direction":"vec2","blur":"float"},"defaultParams":{"direction":[-1,0],"blur":0.4},"glsl":"// Author: gre\n// License: MIT\n// Description: A fast camera pan that streaks both images with motion blur, the incoming one arriving from the opposite side\n// Tags: slide, motion-blur, directional\n\n// @param Direction in which the images move\nuniform vec2 direction; // = vec2(-1.0, 0.0)\n// @range(0, 1) Length of the motion blur at full speed\nuniform float blur; // = 0.4\n\nconst int SAMPLES = 24;\n\n// The panned strip: the outgoing image, then the incoming one behind it\nvec4 strip(vec2 q, vec2 d) {\n vec2 qt = q + d;\n // which side of the seam between the two images (works for diagonals too)\n if (dot(q - 0.5, -d) < 0.5 * dot(d, d)) {\n return getFromColor(clamp(q, 0.0, 1.0));\n }\n return getToColor(clamp(qt, 0.0, 1.0));\n}\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvec4 transition(vec2 uv) {\n vec2 d = sign(direction);\n // ease in and out: slow start, whip in the middle, slow landing\n float p = progress;\n float h = 1.0 - abs(2.0 * p - 1.0); // 0 at both ends, 1 in the middle\n // mostly cubic, with a bit of linear so that it starts moving at once\n float e = 0.5 * h * (0.1 + 0.9 * h * h);\n float pos = p < 0.5 ? e : 1.0 - e;\n float len = blur * h * (0.1 + 2.7 * h * h) / 2.8; // follows the speed\n\n vec2 q = uv - d * pos;\n // average along the motion, jittered to hide the sample steps\n float jitter = rand(uv);\n vec3 color = vec3(0.0);\n float alpha = 0.0;\n for (int i = 0; i < SAMPLES; i++) {\n float t = (float(i) + jitter) / float(SAMPLES) - 0.5;\n vec4 c = strip(q + d * t * len, d);\n color += c.rgb * c.a;\n alpha += c.a;\n }\n return vec4(color / max(alpha, 1e-5), alpha / float(SAMPLES));\n}\n","author":"gre","license":"MIT","description":"A fast camera pan that streaks both images with motion blur, the incoming one arriving from the opposite side","tags":["slide","motion-blur","directional"],"params":{"direction":{"type":"vec2","default":[-1,0],"description":"Direction in which the images move"},"blur":{"type":"float","default":0.4,"min":0,"max":1,"description":"Length of the motion blur at full speed"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:20:26 +0100","updatedAt":"Sat, 31 Oct 2026 18:20:26 +0100"},{"name":"WhipSpin","paramsTypes":{"turns":"float","blur":"float","chroma":"float","zoom":"float"},"defaultParams":{"turns":1,"blur":0.5,"chroma":0.6,"zoom":0.25},"glsl":"// Author: gre\n// License: MIT\n// Description: The camera rolls faster and faster around the center of the frame, streaking the outgoing image in a spin blur, then the incoming one takes over mid-spin and slows to a stop\n// Tags: rotate, motion-blur, spin\n\n// @range(-3, 3) Total rotation, in turns, split between the two images (negative turns clockwise)\nuniform float turns; // = 1.0\n// @range(0, 1) Length of the motion blur along the spin\nuniform float blur; // = 0.5\n// @range(0, 1) How much the color channels split apart as the spin speeds up\nuniform float chroma; // = 0.6\n// @range(0, 1) How much the camera zooms in at the fastest point\nuniform float zoom; // = 0.25\n\nconst float PI = 3.141592653589793;\nconst int SAMPLES = 24;\n\nfloat hash(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * vec3(0.1031, 0.1030, 0.0973));\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// fold the coordinates back into the image so that the rotated frame stays filled\nvec2 mirror(vec2 v) {\n vec2 m = mod(v, 2.0);\n return mix(m, 2.0 - m, step(1.0, m));\n}\n\n// the camera's roll angle at time t: the outgoing image speeds up until the middle,\n// then the incoming one, already turning, slows down to rest\nfloat rollAngle(float t) {\n float halfTurn = PI * turns;\n if (t < 0.5) {\n float x = 2.0 * t;\n return halfTurn * x * x * x;\n }\n float x = 2.0 - 2.0 * t;\n return -halfTurn * x * x * x;\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n float h = 1.0 - abs(2.0 * p - 1.0); // 0 at both ends, 1 at the cut\n // the shutter is open longer as the spin speeds up, and closed at both ends\n float shutter = blur * 0.1 * h;\n float scale = 1.0 + zoom * h * h * h;\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0);\n float jitter = hash(uv * vec2(ratio, 1.0) * 731.0);\n vec3 color = vec3(0.0);\n vec3 weight = vec3(0.0);\n float alpha = 0.0;\n for (int i = 0; i < SAMPLES; i++) {\n float s = (float(i) + jitter) / float(SAMPLES) - 0.5;\n float t = clamp(p + s * shutter, 0.0, 1.0);\n float a = rollAngle(t);\n float c = cos(a), sn = sin(a);\n vec2 r = vec2(c * q.x + sn * q.y, -sn * q.x + c * q.y) / scale;\n vec2 suv = mirror(r / vec2(ratio, 1.0) + 0.5);\n vec4 col = t < 0.5 ? getFromColor(suv) : getToColor(suv);\n // red trails behind and blue leads along the arc: the channels split with the speed\n vec3 w = max(vec3(1.0 - 4.0 * chroma * s, 1.0, 1.0 + 4.0 * chroma * s), 0.0);\n color += col.rgb * col.a * w;\n weight += col.a * w;\n alpha += col.a;\n }\n return vec4(color / max(weight, vec3(1e-5)), alpha / float(SAMPLES));\n}\n","author":"gre","license":"MIT","description":"The camera rolls faster and faster around the center of the frame, streaking the outgoing image in a spin blur, then the incoming one takes over mid-spin and slows to a stop","tags":["rotate","motion-blur","spin"],"params":{"turns":{"type":"float","default":1,"min":-3,"max":3,"description":"Total rotation, in turns, split between the two images (negative turns clockwise)"},"blur":{"type":"float","default":0.5,"min":0,"max":1,"description":"Length of the motion blur along the spin"},"chroma":{"type":"float","default":0.6,"min":0,"max":1,"description":"How much the color channels split apart as the spin speeds up"},"zoom":{"type":"float","default":0.25,"min":0,"max":1,"description":"How much the camera zooms in at the fastest point"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 23:20:50 +0100","updatedAt":"Sat, 31 Oct 2026 23:20:50 +0100"},{"name":"WhipTilt","paramsTypes":{"down":"bool","blur":"float","chroma":"float","perspective":"float"},"defaultParams":{"down":false,"blur":0.5,"chroma":0.5,"perspective":0.7},"glsl":"// Author: gre\n// License: MIT\n// Description: The camera tilts fast from the outgoing image to the incoming one, set edge to edge at an angle above it, streaking both in perspective with a vertical motion blur\n// Tags: 3d, rotate, motion-blur, vertical\n\n// @param Tilt the camera down to an incoming image below instead of above\nuniform bool down; // = false\n// @range(0, 1) Length of the motion blur along the tilt\nuniform float blur; // = 0.5\n// @range(0, 1) How much the color channels split apart as the tilt speeds up\nuniform float chroma; // = 0.5\n// @range(0, 1) Strength of the perspective (field of view of the camera)\nuniform float perspective; // = 0.7\n\nconst float PI = 3.141592653589793;\nconst int SAMPLES = 24;\n\nfloat hash(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * vec3(0.1031, 0.1030, 0.0973));\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// fold the coordinates back into the image, only a safety at the far edges\nvec2 mirror(vec2 v) {\n vec2 m = mod(v, 2.0);\n return mix(m, 2.0 - m, step(1.0, m));\n}\n\n// how far the camera has tilted at time t, from 0 to 1: slow start, whip in the middle, slow landing\nfloat tilt(float t) {\n float h = 1.0 - abs(2.0 * t - 1.0);\n float e = 0.5 * h * h * h * h;\n return t < 0.5 ? e : 1.0 - e;\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n float h = 1.0 - abs(2.0 * p - 1.0); // 0 at both ends, 1 in the middle\n // the shutter is open longer as the tilt speeds up, and closed at both ends\n float shutter = blur * 0.25 * h * h;\n // the images are two faces of a drum around the camera, each filling the frame from the\n // middle: they meet edge to edge at the angle of the field of view, which the camera turns by\n float halfFov = mix(15.0, 45.0, perspective) * PI / 180.0;\n float dist = 0.5 / tan(halfFov);\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0);\n if (down) q.y = -q.y;\n float jitter = hash(uv * vec2(ratio, 1.0) * 731.0);\n vec3 color = vec3(0.0);\n vec3 weight = vec3(0.0);\n float alpha = 0.0;\n for (int i = 0; i < SAMPLES; i++) {\n float s = (float(i) + jitter) / float(SAMPLES) - 0.5;\n float t = clamp(p + s * shutter, 0.0, 1.0);\n float a = 2.0 * halfFov * tilt(t);\n // zoom in just enough that the faces always cover the frame, wherever their edge is\n vec2 r = q * cos(halfFov) / cos(halfFov - a);\n // the ray in the frame of the outgoing face, then of the incoming one\n float c0 = cos(a), s0 = sin(a);\n vec2 d0 = vec2(r.y * c0 + dist * s0, dist * c0 - r.y * s0);\n float b = a - 2.0 * halfFov;\n float c1 = cos(b), s1 = sin(b);\n vec2 d1 = vec2(r.y * c1 + dist * s1, dist * c1 - r.y * s1);\n // the ray leaves the drum through the nearest face\n bool incoming = d1.y > d0.y;\n vec2 d = incoming ? d1 : d0;\n vec2 hit = dist / d.y * vec2(r.x, d.x);\n if (down) hit.y = -hit.y;\n vec2 suv = mirror(hit / vec2(ratio, 1.0) + 0.5);\n vec4 col = incoming ? getToColor(suv) : getFromColor(suv);\n // red trails behind and blue leads along the motion: the channels split with the speed\n vec3 w = max(vec3(1.0 - 4.0 * chroma * s, 1.0, 1.0 + 4.0 * chroma * s), 0.0);\n color += col.rgb * col.a * w;\n weight += col.a * w;\n alpha += col.a;\n }\n return vec4(color / max(weight, vec3(1e-5)), alpha / float(SAMPLES));\n}\n","author":"gre","license":"MIT","description":"The camera tilts fast from the outgoing image to the incoming one, set edge to edge at an angle above it, streaking both in perspective with a vertical motion blur","tags":["3d","rotate","motion-blur","vertical"],"params":{"down":{"type":"bool","default":false,"description":"Tilt the camera down to an incoming image below instead of above"},"blur":{"type":"float","default":0.5,"min":0,"max":1,"description":"Length of the motion blur along the tilt"},"chroma":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the color channels split apart as the tilt speeds up"},"perspective":{"type":"float","default":0.7,"min":0,"max":1,"description":"Strength of the perspective (field of view of the camera)"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 23:20:50 +0100","updatedAt":"Sat, 31 Oct 2026 23:20:50 +0100"},{"name":"Wind","paramsTypes":{"size":"float","reversed":"bool"},"defaultParams":{"size":0.2,"reversed":false},"glsl":"// Author: gre\n// License: MIT\n// Description: A ragged left-to-right wipe, as if the image was blown away by the wind\n// Tags: wipe, horizontal, noise\n\n// @range(0, 1) Width of the ragged edge\nuniform float size; // = 0.2\n// @param Wipe from right to left instead\nuniform bool reversed; // = false\n\nfloat rand (vec2 co) {\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n\nvec4 transition (vec2 uv) {\n float x = reversed ? 1. - uv.x : uv.x;\n float r = rand(vec2(0, uv.y));\n float m = smoothstep(0.0, -size, x*(1.0-size) + size*r - (progress * (1.0 + size)));\n return mix(\n getFromColor(uv),\n getToColor(uv),\n m\n );\n}\n","author":"gre","license":"MIT","description":"A ragged left-to-right wipe, as if the image was blown away by the wind","tags":["wipe","horizontal","noise"],"params":{"size":{"type":"float","default":0.2,"min":0,"max":1,"description":"Width of the ragged edge"},"reversed":{"type":"bool","default":false,"description":"Wipe from right to left instead"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"WindowBlinds","paramsTypes":{},"defaultParams":{},"glsl":"// Author: Fabien Benetou\n// License: MIT\n// Description: A crossfade through horizontal window blinds\n// Tags: blinds, stripes, blend\n\nvec4 transition (vec2 uv) {\n float t = progress;\n \n if (mod(floor(uv.y*100.*progress),2.)==0.)\n t*=2.-.5;\n \n return mix(\n getFromColor(uv),\n getToColor(uv),\n mix(t, progress, smoothstep(0.8, 1.0, progress))\n );\n}\n","author":"Fabien Benetou","license":"MIT","description":"A crossfade through horizontal window blinds","tags":["blinds","stripes","blend"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"WindowSlices","paramsTypes":{"count":"float","smoothness":"float"},"defaultParams":{"count":10,"smoothness":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The incoming image appears through vertical slices that widen\n// Tags: slices, stripes, wipe\n\n// @param Number of slices\nuniform float count; // = 10.0\n// @param Softness of the slices' edges\nuniform float smoothness; // = 0.5\n\nvec4 transition (vec2 p) {\n float pr = smoothstep(-smoothness, 0.0, p.x - progress * (1.0 + smoothness));\n float s = step(pr, fract(count * p.x));\n return mix(getFromColor(p), getToColor(p), s);\n}\n","author":"gre","license":"MIT","description":"The incoming image appears through vertical slices that widen","tags":["slices","stripes","wipe"],"params":{"count":{"type":"float","default":10,"description":"Number of slices"},"smoothness":{"type":"float","default":0.5,"description":"Softness of the slices' edges"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ZoomInCircles","paramsTypes":{},"defaultParams":{},"glsl":"// License: MIT\n// Author: dycm8009\n// Description: Concentric rings of the outgoing image zoom at different speeds before revealing the incoming one\n// Tags: zoom, circle\n// ported by gre from https://gist.github.com/dycm8009/948e99b1800e81ad909a\n\nvec2 zoom(vec2 uv, float amount) {\n return 0.5 + ((uv - 0.5) * amount);\t\n}\n\nvec4 transition(vec2 uv) {\n vec2 ratio2 = vec2(1.0, 1.0 / ratio);\n // TODO: some timing are hardcoded but should be one or many parameters\n // TODO: should also be able to configure how much circles\n // TODO: if() branching should be avoided when possible, prefer use of step() & other functions\n vec2 r = 2.0 * ((vec2(uv.xy) - 0.5) * ratio2);\n float pro = progress / 0.8;\n float z = pro * 0.2;\n float t = 0.0;\n if (pro > 1.0) {\n z = 0.2 + (pro - 1.0) * 5.;\n t = clamp((progress - 0.8) / 0.07, 0.0, 1.0);\n }\n if (length(r) < 0.5+z) {\n // uv = zoom(uv, 0.9 - 0.1 * pro);\n }\n else if (length(r) < 0.8+z*1.5) {\n uv = zoom(uv, 1.0 - 0.15 * pro);\n t = t * 0.5;\n }\n else if (length(r) < 1.2+z*2.5) {\n uv = zoom(uv, 1.0 - 0.2 * pro);\n t = t * 0.2;\n }\n else {\n uv = zoom(uv, 1.0 - 0.25 * pro);\n }\n return mix(getFromColor(uv), getToColor(uv), t);\n}\n","author":"dycm8009","license":"MIT","description":"Concentric rings of the outgoing image zoom at different speeds before revealing the incoming one","tags":["zoom","circle"],"params":{},"textures":[],"createdAt":"Mon, 12 Jun 2017 11:24:34 +0800","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"ZoomInOut","paramsTypes":{},"defaultParams":{},"glsl":"// Author: OllyOllyOlly\n// License: MIT\n// Description: Zooms into the outgoing image until it blurs into a flat color, then out to the incoming one\n// Tags: zoom, blur\n\nvec2 zoom(vec2 uv, float amount) {\n return 0.5 + ((uv - 0.5) * (1.0 - amount));\n}\n\nvec4 transition (vec2 uv) {\n float zoomFrom = smoothstep(0.0, 1.0, progress * 2.0);\n float zoomTo = smoothstep(0.0, 1.0, (1.0 - progress) * 2.0);\n float crossfade = smoothstep(0.4, 0.6, progress);\n return mix(\n getFromColor(zoom(uv, zoomFrom)),\n getToColor(zoom(uv, zoomTo)),\n crossfade\n );\n}\n","author":"OllyOllyOlly","license":"MIT","description":"Zooms into the outgoing image until it blurs into a flat color, then out to the incoming one","tags":["zoom","blur"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ZoomWipeLeft","paramsTypes":{"zoom_quickness":"float"},"defaultParams":{"zoom_quickness":0.8},"glsl":"// Author: Handk\n// License: MIT\n// Description: Zooms into the outgoing image, then the incoming one wipes in from right to left\n// Tags: zoom, wipe, horizontal\n\n// @param Part of the first half spent zooming (capped at 0.5)\nuniform float zoom_quickness; // = 0.8\nvec2 zoom(vec2 uv, float amount) {\n if(amount<0.5)\n return 0.5 + ((uv - 0.5) * (1.0-amount));\n else\n return 0.5 + ((uv - 0.5) * (amount));\n \n}\n\nvec4 transition (vec2 uv) {\n float nQuick = clamp(zoom_quickness,0.0,0.5);\n if(progress<0.5){\n vec4 c= mix(\n getFromColor(zoom(uv, smoothstep(0.0, nQuick, progress))),\n getToColor(uv),\n step(0.5, progress)\n );\n \n return c;\n }\n else{\n vec2 p=uv.xy/vec2(1.0).xy;\n vec4 d=getFromColor(p);\n vec4 e=getToColor(p);\n vec4 f= mix(d, e, step(1.0-p.x,(progress-0.5)*2.0));\n \n return f;\n }\n}\n","author":"Handk","license":"MIT","description":"Zooms into the outgoing image, then the incoming one wipes in from right to left","tags":["zoom","wipe","horizontal"],"params":{"zoom_quickness":{"type":"float","default":0.8,"description":"Part of the first half spent zooming (capped at 0.5)"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ZoomWipeRight","paramsTypes":{"zoom_quickness":"float"},"defaultParams":{"zoom_quickness":0.8},"glsl":"// Author: Handk\n// License: MIT\n// Description: Zooms into the outgoing image, then the incoming one wipes in from left to right\n// Tags: zoom, wipe, horizontal\n\n// @param Part of the first half spent zooming (capped at 0.5)\nuniform float zoom_quickness; // = 0.8\nvec2 zoom(vec2 uv, float amount) {\n if(amount<0.5)\n return 0.5 + ((uv - 0.5) * (1.0-amount));\n else\n return 0.5 + ((uv - 0.5) * (amount));\n \n}\n\nvec4 transition (vec2 uv) {\n float nQuick = clamp(zoom_quickness,0.0,0.5);\n if(progress<0.5){\n vec4 c= mix(\n getFromColor(zoom(uv, smoothstep(0.0, nQuick, progress))),\n getToColor(uv),\n step(0.5, progress)\n );\n \n return c;\n }\n else{\n vec2 p=uv.xy/vec2(1.0).xy;\n vec4 d=getFromColor(p);\n vec4 e=getToColor(p);\n vec4 f= mix(d, e, step(0.0+p.x,(progress-0.5)*2.0));\n \n return f;\n }\n}\n","author":"Handk","license":"MIT","description":"Zooms into the outgoing image, then the incoming one wipes in from left to right","tags":["zoom","wipe","horizontal"],"params":{"zoom_quickness":{"type":"float","default":0.8,"description":"Part of the first half spent zooming (capped at 0.5)"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"}]
|
|
2
|
+
[{"name":"Accordion","paramsTypes":{"pleats":"int","direction":"vec2","shading":"float","perspective":"float","backColor":"vec4"},"defaultParams":{"pleats":4,"direction":[-1,0],"shading":0.7,"perspective":1.5,"backColor":[0,0,0,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image folds up like a pleated paper toward one side while the incoming one unfolds out of the other, both in 3D with lit and shadowed pleats\n// Tags: fold, 3d, slide, stripes\n\n// @range(1, 12, 1) Number of pleats in each image (a pleat is a pair of panels, one lit and one in the shade)\nuniform int pleats; // = 4\n// @param Direction in which the images move, snapped to its main axis (left, right, up or down): the outgoing image folds up toward it, the incoming one unfolds from the opposite side\nuniform vec2 direction; // = vec2(-1.0, 0.0)\n// @range(0, 1) Contrast between the lit and the shaded panels\nuniform float shading; // = 0.7\n// @range(0, 3) Amount of perspective: the valleys between the pleats recede\nuniform float perspective; // = 1.5\n// @color Color seen around the folded images, where the valleys recede\nuniform vec4 backColor; // = vec4(0.0, 0.0, 0.0, 1.0)\n\n// light from the front and the side: its sideways and front components\nconst float LIGHT_SIDE = 0.55;\nconst float LIGHT_FRONT = 0.835;\n// width of the anti-aliased folds and edges, in frame heights\nconst float EDGE = 0.0015;\n\n// brightness of a panel folded by angle (c, s) = (cos, sin), facing the light (sign 1) or away (-1)\nfloat panelLight(float c, float s, float facing) {\n float lambert = (c * LIGHT_FRONT + facing * s * LIGHT_SIDE) / LIGHT_FRONT;\n return mix(1.0, clamp(lambert, 0.08, 1.25), shading);\n}\n\n// one folded image: f is the position along it (0 to 1, from its anchored side), c the visible part\n// of its length (cos of the fold angle), len its length and b the position across it, in frame heights\nvec4 pleated(float f, float c, float len, float b, float bLen, bool incoming, bool flipA, bool vertical) {\n float m = 2.0 * float(pleats > 1 ? pleats : 1);\n float s = sqrt(max(1.0 - c * c, 0.0));\n float u = f * m;\n // f = 1 is the end of the last panel, not the start of one more\n float panel = min(floor(u), m - 1.0);\n float fu = u - panel;\n // the ridges (odd boundaries) stay in the frame's plane, the valleys (even ones) recede\n float tri = 1.0 - abs(mod(u, 2.0) - 1.0);\n float panelLen = len / m;\n float z = panelLen * s * (1.0 - tri);\n // farther parts look smaller\n float scale = 1.0 / (1.0 + perspective * z);\n float bb = (b - 0.5 * bLen) / scale / bLen + 0.5;\n // soft top and bottom edges while folded (sharp when flat, to keep the first and last frames exact)\n float edge = EDGE * min(1.0, 20.0 * s * c) + 1e-6;\n float cover = clamp(min(bb, 1.0 - bb) * bLen * scale / edge, 0.0, 1.0);\n float a = flipA ? 1.0 - f : f;\n vec2 st = clamp(vertical ? vec2(bb, a) : vec2(a, bb), 0.0, 1.0);\n vec4 img = incoming ? getToColor(st) : getFromColor(st);\n // even panels face the light, odd ones turn away; blend across each fold over a pixel or so\n float facing = mod(panel, 2.0) < 0.5 ? 1.0 : -1.0;\n float toEdge = min(fu, 1.0 - fu) * panelLen * c;\n float k = 0.5 + 0.5 * clamp(toEdge / EDGE, 0.0, 1.0);\n float light = mix(panelLight(c, s, -facing), panelLight(c, s, facing), k);\n // a touch of shade deep in the valleys\n float valley = 1.0 - tri;\n light *= 1.0 - 0.4 * shading * s * valley * valley;\n return mix(backColor, vec4(img.rgb * light, img.a), cover);\n}\n\nvec4 transition(vec2 uv) {\n bool vertical = abs(direction.y) > abs(direction.x);\n bool positive = vertical ? direction.y > 0.0 : direction.x > 0.0;\n // a: along the motion, 0 on the side the outgoing image folds up toward; b: across it\n float a = vertical ? uv.y : uv.x;\n if (positive) a = 1.0 - a;\n float b = vertical ? uv.x : uv.y;\n float len = vertical ? 1.0 : ratio;\n float bLen = vertical ? ratio : 1.0;\n\n float p = progress;\n float e = p * p * (3.0 - 2.0 * p);\n e = mix(p, e, 0.8);\n // visible part of each image's length\n float cFrom = 1.0 - e;\n float cTo = e;\n if (a < cFrom || cTo <= 0.0) {\n // the outgoing image, anchored on its side\n return pleated(a / cFrom, cFrom, len, b * bLen, bLen, false, positive, vertical);\n }\n // the incoming image, anchored on the opposite side\n return pleated(1.0 - (1.0 - a) / cTo, cTo, len, b * bLen, bLen, true, positive, vertical);\n}\n","author":"gre","license":"MIT","description":"The outgoing image folds up like a pleated paper toward one side while the incoming one unfolds out of the other, both in 3D with lit and shadowed pleats","tags":["fold","3d","slide","stripes"],"params":{"pleats":{"type":"int","default":4,"min":1,"max":12,"step":1,"description":"Number of pleats in each image (a pleat is a pair of panels, one lit and one in the shade)"},"direction":{"type":"vec2","default":[-1,0],"description":"Direction in which the images move, snapped to its main axis (left, right, up or down): the outgoing image folds up toward it, the incoming one unfolds from the opposite side"},"shading":{"type":"float","default":0.7,"min":0,"max":1,"description":"Contrast between the lit and the shaded panels"},"perspective":{"type":"float","default":1.5,"min":0,"max":3,"description":"Amount of perspective: the valleys between the pleats recede"},"backColor":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color seen around the folded images, where the valleys recede"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:36:49 +0100","updatedAt":"Sun, 1 Nov 2026 20:36:49 +0100"},{"name":"ApertureWipe","paramsTypes":{"blades":"int","rotation":"float","shadow":"float"},"defaultParams":{"blades":6,"rotation":60,"shadow":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: A camera aperture opens its turning blades to reveal the incoming image\n// Tags: shape, wipe, iris, rotate\n\n#define PI 3.141592653589793\n\n// @range(3, 12) Number of blades\nuniform int blades; // = 6\n// @range(-180, 180) How much the blades turn while opening, in degrees\nuniform float rotation; // = 60.0\n// @range(0, 1) How dark the blades are shaded along their edges\nuniform float shadow; // = 0.5\n\nconst float AA = 0.006;\n\nvec4 transition (vec2 uv) {\n // Square pixels, normalized so the frame's corners are at distance 1\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0) / (0.5 * length(vec2(ratio, 1.0)));\n float n = clamp(float(blades), 3.0, 12.0);\n float sector = 2.0 * PI / n;\n float turn = radians(rotation) * progress;\n // Each blade's straight edge is at distance r from the center: the opening is the polygon they enclose\n float r = mix(-AA, 1.0 + AA, progress);\n float dist = -1e3;\n float seam = 0.0;\n for (int i = 0; i < 12; i++) {\n if (float(i) < n) {\n float angle = turn + float(i) * sector;\n float d = dot(q, vec2(cos(angle), sin(angle))) - r;\n float next = dot(q, vec2(cos(angle + sector), sin(angle + sector))) - r;\n dist = max(dist, d);\n // Past its corner, the edge of a blade lies over the next blade and casts a shadow on it\n float s = 1.0 - smoothstep(0.0, 0.12, -d);\n seam = max(seam, (1.0 - smoothstep(0.0, AA, d)) * s * s * smoothstep(0.0, AA, next));\n }\n }\n // The blades are also shaded along the opening; the shading fades in as the aperture starts to open\n float rim = 1.0 - smoothstep(0.0, 0.08, dist);\n float shade = shadow * max(rim * rim, seam) * smoothstep(0.0, 0.1, progress);\n vec4 from = getFromColor(uv);\n from.rgb *= 1.0 - shade;\n return mix(from, getToColor(uv), 1.0 - smoothstep(0.0, AA, dist));\n}\n","author":"gre","license":"MIT","description":"A camera aperture opens its turning blades to reveal the incoming image","tags":["shape","wipe","iris","rotate"],"params":{"blades":{"type":"int","default":6,"min":3,"max":12,"description":"Number of blades"},"rotation":{"type":"float","default":60,"min":-180,"max":180,"description":"How much the blades turn while opening, in degrees"},"shadow":{"type":"float","default":0.5,"min":0,"max":1,"description":"How dark the blades are shaded along their edges"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:17:51 +0100","updatedAt":"Sat, 31 Oct 2026 18:17:51 +0100"},{"name":"ArrowWipe","paramsTypes":{"direction":"vec2","notch":"float","width":"float","count":"int","origin":"bool","smoothness":"float"},"defaultParams":{"direction":[1,0],"notch":0.4,"width":80,"count":1,"origin":false,"smoothness":0.004},"glsl":"// Author: gre\n// License: MIT\n// Description: A notched arrowhead window onto the incoming image flies in from the edge behind it (or appears at the center), then swells until it fills the frame\n// Tags: shape, wipe, arrow, chevron, directional\n\n// @param Direction the arrow points and flies toward\nuniform vec2 direction; // = vec2(1.0, 0.0)\n// @range(0, 0.9) Depth of the notch at the back of the arrowhead (0 for a plain triangle)\nuniform float notch; // = 0.4\n// @range(20, 160) Opening angle of the arrowhead's tip, in degrees\nuniform float width; // = 80.0\n// @range(1, 3, 1) Number of nested chevrons flying in a row\nuniform int count; // = 1\n// @param Grow the arrow from the center of the frame instead of flying it in\nuniform bool origin; // = false\n// @range(0, 0.1) Softness of the arrow's edges\nuniform float smoothness; // = 0.004\n\n// Signed distance (in frame heights) to an arrowhead whose tip is at x = tip and whose notch\n// reaches back to x = back, in the arrow's frame (x along the direction, y = |across|)\nfloat arrow(vec2 q, float tip, float back, vec2 tipN, vec2 notchN) {\n float front = dot(vec2(q.x - tip, q.y), tipN);\n float rear = dot(vec2(back - q.x, -q.y), notchN);\n return max(front, rear);\n}\n\nvec4 transition(vec2 uv) {\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n vec2 across = vec2(-dir.y, dir.x);\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n vec2 q = vec2(dot(p, dir), abs(dot(p, across)));\n\n float s = max(smoothness, 0.001);\n float n = clamp(notch, 0.0, 0.9);\n float h = radians(0.5 * clamp(width, 20.0, 160.0));\n float cot = cos(h) / sin(h);\n // outward normals of the tip's edges and of the notch's edges\n vec2 tipN = vec2(sin(h), cos(h));\n float notchLen = length(vec2(1.0, n * cot));\n vec2 notchN = vec2(1.0, n * cot) / notchLen;\n // how far the tip must pass a point for the soft edge to clear it\n float tipPad = s / sin(h);\n\n // The frame's corners in the arrow's frame\n vec2 c1 = vec2(0.5 * ratio, 0.5);\n vec2 c2 = vec2(0.5 * ratio, -0.5);\n vec2 k1 = vec2(abs(dot(c1, dir)), abs(dot(c1, across)));\n vec2 k2 = vec2(abs(dot(c2, dir)), abs(dot(c2, across)));\n // half extent of the frame along the direction, and where its back edge crosses the axis\n float e = max(k1.x, k2.x);\n float r = 0.5 / max(abs(dir.x) / ratio, abs(dir.y));\n // To cover the frame, the tip must be ahead of every corner, and the notch behind every\n // corner and behind the back edge's middle (with room for the soft edge)\n float tipMin = max(k1.x + k1.y * cot, k2.x + k2.y * cot) + tipPad;\n float notchMax = min(min(n * cot * k1.y - k1.x, n * cot * k2.y - k2.x), -r) - s * notchLen;\n\n // The arrow (length 1 from tip to barbs) turns around the middle of its axis: its tip is\n // half its body ahead of that point, its notch half its body behind\n float body = 0.5 * (1.0 - n);\n // The scale at which the arrow centered on the frame covers it\n float cover = max(tipMin, -notchMax) / body;\n\n float t = progress;\n float o; // middle of the arrow\n float l; // size of the arrow\n if (origin) {\n o = 0.0;\n l = cover * t * (0.4 + 0.6 * t);\n } else {\n // while it flies, its larger side (length or span) is about the frame's smaller side\n float l0 = 0.92 * min(1.0, ratio) / max(1.0, 2.0 * tan(h));\n // starts just behind the frame, flies to the middle, then swells\n float o0 = -e - 2.0 * tipPad - body * l0;\n // it is already moving when it enters, and slows down as it starts to swell\n float u = 1.0 - clamp(t / 0.65, 0.0, 1.0);\n float fly = 1.0 - u * u * u;\n // the swell speeds up and still moves at the end, so the last corners do not linger\n float grow = clamp((t - 0.3) / 0.7, 0.0, 1.0);\n o = mix(o0, 0.0, fly);\n l = mix(l0, cover, grow * grow * (2.0 - grow));\n }\n\n // the nested chevrons follow the first one, each tucked behind the previous one's notch\n float gap = (1.0 - n) * 1.35;\n float d = arrow(q, o + body * l, o - body * l, tipN, notchN);\n for (int i = 1; i < 3; i++) {\n if (i < count) {\n float back = o - float(i) * gap * l;\n d = min(d, arrow(q, back + body * l, back - body * l, tipN, notchN));\n }\n }\n // the soft edge slides from outside the arrow to inside it, so nothing shows at the start\n float m = 1.0 - smoothstep(-s, s, d + 2.0 * s * (1.0 - t));\n\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"A notched arrowhead window onto the incoming image flies in from the edge behind it (or appears at the center), then swells until it fills the frame","tags":["shape","wipe","arrow","chevron","directional"],"params":{"direction":{"type":"vec2","default":[1,0],"description":"Direction the arrow points and flies toward"},"notch":{"type":"float","default":0.4,"min":0,"max":0.9,"description":"Depth of the notch at the back of the arrowhead (0 for a plain triangle)"},"width":{"type":"float","default":80,"min":20,"max":160,"description":"Opening angle of the arrowhead's tip, in degrees"},"count":{"type":"int","default":1,"min":1,"max":3,"step":1,"description":"Number of nested chevrons flying in a row"},"origin":{"type":"bool","default":false,"description":"Grow the arrow from the center of the frame instead of flying it in"},"smoothness":{"type":"float","default":0.004,"min":0,"max":0.1,"description":"Softness of the arrow's edges"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 16:31:10 +0100","updatedAt":"Wed, 4 Nov 2026 16:31:10 +0100"},{"name":"Ascii","paramsTypes":{"cellSize":"float","colored":"bool","ink":"vec4","background":"vec4"},"defaultParams":{"cellSize":0.04,"colored":true,"ink":[0.3,1,0.45,1],"background":[0,0,0,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The image turns into text-mode characters, denser where it is brighter, the characters scramble into those of the incoming image, then resolve back into it\n// Tags: text, pattern, retro, digital\n\n// @range(0.01, 0.1) Height of a character, in frame heights\nuniform float cellSize; // = 0.04\n// @param Color the characters with the image (otherwise, with the ink color)\nuniform bool colored; // = true\n// @color Color of the characters when they are not colored with the image\nuniform vec4 ink; // = vec4(0.3, 1.0, 0.45, 1.0)\n// @color Color behind the characters\nuniform vec4 background; // = vec4(0.0, 0.0, 0.0, 1.0)\n\n// width of a character cell, in cell heights\nconst float ASPECT = 0.6;\n// half width of the strokes, in cell heights\nconst float STROKE = 0.05;\n\nfloat hash12(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// distance to the segment from a to b\nfloat segment(vec2 q, vec2 a, vec2 b) {\n vec2 pa = q - a;\n vec2 ba = b - a;\n return length(pa - ba * clamp(dot(pa, ba) / dot(ba, ba), 0.0, 1.0));\n}\n\n// distance to the strokes of the character of this density, from 0 (\" \") to 9 (\"@\"),\n// at q, in cell heights from the cell's center\nfloat glyph(float g, vec2 q) {\n if (g < 0.5) return 1.0; // \" \"\n if (g < 1.5) return length(q - vec2(0.0, -0.27)) - 0.035; // \".\"\n if (g < 2.5) return min(length(q - vec2(0.0, -0.25)), length(q - vec2(0.0, 0.1))) - 0.035; // \":\"\n if (g < 3.5) return segment(q, vec2(-0.17, 0.0), vec2(0.17, 0.0)) - STROKE; // \"-\"\n if (g < 4.5) { // \"=\"\n return min(segment(q, vec2(-0.18, 0.1), vec2(0.18, 0.1)), segment(q, vec2(-0.18, -0.1), vec2(0.18, -0.1))) - STROKE;\n }\n if (g < 5.5) { // \"+\"\n return min(segment(q, vec2(-0.19, 0.0), vec2(0.19, 0.0)), segment(q, vec2(0.0, -0.19), vec2(0.0, 0.19))) - STROKE;\n }\n if (g < 6.5) { // \"*\"\n float d = segment(q, vec2(0.0, -0.2), vec2(0.0, 0.2));\n d = min(d, segment(q, vec2(-0.18, -0.11), vec2(0.18, 0.11)));\n d = min(d, segment(q, vec2(-0.18, 0.11), vec2(0.18, -0.11)));\n return d - STROKE;\n }\n if (g < 7.5) { // \"#\"\n float d = min(segment(q, vec2(-0.06, -0.3), vec2(-0.1, 0.3)), segment(q, vec2(0.12, -0.3), vec2(0.08, 0.3)));\n d = min(d, min(segment(q, vec2(-0.24, 0.11), vec2(0.24, 0.11)), segment(q, vec2(-0.24, -0.11), vec2(0.24, -0.11))));\n return d - STROKE;\n }\n if (g < 8.5) { // \"%\"\n float d = segment(q, vec2(-0.2, -0.3), vec2(0.2, 0.3));\n d = min(d, abs(length(q - vec2(-0.13, 0.19)) - 0.08));\n d = min(d, abs(length(q - vec2(0.13, -0.19)) - 0.08));\n return d - STROKE;\n }\n // \"@\": a ring around a small \"a\"\n float d = abs(length(q) - 0.25);\n d = min(d, abs(length(q - vec2(-0.02, 0.0)) - 0.1));\n d = min(d, segment(q, vec2(0.08, 0.1), vec2(0.08, -0.12)));\n return d - 0.8 * STROKE;\n}\n\n// the brightness of a color, from 0 to 1, as a character density\nfloat density(vec4 c) {\n return floor(pow(clamp(dot(c.rgb, vec3(0.299, 0.587, 0.114)) * c.a, 0.0, 1.0), 0.75) * 9.99);\n}\n\n// the average color of a cell, from 4 samples\nvec4 cellColor(vec2 center, vec2 dims, bool incoming) {\n vec4 c = vec4(0.0);\n for (int i = 0; i < 4; i++) {\n vec2 o = (vec2(mod(float(i), 2.0), floor(float(i) / 2.0)) - 0.5) * 0.5 * dims;\n vec2 st = clamp((center + o) / vec2(ratio, 1.0) + 0.5, 0.0, 1.0);\n c += incoming ? getToColor(st) : getFromColor(st);\n }\n return c * 0.25;\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n float h = cellSize;\n vec2 fp = (uv - 0.5) * vec2(ratio, 1.0);\n vec2 dims = vec2(ASPECT * h, h);\n vec2 cell = floor(fp / dims);\n vec2 center = (cell + 0.5) * dims;\n vec2 q = (fp - center) / h;\n\n // each cell switches to the incoming image at its own time, scrambling through\n // random characters around it\n float r = hash12(cell + 100.0);\n float at = 0.4 + 0.2 * r;\n bool incoming = p > at;\n vec4 c = cellColor(center, dims, incoming);\n float g = density(c);\n float scramble = 1.0 - smoothstep(0.02, 0.045, abs(p - at));\n if (hash12(cell + floor(p * 40.0) * vec2(17.0, 31.0)) < scramble) {\n g = 1.0 + floor(9.0 * hash12(cell * 1.7 + floor(p * 40.0) * vec2(5.0, 11.0)));\n }\n\n float cover = 1.0 - smoothstep(-0.02, 0.02, glyph(g, q));\n vec3 tint = colored ? mix(c.rgb, c.rgb / max(max(c.r, max(c.g, c.b)), 0.05), 0.7) : ink.rgb;\n float alpha = colored ? c.a : ink.a * c.a;\n // where the image is transparent, so are the characters and their background\n // colored characters glow faintly over their cell, so the picture stays readable\n vec3 behind = colored ? mix(background.rgb, c.rgb, 0.3) : background.rgb;\n vec4 back = vec4(behind, background.a * c.a);\n vec4 text = mix(back, vec4(clamp(tint, 0.0, 1.0), alpha), cover);\n\n // each cell dissolves into its character at its own time, from 0.05 to 0.35,\n // and back into the incoming image from 0.65 to 0.95\n float into = 0.05 + 0.22 * hash12(cell + 200.0);\n float outof = 0.95 - 0.22 * hash12(cell + 300.0);\n float show = smoothstep(into, into + 0.08, p) * (1.0 - smoothstep(outof - 0.08, outof, p));\n vec4 image = p < 0.5 ? getFromColor(uv) : getToColor(uv);\n return mix(image, text, show);\n}\n","author":"gre","license":"MIT","description":"The image turns into text-mode characters, denser where it is brighter, the characters scramble into those of the incoming image, then resolve back into it","tags":["text","pattern","retro","digital"],"params":{"cellSize":{"type":"float","default":0.04,"min":0.01,"max":0.1,"description":"Height of a character, in frame heights"},"colored":{"type":"bool","default":true,"description":"Color the characters with the image (otherwise, with the ink color)"},"ink":{"type":"vec4","default":[0.3,1,0.45,1],"color":true,"description":"Color of the characters when they are not colored with the image"},"background":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color behind the characters"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:41:06 +0100","updatedAt":"Sun, 1 Nov 2026 20:41:06 +0100"},{"name":"BandWipe","paramsTypes":{"bands":"int","vertical":"bool","smoothness":"float","stagger":"float"},"defaultParams":{"bands":8,"vertical":false,"smoothness":0.02,"stagger":0.1},"glsl":"// Author: gre\n// License: MIT\n// Description: Alternating bands wipe in from opposite sides together and interleave like fingers, while both images stay still\n// Tags: wipe, stripes, interleave, horizontal\n\n// @range(2, 40, 1) Number of bands\nuniform int bands; // = 8\n// @param Cut the frame into columns that wipe up and down instead of rows that wipe sideways\nuniform bool vertical; // = false\n// @range(0, 0.2) Softness of the bands' leading edges\nuniform float smoothness; // = 0.02\n// @range(0, 0.8) Delay between the first and the last band, so they cascade from the top (or the left)\nuniform float stagger; // = 0.1\n\n// half width of the antialiased edges, in frame heights\nconst float AA = 0.0015;\n\n// how far band i has wiped in (0..1) at position a along the bands (0..l), alternate bands\n// entering from opposite ends\nfloat bandMask(float i, float n, float a, float l, float s) {\n // each band takes the same time, starting a little after the one before it from the top\n // (or the left)\n float k = vertical ? i : n - 1.0 - i;\n float g = clamp(stagger, 0.0, 0.95);\n float t = clamp((progress - g * k / max(n - 1.0, 1.0)) / (1.0 - g), 0.0, 1.0);\n t = mix(t, t * t * (3.0 - 2.0 * t), 0.5);\n float x = mod(i, 2.0) > 0.5 ? l - a : a;\n // the edge starts fully before the band and ends fully past it\n float c = mix(-s, l + s, t);\n return 1.0 - smoothstep(c - s, c + s, x);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n float n = float(bands < 1 ? 1 : bands);\n // along: position along the bands, in frame heights; across: position across them (0..1)\n float along = vertical ? uv.y : uv.x * ratio;\n float across = vertical ? uv.x : uv.y;\n float l = vertical ? 1.0 : ratio;\n // the antialiasing across the bands, in units of across\n float aaAcross = vertical ? AA / ratio : AA;\n float s = max(smoothness, AA);\n\n float f = across * n;\n float i = clamp(floor(f), 0.0, n - 1.0);\n float m = bandMask(i, n, along, l, s);\n\n // near a cut between two bands, blend with the neighbor band over a pixel or so so the cut\n // does not alias (at the frame's borders the neighbor is the band itself)\n float fr = f - i;\n float edge = min(fr, 1.0 - fr) / n;\n if (edge < aaAcross) {\n float j = clamp(fr < 0.5 ? i - 1.0 : i + 1.0, 0.0, n - 1.0);\n m = mix(bandMask(j, n, along, l, s), m, 0.5 + 0.5 * smoothstep(0.0, aaAcross, edge));\n }\n\n if (m <= 0.0) return getFromColor(uv);\n if (m >= 1.0) return getToColor(uv);\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Alternating bands wipe in from opposite sides together and interleave like fingers, while both images stay still","tags":["wipe","stripes","interleave","horizontal"],"params":{"bands":{"type":"int","default":8,"min":2,"max":40,"step":1,"description":"Number of bands"},"vertical":{"type":"bool","default":false,"description":"Cut the frame into columns that wipe up and down instead of rows that wipe sideways"},"smoothness":{"type":"float","default":0.02,"min":0,"max":0.2,"description":"Softness of the bands' leading edges"},"stagger":{"type":"float","default":0.1,"min":0,"max":0.8,"description":"Delay between the first and the last band, so they cascade from the top (or the left)"}},"textures":[],"createdAt":"Thu, 5 Nov 2026 07:30:55 +0100","updatedAt":"Thu, 5 Nov 2026 07:30:55 +0100"},{"name":"BlockCover","paramsTypes":{"blocks":"int","color":"vec4","pop":"float","smoothness":"float"},"defaultParams":{"blocks":16,"color":[0.95,0.32,0.26,1],"pop":0.5,"smoothness":0.03},"glsl":"// Author: gre\n// License: MIT\n// Description: Blocks of a solid color pop in at random over the outgoing image until they cover the frame, then pop out in another random order to show the incoming image\n// Tags: blocks, grid, squares, color, cover\n\n// @range(1, 40, 1) Number of blocks along the longer side of the frame (the blocks stay about square)\nuniform int blocks; // = 16\n// @color Color of the blocks\nuniform vec4 color; // = vec4(0.95, 0.32, 0.26, 1.0)\n// @range(0, 1) How much a block overshoots its cell as it pops in\nuniform float pop; // = 0.5\n// @range(0, 0.5) Softness of the blocks' edges, in blocks\nuniform float smoothness; // = 0.03\n\nconst float duration = 0.14; // of one block's pop, in progress\nconst float cut = 0.45; // the frame is fully covered from cut - hold to cut + hold\nconst float hold = 0.02;\n\nfloat hash (vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// eases from 0 to 1, a little past 1 (more with a larger c) and back\nfloat backOut (float t, float c) {\n float u = t - 1.0;\n return 1.0 + (c + 1.0) * u * u * u + c * u * u;\n}\n\n// when a cell's block starts to pop in (.x) and to pop out (.y)\nvec2 timing (vec2 cell) {\n return vec2(\n (cut - hold - duration) * hash(cell + 0.5),\n cut + hold + (1.0 - cut - hold - duration) * hash(cell + 71.7));\n}\n\n// scale of the block of a cell: 0 when it is not there, 1 when it fills its cell\nfloat blockScale (vec2 cell, float c) {\n vec2 t = timing(cell);\n float a = clamp((progress - t.x) / duration, 0.0, 1.0);\n float b = clamp((progress - t.y) / duration, 0.0, 1.0);\n // it grows from nothing with an overshoot, and shrinks back to nothing\n return b > 0.0 ? (1.0 - b) * (1.0 - b) : backOut(a, c);\n}\n\n// how much of the point q (in cells) the block of a cell covers\nfloat coverage (vec2 q, vec2 cell, float s, float sm) {\n // at scale 1, its solid part fills the whole cell, so that a covered frame shows no seams\n float h = s * (0.5 + sm);\n vec2 d = abs(q - cell - 0.5);\n return s > 0.0 ? 1.0 - smoothstep(h - sm, h, max(d.x, d.y)) : 0.0;\n}\n\nvec4 transition (vec2 uv) {\n float nLong = max(float(blocks), 1.0);\n vec2 n = ratio >= 1.0\n ? vec2(nLong, max(1.0, floor(nLong / ratio + 0.5)))\n : vec2(max(1.0, floor(nLong * ratio + 0.5)), nLong);\n vec2 q = uv * n;\n vec2 cell = floor(q);\n float sm = max(smoothness, 0.001);\n float c = 2.0 * clamp(pop, 0.0, 1.0);\n float s = blockScale(cell, c);\n if (s >= 1.0) return color;\n float cover = coverage(q, cell, s, sm);\n // a neighbour's block can overshoot onto this cell, near its border only\n float u = -2.0 * c / (3.0 * (c + 1.0));\n float reach = backOut(1.0 + u, c) * (0.5 + sm);\n vec2 o = abs(q - cell - 0.5);\n if (max(o.x, o.y) > 1.0 - reach) {\n for (int j = -1; j <= 1; j++) {\n for (int i = -1; i <= 1; i++) {\n vec2 nb = cell + vec2(float(i), float(j));\n vec2 inside = step(vec2(0.0), nb) * step(nb, n - 1.0);\n if (inside.x * inside.y > 0.0 && (i != 0 || j != 0)) {\n cover = max(cover, coverage(q, nb, blockScale(nb, c), sm));\n }\n }\n }\n }\n // each cell switches to the incoming image while its own block covers it\n vec2 t = timing(cell);\n vec4 under = progress < 0.5 * (t.x + duration + t.y) ? getFromColor(uv) : getToColor(uv);\n return mix(under, color, cover);\n}\n","author":"gre","license":"MIT","description":"Blocks of a solid color pop in at random over the outgoing image until they cover the frame, then pop out in another random order to show the incoming image","tags":["blocks","grid","squares","color","cover"],"params":{"blocks":{"type":"int","default":16,"min":1,"max":40,"step":1,"description":"Number of blocks along the longer side of the frame (the blocks stay about square)"},"color":{"type":"vec4","default":[0.95,0.32,0.26,1],"color":true,"description":"Color of the blocks"},"pop":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much a block overshoots its cell as it pops in"},"smoothness":{"type":"float","default":0.03,"min":0,"max":0.5,"description":"Softness of the blocks' edges, in blocks"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 09:50:49 +0100","updatedAt":"Mon, 2 Nov 2026 09:50:49 +0100"},{"name":"BlockSlide","paramsTypes":{"grid":"ivec2","direction":"vec2","stagger":"float","zoom":"float","background":"vec4"},"defaultParams":{"grid":[5,4],"direction":[1,0],"stagger":0.6,"zoom":0.35,"background":[0,0,0,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame is cut into a grid of blocks that slide out one after another in a staggered cascade, some of them shrinking as they go, while the blocks of the incoming image slide in behind them to take their place\n// Tags: slide, blocks, grid, directional, zoom\n\n// @param Number of blocks (columns, rows), at most 40 along the direction\nuniform ivec2 grid; // = ivec2(5, 4)\n// @param Direction the blocks slide toward (rounded to the nearest axis)\nuniform vec2 direction; // = vec2(1.0, 0.0)\n// @range(0, 0.95) Share of the transition over which the blocks set off one after another (0 slides them all together)\nuniform float stagger; // = 0.6\n// @range(0, 0.9) How much the zooming blocks shrink on their way, as a share of their size\nuniform float zoom; // = 0.35\n// @color Color seen in the gaps between the blocks\nuniform vec4 background; // = vec4(0.0, 0.0, 0.0, 1.0)\n\n// blocks per strip, at most\nconst int MAX_BLOCKS = 40;\n\nfloat hash(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n bool vertical = abs(direction.y) > abs(direction.x);\n bool backward = vertical ? direction.y < 0.0 : direction.x < 0.0;\n vec2 g = max(vec2(grid), 1.0);\n // a: position along the motion, toward which the blocks slide, b: across it\n float a = vertical ? uv.y : uv.x;\n float b = vertical ? uv.x : uv.y;\n if (backward) a = 1.0 - a;\n float n = min(vertical ? g.y : g.x, float(MAX_BLOCKS));\n float strips = vertical ? g.x : g.y;\n // every block of a strip slides along it, so a point can only show a block of its own strip\n float r = min(floor(b * strips), strips - 1.0);\n // the strips set off one after another, from the top (or the left)\n float rowOrder = strips > 1.0 ? (vertical ? r : strips - 1.0 - r) / (strips - 1.0) : 0.0;\n float st = clamp(stagger, 0.0, 0.95);\n float z = clamp(zoom, 0.0, 0.9);\n // in blocks\n float an = a * n;\n float bn = b * strips - r;\n\n // the incoming blocks follow the last outgoing block to leave, the rear one: they all\n // stay behind it, so no block ever overlaps another, and each one gets closer to the\n // block ahead of it until they all arrive together\n float rear = clamp((progress - st * mix(rowOrder, 1.0, 0.2)) / (1.0 - st), 0.0, 1.0);\n rear = rear * rear * (3.0 - 2.0 * rear);\n\n for (int k = 0; k < MAX_BLOCKS; k++) {\n float i = float(k);\n if (i >= n) break;\n // the block at the front sets off first, so that the outgoing blocks move apart\n float order = mix(rowOrder, n > 1.0 ? (n - 1.0 - i) / (n - 1.0) : 0.0, 0.2);\n float p = clamp((progress - st * order) / (1.0 - st), 0.0, 1.0);\n p = p * p * (3.0 - 2.0 * p);\n float pin = max(0.0, 1.0 - (1.0 - rear) * (1.0 + (n - 1.0 - i) / n));\n // about half of the blocks shrink as they leave, and their incoming blocks grow as they come\n float zi = hash(vec2(i, r) + 3.7) < 0.5 ? z : 0.0;\n // position in the block, from its corner, for the outgoing block (xy), which travels the\n // frame's length to leave it, and the incoming one (zw), from one length behind; at rest,\n // the blocks tile the frame exactly\n float sFrom = 1.0 - zi * p * p;\n float sTo = 1.0 - zi * (1.0 - pin) * (1.0 - pin);\n vec4 l = vec4(\n (an - i - p * n - 0.5 * (1.0 - sFrom)) / sFrom,\n (bn - 0.5 * (1.0 - sFrom)) / sFrom,\n (an - i - (pin - 1.0) * n - 0.5 * (1.0 - sTo)) / sTo,\n (bn - 0.5 * (1.0 - sTo)) / sTo);\n bool inFrom = all(greaterThanEqual(l.xy, vec2(0.0))) && all(lessThan(l.xy, vec2(1.0)));\n bool inTo = all(greaterThanEqual(l.zw, vec2(0.0))) && all(lessThan(l.zw, vec2(1.0)));\n if (inFrom || inTo) {\n // back to the frame's coordinates\n vec2 q = (vec2(i, r) + (inTo ? l.zw : l.xy)) / vec2(n, strips);\n if (backward) q.x = 1.0 - q.x;\n q = vertical ? q.yx : q;\n return inTo ? getToColor(q) : getFromColor(q);\n }\n }\n return background;\n}\n","author":"gre","license":"MIT","description":"The frame is cut into a grid of blocks that slide out one after another in a staggered cascade, some of them shrinking as they go, while the blocks of the incoming image slide in behind them to take their place","tags":["slide","blocks","grid","directional","zoom"],"params":{"grid":{"type":"ivec2","default":[5,4],"description":"Number of blocks (columns, rows), at most 40 along the direction"},"direction":{"type":"vec2","default":[1,0],"description":"Direction the blocks slide toward (rounded to the nearest axis)"},"stagger":{"type":"float","default":0.6,"min":0,"max":0.95,"description":"Share of the transition over which the blocks set off one after another (0 slides them all together)"},"zoom":{"type":"float","default":0.35,"min":0,"max":0.9,"description":"How much the zooming blocks shrink on their way, as a share of their size"},"background":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color seen in the gaps between the blocks"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:11:46 +0100","updatedAt":"Wed, 4 Nov 2026 20:11:46 +0100"},{"name":"BloomDissolve","paramsTypes":{"spread":"float","threshold":"float","intensity":"float","tint":"vec3"},"defaultParams":{"spread":0.25,"threshold":0.6,"intensity":1.5,"tint":[1,0.9,0.75]},"glsl":"// Author: gre\n// License: MIT\n// Description: The highlights of the outgoing image blow out into a soft, wide glow that floods the frame; under it the incoming image takes over, then the glow subsides back into its highlights while the image stays sharp\n// Tags: light, glow, bloom, dissolve\n\n// @range(0, 0.6) Reach of the glow at the peak, in frame heights\nuniform float spread; // = 0.25\n// @range(0, 1) Brightness above which the image glows (the whole frame does at the peak)\nuniform float threshold; // = 0.6\n// @range(0, 4) Brightness of the glow\nuniform float intensity; // = 1.5\n// @color Tint of the glow, toward its edges\nuniform vec3 tint; // = vec3(1.0, 0.9, 0.75)\n\n// pairs of opposite taps: 20 reads per pixel\nconst int PAIRS = 10;\nconst float GOLDEN_ANGLE = 2.399963;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// the image on screen at a point, premultiplied: one image, or both during the short switch\nvec4 image(vec2 st, float m) {\n if (m <= 0.0) {\n vec4 c = getFromColor(st);\n return vec4(c.rgb * c.a, c.a);\n }\n if (m >= 1.0) {\n vec4 c = getToColor(st);\n return vec4(c.rgb * c.a, c.a);\n }\n vec4 a = getFromColor(st);\n vec4 b = getToColor(st);\n return mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n}\n\n// the light of a pixel (premultiplied): its color above the knee, full well before white\nvec3 glow(vec4 c, float knee) {\n float lum = dot(c.rgb, vec3(0.2126, 0.7152, 0.0722));\n return c.rgb * smoothstep(knee, knee + max(0.3 * (1.0 - knee), 1e-3), lum);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n // the glow blooms on the outgoing image, and subsides on the incoming one\n float amount = 4.0 * p * (1.0 - p);\n float peak = amount * amount;\n // around the middle, the whole frame catches the light and floods with glow\n float flood = peak * peak * peak;\n // the switch, under the glow at its brightest\n float m = smoothstep(0.44, 0.56, p);\n if (amount <= 0.0) return m < 0.5 ? getFromColor(uv) : getToColor(uv);\n\n // the image stays sharp underneath (premultiplied colors, only the images on screen are read)\n vec4 c = image(uv, m);\n if (c.a <= 0.0) return vec4(0.0);\n c.rgb /= c.a;\n\n // more and more of the image catches the light as the glow grows\n float knee = threshold * (1.0 - 0.3 * peak) * (1.0 - flood);\n float radius = spread * amount;\n // a rotation and a radial shift of the spiral for each pixel blend the taps into a smooth glow;\n // hashed by integer cell so that every GPU computes the same values\n vec2 cell = floor(uv * vec2(ratio, 1.0) * 997.0);\n float spin = 6.2831853 * hash12(cell);\n float shift = hash12(cell + 71.0);\n\n // a golden-angle spiral, denser toward the center so the glow is bright at its core with a wide soft tail;\n // each tap is read with its opposite, which cancels most of the noise across smooth gradients\n vec3 bloom = vec3(0.0);\n vec4 soft = vec4(0.0);\n float total = 0.0;\n for (int i = 0; i < PAIRS; i++) {\n float s = (float(i) + shift) / float(PAIRS);\n float r = s * s;\n float a = float(i) * GOLDEN_ANGLE + spin;\n vec2 offset = radius * r * vec2(cos(a) / ratio, sin(a));\n vec4 i0 = image(mirror(uv + offset), m);\n vec4 i1 = image(mirror(uv - offset), m);\n vec3 l = glow(i0, knee) + glow(i1, knee);\n // the sparse outer taps weigh less, so the tail of the glow stays smooth\n float w = 1.0 - 0.75 * s;\n // white at the core, tinted toward the edges\n bloom += w * mix(vec3(1.0), tint, smoothstep(0.0, 0.5, r)) * l;\n total += w;\n // a closer blur of the image, to soften it\n float sw = (1.0 - s) * (1.0 - s);\n soft += sw * (i0 + i1);\n }\n bloom /= 2.0 * total;\n // at the peak the light softens the image itself, which hides the switch\n vec3 blurred = soft.a > 0.0 ? soft.rgb / soft.a : c.rgb;\n vec3 base = mix(c.rgb, blurred, 0.7 * flood);\n bloom *= intensity * peak * (1.0 + 2.0 * flood);\n // compressed, so that the glow floods the frame without flattening into white\n bloom = 0.92 * (1.0 - exp(-bloom));\n\n // the glow is a light screened over the image: it adds nothing to its alpha\n base = min(base * (1.0 + 0.25 * peak), 1.0);\n return vec4(base + bloom - base * bloom, c.a);\n}\n","author":"gre","license":"MIT","description":"The highlights of the outgoing image blow out into a soft, wide glow that floods the frame; under it the incoming image takes over, then the glow subsides back into its highlights while the image stays sharp","tags":["light","glow","bloom","dissolve"],"params":{"spread":{"type":"float","default":0.25,"min":0,"max":0.6,"description":"Reach of the glow at the peak, in frame heights"},"threshold":{"type":"float","default":0.6,"min":0,"max":1,"description":"Brightness above which the image glows (the whole frame does at the peak)"},"intensity":{"type":"float","default":1.5,"min":0,"max":4,"description":"Brightness of the glow"},"tint":{"type":"vec3","default":[1,0.9,0.75],"color":true,"description":"Tint of the glow, toward its edges"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 21:47:56 +0100","updatedAt":"Mon, 2 Nov 2026 21:47:56 +0100"},{"name":"BokehDissolve","paramsTypes":{"radius":"float","blades":"int","threshold":"float","intensity":"float"},"defaultParams":{"radius":0.05,"blades":0,"threshold":0.7,"intensity":1},"glsl":"// Author: gre\n// License: MIT\n// Description: The image falls out of focus like a camera lens, its highlights swelling into large bright bokeh discs, and the incoming image sharpens back out of its own bokeh\n// Tags: blur, bokeh, lens, dissolve, light\n\n// @range(0.01, 0.15) Radius of the bokeh discs at the peak, in frame heights\nuniform float radius; // = 0.05\n// @range(0, 9) Number of aperture blades, which shape the discs into polygons (below 3: round)\nuniform int blades; // = 0\n// @range(0, 1) Brightness above which a pixel is a highlight that swells into a disc\nuniform float threshold; // = 0.7\n// @range(0, 3) Brightness of the bokeh discs\nuniform float intensity; // = 1.0\n\n#define PI 3.141592653589793\nconst int TAPS = 16;\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// a hash of an integer cell, stable across precisions\nfloat hash12(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// how much a pixel is a highlight: none below the threshold, full at white\nfloat highlight(vec4 c, float t) {\n float lum = dot(c.rgb, vec3(0.2126, 0.7152, 0.0722));\n // nothing is brighter than white, so a threshold of 1 makes no highlights\n if (t >= 1.0) return 0.0;\n float h = smoothstep(t, 1.0, lum);\n return h * h * c.a;\n}\n\nvec4 transition(vec2 uv) {\n // the lens defocuses then focuses back: 0 at both ends, 1 at the peak\n float t = 1.0 - abs(2.0 * progress - 1.0);\n float k = t * t * (3.0 - 2.0 * t);\n // the incoming image takes over while everything is out of focus\n float w = smoothstep(0.35, 0.65, progress);\n float r = radius * k;\n // the highlights weigh more as they swell, so they read as bright discs\n float boost = 12.0 * intensity * k;\n\n // fewer than 3 blades: a round aperture\n float n = blades >= 3 ? float(blades) : 0.0;\n float sector = n > 0.0 ? 2.0 * PI / n : 1.0;\n float apothem = cos(0.5 * sector);\n\n // per-pixel stratification of the taps over the disc, so its edge stays crisp\n vec2 cell = floor(uv * vec2(ratio, 1.0) * 997.0);\n float spin = 2.0 * PI * hash12(cell);\n float jitter = hash12(cell + 17.0);\n\n // each image is only read while it shows\n bool useFrom = w < 1.0;\n bool useTo = w > 0.0;\n // premultiplied, weighted sums of each image, and the light of their highlights,\n // starting with the pixel itself\n vec4 s0 = vec4(0.0);\n vec4 s1 = vec4(0.0);\n float t0 = 0.0;\n float t1 = 0.0;\n vec3 l0 = vec3(0.0);\n vec3 l1 = vec3(0.0);\n if (useFrom) {\n vec4 c = getFromColor(uv);\n float h = highlight(c, threshold);\n float wt = 1.0 + boost * h;\n s0 = wt * vec4(c.rgb * c.a, c.a);\n t0 = wt;\n l0 = h * c.rgb;\n }\n if (useTo) {\n vec4 c = getToColor(uv);\n float h = highlight(c, threshold);\n float wt = 1.0 + boost * h;\n s1 = wt * vec4(c.rgb * c.a, c.a);\n t1 = wt;\n l1 = h * c.rgb;\n }\n for (int i = 0; i < TAPS; i++) {\n float fi = float(i);\n float a = fi * 2.39996323 + spin;\n float d = sqrt((fi + jitter) / float(TAPS));\n if (n > 0.0) {\n // the aperture's polygon: its boundary in the direction of the tap\n float s = mod(a, sector) - 0.5 * sector;\n d *= apothem / cos(s);\n }\n vec2 st = mirror(uv + r * d * vec2(cos(a) / ratio, sin(a)));\n if (useFrom) {\n vec4 c = getFromColor(st);\n float h = highlight(c, threshold);\n float wt = 1.0 + boost * h;\n s0 += wt * vec4(c.rgb * c.a, c.a);\n t0 += wt;\n l0 += h * c.rgb;\n }\n if (useTo) {\n vec4 c = getToColor(st);\n float h = highlight(c, threshold);\n float wt = 1.0 + boost * h;\n s1 += wt * vec4(c.rgb * c.a, c.a);\n t1 += wt;\n l1 += h * c.rgb;\n }\n }\n vec4 b = mix(useFrom ? s0 / t0 : vec4(0.0), useTo ? s1 / t1 : vec4(0.0), w);\n if (b.a <= 0.0) {\n return vec4(0.0);\n }\n vec3 rgb = b.rgb / b.a;\n // the discs glow: light lifts the color, never the alpha\n vec3 light = mix(l0, l1, w) * (intensity * k * 4.0 / float(TAPS + 1));\n rgb = 1.0 - (1.0 - clamp(rgb, 0.0, 1.0)) * exp(-light);\n return vec4(rgb, b.a);\n}\n","author":"gre","license":"MIT","description":"The image falls out of focus like a camera lens, its highlights swelling into large bright bokeh discs, and the incoming image sharpens back out of its own bokeh","tags":["blur","bokeh","lens","dissolve","light"],"params":{"radius":{"type":"float","default":0.05,"min":0.01,"max":0.15,"description":"Radius of the bokeh discs at the peak, in frame heights"},"blades":{"type":"int","default":0,"min":0,"max":9,"description":"Number of aperture blades, which shape the discs into polygons (below 3: round)"},"threshold":{"type":"float","default":0.7,"min":0,"max":1,"description":"Brightness above which a pixel is a highlight that swells into a disc"},"intensity":{"type":"float","default":1,"min":0,"max":3,"description":"Brightness of the bokeh discs"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 20:51:47 +0100","updatedAt":"Mon, 2 Nov 2026 20:51:47 +0100"},{"name":"BookFlip","paramsTypes":{"perspective":"float","shading":"float","curl":"float"},"defaultParams":{"perspective":0.5,"shading":0.6,"curl":0.5},"glsl":"// Author: hong\n// License: MIT\n// Description: The right half of the outgoing image is a book page that turns over from right to left on the spine at the middle of the frame, curling near its free edge, its back bringing the left half of the incoming image\n// Tags: page, flip, 3d\n\n// @range(0, 1) Strength of the perspective: the page grows as it lifts toward the viewer\nuniform float perspective; // = 0.5\n// @range(0, 1) How much the page darkens as it turns away from the light, and the shadows it casts\nuniform float shading; // = 0.6\n// @range(0, 1) How much the page bends near its free edge, which trails behind as it turns\nuniform float curl; // = 0.5\n\nconst float PI = 3.141592653589793;\n// width of the anti-aliased edges, as a part of the frame's height\nconst float EDGE = 0.0015;\n// part of the page's width that curls\nconst float CURL_PART = 0.45;\n// direction of the light, in (x, height toward the viewer)\nconst vec2 LIGHT = vec2(-0.447214, 0.894427);\n\nfloat cross2(vec2 a, vec2 b) {\n return a.x * b.y - a.y * b.x;\n}\n\n// the page's angle, 0 lying on the right to PI lying on the left: eased, but never at rest\nfloat pageAngle() {\n float p = clamp(progress, 0.0, 1.0);\n return PI * p * (0.35 + p * (1.95 - 1.3 * p));\n}\n\n// The page is seen in a cross-section across the spine, in (x, height toward the viewer) from the spine:\n// a straight part at angle a from the spine, then, when k is not 0, an arc of curvature k centered on c up to its free edge,\n// extruded along y. Returns the nearest point of the page hit by the ray from eye along dir:\n// (ray length, distance along the page, angle there), with a negative ray length when it is missed.\nvec3 hitPage(vec2 eye, vec2 dir, float a, float k, float straight, vec2 c, float w) {\n vec3 best = vec3(-1.0, 0.0, 0.0);\n vec2 d = vec2(cos(a), sin(a));\n // the straight part\n float den = cross2(d, dir);\n if (abs(den) > 1e-7) {\n float u = cross2(eye, dir) / den;\n float t = cross2(eye, d) / den;\n if (t > 0.0 && u >= 0.0 && u <= straight) best = vec3(t, u, a);\n }\n if (k != 0.0) {\n float r = 1.0 / k;\n vec2 oc = eye - c;\n float qa = dot(dir, dir);\n float qb = dot(oc, dir);\n float disc = qb * qb - qa * (dot(oc, oc) - r * r);\n if (disc >= 0.0) {\n float sq = sqrt(disc);\n for (int i = 0; i < 2; i++) {\n float t = (-qb + (i == 0 ? -sq : sq)) / qa;\n if (t > 0.0 && (best.x < 0.0 || t < best.x)) {\n // (sin(b), -cos(b)) where b is the angle of the page at that point\n vec2 v = (oc + t * dir) * k;\n float db = atan(v.x, -v.y) - a;\n db -= 2.0 * PI * floor((db + PI) / (2.0 * PI));\n float s = db / k;\n if (s >= 0.0 && s <= w - straight) best = vec3(t, straight + s, a + db);\n }\n }\n }\n }\n return best;\n}\n\n// the point of the curled part of the page where its angle is b\nvec2 curlPoint(vec2 c, float k, float b) {\n return c + vec2(sin(b), -cos(b)) / k;\n}\n\nvec4 transition (vec2 uv) {\n float a = pageAngle();\n float lift = sin(a);\n // half the frame's width: the page's width\n float w = 0.5 * ratio;\n float x = uv.x * ratio - w;\n // the viewer is above the spine, the page lifting toward it\n float dist = w * (1.0 + 1.5 / max(perspective, 0.01));\n vec2 eye = vec2(0.0, dist);\n vec2 dir = vec2(x, -dist);\n\n // the shape of the page: straight, then curled with its free edge trailing behind (a negative curvature)\n vec2 d = vec2(cos(a), sin(a));\n float k = -clamp(curl, 0.0, 1.0) * lift / (CURL_PART * w);\n if (abs(k) * CURL_PART * w <= 1e-4) k = 0.0;\n float straight = k != 0.0 ? (1.0 - CURL_PART) * w : w;\n vec2 c = straight * d + vec2(-d.y, d.x) / (k != 0.0 ? k : 1.0);\n vec2 bend = straight * d;\n vec2 middle = k != 0.0 ? curlPoint(c, k, a + 0.5 * k * (w - straight)) : bend;\n vec2 edge = k != 0.0 ? curlPoint(c, k, a + k * (w - straight)) : bend;\n\n // anti-aliased edges, only once the page has left the frame's plane, so that it covers it exactly at both ends\n float aa = EDGE * min(20.0 * lift, 1.0);\n vec4 img = vec4(0.0);\n float m = 0.0;\n vec3 hit = hitPage(eye, dir, a, k, straight, c, w);\n if (hit.x > 0.0) {\n float t = hit.x;\n float u = hit.y;\n float b = hit.z;\n vec2 pt = eye + t * dir;\n // the height on the page, magnified as it comes closer (its top and bottom edges are out of the frame)\n float y = clamp(0.5 + (uv.y - 0.5) * t, 0.0, 1.0);\n // near its free edge, the distance to it on the screen\n float edgeX = edge.x * dist / max(dist - edge.y, 1e-4);\n m = aa > 0.0 && u > (k != 0.0 ? straight : 0.5 * w) ? clamp(abs(x - edgeX) / aa, 0.0, 1.0) : 1.0;\n vec2 normal = vec2(-sin(b), cos(b));\n bool front = dot(normal, eye - pt) > 0.0;\n img = front\n ? getFromColor(vec2(clamp(w + u, w, ratio) / ratio, y))\n : getToColor(vec2(clamp(w - u, 0.0, w) / ratio, y));\n // lit from the upper left: brighter as it turns toward the light, darker as it turns away, with a soft crease along the spine\n float diffuse = max(dot(front ? normal : -normal, LIGHT), 0.0) / LIGHT.y;\n float shade = mix(1.0, 0.25 + 0.75 * diffuse, shading);\n shade *= 1.0 - 0.35 * shading * lift * exp(-u / (0.04 * w));\n img.rgb *= shade;\n if (m >= 1.0) return img;\n }\n\n // the pages beneath: the outgoing image on the left, the incoming one on the right\n vec4 color = x < 0.0 ? getFromColor(uv) : getToColor(uv);\n // the lifted page shades them, the more it hides of the sky (and so the more near the spine and its free edge)\n vec2 toEdge = edge - vec2(x, 0.0);\n float cosEdge = toEdge.x / max(length(toEdge), 1e-6);\n float blocked = 0.5 * abs((x < 0.0 ? 1.0 : -1.0) - cosEdge);\n float shadow = blocked * blocked * (3.0 - 2.0 * blocked);\n // and casts a shadow, the light coming from the upper left, softer as the page is higher\n float slope = -LIGHT.x / LIGHT.y;\n vec3 reach = vec3(bend.x, middle.x, edge.x) + slope * vec3(bend.y, middle.y, edge.y);\n float lo = min(0.0, min(reach.x, min(reach.y, reach.z)));\n float hi = max(0.0, max(reach.x, max(reach.y, reach.z)));\n float soft = max(0.25 * edge.y, 1e-5);\n shadow = max(0.5 * shadow, 0.85 * clamp(min(x - lo, hi - x) / soft + 0.5, 0.0, 1.0) * min(4.0 * lift, 1.0));\n color.rgb *= 1.0 - shading * shadow;\n return mix(color, img, m);\n}\n","author":"hong","license":"MIT","description":"The right half of the outgoing image is a book page that turns over from right to left on the spine at the middle of the frame, curling near its free edge, its back bringing the left half of the incoming image","tags":["page","flip","3d"],"params":{"perspective":{"type":"float","default":0.5,"min":0,"max":1,"description":"Strength of the perspective: the page grows as it lifts toward the viewer"},"shading":{"type":"float","default":0.6,"min":0,"max":1,"description":"How much the page darkens as it turns away from the light, and the shadows it casts"},"curl":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the page bends near its free edge, which trails behind as it turns"}},"textures":[],"createdAt":"Fri, 27 May 2022 19:13:57 +0800","updatedAt":"Sat, 7 Nov 2026 18:51:37 +0100"},{"name":"Bounce","paramsTypes":{"shadow_colour":"vec4","shadow_height":"float","bounces":"float"},"defaultParams":{"shadow_colour":[0,0,0,0.6],"shadow_height":0.075,"bounces":3},"glsl":"// Author: Adrian Purser\n// License: MIT\n// Description: The outgoing image drops out of the frame with a few bounces, revealing the incoming one\n// Tags: bounce, slide, vertical, shadow\n\n// @color Color of the shadow cast on the incoming image\nuniform vec4 shadow_colour; // = vec4(0.,0.,0.,.6)\n// @range(0.01, 0.5) Height of the shadow, relative to the image height\nuniform float shadow_height; // = 0.075\n// @range(1, 10, 1) Number of bounces before settling\nuniform float bounces; // = 3.0\n\nconst float PI = 3.14159265358;\n\nvec4 transition (vec2 uv) {\n float time = progress;\n float stime = sin(time * PI / 2.);\n float phase = time * PI * bounces;\n float y = (abs(cos(phase))) * (1.0 - stime);\n float d = uv.y - y;\n vec4 to = getToColor(uv);\n return mix(\n mix(\n to,\n vec4(shadow_colour.rgb, 1.0), // shadow_colour.a is in the amount: the shadow darkens, it does not make the image transparent\n step(d, shadow_height) * (1. - mix(\n ((d / shadow_height) * shadow_colour.a) + (1.0 - shadow_colour.a),\n 1.0,\n smoothstep(0.95, 1., progress) // fade-out the shadow at the end\n )) * to.a // cast on the incoming image, not on its transparent areas\n ),\n getFromColor(vec2(uv.x, uv.y + (1.0 - y))),\n step(d, 0.0)\n );\n}\n","author":"Adrian Purser","license":"MIT","description":"The outgoing image drops out of the frame with a few bounces, revealing the incoming one","tags":["bounce","slide","vertical","shadow"],"params":{"shadow_colour":{"type":"vec4","default":[0,0,0,0.6],"color":true,"description":"Color of the shadow cast on the incoming image"},"shadow_height":{"type":"float","default":0.075,"min":0.01,"max":0.5,"description":"Height of the shadow, relative to the image height"},"bounces":{"type":"float","default":3,"min":1,"max":10,"step":1,"description":"Number of bounces before settling"}},"textures":[],"createdAt":"Fri, 10 Nov 2017 17:01:45 +0000","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"BowTie","paramsTypes":{"adjust":"float","reverse":"bool"},"defaultParams":{"adjust":0.5,"reverse":false},"glsl":"// Author: KMojek\n// License: MIT\n// Description: Two triangles grow from the top and bottom edges into a bow tie that reveals the incoming image, with an adjustable shape, and can run in reverse\n// Tags: wipe, shape\n\nuniform float adjust; // = 0.5\n// @param Run the wipe in reverse\nuniform bool reverse; // = false\n\nfloat check(vec2 p1, vec2 p2, vec2 p3)\n{\n return (p1.x - p3.x) * (p2.y - p3.y) - (p2.x - p3.x) * (p1.y - p3.y);\n}\n\nbool pointInTriangle(vec2 pt, vec2 p1, vec2 p2, vec2 p3)\n{\n\n bool b1 = check(pt, p1, p2) < 0.0;\n bool b2 = check(pt, p2, p3) < 0.0;\n bool b3 = check(pt, p3, p1) < 0.0;\n return b1 == b2 && b2 == b3;\n}\n\nconst float height = 0.5;\n\nvec4 transition_firstHalf( vec2 uv, float prog )\n{\n if ( uv.y < 0.5 )\n {\n vec2 botLeft = vec2( -0., prog-height );\n vec2 botRight = vec2( 1., prog-height );\n vec2 tip = vec2( adjust, prog );\n if ( pointInTriangle( uv, botLeft, botRight, tip ) )\n return getToColor(uv);\n }\n else\n {\n vec2 topLeft = vec2( -0., 1.-prog+height );\n vec2 topRight = vec2( 1., 1.-prog+height );\n vec2 tip = vec2( adjust, 1.-prog );\n if ( pointInTriangle( uv, topLeft, topRight, tip ) )\n return getToColor( uv );\n }\n return getFromColor( uv );\n}\n\nvec4 transition_secondHalf( vec2 uv, float prog )\n{\n if ( uv.x > adjust )\n {\n vec2 top = vec2( prog + height, 1. );\n vec2 bot = vec2( prog + height, -0. );\n vec2 tip = vec2( mix( adjust, 1.0, 2.0 * (prog - 0.5) ), 0.5 );\n if ( pointInTriangle( uv, top, bot, tip) )\n return getFromColor( uv );\n }\n else\n {\n vec2 top = vec2( 1.0-prog - height, 1. );\n vec2 bot = vec2( 1.0-prog - height, -0. );\n vec2 tip = vec2( mix( adjust, 0.0, 2.0 * (prog - 0.5) ), 0.5 );\n if ( pointInTriangle( uv, top, bot, tip) )\n return getFromColor( uv );\n }\n return getToColor( uv );\n}\n\nvec4 transition (vec2 uv) {\n if ( reverse )\n return ( progress < 0.5 ) ? transition_secondHalf( uv, 1.-progress ) : transition_firstHalf( uv, 1.-progress );\n else\n return ( progress < 0.5 ) ? transition_firstHalf( uv, progress ) : transition_secondHalf( uv, progress );\n}","author":"KMojek","license":"MIT","description":"Two triangles grow from the top and bottom edges into a bow tie that reveals the incoming image, with an adjustable shape, and can run in reverse","tags":["wipe","shape"],"params":{"adjust":{"type":"float","default":0.5},"reverse":{"type":"bool","default":false,"description":"Run the wipe in reverse"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Thu, 5 Nov 2026 11:34:33 +0100"},{"name":"BowTieHorizontal","paramsTypes":{},"defaultParams":{},"glsl":"// Author: huynx\n// License: MIT\n// Description: Two triangles grow from the left and right edges into a bow tie that reveals the incoming image\n// Tags: wipe, shape, horizontal\n\nconst vec2 bottom_left = vec2(0.0, 1.0);\nconst vec2 bottom_right = vec2(1.0, 1.0);\nconst vec2 top_left = vec2(0.0, 0.0);\nconst vec2 top_right = vec2(1.0, 0.0);\nconst vec2 center = vec2(0.5, 0.5);\n\nfloat check(vec2 p1, vec2 p2, vec2 p3)\n{\n return (p1.x - p3.x) * (p2.y - p3.y) - (p2.x - p3.x) * (p1.y - p3.y);\n}\n\nbool PointInTriangle (vec2 pt, vec2 p1, vec2 p2, vec2 p3)\n{\n bool b1, b2, b3;\n b1 = check(pt, p1, p2) < 0.0;\n b2 = check(pt, p2, p3) < 0.0;\n b3 = check(pt, p3, p1) < 0.0;\n return ((b1 == b2) && (b2 == b3));\n}\n\nbool in_left_triangle(vec2 p){\n vec2 vertex1, vertex2, vertex3;\n vertex1 = vec2(progress, 0.5);\n vertex2 = vec2(0.0, 0.5-progress);\n vertex3 = vec2(0.0, 0.5+progress);\n if (PointInTriangle(p, vertex1, vertex2, vertex3))\n {\n return true;\n }\n return false;\n}\n\nbool in_right_triangle(vec2 p){\n vec2 vertex1, vertex2, vertex3;\n vertex1 = vec2(1.0-progress, 0.5);\n vertex2 = vec2(1.0, 0.5-progress);\n vertex3 = vec2(1.0, 0.5+progress);\n if (PointInTriangle(p, vertex1, vertex2, vertex3))\n {\n return true;\n }\n return false;\n}\n\nfloat blur_edge(vec2 bot1, vec2 bot2, vec2 top, vec2 testPt)\n{\n vec2 lineDir = bot1 - top;\n vec2 perpDir = vec2(lineDir.y, -lineDir.x);\n vec2 dirToPt1 = bot1 - testPt;\n float dist1 = abs(dot(normalize(perpDir), dirToPt1));\n \n lineDir = bot2 - top;\n perpDir = vec2(lineDir.y, -lineDir.x);\n dirToPt1 = bot2 - testPt;\n float min_dist = min(abs(dot(normalize(perpDir), dirToPt1)), dist1);\n \n if (min_dist < 0.005) {\n return min_dist / 0.005;\n }\n else {\n return 1.0;\n };\n}\n\n\nvec4 transition (vec2 uv) {\n if (in_left_triangle(uv))\n {\n if (progress < 0.1)\n {\n return getFromColor(uv);\n }\n if (uv.x < 0.5)\n {\n vec2 vertex1 = vec2(progress, 0.5);\n vec2 vertex2 = vec2(0.0, 0.5-progress);\n vec2 vertex3 = vec2(0.0, 0.5+progress);\n return mix(\n getFromColor(uv),\n getToColor(uv),\n blur_edge(vertex2, vertex3, vertex1, uv)\n );\n }\n else\n {\n if (progress > 0.0)\n {\n return getToColor(uv);\n }\n else\n {\n return getFromColor(uv);\n }\n } \n }\n else if (in_right_triangle(uv))\n {\n if (uv.x >= 0.5)\n {\n vec2 vertex1 = vec2(1.0-progress, 0.5);\n vec2 vertex2 = vec2(1.0, 0.5-progress);\n vec2 vertex3 = vec2(1.0, 0.5+progress);\n return mix(\n getFromColor(uv),\n getToColor(uv),\n blur_edge(vertex2, vertex3, vertex1, uv)\n ); \n }\n else\n {\n return getFromColor(uv);\n }\n }\n else {\n return getFromColor(uv);\n }\n}","author":"huynx","license":"MIT","description":"Two triangles grow from the left and right edges into a bow tie that reveals the incoming image","tags":["wipe","shape","horizontal"],"params":{},"textures":[],"createdAt":"Sat, 24 Mar 2018 12:54:26 +0100","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"BrushWipe","paramsTypes":{"strokes":"float","angle":"float","roughness":"float","waviness":"float"},"defaultParams":{"strokes":4,"angle":-7,"roughness":0.6,"waviness":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: A few broad brush strokes sweep across the frame in turn, back and forth, painting in the incoming image with streaky bristle edges and dry, ragged ends\n// Tags: wipe, paint, brush, organic\n\n// @range(1, 8, 1) Number of brush strokes needed to cover the frame\nuniform float strokes; // = 4.0\n// @range(-45, 45) Angle of the strokes, in degrees\nuniform float angle; // = -7.0\n// @range(0, 1) How rough the bristles make the edges and ends of the strokes\nuniform float roughness; // = 0.6\n// @range(0, 1) How much the strokes wave along their way\nuniform float waviness; // = 0.5\n\nconst float PI = 3.141592653589793;\n\nfloat hash (vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// value noise, smooth along both axes\nfloat vnoise (vec2 p) {\n vec2 i = floor(p);\n vec2 f = fract(p);\n f = f * f * (3.0 - 2.0 * f);\n return mix(\n mix(hash(i), hash(i + vec2(1.0, 0.0)), f.x),\n mix(hash(i + vec2(0.0, 1.0)), hash(i + vec2(1.0, 1.0)), f.x),\n f.y\n );\n}\n\n// bristle streaks: fine across the stroke (t), long along it (u)\nfloat bristles (float t, float u, float seed) {\n return 0.6 * vnoise(vec2(t * 26.0 + seed, u * 1.3 + seed)) + 0.4 * vnoise(vec2(t * 8.0 - seed, u * 0.7));\n}\n\n// one stroke: k its index, t the position across it (-1..1 is its core), u along it\n// returns (coverage, wet streak shading)\nvec2 stroke (float k, float t, float u, float U, float n, float h) {\n float dir = mod(k, 2.0) < 0.5 ? 1.0 : -1.0;\n float x = u * dir;\n float dur = min(1.0, 1.8 / (n + 0.8));\n float start = n > 1.0 ? k * (1.0 - dur) / (n - 1.0) : 0.0;\n float s = clamp((progress - start) / dur, 0.0, 1.0);\n s = mix(s, s * s * (3.0 - 2.0 * s), 0.7);\n float r = roughness;\n float lag = (0.15 + 0.6 * r) * h; // how far the longest bristles run ahead of the shortest\n float dry = (0.1 + 0.9 * r) * h; // length of the streaky, dry trail behind the head of the stroke\n // at the end even the shortest bristles, at the rounded corners, are past the far edge with their dry trail\n float head = mix(-U, U + lag + 0.3 * h + 1.15 * dry + 0.01, s);\n float b = bristles(t, k * 3.7, k * 17.0);\n float front = head - lag * (1.0 - b) - 0.3 * h * t * t; // a rounded, ragged head\n float streak = bristles(t * 1.7, x * 2.0 / h, k * 5.0 + 9.0);\n float along = clamp(((front - x) / (dry + 0.001) - 0.1 - 0.8 * streak) * 6.0, 0.0, 1.0);\n float fringe = 0.1 + 0.7 * r;\n float e = (abs(t) - 1.0) / fringe; // < 0 in the core of the stroke\n float reach = 0.5 + 0.5 * vnoise(vec2(x * 2.5 / h, k * 7.0 + (t > 0.0 ? 3.0 : 0.0))); // the edge wanders\n float hair = clamp(bristles(t * 1.4, x * 3.0 / h, k * 11.0 + 3.0) * 2.0 - 0.5, 0.0, 1.0);\n float side = clamp((reach * hair - e) * 12.0 + 1.0, 0.0, 1.0);\n float cover = along * side;\n float wet = (1.0 - clamp((progress - start - dur) / 0.25, 0.0, 1.0)) * min(1.0, (1.0 - progress) * 6.0);\n return vec2(cover, cover * wet * (bristles(t * 2.0, x * 2.0 / h, k) - 0.5));\n}\n\nvec4 transition (vec2 uv) {\n float a = angle * PI / 180.0;\n float c = cos(a);\n float sn = sin(a);\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0);\n float u = c * q.x + sn * q.y; // along the strokes\n float v = -sn * q.x + c * q.y; // across them\n float U = 0.5 * (abs(c) * ratio + abs(sn));\n float V = 0.5 * (abs(sn) * ratio + abs(c));\n float n = max(1.0, floor(strokes + 0.5));\n float h = 2.0 * V / n; // height of a stroke\n // waves shared by the neighbouring strokes so that they always tile the frame\n float A = 0.12 * waviness * h;\n float w = v + A * sin(u * 5.0 / U + v * 2.0 / h + 1.3) + 0.5 * A * sin(u * 11.0 / U - v * 3.0 / h);\n float y = (V + 1.5 * A - w) / (2.0 * V + 3.0 * A) * n; // strokes go from top to bottom\n float hh = (2.0 * V + 3.0 * A) / n;\n float k = clamp(floor(y), 0.0, n - 1.0);\n float cover = 0.0;\n float shade = 0.0;\n for (int i = -1; i <= 1; i++) {\n float j = k + float(i);\n if (j >= 0.0 && j <= n - 1.0) {\n vec2 s = stroke(j, (y - j - 0.5) * 2.0, u, U, n, hh);\n cover = max(cover, s.x);\n shade = mix(shade, s.y, s.x); // the latest stroke is on top\n }\n }\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n to.rgb = min(to.rgb * (1.0 + 0.2 * shade), 1.0);\n return mix(from, to, cover);\n}\n","author":"gre","license":"MIT","description":"A few broad brush strokes sweep across the frame in turn, back and forth, painting in the incoming image with streaky bristle edges and dry, ragged ends","tags":["wipe","paint","brush","organic"],"params":{"strokes":{"type":"float","default":4,"min":1,"max":8,"step":1,"description":"Number of brush strokes needed to cover the frame"},"angle":{"type":"float","default":-7,"min":-45,"max":45,"description":"Angle of the strokes, in degrees"},"roughness":{"type":"float","default":0.6,"min":0,"max":1,"description":"How rough the bristles make the edges and ends of the strokes"},"waviness":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the strokes wave along their way"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:25:47 +0100","updatedAt":"Sun, 1 Nov 2026 20:25:47 +0100"},{"name":"BurnThrough","paramsTypes":{"burnColor":"vec3"},"defaultParams":{"burnColor":[1,0.5,0]},"glsl":"// Author: liubailin2020@gmail.com\n// License: MIT\n// Description: The outgoing image burns away in noisy, glowing patches\n// Tags: burn, fire, noise\n\n// @color Color of the burning edges\nuniform vec3 burnColor; // = vec3(1.0, 0.5, 0.0)\n\nfloat random (in vec2 st) {\n return fract(sin(dot(st.xy,\n vec2(12.9898,78.233)))*\n 43758.5453123);\n}\n\n// Based on Morgan McGuire @morgan3d\n// https://www.shadertoy.com/view/4dS3Wd\nfloat noise (in vec2 st) {\n vec2 i = floor(st);\n vec2 f = fract(st);\n\n float a = random(i);\n float b = random(i + vec2(1.0, 0.0));\n float c = random(i + vec2(0.0, 1.0));\n float d = random(i + vec2(1.0, 1.0));\n\n vec2 u = f * f * (3.0 - 2.0 * f);\n\n return mix(a, b, u.x) +\n (c - a)* u.y * (1.0 - u.x) +\n (d - b) * u.x * u.y;\n}\n\n#define OCTAVES 4\nfloat fbm (in vec2 st) {\n float value = 0.0;\n float amplitude = .5;\n for (int i = 0; i < OCTAVES; i++) {\n value += amplitude * noise(st);\n st *= 2.;\n amplitude *= .5;\n }\n return value;\n}\n\nvec4 transition (vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n float n = fbm(uv * 4.);\n float l = smoothstep(progress, progress + 0.05, n);\n float edge = (1.0 - l) * l * 5.0;\n return mix(to, from, l) + vec4(burnColor, 0.0) * edge;\n}\n","author":"liubailin2020@gmail.com","license":"MIT","description":"The outgoing image burns away in noisy, glowing patches","tags":["burn","fire","noise"],"params":{"burnColor":{"type":"vec3","default":[1,0.5,0],"color":true,"description":"Color of the burning edges"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ButterflyWaveScrawler","paramsTypes":{"amplitude":"float","waves":"float","colorSeparation":"float"},"defaultParams":{"amplitude":1,"waves":30,"colorSeparation":0.3},"glsl":"// Author: mandubian\n// License: MIT\n// Description: Wavy, color-separated ripples scramble the outgoing image into the incoming one\n// Tags: wave, distort, chromatic\nuniform float amplitude; // = 1.0\nuniform float waves; // = 30.0\nuniform float colorSeparation; // = 0.3\nconst float PI = 3.14159265358979323846264;\nfloat compute(vec2 p, float progress, vec2 center) {\nvec2 o = p*sin(progress * amplitude)-center;\n// horizontal vector\nvec2 h = vec2(1., 0.);\n// butterfly polar function (don't ask me why this one :))\nfloat theta = acos(dot(o, h)) * waves;\nfloat s = sin((2.*theta - PI) / 24.);\nfloat s2 = s * s;\nreturn (exp(cos(theta)) - 2.*cos(4.*theta) + s2 * s2 * s) / 10.;\n}\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n vec2 p = uv;\n float inv = 1. - progress;\n float disp = compute(p, progress, vec2(0.5, 0.5));\n vec4 texTo = getToColor(p + inv*disp);\n vec4 fromCenter = getFromColor(p + progress*disp);\n vec4 texFrom = vec4(\n getFromColor(p + progress*disp*(1.0 - colorSeparation)).r,\n fromCenter.g,\n getFromColor(p + progress*disp*(1.0 + colorSeparation)).b,\n fromCenter.a);\n return texTo*progress + texFrom*inv;\n}\n","author":"mandubian","license":"MIT","description":"Wavy, color-separated ripples scramble the outgoing image into the incoming one","tags":["wave","distort","chromatic"],"params":{"amplitude":{"type":"float","default":1},"waves":{"type":"float","default":30},"colorSeparation":{"type":"float","default":0.3}},"textures":[],"createdAt":"Thu, 1 Jun 2017 11:47:17 +0200","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"CameraShake","paramsTypes":{"strength":"float","jolts":"float","blur":"float","split":"float"},"defaultParams":{"strength":0.5,"jolts":12,"blur":0.5,"split":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The camera jolts violently in random directions, with motion blur and color fringes along each jolt; the cut happens at the peak of the shake, which then settles on the incoming image\n// Tags: shake, camera, motion-blur, chromatic, impact\n\n// @range(0, 1) How far the camera jolts (and rolls) at the peak of the shake\nuniform float strength; // = 0.5\n// @range(4, 32) Number of jolts over the transition\nuniform float jolts; // = 12.0\n// @range(0, 1) Length of the motion blur along each jolt\nuniform float blur; // = 0.5\n// @range(0, 1) How far the color channels split apart along each jolt\nuniform float split; // = 0.5\n\nconst int TAPS = 10;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// the camera position at jolt key k: offset (x, y) and roll, each in -1..1\nvec3 jolt(float k) {\n // successive jolts go in nearly opposite directions\n float a = 2.4 * k + 1.2 * hash12(vec2(k, 11.0));\n float m = 0.55 + 0.45 * hash12(vec2(k, 23.0));\n return vec3(m * cos(a), m * sin(a), 2.0 * hash12(vec2(k, 37.0)) - 1.0);\n}\n\n// how strong the shake is at time t: it builds up quickly, peaks around the cut, then settles\nfloat envelope(float t) {\n float h = clamp(1.6 * (1.0 - abs(2.0 * t - 1.0)), 0.0, 1.0);\n return h * h * (3.0 - 2.0 * h);\n}\n\n// the image seen by the camera at time t (in progress units), premultiplied\nvec4 shot(vec2 uv, float t, bool incoming) {\n float env = envelope(t);\n // a key every 1/jolts, one of them exactly at the cut\n float s = (t - 0.5) * jolts;\n float k = floor(s);\n float g = 1.0 - (s - k);\n float e = 1.0 - g * g * g; // snaps to the next key, then holds\n vec3 j = mix(jolt(k), jolt(k + 1.0), e) * env;\n float omax = 0.14 * strength * env;\n float rmax = 0.07 * strength * env;\n vec2 off = j.xy * omax;\n float roll = j.z * rmax;\n // zoom in just enough that the frame edges never show, for any offset and roll up to these\n float zoom = (cos(rmax) + sin(rmax) * max(ratio, 1.0 / ratio)) / (1.0 - 2.0 * omax);\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0);\n q = mat2(cos(roll), sin(roll), -sin(roll), cos(roll)) * q / zoom;\n vec2 p = mirror(q / vec2(ratio, 1.0) + 0.5 + off);\n vec4 c = incoming ? getToColor(p) : getFromColor(p);\n return vec4(c.rgb * c.a, c.a);\n}\n\nvec4 transition(vec2 uv) {\n // the exposure follows the shake: no blur at the very ends\n float open = envelope(progress);\n float shutter = 0.8 * blur / jolts * open;\n float lag = 0.2 * split / jolts * open;\n // each channel, premultiplied, and its alpha\n vec2 sumR = vec2(0.0);\n vec2 sumG = vec2(0.0);\n vec2 sumB = vec2(0.0);\n float wsum = 0.0;\n for (int i = 0; i < TAPS; i++) {\n float u = (float(i) + 0.5) / float(TAPS) - 0.5;\n float t = progress + u * shutter;\n // the trails fade out at both ends of the exposure\n float w = 1.0 - 1.4 * abs(u);\n // the cut happens during the exposure: the channels of a tap show the same image\n bool incoming = t >= 0.5;\n // red leads and blue trails the motion, so they split by the speed of the jolt\n vec4 r = shot(uv, t + lag, incoming);\n vec4 c = shot(uv, t, incoming);\n vec4 b = shot(uv, t - lag, incoming);\n sumR += w * r.ra;\n sumG += w * c.ga;\n sumB += w * b.ba;\n wsum += w;\n }\n float alpha = (sumR.y + sumG.y + sumB.y) / (3.0 * wsum);\n if (alpha <= 0.0) return vec4(0.0);\n vec3 color = vec3(\n sumR.x / max(sumR.y, 1e-5),\n sumG.x / max(sumG.y, 1e-5),\n sumB.x / max(sumB.y, 1e-5)\n );\n return vec4(color, alpha);\n}\n","author":"gre","license":"MIT","description":"The camera jolts violently in random directions, with motion blur and color fringes along each jolt; the cut happens at the peak of the shake, which then settles on the incoming image","tags":["shake","camera","motion-blur","chromatic","impact"],"params":{"strength":{"type":"float","default":0.5,"min":0,"max":1,"description":"How far the camera jolts (and rolls) at the peak of the shake"},"jolts":{"type":"float","default":12,"min":4,"max":32,"description":"Number of jolts over the transition"},"blur":{"type":"float","default":0.5,"min":0,"max":1,"description":"Length of the motion blur along each jolt"},"split":{"type":"float","default":0.5,"min":0,"max":1,"description":"How far the color channels split apart along each jolt"}},"textures":[],"createdAt":"Tue, 3 Nov 2026 13:10:45 +0100","updatedAt":"Tue, 3 Nov 2026 13:10:45 +0100"},{"name":"CardSwipe","paramsTypes":{"direction":"vec2","rotation":"float","depth":"float","backColor":"vec4"},"defaultParams":{"direction":[1,0.25],"rotation":0.5,"depth":0.15,"backColor":[0.06,0.06,0.07,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image is flicked off like the top card of a stack, swinging around a point below it as it flies out, while the incoming card behind it grows to fill the frame\n// Tags: card, swipe, stack, rotate, slide, directional\n\n// @param Direction in which the outgoing card is flicked\nuniform vec2 direction; // = vec2(1.0, 0.25)\n// @range(0, 1) How much the outgoing card swings as it flies out\nuniform float rotation; // = 0.5\n// @range(0, 0.5) How much smaller the incoming card starts\nuniform float depth; // = 0.15\n// @color Color seen around the incoming card while it is smaller than the frame\nuniform vec4 backColor; // = vec4(0.06, 0.06, 0.07, 1.0)\n\nconst float RADIUS = 0.045; // corner radius of the cards, in frame heights\nconst float AA = 0.002; // width of the antialiased card edges\n\n// signed distance to a rounded box of half size b and corner radius r\nfloat roundedBox(vec2 q, vec2 b, float r) {\n vec2 d = abs(q) - b + r;\n return length(max(d, 0.0)) + min(max(d.x, d.y), 0.0) - r;\n}\n\nvec4 premultiply(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\nvec4 transition(vec2 uv) {\n float dl = length(direction);\n vec2 d = dl > 1e-6 ? direction / dl : vec2(0.970143, 0.242536);\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0);\n vec2 b = vec2(0.5 * ratio, 0.5);\n float p = progress;\n\n // the incoming card, behind: grows from a smaller card to the full frame,\n // and its corners straighten as it fills it\n float h = clamp((p - 0.2) / 0.8, 0.0, 1.0);\n float g = h * h * (3.0 - 2.0 * h);\n float k = 1.0 - g;\n float sc = 1.0 - depth * k;\n float rb = RADIUS * min(1.0, 12.0 * k);\n float db = roundedBox(q, b * sc, rb);\n float cb = clamp(0.5 - db / max(AA * min(1.0, 40.0 * k), 1e-6), 0.0, 1.0);\n vec4 tc = getToColor(clamp(0.5 + (uv - 0.5) / sc, 0.0, 1.0));\n // still in the shade of the top card at first\n tc.rgb *= 1.0 - 0.35 * k * k;\n // the cards are opaque: each one replaces what is behind it, keeping its image's alpha\n vec4 col = mix(premultiply(backColor), premultiply(tc), cb);\n\n // the outgoing card, on top: swings around a point below it as it is flicked away\n float t = clamp(p / 0.75, 0.0, 1.0);\n float lift = smoothstep(0.0, 0.15, p);\n float u = min(t / 0.7, 1.0);\n float swing = u * u * (3.0 - 2.0 * u);\n // it tilts toward the side it is flicked to\n float a = (d.x < 0.0 ? 1.3 : -1.3) * rotation * swing;\n vec2 pivot = vec2(0.0, -1.1);\n // where the swing alone takes the center of the card, to throw it far enough\n float ca = cos(a), sa = sin(a);\n vec2 swung = pivot + mat2(ca, sa, -sa, ca) * -pivot;\n float far = 2.0 * length(b) + length(swung) + 0.3;\n vec2 shift = d * far * t * t * (0.4 + 0.6 * t);\n mat2 unrotate = mat2(ca, -sa, sa, ca);\n vec2 r = unrotate * (q - shift - pivot) + pivot;\n float rf = RADIUS * lift;\n\n // its soft shadow on the card behind, cast down and away as it lifts\n float sh = 0.6 * lift * (1.0 - t);\n if (sh > 0.0) {\n vec2 rs = unrotate * (q - (0.03 * d + vec2(0.0, -0.03)) * lift - shift - pivot) + pivot;\n float ds = roundedBox(rs, b, rf);\n col.rgb *= 1.0 - sh * (1.0 - smoothstep(-0.05, 0.08, ds));\n }\n\n float df = roundedBox(r, b, rf);\n float cf = clamp(0.5 - df / max(AA * min(1.0, 40.0 * lift), 1e-6), 0.0, 1.0);\n vec4 fc = getFromColor(clamp(r / vec2(ratio, 1.0) + 0.5, 0.0, 1.0));\n col = mix(col, premultiply(fc), cf);\n return col.a > 0.0 ? vec4(col.rgb / col.a, col.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The outgoing image is flicked off like the top card of a stack, swinging around a point below it as it flies out, while the incoming card behind it grows to fill the frame","tags":["card","swipe","stack","rotate","slide","directional"],"params":{"direction":{"type":"vec2","default":[1,0.25],"description":"Direction in which the outgoing card is flicked"},"rotation":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the outgoing card swings as it flies out"},"depth":{"type":"float","default":0.15,"min":0,"max":0.5,"description":"How much smaller the incoming card starts"},"backColor":{"type":"vec4","default":[0.06,0.06,0.07,1],"color":true,"description":"Color seen around the incoming card while it is smaller than the frame"}},"textures":[],"createdAt":"Tue, 3 Nov 2026 21:55:02 +0100","updatedAt":"Tue, 3 Nov 2026 21:55:02 +0100"},{"name":"CellDissolve","paramsTypes":{"cells":"float","smoothness":"float","border":"float","borderColor":"vec4","seed":"float"},"defaultParams":{"cells":8,"smoothness":0.1,"border":0.006,"borderColor":[1,0.95,0.8,1],"seed":0},"glsl":"// Author: gre\n// License: MIT\n// Description: Irregular cells, like cracked mud or soap foam, switch to the incoming image one by one, with an optional bright border glowing along the cracks between them\n// Tags: dissolve, cells, voronoi, random\n\n// @range(1, 40) Number of cells across the height of the frame\nuniform float cells; // = 8.0\n// @range(0, 1) Duration of each cell's switch, as a fraction of the transition (0: each cell switches at once)\nuniform float smoothness; // = 0.1\n// @range(0, 0.05) Width of the border along the cell edges, in frame heights (0: no border)\nuniform float border; // = 0.006\n// @color Color of the border\nuniform vec4 borderColor; // = vec4(1.0, 0.95, 0.8, 1.0)\n// @param Random seed: another value gives other cells, switching in another order\nuniform float seed; // = 0.0\n\n// half width of the antialiased edges, in frame heights\nconst float AA = 0.0015;\n\nvec2 hash22(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * vec3(0.1031, 0.1030, 0.0973));\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.xx + p3.yz) * p3.zy);\n}\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return b;\n\n float n = max(cells, 1.0);\n // measured in square pixels, so the cells are not stretched\n vec2 p = uv * vec2(ratio, 1.0) * n;\n vec2 i = floor(p);\n vec2 f = p - i;\n vec2 offset = vec2(17.31, 41.97) * seed;\n\n // nearest cell point\n vec2 mg = vec2(0.0);\n vec2 mr = vec2(0.0);\n float md = 8.0;\n for (int y = -1; y <= 1; y++) {\n for (int x = -1; x <= 1; x++) {\n vec2 g = vec2(float(x), float(y));\n vec2 r = g + hash22(i + g + offset) - f;\n float d = dot(r, r);\n if (d < md) {\n md = d;\n mr = r;\n mg = g;\n }\n }\n }\n\n // distance to the nearest cell edge: the bisector with the closest neighbor point,\n // searched over 5x5 cells around the nearest one so that no edge is missed\n float edge = 8.0;\n for (int y = -2; y <= 2; y++) {\n for (int x = -2; x <= 2; x++) {\n vec2 g = mg + vec2(float(x), float(y));\n vec2 r = g + hash22(i + g + offset) - f;\n vec2 dr = r - mr;\n if (dot(dr, dr) > 0.00001) {\n edge = min(edge, dot(0.5 * (mr + r), normalize(dr)));\n }\n }\n }\n // in frame heights\n edge /= n;\n\n // the cell's own switch time, from its hash\n float h = hash22(i + mg + offset + 97.13).x;\n float w = clamp(smoothness, 0.0, 1.0);\n float start = h * (1.0 - w);\n float m = w > 0.0 ? smoothstep(start, start + w, progress) : step(start, progress);\n\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n\n // the cracks open at the start and close at the end\n float open = smoothstep(0.0, 0.2, progress) * (1.0 - smoothstep(0.8, 1.0, progress));\n float bw = max(border, 0.0) * open;\n if (bw > 0.0) {\n float l = 1.0 - smoothstep(0.5 * bw - AA, 0.5 * bw + AA, edge);\n float ba = borderColor.a * l * min(1.0, bw / (2.0 * AA));\n c = vec4(borderColor.rgb * ba, ba) + c * (1.0 - ba);\n }\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Irregular cells, like cracked mud or soap foam, switch to the incoming image one by one, with an optional bright border glowing along the cracks between them","tags":["dissolve","cells","voronoi","random"],"params":{"cells":{"type":"float","default":8,"min":1,"max":40,"description":"Number of cells across the height of the frame"},"smoothness":{"type":"float","default":0.1,"min":0,"max":1,"description":"Duration of each cell's switch, as a fraction of the transition (0: each cell switches at once)"},"border":{"type":"float","default":0.006,"min":0,"max":0.05,"description":"Width of the border along the cell edges, in frame heights (0: no border)"},"borderColor":{"type":"vec4","default":[1,0.95,0.8,1],"color":true,"description":"Color of the border"},"seed":{"type":"float","default":0,"description":"Random seed: another value gives other cells, switching in another order"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:14:00 +0100","updatedAt":"Wed, 4 Nov 2026 20:14:00 +0100"},{"name":"Chessboard","paramsTypes":{"grid_num":"float"},"defaultParams":{"grid_num":10},"glsl":"// Author: lql\n// License: MIT\n// Description: A chessboard pattern of squares reveals the incoming image\n// Tags: grid, squares, pattern\n\n// @param Number of squares per row\nuniform float grid_num; // = 10.0\n\nvec4 transition(vec2 uv) {\n vec2 st = uv * grid_num;\n vec2 idx = floor(st);\n vec2 grid = fract(st);\n\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n\n float checker = mod(idx.x + idx.y, 2.0);\n float mixFactor;\n\n if (progress <= 0.5) {\n mixFactor = (checker > 0.5) ? step(grid.x, progress * 2.0) : 0.0;\n } else {\n mixFactor = (checker < 0.5) ? step(grid.x, (progress - 0.5) * 2.0) : 1.0;\n }\n\n return mix(a, b, mixFactor);\n}\n","author":"lql","license":"MIT","description":"A chessboard pattern of squares reveals the incoming image","tags":["grid","squares","pattern"],"params":{"grid_num":{"type":"float","default":10,"description":"Number of squares per row"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"CircleBurst","paramsTypes":{"center":"vec2","color1":"vec4","color2":"vec4","color3":"vec4","stagger":"float"},"defaultParams":{"center":[0.5,0.5],"color1":[0.99,0.79,0.29,1],"color2":[0.95,0.38,0.33,1],"color3":[0.13,0.15,0.3,1],"stagger":0.3},"glsl":"// Author: gre\n// License: MIT\n// Description: Discs of three solid colors burst out of a point one after another, each covering the last, then a hole bursts open from the same point in the last one to reveal the incoming image\n// Tags: circle, burst, color, reveal, motion-graphics\n\n// @param Point the discs burst out of, in texture coordinates\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @color Color of the first disc\nuniform vec4 color1; // = vec4(0.99, 0.79, 0.29, 1.0)\n// @color Color of the second disc\nuniform vec4 color2; // = vec4(0.95, 0.38, 0.33, 1.0)\n// @color Color of the third disc, which opens onto the incoming image\nuniform vec4 color3; // = vec4(0.13, 0.15, 0.3, 1.0)\n// @range(0, 1) Delay between the discs, relative to the burst of one disc (at 0, they burst as one: a single circle opens onto the incoming image)\nuniform float stagger; // = 0.3\n\n// half width of the antialiased edges, in frame heights\nconst float AA = 0.0015;\n// width and opacity of the soft shadow each disc casts on what is under it\nconst float SW = 0.03;\nconst float SO = 0.32;\n\n// local progress of a layer starting at s and lasting d\nfloat phase(float s, float d) {\n return clamp((progress - s) / d, 0.0, 1.0);\n}\n\n// radius of the edge of a layer at local progress t: it bursts out of just before the point and\n// leaves the frame still moving, its shadow last\nfloat radius(float t, float R) {\n float u = 1.0 - t;\n return mix(-SW - AA, R, mix(t, 1.0 - u * u * u, 0.8));\n}\n\n// fold texture coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(abs(v), 2.0));\n}\n\n// a layer of color c and radius r laid over p (premultiplied), with its shadow around it, at distance x\nvec4 layer(vec4 p, vec4 c, float r, float x) {\n float k = smoothstep(r - AA, r + AA, x);\n float s = SO * c.a * k * (1.0 - smoothstep(0.0, SW, x - r));\n p = p * (1.0 - s) + vec4(0.0, 0.0, 0.0, s);\n k = c.a * (1.0 - k);\n return p * (1.0 - k) + vec4(c.rgb, 1.0) * k;\n}\n\nvec4 transition(vec2 uv) {\n vec2 asp = vec2(ratio, 1.0);\n float x = length((uv - center) * asp);\n // past the farthest corner, with room for the shadows\n float R = length(max(center, 1.0 - center) * asp) + SW + AA;\n float k = clamp(stagger, 0.0, 1.0);\n float d = 1.0 / (1.0 + 3.0 * k);\n\n // the outgoing image is pushed in by the first burst\n float t = phase(0.0, d);\n vec4 a = getFromColor(mirror(center + (uv - center) / (1.0 + 0.06 * t * (2.0 - t))));\n vec4 p = vec4(a.rgb * a.a, a.a);\n p = layer(p, color1, radius(t, R), x);\n p = layer(p, color2, radius(phase(k * d, d), R), x);\n float r = radius(phase(2.0 * k * d, d), R);\n p = layer(p, color3, r, x);\n\n // the hole in the last disc shows the incoming image, which pops in slightly zoomed, overshoots\n // and settles, shaded along the hole's rim as much as the disc around it is wide\n t = phase(3.0 * k * d, d);\n float h = radius(t, R);\n float u = 1.0 - t;\n vec4 b = getToColor(mirror(center + (uv - center) / (1.0 + 0.14 * u * u * (1.0 - 2.4 * t))));\n float s = SO * color3.a * clamp((r - h) / SW, 0.0, 1.0) * (1.0 - smoothstep(0.0, SW, h - x));\n vec4 q = vec4(b.rgb * b.a * (1.0 - s), b.a * (1.0 - s) + s);\n p = mix(p, q, 1.0 - smoothstep(h - AA, h + AA, x));\n return p.a > 0.0 ? vec4(p.rgb / p.a, p.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Discs of three solid colors burst out of a point one after another, each covering the last, then a hole bursts open from the same point in the last one to reveal the incoming image","tags":["circle","burst","color","reveal","motion-graphics"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Point the discs burst out of, in texture coordinates"},"color1":{"type":"vec4","default":[0.99,0.79,0.29,1],"color":true,"description":"Color of the first disc"},"color2":{"type":"vec4","default":[0.95,0.38,0.33,1],"color":true,"description":"Color of the second disc"},"color3":{"type":"vec4","default":[0.13,0.15,0.3,1],"color":true,"description":"Color of the third disc, which opens onto the incoming image"},"stagger":{"type":"float","default":0.3,"min":0,"max":1,"description":"Delay between the discs, relative to the burst of one disc (at 0, they burst as one: a single circle opens onto the incoming image)"}},"textures":[],"createdAt":"Mon, 9 Nov 2026 09:04:35 +0100","updatedAt":"Mon, 9 Nov 2026 09:04:35 +0100"},{"name":"CircleIris","paramsTypes":{"center":"vec2","backColor":"vec4"},"defaultParams":{"center":[0.5,0.5],"backColor":[0.1,0.1,0.1,1]},"glsl":"// Author: Fernando Kuteken\n// License: MIT\n// Description: The outgoing image closes into a circle over a background color, then the incoming one opens from it\n// Tags: circle, iris, shape\n\n// @param Center of the circle\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @color Background color\nuniform vec4 backColor; // = vec4(0.1, 0.1, 0.1, 1.0)\n\nvec4 transition (vec2 uv) {\n \n float distance = length(uv - center);\n float radius = sqrt(8.0) * abs(progress - 0.5);\n \n if (distance > radius) {\n return backColor;\n }\n else {\n if (progress < 0.5) return getFromColor(uv);\n else return getToColor(uv);\n }\n}\n","author":"Fernando Kuteken","license":"MIT","description":"The outgoing image closes into a circle over a background color, then the incoming one opens from it","tags":["circle","iris","shape"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Center of the circle"},"backColor":{"type":"vec4","default":[0.1,0.1,0.1,1],"color":true,"description":"Background color"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"CircleOpen","paramsTypes":{"smoothness":"float","opening":"bool"},"defaultParams":{"smoothness":0.3,"opening":true},"glsl":"// Author: gre\n// License: MIT\n// Description: A soft-edged circle opens from the center to reveal the incoming image\n// Tags: circle, iris, wipe\n// @param Softness of the circle's edge\nuniform float smoothness; // = 0.3\n// @param Open the circle; false closes it instead\nuniform bool opening; // = true\n\nconst vec2 center = vec2(0.5, 0.5);\nconst float SQRT_2 = 1.414213562373;\n\nvec4 transition (vec2 uv) {\n float x = opening ? progress : 1.-progress;\n float m = smoothstep(-smoothness, 0.0, SQRT_2*distance(center, uv) - x*(1.+smoothness));\n return mix(getFromColor(uv), getToColor(uv), opening ? 1.-m : m);\n}\n","author":"gre","license":"MIT","description":"A soft-edged circle opens from the center to reveal the incoming image","tags":["circle","iris","wipe"],"params":{"smoothness":{"type":"float","default":0.3,"description":"Softness of the circle's edge"},"opening":{"type":"bool","default":true,"description":"Open the circle; false closes it instead"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ClockWipe","paramsTypes":{"startingAngle":"float"},"defaultParams":{"startingAngle":90},"glsl":"// Author: Fernando Kuteken\n// License: MIT\n// Description: A wipe that sweeps around the center from a starting angle\n// Tags: wipe, radial, clock\n\n#define PI 3.141592653589\n\n// @range(0, 360) Angle where the wipe starts, in degrees\nuniform float startingAngle; // = 90\n\nvec4 transition (vec2 uv) {\n \n float offset = startingAngle * PI / 180.0;\n float angle = atan(uv.y - 0.5, uv.x - 0.5) + offset;\n float normalizedAngle = (angle + PI) / (2.0 * PI);\n \n normalizedAngle = normalizedAngle - floor(normalizedAngle);\n\n return mix(\n getFromColor(uv),\n getToColor(uv),\n step(normalizedAngle, progress)\n );\n}\n","author":"Fernando Kuteken","license":"MIT","description":"A wipe that sweeps around the center from a starting angle","tags":["wipe","radial","clock"],"params":{"startingAngle":{"type":"float","default":90,"min":0,"max":360,"description":"Angle where the wipe starts, in degrees"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Clothesline","paramsTypes":{"direction":"float","sway":"float","size":"float","background":"vec4","lineColor":"vec4","pinColor":"vec4"},"defaultParams":{"direction":1,"sway":0.5,"size":0.72,"background":[0.86,0.84,0.8,1],"lineColor":[0.42,0.34,0.26,1],"pinColor":[0.84,0.68,0.47,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The camera pulls back to show the outgoing image as a print hung by two clothespins on a line in front of a wall, the line is pulled sideways and carries it away while the incoming print slides in, both prints swinging and tilting like hanging paper, then the camera moves back in on the incoming print until it fills the frame\n// Tags: 3d, perspective, slide, swing, paper, directional\n\n// @param Way the line is pulled: 1 brings the incoming print in from the right, -1 from the left\nuniform float direction; // = 1.0\n// @range(0, 1) How much the prints swing and tilt as the line moves\nuniform float sway; // = 0.5\n// @range(0.4, 0.95) Size of the prints when the camera is farthest, as a part of the frame\nuniform float size; // = 0.72\n// @color Color of the wall behind the line\nuniform vec4 background; // = vec4(0.86, 0.84, 0.8, 1.0)\n// @color Color of the line\nuniform vec4 lineColor; // = vec4(0.42, 0.34, 0.26, 1.0)\n// @color Color of the clothespins\nuniform vec4 pinColor; // = vec4(0.84, 0.68, 0.47, 1.0)\n\nconst float FOCAL = 2.0; // distance from the camera to a print when it fills the frame\nconst float GAP = 0.35; // space between two prints on the line, in frame heights\nconst float WALL = 0.14; // distance from the line to the wall behind it\nconst float ROPE = 0.0055; // half thickness of the line\nconst vec2 PIN = vec2(0.021, 0.072); // half size of a clothespin\nconst float PIN_Y = -0.01; // center of a clothespin below the top edge of its print\nconst float AA = 0.0015; // width of the antialiased edges, in frame heights\nconst vec3 LIGHT = vec3(-0.28, 0.48, 0.83); // toward the light: above, a bit on the left, in front\nconst float PIN_X = 0.32; // clothespins from the center of their print, in print widths\nconst int STEPS = 32; // steps of the swing simulation over the whole transition\n\n// the line moves between these progress values\nconst float SLIDE_START = 0.1;\nconst float SLIDE_END = 0.86;\n\nvec4 premultiply(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\n// time of the line's move at p, from 0 to 1\nfloat slideTime(float p) {\n return clamp((p - SLIDE_START) / (SLIDE_END - SLIDE_START), 0.0, 1.0);\n}\n\n// part of its travel done (smootherstep of the time)\nfloat slideAmount(float u) {\n return u * u * u * (u * (u * 6.0 - 15.0) + 10.0);\n}\n\n// acceleration of the travel at p, per progress squared\nfloat slideAccel(float p) {\n float u = slideTime(p);\n float dur = SLIDE_END - SLIDE_START;\n return 60.0 * u * (1.0 - u) * (1.0 - 2.0 * u) / (dur * dur);\n}\n\n// the sideways swing of the prints' bottoms, along the travel: a damped pendulum driven by the\n// line's acceleration, lagging behind it at the start and overshooting at the stop\nfloat swing(float p) {\n const float OMEGA = 10.0; // about 1.6 swings over the transition\n const float DAMP = 0.28;\n const float STEP = 1.0 / float(STEPS);\n float x = 0.0;\n float v = 0.0;\n // fixed steps, the last one cut at p, so that every frame follows the same curve\n for (int i = 0; i < STEPS; i++) {\n float t0 = float(i) * STEP;\n float dt = clamp(p - t0, 0.0, STEP);\n float a = slideAccel(t0 + 0.5 * dt) - OMEGA * OMEGA * x - 2.0 * DAMP * OMEGA * v;\n v += a * dt;\n x += v * dt;\n }\n // it settles as the camera moves back in\n return x * (1.0 - smoothstep(0.7, 1.0, p));\n}\n\n// signed distance to a rounded box of half size b and corner radius r\nfloat roundedBox(vec2 q, vec2 b, float r) {\n vec2 d = abs(q) - b + r;\n return length(max(d, 0.0)) + min(max(d.x, d.y), 0.0) - r;\n}\n\n// the point (u across, v down from the top edge) where the ray o + t d meets the plane of a print\n// hanging from (cx, 0.5, 0) and swung back by psi around its top edge, and t\nvec3 printHit(vec3 o, vec3 d, float cx, float psi) {\n vec3 dn = vec3(0.0, -cos(psi), -sin(psi));\n vec3 n = vec3(0.0, sin(psi), -cos(psi));\n vec3 p0 = vec3(cx, 0.5, 0.0);\n float t = dot(p0 - o, n) / dot(d, n);\n vec3 q = o + d * t - p0;\n return vec3(q.x, dot(q, dn), t);\n}\n\n// the bottom of the print bends sideways by bend frame heights\nfloat bendShift(float v, float bend) {\n float h = clamp(v, 0.0, 1.0);\n return bend * h * (0.6 + 0.4 * h);\n}\n\n// signed distance to the paper (negative inside), in frame heights\nfloat paperDist(vec2 uv, float bend) {\n vec2 q = abs(vec2(uv.x - bendShift(uv.y, bend), uv.y - 0.5)) - vec2(0.5 * ratio, 0.5);\n return length(max(q, 0.0)) + min(max(q.x, q.y), 0.0);\n}\n\n// signed distance to the two clothespins of a print\nfloat pinDist(vec2 uv) {\n vec2 q = vec2(abs(uv.x) - PIN_X * ratio, uv.y - PIN_Y);\n return roundedBox(q, PIN, 0.012);\n}\n\n// the print hanging at cx over col (premultiplied), then its clothespins\nvec4 drawPrint(vec4 col, vec3 h, bool isFrom, float bend, float psi, float aa, float vis) {\n vec2 lp = h.xy;\n float d = paperDist(lp, bend);\n float cov = clamp(0.5 - d / (h.z * aa), 0.0, 1.0);\n if (cov > 0.0) {\n vec2 st = clamp(vec2((lp.x - bendShift(lp.y, bend)) / ratio + 0.5, 1.0 - lp.y), 0.0, 1.0);\n vec4 c = premultiply(isFrom ? getFromColor(st) : getToColor(st));\n // the paper darkens as it swings back and bends, and under the clothespins\n float shade = 1.0 - 1.2 * abs(sin(psi)) * lp.y - 0.35 * abs(bend) * lp.y;\n float ps = pinDist(lp - vec2(0.006, 0.01));\n shade -= 0.35 * vis * (1.0 - smoothstep(-0.004, 0.012, ps));\n c.rgb *= clamp(shade, 0.0, 1.0);\n col = c * cov + col * (1.0 - c.a * cov);\n }\n return col;\n}\n\nvec4 drawPins(vec4 col, vec3 h, float aa, float vis) {\n vec2 lp = h.xy;\n float d = pinDist(lp);\n float cov = vis * clamp(0.5 - d / (h.z * aa), 0.0, 1.0);\n if (cov > 0.0) {\n // rounded wood, with the steel spring across it\n float k = clamp((abs(lp.x) - PIN_X * ratio) / PIN.x, -1.0, 1.0);\n vec3 c = pinColor.rgb * (0.62 + 0.45 * sqrt(1.0 - k * k));\n float y = lp.y - PIN_Y;\n float spring = 1.0 - smoothstep(0.004, 0.007, abs(y + 0.02));\n c = mix(c, vec3(0.3, 0.31, 0.33) * (0.6 + 0.8 * sqrt(1.0 - k * k)), spring);\n // the groove that grips the paper\n c *= 1.0 - 0.3 * (1.0 - smoothstep(0.002, 0.005, abs(y - 0.012)));\n vec4 pc = premultiply(vec4(c, pinColor.a));\n col = pc * cov + col * (1.0 - pc.a * cov);\n }\n return col;\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n float s = direction < 0.0 ? -1.0 : 1.0;\n float sw = clamp(sway, 0.0, 1.0);\n\n // the camera pulls back, then moves back in on the incoming print\n float back = smoothstep(0.0, 0.3, p) * (1.0 - smoothstep(0.6, 1.0, p));\n float zoom = mix(1.0, clamp(size, 0.1, 1.0), back);\n float vis = smoothstep(0.0, 0.35, back);\n vec3 o = vec3(0.0, 0.05 * back, FOCAL / zoom);\n vec3 d = vec3((uv - 0.5) * vec2(ratio, 1.0), -FOCAL);\n float aa = max(AA * min(1.0, 40.0 * back), 1e-6);\n\n // the line carries the prints along\n float u = slideTime(p);\n float m = slideAmount(u);\n float speed = 16.0 * u * u * (1.0 - u) * (1.0 - u);\n float spacing = ratio + GAP;\n float cFrom = -s * spacing * m;\n float cTo = s * spacing * (1.0 - m);\n // the bottoms lag behind and overshoot, and swing back in the wind of the move\n float bend = s * 0.65 * sw * swing(p);\n float psi = 0.45 * sw * speed;\n\n vec3 hf = printHit(o, d, cFrom, psi);\n vec3 ht = printHit(o, d, cTo, psi);\n\n // the wall, seen around the prints (only behind their transparent parts at the ends),\n // with the soft shadows of the prints, the pins and the line\n vec4 col = premultiply(background);\n float cover = max(\n clamp(0.5 - paperDist(hf.xy, bend) / (hf.z * aa), 0.0, 1.0),\n clamp(0.5 - paperDist(ht.xy, bend) / (ht.z * aa), 0.0, 1.0));\n col *= mix(1.0, back, cover);\n if (back > 0.0) {\n vec3 w = o + d * ((o.z + WALL) / FOCAL);\n vec3 sf = printHit(w, LIGHT, cFrom, psi);\n vec3 st = printHit(w, LIGHT, cTo, psi);\n float blur = 0.025;\n float sh = 1.0 - smoothstep(-blur, blur, min(paperDist(sf.xy, bend), paperDist(st.xy, bend)));\n sh = max(sh, 1.0 - smoothstep(-0.012, 0.02, min(pinDist(sf.xy), pinDist(st.xy))));\n float ry = w.y + LIGHT.y * (WALL / LIGHT.z) - (0.5 - 0.012);\n sh = max(sh, 0.8 * (1.0 - smoothstep(0.0, 0.012, abs(ry))));\n // and a soft falloff of the light away from the top left\n float fall = 0.1 * clamp(length(w.xy - vec2(-0.4 * ratio, 0.6)) / (1.2 * ratio + 0.6), 0.0, 1.0);\n col.rgb *= (1.0 - 0.42 * vis * sh) * (1.0 - fall * vis);\n }\n\n col = drawPrint(col, hf, true, bend, psi, aa, vis);\n col = drawPrint(col, ht, false, bend, psi, aa, vis);\n\n // the line, in front of the top of the prints\n if (vis > 0.0) {\n float tl = (o.z - 0.004) / FOCAL;\n float ly = o.y + d.y * tl - (0.5 - 0.012);\n float lc = vis * clamp(0.5 - (abs(ly) - ROPE) / (tl * aa), 0.0, 1.0);\n if (lc > 0.0) {\n float k = clamp(ly / ROPE, -1.0, 1.0);\n // twisted strands, carried along with the line, lit from above\n float lx = o.x + d.x * tl + s * spacing * m;\n float strand = 0.88 + 0.12 * sin((lx + ly * 0.6) * 360.0);\n vec3 c = lineColor.rgb * (0.7 + 0.45 * sqrt(1.0 - k * k) + 0.15 * k) * strand;\n vec4 lcp = premultiply(vec4(c, lineColor.a));\n col = lcp * lc + col * (1.0 - lcp.a * lc);\n }\n col = drawPins(col, hf, aa, vis);\n col = drawPins(col, ht, aa, vis);\n }\n return col.a > 0.0 ? vec4(col.rgb / col.a, col.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The camera pulls back to show the outgoing image as a print hung by two clothespins on a line in front of a wall, the line is pulled sideways and carries it away while the incoming print slides in, both prints swinging and tilting like hanging paper, then the camera moves back in on the incoming print until it fills the frame","tags":["3d","perspective","slide","swing","paper","directional"],"params":{"direction":{"type":"float","default":1,"description":"Way the line is pulled: 1 brings the incoming print in from the right, -1 from the left"},"sway":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the prints swing and tilt as the line moves"},"size":{"type":"float","default":0.72,"min":0.4,"max":0.95,"description":"Size of the prints when the camera is farthest, as a part of the frame"},"background":{"type":"vec4","default":[0.86,0.84,0.8,1],"color":true,"description":"Color of the wall behind the line"},"lineColor":{"type":"vec4","default":[0.42,0.34,0.26,1],"color":true,"description":"Color of the line"},"pinColor":{"type":"vec4","default":[0.84,0.68,0.47,1],"color":true,"description":"Color of the clothespins"}},"textures":[],"createdAt":"Sat, 7 Nov 2026 18:51:16 +0100","updatedAt":"Sat, 7 Nov 2026 18:51:16 +0100"},{"name":"CodeRain","paramsTypes":{"cellSize":"float","trail":"float","tint":"float","glow":"vec4"},"defaultParams":{"cellSize":0.045,"trail":0.5,"tint":0.5,"glow":[0.2,1,0.4,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image darkens into a grid of flickering code characters tinted by its colors, then glowing streams of characters fall down the columns at their own speeds, each with a bright head and a fading tail, leaving the incoming image behind\n// Tags: text, digital, rain, reveal\n\n// @range(0.02, 0.1) Height of a character, in frame heights\nuniform float cellSize; // = 0.045\n// @range(0.05, 1) Average length of the streams' fading tails, in frame heights\nuniform float trail; // = 0.5\n// @range(0, 1) How much the characters of the outgoing image take its colors, instead of the glow color\nuniform float tint; // = 0.5\n// @color Color of the falling streams and their glow\nuniform vec4 glow; // = vec4(0.2, 1.0, 0.4, 1.0)\n\nfloat hash12(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\nvec4 hash42(vec2 p) {\n vec4 p4 = fract(vec4(p.xyxy) * vec4(0.1031, 0.1030, 0.0973, 0.1099));\n p4 += dot(p4, p4.wzxy + 33.33);\n return fract((p4.xxyz + p4.yzzw) * p4.zywx);\n}\n\n// 1 inside a stroke, fading out from 0.3 to 0.6 dot of distance\nvec4 band(vec4 d) {\n return 1.0 - smoothstep(0.3, 0.6, d);\n}\n\n// coverage of the character of this cell at this time, drawn on a 5x7 dot grid in a 6x8 cell\n// (local: 0..1 in the cell, from its top left), made of strokes picked by hashes\nfloat glyph(vec2 cell, float t, vec2 local) {\n vec2 b = local * vec2(6.0, 8.0) - 0.5;\n float x = b.x;\n float y = b.y;\n float d = 0.667 * y;\n // how far outside the spans 0..4, 0..6, 0..3 and 3..6, in dots\n float x04 = abs(x - 2.0) - 2.0;\n float y06 = abs(y - 3.0) - 3.0;\n float y03 = abs(y - 1.5) - 1.5;\n float y36 = abs(y - 4.5) - 1.5;\n vec2 seed = cell + t * vec2(37.0, 61.0);\n // strokes: three bars and a diagonal, the halves of the side verticals,\n // the halves of the middle vertical, the other diagonal and a short bar\n vec4 sa = band(abs(vec4(y, y - 3.0, y - 6.0, x - d))) * band(vec4(x04, x04, x04, y06));\n vec4 sb = band(abs(vec4(x, x, x - 4.0, x - 4.0))) * band(vec4(y03, y36, y03, y36));\n vec4 sc = band(abs(vec4(x - 2.0, x - 2.0, x + d - 4.0, y - 1.0))) * band(vec4(y03, y36, y06, abs(x - 2.0) - 1.0));\n float on = dot(step(0.68, hash42(seed)), sa);\n on += dot(step(0.68, hash42(seed + 41.0)), sb);\n on += dot(step(0.68, hash42(seed + 83.0)), sc);\n return min(on, 1.0);\n}\n\nvec4 transition(vec2 uv) {\n float h = max(cellSize, 0.005);\n vec2 dims = vec2(0.75 * h, h);\n // frame coordinates from the top left, in frame heights\n vec2 fp = vec2(uv.x * ratio, 1.0 - uv.y);\n // (shifted by odd fractions of a cell, so that pixel centers don't fall on its lines at usual sizes)\n vec2 grid = fp / dims + vec2(0.389, 0.278);\n vec2 cell = floor(grid);\n vec2 local = grid - cell;\n float rc = hash12(cell + vec2(97.0, 131.0));\n\n // each column has its own stream: its start, speed and tail length\n float r1 = hash12(vec2(cell.x, 11.0));\n float r2 = hash12(vec2(cell.x, 23.0));\n float r3 = hash12(vec2(cell.x, 37.0));\n float T = mix(progress, progress * progress * (3.0 - 2.0 * progress), 0.5);\n float len = max(trail, 0.01) * (0.5 + r3);\n float u = clamp((T - 0.03 - 0.5 * r1) / (0.3 + 0.12 * r2), 0.0, 1.0);\n // the head falls from above the frame, speeding up a little, until its tail has left the frame\n float head = mix(-0.2, 1.0 + h + len, u * (0.7 + 0.3 * u));\n // how far the head has gone past the cell's top\n float dy = head - (cell.y - 0.278) * h;\n\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n\n // ahead of the stream: the outgoing image darkens into characters tinted by its cell's color,\n // over time and as the head comes near\n vec2 cuv = clamp(vec2((cell.x + 0.111) * dims.x / ratio, 1.0 - (cell.y + 0.222) * h), 0.0, 1.0);\n vec4 ca = getFromColor(cuv);\n float lum = dot(ca.rgb, vec3(0.299, 0.587, 0.114));\n vec3 hue = ca.rgb / max(max(ca.r, max(ca.g, ca.b)), 0.05);\n vec3 ink = mix(glow.rgb * glow.a, hue, tint) * (0.1 + 0.6 * lum);\n float near = smoothstep(-0.15, 0.0, dy);\n float dim = max(smoothstep(0.0, 0.3, T), near);\n float g = max(smoothstep(0.0, 0.2, T - 0.12 * rc), near);\n float passed = step(0.0, dy);\n // the characters change slowly ahead of the stream and fast in it\n float slow = mod(floor(T * 12.0 + rc * 7.0), 32.0);\n float fast = 32.0 + mod(floor(T * 40.0 + rc * 13.0), 32.0);\n float chr = glyph(cell, mix(slow, fast, passed), local);\n vec3 code = a.rgb * (1.0 - 0.8 * dim) + ink * chr * g;\n\n // behind the head: bright characters changing fast, fading along the tail, over a shadow that\n // clears in the tail's last two thirds to leave the incoming image\n float fade = clamp(1.0 - dy / len, 0.0, 1.0);\n float shade = 1.0 - smoothstep(0.3 * len, len, dy);\n float hot = 1.0 - smoothstep(h, 3.0 * h, dy);\n vec3 col = mix(glow.rgb * 1.2, vec3(1.0), 0.8 * hot) * glow.a;\n vec3 stream = b.rgb * (1.0 - 0.8 * shade) + col * chr * (fade * (2.0 - fade) + hot * fade);\n\n // a soft glow around the head, within its column\n float yy = (head - fp.y) / (1.5 * h);\n float halo = 1.6 * u * (1.0 - u) * exp(-yy * yy) * (1.0 - smoothstep(0.25, 0.5, abs(local.x - 0.5)));\n vec3 rgb = mix(code, stream, passed) + glow.rgb * glow.a * halo;\n // the outgoing image's opacity stays under the tail's shadow, then gives way to the incoming one's\n return vec4(clamp(rgb, 0.0, 1.0), mix(a.a, mix(b.a, a.a, shade), passed));\n}\n","author":"gre","license":"MIT","description":"The outgoing image darkens into a grid of flickering code characters tinted by its colors, then glowing streams of characters fall down the columns at their own speeds, each with a bright head and a fading tail, leaving the incoming image behind","tags":["text","digital","rain","reveal"],"params":{"cellSize":{"type":"float","default":0.045,"min":0.02,"max":0.1,"description":"Height of a character, in frame heights"},"trail":{"type":"float","default":0.5,"min":0.05,"max":1,"description":"Average length of the streams' fading tails, in frame heights"},"tint":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the characters of the outgoing image take its colors, instead of the glow color"},"glow":{"type":"vec4","default":[0.2,1,0.4,1],"color":true,"description":"Color of the falling streams and their glow"}},"textures":[],"createdAt":"Mon, 9 Nov 2026 09:04:44 +0100","updatedAt":"Mon, 9 Nov 2026 09:04:44 +0100"},{"name":"ColorCoords","paramsTypes":{},"defaultParams":{},"glsl":"// Author: haiyoucuv\n// License: MIT\n// Description: A crossfade in which the colors of one image displace the other\n// Tags: displace, distort, blend\n\nvec4 transition (vec2 uv) {\n\n vec4 coordTo = getToColor(uv);\n vec4 coordFrom = getFromColor(uv);\n\n return mix(\n getFromColor(mix(uv, coordTo.rg, progress)),\n getToColor(mix(coordFrom.rg, uv, progress)),\n progress\n );\n\n}\n","author":"haiyoucuv","license":"MIT","description":"A crossfade in which the colors of one image displace the other","tags":["displace","distort","blend"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ColorDistance","paramsTypes":{"power":"float"},"defaultParams":{"power":5},"glsl":"// License: MIT\n// Author: P-Seebauer\n// Description: Pixels switch to the incoming image in order of how close their colors are\n// Tags: blend, color\n// ported by gre from https://gist.github.com/P-Seebauer/2a5fa2f77c883dd661f9\n\nuniform float power; // = 5.0\n\nvec4 transition(vec2 p) {\n vec4 fTex = getFromColor(p);\n vec4 tTex = getToColor(p);\n float m = step(distance(fTex, tTex), progress);\n return mix(\n mix(fTex, tTex, m),\n tTex,\n pow(progress, power)\n );\n}\n","author":"P-Seebauer","license":"MIT","description":"Pixels switch to the incoming image in order of how close their colors are","tags":["blend","color"],"params":{"power":{"type":"float","default":5}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ColorPanelWipe","paramsTypes":{"direction":"vec2","panels":"int","color1":"vec4","color2":"vec4","color3":"vec4","stagger":"float","skew":"float"},"defaultParams":{"direction":[1,0],"panels":3,"color1":[0.98,0.76,0.22,1],"color2":[0.93,0.33,0.36,1],"color3":[0.16,0.2,0.42,1],"stagger":0.35,"skew":0.25},"glsl":"// Author: gre\n// License: MIT\n// Description: Solid color panels, slightly staggered, sweep across and cover the frame, then sweep off the far side and reveal the incoming image\n// Tags: wipe, panels, color, slanted, motion-graphics\n\n// @param Direction the panels sweep toward\nuniform vec2 direction; // = vec2(1.0, 0.0)\n// @range(1, 3, 1) Number of panels\nuniform int panels; // = 3\n// @color Color of the first panel\nuniform vec4 color1; // = vec4(0.98, 0.76, 0.22, 1.0)\n// @color Color of the second panel\nuniform vec4 color2; // = vec4(0.93, 0.33, 0.36, 1.0)\n// @color Color of the third panel\nuniform vec4 color3; // = vec4(0.16, 0.2, 0.42, 1.0)\n// @range(0, 1) Delay between the panels, relative to the sweep of one panel (at 0, they move as one and only the last shows)\nuniform float stagger; // = 0.35\n// @range(-1, 1) Slant of the panels' edges\nuniform float skew; // = 0.25\n\n// the frame is fully covered from cut - hold to cut + hold, where the image switches\nconst float cut = 0.46;\nconst float hold = 0.01;\n// half width of the antialiased edges, in frame heights\nconst float aa = 0.0015;\n\n// a short acceleration, a fast sweep, and a long settle\nfloat ease(float t) {\n float s = clamp(t, 0.0, 1.0);\n float u = 1.0 - s * s * (3.0 - 2.0 * s);\n return 1.0 - u * u * u;\n}\n\n// how much of x a panel between the edges back and front covers\nfloat cover(float x, float back, float front) {\n return smoothstep(back - aa, back + aa, x) * (1.0 - smoothstep(front - aa, front + aa, x));\n}\n\nvec4 transition(vec2 uv) {\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n float k = clamp(skew, -1.0, 1.0);\n // position along the sweep, slanted across it, in frame heights across the edges\n vec2 a = (dir + k * vec2(-dir.y, dir.x)) / sqrt(1.0 + k * k);\n float x = dot(p, a);\n // half extent of the frame along x\n float e = 0.5 * (abs(a.x) * ratio + abs(a.y));\n float start = -e - 2.0 * aa;\n float span = 2.0 * (e + 2.0 * aa);\n\n int n = panels < 1 ? 1 : panels > 3 ? 3 : panels;\n float m = float(n - 1);\n float st = clamp(stagger, 0.0, 1.0);\n // durations of a panel's sweep in and out\n vec2 d = vec2(cut - hold, 1.0 - cut - hold) / (1.0 + m * st);\n\n // the first panel enters first and leaves last: the outgoing image is ahead of it, the incoming one behind it\n // (both are sampled, so that no texture read sits in a branch that differs between pixels)\n float front0 = start + span * ease(progress / d.x);\n float back0 = start + span * ease((progress - 1.0 + d.y) / d.y);\n vec4 c = mix(getToColor(uv), getFromColor(uv), step(0.5 * (front0 + back0), x));\n c = mix(c, color1, cover(x, back0, front0));\n\n // each next panel covers the ones before it, enters after them and leaves before them\n for (int i = 1; i < 3; i++) {\n if (i < n) {\n vec2 t = float(i) * st * d;\n float front = start + span * ease((progress - t.x) / d.x);\n float back = start + span * ease((progress - 1.0 + d.y + t.y) / d.y);\n c = mix(c, i == 1 ? color2 : color3, cover(x, back, front));\n }\n }\n return c.a > 0.0 ? c : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Solid color panels, slightly staggered, sweep across and cover the frame, then sweep off the far side and reveal the incoming image","tags":["wipe","panels","color","slanted","motion-graphics"],"params":{"direction":{"type":"vec2","default":[1,0],"description":"Direction the panels sweep toward"},"panels":{"type":"int","default":3,"min":1,"max":3,"step":1,"description":"Number of panels"},"color1":{"type":"vec4","default":[0.98,0.76,0.22,1],"color":true,"description":"Color of the first panel"},"color2":{"type":"vec4","default":[0.93,0.33,0.36,1],"color":true,"description":"Color of the second panel"},"color3":{"type":"vec4","default":[0.16,0.2,0.42,1],"color":true,"description":"Color of the third panel"},"stagger":{"type":"float","default":0.35,"min":0,"max":1,"description":"Delay between the panels, relative to the sweep of one panel (at 0, they move as one and only the last shows)"},"skew":{"type":"float","default":0.25,"min":-1,"max":1,"description":"Slant of the panels' edges"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 08:57:58 +0100","updatedAt":"Wed, 4 Nov 2026 08:57:58 +0100"},{"name":"ColorPhase","paramsTypes":{"fromStep":"vec4","toStep":"vec4"},"defaultParams":{"fromStep":[0,0.2,0.4,0],"toStep":[0.6,0.8,1,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: A crossfade in which each color channel changes at a different time\n// Tags: fade, color\n\n// Usage: fromStep and toStep must be in [0.0, 1.0] range \n// and all(fromStep) must be < all(toStep)\n\n// @range(0, 1) When each channel (r, g, b, a) starts changing\nuniform vec4 fromStep; // = vec4(0.0, 0.2, 0.4, 0.0)\n// @range(0, 1) When each channel (r, g, b, a) finishes changing\nuniform vec4 toStep; // = vec4(0.6, 0.8, 1.0, 1.0)\n\nvec4 transition (vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n return mix(a, b, smoothstep(fromStep, toStep, vec4(progress)));\n}\n","author":"gre","license":"MIT","description":"A crossfade in which each color channel changes at a different time","tags":["fade","color"],"params":{"fromStep":{"type":"vec4","default":[0,0.2,0.4,0],"min":0,"max":1,"description":"When each channel (r, g, b, a) starts changing"},"toStep":{"type":"vec4","default":[0.6,0.8,1,1],"min":0,"max":1,"description":"When each channel (r, g, b, a) finishes changing"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ColorWrap","paramsTypes":{"r_strength":"float","g_strength":"float","b_strength":"float"},"defaultParams":{"r_strength":1,"g_strength":1,"b_strength":1},"glsl":"// Author: Yoni Maltsman @friendlyspinach\n// License: MIT\n// Description: Each color channel of the outgoing image is shifted and wraps around into psychedelic bands, while crossfading to the incoming image\n// Tags: color, glitch, psychedelic, fade\n\n// @range(-2, 2) Shift of the red channel over the transition\nuniform float r_strength; // = 1.0\n// @range(-2, 2) Shift of the green channel over the transition\nuniform float g_strength; // = 1.0\n// @range(-2, 2) Shift of the blue channel over the transition\nuniform float b_strength; // = 1.0\n\nvec4 transition (vec2 uv) {\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n vec3 c = from.rgb + vec3(r_strength, g_strength, b_strength)*progress;\n // The wrap flips bright (or, with negative strengths, dark) channels at once: fade it in over the first frames\n from.rgb = mix(from.rgb, mod(c, 1.0), smoothstep(0.0, 0.1, progress));\n return mix(from, to, progress);\n}\n","author":"Yoni Maltsman @friendlyspinach","license":"MIT","description":"Each color channel of the outgoing image is shifted and wraps around into psychedelic bands, while crossfading to the incoming image","tags":["color","glitch","psychedelic","fade"],"params":{"r_strength":{"type":"float","default":1,"min":-2,"max":2,"description":"Shift of the red channel over the transition"},"g_strength":{"type":"float","default":1,"min":-2,"max":2,"description":"Shift of the green channel over the transition"},"b_strength":{"type":"float","default":1,"min":-2,"max":2,"description":"Shift of the blue channel over the transition"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Comb","paramsTypes":{"strips":"int","vertical":"bool"},"defaultParams":{"strips":10,"vertical":false},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame is cut into interleaved strips that slide in opposite directions, each pushing the outgoing image out and the incoming one in\n// Tags: slide, stripes, push, horizontal\n\n// @range(2, 40, 1) Number of strips\nuniform int strips; // = 10\n// @param Cut the frame into columns that slide up and down instead\nuniform bool vertical; // = false\n\nvec4 transition (vec2 uv) {\n // a: the axis along which the strips slide, b: the axis across them\n float a = vertical ? uv.y : uv.x;\n float b = vertical ? uv.x : uv.y;\n // alternate strips slide in opposite directions\n float dir = mod(floor(b * float(strips)), 2.0) < 0.5 ? 1.0 : -1.0;\n // ease in and out, but keep moving from the first frame\n float t = mix(progress, progress * progress * (3.0 - 2.0 * progress), 0.6);\n float fa = a - dir * t;\n if (fa >= 0.0 && fa <= 1.0) {\n return getFromColor(vertical ? vec2(b, fa) : vec2(fa, b));\n }\n float ta = fa + dir;\n return getToColor(vertical ? vec2(b, ta) : vec2(ta, b));\n}\n","author":"gre","license":"MIT","description":"The frame is cut into interleaved strips that slide in opposite directions, each pushing the outgoing image out and the incoming one in","tags":["slide","stripes","push","horizontal"],"params":{"strips":{"type":"int","default":10,"min":2,"max":40,"step":1,"description":"Number of strips"},"vertical":{"type":"bool","default":false,"description":"Cut the frame into columns that slide up and down instead"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:17:22 +0100","updatedAt":"Sat, 31 Oct 2026 18:17:22 +0100"},{"name":"ComicPanels","paramsTypes":{"gutter":"float","gutterColor":"vec4","borderColor":"vec4","seed":"float"},"defaultParams":{"gutter":0.03,"gutterColor":[1,1,1,1],"borderColor":[0,0,0,1],"seed":0},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame splits into slanted comic-book panels with gutters and ink borders; one after another in reading order, each panel lifts off the page with a zoom kick and a drop shadow and punches over to the incoming image, then the gutters close up over the full incoming image\n// Tags: comic, panels, grid, zoom\n\n// @range(0, 0.1) Width of the gutters between the panels, as a part of the frame's height\nuniform float gutter; // = 0.03\n// @color Color of the gutters and of the page's margin\nuniform vec4 gutterColor; // = vec4(1.0, 1.0, 1.0, 1.0)\n// @color Color of the ink borders around the panels\nuniform vec4 borderColor; // = vec4(0.0, 0.0, 0.0, 1.0)\n// @range(0, 100, 1) Changes the layout of the panels\nuniform float seed; // = 0.0\n\nconst float PI = 3.141592653589793;\n// width of the ink borders, as a part of the frame's height\nconst float INK = 0.005;\n// width of the anti-aliased edges, as a part of the frame's height\nconst float EDGE = 0.0012;\n// part of the transition taken by each panel's punch\nconst float PUNCH = 0.3;\n// the first panel's punch starts at START, the last one ends at END\nconst float START = 0.05;\nconst float END = 0.97;\n// number of spikes of the burst that brings the incoming image into a panel\nconst float SPIKES = 11.0;\n\nfloat hash(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\n// number of panels in row r (0 is the top row)\nfloat cols(float r) {\n float h = hash(vec2(r * 7.0 + 3.0, seed * 1.37 + 11.0));\n float n = h < 0.15 ? 1.0 : (h < 0.6 ? 2.0 : 3.0);\n // the middle row is never a single panel, a narrow frame takes at most 2 panels per row\n if (r == 1.0) n = max(n, 2.0);\n if (ratio < 0.8) n = min(n, 2.0);\n return n;\n}\n\n// signed distance of p (x from 0 to ratio, y from 0 at the top to 1) below the gutter k between the rows\n// (0 is the top of the frame, 3 its bottom)\nfloat rowDist(float k, vec2 p) {\n if (k < 0.5) return p.y;\n if (k > 2.5) return p.y - 1.0;\n float y = (k + (hash(vec2(k * 5.0 + 1.0, seed * 1.37)) - 0.5) * 0.35) / 3.0;\n float s = (hash(vec2(k * 9.0 + 4.0, seed * 1.37 + 5.0)) - 0.5) * 0.24;\n return (p.y - y - s * (p.x / ratio - 0.5)) / sqrt(1.0 + s * s / (ratio * ratio));\n}\n\n// signed distance of p right of the gutter j of row r, which has n panels (0 is the left of the frame, n its right)\nfloat colDist(float r, float j, float n, vec2 p) {\n if (j < 0.5) return p.x;\n if (j > n - 0.5) return p.x - ratio;\n float x = (j + (hash(vec2(r * 3.0 + j * 13.0, seed * 1.37 + 2.0)) - 0.5) * 0.45) / n;\n float s = (hash(vec2(r * 11.0 + j * 5.0, seed * 1.37 + 7.0)) - 0.5) * 0.5;\n return (p.x - ratio * (x + s * (p.y - 0.5))) / sqrt(1.0 + ratio * ratio * s * s);\n}\n\n// signed distance to the edges of panel c of row r, positive inside\nfloat panelDist(float r, float c, float n, vec2 p) {\n return min(min(rowDist(r, p), -rowDist(r + 1.0, p)), min(colDist(r, c, n, p), -colDist(r, c + 1.0, n, p)));\n}\n\n// a point inside panel c of row r, as far from its top as from its bottom and from its left as from its right\nvec2 panelCenter(float r, float c, float n) {\n // the sums of the distances to the opposite edges are linear: find where they are 0\n float y0 = rowDist(r, vec2(0.5 * ratio, 0.0)) + rowDist(r + 1.0, vec2(0.5 * ratio, 0.0));\n float y1 = rowDist(r, vec2(0.5 * ratio, 1.0)) + rowDist(r + 1.0, vec2(0.5 * ratio, 1.0));\n float y = y0 / (y0 - y1);\n float x0 = colDist(r, c, n, vec2(0.0, y)) + colDist(r, c + 1.0, n, vec2(0.0, y));\n float x1 = colDist(r, c, n, vec2(1.0, y)) + colDist(r, c + 1.0, n, vec2(1.0, y));\n return vec2(x0 / (x0 - x1), y);\n}\n\n// the panel's punch, 0 to 1: panel k of the n panels of the page, in reading order\nfloat panelTime(float k, float total) {\n float t0 = START + (END - START - PUNCH) * k / max(total - 1.0, 1.0);\n return clamp((progress - t0) / PUNCH, 0.0, 1.0);\n}\n\n// how high the panel is lifted off the page: a quick rise, a slower settle\nfloat lift(float t) {\n float u = 1.0 - (1.0 - t) * (1.0 - t);\n return sin(PI * u);\n}\n\n// the panel's image at the page point p: the outgoing one until the incoming one bursts out of the panel's center\n// in a jagged star with an ink outline\nvec4 panelImage(vec2 p, vec2 center, float t) {\n float k = lift(t);\n // the image zooms in with the kick, then settles\n vec2 q = center + (p - center) / (1.0 + 0.1 * k);\n vec2 uv = vec2(q.x / ratio, 1.0 - q.y);\n if (t <= 0.0) return getFromColor(uv);\n if (t >= 1.0) return getToColor(uv);\n vec2 v = p - center;\n float a = (atan(v.y, v.x + 1e-6) + PI) / (2.0 * PI) * SPIKES + center.x * 7.0;\n float i = floor(a);\n // the spikes, of uneven lengths\n // (the spike index wraps around so that the star has no seam where the angle wraps)\n float spike = (1.0 - abs(2.0 * (a - i) - 1.0)) * (0.5 + 0.5 * hash(vec2(mod(i, SPIKES), center.y * 13.0 + seed)));\n // large enough to cover the widest panel, a whole row of a wide frame\n float burst = 1.5 * max(1.0, ratio / 1.8) * smoothstep(0.06, 0.42, t);\n float d = length(v) - burst * (0.62 + 0.38 * spike);\n float w = 1.4 * INK;\n vec4 c = mix(getToColor(uv), borderColor, smoothstep(-w - EDGE, -w + EDGE, d));\n return mix(c, getFromColor(uv), smoothstep(-EDGE, EDGE, d));\n}\n\n// the panel drawn over color: its gutter edge at g from its edges, its ink border inside it\nvec4 drawPanel(vec4 color, vec4 img, float d, float g, float ink, float fade) {\n vec4 c = mix(borderColor, img, mix(1.0, smoothstep(g + ink - EDGE, g + ink + EDGE, d), fade));\n return mix(color, c, mix(1.0, smoothstep(g - EDGE, g + EDGE, d), fade));\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n vec2 p = vec2(uv.x * ratio, 1.0 - uv.y);\n\n // the gutters open at the start and close over the incoming image at the end\n float open = smoothstep(0.0, 0.14, progress) * (1.0 - smoothstep(0.8, 1.0, progress));\n float g = 0.5 * gutter * open;\n float ink = INK * open;\n // the edges come in gently instead of popping in at half coverage\n float fade = clamp(open * 6.0, 0.0, 1.0);\n\n float n0 = cols(0.0);\n float n1 = cols(1.0);\n float n2 = cols(2.0);\n float total = n0 + n1 + n2;\n\n // the panel under the point, on the page\n float r = rowDist(1.0, p) < 0.0 ? 0.0 : (rowDist(2.0, p) < 0.0 ? 1.0 : 2.0);\n float n = r == 0.0 ? n0 : (r == 1.0 ? n1 : n2);\n float c = colDist(r, 1.0, n, p) < 0.0 ? 0.0 : (colDist(r, 2.0, n, p) < 0.0 || n < 2.5 ? 1.0 : 2.0);\n c = min(c, n - 1.0);\n float first = r == 0.0 ? 0.0 : (r == 1.0 ? n0 : n0 + n1);\n float t = panelTime(first + c, total);\n\n vec4 color = gutterColor;\n if (t <= 0.0 || t >= 1.0) {\n color = drawPanel(color, panelImage(p, panelCenter(r, c, n), t), panelDist(r, c, n, p), g, ink, fade);\n }\n\n // the panels lifted off the page, the later ones on top: at most 4 of them punch at once\n float spacing = (END - START - PUNCH) / max(total - 1.0, 1.0);\n // (with a margin, so that a panel at the very end of its punch is not missed to rounding)\n float kFirst = floor((progress - START - PUNCH) / spacing - 0.01) + 1.0;\n for (int i = 0; i < 4; i++) {\n float pk = kFirst + float(i);\n if (pk < 0.0 || pk > total - 0.5) continue;\n float pt = panelTime(pk, total);\n if (pt <= 0.0 || pt >= 1.0) continue;\n float pr = pk < n0 ? 0.0 : (pk < n0 + n1 ? 1.0 : 2.0);\n float pn = pr == 0.0 ? n0 : (pr == 1.0 ? n1 : n2);\n float pc = pk - (pr == 0.0 ? 0.0 : (pr == 1.0 ? n0 : n0 + n1));\n float k = lift(pt);\n vec2 center = panelCenter(pr, pc, pn);\n float s = 1.0 + 0.08 * k;\n // its soft shadow on the page, down and to the right\n vec2 sq = center + (p - vec2(0.012, 0.018) * k - center) / s;\n float sd = panelDist(pr, pc, pn, sq) - g;\n color.rgb *= 1.0 - 0.4 * k * fade * smoothstep(-0.02, 0.01, sd);\n vec2 q = center + (p - center) / s;\n color = drawPanel(color, panelImage(q, center, pt), panelDist(pr, pc, pn, q), g, ink, 1.0);\n }\n return color;\n}\n","author":"gre","license":"MIT","description":"The frame splits into slanted comic-book panels with gutters and ink borders; one after another in reading order, each panel lifts off the page with a zoom kick and a drop shadow and punches over to the incoming image, then the gutters close up over the full incoming image","tags":["comic","panels","grid","zoom"],"params":{"gutter":{"type":"float","default":0.03,"min":0,"max":0.1,"description":"Width of the gutters between the panels, as a part of the frame's height"},"gutterColor":{"type":"vec4","default":[1,1,1,1],"color":true,"description":"Color of the gutters and of the page's margin"},"borderColor":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color of the ink borders around the panels"},"seed":{"type":"float","default":0,"min":0,"max":100,"step":1,"description":"Changes the layout of the panels"}},"textures":[],"createdAt":"Sun, 8 Nov 2026 10:39:01 +0100","updatedAt":"Sun, 8 Nov 2026 10:39:01 +0100"},{"name":"CrazyParametricFun","paramsTypes":{"a":"float","b":"float","amplitude":"float","smoothness":"float"},"defaultParams":{"a":4,"b":1,"amplitude":120,"smoothness":0.1},"glsl":"// Author: mandubian\n// License: MIT\n// Description: The outgoing image is pulled along a parametric curve into a psychedelic swirl\n// Tags: distort, psychedelic\n\nuniform float a; // = 4\nuniform float b; // = 1\nuniform float amplitude; // = 120\nuniform float smoothness; // = 0.1\n\nvec4 transition(vec2 uv) {\n vec2 p = uv.xy / vec2(1.0).xy;\n vec2 dir = p - vec2(.5);\n float dist = length(dir);\n float x = (a - b) * cos(progress) + b * cos(progress * ((a / b) - 1.) );\n float y = (a - b) * sin(progress) - b * sin(progress * ((a / b) - 1.));\n vec2 offset = dir * vec2(sin(progress * dist * amplitude * x), sin(progress * dist * amplitude * y)) / smoothness;\n return mix(getFromColor(p + offset), getToColor(p), smoothstep(0.2, 1.0, progress));\n}\n","author":"mandubian","license":"MIT","description":"The outgoing image is pulled along a parametric curve into a psychedelic swirl","tags":["distort","psychedelic"],"params":{"a":{"type":"float","default":4},"b":{"type":"float","default":1},"amplitude":{"type":"float","default":120},"smoothness":{"type":"float","default":0.1}},"textures":[],"createdAt":"Thu, 1 Jun 2017 13:03:12 +0200","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"CrossWarp","paramsTypes":{},"defaultParams":{},"glsl":"// Author: Eke Péter <peterekepeter@gmail.com>\n// License: MIT\n// Description: The outgoing image zooms in while the incoming one zooms out into place, sweeping from right to left\n// Tags: warp, zoom, horizontal\nvec4 transition(vec2 p) {\n float x = progress;\n x=smoothstep(.0,1.0,(x*2.0+p.x-1.0));\n return mix(getFromColor((p-.5)*(1.-x)+.5), getToColor((p-.5)*x+.5), x);\n}\n","author":"Eke Péter <peterekepeter@gmail.com>","license":"MIT","description":"The outgoing image zooms in while the incoming one zooms out into place, sweeping from right to left","tags":["warp","zoom","horizontal"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"CrossZoom","paramsTypes":{"strength":"float"},"defaultParams":{"strength":0.4},"glsl":"// License: MIT\n// Author: rectalogic\n// Description: A crossfade through a strong zoom blur\n// Tags: zoom, blur, blend\n// ported by gre from https://gist.github.com/rectalogic/b86b90161503a0023231\n\n// Converted from https://github.com/rectalogic/rendermix-basic-effects/blob/master/assets/com/rendermix/CrossZoom/CrossZoom.frag\n// Which is based on https://github.com/evanw/glfx.js/blob/master/src/filters/blur/zoomblur.js\n// With additional easing functions from https://github.com/rectalogic/rendermix-basic-effects/blob/master/assets/com/rendermix/Easing/Easing.glsllib\n\n// @range(0, 1) Blur strength\nuniform float strength; // = 0.4\n\nconst float PI = 3.141592653589793;\n\nfloat Linear_ease(in float begin, in float change, in float duration, in float time) {\n return change * time / duration + begin;\n}\n\nfloat Exponential_easeInOut(in float begin, in float change, in float duration, in float time) {\n if (time == 0.0)\n return begin;\n else if (time == duration)\n return begin + change;\n time = time / (duration / 2.0);\n if (time < 1.0)\n return change / 2.0 * pow(2.0, 10.0 * (time - 1.0)) + begin;\n return change / 2.0 * (-pow(2.0, -10.0 * (time - 1.0)) + 2.0) + begin;\n}\n\nfloat Sinusoidal_easeInOut(in float begin, in float change, in float duration, in float time) {\n return -change / 2.0 * (cos(PI * time / duration) - 1.0) + begin;\n}\n\nfloat rand (vec2 co) {\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n\nvec4 crossFade(in vec2 uv, in float dissolve) {\n return mix(getFromColor(uv), getToColor(uv), dissolve);\n}\n\nvec4 transition(vec2 uv) {\n vec2 texCoord = uv.xy / vec2(1.0).xy;\n\n // Linear interpolate center across center half of the image\n vec2 center = vec2(Linear_ease(0.25, 0.5, 1.0, progress), 0.5);\n float dissolve = Exponential_easeInOut(0.0, 1.0, 1.0, progress);\n\n // Mirrored sinusoidal loop. 0->strength then strength->0\n float strength = Sinusoidal_easeInOut(0.0, strength, 0.5, progress);\n\n vec4 color = vec4(0.0);\n float total = 0.0;\n vec2 toCenter = center - texCoord;\n\n /* randomize the lookup values to hide the fixed number of samples */\n float offset = rand(uv);\n\n for (float t = 0.0; t <= 40.0; t++) {\n float percent = (t + offset) / 40.0;\n float weight = 4.0 * (percent - percent * percent);\n color += crossFade(texCoord + toCenter * percent * strength, dissolve) * weight;\n total += weight;\n }\n return color / total;\n}\n","author":"rectalogic","license":"MIT","description":"A crossfade through a strong zoom blur","tags":["zoom","blur","blend"],"params":{"strength":{"type":"float","default":0.4,"min":0,"max":1,"description":"Blur strength"}},"textures":[],"createdAt":"Mon, 12 Jun 2017 12:33:07 +0800","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"Crosshatch","paramsTypes":{"center":"vec2","threshold":"float","fadeEdge":"float"},"defaultParams":{"center":[0.5,0.5],"threshold":3,"fadeEdge":0.1},"glsl":"// License: MIT\n// Author: pthrasher\n// Description: The incoming image appears through a crosshatch of lines spreading from the center\n// Tags: pattern, lines, noise\n// adapted by gre from https://gist.github.com/pthrasher/04fd9a7de4012cbb03f6\n\n// @param Point the lines spread from\nuniform vec2 center; // = vec2(0.5)\nuniform float threshold; // = 3.0\nuniform float fadeEdge; // = 0.1\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\nvec4 transition(vec2 p) {\n float dist = distance(center, p) / threshold;\n float r = progress - min(rand(vec2(p.y, 0.0)), rand(vec2(0.0, p.x)));\n return mix(getFromColor(p), getToColor(p), mix(0.0, mix(step(dist, r), 1.0, smoothstep(1.0-fadeEdge, 1.0, progress)), smoothstep(0.0, fadeEdge, progress))); \n}\n","author":"pthrasher","license":"MIT","description":"The incoming image appears through a crosshatch of lines spreading from the center","tags":["pattern","lines","noise"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Point the lines spread from"},"threshold":{"type":"float","default":3},"fadeEdge":{"type":"float","default":0.1}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Crumple","paramsTypes":{"creases":"int","size":"float","direction":"vec2","paper":"vec4","shadow":"vec4"},"defaultParams":{"creases":16,"size":0.2,"direction":[1,0.4],"paper":[0.96,0.95,0.91,1],"shadow":[0,0,0,0.45]},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image crumples into a creased paper ball, shaded along its folds, which is then tossed away to reveal the incoming image\n// Tags: paper, 3d, shrink, shadow\n\n// @range(1, 32, 1) Number of folds creasing the paper\nuniform int creases; // = 16\n// @range(0.05, 0.4) Radius of the paper ball, relative to the image height\nuniform float size; // = 0.2\n// @param Direction the ball is tossed toward\nuniform vec2 direction; // = vec2(1.0, 0.4)\n// @color Color of the bare paper showing through the ink along the sharpest creases\nuniform vec4 paper; // = vec4(0.96, 0.95, 0.91, 1.0)\n// @color Color of the shadow cast on the incoming image\nuniform vec4 shadow; // = vec4(0.0, 0.0, 0.0, 0.45)\n\nconst float PI = 3.14159265;\n\nvec2 hash2(vec2 p) {\n p = vec2(dot(p, vec2(127.1, 311.7)), dot(p, vec2(269.5, 183.3)));\n return fract(sin(p) * 43758.5453);\n}\n\nmat2 rot(float a) {\n float s = sin(a);\n float c = cos(a);\n return mat2(c, -s, s, c);\n}\n\n// distance from the center to the edge of the frame in the direction a (unit vector)\nfloat frame(vec2 a) {\n return min(0.5 * ratio / max(abs(a.x), 1e-4), 0.5 / max(abs(a.y), 1e-4));\n}\n\n// distance from the center to the edge of the paper in the direction a (unit vector):\n// the frame shrinking and buckling while it crumples (c), turning into a lumpy ball (k)\nfloat outline(vec2 a, float c, float k, float radius) {\n float rect = frame(a);\n float th = atan(a.y, a.x);\n float buckle = 0.03 + 0.05 * abs(sin(4.0 * th + 0.7)) + 0.03 * abs(sin(9.0 * th + 2.0)) + 0.015 * abs(sin(23.0 * th + 1.3));\n // the ball is a polygon with irregular corners\n float i = floor((th / (2.0 * PI) + 0.5) * 9.0);\n float a0 = i * 2.0 * PI / 9.0 - PI;\n float a1 = a0 + 2.0 * PI / 9.0;\n vec2 v0 = vec2(cos(a0), sin(a0)) * (0.78 + 0.27 * hash2(vec2(mod(i, 9.0), 3.0)).x);\n vec2 v1 = vec2(cos(a1), sin(a1)) * (0.78 + 0.27 * hash2(vec2(mod(i + 1.0, 9.0), 3.0)).x);\n vec2 e = v1 - v0;\n float ball = radius * (v0.x * e.y - v0.y * e.x) / (a.x * e.y - a.y * e.x);\n return mix(rect * mix(1.0, 0.75, c) * (1.0 - c * buckle), ball, k);\n}\n\n// n straight creases of random position, orientation and length, in a space where the\n// paper spans about [-span, span]; each one tilts the paper on its two sides (a sharp ridge\n// or valley between flat facets) and swallows a strip of the image. They come one after\n// another as c grows; px is the half width of a crease line, in the units of x.\nvoid fold(vec2 x, float seed, int n, vec2 span, float len, float c, float px, float weight,\n inout vec2 grad, inout vec2 shift, inout float valley, inout float ridge) {\n float tilt = 2.0 / sqrt(float(n));\n for (int i = 0; i < 32; i++) {\n if (i >= n) break;\n float fi = float(i);\n vec2 h = hash2(vec2(fi, seed));\n vec2 g = hash2(vec2(fi, seed + 11.8));\n vec2 o = (h - 0.5) * 2.0 * span;\n vec2 nrm = vec2(cos(2.0 * PI * g.x), sin(2.0 * PI * g.x));\n float d = dot(x - o, nrm);\n float along = dot(x - o, vec2(-nrm.y, nrm.x));\n float l = len * (0.5 + g.y);\n float start = 0.4 * fi / float(n);\n float act = weight * smoothstep(start, start + 0.3, c) * (1.0 - smoothstep(0.5 * l, l, abs(along)));\n float amp = (h.x > 0.5 ? 1.0 : -1.0) * (0.5 + 0.5 * h.y);\n float side = d / (abs(d) + px);\n grad += act * amp * side * nrm * tilt;\n shift += act * 0.03 * side * nrm;\n float line = 1.0 - smoothstep(0.0, 2.0 * px, abs(d));\n if (amp < 0.0) valley += act * line;\n else ridge += act * line * amp;\n }\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress >= 1.0) return b;\n\n // crumpling (c), balling up (k), then tossing (t)\n float c = smoothstep(0.0, 0.6, progress);\n float k = smoothstep(0.1, 0.62, progress);\n float t = smoothstep(0.58, 1.0, progress);\n t *= t;\n\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n float radius = max(size, 0.01) * mix(1.0, 0.6, t);\n // far enough along the direction for the ball and its shadow (offset and blurred by up\n // to about 0.09 each) to leave the frame\n float reach = 0.5 * (abs(dir.x) * ratio + abs(dir.y)) + 1.2 * radius + 0.3;\n float bend = dir.x < 0.0 ? -1.0 : 1.0;\n vec2 center = dir * reach * t + vec2(-dir.y, dir.x) * 0.15 * bend * sin(PI * t);\n float angle = 0.6 * c - 5.0 * bend * t;\n // how high the paper is above the incoming image\n float lift = 0.012 * c + 0.06 * t;\n\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n\n // soft shadow on the incoming image\n vec2 sp = rot(angle) * (p - center - vec2(0.6, -1.0) * lift);\n float sl = length(sp);\n float sd = sl - outline(sl > 1e-5 ? sp / sl : vec2(1.0, 0.0), c, k, radius);\n float blur = 0.005 + 1.2 * lift;\n vec4 col = vec4(mix(b.rgb, shadow.rgb, shadow.a * c * (1.0 - smoothstep(-blur, blur, sd))), b.a);\n\n vec2 q = rot(angle) * (p - center);\n float l = length(q);\n vec2 dq = l > 1e-5 ? q / l : vec2(1.0, 0.0);\n float edge = outline(dq, c, k, radius);\n // the edge (about a pixel at 300 px high) is antialiased only once the sheet has left the\n // borders of the frame\n float aa = 0.003 * smoothstep(0.0, 0.1, progress) + 1e-5;\n float inside = 1.0 - smoothstep(-aa, aa, l - edge);\n if (inside <= 0.0) return col;\n\n // back onto the flat sheet: the outline is mapped onto the frame, the middle of the ball\n // holds more of it, as if the edges were tucked under\n float r = l / edge;\n float rect = frame(dq);\n vec2 s = dq * rect * mix(r, r * (0.6 + 0.4 * r), k);\n\n // the creases of the sheet, then those of the ball, that crumpling adds over them\n int count = creases < 1 ? 1 : creases;\n vec2 grad = vec2(0.0);\n vec2 shift = vec2(0.0);\n float valley = 0.0;\n float ridge = 0.0;\n fold(s, 7.3, count, 0.45 * vec2(ratio, 1.0), 0.6, c, 0.003 * rect / edge, 1.0 - 0.8 * k, grad, shift, valley, ridge);\n vec2 g2 = vec2(0.0);\n vec2 s2 = vec2(0.0);\n float v2 = 0.0;\n float r2 = 0.0;\n fold(q / radius, 2.9, count, vec2(0.7), 8.0, k, 0.003 / radius, k, g2, s2, v2, r2);\n grad += g2 * 0.8;\n vec2 piece = s + shift + s2 * 3.0;\n\n // the facets over the volume of the ball, lit from the top left (the light does not turn\n // with the ball)\n float rr = clamp(l / (radius * 1.1), 0.0, 1.0);\n vec3 sphere = vec3(q / (radius * 1.1) * k * 0.8, sqrt(1.0 - 0.64 * rr * rr * k));\n vec3 n = normalize(sphere + vec3(grad, 0.0));\n n.xy = rot(-angle) * n.xy;\n vec3 light = normalize(vec3(-0.5, 0.6, 0.8));\n float diffuse = max(dot(n, light), 0.0);\n vec3 hv = normalize(light + vec3(0.0, 0.0, 1.0));\n // only what facets add over the flat sheet\n float spec = max(pow(max(dot(n, hv), 0.0), 20.0) - pow(hv.z, 20.0), 0.0);\n float level = light.z;\n float relief = min(2.0 * c, 1.0);\n float shade = 1.0 + relief * ((0.12 + diffuse) / (0.12 + level) - 1.0) + 0.7 * spec * relief;\n shade -= 0.2 * relief * min(valley, 1.0);\n // occlusion toward the rim of the ball\n shade *= 1.0 - 0.3 * k * smoothstep(0.6, 1.0, r);\n\n // the edges of the sheet that the folds pull in are mirrored, as if folded back\n vec2 f = piece / vec2(ratio, 1.0) + 0.5;\n vec4 img = getFromColor(1.0 - abs(1.0 - mod(f, 2.0)));\n // the ink cracks along the ridges\n img.rgb = mix(img.rgb, paper.rgb, 0.6 * min(ridge, 1.0) * paper.a * c);\n vec4 ball = vec4(img.rgb * shade, img.a);\n\n // mixed premultiplied, so transparent images do not bleed their color\n float m = inside * ball.a;\n vec4 o = vec4(mix(col.rgb * col.a, ball.rgb, m), mix(col.a, 1.0, m));\n return o.a > 0.0 ? vec4(o.rgb / o.a, o.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The outgoing image crumples into a creased paper ball, shaded along its folds, which is then tossed away to reveal the incoming image","tags":["paper","3d","shrink","shadow"],"params":{"creases":{"type":"int","default":16,"min":1,"max":32,"step":1,"description":"Number of folds creasing the paper"},"size":{"type":"float","default":0.2,"min":0.05,"max":0.4,"description":"Radius of the paper ball, relative to the image height"},"direction":{"type":"vec2","default":[1,0.4],"description":"Direction the ball is tossed toward"},"paper":{"type":"vec4","default":[0.96,0.95,0.91,1],"color":true,"description":"Color of the bare paper showing through the ink along the sharpest creases"},"shadow":{"type":"vec4","default":[0,0,0,0.45],"color":true,"description":"Color of the shadow cast on the incoming image"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:12:49 +0100","updatedAt":"Wed, 4 Nov 2026 20:12:49 +0100"},{"name":"Cube","paramsTypes":{"persp":"float","unzoom":"float","reflection":"float","floating":"float","shading":"float"},"defaultParams":{"persp":0.7,"unzoom":0.3,"reflection":0.4,"floating":3,"shading":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The two images are faces of a box that turns a quarter turn in perspective, the outgoing face darkening as it turns away, above a reflective floor\n// Tags: 3d, cube, rotate, reflection\n// @range(0, 1) Amount of perspective\nuniform float persp; // = 0.7\n// @range(0, 1) How far the camera pulls back mid-turn, as a part of the frame\nuniform float unzoom; // = 0.3\n// @range(0, 1) Strength of the reflection\nuniform float reflection; // = 0.4\n// @range(0, 20) Gap between the box and its reflection, as a percentage of the frame height\nuniform float floating; // = 3.0\n// @range(0, 1) How much the faces darken as they turn away, and the shadow on the floor\nuniform float shading; // = 0.5\n\nconst float PI = 3.141592653589793;\n// width of the anti-aliased edges, as a part of the frame's height at the box's front\nconst float EDGE = 0.002;\n\n// the ray (eye, dir) in the box's frame, the box turned by (c, s) around its vertical axis:\n// returns (distance along the ray, horizontal position on the face, height, face) with face 0 for\n// the outgoing image's face, 1 for the incoming one's, and a negative distance where it misses\nvec4 hitBox(vec3 eye, vec3 dir, float w, float c, float s) {\n vec2 pivot = vec2(0.5 * w);\n vec2 e = eye.xz - pivot;\n vec2 o = vec2(e.x * c + e.y * s, -e.x * s + e.y * c) + pivot;\n vec2 d = vec2(dir.x * c + dir.z * s, -dir.x * s + dir.z * c);\n // the side faces seen from outside: the box spans [0, w] on x and z\n vec2 inv = 1.0 / vec2(d.x < 0.0 ? min(d.x, -1e-6) : max(d.x, 1e-6), d.y < 0.0 ? min(d.y, -1e-6) : max(d.y, 1e-6));\n vec2 t0 = (vec2(0.0) - o) * inv;\n vec2 t1 = (vec2(w) - o) * inv;\n vec2 tn = min(t0, t1);\n vec2 tf = max(t0, t1);\n float tin = max(tn.x, tn.y);\n if (tin <= 0.0 || tin > min(tf.x, tf.y)) return vec4(-1.0);\n vec2 hit = o + tin * d;\n float y = eye.y + tin * dir.y;\n if (y < 0.0 || y > 1.0) return vec4(-1.0);\n // the face first entered: z = 0 is the outgoing face, x = 0 the incoming one, the others are hidden\n if (tn.y >= tn.x) {\n if (d.y <= 0.0) return vec4(-1.0);\n return vec4(tin, hit.x / w, y, 0.0);\n }\n if (d.x <= 0.0) return vec4(-1.0);\n return vec4(tin, 1.0 - hit.y / w, y, 1.0);\n}\n\nvec4 transition(vec2 uv) {\n float w = ratio;\n // the turn starts and ends softly\n float turn = progress * progress * (3.0 - 2.0 * progress);\n float a = 0.5 * PI * turn;\n float c = cos(a), s = sin(a);\n if (progress >= 1.0) { c = 0.0; s = 1.0; }\n // 0 at both ends, for exact images and hard edges there\n float motion = sin(PI * clamp(progress, 0.0, 1.0));\n float zoom = 1.0 + max(unzoom, 0.0) * motion;\n\n // the front of the box is the screen: the camera keeps it framed, pulling back mid-turn\n float dist = 0.8 * max(w, 1.0) / clamp(persp, 0.01, 1.0);\n vec3 eye = vec3(0.5 * w, 0.5, -dist);\n vec2 sp = (uv - 0.5) * zoom + 0.5;\n vec3 dir = vec3(sp.x * w, sp.y, 0.0) - eye;\n\n // pixel footprint on the screen plane, for the anti-aliased edges\n float px = EDGE * zoom * min(10.0 * motion, 1.0);\n float shade0 = 1.0 - shading * (1.0 - c);\n float shade1 = 1.0 - shading * (1.0 - s);\n\n // the box in front, premultiplied\n vec4 front = vec4(0.0);\n vec4 b = hitBox(eye, dir, w, c, s);\n if (b.x > 0.0) {\n vec4 img = b.w < 0.5 ? getFromColor(vec2(b.y, b.z)) : getToColor(vec2(b.y, b.z));\n float m = 1.0;\n if (px > 0.0) {\n // the silhouette: top, bottom and the outer vertical edge of the face, seen foreshortened\n float e = px * b.x;\n vec3 n = b.w < 0.5 ? vec3(s, 0.0, -c) : vec3(-c, 0.0, -s);\n float fore = max(abs(dot(n, normalize(dir))), 0.05);\n float edge = b.w < 0.5 ? 1.0 - b.y : b.y;\n m = clamp(min(b.z, 1.0 - b.z) / e, 0.0, 1.0)\n * clamp(edge * w * fore / e, 0.0, 1.0);\n }\n // where the box covers the pixel, nothing behind it shows: the exact image at both ends\n if (m >= 1.0 && img.a >= 1.0) {\n return vec4(img.rgb * (b.w < 0.5 ? shade0 : shade1), img.a);\n }\n front = vec4(img.rgb * (b.w < 0.5 ? shade0 : shade1) * img.a, img.a) * m;\n }\n\n // the floor, h below the box, premultiplied; it fades in and out with the motion\n vec4 ground = vec4(0.0);\n float h = 0.005 * max(floating, 0.0);\n if (dir.y < 0.0 && motion > 0.0) {\n float tf = -(eye.y + h) / dir.y;\n vec3 f = eye + tf * dir;\n // the reflection: the same ray mirrored by the floor, fading with the height on the box\n vec3 meye = vec3(eye.x, -2.0 * h - eye.y, eye.z);\n vec3 mdir = vec3(dir.x, -dir.y, dir.z);\n vec4 r = hitBox(meye, mdir, w, c, s);\n if (r.x > 0.0) {\n vec4 img = r.w < 0.5 ? getFromColor(vec2(r.y, r.z)) : getToColor(vec2(r.y, r.z));\n float k = clamp(reflection, 0.0, 1.0) * (1.0 - r.z) * (1.0 - r.z);\n ground = vec4(img.rgb * (r.w < 0.5 ? shade0 : shade1) * img.a, img.a) * k;\n }\n // the contact shadow around the box, softer as it floats higher\n vec2 q = f.xz - vec2(0.5 * w);\n vec2 l = vec2(q.x * c + q.y * s, -q.x * s + q.y * c);\n float soft = 0.03 + 1.5 * h;\n float sh = shading * 0.7 * exp(-length(max(abs(l) - vec2(0.5 * w), 0.0)) / soft);\n // only as opaque as the bottom of the nearest face\n vec2 bl = l + vec2(0.5 * w);\n sh *= l.y < l.x\n ? getFromColor(vec2(clamp(bl.x / w, 0.0, 1.0), 0.0)).a\n : getToColor(vec2(clamp(1.0 - bl.y / w, 0.0, 1.0), 0.0)).a;\n ground = ground * (1.0 - sh) + vec4(0.0, 0.0, 0.0, sh);\n ground *= min(6.0 * motion, 1.0);\n }\n\n vec4 color = front + ground * (1.0 - front.a);\n return color.a > 0.0 ? vec4(color.rgb / color.a, color.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The two images are faces of a box that turns a quarter turn in perspective, the outgoing face darkening as it turns away, above a reflective floor","tags":["3d","cube","rotate","reflection"],"params":{"persp":{"type":"float","default":0.7,"min":0,"max":1,"description":"Amount of perspective"},"unzoom":{"type":"float","default":0.3,"min":0,"max":1,"description":"How far the camera pulls back mid-turn, as a part of the frame"},"reflection":{"type":"float","default":0.4,"min":0,"max":1,"description":"Strength of the reflection"},"floating":{"type":"float","default":3,"min":0,"max":20,"description":"Gap between the box and its reflection, as a percentage of the frame height"},"shading":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the faces darken as they turn away, and the shadow on the floor"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 8 Nov 2026 17:39:40 +0100"},{"name":"CurtainRise","paramsTypes":{"swags":"float","sag":"float","ruffles":"float","shading":"float"},"defaultParams":{"swags":3,"sag":0.14,"ruffles":14,"shading":0.7},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image rises like a theater festoon curtain: cords lift its hem into scalloped swags while the fabric gathers into shaded ruffles, and it is drawn up out of the frame over the incoming image\n// Tags: 3d, fold, vertical\n\n// @range(1, 8, 1) Number of swags across a 16:9 frame (fewer in a portrait image)\nuniform float swags; // = 3.0\n// @range(0, 0.3) How low each swag droops between two cords, as a part of the frame's height\nuniform float sag; // = 0.14\n// @range(4, 30, 1) Number of gathered ruffles in the fabric\nuniform float ruffles; // = 14.0\n// @range(0, 1) Depth of the shading on the ruffles and swags, and of the shadow under the hem\nuniform float shading; // = 0.7\n\nconst float PI = 3.141592653589793;\n\nvec4 transition (vec2 uv) {\n float p = progress;\n // the fabric gathers early, then the cords pull it up\n float f = 1.0 - (1.0 - p) * (1.0 - p) * (1.0 - p);\n // the cords start pulling at once and are fastest midway\n float e = mix(p, p * p * (3.0 - 2.0 * p), 0.4);\n float s = sag * f;\n float lift = mix(-0.01, 1.0 + sag + 0.08, e);\n // across a swag, -1 and 1 at the cords\n float n = max(1.0, floor(swags * sqrt(ratio / 1.78) + 0.5)); // fewer swags in portrait\n float u = fract(uv.x * n) * 2.0 - 1.0;\n float bump = 1.0 - u * u;\n float hem = lift - s * bump;\n float aa = 0.002 + 0.004 * f;\n float inside = smoothstep(hem - aa, hem + aa, uv.y);\n\n vec4 c = vec4(0.0);\n if (inside > 0.0) {\n // q goes from 0 at the top rod to 1 at the hem; the whole height of fabric is gathered into it\n float h = max(1.0 - max(hem, 0.0), 1e-4);\n float q = clamp((1.0 - uv.y) / h, 0.0, 1.0);\n // ruffles: the fabric bunches where cos(a) > 0, rows parallel to the scalloped hem\n // as the curtain shortens, its ruffles merge so none gets thinner than 2% of the frame\n float m = min(max(1.0, floor(ruffles + 0.5)), h / 0.02);\n float a = 2.0 * PI * m * q;\n // the ruffles puff out most in the middle of each swag\n float g = 0.85 * f * min(1.0, 0.3 + 5.0 * (1.0 - h)) * (0.6 + 0.4 * bump);\n float v = clamp(q + g * sin(a) / (2.0 * PI * m), 0.0, 1.0);\n // the fabric is also pulled in toward the cords near the hem\n float pull = 0.25 * f * q * q * sin(PI * u) / (PI * n);\n c = getFromColor(vec2(uv.x - pull, 1.0 - v));\n\n // light from the front and a bit above\n float slope = 2.5 * g * cos(a);\n float diffuse = (1.0 - 0.35 * slope) / sqrt(1.0 + slope * slope);\n float crease = 0.5 + 0.5 * sin(a);\n float light = mix(1.0, diffuse * (1.0 - 0.45 * crease * crease), shading * g);\n // a soft sheen on the crest of each ruffle\n light += 0.18 * shading * g * smoothstep(0.4, 1.0, -cos(a));\n // each swag bulges toward the light in its middle and is pinched dark along the cords\n float depth = f * q * (0.3 + 0.7 * q);\n light *= 1.0 - shading * depth * (0.35 * u * u + 0.5 * exp(-(1.0 - abs(u)) * 14.0));\n // the hem rolls under a little\n light *= 1.0 - 0.35 * shading * f * exp(-(uv.y - hem) * 120.0);\n c.rgb *= light;\n if (inside >= 1.0) return c;\n }\n vec4 to = getToColor(uv);\n // soft shadow of the curtain just under its hem\n float below = max(hem - uv.y, 0.0);\n float shadow = 0.6 * shading * exp(-below * 22.0) * smoothstep(0.0, 0.05, lift) * (1.0 - smoothstep(1.0, 1.06, lift - s));\n to.rgb *= 1.0 - shadow;\n return mix(to, c, inside);\n}\n","author":"gre","license":"MIT","description":"The outgoing image rises like a theater festoon curtain: cords lift its hem into scalloped swags while the fabric gathers into shaded ruffles, and it is drawn up out of the frame over the incoming image","tags":["3d","fold","vertical"],"params":{"swags":{"type":"float","default":3,"min":1,"max":8,"step":1,"description":"Number of swags across a 16:9 frame (fewer in a portrait image)"},"sag":{"type":"float","default":0.14,"min":0,"max":0.3,"description":"How low each swag droops between two cords, as a part of the frame's height"},"ruffles":{"type":"float","default":14,"min":4,"max":30,"step":1,"description":"Number of gathered ruffles in the fabric"},"shading":{"type":"float","default":0.7,"min":0,"max":1,"description":"Depth of the shading on the ruffles and swags, and of the shadow under the hem"}},"textures":[],"createdAt":"Mon, 9 Nov 2026 09:04:22 +0100","updatedAt":"Mon, 9 Nov 2026 09:04:22 +0100"},{"name":"Curtains","paramsTypes":{"folds":"float","shading":"float","bunch":"float","sway":"float"},"defaultParams":{"folds":7,"shading":0.7,"bunch":0.12,"sway":0.4},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image parts in the middle like stage curtains, gathering into shaded folds as it is pulled to the sides\n// Tags: split, horizontal, fold, 3d\n\n// @range(1, 16, 1) Number of folds in each curtain (fewer in a portrait image)\nuniform float folds; // = 7.0\n// @range(0, 1) Depth of the shading on the folds\nuniform float shading; // = 0.7\n// @range(0, 0.4) Width of each curtain once gathered, relative to the image width\nuniform float bunch; // = 0.12\n// @range(0, 1) How much the bottom of the curtains lags behind the top\nuniform float sway; // = 0.4\n\nconst float PI = 3.141592653589793;\n\nvec4 transition (vec2 uv) {\n // the bottom of the fabric follows the top with a little delay\n float lag = sway * (1.0 - uv.y);\n float p = progress * (1.0 - lag * (1.0 - progress));\n float open = mix(p, p * p * (3.0 - 2.0 * p), 0.75);\n // each curtain hangs from its outer edge, gathers to the bunch width, then leaves the frame\n float edge = -bunch * open * open;\n float w = mix(0.5, bunch, open);\n float x = min(uv.x, 1.0 - uv.x) - edge; // distance to the outer edge of the curtain\n if (x >= w) {\n // soft shadow of the curtain on the stage, fading as the curtain leaves the frame\n vec4 to = getToColor(uv);\n float shadow = 0.4 * exp((w - x) * 25.0) * clamp((edge + w) * 20.0, 0.0, 1.0);\n return vec4(to.rgb * (1.0 - shadow * open), to.a);\n }\n float t = x / w;\n // pleats: the fabric bunches up where cos(a) > 0 and is stretched elsewhere\n float n = max(1.0, floor(folds * min(ratio, 1.0) + 0.5)); // folds keep their size in portrait\n float a = 2.0 * PI * n * t;\n float f = 1.0 - (1.0 - open) * (1.0 - open) * (1.0 - open); // the folds form early\n float gather = 0.92 * f;\n float s = 0.5 * (t + gather * sin(a) / (2.0 * PI * n)); // position in the fabric\n vec4 c = getFromColor(vec2(uv.x < 0.5 ? s : 1.0 - s, uv.y));\n // light comes from the front, a bit from the middle of the stage\n float slope = 3.0 * gather * cos(a) * (uv.x < 0.5 ? 1.0 : -1.0);\n float diffuse = (1.0 + 0.5 * slope) / sqrt(1.25 * (1.0 + slope * slope));\n float crease = 0.5 + 0.5 * sin(a); // the back of each pleat is in the dark\n float light = mix(1.0, diffuse * (1.0 - 0.6 * crease * crease), shading * f);\n return vec4(c.rgb * light, c.a);\n}\n","author":"gre","license":"MIT","description":"The outgoing image parts in the middle like stage curtains, gathering into shaded folds as it is pulled to the sides","tags":["split","horizontal","fold","3d"],"params":{"folds":{"type":"float","default":7,"min":1,"max":16,"step":1,"description":"Number of folds in each curtain (fewer in a portrait image)"},"shading":{"type":"float","default":0.7,"min":0,"max":1,"description":"Depth of the shading on the folds"},"bunch":{"type":"float","default":0.12,"min":0,"max":0.4,"description":"Width of each curtain once gathered, relative to the image width"},"sway":{"type":"float","default":0.4,"min":0,"max":1,"description":"How much the bottom of the curtains lags behind the top"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:18:48 +0100","updatedAt":"Sat, 31 Oct 2026 18:18:48 +0100"},{"name":"CurvedWipe","paramsTypes":{"direction":"vec2","curvature":"float","smoothness":"float","shadow":"vec4"},"defaultParams":{"direction":[0,1],"curvature":0.6,"smoothness":0.02,"shadow":[0,0,0,0.4]},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image is pulled away by its middle: the wipe edge bulges into a smooth curve that leads the way, then flattens as it reaches the far side\n// Tags: wipe, curve, directional, shadow\n\n// @param Direction the edge moves toward\nuniform vec2 direction; // = vec2(0.0, 1.0)\n// @range(0, 1) How far the middle of the edge leads its sides\nuniform float curvature; // = 0.6\n// @range(0, 0.2) Softness of the edge\nuniform float smoothness; // = 0.02\n// @color Color of the soft shadow the lifted edge casts on the incoming image (its alpha is its strength; 0 for none)\nuniform vec4 shadow; // = vec4(0.0, 0.0, 0.0, 0.4)\n\nconst float PI = 3.141592653589793;\n\n// a gentle ease in and out, which does not linger at the ends\nfloat ease (float t) {\n return 0.5 * (t + t * t * (3.0 - 2.0 * t));\n}\n\nvec4 transition (vec2 uv) {\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(0.0, 1.0);\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n // half extents of the frame along the direction and across it\n float e = 0.5 * (abs(dir.x) * ratio + abs(dir.y));\n float w = 0.5 * (abs(dir.y) * ratio + abs(dir.x));\n vec2 across = vec2(-dir.y, dir.x);\n float d = dot(p, dir);\n // where the pixel is across the frame, from -1 to 1 (on a diagonal, these are the corners); it is the same\n // all along the direction, so the edge is a single curve, centered on the middle of the frame\n float x = clamp(dot(p, across) / w, -1.0, 1.0);\n float s = max(smoothness, 0.001);\n // each point of the edge runs on its own clock: the middle runs ahead and slows down at the far side,\n // where the sides catch up with it; the lead keeps the curve's shape alike on wide and narrow frames\n float k = clamp(curvature, 0.0, 1.0) * min(1.0, w / e) * (1.0 - x * x);\n float t = progress + k * progress * (1.0 - progress);\n float travel = 2.0 * (e + s);\n float edge = -e - s + travel * ease(t);\n float side = -e - s + travel * ease(progress);\n float m = 1.0 - smoothstep(-s, s, d - edge);\n // the more the edge is lifted, the wider and softer the shadow it casts on the incoming image\n float lift = edge - side;\n float spread = 0.012 + 0.25 * lift;\n // it falls behind the edge only, on the incoming image, cast by the outgoing image at the edge\n vec4 to = getToColor(uv);\n vec2 caster = clamp((p + (edge - d) * dir) / vec2(ratio, 1.0) + 0.5, 0.0, 1.0);\n float sh = shadow.a * sin(PI * progress) * exp(-max(edge - d, 0.0) / spread) * m * getFromColor(caster).a * to.a;\n to.rgb = mix(to.rgb, shadow.rgb, sh);\n return mix(getFromColor(uv), to, m);\n}\n","author":"gre","license":"MIT","description":"The outgoing image is pulled away by its middle: the wipe edge bulges into a smooth curve that leads the way, then flattens as it reaches the far side","tags":["wipe","curve","directional","shadow"],"params":{"direction":{"type":"vec2","default":[0,1],"description":"Direction the edge moves toward"},"curvature":{"type":"float","default":0.6,"min":0,"max":1,"description":"How far the middle of the edge leads its sides"},"smoothness":{"type":"float","default":0.02,"min":0,"max":0.2,"description":"Softness of the edge"},"shadow":{"type":"vec4","default":[0,0,0,0.4],"color":true,"description":"Color of the soft shadow the lifted edge casts on the incoming image (its alpha is its strength; 0 for none)"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 09:49:41 +0100","updatedAt":"Mon, 2 Nov 2026 09:49:41 +0100"},{"name":"CylinderRoll","paramsTypes":{"curvature":"float","blur":"float","shading":"float","chroma":"float","downward":"bool"},"defaultParams":{"curvature":0.8,"blur":0.5,"shading":0.6,"chroma":0.5,"downward":false},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame wraps around a drum that rolls up, the outgoing image turning away over its top in a motion blur and the incoming one coming around from below and unrolling flat\n// Tags: 3d, roll, motion-blur, vertical, chromatic\n\n// @range(0, 1) How much the frame wraps around the drum\nuniform float curvature; // = 0.8\n// @range(0, 1) Length of the motion blur at full speed\nuniform float blur; // = 0.5\n// @range(0, 1) How much the drum darkens as it turns away\nuniform float shading; // = 0.6\n// @range(0, 1) Amount of RGB split along the roll, growing with speed\nuniform float chroma; // = 0.5\n// @param Roll downward instead, the incoming image coming around from above\nuniform bool downward; // = false\n\nconst int SAMPLES = 24;\n// the half angle of the drum seen in the frame height, at full curvature\nconst float MAX_ANGLE = 1.1;\n// distance from the camera to the drum's axis, in drum radii\nconst float DIST = 2.6;\n// how much the horizontal lines arc away from the middle, per frame height squared\nconst float ARC = 0.12;\n\nfloat hash(vec2 c) {\n vec2 q = fract(c * vec2(0.1031, 0.1030));\n q += dot(q, q.yx + 33.33);\n return fract((q.x + q.y) * q.x);\n}\n\n// mirrored coordinate, folded back into 0..1\nfloat fold(float v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// the strip around the drum: the outgoing image, with the incoming one below it (or above)\nvec4 strip(float x, float v) {\n if (downward ? v > 1.0 : v < 0.0) {\n return getToColor(vec2(x, fold(downward ? v - 1.0 : v + 1.0)));\n }\n return getFromColor(vec2(x, fold(v)));\n}\n\n// angle on the drum seen at the projected height c (the drum has a radius of 1)\nfloat angleAt(float c) {\n c = clamp(c, -0.98 / sqrt(DIST * DIST - 1.0), 0.98 / sqrt(DIST * DIST - 1.0));\n return asin(c * DIST / sqrt(1.0 + c * c)) - atan(c);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n // ease in, roll fast in the middle, ease out\n float h = 1.0 - abs(2.0 * p - 1.0); // 0 at both ends, 1 in the middle\n float e = 0.5 * h * (0.1 + 0.9 * h * h);\n float roll = p < 0.5 ? e : 1.0 - e;\n // the blur and the RGB split stay low until the peak of the roll\n float h3 = h * h * h;\n float peak = h3 * h3;\n\n // the frame wraps around the drum early, and unwraps to flat sooner as the incoming image settles\n float bend = curvature * (p < 0.5 ? h * (2.0 - h) : h * h * (3.0 - 2.0 * h));\n float phi = MAX_ANGLE * bend + 1e-4;\n float arcK = ARC * bend;\n // the height of the frame's edge, projected with perspective\n float edgeY = sin(phi) / (DIST - cos(phi));\n\n vec2 n = 2.0 * uv - 1.0;\n // the horizontal lines arc away from the middle, toward the left and right edges\n float xr = n.x * ratio;\n float yn = n.y * (1.0 + arcK * xr * xr);\n float theta = angleAt(yn * edgeY);\n // nearer parts of the drum look wider: the drum is made wide enough to fill the frame's corners\n float thetaCorner = angleAt((1.0 + arcK * ratio * ratio) * edgeY);\n float width = (DIST - 1.0) / (DIST - cos(theta));\n float zoom = (DIST - cos(thetaCorner)) / (DIST - 1.0);\n float x = 0.5 + 0.5 * n.x / (zoom * width);\n // lit from the camera: darker as the surface turns away\n float facing = (DIST * cos(theta) - 1.0)\n / sqrt(1.0 + DIST * DIST - 2.0 * DIST * cos(theta)) ;\n float light = mix(1.0, clamp(facing, 0.0, 1.0), shading);\n\n // position on the strip (the frame height when flat), rolling the outgoing image away\n float v = 0.5 * (theta / phi + 1.0) + (downward ? roll : -roll);\n float len = 0.5 * blur * peak;\n float split = chroma * peak;\n float jitter = hash(uv * 1000.0);\n vec3 color = vec3(0.0);\n vec3 weight = vec3(0.0);\n float alpha = 0.0;\n for (int i = 0; i < SAMPLES; i++) {\n float t = (float(i) + jitter) / float(SAMPLES) - 0.5;\n vec4 img = strip(x, v + t * len);\n // the channels weigh the samples differently along the roll: an RGB split\n vec3 w = vec3(max(1.0 - 4.0 * split * t, 0.0), 1.0, max(1.0 + 4.0 * split * t, 0.0));\n color += img.rgb * img.a * w;\n weight += img.a * w;\n alpha += img.a;\n }\n color = color / max(weight, vec3(1e-5));\n return vec4(color * light, alpha / float(SAMPLES));\n}\n","author":"gre","license":"MIT","description":"The frame wraps around a drum that rolls up, the outgoing image turning away over its top in a motion blur and the incoming one coming around from below and unrolling flat","tags":["3d","roll","motion-blur","vertical","chromatic"],"params":{"curvature":{"type":"float","default":0.8,"min":0,"max":1,"description":"How much the frame wraps around the drum"},"blur":{"type":"float","default":0.5,"min":0,"max":1,"description":"Length of the motion blur at full speed"},"shading":{"type":"float","default":0.6,"min":0,"max":1,"description":"How much the drum darkens as it turns away"},"chroma":{"type":"float","default":0.5,"min":0,"max":1,"description":"Amount of RGB split along the roll, growing with speed"},"downward":{"type":"bool","default":false,"description":"Roll downward instead, the incoming image coming around from above"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 23:20:50 +0100","updatedAt":"Sat, 31 Oct 2026 23:20:50 +0100"},{"name":"DefocusBlur","paramsTypes":{"blurSize":"float"},"defaultParams":{"blurSize":0.02},"glsl":"// Author: Sergey Kosarevsky\n// License: MIT\n// Description: A crossfade through an out-of-focus blur\n// Tags: blur, blend\n// Ported from https://gist.github.com/corporateshark/b9f8e5675c647e615419\n\n// @param Amount of blur\nuniform float blurSize; // = 0.02\n\n// 12-tap Poisson disk\n// https://github.com/spite/Wagner/blob/master/fragment-shaders/poisson-disc-blur-fs.glsl\n\nvec4 transition(vec2 uv) {\n float T = progress;\n float half_ = 0.5;\n float D = (T < half_) ? mix(0.0, blurSize, T / half_) : mix(blurSize, 0.0, (T - half_) / half_);\n vec4 C0 = getFromColor(uv);\n vec4 C1 = getToColor(uv);\n C0 += getFromColor(vec2(-0.326, -0.406) * D + uv);\n C1 += getToColor(vec2(-0.326, -0.406) * D + uv);\n C0 += getFromColor(vec2(-0.840, -0.074) * D + uv);\n C1 += getToColor(vec2(-0.840, -0.074) * D + uv);\n C0 += getFromColor(vec2(-0.696, 0.457) * D + uv);\n C1 += getToColor(vec2(-0.696, 0.457) * D + uv);\n C0 += getFromColor(vec2(-0.203, 0.621) * D + uv);\n C1 += getToColor(vec2(-0.203, 0.621) * D + uv);\n C0 += getFromColor(vec2( 0.962, -0.195) * D + uv);\n C1 += getToColor(vec2( 0.962, -0.195) * D + uv);\n C0 += getFromColor(vec2( 0.473, -0.480) * D + uv);\n C1 += getToColor(vec2( 0.473, -0.480) * D + uv);\n C0 += getFromColor(vec2( 0.519, 0.767) * D + uv);\n C1 += getToColor(vec2( 0.519, 0.767) * D + uv);\n C0 += getFromColor(vec2( 0.185, -0.893) * D + uv);\n C1 += getToColor(vec2( 0.185, -0.893) * D + uv);\n C0 += getFromColor(vec2( 0.507, 0.064) * D + uv);\n C1 += getToColor(vec2( 0.507, 0.064) * D + uv);\n C0 += getFromColor(vec2( 0.896, 0.412) * D + uv);\n C1 += getToColor(vec2( 0.896, 0.412) * D + uv);\n C0 += getFromColor(vec2(-0.322, -0.933) * D + uv);\n C1 += getToColor(vec2(-0.322, -0.933) * D + uv);\n C0 += getFromColor(vec2(-0.792, -0.598) * D + uv);\n C1 += getToColor(vec2(-0.792, -0.598) * D + uv);\n C0 /= 13.0;\n C1 /= 13.0;\n return mix(C0, C1, T);\n}\n","author":"Sergey Kosarevsky","license":"MIT","description":"A crossfade through an out-of-focus blur","tags":["blur","blend"],"params":{"blurSize":{"type":"float","default":0.02,"description":"Amount of blur"}},"textures":[],"createdAt":"Sun, 29 Mar 2026 20:32:54 +0200","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"DiamondWipe","paramsTypes":{"center":"vec2","smoothness":"float"},"defaultParams":{"center":[0.5,0.5],"smoothness":0.03},"glsl":"// Author: gre\n// License: MIT\n// Description: A soft-edged diamond grows from the center to reveal the incoming image\n// Tags: shape, wipe, iris\n\n// @param Center of the diamond\nuniform vec2 center; // = vec2(0.5)\n// @range(0, 0.5) Softness of the diamond's edge\nuniform float smoothness; // = 0.03\n\nvec4 transition (vec2 uv) {\n // Measured in square pixels, so the diamond is not stretched\n vec2 d = abs(uv - center) * vec2(ratio, 1.0);\n // The diamond covers the frame once it reaches the farthest corner\n vec2 far = max(center, 1.0 - center) * vec2(ratio, 1.0);\n float dist = (d.x + d.y) / (far.x + far.y);\n float s = max(smoothness, 0.001);\n float m = smoothstep(0.0, s, progress * (1.0 + s) - dist);\n return mix(getFromColor(uv), getToColor(uv), m);\n}\n","author":"gre","license":"MIT","description":"A soft-edged diamond grows from the center to reveal the incoming image","tags":["shape","wipe","iris"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Center of the diamond"},"smoothness":{"type":"float","default":0.03,"min":0,"max":0.5,"description":"Softness of the diamond's edge"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:17:51 +0100","updatedAt":"Sat, 31 Oct 2026 18:17:51 +0100"},{"name":"Directional","paramsTypes":{"direction":"vec2"},"defaultParams":{"direction":[0,1]},"glsl":"// Author: Gaëtan Renaudeau\n// License: MIT\n// Description: The incoming image pushes the outgoing one out in a given direction\n// Tags: slide, push, directional\n\n// @param Direction of the movement\nuniform vec2 direction; // = vec2(0.0, 1.0)\n\nvec4 transition (vec2 uv) {\n vec2 p = uv + progress * sign(direction);\n vec2 f = fract(p);\n return mix(\n getToColor(f),\n getFromColor(f),\n step(0.0, p.y) * step(p.y, 1.0) * step(0.0, p.x) * step(p.x, 1.0)\n );\n}\n","author":"Gaëtan Renaudeau","license":"MIT","description":"The incoming image pushes the outgoing one out in a given direction","tags":["slide","push","directional"],"params":{"direction":{"type":"vec2","default":[0,1],"description":"Direction of the movement"}},"textures":[],"createdAt":"Thu, 19 Apr 2018 12:20:29 +0200","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"DirectionalEased","paramsTypes":{"direction":"vec2"},"defaultParams":{"direction":[0,1]},"glsl":"// Author: Max Plotnikov\n// License: MIT\n// Description: Like Directional, with an eased movement\n// Tags: slide, push, directional\n\n// @param Direction of the movement\nuniform vec2 direction; // = vec2(0.0, 1.0)\n\nvec4 transition (vec2 uv) {\n float easing = sqrt((2.0 - progress) * progress);\n vec2 p = uv + easing * sign(direction);\n vec2 f = fract(p);\n return mix(\n getToColor(f),\n getFromColor(f),\n step(0.0, p.y) * step(p.y, 1.0) * step(0.0, p.x) * step(p.x, 1.0)\n );\n}\n","author":"Max Plotnikov","license":"MIT","description":"Like Directional, with an eased movement","tags":["slide","push","directional"],"params":{"direction":{"type":"vec2","default":[0,1],"description":"Direction of the movement"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"DirectionalScaled","paramsTypes":{"direction":"vec2","scale":"float"},"defaultParams":{"direction":[0,1],"scale":0.7},"glsl":"// Author: Thibaut Foussard\n// based on Directional transition by Gaëtan Renaudeau\n// https://gl-transitions.com/editor/Directional\n// License: MIT\n// Description: Like Directional, with both images scaled down while they slide\n// Tags: slide, push, zoom, directional\n\n#define PI acos(-1.0)\n\n// @param Direction of the movement\nuniform vec2 direction; // = vec2(0.0, 1.0)\nuniform float scale; // = .7\n\nfloat parabola(float x) {\n float y = pow(sin(x * PI), 1.);\n return y;\n}\n\nvec4 transition (vec2 uv) {\n float easedProgress = pow(sin(progress * PI / 2.), 3.);\n vec2 p = uv + easedProgress * sign(direction);\n vec2 f = fract(p);\n \n float s = 1. - (1. - (1. / scale)) * parabola(progress);\n f = (f - 0.5) * s + 0.5;\n \n float mixer = step(0.0, p.y) * step(p.y, 1.0) * step(0.0, p.x) * step(p.x, 1.0);\n vec4 col = mix(getToColor(f), getFromColor(f), mixer);\n \n float border = step(0., f.x) * step(0., (1. - f.x)) * step(0., f.y) * step(0., 1. - f.y);\n col *= border;\n \n return col;\n}\n","author":"Thibaut Foussard","license":"MIT","description":"Like Directional, with both images scaled down while they slide","tags":["slide","push","zoom","directional"],"params":{"direction":{"type":"vec2","default":[0,1],"description":"Direction of the movement"},"scale":{"type":"float","default":0.7}},"textures":[],"createdAt":"Tue, 4 Apr 2023 03:29:34 -0400","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"DirectionalWarp","paramsTypes":{"smoothness":"float","direction":"vec2"},"defaultParams":{"smoothness":0.1,"direction":[-1,1]},"glsl":"// Author: pschroen\n// License: MIT\n// Description: A diagonal wipe with a warped, smeared edge\n// Tags: wipe, warp, directional\n\n// @param Softness of the edge\nuniform float smoothness; // = 0.1\n// @param Direction of the wipe\nuniform vec2 direction; // = vec2(-1.0, 1.0)\n\nconst vec2 center = vec2(0.5, 0.5);\n\nvec4 transition (vec2 uv) {\n vec2 v = normalize(direction);\n v /= abs(v.x) + abs(v.y);\n float d = v.x * center.x + v.y * center.y;\n float m = 1.0 - smoothstep(-smoothness, 0.0, v.x * uv.x + v.y * uv.y - (d - 0.5 + progress * (1.0 + smoothness)));\n return mix(getFromColor((uv - 0.5) * (1.0 - m) + 0.5), getToColor((uv - 0.5) * m + 0.5), m);\n}\n","author":"pschroen","license":"MIT","description":"A diagonal wipe with a warped, smeared edge","tags":["wipe","warp","directional"],"params":{"smoothness":{"type":"float","default":0.1,"description":"Softness of the edge"},"direction":{"type":"vec2","default":[-1,1],"description":"Direction of the wipe"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"DirectionalWipe","paramsTypes":{"direction":"vec2","smoothness":"float"},"defaultParams":{"direction":[1,-1],"smoothness":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: A straight wipe in any direction, diagonal and soft-edged by default; a smoothness of 0 gives a hard edge\n// Tags: wipe, directional\n\n// @param Direction of the wipe\nuniform vec2 direction; // = vec2(1.0, -1.0)\n// @param Softness of the edge\nuniform float smoothness; // = 0.5\n \nconst vec2 center = vec2(0.5, 0.5);\n \nvec4 transition (vec2 uv) {\n vec2 v = normalize(direction);\n v /= abs(v.x)+abs(v.y);\n float d = v.x * center.x + v.y * center.y;\n float m =\n (1.0-step(progress, 0.0)) * // there is something wrong with our formula that makes m not equals 0.0 with progress is 0.0\n (1.0 - smoothstep(-smoothness, 0.0, v.x * uv.x + v.y * uv.y - (d-0.5+progress*(1.+smoothness))));\n return mix(getFromColor(uv), getToColor(uv), m);\n}\n","author":"gre","license":"MIT","description":"A straight wipe in any direction, diagonal and soft-edged by default; a smoothness of 0 gives a hard edge","tags":["wipe","directional"],"params":{"direction":{"type":"vec2","default":[1,-1],"description":"Direction of the wipe"},"smoothness":{"type":"float","default":0.5,"description":"Softness of the edge"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Thu, 5 Nov 2026 11:34:33 +0100"},{"name":"Disintegrate","paramsTypes":{"particleSize":"float","direction":"vec2","spread":"float"},"defaultParams":{"particleSize":0.008,"direction":[1,-0.15],"spread":0.75},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image crumbles into fine dust from one side, its grains blown away by the wind and fading out, revealing the incoming image underneath\n// Tags: particles, dust, wind, directional\n\n// @range(0.0075, 0.03) Size of the dust grains, in frame heights\nuniform float particleSize; // = 0.008\n// @param Direction in which the wind blows the dust\nuniform vec2 direction; // = vec2(1.0, -0.15)\n// @range(0, 1) How far the dust flies and scatters before it fades out\nuniform float spread; // = 0.75\n\n// the grains a pixel looks back to, along the wind: every grain up to 16 cells away,\n// one in 2 up to 32 cells, one in 4 up to 64 cells (only those stay visible that far,\n// so the dust thins out as it flies): 35 candidates, without unrolling a long loop\nconst int NEAR = 17;\nconst int CANDIDATES = 35;\n// part of the transition during which a grain flies, from its release to its fade-out\nconst float LIFE = 0.45;\n\nfloat hash12(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// smooth value noise, between -1 and 1\nfloat noise(vec2 p) {\n vec2 i = floor(p);\n vec2 f = fract(p);\n f = f * f * (3.0 - 2.0 * f);\n float a = hash12(i);\n float b = hash12(i + vec2(1.0, 0.0));\n float c = hash12(i + vec2(0.0, 1.0));\n float d = hash12(i + vec2(1.0, 1.0));\n return 2.0 * mix(mix(a, b, f.x), mix(c, d, f.x), f.y) - 1.0;\n}\n\n// the grains' sideways drift, in gusts along the wind, between -1 and 1: it depends only\n// on where a grain comes from along the wind, so that a pixel knows which row to look in\nfloat gust(float x) {\n float i = floor(x);\n float f = fract(x);\n f = f * f * (3.0 - 2.0 * f);\n return 2.0 * mix(hash12(vec2(i, 7.0)), hash12(vec2(i + 1.0, 7.0)), f) - 1.0;\n}\n\n// when the grain at this center (in cells) is released, from the downwind side first,\n// along a ragged front\nfloat release(vec2 center, float h, float halfLength, float s) {\n float front = 1.0 - (center.x + halfLength) / (2.0 * halfLength) + 0.14 * noise(center * s * 6.0) + 0.08 * (h - 0.5);\n return clamp((front + 0.12) / 1.24, 0.0, 1.0) * (1.0 - LIFE);\n}\n\nvec4 transition(vec2 uv) {\n vec2 d = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n vec2 n = vec2(-d.y, d.x);\n // grid of grains aligned with the wind: x along it, y across it, in cells\n vec2 fp = (uv - 0.5) * vec2(ratio, 1.0);\n float s = particleSize;\n vec2 g = vec2(dot(fp, d), dot(fp, n)) / s;\n float halfLength = 0.5 * (ratio * abs(d.x) + abs(d.y)) / s;\n // the longest flight, in cells (at most 60, within the 64 cells looked back to)\n float reach = min(spread * 0.45 / s, 60.0);\n float px = floor(g.x);\n\n // this pixel's own grain: once it has left, the incoming image shows through\n vec2 own = floor(g);\n vec4 under = progress > release(own + 0.5, hash12(own), halfLength, s) ? getToColor(uv) : getFromColor(uv);\n vec2 grainUV = vec2(0.5);\n float cover = 0.0;\n for (int i = 0; i < CANDIDATES; i++) {\n // the column of the candidate grain\n float fi = float(i);\n float cx = px - fi;\n if (i >= NEAR + 9) {\n cx = floor(px / 4.0) * 4.0 - 4.0 * (fi - float(NEAR + 9) + 8.0);\n } else if (i >= NEAR) {\n cx = floor(px / 2.0) * 2.0 - 2.0 * (fi - float(NEAR) + 8.0);\n }\n // how far the grain stays visible (in cells): further when its column is a multiple\n // of 2, and of 4, as far as the pixels look back to\n float visible = mod(cx, 4.0) < 0.5 ? 63.0 : mod(cx, 2.0) < 0.5 ? 31.0 : 15.0;\n float drift = 0.3 * gust(cx * s * 4.0);\n // the row the grain comes from: its sideways drift is known from its column and how\n // far it has flown to get here\n vec2 cell = vec2(cx, floor(g.y - drift * (g.x - cx - 0.5)));\n vec2 center = cell + 0.5;\n vec2 cuv = (center.x * d + center.y * n) * s / vec2(ratio, 1.0) + 0.5;\n if (cuv.x < 0.0 || cuv.x > 1.0 || cuv.y < 0.0 || cuv.y > 1.0) continue;\n float h = hash12(cell);\n float t = (progress - release(center, h, halfLength, s)) / LIFE;\n if (t <= 0.0 || t >= 1.0) continue;\n float r2 = fract(h * 13.7);\n // the grain speeds up, drifts sideways, shrinks and fades out\n float travel = reach * (0.4 + 0.6 * r2) * t * (0.2 + 0.8 * t);\n // it first fills its cell, then crumbles to a smaller speck\n float crumble = smoothstep(0.0, 0.25, t);\n vec2 pos = center + vec2(travel + (fract(h * 71.1) - 0.5) * 0.3 * crumble, drift * travel);\n vec2 local = abs(g - pos);\n float size = mix(0.5, 0.3 * (1.0 - 0.5 * t) * (0.6 + 0.4 * h), crumble);\n float feather = 0.001 + 0.12 * crumble;\n float a = (1.0 - smoothstep(size - feather, size, max(local.x, local.y))) * (1.0 - smoothstep(0.15, 1.0, t))\n * (1.0 - smoothstep(0.6 * visible, visible, travel));\n if (a > cover) {\n cover = a;\n grainUV = cuv;\n }\n }\n return mix(under, getFromColor(grainUV), cover);\n}\n","author":"gre","license":"MIT","description":"The outgoing image crumbles into fine dust from one side, its grains blown away by the wind and fading out, revealing the incoming image underneath","tags":["particles","dust","wind","directional"],"params":{"particleSize":{"type":"float","default":0.008,"min":0.0075,"max":0.03,"description":"Size of the dust grains, in frame heights"},"direction":{"type":"vec2","default":[1,-0.15],"description":"Direction in which the wind blows the dust"},"spread":{"type":"float","default":0.75,"min":0,"max":1,"description":"How far the dust flies and scatters before it fades out"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:55:33 +0100","updatedAt":"Sun, 1 Nov 2026 20:55:33 +0100"},{"name":"DisplacementMap","paramsTypes":{"strength":"float"},"defaultParams":{"strength":0.5},"glsl":"// Author: Travis Fischer\n// License: MIT\n// Description: A crossfade in which a displacement map (an extra grayscale texture) warps both images\n// Tags: displace, distort, blend\n//\n// Adapted from a Codrops article by Robin Delaporte\n// https://tympanus.net/Development/DistortionHoverEffect\n\nuniform sampler2D displacementMap;\n\n// @param Strength of the displacement\nuniform float strength; // = 0.5\n\nvec4 transition (vec2 uv) {\n float displacement = texture2D(displacementMap, uv).r * strength;\n\n vec2 uvFrom = vec2(uv.x + progress * displacement, uv.y);\n vec2 uvTo = vec2(uv.x - (1.0 - progress) * displacement, uv.y);\n\n return mix(\n getFromColor(uvFrom),\n getToColor(uvTo),\n progress\n );\n}\n","author":"Travis Fischer","license":"MIT","description":"A crossfade in which a displacement map (an extra grayscale texture) warps both images","tags":["displace","distort","blend"],"params":{"strength":{"type":"float","default":0.5,"description":"Strength of the displacement"}},"textures":["displacementMap"],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"DitherDissolve","paramsTypes":{"dotSize":"float"},"defaultParams":{"dotSize":0.02},"glsl":"// Author: gre\n// License: MIT\n// Description: The incoming image appears through a regular 8x8 ordered dither pattern, like a retro computer screen\n// Tags: dissolve, pattern, retro, pixelate\n\n// @range(0.002, 0.05) Size of a dither dot, relative to the height\nuniform float dotSize; // = 0.02\n\n// Threshold of the 8x8 Bayer matrix at integer cell c, in (0, 1)\nfloat bayer(vec2 c) {\n float v = 0.0;\n float scale = 16.0;\n for (int i = 0; i < 3; i++) {\n vec2 bit = mod(floor(c), 2.0);\n // a 2x2 step: 0 2 / 3 1, i.e. 2 * (x xor y) + y\n v += scale * (2.0 * abs(bit.x - bit.y) + bit.y);\n c *= 0.5;\n scale *= 0.25;\n }\n return (v + 0.5) / 64.0;\n}\n\nvec4 transition(vec2 uv) {\n vec2 cell = floor(uv * vec2(ratio, 1.0) / dotSize);\n return progress < bayer(cell) ? getFromColor(uv) : getToColor(uv);\n}\n","author":"gre","license":"MIT","description":"The incoming image appears through a regular 8x8 ordered dither pattern, like a retro computer screen","tags":["dissolve","pattern","retro","pixelate"],"params":{"dotSize":{"type":"float","default":0.02,"min":0.002,"max":0.05,"description":"Size of a dither dot, relative to the height"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:16:40 +0100","updatedAt":"Sat, 31 Oct 2026 18:16:40 +0100"},{"name":"DominoFall","paramsTypes":{"count":"int","reverse":"bool","knock":"float","lean":"float","perspective":"float","shading":"float"},"defaultParams":{"count":12,"reverse":false,"knock":0.2,"lean":0.8,"perspective":0.8,"shading":0.6},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image is cut into standing slats that topple backward like dominoes in a chain reaction across the frame, each one leaning onto the next and knocking it over, until they all lie flat and reveal the incoming image\n// Tags: 3d, stripes, rotate\n\n// @range(2, 40, 1) Number of slats\nuniform int count; // = 12\n// @param The chain runs from right to left instead of left to right\nuniform bool reverse; // = false\n// @range(0.05, 1) Part of a slat's fall after which it knocks the next one: lower runs the chain faster, with more slats falling at once\nuniform float knock; // = 0.2\n// @range(0, 1) How far each slat's top leans sideways onto the next one, as a part of a slat's width\nuniform float lean; // = 0.8\n// @range(0, 1) Strength of the perspective\nuniform float perspective; // = 0.8\n// @range(0, 1) How much the slats darken as they fall, and the shadows they cast\nuniform float shading; // = 0.6\n\nconst float PI = 3.141592653589793;\n// width of the anti-aliased edges, as a part of the frame's height\nconst float EDGE = 0.0015;\n\nfloat knockPart() {\n return clamp(knock, 0.05, 1.0);\n}\n\n// the fall of slat j, 0 standing to 1 lying flat\nfloat fallTime(float j, float n) {\n if (progress >= 1.0) return 1.0;\n float k = knockPart();\n // each slat falls during d and knocks the next one after k * d\n float d = 1.0 / (1.0 + (n - 1.0) * k);\n return clamp((progress - j * k * d) / d, 0.0, 1.0);\n}\n\n// the slat's angle: it starts with the push of the previous one, then gravity takes over\nfloat fallAngle(float t) {\n return 0.5 * PI * t * (0.2 + 0.8 * t);\n}\n\n// where slat j is seen at the point (xc, y) of the frame: (x across the slat, height on it, its fall, its angle),\n// with a negative fall where it is not seen (its height can exceed 1, above its top)\nvec4 slatPoint(float j, float n, float w, float xc, float y) {\n vec4 none = vec4(0.0, 0.0, -1.0, 0.0);\n if (j < 0.0 || j > n - 1.0) return none;\n float t = fallTime(j, n);\n if (t >= 1.0) return none;\n float a = fallAngle(t);\n float c = cos(a), s = sin(a);\n // a camera in front of the slat goes down to the level of the hinge as the slat falls,\n // so that the slat ends edge-on\n vec3 eye = vec3((j + 0.5) * w, 0.5 * c, -1.0 / max(perspective, 0.01));\n vec3 dir = vec3(xc, y, 0.0) - eye;\n // cast a ray onto the slat turned back by a around its bottom edge\n float den = dir.z * c - dir.y * s;\n if (den <= 0.0) return none;\n float r = (eye.y * s - eye.z * c) / den;\n vec3 hit = eye + r * dir;\n float h = hit.y * c + hit.z * s;\n if (r <= 0.0 || h < 0.0) return none;\n // the top leans sideways toward the next slat until it touches it\n float side = clamp(lean, 0.0, 1.0) * w * min(t / knockPart(), 1.0) * h;\n return vec4(hit.x - side - j * w, h, t, a);\n}\n\n// draws slat j, seen at pt, over color; front is where the next slat, which may stand in front of it, is seen\nvec4 drawSlat(vec4 color, float j, vec4 pt, vec4 front, float w) {\n float t = pt.z;\n if (t < 0.0) return color;\n float s = sin(pt.w);\n float d = min(pt.x, w - pt.x);\n float m;\n if (t <= 0.0) {\n // standing still: the slats tile the frame exactly\n m = d >= 0.0 && pt.y <= 1.0 ? 1.0 : 0.0;\n } else {\n // anti-aliased edges, widened as the slat is seen narrower and shorter\n float e = EDGE * min(10.0 * t, 1.0) * (1.0 + max(perspective, 0.0) * pt.y * s);\n m = clamp(d / e + 0.5, 0.0, 1.0) * clamp((1.0 - pt.y) * max(cos(pt.w), 0.05) / e + 0.5, 0.0, 1.0);\n }\n if (m <= 0.0) return color;\n float sx = (j * w + clamp(pt.x, 0.0, w)) / ratio;\n vec4 img = getFromColor(vec2(reverse ? 1.0 - sx : sx, min(pt.y, 1.0)));\n // darker as it falls away, more toward its top\n float shade = 1.0 - shading * s * (0.4 + 0.6 * pt.y);\n // the next slat, less fallen and so in front, shades the one leaning onto it along its edge, up to its top\n if (front.z >= 0.0 && front.z < t && front.x < 0.0) {\n float reach = clamp(1.0 - (front.y - 1.0) / 0.05, 0.0, 1.0);\n shade *= 1.0 - 0.6 * shading * exp(front.x / (0.15 * w)) * reach;\n }\n img.rgb *= shade;\n return mix(color, img, m);\n}\n\nvec4 transition (vec2 uv) {\n float n = float(count < 1 ? 1 : count);\n float w = ratio / n;\n // x along the chain, in frame heights\n float xc = (reverse ? 1.0 - uv.x : uv.x) * ratio;\n float col = clamp(floor(xc / w), 0.0, n - 1.0);\n\n vec4 color = getToColor(uv);\n // the contact shadow of the falling slat on the floor\n float t0 = fallTime(col, n);\n color.rgb *= 1.0 - 2.4 * shading * t0 * (1.0 - t0) * exp(-40.0 * uv.y);\n\n // the slats are seen narrower as they fall, and their tops lean over the next column at most:\n // the slat before this column, behind, then the one of this column\n vec4 cur = slatPoint(col, n, w, xc, uv.y);\n color = drawSlat(color, col - 1.0, slatPoint(col - 1.0, n, w, xc, uv.y), cur, w);\n color = drawSlat(color, col, cur, slatPoint(col + 1.0, n, w, xc, uv.y), w);\n return color;\n}\n","author":"gre","license":"MIT","description":"The outgoing image is cut into standing slats that topple backward like dominoes in a chain reaction across the frame, each one leaning onto the next and knocking it over, until they all lie flat and reveal the incoming image","tags":["3d","stripes","rotate"],"params":{"count":{"type":"int","default":12,"min":2,"max":40,"step":1,"description":"Number of slats"},"reverse":{"type":"bool","default":false,"description":"The chain runs from right to left instead of left to right"},"knock":{"type":"float","default":0.2,"min":0.05,"max":1,"description":"Part of a slat's fall after which it knocks the next one: lower runs the chain faster, with more slats falling at once"},"lean":{"type":"float","default":0.8,"min":0,"max":1,"description":"How far each slat's top leans sideways onto the next one, as a part of a slat's width"},"perspective":{"type":"float","default":0.8,"min":0,"max":1,"description":"Strength of the perspective"},"shading":{"type":"float","default":0.6,"min":0,"max":1,"description":"How much the slats darken as they fall, and the shadows they cast"}},"textures":[],"createdAt":"Fri, 6 Nov 2026 14:28:19 +0100","updatedAt":"Fri, 6 Nov 2026 14:28:19 +0100"},{"name":"DoomMelt","paramsTypes":{"bars":"int","amplitude":"float","noise":"float","frequency":"float","dripScale":"float"},"defaultParams":{"bars":30,"amplitude":2,"noise":0.1,"frequency":0.5,"dripScale":0.5},"glsl":"// Author: Zeh Fernando\n// License: MIT\n// Description: The outgoing image melts down in uneven columns, like the Doom screen wipe\n// Tags: melt, columns, retro\n\n\n// Transition parameters --------\n\n// Number of total bars/columns\nuniform int bars; // = 30\n\n// Multiplier for speed ratio. 0 = no variation when going down, higher = some elements go much faster\nuniform float amplitude; // = 2\n\n// Further variations in speed. 0 = no noise, 1 = super noisy (ignore frequency)\nuniform float noise; // = 0.1\n\n// Speed variation horizontally. the bigger the value, the shorter the waves\nuniform float frequency; // = 0.5\n\n// How much the bars seem to \"run\" from the middle of the screen first (sticking to the sides). 0 = no drip, 1 = curved drip\nuniform float dripScale; // = 0.5\n\n\n// The code proper --------\n\nfloat rand(int num) {\n return fract(mod(float(num) * 67123.313, 12.0) * sin(float(num) * 10.3) * cos(float(num)));\n}\n\nfloat wave(int num) {\n float fn = float(num) * frequency * 0.1 * float(bars);\n return cos(fn * 0.5) * cos(fn * 0.13) * sin((fn+10.0) * 0.3) / 2.0 + 0.5;\n}\n\nfloat drip(int num) {\n return sin(float(num) / float(bars - 1) * 3.141592) * dripScale;\n}\n\nfloat pos(int num) {\n return (noise == 0.0 ? wave(num) : mix(wave(num), rand(num), noise)) + (dripScale == 0.0 ? 0.0 : drip(num));\n}\n\nvec4 transition(vec2 uv) {\n int bar = int(uv.x * (float(bars)));\n float scale = 1.0 + pos(bar) * amplitude;\n float phase = progress * scale;\n float posY = uv.y / vec2(1.0).y;\n vec2 p;\n vec4 c;\n if (phase + posY < 1.0) {\n p = vec2(uv.x, uv.y + mix(0.0, vec2(1.0).y, phase)) / vec2(1.0).xy;\n c = getFromColor(p);\n } else {\n p = uv.xy / vec2(1.0).xy;\n c = getToColor(p);\n }\n\n // Finally, apply the color\n return c;\n}\n","author":"Zeh Fernando","license":"MIT","description":"The outgoing image melts down in uneven columns, like the Doom screen wipe","tags":["melt","columns","retro"],"params":{"bars":{"type":"int","default":30},"amplitude":{"type":"float","default":2},"noise":{"type":"float","default":0.1},"frequency":{"type":"float","default":0.5},"dripScale":{"type":"float","default":0.5}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Doorway","paramsTypes":{"reflection":"float","perspective":"float","depth":"float"},"defaultParams":{"reflection":0.4,"perspective":0.4,"depth":3},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image opens like double doors swinging toward the viewer, as the incoming one comes forward from the dark room behind, with a floor reflection\n// Tags: doors, 3d, reflection\n\n// @range(0, 1) Strength of the floor reflection under the incoming image\nuniform float reflection; // = 0.4\n// @range(0, 1) Amount of perspective on the swinging doors\nuniform float perspective; // = 0.4\n// @range(1, 10) How far back the incoming image starts (1: no distance)\nuniform float depth; // = 3\n\nconst float PI = 3.141592653589793;\n\n// cast the view ray of screen point x (aspect units, the frame is 0..w) onto a leaf of\n// width w/2 hinged on the left edge and turned toward the viewer by angle a.\n// The eye is at (w/2, 0.5, -eye) and the frame at z = 0; returns (t, distance along the leaf)\n// where t scales the ray so that t = 1 is the frame plane\nvec2 leafHit (float x, float w, float eye, float a) {\n float c = cos(a), s = sin(a);\n float t = (eye * c - 0.5 * w * s) / (s * (x - 0.5 * w) + eye * c);\n vec2 hit = vec2(0.5 * w + t * (x - 0.5 * w), eye * (t - 1.0));\n return vec2(t, hit.x * c - hit.y * s);\n}\n\n// screen x of a point (x, z) seen from the eye\nfloat project (vec2 p, float w, float eye) {\n return 0.5 * w + (p.x - 0.5 * w) * eye / (eye + p.y);\n}\n\nfloat easeInOut (float t) {\n return t < 0.5 ? 4.0 * t * t * t : 1.0 - 4.0 * (1.0 - t) * (1.0 - t) * (1.0 - t);\n}\n\n// the room behind: the incoming image coming forward, and its reflection on the floor\nvec4 room (vec2 uv, float x, float edgeL, float edgeR, float close, float dolly) {\n float size = mix(max(depth, 1.0), 1.0, dolly);\n vec2 p = (uv - 0.5) * size + 0.5;\n // soft border while it is far, exactly sharp once it fills the frame\n float soft = 0.004 * (size - 1.0) + 1e-6;\n vec2 m = smoothstep(-soft, soft, p) * smoothstep(-soft, soft, 1.0 - p);\n vec4 c = getToColor(clamp(p, 0.0, 1.0)) * (m.x * m.y);\n if (p.y < 0.0) {\n vec2 r = vec2(p.x, -1.2 * p.y - 0.02);\n float f = reflection * (1.0 - r.y) * m.x * smoothstep(0.0, 0.01, r.y);\n c += getToColor(clamp(r, 0.0, 1.0)) * f * (1.0 - m.y);\n }\n // the lit room spills its light through the opening, and the leaves cast soft shadows\n // along their edges; both settle as the doors open\n float wl = 0.03 + 0.12 * close;\n float shadow = (1.0 - smoothstep(0.0, wl, x - edgeL)) + (1.0 - smoothstep(0.0, wl, edgeR - x));\n float light = (1.0 + 0.6 * close * close) * (1.0 - 0.7 * close * min(shadow, 1.0));\n return vec4(min(c.rgb * light, vec3(c.a)), c.a);\n}\n\nvec4 transition (vec2 uv) {\n float w = ratio;\n float x = uv.x * w;\n // camera distance: the leaves always stay in front of it\n float eye = max(w, 1.0) * (0.5 + 0.2 / max(perspective, 0.01));\n // the leaves swing until their free edges have just left the frame\n float swing = progress * progress * (3.0 - 2.0 * progress);\n float a = min(atan(2.0 * eye / w) + 0.1, 0.5 * PI) * swing;\n float dolly = mix(easeInOut(progress), progress, 0.3);\n // the free edge of the left leaf, front and back of its thickness, as (x, z)\n float hw = 0.5 * w;\n vec2 front = hw * vec2(cos(a), -sin(a));\n float thick = 0.02 * w * (1.0 - smoothstep(0.8, 1.0, swing));\n float edgeL = project(front, w, eye);\n float backL = project(front + thick * vec2(sin(a), cos(a)), w, eye);\n float close = 1.0 - swing;\n vec4 back = room(uv, x, backL, w - backL, close, dolly);\n // the leaf on this side of the frame (each one stays in its own half)\n bool left = x < hw;\n float lx = left ? x : w - x;\n vec2 hit = leafHit(lx, w, eye, a);\n float s = clamp(hit.y, 0.0, hw);\n // the ray meets the leaf nearer to the eye, where it looks bigger\n float v = 0.5 + (uv.y - 0.5) * hit.x;\n vec4 leaf = getFromColor(clamp(vec2(left ? s / w : 1.0 - s / w, v), 0.0, 1.0));\n // turned away from the light, and darker toward the free edge as the opening deepens\n leaf.rgb *= 1.0 - 0.5 * (1.0 - cos(a)) - 0.25 * sin(a) * (s / hw);\n // the edge of the leaf catches the light coming from the room\n vec4 side = getFromColor(clamp(vec2(left ? 0.499 : 0.501, v), 0.0, 1.0));\n side.rgb = min(side.rgb * 1.5, vec3(side.a));\n // sharp at both ends, so that nothing of the doors is left at the start and the end\n float aa = 0.003 * min(1.0, 20.0 * min(a, close)) + 1e-6;\n vec4 c = mix(back, side, smoothstep(-aa, aa, backL - lx));\n return mix(c, leaf, smoothstep(-aa, aa, edgeL - lx));\n}\n","author":"gre","license":"MIT","description":"The outgoing image opens like double doors swinging toward the viewer, as the incoming one comes forward from the dark room behind, with a floor reflection","tags":["doors","3d","reflection"],"params":{"reflection":{"type":"float","default":0.4,"min":0,"max":1,"description":"Strength of the floor reflection under the incoming image"},"perspective":{"type":"float","default":0.4,"min":0,"max":1,"description":"Amount of perspective on the swinging doors"},"depth":{"type":"float","default":3,"min":1,"max":10,"description":"How far back the incoming image starts (1: no distance)"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 8 Nov 2026 10:38:44 +0100"},{"name":"Drape","paramsTypes":{"folds":"float","depth":"float","sway":"float","shadow":"float"},"defaultParams":{"folds":6,"depth":0.7,"sway":0.4,"shadow":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image hangs like a sheet of fabric that is let go at the top: it collapses into soft, uneven folds that hide one another as the cloth bunches up and slides down out of the frame, revealing the incoming image behind it\n// Tags: fabric, fold, vertical, 3d, shadow\n\n// @range(1, 16, 1) Number of folds across the cloth (fewer in a portrait image)\nuniform float folds; // = 6.0\n// @range(0, 1) Depth of the folds and of their shading\nuniform float depth; // = 0.7\n// @range(0, 1) How much the cloth sways sideways as it falls\nuniform float sway; // = 0.4\n// @range(0, 1) Strength of the soft shadow cast by the cloth on the incoming image\nuniform float shadow; // = 0.5\n\nconst float PI = 3.141592653589793;\nconst int STEPS = 24;\nconst float DEPTH = 0.8; // height of the deepest folds, times the fold width\n\n// folds a coordinate back into 0..1, mirroring the image at its edges\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// integer-free hash of an integer cell, smoothed into a 1D value noise in 0..1\nfloat hash11(float p) {\n p = fract(p * 0.1031);\n p *= p + 33.33;\n p *= p + p;\n return fract(p);\n}\n\nfloat noise1(float x) {\n float i = floor(x);\n float f = x - i;\n return mix(hash11(i), hash11(i + 1.0), f * f * (3.0 - 2.0 * f));\n}\n\n// height of the top edge above x, sagging in the middle (m: see cloth)\nfloat topEdge(float x, vec4 m) {\n float c = 2.0 * x - 1.0;\n return m.y - 0.08 * m.x * (1.0 - c * c);\n}\n\n// how far the sides are pulled in at the height sy, more so at the bunched top\nfloat sidePull(float sy, float gT) {\n return 0.035 * gT * (0.3 + 0.7 * clamp(sy, 0.0, 1.0));\n}\n\n// height of the cloth at the point (x, y) of the screen plane, toward the viewer,\n// or -1 where there is no cloth. Also gives the cloth's own coordinates and fold phase.\n// m: how far the folds have formed (0 at rest), height of the top edge, height of the hem, sideways swing\nvec4 cloth(vec2 p, vec4 m, float foldN) {\n float gT = m.x;\n float botY = m.z;\n float x = p.x - m.w;\n float top = topEdge(x, m);\n float sy = (p.y - botY) / max(top - botY, 1e-4); // 0 at the hem, 1 at the top edge\n float pull = sidePull(sy, gT);\n float xc = (x - pull) / (1.0 - 2.0 * pull);\n // uneven folds: their width, depth and course along the cloth all wander\n float wander = (noise1(0.5 * foldN * xc + 2.5 * sy + 5.3) - 0.5) * 2.4 * (1.0 - sy);\n float ph = 2.0 * PI * (foldN * xc + 0.6 * noise1(0.7 * foldN * xc + 1.7)) + wander;\n float d = 0.15 + 0.85 * noise1(1.1 * foldN * xc + 1.4 * sy + 7.0);\n // deepest near the bunched top, relaxing toward the hem\n float amp = DEPTH * depth * gT * (0.3 + 0.7 * sy * sqrt(max(sy, 0.0))) / max(foldN, 2.0);\n // the free sides of the cloth hang flat\n float w = 0.6 / foldN;\n amp *= smoothstep(0.0, w, xc) * smoothstep(0.0, w, 1.0 - xc);\n float prof = 0.5 - 0.5 * cos(ph); // 1 on a ridge, 0 in a valley\n // small sagging creases where the fabric piles up under the top edge\n float dt = (1.0 - sy) * (top - botY);\n float crease = exp(-30.0 * dt) * (0.5 + 0.5 * sin(80.0 * dt + 0.7 * ph));\n bool on = sy >= 0.0 && sy <= 1.0 && xc >= 0.0 && xc <= 1.0;\n return on ? vec4(amp * (d * prof + 0.15 * crease), xc, sy, ph) : vec4(-1.0);\n}\n\nvec4 transition (vec2 uv) {\n float t = progress;\n // the top edge falls first and the hem follows later: the cloth collapses as it slides down\n float topY = 1.0 - 1.06 * t * (0.35 + 0.65 * t);\n float botY = -0.75 * t * t * t;\n // the folds form as soon as the top is let go\n float f = 1.0 - (1.0 - t) * (1.0 - t) * (1.0 - t);\n float foldN = max(1.0, floor(folds * min(ratio, 1.0) + 0.5));\n float shiftX = sway * 0.035 * sin(2.0 * PI * t) * f;\n // the cloth is seen a little from the left and from above: ridges hide the valleys behind them\n vec2 view = vec2(0.75 + 0.5 * sway * sin(PI * t) * f, -0.35);\n float zMax = 1.15 * DEPTH * depth * f / max(foldN, 2.0); // a single fold is no deeper than two\n vec4 m = vec4(f, topY, botY, shiftX);\n // march from the front toward the screen plane, the first point inside the cloth is visible\n float zA = zMax; // last step in front of the cloth\n float zB = 0.0; // first step inside it\n bool found = false;\n float dA = 0.0;\n float dB = 0.0;\n bool onA = false; // whether the last step in front was over the cloth (else the ray came in through its edge)\n for (int i = 0; i < STEPS; i++) {\n if (!found) {\n float z = max(zMax * (1.0 - float(i) / float(STEPS - 1)), 0.0);\n vec4 s = cloth(uv - view * z, m, foldN);\n float dz = s.x - z;\n if (s.x >= 0.0 && dz >= 0.0) {\n found = true;\n zB = z;\n dB = dz;\n } else {\n zA = z;\n dA = dz;\n onA = s.x >= 0.0;\n }\n }\n }\n float zHit = zB;\n if (found && zA > zB) {\n if (onA) {\n // crossed the surface: refine between the last two steps\n zHit = mix(zA, zB, dA / (dA - dB));\n } else {\n // came in through the top edge: find where the ray first meets the cloth,\n // on its surface or through the edge (then it sees the inside of the fold)\n float za = zA;\n for (int j = 0; j < 5; j++) {\n float zm = 0.5 * (za + zHit);\n if (cloth(uv - view * zm, m, foldN).x >= zm) zHit = zm;\n else za = zm;\n }\n }\n }\n vec2 hp = uv - view * zHit;\n vec4 hit = found ? cloth(hp, m, foldN) : vec4(-1.0);\n if (found && hit.x < 0.0) {\n zHit = zB;\n hp = uv - view * zB;\n hit = cloth(hp, m, foldN);\n }\n vec4 col = vec4(0.0);\n float cover = 0.0;\n if (hit.x >= 0.0) {\n float xc = hit.y;\n float sy = hit.z;\n float ph = hit.w;\n // the fabric is gathered: more of it goes into the slopes of the folds\n float slope = PI * zMax * foldN;\n // (capped so that the texture never runs backwards where the folds bunch up)\n float mu = min(0.25 * slope * slope / (1.0 + 0.25 * slope * slope), 0.5);\n float u = xc - mu * sin(2.0 * ph) / (4.0 * PI * foldN);\n // and pushed together under the top edge\n float h = max(topY - botY, 1e-4);\n float comp = max(1.0 - h, 0.0);\n float v = sy * (1.0 - comp) + comp * sy * sy * sy;\n vec4 tex = getFromColor(mirror(vec2(u, v)));\n float span = topEdge(hp.x - shiftX, m) - botY; // local height of the cloth\n // surface normal from the height of the cloth around the visible point\n float e = 0.002;\n float hx = cloth(hp + vec2(e, 0.0), m, foldN).x;\n float hy = cloth(hp + vec2(0.0, e), m, foldN).x;\n float hx0 = hx >= 0.0 ? hx : hit.x;\n float hy0 = hy >= 0.0 ? hy : hit.x;\n vec3 nrm = normalize(vec3(-(hx0 - hit.x) / e, -(hy0 - hit.x) / e, 1.0));\n vec3 light = normalize(vec3(-0.45, 0.35, 1.0));\n float diffuse = mix(1.0, max(dot(nrm, light), 0.0) / light.z, min(1.0, 3.0 * f));\n // soft ambient occlusion in the valleys, deeper where the folds are deep\n float valley = 1.0 - (0.5 - 0.5 * cos(ph));\n float ao = 1.0 - 0.6 * depth * f * valley * valley * (0.35 + 0.65 * sy);\n // the rolled top edge gets less light\n float rim = exp(-(1.0 - sy) * span * 70.0) * 0.35 * f;\n // below the surface, the ray sees the shaded inside of a fold through the top edge\n float under = max(hit.x - zHit, 0.0);\n float back = min(1.0, under / max(0.1 * zMax, 1e-6));\n tex.rgb *= diffuse * ao * (1.0 - rim) * (1.0 - 0.6 * back);\n col = tex;\n // anti-aliased outline, sharp at rest so the first frame is exact\n float aa = 0.003 * f;\n float inside = min((1.0 - sy) * span - view.y * under, min(xc, 1.0 - xc));\n cover = aa > 0.0 ? clamp(inside / aa, 0.0, 1.0) : 1.0;\n if (cover >= 1.0) return col;\n }\n // soft shadow of the cloth, held a little away from the incoming image, gone once it has left\n vec4 to = getToColor(uv);\n float x = uv.x - shiftX;\n float pull = sidePull((uv.y - botY) / max(topEdge(x, m) - botY, 1e-4), f);\n float outside = max(uv.y - topEdge(x, m), max(-x, x - 1.0) - pull);\n float sh = shadow * exp(-max(outside, 0.0) * 16.0) * f * clamp(8.0 * (1.0 - t), 0.0, 1.0);\n return mix(vec4(to.rgb * (1.0 - 0.8 * sh), to.a), col, cover);\n}\n","author":"gre","license":"MIT","description":"The outgoing image hangs like a sheet of fabric that is let go at the top: it collapses into soft, uneven folds that hide one another as the cloth bunches up and slides down out of the frame, revealing the incoming image behind it","tags":["fabric","fold","vertical","3d","shadow"],"params":{"folds":{"type":"float","default":6,"min":1,"max":16,"step":1,"description":"Number of folds across the cloth (fewer in a portrait image)"},"depth":{"type":"float","default":0.7,"min":0,"max":1,"description":"Depth of the folds and of their shading"},"sway":{"type":"float","default":0.4,"min":0,"max":1,"description":"How much the cloth sways sideways as it falls"},"shadow":{"type":"float","default":0.5,"min":0,"max":1,"description":"Strength of the soft shadow cast by the cloth on the incoming image"}},"textures":[],"createdAt":"Sat, 7 Nov 2026 13:50:00 +0100","updatedAt":"Sat, 7 Nov 2026 18:52:38 +0100"},{"name":"Dreamy","paramsTypes":{},"defaultParams":{},"glsl":"// Author: mikolalysenko\n// License: MIT\n// Description: A crossfade with a gentle wavy distortion\n// Tags: wave, blend\n\nvec2 offset(float progress, float x, float theta) {\n float phase = progress*progress + progress + theta;\n float shifty = 0.03*progress*cos(10.0*(progress+x));\n return vec2(0, shifty);\n}\nvec4 transition(vec2 p) {\n return mix(getFromColor(p + offset(progress, p.x, 0.0)), getToColor(p + offset(1.0-progress, p.x, 3.14)), progress);\n}\n","author":"mikolalysenko","license":"MIT","description":"A crossfade with a gentle wavy distortion","tags":["wave","blend"],"params":{},"textures":[],"createdAt":"Mon, 12 Jun 2017 12:27:38 +0800","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"DreamyZoom","paramsTypes":{"rotation":"float","scale":"float"},"defaultParams":{"rotation":6,"scale":1.2},"glsl":"// Author: Zeh Fernando\n// License: MIT\n// Description: Zooms and rotates into a bright flash, then out to the incoming image\n// Tags: zoom, rotate, flash\n\n// Definitions --------\n#define DEG2RAD 0.03926990816987241548078304229099 // 1/180*PI\n\n\n// Transition parameters --------\n\n// In degrees\nuniform float rotation; // = 6\n\n// Multiplier\nuniform float scale; // = 1.2\n\n\n// The code proper --------\n\nvec4 transition(vec2 uv) {\n // Massage parameters\n float phase = progress < 0.5 ? progress * 2.0 : (progress - 0.5) * 2.0;\n float angleOffset = progress < 0.5 ? mix(0.0, rotation * DEG2RAD, phase) : mix(-rotation * DEG2RAD, 0.0, phase);\n float newScale = progress < 0.5 ? mix(1.0, scale, phase) : mix(scale, 1.0, phase);\n \n vec2 center = vec2(0, 0);\n\n // Calculate the source point\n vec2 assumedCenter = vec2(0.5, 0.5);\n vec2 p = (uv.xy - vec2(0.5, 0.5)) / newScale * vec2(ratio, 1.0);\n\n // This can probably be optimized (with distance())\n float angle = atan(p.y, p.x) + angleOffset;\n float dist = distance(center, p);\n p.x = cos(angle) * dist / ratio + 0.5;\n p.y = sin(angle) * dist + 0.5;\n vec4 c = progress < 0.5 ? getFromColor(p) : getToColor(p);\n\n // Finally, apply the color\n // The flash lights up the image, not the transparent areas around it.\n return vec4(c.rgb + (progress < 0.5 ? mix(0.0, 1.0, phase) : mix(1.0, 0.0, phase)), c.a);\n}\n","author":"Zeh Fernando","license":"MIT","description":"Zooms and rotates into a bright flash, then out to the incoming image","tags":["zoom","rotate","flash"],"params":{"rotation":{"type":"float","default":6},"scale":{"type":"float","default":1.2}},"textures":[],"createdAt":"Tue, 30 May 2017 10:44:06 -0700","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"DuotoneFade","paramsTypes":{"shadowInk":"vec4","highlightInk":"vec4","contrast":"float","grain":"float"},"defaultParams":{"shadowInk":[0.11,0.09,0.46,1],"highlightInk":[1,0.45,0.62,1],"contrast":0.6,"grain":0.4},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image is printed in two inks, shadows first, as a bold high-contrast duotone; the incoming image is printed over it in the same two inks, its dark tones landing before its highlights, then its own colors come back, highlights first\n// Tags: color, duotone, print, poster, gradient-map, luminance\n\n// @color Ink printed in the shadows (its alpha is its strength)\nuniform vec4 shadowInk; // = vec4(0.11, 0.09, 0.46, 1.0)\n// @color Ink printed in the highlights (its alpha is its strength)\nuniform vec4 highlightInk; // = vec4(1.0, 0.45, 0.62, 1.0)\n// @range(0, 1) How hard the tones are pushed apart toward the two inks\nuniform float contrast; // = 0.6\n// @range(0, 1) Amount of print grain in the inks and along the handoff\nuniform float grain; // = 0.4\n\nfloat dfHash(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\nfloat dfLuma(vec4 c) {\n return clamp(dot(c.rgb, vec3(0.299, 0.587, 0.114)), 0.0, 1.0);\n}\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n float la = dfLuma(a);\n float lb = dfLuma(b);\n // fixed print grain, in cells of about 1/360 of the shorter side\n vec2 q = uv * 360.0 * vec2(max(ratio, 1.0), max(1.0 / ratio, 1.0));\n float g = dfHash(floor(q)) - 0.5;\n\n // the inks land on the outgoing image (shadows first), then lift off the incoming one (highlights first)\n float inks = smoothstep(0.0, 0.35, progress);\n float lift = smoothstep(0.65, 1.0, progress);\n float amount = min(\n clamp(inks * 1.35 - 0.35 * la, 0.0, 1.0),\n clamp((1.0 - lift) * 1.35 - 0.35 * lb, 0.0, 1.0)\n );\n amount = amount * amount * (3.0 - 2.0 * amount);\n\n // the incoming image is printed over the outgoing one, darkest tones first, along a grainy edge\n float x = smoothstep(0.25, 0.75, progress) * 1.6 - 0.3;\n float t = lb + 0.2 * grain * g;\n float s = smoothstep(t - 0.15, t + 0.15, x);\n\n // gradient map on luminance, with the tones pushed toward the two inks\n float c = 0.4 * contrast;\n float tone = smoothstep(c + 0.03, 1.03 - c, mix(la, lb, s) + 0.08 * grain * g);\n vec4 ink = mix(shadowInk, highlightInk, tone);\n\n // the images are blended with premultiplied alpha, and where neither is drawn nothing is printed\n vec4 base = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), s);\n if (base.a <= 0.0) return vec4(0.0);\n return vec4(mix(base.rgb / base.a, ink.rgb, amount * ink.a), base.a);\n}\n","author":"gre","license":"MIT","description":"The outgoing image is printed in two inks, shadows first, as a bold high-contrast duotone; the incoming image is printed over it in the same two inks, its dark tones landing before its highlights, then its own colors come back, highlights first","tags":["color","duotone","print","poster","gradient-map","luminance"],"params":{"shadowInk":{"type":"vec4","default":[0.11,0.09,0.46,1],"color":true,"description":"Ink printed in the shadows (its alpha is its strength)"},"highlightInk":{"type":"vec4","default":[1,0.45,0.62,1],"color":true,"description":"Ink printed in the highlights (its alpha is its strength)"},"contrast":{"type":"float","default":0.6,"min":0,"max":1,"description":"How hard the tones are pushed apart toward the two inks"},"grain":{"type":"float","default":0.4,"min":0,"max":1,"description":"Amount of print grain in the inks and along the handoff"}},"textures":[],"createdAt":"Sun, 8 Nov 2026 12:37:11 +0100","updatedAt":"Sun, 8 Nov 2026 12:37:11 +0100"},{"name":"EdgeGlow","paramsTypes":{"edge_thickness":"float","edge_brightness":"float"},"defaultParams":{"edge_thickness":0.001,"edge_brightness":8},"glsl":"// Author: Woohyun Kim\n// License: MIT\n// Description: Both images fade through black with their edges glowing\n// Tags: edges, fade\n\nuniform float edge_thickness; // = 0.001\nuniform float edge_brightness; // = 8.0\n\nvec3 detectEdgeColor(vec3[9] c) {\n /* adjacent texel array for texel c[4]\n 036\n 147\n 258\n */\n vec3 dx = 2.0 * abs(c[7]-c[1]) + abs(c[2] - c[6]) + abs(c[8] - c[0]);\n\tvec3 dy = 2.0 * abs(c[3]-c[5]) + abs(c[6] - c[8]) + abs(c[0] - c[2]);\n float delta = length(0.25 * (dx + dy) * 0.5);\n\treturn clamp(edge_brightness * delta, 0.0, 1.0) * c[4];\n}\n\nvec4 getFromEdgeColor(vec2 uv) {\n\tvec3 c[9];\n\tfloat alpha = 0.0;\n\tfor (int i=0; i < 3; ++i) for (int j=0; j < 3; ++j)\n\t{\n\t vec4 color = getFromColor(uv + edge_thickness * vec2(i-1,j-1));\n c[3*i + j] = color.rgb;\n if (i == 1 && j == 1) alpha = color.a;\n\t}\n\treturn vec4(detectEdgeColor(c), alpha);\n}\n\nvec4 getToEdgeColor(vec2 uv) {\n\tvec3 c[9];\n\tfloat alpha = 0.0;\n\tfor (int i=0; i < 3; ++i) for (int j=0; j < 3; ++j)\n\t{\n\t vec4 color = getToColor(uv + edge_thickness * vec2(i-1,j-1));\n c[3*i + j] = color.rgb;\n if (i == 1 && j == 1) alpha = color.a;\n\t}\n\treturn vec4(detectEdgeColor(c), alpha);\n}\n\nvec4 transition (vec2 uv) {\n vec4 start = mix(getFromColor(uv), getFromEdgeColor(uv), clamp(2.0 * progress, 0.0, 1.0));\n vec4 end = mix(getToEdgeColor(uv), getToColor(uv), clamp(2.0 * (progress - 0.5), 0.0, 1.0));\n return mix(\n start,\n end,\n progress\n );\n}\n","author":"Woohyun Kim","license":"MIT","description":"Both images fade through black with their edges glowing","tags":["edges","fade"],"params":{"edge_thickness":{"type":"float","default":0.001},"edge_brightness":{"type":"float","default":8}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"EyeBlink","paramsTypes":{"blur":"float","softness":"float","blinks":"int","color":"vec4"},"defaultParams":{"blur":0.5,"softness":0.12,"blinks":1,"color":[0.03,0.02,0.02,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: Curved eyelids close from the top and bottom over the outgoing image, which blurs and dims, then open on the incoming image as it comes back into focus, as if the viewer blinked\n// Tags: blink, eye, blur, shape\n\n// @range(0, 1) How much the image blurs and dims while the eyes are closed\nuniform float blur; // = 0.5\n// @range(0.01, 0.3) Width of the soft shadow along the rim of the eyelids\nuniform float softness; // = 0.12\n// @range(1, 2, 1) Number of blinks: 1, or 2 for a quick double blink (the cut happens on the first one)\nuniform int blinks; // = 1\n// @color Color of the eyelids\nuniform vec4 color; // = vec4(0.03, 0.02, 0.02, 1.0)\n\nconst int TAPS = 16;\n// how much the eyelids curve: the opening is widest at the center and the corners close first\nconst float CURVE = 0.25;\n// where the eyelids meet, below the middle: the upper lid travels further than the lower one\nconst float MEET = 0.44;\n\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// a blink fully closed at c (held for 2 * hold): the lids close over wc before it\n// and open over wo after it, slower, like a real blink\nfloat lidBlink(float t, float c, float wc, float wo, float hold) {\n return 1.0 - smoothstep(hold, t < c ? wc : wo, abs(t - c));\n}\n\nvec4 image(vec2 uv, bool incoming) {\n vec4 c = incoming ? getToColor(uv) : getFromColor(uv);\n return vec4(c.rgb * c.a, c.a);\n}\n\nvec4 transition(vec2 uv) {\n bool two = blinks > 1;\n // the moment the eyes are fully closed, when the images are swapped\n float cut = two ? 0.3 : 0.42;\n // how closed the eyes are: 0 open, 1 closed\n float closed = two\n ? max(lidBlink(progress, cut, 0.26, 0.26, 0.015), lidBlink(progress, 0.7, 0.14, 0.24, 0.01))\n : lidBlink(progress, cut, 0.36, 0.5, 0.02);\n bool incoming = progress >= cut;\n\n // the rim of each eyelid is an arc; fully open, even its corners clear the frame by the widest shadow\n float soft = clamp(softness, 0.001, 0.3);\n float x = 2.0 * uv.x - 1.0;\n float rim = (1.0 - closed) * (1.31 + CURVE) - CURVE * x * x;\n // distance inside the opening from the nearest lid, as a share of that lid's travel\n float y = uv.y - MEET;\n float d = rim - max(y / (1.0 - MEET), -y / MEET);\n // the lid fills beyond its rim, with a soft shadow falling inside the opening\n float s = 1.0 - smoothstep(0.0, soft, d);\n float lid = s * s;\n if (lid >= 1.0) return color;\n\n // how out of focus and dim the view is: it peaks at the cut, follows the lids, and clears at both ends\n float f = progress < cut ? progress / cut : (1.0 - progress) / (1.0 - cut);\n f = clamp(f, 0.0, 1.0);\n f = max(f * (2.0 - f), closed) * blur;\n\n vec4 c;\n if (f <= 0.0) {\n c = incoming ? getToColor(uv) : getFromColor(uv);\n } else {\n // a disc of taps along a golden-angle spiral, premultiplied\n float r = 0.025 * f;\n c = vec4(0.0);\n for (int i = 0; i < TAPS; i++) {\n float k = float(i) + 0.5;\n float a = 2.39996 * k;\n vec2 o = sqrt(k / float(TAPS)) * vec2(cos(a), sin(a)) * r;\n c += image(mirror(uv + o * vec2(1.0 / ratio, 1.0)), incoming);\n }\n c /= float(TAPS);\n c = c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n // less light reaches the eye as it closes\n c.rgb *= 1.0 - 0.35 * f;\n }\n return mix(c, color, lid);\n}\n","author":"gre","license":"MIT","description":"Curved eyelids close from the top and bottom over the outgoing image, which blurs and dims, then open on the incoming image as it comes back into focus, as if the viewer blinked","tags":["blink","eye","blur","shape"],"params":{"blur":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the image blurs and dims while the eyes are closed"},"softness":{"type":"float","default":0.12,"min":0.01,"max":0.3,"description":"Width of the soft shadow along the rim of the eyelids"},"blinks":{"type":"int","default":1,"min":1,"max":2,"step":1,"description":"Number of blinks: 1, or 2 for a quick double blink (the cut happens on the first one)"},"color":{"type":"vec4","default":[0.03,0.02,0.02,1],"color":true,"description":"Color of the eyelids"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 08:57:38 +0100","updatedAt":"Wed, 4 Nov 2026 08:57:38 +0100"},{"name":"FacetedGlass","paramsTypes":{"facets":"float","refraction":"float","bevel":"float","highlight":"vec4","seed":"float"},"defaultParams":{"facets":5,"refraction":0.1,"bevel":0.6,"highlight":[1,0.98,0.92,1],"seed":0},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame is seen through a pane of irregular cut-glass facets, each one showing its own shifted, zoomed and tilted view of the image, with bright beveled edges and thin dark seams; the facets turn to the incoming image one by one, then the glass flattens out and clears\n// Tags: glass, refraction, facets, voronoi, distortion\n\n// @range(2, 20) Number of facets across the height of the frame\nuniform float facets; // = 5.0\n// @range(0, 0.3) How far each facet shifts its view of the image at the peak\nuniform float refraction; // = 0.1\n// @range(0, 1) Strength of the highlights and shadows along the beveled edges, and of the glint as each facet turns\nuniform float bevel; // = 0.6\n// @color Color of the light caught by the bevels\nuniform vec4 highlight; // = vec4(1.0, 0.98, 0.92, 1.0)\n// @param Random seed: another value gives other facets, turning in another order\nuniform float seed; // = 0.0\n\n// half width of the antialiased seams, in frame heights\nconst float AA = 0.0015;\n\nvec2 hash22(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * vec3(0.1031, 0.1030, 0.0973));\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.xx + p3.yz) * p3.zy);\n}\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n // 0 at both ends, 1 in the middle: the glass builds up, then flattens out\n float h = 1.0 - abs(2.0 * progress - 1.0);\n float amount = h * h * (3.0 - 2.0 * h);\n\n float n = max(facets, 1.0);\n vec2 aspect = vec2(ratio, 1.0);\n // measured in square pixels, so the facets are not stretched\n vec2 p = uv * aspect * n;\n vec2 i = floor(p);\n vec2 f = p - i;\n vec2 offset = vec2(17.31, 41.97) * seed;\n // width of the bevels, in facet sizes\n float bw = 0.18 * amount;\n\n // nearest facet center\n vec2 mg = vec2(0.0);\n vec2 mr = vec2(0.0);\n float md = 8.0;\n for (int y = -1; y <= 1; y++) {\n for (int x = -1; x <= 1; x++) {\n vec2 g = vec2(float(x), float(y));\n vec2 r = g + 0.1 + 0.8 * hash22(i + g + offset) - f;\n float d = dot(r, r);\n if (d < md) {\n md = d;\n mr = r;\n mg = g;\n }\n }\n }\n\n // distance to the nearest facet edge, and the direction toward the edges, blended\n // between neighboring edges near the corners so the bevel lighting turns smoothly\n float edge = 8.0;\n vec2 normal = vec2(0.0);\n for (int y = -2; y <= 2; y++) {\n for (int x = -2; x <= 2; x++) {\n vec2 g = mg + vec2(float(x), float(y));\n vec2 r = g + 0.1 + 0.8 * hash22(i + g + offset) - f;\n vec2 dr = r - mr;\n if (dot(dr, dr) > 0.00001) {\n vec2 dn = normalize(dr);\n float e = dot(0.5 * (mr + r), dn);\n edge = min(edge, e);\n float w = max(1.0 - e / bw, 0.0);\n normal += dn * w * w;\n }\n }\n }\n float nl = length(normal);\n normal = nl > 0.0 ? normal / nl : vec2(0.0);\n\n // the facet's own random cut: a shift, a zoom and a tilt\n vec2 id = i + mg + offset;\n vec2 h1 = hash22(id + 31.7);\n vec2 h2 = hash22(id + 59.3);\n vec2 h3 = hash22(id + 97.1);\n float angle = 6.2831853 * h1.x;\n vec2 dir = vec2(cos(angle), sin(angle));\n vec2 shift = dir * (0.4 + 0.6 * h1.y) * refraction;\n float zoom = (h2.x - 0.5) * 6.0 * refraction;\n float tilt = (h2.y - 0.5) * 2.0 * refraction;\n\n // from the facet center to the pixel, in frame heights\n vec2 q = -mr / n;\n vec2 view = -q * zoom + vec2(-q.y, q.x) * sin(tilt) + q * (cos(tilt) - 1.0);\n\n // the bevel along the facet's edge: 1 on the edge, 0 inside\n float bv = 1.0 - smoothstep(0.0, bw, edge);\n bv *= bv;\n // the bevel bends the image outward, more strongly than the flat facet\n vec2 bend = normal * bv * 0.4 * refraction;\n\n // the facet turns to the incoming image at its own time, and its view turns over with it\n float start = 0.15 + 0.5 * h3.x;\n float m = smoothstep(start, start + 0.2, progress);\n vec2 d = amount * (view + bend);\n vec2 s = amount * shift;\n vec4 ca = getFromColor(mirror(uv + (s + d) / aspect));\n vec4 cb = getToColor(mirror(uv + (d - s) / aspect));\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(ca.rgb * ca.a, ca.a), vec4(cb.rgb * cb.a, cb.a), m);\n\n // light from the top left: each flat facet catches it a little differently\n vec2 light = normalize(vec2(-0.6, 0.8));\n vec2 slope = dir * (0.4 + 0.6 * h1.y);\n float facetLight = 0.12 * amount * dot(slope, light);\n // the bevels catch it strongly on one side and shade the other\n float lit = dot(normal, light);\n float k = clamp(bevel, 0.0, 1.0);\n float glow = k * bv * max(lit, 0.0) * 1.1 * amount;\n float shade = k * bv * max(-lit, 0.0) * 0.6 * amount;\n // a glint as the facet turns over\n float turn = sin(3.14159265 * m);\n glow += k * 0.15 * amount * turn * turn;\n // thin dark seams between the facets\n float seam = 0.6 * amount * (1.0 - smoothstep(0.0, 2.0 * AA, edge / n - 0.5 * AA));\n\n c.rgb *= (1.0 + facetLight) * (1.0 - shade) * (1.0 - seam);\n c.rgb += highlight.rgb * highlight.a * glow * c.a;\n return c.a > 0.0 ? vec4(clamp(c.rgb / c.a, 0.0, 1.0), c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The frame is seen through a pane of irregular cut-glass facets, each one showing its own shifted, zoomed and tilted view of the image, with bright beveled edges and thin dark seams; the facets turn to the incoming image one by one, then the glass flattens out and clears","tags":["glass","refraction","facets","voronoi","distortion"],"params":{"facets":{"type":"float","default":5,"min":2,"max":20,"description":"Number of facets across the height of the frame"},"refraction":{"type":"float","default":0.1,"min":0,"max":0.3,"description":"How far each facet shifts its view of the image at the peak"},"bevel":{"type":"float","default":0.6,"min":0,"max":1,"description":"Strength of the highlights and shadows along the beveled edges, and of the glint as each facet turns"},"highlight":{"type":"vec4","default":[1,0.98,0.92,1],"color":true,"description":"Color of the light caught by the bevels"},"seed":{"type":"float","default":0,"description":"Random seed: another value gives other facets, turning in another order"}},"textures":[],"createdAt":"Fri, 6 Nov 2026 19:40:38 +0100","updatedAt":"Fri, 6 Nov 2026 19:40:38 +0100"},{"name":"Fade","paramsTypes":{},"defaultParams":{},"glsl":"// Author: gre\n// License: MIT\n// Description: A linear crossfade between the two images\n// Tags: fade, blend\n\nvec4 transition (vec2 uv) {\n return mix(\n getFromColor(uv),\n getToColor(uv),\n progress\n );\n}\n","author":"gre","license":"MIT","description":"A linear crossfade between the two images","tags":["fade","blend"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"FadeColor","paramsTypes":{"color":"vec4","colorPhase":"float"},"defaultParams":{"color":[0,0,0,1],"colorPhase":0.4},"glsl":"// Author: gre\n// License: MIT\n// Description: A fade through a solid color, black by default\n// Tags: fade, color\n// @color Color to fade through\nuniform vec4 color; // = vec4(0.0, 0.0, 0.0, 1.0)\n// @range(0, 1) How long the color shows in the middle\nuniform float colorPhase; // = 0.4 ; // if 0.0, there is no black phase, if 0.9, the black phase is very important\nvec4 transition (vec2 uv) {\n return mix(\n mix(color, getFromColor(uv), smoothstep(1.0-colorPhase, 0.0, progress)),\n mix(color, getToColor(uv), smoothstep( colorPhase, 1.0, progress)),\n progress);\n}\n","author":"gre","license":"MIT","description":"A fade through a solid color, black by default","tags":["fade","color"],"params":{"color":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color to fade through"},"colorPhase":{"type":"float","default":0.4,"min":0,"max":1,"description":"How long the color shows in the middle"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"FadeGrayscale","paramsTypes":{"intensity":"float"},"defaultParams":{"intensity":0.3},"glsl":"// Author: gre\n// License: MIT\n// Description: A crossfade through grayscale\n// Tags: fade, grayscale, color\n\n// @range(0, 1) How long the grayscale phase lasts\nuniform float intensity; // = 0.3; // if 0.0, the image directly turn grayscale, if 0.9, the grayscale transition phase is very important\n \nvec3 grayscale (vec3 color) {\n return vec3(0.2126*color.r + 0.7152*color.g + 0.0722*color.b);\n}\n \nvec4 transition (vec2 uv) {\n vec4 fc = getFromColor(uv);\n vec4 tc = getToColor(uv);\n return mix(\n mix(vec4(grayscale(fc.rgb), fc.a), fc, smoothstep(1.0-intensity, 0.0, progress)),\n mix(vec4(grayscale(tc.rgb), tc.a), tc, smoothstep( intensity, 1.0, progress)),\n progress);\n}\n","author":"gre","license":"MIT","description":"A crossfade through grayscale","tags":["fade","grayscale","color"],"params":{"intensity":{"type":"float","default":0.3,"min":0,"max":1,"description":"How long the grayscale phase lasts"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"FallOver","paramsTypes":{"perspective":"float","shading":"float"},"defaultParams":{"perspective":0.8,"shading":0.7},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image falls over backward, hinged on its bottom edge, revealing the incoming one behind it\n// Tags: rotate, vertical, 3d\n\n// @range(0, 1) Strength of the perspective\nuniform float perspective; // = 0.8\n// @range(0, 1) How much the image darkens as it falls\nuniform float shading; // = 0.7\n\nconst float PI = 3.141592653589793;\n\nvec4 transition (vec2 uv) {\n // it starts slowly, then gravity takes over\n float fall = progress * (0.25 + 0.75 * progress);\n float angle = 0.5 * PI * fall;\n float c = cos(angle), s = sin(angle);\n // a camera in front of the middle of the image goes down to the level of the hinge,\n // so that the image ends edge-on\n float dist = 1.0 / max(perspective, 0.01);\n vec3 eye = vec3(0.5 * ratio, 0.5 * c, -dist);\n vec3 dir = vec3(uv.x * ratio, uv.y, 0.0) - eye;\n // cast a ray onto the plane of the image turned back by angle around its bottom edge\n float den = dir.z * c - dir.y * s;\n if (den > 0.0) {\n float t = (eye.y * s - eye.z * c) / den;\n vec3 hit = eye + t * dir;\n vec2 puv = vec2(hit.x / ratio, hit.y * c + hit.z * s);\n if (t > 0.0 && puv.y > 0.0 && puv.y <= 1.0 && puv.x >= 0.0 && puv.x <= 1.0) {\n vec4 col = getFromColor(puv);\n return vec4(col.rgb * (1.0 - shading * s), col.a);\n }\n }\n return getToColor(uv);\n}\n","author":"gre","license":"MIT","description":"The outgoing image falls over backward, hinged on its bottom edge, revealing the incoming one behind it","tags":["rotate","vertical","3d"],"params":{"perspective":{"type":"float","default":0.8,"min":0,"max":1,"description":"Strength of the perspective"},"shading":{"type":"float","default":0.7,"min":0,"max":1,"description":"How much the image darkens as it falls"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:18:48 +0100","updatedAt":"Sat, 31 Oct 2026 18:18:48 +0100"},{"name":"FilmBurn","paramsTypes":{"Seed":"float"},"defaultParams":{"Seed":2.31},"glsl":"// Author: Anastasia Dunbar\n// License: MIT\n// Description: Glowing film-burn light leaks wash over the image and reveal the incoming one\n// Tags: burn, film, light-leak\n// @param Random seed\nuniform float Seed; // = 2.31\nfloat sigmoid(float x, float a) {\n float b = pow(x*2.,a)/2.;\n if (x > .5) {\n b = 1.-pow(2.-(x*2.),a)/2.;\n }\n\treturn b;\n}\nfloat rand(float co){\n return fract(sin((co*24.9898)+Seed)*43758.5453);\n}\nfloat rand(vec2 co){\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\nfloat apow(float a,float b) { return pow(abs(a),b)*sign(b); }\nvec3 pow3(vec3 a,vec3 b) { return vec3(apow(a.r,b.r),apow(a.g,b.g),apow(a.b,b.b)); }\nfloat smooth_mix(float a,float b,float c) { return mix(a,b,sigmoid(c,2.)); }\nfloat random(vec2 co, float shft){\n co += 10.;\n return smooth_mix(fract(sin(dot(co.xy ,vec2(12.9898+(floor(shft)*.5),78.233+Seed))) * 43758.5453),fract(sin(dot(co.xy ,vec2(12.9898+(floor(shft+1.)*.5),78.233+Seed))) * 43758.5453),fract(shft));\n}\nfloat smooth_random(vec2 co, float shft) {\n\treturn smooth_mix(smooth_mix(random(floor(co),shft),random(floor(co+vec2(1.,0.)),shft),fract(co.x)),smooth_mix(random(floor(co+vec2(0.,1.)),shft),random(floor(co+vec2(1.,1.)),shft),fract(co.x)),fract(co.y));\n}\nvec4 blendedColor(vec2 p) {\n return mix(getFromColor(p), getToColor(p), sigmoid(progress,10.));\n}\n#define pi 3.14159265358979323\n#define clamps(x) clamp(x,0.,1.)\n\nvec4 transition(vec2 p) {\n vec3 f = vec3(0.);\n for (float i = 0.; i < 13.; i++) {\n f += sin(((p.x*rand(i)*6.)+(progress*8.))+rand(i+1.43))*sin(((p.y*rand(i+4.4)*6.)+(progress*6.))+rand(i+2.4));\n f += 1.-clamps(length(p-vec2(smooth_random(vec2(progress*1.3),i+1.),smooth_random(vec2(progress*.5),i+6.25)))*mix(20.,70.,rand(i)));\n }\n f += 4.;\n f /= 11.;\n f = pow3(f*vec3(1.,0.7,0.6),vec3(1.,2.-sin(progress*pi),1.3));\n f *= sin(progress*pi);\n \n p -= .5;\n p *= 1.+(smooth_random(vec2(progress*5.),6.3)*sin(progress*pi)*.05);\n p += .5;\n \n vec4 blurred_image = vec4(0.);\n float bluramount = sin(progress*pi)*.03;\n #define repeats 50.\n for (float i = 0.; i < repeats; i++) { \n vec2 q = vec2(cos(degrees((i/repeats)*360.)),sin(degrees((i/repeats)*360.))) * (rand(vec2(i,p.x+p.y))+bluramount); \n vec2 uv2 = p+(q*bluramount);\n blurred_image += blendedColor(uv2);\n }\n blurred_image /= repeats;\n \n return blurred_image+vec4(f,0.);\n}\n","author":"Anastasia Dunbar","license":"MIT","description":"Glowing film-burn light leaks wash over the image and reveal the incoming one","tags":["burn","film","light-leak"],"params":{"Seed":{"type":"float","default":2.31,"description":"Random seed"}},"textures":[],"createdAt":"Wed, 21 Feb 2018 20:52:13 +0100","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"FilmDissolve","paramsTypes":{"overlap":"float","smoothness":"float"},"defaultParams":{"overlap":0.25,"smoothness":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: A cross-dissolve blended in linear light, as light adds up on film: the frame keeps its brightness all the way through and the highlights of each image shine through the other\n// Tags: dissolve, fade, blend, light\n\n// @range(0, 1) Extra light where the two images overlap at mid-dissolve, softly rolled off so it never clips\nuniform float overlap; // = 0.25\n// @range(0, 1) Easing of the dissolve: 0 is linear, 1 eases in and out\nuniform float smoothness; // = 0.5\n\n// sRGB to linear light (the exact piecewise curve)\nvec3 toLinear(vec3 c) {\n vec3 lo = c / 12.92;\n vec3 hi = pow((c + 0.055) / 1.055, vec3(2.4));\n return mix(lo, hi, vec3(greaterThan(c, vec3(0.04045))));\n}\n\n// linear light back to sRGB\nvec3 toSrgb(vec3 c) {\n vec3 lo = c * 12.92;\n vec3 hi = 1.055 * pow(c, vec3(1.0 / 2.4)) - 0.055;\n return mix(lo, hi, vec3(greaterThan(c, vec3(0.0031308))));\n}\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return b;\n\n float t = mix(progress, smoothstep(0.0, 1.0, progress), smoothness);\n\n // premultiplied linear light\n vec3 la = toLinear(clamp(a.rgb, 0.0, 1.0)) * a.a;\n vec3 lb = toLinear(clamp(b.rgb, 0.0, 1.0)) * b.a;\n vec3 base = mix(la, lb, t);\n float alpha = mix(a.a, b.a, t);\n\n // the overlap: each image stays brighter for longer, as in an additive dissolve,\n // rolled off toward full exposure so that bright areas glow instead of clipping\n float extra = overlap * min(t, 1.0 - t);\n vec3 excess = extra * (la + lb);\n vec3 room = max(vec3(alpha) - base, vec3(1e-5));\n vec3 color = base + room * (1.0 - exp(-excess / room));\n\n if (alpha <= 0.0) return vec4(0.0);\n return vec4(toSrgb(clamp(color / alpha, 0.0, 1.0)), alpha);\n}\n","author":"gre","license":"MIT","description":"A cross-dissolve blended in linear light, as light adds up on film: the frame keeps its brightness all the way through and the highlights of each image shine through the other","tags":["dissolve","fade","blend","light"],"params":{"overlap":{"type":"float","default":0.25,"min":0,"max":1,"description":"Extra light where the two images overlap at mid-dissolve, softly rolled off so it never clips"},"smoothness":{"type":"float","default":0.5,"min":0,"max":1,"description":"Easing of the dissolve: 0 is linear, 1 eases in and out"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:33:12 +0100","updatedAt":"Sun, 1 Nov 2026 20:33:12 +0100"},{"name":"FilmStrip","paramsTypes":{"frames":"int","shrink":"float","blur":"float","weave":"float","filmColor":"vec4","holeColor":"vec4"},"defaultParams":{"frames":2,"shrink":0.2,"blur":0.5,"weave":0.5,"filmColor":[0.06,0.05,0.05,1],"holeColor":[0.96,0.93,0.85,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The picture slips like film in a projector gate: it shrinks to show the sprocket holes, the strip runs down with motion blur and a slight weave, then the incoming frame lands in place\n// Tags: retro, vertical, motion-blur, film\n\n// @range(1, 6, 1) Number of frames that slip by\nuniform int frames; // = 2\n// @range(0, 0.4) How much the picture shrinks during the slip, showing the film's edges\nuniform float shrink; // = 0.2\n// @range(0, 1) Length of the motion blur at full speed\nuniform float blur; // = 0.5\n// @range(0, 1) Amount of horizontal weave and vertical jitter\nuniform float weave; // = 0.5\n// @color Color of the film around the pictures and of the line between frames\nuniform vec4 filmColor; // = vec4(0.06, 0.05, 0.05, 1.0)\n// @color Color of the light through the sprocket holes\nuniform vec4 holeColor; // = vec4(0.96, 0.93, 0.85, 1.0)\n\n// height of the line between two frames, in frame heights\nconst float FRAME_LINE = 0.08;\n// sprocket holes per frame\nconst float HOLES = 4.0;\nconst int SAMPLES = 16;\n\n// a fine, evenly spread dither pattern over small cells of the frame\nfloat dither(vec2 cell) {\n return fract(52.9829189 * fract(dot(cell, vec2(0.06711056, 0.00583715))));\n}\n\n// the film at (x, y): x across it (0 to 1 over the picture), y along it from the start of frame\n// number base, in frame heights; holes fades the sprocket holes in\nvec4 film(float x, float y, float base, float n, float aa, float holeX, vec2 holeSize, float holes) {\n float pitch = 1.0 + FRAME_LINE;\n float jy = floor(y / pitch);\n float j = base + jy;\n float fy = y - jy * pitch;\n vec4 c = filmColor;\n if (x >= 0.0 && x <= 1.0 && fy <= 1.0) {\n vec2 q = vec2(x, fy);\n c = j < n ? getFromColor(q) : getToColor(q);\n }\n // soft edges for the picture during the slip (none at rest, where it fills the frame)\n float inside = min(min(x, 1.0 - x) * ratio, min(fy, 1.0 - fy));\n c = mix(filmColor, c, clamp(inside / aa + 0.5, 0.0, 1.0));\n // the sprocket holes, in the margins on both sides, in frame heights\n float hy = mod(y, pitch / HOLES) - 0.5 * pitch / HOLES;\n float hx = (abs(x - 0.5) - holeX) * ratio;\n vec2 dd = abs(vec2(hx, hy)) - holeSize + 0.3 * holeSize.x;\n float sd = length(max(dd, 0.0)) + min(max(dd.x, dd.y), 0.0) - 0.3 * holeSize.x;\n return mix(c, holeColor, clamp(0.5 - sd / aa, 0.0, 1.0) * holes);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n float n = max(float(frames), 1.0);\n float pitch = 1.0 + FRAME_LINE;\n float p = progress;\n // the picture shrinks first, slips, then grows back\n float env = smoothstep(0.0, 0.3, p) * (1.0 - smoothstep(0.7, 1.0, p));\n float k = 1.0 - shrink * env;\n // the slip, in frames: smooth start and landing\n float x0 = clamp((p - 0.15) / 0.7, 0.0, 1.0);\n float slip = x0 * x0 * x0 * (x0 * (x0 * 6.0 - 15.0) + 10.0);\n float speed = 30.0 * x0 * x0 * (1.0 - x0) * (1.0 - x0) / 0.7; // d(slip)/d(progress), up to ~2.7\n // weave and jitter, only while the film moves\n float wob = weave * env;\n // (the weave stays within the film's margin)\n float dx = wob * smoothstep(0.0, 0.1, shrink) * (0.006 * sin(p * 47.0) + 0.004 * sin(p * 113.0 + 1.3));\n float dy = wob * 0.012 * sin(p * 71.0 + 0.4) * (1.0 - speed / 2.7);\n\n // the frames slipped by so far: whole frames, and the position within the current one\n float frameSlip = slip * n;\n float base = floor(frameSlip);\n float x = (uv.x - 0.5) / k + 0.5 + dx;\n float y = (uv.y - 0.5) / k + 0.5 + dy + (frameSlip - base) * pitch;\n // anti-aliasing width, in frame heights: none at rest or without margin\n float aa = 0.002 * min(1.0, 10.0 * env) * min(1.0, 20.0 * shrink) + 1e-4;\n // the holes sit in the middle of the margin the shrinking picture shows\n float margin = 0.5 * shrink / max(1.0 - shrink, 0.01);\n float holeX = 0.5 + 0.5 * margin;\n vec2 holeSize = vec2(0.28 * margin * ratio, 0.11 * pitch / HOLES);\n float holes = smoothstep(0.0, 0.02, margin);\n\n // motion blur along the strip, dithered to hide the steps\n float len = blur * 0.06 * speed * n;\n vec4 color = vec4(0.0);\n if (len < 1e-5) {\n color = film(x, y, base, n, aa, holeX, holeSize, holes);\n } else {\n // averaged with premultiplied colors, so transparent parts don't darken the others\n float jitter = dither(floor(uv * vec2(ratio, 1.0) * 540.0));\n for (int i = 0; i < SAMPLES; i++) {\n float t = (float(i) + jitter) / float(SAMPLES) - 0.5;\n vec4 c = film(x, y + t * len, base, n, aa, holeX, holeSize, holes);\n color += vec4(c.rgb * c.a, c.a);\n }\n color /= float(SAMPLES);\n color.rgb = color.a > 0.0 ? color.rgb / color.a : vec3(0.0);\n }\n // the projector's light flickers a little while the film runs\n color.rgb *= 1.0 - 0.08 * wob * (0.5 + 0.5 * sin(p * 157.0));\n return color;\n}\n","author":"gre","license":"MIT","description":"The picture slips like film in a projector gate: it shrinks to show the sprocket holes, the strip runs down with motion blur and a slight weave, then the incoming frame lands in place","tags":["retro","vertical","motion-blur","film"],"params":{"frames":{"type":"int","default":2,"min":1,"max":6,"step":1,"description":"Number of frames that slip by"},"shrink":{"type":"float","default":0.2,"min":0,"max":0.4,"description":"How much the picture shrinks during the slip, showing the film's edges"},"blur":{"type":"float","default":0.5,"min":0,"max":1,"description":"Length of the motion blur at full speed"},"weave":{"type":"float","default":0.5,"min":0,"max":1,"description":"Amount of horizontal weave and vertical jitter"},"filmColor":{"type":"vec4","default":[0.06,0.05,0.05,1],"color":true,"description":"Color of the film around the pictures and of the line between frames"},"holeColor":{"type":"vec4","default":[0.96,0.93,0.85,1],"color":true,"description":"Color of the light through the sprocket holes"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:37:57 +0100","updatedAt":"Sun, 1 Nov 2026 20:37:57 +0100"},{"name":"Fisheye","paramsTypes":{"strength":"float"},"defaultParams":{"strength":0.8},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image bulges toward the viewer through a strong fisheye lens, then the incoming one flattens back into place\n// Tags: lens, distort, zoom, blend\n\n// @range(0, 1) Strength of the lens at its peak\nuniform float strength; // = 0.8\n\nvec4 transition(vec2 uv) {\n // lens amount: grows, peaks in the middle, then relaxes, eased so that\n // the magnification of the center (1 / (1 - k)) changes at an even pace\n float h = smoothstep(0.0, 1.0, 1.0 - abs(2.0 * progress - 1.0));\n float k = 1.0 - pow(max(1.0 - strength, 0.01), h);\n // round lens: aspect-corrected coordinates, 1.0 at the corners\n vec2 aspect = vec2(ratio, 1.0);\n vec2 c = (uv - 0.5) * aspect;\n float r = length(c) / length(0.5 * aspect);\n // barrel mapping that keeps the corners in place: the center is magnified,\n // the edges squeezed, and every sample stays inside the image\n vec2 q = 0.5 + (uv - 0.5) * (1.0 - k + k * r * r);\n return mix(getFromColor(q), getToColor(q), smoothstep(0.38, 0.62, progress));\n}\n","author":"gre","license":"MIT","description":"The outgoing image bulges toward the viewer through a strong fisheye lens, then the incoming one flattens back into place","tags":["lens","distort","zoom","blend"],"params":{"strength":{"type":"float","default":0.8,"min":0,"max":1,"description":"Strength of the lens at its peak"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:20:26 +0100","updatedAt":"Sat, 31 Oct 2026 18:20:26 +0100"},{"name":"FlameWipe","paramsTypes":{"direction":"vec2","height":"float","scorch":"float","glow":"float","color":"vec3"},"defaultParams":{"direction":[0,1],"height":0.4,"scorch":0.7,"glow":0.6,"color":[1,0.4,0.08]},"glsl":"// Author: gre\n// License: MIT\n// Description: A wall of flames sweeps across the frame, scorching the outgoing image ahead of it and leaving the incoming image under a fading warm glow\n// Tags: fire, flame, burn, wipe, directional\n\n// @param Direction in which the flames sweep across the frame\nuniform vec2 direction; // = vec2(0.0, 1.0)\n// @range(0, 1) Height of the flames, as a fraction of the frame height\nuniform float height; // = 0.4\n// @range(0, 1) How much the outgoing image browns and chars ahead of the flames\nuniform float scorch; // = 0.7\n// @range(0, 1) Strength of the warm glow left on the incoming image\nuniform float glow; // = 0.6\n// @color Tint of the body of the flames\nuniform vec3 color; // = vec3(1.0, 0.4, 0.08)\n\n// width of the scorched band ahead of the flames, and of the glow behind them\nconst float BAND = 0.45;\n// how far off the frame the front starts and ends\nconst float PAD = 0.3;\n// how far the front of the fire wanders around its straight line\nconst float RAGGED = 0.05;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\nfloat noise(vec2 v) {\n vec2 i = floor(v);\n vec2 f = v - i;\n f = f * f * (3.0 - 2.0 * f);\n return mix(mix(hash12(i), hash12(i + vec2(1.0, 0.0)), f.x),\n mix(hash12(i + vec2(0.0, 1.0)), hash12(i + vec2(1.0, 1.0)), f.x), f.y);\n}\n\nfloat fbm(vec2 v) {\n float sum = 0.0;\n float amp = 0.5;\n for (int i = 0; i < 4; i++) {\n sum += amp * noise(v);\n v = v * 2.03 + vec2(17.3, 9.1);\n amp *= 0.5;\n }\n return sum / 0.9375;\n}\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// color of the fire by its heat: dark red tips, a tinted body, a white-yellow core\nvec3 fire(float h) {\n vec3 c = mix(vec3(0.22, 0.01, 0.0), color * color * vec3(1.0, 0.6, 0.4), smoothstep(0.0, 0.3, h));\n c = mix(c, color, smoothstep(0.25, 0.55, h));\n c = mix(c, vec3(1.0, 0.8, 0.35), smoothstep(0.55, 0.8, h));\n return mix(c, vec3(1.0, 0.96, 0.82), smoothstep(0.8, 1.0, h));\n}\n\n// width of a flame tongue climbing along an upright line, from its base (s = 0) to its tip\n// (s = 1), with a random size\nfloat climbing(float s, float size) {\n return (0.42 + 0.56 * size) * 6.75 * s * (1.0 - s) * (1.0 - s);\n}\n\nvec4 transition(vec2 uv) {\n vec2 dir = length(direction) > 1e-5 ? normalize(direction) : vec2(1.0, 0.0);\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0);\n // the flames rise upward from the front: over this distance along the direction\n float rise = height * dir.y;\n // half-width of the burning line, and how far it swells\n float w = 0.05 + 0.35 * height;\n float reach = w * (1.75 + 0.6 * abs(dir.x));\n // the front crosses the frame at the same pace whatever the height of the flames\n float extent = 0.5 * (abs(dir.x) * ratio + abs(dir.y)) + PAD;\n float e = mix(progress, progress * progress * (3.0 - 2.0 * progress), 0.3);\n // the fire catches at the start and dies out at the end, the scorch grows in, the glow fades\n float burn = smoothstep(0.0, 0.12, progress) * (1.0 - smoothstep(0.88, 1.0, progress));\n float scorchAmount = scorch * smoothstep(0.0, 0.2, progress);\n float glowAmount = glow * (1.0 - smoothstep(0.75, 1.0, progress));\n // the flames flicker as they go\n float t = progress * 5.0;\n\n float side = dot(q, vec2(-dir.y, dir.x));\n float front = mix(-extent, extent, e) + RAGGED * (2.0 * noise(vec2(side * 4.0, t * 0.4)) - 1.0);\n // > 0 ahead of the fire, on the outgoing image\n float k = dot(q, dir) - front;\n\n // heat before the turbulence: the burning line, and the flames rising from it.\n // Billows rising in screen space swell and thin the line; where it stands upright,\n // they are tongues climbing along it, each widest at its base and pointed at its tip\n float billow = noise(vec2(q.x * 3.0 + 5.0, q.y * 2.5 - t * 1.6));\n float y = q.y * 3.0 - t * 1.4;\n float y2 = y + 0.5;\n float climb = max(climbing(fract(y), hash12(vec2(floor(y), 3.0))),\n climbing(fract(y2), hash12(vec2(floor(y2), 7.0))));\n billow = mix(billow, 0.4 * billow + climb, abs(dir.x));\n float lineWidth = w * (0.25 + 1.5 * billow);\n float line = 1.0 - smoothstep(0.0, lineWidth, abs(k));\n float tongue = 0.0;\n if (abs(rise) > 1e-4) {\n float s = k / rise;\n if (s >= 0.0) tongue = clamp(1.0 - s, 0.0, 1.0);\n }\n float heat = max(line, tongue) * burn;\n float near = 1.0 - smoothstep(0.0, BAND, abs(k));\n\n // the outgoing image shimmers in the heat ahead of the fire\n vec2 h = q * vec2(9.0, 5.0) + vec2(0.0, -t * 3.0);\n vec2 shimmer = (vec2(noise(h), noise(h + 31.7)) - 0.5) * 0.012 * min(near + heat, 1.0) * burn;\n vec4 a = getFromColor(mirror(uv + shimmer));\n vec4 b = getToColor(uv);\n\n // the outgoing image browns, then chars close to the flames\n float brown = k > 0.0 ? scorchAmount * near : 0.0;\n float lum = dot(a.rgb, vec3(0.299, 0.587, 0.114));\n a.rgb = mix(a.rgb, lum * vec3(0.9, 0.55, 0.28), brown) * (1.0 - 0.35 * brown) * (1.0 - 0.9 * brown * near * near);\n // the incoming image under a warm glow fading away from the fire\n float g = k < 0.0 ? glowAmount * near : 0.0;\n b.rgb = b.rgb * mix(vec3(1.0), vec3(1.0, 0.6, 0.35), 0.7 * g) + color * 0.4 * g * g;\n\n // far from the fire, only one of the images shows\n if (k >= max(BAND, max(rise, reach))) return a.a > 0.0 ? a : vec4(0.0);\n if (-k >= max(BAND, max(-rise, reach))) return b.a > 0.0 ? b : vec4(0.0);\n\n // the two images meet under the burning line (mixed premultiplied)\n float m = smoothstep(-0.5 * w, 0.5 * w, k);\n vec4 c = mix(vec4(b.rgb * b.a, b.a), vec4(a.rgb * a.a, a.a), m);\n if (c.a <= 0.0) return vec4(0.0);\n vec3 col = c.rgb / c.a;\n\n // turbulence rising in screen space, stretched upward and swaying into pointed tongues\n vec2 f = vec2(q.x * mix(10.0, 6.0, abs(dir.x)), q.y * mix(1.8, 3.2, abs(dir.x)) - t * 2.4);\n float sway = fbm(vec2(q.x * 2.5, q.y * 1.5 - t * 1.2));\n float n = fbm(f + vec2(1.5 * sway - 0.75, 0.0));\n n = clamp(1.7 * n - 0.35, 0.0, 1.0);\n // a continuous hot core hugging the base of the flames\n float core = (1.0 - smoothstep(0.0, 0.35 * lineWidth, abs(k + 0.4 * w * (sway - 0.5)))) * burn * (1.0 - 0.5 * abs(dir.x));\n // under the flames, where they take root, the turbulence calms down into a soft glow\n float root = rise > 0.0 ? clamp(-k / w, 0.0, 1.0) : rise < 0.0 ? clamp(k / w, 0.0, 1.0) : 0.0;\n root *= abs(dir.y);\n float flame = clamp(heat * 0.95 + 0.45 * core * (0.75 + 0.25 * n) - (1.0 - n) * 1.1 * (1.0 - 0.8 * root), 0.0, 1.0);\n\n // the flames darken what is behind their body and add their light, with a soft halo;\n // the alpha stays the image's\n // crisp around the tongues, soft at their roots\n float body = smoothstep(0.0, 0.08 + 0.5 * root, flame);\n col = col * (1.0 - 0.7 * body) + fire(flame) * (0.45 + 0.65 * flame) * body;\n col += color * 0.25 * heat * heat * (1.0 - body);\n return vec4(clamp(col, 0.0, 1.0), c.a);\n}\n","author":"gre","license":"MIT","description":"A wall of flames sweeps across the frame, scorching the outgoing image ahead of it and leaving the incoming image under a fading warm glow","tags":["fire","flame","burn","wipe","directional"],"params":{"direction":{"type":"vec2","default":[0,1],"description":"Direction in which the flames sweep across the frame"},"height":{"type":"float","default":0.4,"min":0,"max":1,"description":"Height of the flames, as a fraction of the frame height"},"scorch":{"type":"float","default":0.7,"min":0,"max":1,"description":"How much the outgoing image browns and chars ahead of the flames"},"glow":{"type":"float","default":0.6,"min":0,"max":1,"description":"Strength of the warm glow left on the incoming image"},"color":{"type":"vec3","default":[1,0.4,0.08],"color":true,"description":"Tint of the body of the flames"}},"textures":[],"createdAt":"Tue, 3 Nov 2026 09:42:36 +0100","updatedAt":"Tue, 3 Nov 2026 09:42:36 +0100"},{"name":"FlashFade","paramsTypes":{"color":"vec3"},"defaultParams":{"color":[0.9,0.4,0.2]},"glsl":"// Author: gre\n// License: MIT\n// Description: A crossfade that brightens toward a color in the middle\n// Tags: fade, color, flash\n// @color Color the images brighten toward\nuniform vec3 color /* = vec3(0.9, 0.4, 0.2) */;\nvec4 transition (vec2 uv) {\n return mix(\n getFromColor(uv) + vec4(progress*color, 0.0),\n getToColor(uv) + vec4((1.0-progress)*color, 0.0),\n progress\n );\n}\n","author":"gre","license":"MIT","description":"A crossfade that brightens toward a color in the middle","tags":["fade","color","flash"],"params":{"color":{"type":"vec3","default":[0.9,0.4,0.2],"color":true,"description":"Color the images brighten toward"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"FlowerWipe","paramsTypes":{"segments":"int"},"defaultParams":{"segments":5},"glsl":"// Author: Fernando Kuteken\n// License: MIT\n// Description: A flower shape with several petals grows to reveal the incoming image\n// Tags: shape, wipe, polar\n\n#define PI 3.14159265359\n\n// @param Number of petals\nuniform int segments; // = 5\n\nvec4 transition (vec2 uv) {\n \n float angle = atan(uv.y - 0.5, uv.x - 0.5) - 0.5 * PI;\n float normalized = (angle + 1.5 * PI) * (2.0 * PI);\n \n float radius = (cos(float(segments) * angle) + 4.0) / 4.0;\n float difference = length(uv - vec2(0.5, 0.5));\n \n if (difference > radius * progress)\n return getFromColor(uv);\n else\n return getToColor(uv);\n}\n","author":"Fernando Kuteken","license":"MIT","description":"A flower shape with several petals grows to reveal the incoming image","tags":["shape","wipe","polar"],"params":{"segments":{"type":"int","default":5,"description":"Number of petals"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"FlyEye","paramsTypes":{"size":"float","zoom":"float","colorSeparation":"float"},"defaultParams":{"size":0.04,"zoom":50,"colorSeparation":0.3},"glsl":"// Author: gre\n// License: MIT\n// Description: The image breaks into a fly's-eye grid of lenses with color separation\n// Tags: lens, distort, chromatic\nuniform float size; // = 0.04\nuniform float zoom; // = 50.0\nuniform float colorSeparation; // = 0.3\n\nvec4 transition(vec2 p) {\n float inv = 1. - progress;\n vec2 disp = size*vec2(cos(zoom*p.x), sin(zoom*p.y));\n vec4 texTo = getToColor(p + inv*disp);\n vec4 fromCenter = getFromColor(p + progress*disp);\n vec4 texFrom = vec4(\n getFromColor(p + progress*disp*(1.0 - colorSeparation)).r,\n fromCenter.g,\n getFromColor(p + progress*disp*(1.0 + colorSeparation)).b,\n fromCenter.a);\n return texTo*progress + texFrom*inv;\n}\n","author":"gre","license":"MIT","description":"The image breaks into a fly's-eye grid of lenses with color separation","tags":["lens","distort","chromatic"],"params":{"size":{"type":"float","default":0.04},"zoom":{"type":"float","default":50},"colorSeparation":{"type":"float","default":0.3}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"Fold","paramsTypes":{},"defaultParams":{},"glsl":"// Author: nwoeanhinnogaehr\n// License: MIT\n// Description: The incoming image unfolds from the left while the outgoing one folds away to the right\n// Tags: fold, slide, horizontal\n// Ported from https://gist.github.com/nwoeanhinnogaehr/f6fc39f4cfcbb97f96a6\n\nvec4 transition(vec2 uv) {\n // Only sample the visible side: the other one divides by zero at progress 0 and 1.\n if (progress == 0.0 || uv.x > progress) return getFromColor((uv - vec2(progress, 0.0)) / vec2(1.0 - progress, 1.0));\n return getToColor(uv / vec2(progress, 1.0));\n}\n","author":"nwoeanhinnogaehr","license":"MIT","description":"The incoming image unfolds from the left while the outgoing one folds away to the right","tags":["fold","slide","horizontal"],"params":{},"textures":[],"createdAt":"Sun, 29 Mar 2026 20:32:54 +0200","updatedAt":"Sat, 10 Oct 2026 11:26:01 +0200"},{"name":"FrostWipe","paramsTypes":{"spread":"float","scale":"float","blur":"float","color":"vec4"},"defaultParams":{"spread":0.5,"scale":5,"blur":0.5,"color":[0.86,0.93,1,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: Ice crystals grow in from the edges of the frame with feathery, branching fronts, frosting the outgoing image white and blurry until it is covered, then thaw back out to the edges on the incoming image\n// Tags: frost, ice, crystal, blur, cover\n\n// @range(0, 1) How far the crystal fingers reach ahead of the frost\nuniform float spread; // = 0.5\n// @range(2, 12) Size of the crystals: more, smaller ones with a larger value\nuniform float scale; // = 5.0\n// @range(0, 1) How much the frost blurs the image under it\nuniform float blur; // = 0.5\n// @color Color of the frost\nuniform vec4 color; // = vec4(0.86, 0.93, 1.0, 1.0)\n\nconst int TAPS = 12;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\nfloat vnoise(vec2 v) {\n vec2 i = floor(v);\n vec2 f = fract(v);\n f = f * f * (3.0 - 2.0 * f);\n return mix(\n mix(hash12(i), hash12(i + vec2(1.0, 0.0)), f.x),\n mix(hash12(i + vec2(0.0, 1.0)), hash12(i + vec2(1.0, 1.0)), f.x),\n f.y\n );\n}\n\n// ridged noise: thin bright veins where the noise crosses its middle, like crystal ferns\nfloat ridged(vec2 v) {\n float sum = 0.0;\n float amp = 0.5;\n for (int i = 0; i < 4; i++) {\n float n = 1.0 - abs(2.0 * vnoise(v) - 1.0);\n sum += amp * n * n;\n v = mat2(1.6, 1.2, -1.2, 1.6) * v + 4.7;\n amp *= 0.5;\n }\n return sum / 0.9375;\n}\n\n// crystal grains, cells of size 1: x is how far from the boundary between two grains\n// (0 on it, where the crystals start), y a random number for the grain, zw the position\n// relative to the grain's seed\nvec4 grains(vec2 v) {\n vec2 i = floor(v);\n vec2 f = fract(v);\n float d1 = 8.0;\n float d2 = 8.0;\n vec3 seed = vec3(0.0);\n for (int y = -1; y <= 1; y++) {\n for (int x = -1; x <= 1; x++) {\n vec2 c = vec2(float(x), float(y));\n vec2 o = c + vec2(hash12(i + c), hash12(i + c + 17.3)) - f;\n float d = dot(o, o);\n if (d < d1) {\n d2 = d1;\n d1 = d;\n seed = vec3(hash12(i + c + 41.9), -o);\n } else if (d < d2) {\n d2 = d;\n }\n }\n }\n return vec4(sqrt(d2) - sqrt(d1), seed);\n}\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// the image under the frost: the outgoing one, then the incoming one, switched under full cover\nvec4 image(vec2 uv, float m) {\n if (m <= 0.0) return getFromColor(uv);\n if (m >= 1.0) return getToColor(uv);\n return mix(getFromColor(uv), getToColor(uv), m);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n // 0 at both ends, 1 while the frost covers the whole frame (from 0.425 to 0.575)\n float h = 1.0 - abs(2.0 * p - 1.0);\n float a = clamp(h / 0.85, 0.0, 1.0);\n a = a * (1.6 - 0.6 * a); // fast start, slowing down as the frost closes in\n float m = smoothstep(0.47, 0.53, p);\n if (a <= 0.0) return image(uv, m);\n\n // how deep in the frame the pixel is: 0 on the edges, 1 at the center\n vec2 q = uv * vec2(ratio, 1.0);\n vec2 dEdge = min(uv, 1.0 - uv) * vec2(ratio, 1.0);\n float depth = min(dEdge.x, dEdge.y) / (0.5 * min(ratio, 1.0));\n depth = 1.0 - (1.0 - depth) * (1.0 - depth); // the covered area grows evenly\n\n // the front, which moves from the edges past the deepest point; the crystals below only\n // hold it back, so nothing is frosted (yet, or any more) deeper than it\n float reach = 0.2 + 0.6 * clamp(spread, 0.0, 1.0);\n float front = mix(-0.1, 1.0 + reach + 0.2, a);\n if (depth > front + 0.08) return image(uv, m);\n\n // crystals: ferns grow from the boundaries between grains, with parallel needles shooting\n // off them at an angle that changes from grain to grain\n vec2 gv = q * scale;\n // the stems bend a little\n vec4 gr = grains(gv + 0.35 * vec2(vnoise(gv * 1.7), vnoise(gv * 1.7 + 23.1)));\n // the needles' direction, any angle (a rational point on the unit circle)\n float u = 2.0 * gr.y - 1.0;\n vec2 dir = vec2(1.0 - u * u, 2.0 * u) / (1.0 + u * u);\n float t = dot(gr.zw, dir) * 7.0;\n float needle = 1.0 - abs(2.0 * fract(t) - 1.0); // 1 along each needle, 0 between them\n float nh = fract(gr.y + 0.618034 * floor(t));\n float len = mix(0.15, 0.6, nh); // each needle has its own length\n float r = ridged(gv * 1.3);\n float rf = ridged(gv * 4.0 + 11.0);\n // when the frost reaches the pixel, after the edges: the stems first, then the needles, then\n // the gaps between them\n float grow = min(gr.x * 3.5, gr.x / len * 0.5 + (1.0 - needle) * 1.2 + 0.2 * fract(nh * 13.7));\n float field = depth + reach * (0.8 * min(grow, 1.0) + 0.2 * (1.0 - r)) + 0.1 * (1.0 - rf);\n float inside = front - field; // > 0 under the frost\n float f = smoothstep(0.0, 0.03, inside);\n // a thin, faint haze of fine crystals just ahead of the front\n float haze = 0.4 * smoothstep(0.9, 1.0, rf) * smoothstep(-0.08, 0.0, inside);\n float frost = max(f, haze);\n if (frost <= 0.0) return image(uv, m);\n\n // thicker ice close to the edges, where it started growing\n float thick = smoothstep(0.0, 0.5, inside);\n float full = smoothstep(0.75, 0.95, h); // the frost turns opaque to hide the switch\n\n // frosted glass: blur over a small jittered disc, scattered along the crystals\n float radius = (0.004 + 0.03 * blur) * frost * (0.5 + 0.5 * thick);\n float rot = 6.2831853 * hash12(floor(q * 90.0));\n vec3 rgb = vec3(0.0);\n float alpha = 0.0;\n for (int i = 0; i < TAPS; i++) {\n float k = (float(i) + 0.5) / float(TAPS);\n float th = rot + float(i) * 2.3999632;\n vec2 off = sqrt(k) * vec2(cos(th), sin(th)) * radius;\n vec4 c = image(mirror(uv + off / vec2(ratio, 1.0)), m);\n rgb += c.rgb * c.a;\n alpha += c.a;\n }\n alpha /= float(TAPS);\n rgb = alpha > 0.0 ? rgb / (alpha * float(TAPS)) : vec3(0.0);\n\n // a cool white crystal tint, brighter on the stems, the needles (fading out toward their tips)\n // and the growing front\n float stem = 1.0 - smoothstep(0.0, 0.03, gr.x);\n float needles = smoothstep(0.7, 1.0, needle) * (1.0 - smoothstep(0.0, len, gr.x));\n float glint = 0.4 + 0.6 * rf;\n float veins = clamp(glint * max(0.35 * stem, 0.55 * needles) + 0.3 * smoothstep(0.6, 0.95, r), 0.0, 1.0);\n float rim = smoothstep(0.0, 0.02, inside) * (1.0 - smoothstep(0.02, 0.07, inside));\n vec3 ice = clamp(color.rgb * (0.82 + 0.25 * veins), 0.0, 1.0);\n float cover = frost * (0.35 + 0.3 * thick + 0.25 * veins);\n cover = clamp(mix(cover, frost, full), 0.0, 1.0);\n vec4 under = vec4(rgb * mix(vec3(1.0), color.rgb, 0.5 * frost), alpha);\n // the frost color mixes as straight RGBA, like every fill color\n vec4 res = mix(under, vec4(ice, color.a), cover);\n\n // fine sparkles on the ice, twinkling as it grows\n vec2 sq = q * 36.0;\n vec2 cell = floor(sq);\n vec2 d = abs(sq - cell - 0.25 - 0.5 * vec2(hash12(cell + 1.3), hash12(cell + 5.9)));\n float star = max(0.0, 1.0 - 9.0 * length(d)) + max(0.0, 1.0 - 4.0 * (d.x + d.y) - 30.0 * min(d.x, d.y));\n float tw = 0.5 + 0.5 * sin(6.2831853 * (hash12(cell + 9.1) + 2.0 * p));\n float sparkle = step(0.82, hash12(cell + 3.7)) * min(star, 1.0) * tw * f * (0.4 + 0.6 * veins);\n float light = clamp(0.4 * rim + 0.8 * sparkle, 0.0, 1.0);\n res = mix(res, vec4(mix(color.rgb, vec3(1.0), 0.6), color.a), light);\n return clamp(res, 0.0, 1.0);\n}\n","author":"gre","license":"MIT","description":"Ice crystals grow in from the edges of the frame with feathery, branching fronts, frosting the outgoing image white and blurry until it is covered, then thaw back out to the edges on the incoming image","tags":["frost","ice","crystal","blur","cover"],"params":{"spread":{"type":"float","default":0.5,"min":0,"max":1,"description":"How far the crystal fingers reach ahead of the frost"},"scale":{"type":"float","default":5,"min":2,"max":12,"description":"Size of the crystals: more, smaller ones with a larger value"},"blur":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the frost blurs the image under it"},"color":{"type":"vec4","default":[0.86,0.93,1,1],"color":true,"description":"Color of the frost"}},"textures":[],"createdAt":"Fri, 6 Nov 2026 08:07:55 +0100","updatedAt":"Fri, 6 Nov 2026 08:07:55 +0100"},{"name":"Funnel","paramsTypes":{"target":"float","curvature":"float","shadow":"float"},"defaultParams":{"target":0.7,"curvature":0.8,"shadow":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image narrows into a curved funnel toward a point on the bottom edge and slides into it, its sides bending like a window minimized into a dock, revealing the incoming image behind it\n// Tags: distort, slide, vertical, shadow\n\n// @range(0, 1) Point of the bottom edge where the image disappears, from left (0) to right (1)\nuniform float target; // = 0.7\n// @range(0, 1) Shape of the funnel's sides: 0 straight, 1 bent into an S curve\nuniform float curvature; // = 0.8\n// @range(0, 1) Strength of the shading of the bent image and of the shadow it casts\nuniform float shadow; // = 0.5\n\n// width of the funnel's neck, as a part of the frame's height\nconst float NECK = 0.04;\n// how far below the bottom edge the image's top ends, so it is gone at the end\nconst float OVERSHOOT = 0.03;\n// width of the anti-aliased edges, as a part of the frame's height\nconst float EDGE = 0.0015;\n// reach of the soft shadow, as a part of the frame's height\nconst float SOFT = 0.06;\n\nvec4 transition(vec2 uv) {\n float t = progress;\n // one eased timing: the funnel forms from the very start while the slide accelerates into it\n float f = smoothstep(0.0, 1.0, 1.0 - (1.0 - t) * (1.0 - t) * (1.0 - t));\n float slide = (1.0 + OVERSHOOT) * t * t * (1.5 - 0.5 * t);\n\n float r = max(ratio, 1e-4);\n float nh = 0.5 * NECK / r;\n // the whole neck stays in the frame\n float tx = clamp(target, nh, 1.0 - nh);\n float c = clamp(curvature, 0.0, 1.0);\n\n // the funnel's profile, 0 at the neck on the bottom edge to 1 at the top of the frame\n float q = clamp(uv.y, 0.0, 1.0);\n float w = mix(q, q * q * (3.0 - 2.0 * q), c);\n float dw = mix(1.0, 6.0 * q * (1.0 - q), c);\n float L = f * mix(tx - nh, 0.0, w);\n float R = 1.0 - f * (1.0 - mix(tx + nh, 1.0, w));\n float dL = -f * (tx - nh) * dw;\n float dR = f * (1.0 - tx - nh) * dw;\n float v = uv.y + slide;\n\n // anti-aliased coverage, measured across the slanted sides (a side on the frame's border is not an edge)\n float e = EDGE * min(1.0, 10.0 * t) + 1e-6;\n float left = L > 0.0 ? (uv.x - L) * r / sqrt(1.0 + dL * dL * r * r) : 1.0;\n float right = R < 1.0 ? (R - uv.x) * r / sqrt(1.0 + dR * dR * r * r) : 1.0;\n float cov = clamp(min(min(left, right), 1.0 - v) / e + 0.5, 0.0, 1.0);\n\n vec4 img = vec4(0.0);\n float s = clamp(shadow, 0.0, 1.0);\n if (cov > 0.0) {\n float width = R - L;\n vec2 src = clamp(vec2((uv.x - L) / width, v), 0.0, 1.0);\n img = getFromColor(src);\n // the squeezed rows round like a bent sheet, darker on their sides and toward the neck\n float across = 2.0 * src.x - 1.0;\n img.rgb *= 1.0 - s * (1.0 - width) * (0.5 * across * across + 0.3 * (1.0 - w));\n if (cov >= 1.0) return img;\n }\n\n vec4 bg = getToColor(uv);\n // soft shadow of the funnel cast on the incoming image\n float ox = max(L - uv.x, uv.x - R) * r;\n float oy = uv.y - (1.0 - slide);\n float dist = length(max(vec2(ox, oy), 0.0));\n bg.rgb *= 1.0 - s * 0.6 * f * (1.0 - t) * (1.0 - smoothstep(0.0, SOFT, dist));\n\n return mix(bg, img, cov);\n}\n","author":"gre","license":"MIT","description":"The outgoing image narrows into a curved funnel toward a point on the bottom edge and slides into it, its sides bending like a window minimized into a dock, revealing the incoming image behind it","tags":["distort","slide","vertical","shadow"],"params":{"target":{"type":"float","default":0.7,"min":0,"max":1,"description":"Point of the bottom edge where the image disappears, from left (0) to right (1)"},"curvature":{"type":"float","default":0.8,"min":0,"max":1,"description":"Shape of the funnel's sides: 0 straight, 1 bent into an S curve"},"shadow":{"type":"float","default":0.5,"min":0,"max":1,"description":"Strength of the shading of the bent image and of the shadow it casts"}},"textures":[],"createdAt":"Sat, 7 Nov 2026 18:51:02 +0100","updatedAt":"Sat, 7 Nov 2026 18:51:02 +0100"},{"name":"Gallery","paramsTypes":{"direction":"float","tilt":"float","gap":"float","zoom":"float","reflection":"float","background":"vec4"},"defaultParams":{"direction":1,"tilt":0.6,"gap":0.15,"zoom":2,"reflection":0.3,"background":[0.07,0.07,0.08,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The camera pulls back from the outgoing image to show it as a slide hanging in a row on a wall in perspective, the row glides along as each slide turns away from the center, and the camera moves back in on the incoming slide until it fills the frame\n// Tags: 3d, perspective, gallery, slide, reflection, directional\n\n// @param Way the row moves: 1 brings the incoming slide in from the right, -1 from the left\nuniform float direction; // = 1.0\n// @range(0, 1) How much the slides turn as they leave the center\nuniform float tilt; // = 0.6\n// @range(0, 1) Space between two slides, in slide widths\nuniform float gap; // = 0.15\n// @range(0.2, 3) How far the camera pulls back\nuniform float zoom; // = 2.0\n// @range(0, 1) Strength of the reflection of the slides on the floor\nuniform float reflection; // = 0.3\n// @color Color of the wall and the floor around the slides\nuniform vec4 background; // = vec4(0.07, 0.07, 0.08, 1.0)\n\nconst float FOCAL = 1.6; // distance from the camera to a slide when it fills the frame\nconst float MAX_ANGLE = 1.4; // turn of a side slide at tilt = 1, in radians\nconst float NEIGHBOUR = 0.3; // how visible the repeats beyond the two images are\nconst float AA = 0.002; // width of the antialiased slide edges, in frame heights\n\nvec4 premultiply(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\n// how far slide k sits from the center of the view, in slides, clamped to one slide on each side\nfloat offset(float k, float camQ, float spacing) {\n return clamp((k * spacing - camQ) / spacing, -1.0, 1.0);\n}\n\n// the ray o + t d against slide k of the row (a plane turned around its vertical axis):\n// returns (u, v, t, coverage), coverage antialiased over aa frame heights at the slide's edges\nvec4 slideHit(vec3 o, vec3 d, float k, float s, float camQ, float spacing, float aa) {\n // a side slide turns away from the center: its outer edge goes back into the wall\n float a = -s * MAX_ANGLE * tilt * offset(k, camQ, spacing);\n vec3 c = vec3(s * k * spacing, 0.0, 0.0);\n vec3 tg = vec3(cos(a), 0.0, sin(a)); // along the slide, left to right\n vec3 n = vec3(-tg.z, 0.0, tg.x);\n float dn = dot(d, n);\n if (abs(dn) < 1e-5) return vec4(0.0, 0.0, -1.0, 0.0);\n float t = dot(c - o, n) / dn;\n vec3 q = o + d * t - c;\n float lx = dot(q, tg) + 0.5 * ratio;\n float ly = q.y + 0.5;\n // distances to the edges on screen: along the slide, how fast its local x moves with the screen x\n float jx = abs(t * (tg.x - dot(d, tg) * n.x / dn));\n float ex = min(lx, ratio - lx) / max(jx, 1e-6);\n float ey = min(ly, 1.0 - ly) / max(t, 1e-6);\n float cov = t > 0.0 ? clamp(0.5 + min(ex, ey) / aa, 0.0, 1.0) : 0.0;\n return vec4(lx / ratio, ly, t, cov);\n}\n\n// the premultiplied color of slide k where the ray hit it; the row is from (k = 0), to (k = 1),\n// and faint repeats beyond them on their own side; refl > 0 is the strength of its reflection\nvec4 slideColor(vec4 h, float k, float camQ, float spacing, float refl, vec4 bg) {\n if (h.w <= 0.0) return vec4(0.0);\n vec2 st = clamp(h.xy, 0.0, 1.0);\n vec4 c = premultiply(k < 0.5 ? getFromColor(st) : getToColor(st));\n // turned away from the light as it turns away from the center\n c.rgb *= 1.0 - 0.3 * tilt * abs(offset(k, camQ, spacing));\n if (k < -0.5 || k > 1.5) c = mix(bg, c, NEIGHBOUR);\n // the reflection fades out below the bottom of the slide\n float f = refl > 0.0 ? refl * (1.0 - smoothstep(0.0, 0.6, st.y)) : 1.0;\n return c * (h.w * f);\n}\n\n// how much the slides cover along the ray, whatever their images' alpha\nfloat sceneCover(vec3 o, vec3 d, float s, float camQ, float spacing, float aa) {\n float kc = floor(s * (o.x + d.x * o.z / -d.z) / spacing + 0.5);\n float w0 = slideHit(o, d, kc - 1.0, s, camQ, spacing, aa).w;\n float w1 = slideHit(o, d, kc, s, camQ, spacing, aa).w;\n float w2 = slideHit(o, d, kc + 1.0, s, camQ, spacing, aa).w;\n return 1.0 - (1.0 - w0) * (1.0 - w1) * (1.0 - w2);\n}\n\n// the slides seen along the ray, composited back to front (premultiplied)\nvec4 scene(vec3 o, vec3 d, float s, float camQ, float spacing, float aa, float refl, vec4 bg) {\n // the slide in front of which the ray crosses the wall, and its two neighbours\n float wallQ = s * (o.x + d.x * o.z / -d.z);\n float kc = floor(wallQ / spacing + 0.5);\n vec4 h0 = slideHit(o, d, kc - 1.0, s, camQ, spacing, aa);\n vec4 h1 = slideHit(o, d, kc, s, camQ, spacing, aa);\n vec4 h2 = slideHit(o, d, kc + 1.0, s, camQ, spacing, aa);\n vec4 c0 = slideColor(h0, kc - 1.0, camQ, spacing, refl, bg);\n vec4 c1 = slideColor(h1, kc, camQ, spacing, refl, bg);\n vec4 c2 = slideColor(h2, kc + 1.0, camQ, spacing, refl, bg);\n float t0 = h0.w > 0.0 ? h0.z : 1e6;\n float t1 = h1.w > 0.0 ? h1.z : 1e6;\n float t2 = h2.w > 0.0 ? h2.z : 1e6;\n // sort far to near: t0 >= t1 >= t2\n vec4 tc;\n float tt;\n if (t0 < t1) { tc = c0; c0 = c1; c1 = tc; tt = t0; t0 = t1; t1 = tt; }\n if (t1 < t2) { tc = c1; c1 = c2; c2 = tc; tt = t1; t1 = t2; t2 = tt; }\n if (t0 < t1) { tc = c0; c0 = c1; c1 = tc; }\n vec4 col = c0;\n col = c1 + col * (1.0 - c1.a);\n col = c2 + col * (1.0 - c2.a);\n return col;\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n float s = direction < 0.0 ? -1.0 : 1.0;\n float spacing = ratio * (1.0 + gap);\n // the camera pulls back, glides along the row, and moves back in\n float back = smoothstep(0.0, 0.42, p) * (1.0 - smoothstep(0.58, 1.0, p));\n float m = clamp((p - 0.18) / 0.64, 0.0, 1.0);\n float glide = m * m * m * (m * (m * 6.0 - 15.0) + 10.0);\n float camQ = spacing * glide;\n vec3 o = vec3(s * camQ, 0.0, FOCAL * (1.0 + zoom * back));\n vec3 d = vec3((uv - 0.5) * vec2(ratio, 1.0), -FOCAL);\n float amount = min(1.0, 40.0 * back);\n float aa = max(AA * amount, 1e-6);\n vec4 bg = premultiply(background);\n\n vec4 col = scene(o, d, s, camQ, spacing, aa, 0.0, bg);\n if (col.a < 1.0) {\n vec4 under = bg;\n // the floor, below the slides, reflects them\n if (d.y < 0.0 && reflection > 0.0) {\n vec4 r = scene(vec3(o.x, -1.0 - o.y, o.z), vec3(d.x, -d.y, d.z), s, camQ, spacing, aa, reflection, bg);\n under = r + bg * (1.0 - r.a);\n }\n // the wall shows around the slides, and only fades in behind their transparent parts,\n // so that the images keep their own alpha at the start and the end\n col += under * (mix(1.0, amount, sceneCover(o, d, s, camQ, spacing, aa)) * (1.0 - col.a));\n }\n return col.a > 0.0 ? vec4(col.rgb / col.a, col.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The camera pulls back from the outgoing image to show it as a slide hanging in a row on a wall in perspective, the row glides along as each slide turns away from the center, and the camera moves back in on the incoming slide until it fills the frame","tags":["3d","perspective","gallery","slide","reflection","directional"],"params":{"direction":{"type":"float","default":1,"description":"Way the row moves: 1 brings the incoming slide in from the right, -1 from the left"},"tilt":{"type":"float","default":0.6,"min":0,"max":1,"description":"How much the slides turn as they leave the center"},"gap":{"type":"float","default":0.15,"min":0,"max":1,"description":"Space between two slides, in slide widths"},"zoom":{"type":"float","default":2,"min":0.2,"max":3,"description":"How far the camera pulls back"},"reflection":{"type":"float","default":0.3,"min":0,"max":1,"description":"Strength of the reflection of the slides on the floor"},"background":{"type":"vec4","default":[0.07,0.07,0.08,1],"color":true,"description":"Color of the wall and the floor around the slides"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 08:03:21 +0100","updatedAt":"Wed, 4 Nov 2026 08:03:21 +0100"},{"name":"GlintDissolve","paramsTypes":{"size":"float","threshold":"float","intensity":"float","diagonals":"bool","rotation":"float","rainbow":"float","tint":"vec3"},"defaultParams":{"size":0.15,"threshold":0.6,"intensity":2,"diagonals":false,"rotation":0,"rainbow":0.35,"tint":[1,0.95,0.85]},"glsl":"// Author: gre\n// License: MIT\n// Description: The bright points of the outgoing image sparkle into crisp four-point star glints that swell and twinkle up to the cut, then shrink back into the highlights of the incoming image, which stays sharp\n// Tags: light, glints, sparkle, dissolve\n\n// @range(0.02, 0.3) Length of the longest rays of the glints at the peak, in frame heights\nuniform float size; // = 0.15\n// @range(0, 1) Brightness above which the image sparkles\nuniform float threshold; // = 0.6\n// @range(0, 4) Brightness of the glints\nuniform float intensity; // = 2.0\n// @param Add a shorter, softer pair of diagonal rays to each glint\nuniform bool diagonals; // = false\n// @range(-45, 45) Angle of the cross, in degrees\nuniform float rotation; // = 0.0\n// @range(0, 1) Rainbow fringes along the rays\nuniform float rainbow; // = 0.35\n// @color Tint of the glints, added as light\nuniform vec3 tint; // = vec3(1.0, 0.95, 0.85)\n\n// the long rays reach over this many cells of the glint grid\nconst float REACH = 6.0;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\n// one thin ray along x, from the glint center to its tip at x = len (in cells)\nfloat ray(vec2 d, float len, float width) {\n float a = abs(d.x) / len;\n if (a >= 1.0) return 0.0;\n float fall = (1.0 - a) * (1.0 - a);\n float w = width * (1.0 - 0.7 * a);\n return fall * exp(-d.y * d.y / (w * w));\n}\n\nvec3 spectrum(float a) {\n return 0.5 + 0.5 * cos(6.2831853 * (a + vec3(0.0, 0.33, 0.67)));\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n // the glints swell up to the cut, then shrink back: 0 at both ends\n float t = 1.0 - abs(2.0 * p - 1.0);\n float amount = t * (2.0 - t);\n // a short crossfade under the glints at their brightest\n float m = smoothstep(0.42, 0.58, p);\n if (amount <= 0.0) return m < 0.5 ? getFromColor(uv) : getToColor(uv);\n\n vec4 fromColor = getFromColor(uv);\n vec4 toColor = getToColor(uv);\n vec4 c = mix(vec4(fromColor.rgb * fromColor.a, fromColor.a), vec4(toColor.rgb * toColor.a, toColor.a), m);\n if (c.a <= 0.0) return vec4(0.0);\n vec3 base = c.rgb / c.a;\n\n // a grid of glint cells, turned with the cross so that its long rays run along the rows and columns\n float cell = size / REACH;\n float ang = radians(rotation);\n vec2 cs = vec2(cos(ang), sin(ang));\n vec2 aspect = vec2(ratio, 1.0);\n vec2 o = (uv - 0.5) * aspect;\n vec2 q = vec2(o.x * cs.x + o.y * cs.y, o.y * cs.x - o.x * cs.y) / cell;\n vec2 home = floor(q);\n // thin rays, in cells, thin enough to vanish before the next row of cells\n float width = min(0.0022 / cell, 0.07);\n\n vec3 light = vec3(0.0);\n // the glints of the own cell, of the cells along its row and column (whose long rays reach this\n // pixel) and of its four diagonal neighbours (for their short diagonal rays and their cores)\n for (int k = 0; k < 29; k++) {\n float fk = float(k);\n vec2 off = vec2(0.0);\n if (k >= 1 && k <= 12) off = vec2(fk < 7.0 ? fk - 7.0 : fk - 6.0, 0.0);\n else if (k >= 13 && k <= 24) off = vec2(0.0, fk < 19.0 ? fk - 19.0 : fk - 18.0);\n else if (k >= 25) off = vec2(mod(fk, 2.0) * 2.0 - 1.0, fk < 27.0 ? -1.0 : 1.0);\n // the rays are never longer than this, so farther glints cannot reach the pixel\n if (max(abs(off.x), abs(off.y)) > REACH * amount + 1.0) continue;\n vec2 id = home + off;\n // only some of the cells hold a glint\n if (hash12(id + 89.5) > 0.55) continue;\n float h0 = hash12(id + 0.5);\n float h1 = hash12(id + 19.5);\n float h2 = hash12(id + 41.5);\n float h3 = hash12(id + 67.5);\n // the glint: somewhere in its cell, so that the grid never shows\n vec2 center = id + 0.5 + 0.6 * (vec2(h0, h1) - 0.5);\n vec2 cw = center * cell;\n vec2 st = vec2(cw.x * cs.x - cw.y * cs.y, cw.x * cs.y + cw.y * cs.x) / aspect + 0.5;\n if (st.x < 0.0 || st.x > 1.0 || st.y < 0.0 || st.y > 1.0) continue;\n // each glint reads one image: it blinks out at its own moment of the crossfade and comes back\n // on the incoming image\n float turn = 0.15 + 0.7 * h3;\n vec4 src = m < turn ? getFromColor(st) : getToColor(st);\n float lum = dot(src.rgb, vec3(0.2126, 0.7152, 0.0722)) * src.a;\n // the brighter the image, the more of its cells sparkle\n float knee = threshold + 0.8 * (1.0 - threshold) * h2;\n float b = smoothstep(knee, knee + 0.2 * (1.0 - threshold) + 1e-3, lum);\n if (b <= 0.0) continue;\n // each glint twinkles at its own pace\n float twinkle = (0.6 + 0.4 * sin(6.2831853 * (h2 + (1.5 + h0) * p))) * smoothstep(0.0, 0.12, abs(m - turn));\n float len = REACH * amount * (0.45 + 0.55 * b) * (0.3 + 0.7 * h1 * h1) * (0.85 + 0.15 * twinkle);\n vec2 d = q - center;\n float r = length(d);\n float star = ray(d, len, width) + ray(d.yx, len, width);\n if (diagonals) {\n vec2 e = vec2(d.x + d.y, d.x - d.y) * 0.70710678;\n star += 0.5 * (ray(e, 0.25 * len, width) + ray(e.yx, 0.25 * len, width));\n }\n // a bright core and a faint halo\n float cr = r / (0.08 * len);\n star += exp(-cr * cr) + 0.3 * exp(-r / 0.2);\n // white light with the hue of the highlight, and rainbow fringes toward the tips\n float along = r / len;\n vec3 hue = mix(vec3(1.0), spectrum(1.3 * along + h0), rainbow * smoothstep(0.05, 0.4, along));\n vec3 col = mix(src.rgb / max(max(src.r, max(src.g, src.b)), 1e-3), vec3(1.0), 0.6);\n light += b * twinkle * star * hue * col;\n }\n light *= tint * intensity * amount * amount;\n // compressed, so that crossing rays never flatten into white\n light = 1.0 - exp(-light);\n return vec4(clamp(base + light - base * light, 0.0, 1.0), c.a);\n}\n","author":"gre","license":"MIT","description":"The bright points of the outgoing image sparkle into crisp four-point star glints that swell and twinkle up to the cut, then shrink back into the highlights of the incoming image, which stays sharp","tags":["light","glints","sparkle","dissolve"],"params":{"size":{"type":"float","default":0.15,"min":0.02,"max":0.3,"description":"Length of the longest rays of the glints at the peak, in frame heights"},"threshold":{"type":"float","default":0.6,"min":0,"max":1,"description":"Brightness above which the image sparkles"},"intensity":{"type":"float","default":2,"min":0,"max":4,"description":"Brightness of the glints"},"diagonals":{"type":"bool","default":false,"description":"Add a shorter, softer pair of diagonal rays to each glint"},"rotation":{"type":"float","default":0,"min":-45,"max":45,"description":"Angle of the cross, in degrees"},"rainbow":{"type":"float","default":0.35,"min":0,"max":1,"description":"Rainbow fringes along the rays"},"tint":{"type":"vec3","default":[1,0.95,0.85],"color":true,"description":"Tint of the glints, added as light"}},"textures":[],"createdAt":"Thu, 5 Nov 2026 11:34:15 +0100","updatedAt":"Thu, 5 Nov 2026 11:34:15 +0100"},{"name":"GlitchBands","paramsTypes":{"ampx":"float","ampy":"float"},"defaultParams":{"ampx":1,"ampy":1},"glsl":"// Author: Yoni Maltsman @friendlyspinach\n// License: MIT\n// Description: A crossfade with glitchy horizontal bands and color shifts\n// Tags: glitch, blend\n\n\n\n// @param Horizontal amplitude of the glitch\nuniform float ampx; // =1.0\n// @param Vertical amplitude of the glitch\nuniform float ampy; //=1.0\n\nvec4 transition (vec2 uv) {\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n float r = from.r;\n float g = from.g;\n float b = from.b;\n float sphere = r*r + g*g + b*b - 1.0; //3 to 1\n float spiralX = cos(sphere - uv.x/(progress + .01));\n float spiralY = sin(sphere - uv.y/(progress+.01));\n vec2 st = uv;\n st.x = fract(ampx*st.x*spiralX); //1 to 2\n st.y = fract(ampy*st.y*spiralY);\n vec2 diff = uv - st;\n from = getFromColor(uv + progress*diff);\n return mix(from, to, progress);\n}\n","author":"Yoni Maltsman @friendlyspinach","license":"MIT","description":"A crossfade with glitchy horizontal bands and color shifts","tags":["glitch","blend"],"params":{"ampx":{"type":"float","default":1,"description":"Horizontal amplitude of the glitch"},"ampy":{"type":"float","default":1,"description":"Vertical amplitude of the glitch"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"GlitchDisplace","paramsTypes":{},"defaultParams":{},"glsl":"// Author: Matt DesLauriers\n// License: MIT\n// Description: Blocks of the image are displaced in a glitch that flashes into the incoming image\n// Tags: glitch, displace\n\nfloat random(vec2 co)\n{\n float a = 12.9898;\n float b = 78.233;\n float c = 43758.5453;\n float dt= dot(co.xy ,vec2(a,b));\n float sn= mod(dt,3.14);\n return fract(sin(sn) * c);\n}\nfloat voronoi( in vec2 x ) {\n vec2 p = floor( x );\n vec2 f = fract( x );\n float res = 8.0;\n for( float j=-1.; j<=1.; j++ )\n for( float i=-1.; i<=1.; i++ ) {\n vec2 b = vec2( i, j );\n vec2 r = b - f + random( p + b );\n float d = dot( r, r );\n res = min( res, d );\n }\n return sqrt( res );\n}\n\nvec2 displace(vec4 tex, vec2 texCoord, float dotDepth, float textureDepth, float strength) {\n float b = voronoi(.003 * texCoord + 2.0);\n float g = voronoi(0.2 * texCoord);\n float r = voronoi(texCoord - 1.0);\n vec4 dt = tex * 1.0;\n vec4 dis = dt * dotDepth + 1.0 - tex * textureDepth;\n\n dis.x = dis.x - 1.0 + textureDepth*dotDepth;\n dis.y = dis.y - 1.0 + textureDepth*dotDepth;\n dis.x *= strength;\n dis.y *= strength;\n vec2 res_uv = texCoord ;\n res_uv.x = res_uv.x + dis.x - 0.0;\n res_uv.y = res_uv.y + dis.y;\n return res_uv;\n}\n\nfloat ease1(float t) {\n return t == 0.0 || t == 1.0\n ? t\n : t < 0.5\n ? +0.5 * pow(2.0, (20.0 * t) - 10.0)\n : -0.5 * pow(2.0, 10.0 - (t * 20.0)) + 1.0;\n}\nfloat ease2(float t) {\n return t == 1.0 ? t : 1.0 - pow(2.0, -10.0 * t);\n}\n\n\n\nvec4 transition(vec2 uv) {\n vec2 p = uv.xy / vec2(1.0).xy;\n vec4 color1 = getFromColor(p);\n vec4 color2 = getToColor(p);\n vec2 disp = displace(color1, p, 0.33, 0.7, 1.0-ease1(progress));\n vec2 disp2 = displace(color2, p, 0.33, 0.5, ease2(progress));\n vec4 dColor1 = getToColor(disp);\n vec4 dColor2 = getFromColor(disp2);\n float val = ease1(progress);\n vec3 gray = vec3(dot(min(dColor2, dColor1).rgb, vec3(0.299, 0.587, 0.114)));\n dColor2 = vec4(gray * 2.0, dColor2.a);\n color1 = mix(color1, dColor2, smoothstep(0.0, 0.5, progress));\n color2 = mix(color2, dColor1, smoothstep(1.0, 0.5, progress));\n return mix(color1, color2, val);\n //gl_FragColor = mix(gl_FragColor, dColor, smoothstep(0.0, 0.5, progress));\n\n //gl_FragColor = mix(texture2D(from, p), texture2D(to, p), progress);\n}\n","author":"Matt DesLauriers","license":"MIT","description":"Blocks of the image are displaced in a glitch that flashes into the incoming image","tags":["glitch","displace"],"params":{},"textures":[],"createdAt":"Tue, 30 May 2017 14:53:04 -0400","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"GlitchFlicker","paramsTypes":{"frameRate":"float","rgbOffset":"float","blockAmount":"float","ghostAmount":"float","redCyan":"float","scanline":"float"},"defaultParams":{"frameRate":24,"rgbOffset":0.014,"blockAmount":0.72,"ghostAmount":0.62,"redCyan":0.58,"scanline":0.075},"glsl":"// Author: bread\n// License: MIT\n// Description: A flickering glitch with RGB offset, ghosting and scanlines that flashes back to the outgoing image\n// Tags: glitch, flicker, chromatic, scanlines\n// Drop_Zone_Flicker.glsl\n// gl-transitions compatible: progress, ratio, getFromColor, getToColor\nuniform float frameRate; // = 24.0\nuniform float rgbOffset; // = 0.014\nuniform float blockAmount; // = 0.72\nuniform float ghostAmount; // = 0.62\nuniform float redCyan; // = 0.58\nuniform float scanline; // = 0.075\n\nfloat sat(float x) {\n return clamp(x, 0.0, 1.0);\n}\n\nfloat hash12(vec2 p) {\n p = fract(p * vec2(443.8975, 397.2973));\n p += dot(p, p.yx + 19.19);\n return fract(p.x * p.y);\n}\n\nvec2 safeUv(vec2 uv) {\n return clamp(uv, vec2(0.001), vec2(0.999));\n}\n\n// 24fps reference-matched reveal curve.\n// Non-monotonic on purpose: the reference flashes back to the old clip.\nfloat frameReveal(float f) {\n if (f < 0.5) return 0.00;\n if (f < 1.5) return 0.28;\n if (f < 2.5) return 0.43;\n if (f < 3.5) return 0.46;\n if (f < 4.5) return 0.38;\n if (f < 5.5) return 0.48;\n if (f < 6.5) return 0.26;\n if (f < 7.5) return 0.10;\n if (f < 8.5) return 0.00;\n if (f < 9.5) return 0.00;\n if (f < 10.5) return 0.30;\n if (f < 11.5) return 0.58;\n if (f < 12.5) return 1.00;\n if (f < 13.5) return 0.70;\n if (f < 14.5) return 0.42;\n if (f < 15.5) return 0.55;\n if (f < 16.5) return 0.72;\n if (f < 17.5) return 0.88;\n if (f < 18.5) return 0.34;\n if (f < 19.5) return 0.48;\n if (f < 20.5) return 0.56;\n if (f < 21.5) return 0.76;\n if (f < 22.5) return 0.93;\n return 1.00;\n}\n\nfloat frameGlitch(float f) {\n if (f < 0.5) return 0.00;\n if (f < 6.5) return 0.92;\n if (f < 10.5) return 0.38;\n if (f < 11.5) return 0.78;\n if (f < 12.5) return 0.12;\n if (f < 17.5) return 0.74;\n if (f < 22.5) return 0.88;\n if (f < 23.5) return 0.28;\n return 0.00;\n}\n\nvec4 chromaFrom(vec2 uv, float amt) {\n vec2 o = vec2(amt, 0.0);\n vec4 center = getFromColor(safeUv(uv));\n return vec4(\n getFromColor(safeUv(uv + o)).r,\n center.g,\n getFromColor(safeUv(uv - o)).b,\n center.a\n );\n}\n\nvec4 chromaTo(vec2 uv, float amt) {\n vec2 o = vec2(amt, 0.0);\n vec4 center = getToColor(safeUv(uv));\n return vec4(\n getToColor(safeUv(uv - o)).r,\n center.g,\n getToColor(safeUv(uv + o)).b,\n center.a\n );\n}\n\nfloat blockMask(vec2 uv, float f) {\n vec2 big = floor(uv * vec2(4.0, 2.0));\n vec2 small = floor(uv * vec2(8.0, 4.0));\n\n float wide = step(0.48, hash12(vec2(big.x, f * 1.37)));\n float chunks = step(0.56, hash12(small + vec2(f * 2.11, f * 0.73)));\n\n float verticalCut = smoothstep(\n -0.035,\n 0.035,\n uv.x - mix(0.18, 0.78, hash12(vec2(f, 4.7)))\n );\n\n return sat(mix(wide, chunks, 0.38) * 0.72 + verticalCut * 0.28);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n float f = floor(progress * frameRate);\n float reveal = frameReveal(f);\n float glitch = frameGlitch(f);\n\n float rnd = hash12(vec2(f, 9.13));\n vec2 jitter = vec2(\n (rnd - 0.5) * 0.042,\n (hash12(vec2(f, 2.71)) - 0.5) * 0.010\n ) * glitch;\n\n vec2 fromUv = safeUv(uv + jitter);\n vec2 toUv = safeUv(uv - jitter * 0.55);\n\n float block = blockMask(uv, f);\n float localReveal = sat(\n reveal +\n (block - 0.5) * blockAmount * glitch +\n (hash12(vec2(f, floor(uv.y * 9.0))) - 0.5) * 0.18 * glitch\n );\n\n localReveal = smoothstep(0.22, 0.78, localReveal);\n\n vec4 oldClip = chromaFrom(fromUv, rgbOffset * glitch);\n vec4 newClip = chromaTo(toUv, rgbOffset * glitch);\n\n vec4 color = mix(oldClip, newClip, localReveal);\n\n float leftWash = (1.0 - smoothstep(0.10, 0.78, uv.x)) * glitch;\n float cyanWash = smoothstep(0.08, 0.62, uv.x) * (1.0 - smoothstep(0.86, 1.0, uv.x)) * glitch;\n\n vec3 redGhost = oldClip.rgb * vec3(1.34, 0.42, 0.38);\n vec3 cyanGhost = newClip.rgb * vec3(0.48, 1.12, 1.24);\n\n color.rgb = mix(color.rgb, redGhost, leftWash * redCyan * 0.42);\n color.rgb = mix(color.rgb, cyanGhost, cyanWash * redCyan * 0.30);\n\n // Keeps the old circular \"drop zone\" visible as a translucent flash,\n // especially after the first full new-frame hit.\n float oldReturn = glitch * (1.0 - smoothstep(0.94, 1.0, reveal));\n oldReturn *= 0.18 + 0.52 * (1.0 - abs(localReveal - 0.5) * 2.0);\n color.rgb = mix(color.rgb, oldClip.rgb, oldReturn * ghostAmount);\n\n float lines = sin((uv.y + f * 0.017) * 1080.0);\n color.rgb += lines * scanline * glitch;\n\n float exposurePulse = (hash12(vec2(f, 12.4)) - 0.35) * 0.10 * glitch;\n color.rgb += exposurePulse;\n\n return vec4(sat(color.r), sat(color.g), sat(color.b), color.a);\n}\n","author":"bread","license":"MIT","description":"A flickering glitch with RGB offset, ghosting and scanlines that flashes back to the outgoing image","tags":["glitch","flicker","chromatic","scanlines"],"params":{"frameRate":{"type":"float","default":24},"rgbOffset":{"type":"float","default":0.014},"blockAmount":{"type":"float","default":0.72},"ghostAmount":{"type":"float","default":0.62},"redCyan":{"type":"float","default":0.58},"scanline":{"type":"float","default":0.075}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"GlitchMemories","paramsTypes":{},"defaultParams":{},"glsl":"// Author: Gunnar Roth\n// based on work from natewave\n// License: MIT\n// Description: A crossfade with glitchy, color-shifted blocks\n// Tags: glitch, chromatic, blend\nvec4 transition(vec2 p) {\n vec2 block = floor(p.xy / vec2(16));\n vec2 uv_noise = block / vec2(64);\n uv_noise += floor(vec2(progress) * vec2(1200.0, 3500.0)) / vec2(64);\n vec2 dist = progress > 0.0 ? (fract(uv_noise) - 0.5) * 0.3 *(1.0 -progress) : vec2(0.0);\n vec2 red = p + dist * 0.2;\n vec2 green = p + dist * .3;\n vec2 blue = p + dist * .5;\n\n vec4 center = mix(getFromColor(green), getToColor(green), progress);\n return vec4(mix(getFromColor(red), getToColor(red), progress).r, center.g, mix(getFromColor(blue), getToColor(blue), progress).b, center.a);\n}\n\n","author":"Gunnar Roth","license":"MIT","description":"A crossfade with glitchy, color-shifted blocks","tags":["glitch","chromatic","blend"],"params":{},"textures":[],"createdAt":"Wed, 21 Feb 2018 00:52:15 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"GlitterDissolve","paramsTypes":{"tiles":"float","hexagons":"bool","sparkle":"float","glint":"vec3","seed":"float","backColor":"vec4"},"defaultParams":{"tiles":20,"hexagons":false,"sparkle":1,"glint":[1,0.97,0.9],"seed":0,"backColor":[0.04,0.04,0.05,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The image becomes a shimmering field of tiny diamond sequins that flip over in 3D at random moments, each lifting and tilting on its own axis and flashing a glint of light, and land on the incoming image\n// Tags: tiles, flip, 3d, sparkle, dissolve\n\n// @range(6, 60) Number of tiles stacked across the height of the frame\nuniform float tiles; // = 20.0\n// @param Hexagonal tiles instead of diamonds\nuniform bool hexagons; // = false\n// @range(0, 2) Strength of the glints the tiles catch as they turn\nuniform float sparkle; // = 1.0\n// @color Color of the glints, added as light\nuniform vec3 glint; // = vec3(1.0, 0.97, 0.9)\n// @range(0, 100) Changes the order and the axes of the flips (whole numbers)\nuniform float seed; // = 0.0\n// @color Color seen behind a tile while it is edge-on\nuniform vec4 backColor; // = vec4(0.04, 0.04, 0.05, 1.0)\n\n// share of the transition each tile takes to flip over\nconst float FLIP = 0.28;\n// how much a tile grows as it lifts toward the viewer, halfway through its flip\nconst float LIFT = 0.3;\n// width of the soft edge of the tiles, in tiles\nconst float EDGE = 0.04;\n// the grid is shifted off the pixel centers, so that no pixel sits right on the border of two tiles\nconst vec2 SHIFT = vec2(0.37, 0.21);\nconst float PI = 3.14159265;\n\nfloat hash12(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// folds uv back into 0..1, so the tiles on the border of the frame stay filled\nvec2 mirrored(vec2 v) {\n vec2 m = mod(v, 2.0);\n return mix(m, 2.0 - m, step(1.0, m));\n}\n\n// how far the tile has flipped, 0 before it starts and 1 once it has landed\nfloat flipOf(vec2 id) {\n float t = clamp((progress - hash12(id) * (1.0 - FLIP)) / FLIP, 0.0, 1.0);\n return t * t * (3.0 - 2.0 * t);\n}\n\n// the direction perpendicular to the axis the tile turns around\nvec2 axisOf(vec2 id) {\n float a = 2.0 * PI * hash12(id + 41.7);\n return vec2(cos(a), sin(a));\n}\n\n// the point of the flat tile seen at offset s from its center, through the foreshortening and the lift\nvec2 unproject(vec2 s, vec2 n, float f) {\n float c = abs(cos(PI * f));\n float along = dot(s, n);\n return (s + n * (along / max(c, 1e-4) - along)) / (1.0 + LIFT * sin(PI * f));\n}\n\n// 0.5 on the edges of a tile one unit tall: a diamond one unit wide, or a flat-top hexagon\nfloat shape(vec2 v) {\n v = abs(v);\n return hexagons ? max(v.y, dot(v, vec2(0.8660254, 0.5))) : v.x + v.y;\n}\n\n// the id of the tile centered at center\nvec2 idOf(vec2 center) {\n // the centers sit on multiples of (0.866, 0.5) for hexagons, of (0.5, 0.5) for diamonds\n vec2 grid = hexagons ? vec2(1.1547005, 2.0) : vec2(2.0);\n return floor(center * grid + 0.5) + vec2(13.0, 7.0) * floor(seed) + 3.0;\n}\n\n// how much of the flipping tile centered at center covers the point p, with an edge soft on screen\nfloat coverOf(vec2 p, vec2 center) {\n vec2 id = idOf(center);\n float f = flipOf(id);\n if (f <= 0.0 || f >= 1.0) return 0.0;\n float z = sin(PI * f);\n // the tile is foreshortened by |cos| along its axis and grown by the lift\n float onScreen = (1.0 + LIFT * z) * max(abs(cos(PI * f)), 0.15);\n // the edge softens in as the tile starts turning, so that nothing pops\n float edge = EDGE * min(1.0, 4.0 * z) + 1e-4;\n return clamp((0.5 - shape(unproject(p - center, axisOf(id), f))) * onScreen / edge, 0.0, 1.0);\n}\n\n// the flipping tile centered at center, seen at the point p: shaded, with its glint\nvec4 tileColor(vec2 p, vec2 center) {\n vec2 id = idOf(center);\n float f = flipOf(id);\n vec2 n = axisOf(id);\n float c = cos(PI * f);\n float z = sin(PI * f);\n vec2 s0 = unproject(p - center, n, f);\n vec2 suv = mirrored((center + s0 - SHIFT) / tiles / vec2(ratio, 1.0) + 0.5);\n vec4 col = c > 0.0 ? getFromColor(suv) : getToColor(suv);\n // the face turned to the viewer, slightly cupped like a sequin, lit from the top left\n vec3 nrm = normalize(vec3(n * z * (c < 0.0 ? -1.0 : 1.0) + 0.5 * s0, abs(c)));\n vec3 L = normalize(vec3(-0.3, 0.4, 1.0));\n float shade = 0.45 + 0.55 * clamp(dot(nrm, L) / L.z, 0.0, 1.6);\n // a glint where the face mirrors the light toward the viewer, and on the rim when edge-on\n vec3 H = normalize(vec3(-0.45, 0.55, 1.0));\n float spec = smoothstep(0.94, 0.995, dot(nrm, H)) * 2.0 + pow(1.0 - abs(c), 6.0) * 0.6;\n vec3 light = clamp(glint * sparkle * spec * z, 0.0, 1.0);\n vec3 base = clamp(col.rgb * mix(1.0, shade, z), 0.0, 1.0);\n return vec4(base + light - base * light, col.a);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n // in units where the tiles are one unit tall\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0) * tiles + SHIFT;\n // the center of the tile of the pixel\n vec2 home;\n if (hexagons) {\n vec2 s = vec2(1.7320508, 1.0);\n vec2 a = mod(p, s) - 0.5 * s;\n vec2 b = mod(p - 0.5 * s, s) - 0.5 * s;\n home = dot(a, a) < dot(b, b) ? p - a : p - b;\n } else {\n // a square grid turned by 45 degrees\n vec2 q = floor(vec2(p.x + p.y, p.y - p.x)) + 0.5;\n home = vec2(q.x - q.y, q.x + q.y) * 0.5;\n }\n\n // what lies under the flipping tiles: the image while the own tile rests, else the backing\n float fHome = flipOf(idOf(home));\n vec4 under = fHome <= 0.0 ? getFromColor(uv) : fHome >= 1.0 ? getToColor(uv) : backColor;\n\n // the two topmost flipping tiles at the pixel, among its own and the lifted neighbours\n // reaching over it: the higher a tile is in its flip, the closer it is to the viewer\n float z1 = -1.0;\n float z2 = -1.0;\n float cover1 = 0.0;\n float cover2 = 0.0;\n vec2 center1 = home;\n vec2 center2 = home;\n for (int k = 0; k < 9; k++) {\n float fk = float(k);\n vec2 off;\n if (hexagons) {\n if (k > 6) break;\n off = k == 0 ? vec2(0.0) : k < 3 ? vec2(0.0, fk * 2.0 - 3.0) : vec2(mod(fk, 2.0) * 1.7320508 - 0.8660254, fk < 5.0 ? -0.5 : 0.5);\n } else {\n vec2 o = vec2(mod(fk, 3.0) - 1.0, floor(fk / 3.0) - 1.0);\n off = vec2(o.x - o.y, o.x + o.y) * 0.5;\n }\n vec2 center = home + off;\n float cover = coverOf(p, center);\n if (cover <= 0.0) continue;\n float z = sin(PI * flipOf(idOf(center)));\n if (z > z1) {\n z2 = z1;\n cover2 = cover1;\n center2 = center1;\n z1 = z;\n cover1 = cover;\n center1 = center;\n } else if (z > z2) {\n z2 = z;\n cover2 = cover;\n center2 = center;\n }\n }\n if (z1 < 0.0) return under;\n vec4 c = under;\n if (z2 >= 0.0 && cover1 < 1.0) c = mix(c, tileColor(p, center2), cover2);\n return mix(c, tileColor(p, center1), cover1);\n}\n","author":"gre","license":"MIT","description":"The image becomes a shimmering field of tiny diamond sequins that flip over in 3D at random moments, each lifting and tilting on its own axis and flashing a glint of light, and land on the incoming image","tags":["tiles","flip","3d","sparkle","dissolve"],"params":{"tiles":{"type":"float","default":20,"min":6,"max":60,"description":"Number of tiles stacked across the height of the frame"},"hexagons":{"type":"bool","default":false,"description":"Hexagonal tiles instead of diamonds"},"sparkle":{"type":"float","default":1,"min":0,"max":2,"description":"Strength of the glints the tiles catch as they turn"},"glint":{"type":"vec3","default":[1,0.97,0.9],"color":true,"description":"Color of the glints, added as light"},"seed":{"type":"float","default":0,"min":0,"max":100,"description":"Changes the order and the axes of the flips (whole numbers)"},"backColor":{"type":"vec4","default":[0.04,0.04,0.05,1],"color":true,"description":"Color seen behind a tile while it is edge-on"}},"textures":[],"createdAt":"Sat, 7 Nov 2026 13:50:41 +0100","updatedAt":"Sat, 7 Nov 2026 13:50:41 +0100"},{"name":"GlowDissolve","paramsTypes":{"uLineWidth":"float","uSpreadClr":"vec3","uHotClr":"vec3","uPow":"float","uIntensity":"float"},"defaultParams":{"uLineWidth":0.1,"uSpreadClr":[1,0,0],"uHotClr":[0.9,0.9,0.2],"uPow":5,"uIntensity":1},"glsl":"// Author: hjm1fb\n// License: MIT\n// Description: The incoming image spreads over the outgoing one with a hot, glowing edge\n// Tags: dissolve, burn, glow\n\nuniform float uLineWidth; // = 0.1\n// @color Color of the spreading edge\nuniform vec3 uSpreadClr; // = vec3(1.0, 0.0, 0.0)\n// @color Color of the hottest part of the edge\nuniform vec3 uHotClr; // = vec3(0.9, 0.9, 0.2)\nuniform float uPow; // = 5.0\nuniform float uIntensity; // = 1.0\n\nvec2 hash(vec2 p) // replace this by something better\n{\n p = vec2(dot(p, vec2(127.1, 311.7)), dot(p, vec2(269.5, 183.3)));\n return -1.0 + 2.0 * fract(sin(p) * 43758.5453123);\n}\n\nfloat noise(in vec2 p) {\n const float K1 = 0.366025404; // (sqrt(3)-1)/2;\n const float K2 = 0.211324865; // (3-sqrt(3))/6;\n\n vec2 i = floor(p + (p.x + p.y) * K1);\n vec2 a = p - i + (i.x + i.y) * K2;\n float m = step(a.y, a.x);\n vec2 o = vec2(m, 1.0 - m);\n vec2 b = a - o + K2;\n vec2 c = a - 1.0 + 2.0 * K2;\n vec3 h = max(0.5 - vec3(dot(a, a), dot(b, b), dot(c, c)), 0.0);\n vec3 n = h * h * h * h * vec3(dot(a, hash(i + 0.0)), dot(b, hash(i + o)), dot(c, hash(i + 1.0)));\n return dot(n, vec3(70.0));\n}\n\nvec4 transition(vec2 uv) {\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n vec4 outColor;\n float burn;\n burn = 0.5 + 0.5 * (0.299 * from.r + 0.587 * from.g + 0.114 * from.b);\n\n float show = burn - progress;\n if (show < 0.001) {\n outColor = to;\n } else {\n float factor = 1.0 - smoothstep(0.0, uLineWidth, show);\n vec3 burnColor = mix(uSpreadClr, uHotClr, factor);\n burnColor = pow(burnColor, vec3(uPow)) * uIntensity;\n vec3 finalRGB = mix(from.rgb, burnColor, factor * step(0.0001, progress));\n outColor = vec4(finalRGB, from.a); // straight alpha, like the images\n }\n return outColor;\n}\n","author":"hjm1fb","license":"MIT","description":"The incoming image spreads over the outgoing one with a hot, glowing edge","tags":["dissolve","burn","glow"],"params":{"uLineWidth":{"type":"float","default":0.1},"uSpreadClr":{"type":"vec3","default":[1,0,0],"color":true,"description":"Color of the spreading edge"},"uHotClr":{"type":"vec3","default":[0.9,0.9,0.2],"color":true,"description":"Color of the hottest part of the edge"},"uPow":{"type":"float","default":5},"uIntensity":{"type":"float","default":1}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"GooeyWipe","paramsTypes":{"blobs":"float","smoothness":"float","highlight":"vec4","shadow":"vec4"},"defaultParams":{"blobs":5,"smoothness":0.5,"highlight":[1,1,1,0.7],"shadow":[0,0,0,0.3]},"glsl":"// Author: gre\n// License: MIT\n// Description: Soft, glossy blobs of liquid pop up over the outgoing image, swell and melt into each other, revealing the incoming image until they cover the whole frame\n// Tags: blob, liquid, organic, reveal\n\n// @range(2, 12, 1) Number of blobs across the frame\nuniform float blobs; // = 5.0\n// @range(0, 1) How smoothly neighbouring blobs melt into each other\nuniform float smoothness; // = 0.5\n// @color Color of the glossy highlight on the rim of the blobs (its alpha is its strength)\nuniform vec4 highlight; // = vec4(1.0, 1.0, 1.0, 0.7)\n// @color Color of the soft shadow that the blobs cast on the outgoing image\nuniform vec4 shadow; // = vec4(0.0, 0.0, 0.0, 0.3)\n\nfloat hash (vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\nvec2 fold (vec2 p) {\n return 1.0 - abs(1.0 - mod(p, 2.0));\n}\n\n// signed distance to the blob of a grid cell (in cells), its center returned in .yz\nvec3 blob (vec2 cell, float rStart, float rEnd) {\n vec2 c = cell + 0.5 + 0.7 * (vec2(hash(cell + 0.5), hash(cell + 41.3)) - 0.5);\n float t0 = 0.02 + 0.43 * hash(cell + 17.9); // when it pops up\n float s = clamp((progress - t0) / (1.0 - t0), 0.0, 1.0);\n // it pops up fast with a little wobble, then swells slowly\n float pop = clamp((progress - t0) / 0.12, 0.0, 1.0);\n pop = 1.0 - (1.0 - pop) * (1.0 - pop) * (1.0 - pop);\n float r = mix(rStart, 0.18, pop) + (rEnd - 0.18) * s * sqrt(s);\n r += 0.05 * sin(pop * 9.0) * (1.0 - s) * pop;\n return vec3(r, c);\n}\n\nvec4 transition (vec2 uv) {\n float n = max(1.0, floor(blobs + 0.5));\n float cellSize = max(ratio, 1.0) / n;\n vec2 q = vec2(uv.x * ratio, uv.y) / cellSize; // in cells\n vec2 base = floor(q);\n float k = 0.02 + 0.25 * smoothness; // melting distance, in cells\n float w = 0.16; // width of the rounded rim, in cells\n // a blob starts far enough below the surface not to show (the union of 49 blobs bulges by up to k * log(49)),\n // and ends up covering the whole of its cell (its center is at most 0.85 * sqrt(2) cells away) and its rim\n float rStart = -(0.03 + 4.0 * k);\n float rEnd = 0.85 * sqrt(2.0) + w + 0.05;\n // smooth union (log-sum-exp, computed online) of the blobs around, with its gradient;\n // blobs further than 3 cells away weigh less than exp(-7) and are left out\n float m = 1e3; // distance to the nearest blob\n float sum = 0.0;\n vec2 grad = vec2(0.0);\n float rNear = 0.0; // radius of the nearest blob\n for (int j = -3; j <= 3; j++) {\n for (int i = -3; i <= 3; i++) {\n vec3 b = blob(base + vec2(float(i), float(j)), rStart, rEnd);\n vec2 dq = q - b.yz;\n float l = length(dq);\n float dist = l - b.x;\n vec2 g = dq / max(l, 1e-4);\n if (dist < m) {\n float scale = exp((dist - m) / k);\n sum = sum * scale + 1.0;\n grad = grad * scale + g;\n m = dist;\n rNear = b.x;\n } else {\n float wt = exp((m - dist) / k);\n sum += wt;\n grad += wt * g;\n }\n }\n }\n float d = m - k * log(sum); // < 0 inside the goo\n grad /= sum;\n float aa = 0.012 * n / 5.0;\n float inside = 1.0 - smoothstep(-aa, aa, d);\n // a rounded, glossy surface near the edge, flat further inside; the goo settles flat at the end\n float h = clamp(-d / w, 0.0, 1.0);\n float settle = 1.0 - smoothstep(0.45, 0.85, progress);\n float tilt = (1.0 - h) * (1.0 - h) * settle;\n vec3 nrm = normalize(vec3(grad * tilt * 3.0, 1.0));\n vec3 halfway = normalize(vec3(-0.35, 0.45, 1.0) + vec3(0.0, 0.0, 1.0));\n float spec = pow(max(dot(nrm, halfway), 0.0), 200.0) * settle;\n // thick, opaque goo: darker toward its edge, more so on the side away from the light\n float shade = 1.0 - tilt * (0.25 + 0.3 * clamp(dot(grad, vec2(0.6, -0.8)) + 0.3, 0.0, 1.0));\n vec4 to = getToColor(fold(uv - grad * tilt * 0.01 * cellSize / vec2(ratio, 1.0)));\n float t2 = tilt * tilt;\n float gloss = 0.3 * t2 * t2; // a thin bright line right on the rim\n to.rgb = mix(to.rgb * shade, highlight.rgb, clamp(spec + gloss, 0.0, 1.0) * highlight.a);\n vec4 from = getFromColor(uv);\n float sh = shadow.a * (1.0 - smoothstep(0.0, 0.15, d + 0.03)) * smoothstep(0.0, 0.3, rNear);\n from.rgb = mix(from.rgb, shadow.rgb, sh);\n return mix(from, to, inside);\n}\n","author":"gre","license":"MIT","description":"Soft, glossy blobs of liquid pop up over the outgoing image, swell and melt into each other, revealing the incoming image until they cover the whole frame","tags":["blob","liquid","organic","reveal"],"params":{"blobs":{"type":"float","default":5,"min":2,"max":12,"step":1,"description":"Number of blobs across the frame"},"smoothness":{"type":"float","default":0.5,"min":0,"max":1,"description":"How smoothly neighbouring blobs melt into each other"},"highlight":{"type":"vec4","default":[1,1,1,0.7],"color":true,"description":"Color of the glossy highlight on the rim of the blobs (its alpha is its strength)"},"shadow":{"type":"vec4","default":[0,0,0,0.3],"color":true,"description":"Color of the soft shadow that the blobs cast on the outgoing image"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:35:40 +0100","updatedAt":"Sun, 1 Nov 2026 20:35:40 +0100"},{"name":"GravityLens","paramsTypes":{"center":"vec2","strength":"float","glow":"float","hole":"vec4"},"defaultParams":{"center":[0.5,0.5],"strength":0.6,"glow":0.6,"hole":[0,0,0,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: A black disk appears and grows, bending the outgoing image around it like a heavy mass bends light: the image is stretched into a bright ring at the disk's edge and swallowed until the frame is black, then the disk shrinks back, unbending the incoming image\n// Tags: distort, lens, space, circular, dark\n\n// Center of the disk\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @range(0, 1.5) How strongly the light bends: radius of the lensed ring beyond the disk's edge, in disk radii\nuniform float strength; // = 0.6\n// @range(0, 1) Brightness of the lensed ring and of the thin ring of light hugging the disk's edge\nuniform float glow; // = 0.6\n// @color Color of the disk\nuniform vec4 hole; // = vec4(0.0, 0.0, 0.0, 1.0)\n\n// how far past the farthest corner the disk grows, so the frame is fully covered for a brief moment\nconst float OVERSHOOT = 0.12;\n// moment the frame is black: the swallow takes a little longer than the release\nconst float PEAK = 0.55;\n// half width of the antialiased edge of the disk, in frame heights\nconst float AA = 0.002;\n// tint of the light piled up around the disk\nconst vec3 WARM = vec3(1.0, 0.86, 0.68);\n\n// fold the coordinates back into the frame, so the image stays filled without smearing its border\nvec2 mirrored(vec2 v) {\n vec2 m = mod(v, 2.0);\n return mix(m, 2.0 - m, step(1.0, m));\n}\n\nvec4 transition(vec2 uv) {\n // the disk grows with an accelerating swallow, then shrinks back a little faster: exactly 0 at both ends\n bool swallowing = progress < PEAK;\n float u = swallowing ? progress / PEAK : (1.0 - progress) / (1.0 - PEAK);\n float u2 = u * u;\n float k = u2 * (0.6 + 0.4 * u2);\n\n // measured in frame heights, so the disk is round\n vec2 aspect = vec2(ratio, 1.0);\n vec2 far = max(center, 1.0 - center) * aspect;\n float rh = length(far) * (1.0 + OVERSHOOT) * k;\n // radius where the light coming from right behind the disk shows up as a ring\n float re = rh * (1.0 + max(strength, 0.0));\n\n vec2 d = (uv - center) * aspect;\n float r = max(length(d), 1e-5);\n // a point mass deflects the light by an angle falling off as 1/r\n vec2 q = mirrored(center + d * (1.0 - re * re / (r * r)) / aspect);\n vec4 c = swallowing ? getFromColor(q) : getToColor(q);\n // the shading fades in with the disk, so it is exactly 0 at both ends\n float amount = smoothstep(0.0, 0.04, rh);\n // the second, flipped image squeezed between the ring and the disk is dimmer\n float inner = clamp((r - rh) / (re - rh + 1e-4), 0.0, 1.0);\n c.rgb *= 1.0 - 0.7 * amount * (1.0 - inner * inner * (3.0 - 2.0 * inner));\n\n // light piles up into a ring where the image is most stretched, and into a thin ring hugging the edge\n float g = max(glow, 0.0) * amount;\n float einstein = (r - re) / (0.3 * (re - rh) + 0.01);\n float photon = max(r - rh, 0.0) / (0.006 + 0.012 * rh);\n float light = g * (0.7 * exp(-einstein * einstein) + 1.6 * exp(-photon * photon));\n c.rgb = min(c.rgb * (1.0 + light) + WARM * (0.35 * light * c.a), vec3(1.0));\n\n // antialiased horizon, kept inside the disk so it vanishes with it\n float cov = clamp((rh - r) / (2.0 * AA), 0.0, 1.0);\n return mix(c, hole, cov);\n}\n","author":"gre","license":"MIT","description":"A black disk appears and grows, bending the outgoing image around it like a heavy mass bends light: the image is stretched into a bright ring at the disk's edge and swallowed until the frame is black, then the disk shrinks back, unbending the incoming image","tags":["distort","lens","space","circular","dark"],"params":{"center":{"type":"vec2","default":[0.5,0.5]},"strength":{"type":"float","default":0.6,"min":0,"max":1.5,"description":"How strongly the light bends: radius of the lensed ring beyond the disk's edge, in disk radii"},"glow":{"type":"float","default":0.6,"min":0,"max":1,"description":"Brightness of the lensed ring and of the thin ring of light hugging the disk's edge"},"hole":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color of the disk"}},"textures":[],"createdAt":"Sun, 8 Nov 2026 21:29:33 +0100","updatedAt":"Sun, 8 Nov 2026 21:29:33 +0100"},{"name":"GridFlip","paramsTypes":{"size":"ivec2","pause":"float","dividerWidth":"float","bgcolor":"vec4","randomness":"float"},"defaultParams":{"size":[4,4],"pause":0.1,"dividerWidth":0.05,"bgcolor":[0,0,0,1],"randomness":0.1},"glsl":"// License: MIT\n// Author: TimDonselaar\n// Description: The image splits into a grid of cards that lift apart and turn over in perspective one after another, each one showing its part of the incoming image on its back\n// Tags: grid, tiles, flip, 3d\n// ported by gre from https://gist.github.com/TimDonselaar/9bcd1c4b5934ba60087bdb55c2ea92e5\n\n// @param Number of tiles (columns, rows)\nuniform ivec2 size; // = ivec2(4)\n// @range(0, 0.4) Part of the transition at the start and at the end during which the gaps between the tiles open and close\nuniform float pause; // = 0.1\n// @range(0, 0.4) Width of the gaps between the tiles, as a part of a tile's shorter side\nuniform float dividerWidth; // = 0.05\n// @color Color behind the tiles\nuniform vec4 bgcolor; // = vec4(0.0, 0.0, 0.0, 1.0)\n// @range(0, 1) How much the order of the flips is shuffled, from a diagonal wave across the grid to random\nuniform float randomness; // = 0.1\n\nconst float PI = 3.141592653589793;\n// width of the anti-aliased edges, as a part of the frame's height\nconst float EDGE = 0.0012;\n// distance of the eye from each tile, in tile sizes\nconst float EYE = 2.2;\n// part of the flips during which the last tile waits for its turn\nconst float STAGGER = 0.55;\n// light direction (x, y over z): from the upper left, in front of the frame\nconst vec2 LIGHT = vec2(-0.45, 0.3);\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\n// eased turn: smooth start and landing, without lingering at either end\nfloat easeInOut(float t) {\n return mix(t, t * t * (3.0 - 2.0 * t), 0.7);\n}\n\n// time the gaps take to open and to close\nfloat pausePart() {\n return clamp(pause, 0.05, 0.4);\n}\n\n// the turn of a tile, 0 showing the outgoing image to 1 showing the incoming one,\n// at q the progress of the flips and with stagger the delay of the last tile\nfloat flipTime(vec2 cell, vec2 grid, float q, float stagger) {\n // a diagonal wave from the top left corner, shuffled by randomness\n float wave = (cell.x + (grid.y - 1.0 - cell.y)) / max(grid.x + grid.y - 2.0, 1.0);\n float order = mix(wave, hash12(cell + 7.31), clamp(randomness, 0.0, 1.0));\n return easeInOut(clamp((q - order * stagger) / (1.0 - stagger), 0.0, 1.0));\n}\n\n// how open the gaps are: they open at the start and close at the end\nfloat gapAmount() {\n float pp = pausePart();\n return smoothstep(0.0, pp, progress) * (1.0 - smoothstep(1.0 - pp, 1.0, progress));\n}\n\n// coverage of a signed distance (positive inside) with an edge of width e\nfloat aa(float d, float e) {\n return clamp(d / max(2.0 * e, 1e-6) + 0.5, 0.0, 1.0);\n}\n\nfloat boxShadow(vec2 p, vec2 halfSize, float blur) {\n vec2 d = abs(p) - halfSize;\n float dist = length(max(d, 0.0)) + min(max(d.x, d.y), 0.0);\n return 1.0 - smoothstep(-blur, blur, dist);\n}\n\nvec4 transition(vec2 uv) {\n vec2 grid = max(vec2(size), 1.0);\n vec2 frame = vec2(ratio, 1.0);\n vec2 tileSize = frame / grid;\n vec2 cell = clamp(floor(uv * grid), vec2(0.0), grid - 1.0);\n vec2 pos = uv * frame;\n float gapOpen = gapAmount();\n float minSide = min(tileSize.x, tileSize.y);\n float gap = clamp(dividerWidth, 0.0, 0.4) * minSide * gapOpen;\n vec2 halfTile = 0.5 * tileSize - gap;\n float eye = EYE * max(tileSize.x, tileSize.y);\n // the flips start while the gaps finish opening, and end while they start closing\n float pp = 0.6 * pausePart();\n float q = clamp((progress - pp) / (1.0 - 2.0 * pp), 0.0, 1.0);\n // a single tile takes all the time to turn\n float stagger = grid.x * grid.y > 1.5 ? STAGGER : 0.0;\n\n // the two nearest layers of the tiles that cover this point\n vec4 c1 = vec4(0.0);\n vec4 c2 = vec4(0.0);\n float m1 = 0.0;\n float m2 = 0.0;\n float z1 = 1e9;\n float z2 = 1e9;\n bool rest1 = true;\n bool rest2 = true;\n float shadowBg = 0.0;\n float shadowFlip = 0.0;\n\n for (int j = -1; j <= 1; j++) {\n for (int i = -1; i <= 1; i++) {\n vec2 nc = cell + vec2(float(i), float(j));\n if (nc.x < 0.0 || nc.y < 0.0 || nc.x > grid.x - 1.0 || nc.y > grid.y - 1.0) continue;\n float t = flipTime(nc, grid, q, stagger);\n float a = PI * t;\n float ca = cos(a);\n float sa = sin(a);\n bool rest = t <= 0.0 || t >= 1.0;\n if (rest) {\n ca = t <= 0.0 ? 1.0 : -1.0;\n sa = 0.0;\n }\n vec2 center = (nc + 0.5) * tileSize;\n vec2 q = pos - center;\n\n // shadows on the background: the tiles float a little above it, and higher while they turn\n float lift = 0.05 * gapOpen * minSide + 0.35 * halfTile.x * sa;\n vec2 shOffset = -LIGHT * lift;\n vec2 shHalf = vec2(halfTile.x * abs(ca) + 0.5 * lift, halfTile.y);\n float sh = boxShadow(q - shOffset, shHalf, 0.01 * minSide + 0.5 * lift);\n shadowBg = 1.0 - (1.0 - shadowBg) * (1.0 - 0.45 * gapOpen * sh);\n shadowFlip = max(shadowFlip, 0.45 * sa * sa * sh);\n\n // ray from the eye in front of the tile's center, through this point, to the turned tile\n // the tile turns around its vertical axis: its local x axis is (ca, 0, -sa), its normal (sa, 0, ca)\n float den = eye * ca - q.x * sa;\n if (abs(den) < 1e-6) continue;\n float s = eye * ca / den;\n if (s <= 0.0) continue;\n vec3 hit = vec3(s * q.x, s * q.y, eye * (1.0 - s));\n float u = hit.x * ca - hit.z * sa;\n // the edges seen on screen, to anti-alias them\n float xa = halfTile.x * ca * eye / (eye + halfTile.x * sa);\n float xb = -halfTile.x * ca * eye / (eye - halfTile.x * sa);\n float dx = min(q.x - min(xa, xb), max(xa, xb) - q.x);\n float dy = (halfTile.y - abs(hit.y)) / s;\n // soft edges, except where the tiles touch each other\n float e = max(min(EDGE, gap), EDGE * min(8.0 * sa, 1.0));\n float m = aa(min(dx, dy), e);\n if (m <= 0.0) continue;\n\n // the front shows the outgoing image, the back the incoming one, seen from behind\n bool front = ca > 0.0;\n vec2 src = (center + vec2(front ? u : -u, hit.y)) / frame;\n vec4 col = front ? getFromColor(src) : getToColor(src);\n if (!rest) {\n // lit from the upper left: the turning side facing the light brightens a little, the other darkens\n float nx = front ? sa : -sa;\n float lit = abs(ca) + nx * LIGHT.x;\n col.rgb *= mix(0.35, 1.0, clamp(lit, 0.0, 1.0)) + 0.25 * max(lit - 1.0, 0.0);\n // a thin bright rim on the edges of the turning card\n col.rgb += 0.12 * sa * (1.0 - smoothstep(0.0, 3.0 * EDGE, min(dx, dy)));\n }\n\n if (s < z1) {\n c2 = c1; m2 = m1; z2 = z1; rest2 = rest1;\n c1 = col; m1 = m; z1 = s; rest1 = rest;\n } else if (s < z2) {\n c2 = col; m2 = m; z2 = s; rest2 = rest;\n }\n }\n }\n\n // the flipping tiles cast their shadows on the background and on the tiles lying still\n vec4 color = bgcolor;\n color.rgb *= 1.0 - clamp(max(shadowBg, shadowFlip), 0.0, 1.0);\n if (rest2) c2.rgb *= 1.0 - shadowFlip;\n if (rest1) c1.rgb *= 1.0 - shadowFlip;\n color = mix(color, c2, m2);\n color = mix(color, c1, m1);\n return color;\n}\n","author":"TimDonselaar","license":"MIT","description":"The image splits into a grid of cards that lift apart and turn over in perspective one after another, each one showing its part of the incoming image on its back","tags":["grid","tiles","flip","3d"],"params":{"size":{"type":"ivec2","default":[4,4],"description":"Number of tiles (columns, rows)"},"pause":{"type":"float","default":0.1,"min":0,"max":0.4,"description":"Part of the transition at the start and at the end during which the gaps between the tiles open and close"},"dividerWidth":{"type":"float","default":0.05,"min":0,"max":0.4,"description":"Width of the gaps between the tiles, as a part of a tile's shorter side"},"bgcolor":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color behind the tiles"},"randomness":{"type":"float","default":0.1,"min":0,"max":1,"description":"How much the order of the flips is shuffled, from a diagonal wave across the grid to random"}},"textures":[],"createdAt":"Mon, 12 Jun 2017 11:32:51 +0800","updatedAt":"Sat, 7 Nov 2026 18:51:43 +0100"},{"name":"Halftone","paramsTypes":{"dots":"float","angle":"float","paper":"vec4"},"defaultParams":{"dots":28,"angle":45,"paper":[1,1,1,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The image breaks into printed halftone dots whose size follows its shades, the dots reshape into the incoming image, then merge back into it\n// Tags: dots, pattern, retro\n\n// @range(4, 80) Number of dots across the shorter side\nuniform float dots; // = 28.0\n// @range(0, 90) Angle of the dot grid, in degrees\nuniform float angle; // = 45.0\n// @color Color of the paper between the dots\nuniform vec4 paper; // = vec4(1.0, 1.0, 1.0, 1.0)\n\n// Dot radius, in cells, of a halftone printing this color (darker is bigger)\nfloat dotRadius(vec4 c) {\n float shade = 1.0 - dot(c.rgb, vec3(0.299, 0.587, 0.114));\n return mix(0.1, 0.74, sqrt(clamp(shade, 0.0, 1.0))) * c.a;\n}\n\nvec4 transition(vec2 uv) {\n // the image turns into dots until 0.3, the dots reshape from left to right, then merge back from 0.7\n float h = smoothstep(0.0, 0.3, progress) * (1.0 - smoothstep(0.7, 1.0, progress));\n float t = (progress - 0.3) / 0.4;\n // rotated square grid, in cells\n float a = radians(angle);\n mat2 rot = mat2(cos(a), sin(a), -sin(a), cos(a));\n vec2 scale = vec2(ratio, 1.0) * dots / min(ratio, 1.0);\n vec2 g = rot * ((uv - 0.5) * scale);\n vec2 base = floor(g - 0.5) + 0.5;\n vec4 pixel = progress < 0.5 ? getFromColor(uv) : getToColor(uv);\n // the dots of the 4 nearest cells may overlap this point: keep the one it is deepest in\n float best = 1e3;\n vec4 ink = pixel;\n for (int i = 0; i < 4; i++) {\n vec2 center = base + vec2(mod(float(i), 2.0), floor(float(i) / 2.0));\n vec2 cuv = (center * rot) / scale + 0.5; // inverse rotation\n vec4 cf = getFromColor(cuv);\n vec4 ct = getToColor(cuv);\n float m = smoothstep(0.0, 1.0, clamp(2.5 * t - 1.5 * cuv.x, 0.0, 1.0));\n // at h = 0, the dots cover their whole cell with the image itself\n float r = mix(0.78, mix(dotRadius(cf), dotRadius(ct), m), h);\n float sd = length(g - center) - r;\n if (sd < best) {\n best = sd;\n ink = mix(pixel, mix(cf, ct, m), h);\n }\n }\n return mix(paper, ink, 1.0 - smoothstep(-0.06, 0.06, best));\n}\n","author":"gre","license":"MIT","description":"The image breaks into printed halftone dots whose size follows its shades, the dots reshape into the incoming image, then merge back into it","tags":["dots","pattern","retro"],"params":{"dots":{"type":"float","default":28,"min":4,"max":80,"description":"Number of dots across the shorter side"},"angle":{"type":"float","default":45,"min":0,"max":90,"description":"Angle of the dot grid, in degrees"},"paper":{"type":"vec4","default":[1,1,1,1],"color":true,"description":"Color of the paper between the dots"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:26:58 +0100","updatedAt":"Sat, 31 Oct 2026 18:26:58 +0100"},{"name":"HeartWipe","paramsTypes":{"center":"vec2","smoothness":"float","pulse":"float","glowColor":"vec3","glow":"float"},"defaultParams":{"center":[0.5,0.5],"smoothness":0.006,"pulse":0.5,"glowColor":[1,0.85,0.9],"glow":0.3},"glsl":"// Author: gre\n// License: MIT\n// Description: A heart grows from the center with a little heartbeat to reveal the incoming image\n// Tags: shape, wipe, heart\n\n// @param Center of the heart\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @range(0, 0.1) Softness of the heart's edge\nuniform float smoothness; // = 0.006\n// @range(0, 1) Strength of the heartbeat throb as the heart grows\nuniform float pulse; // = 0.5\n// @color Color of the soft light glowing along the heart's edge\nuniform vec3 glowColor; // = vec3(1.0, 0.85, 0.9)\n// @range(0, 1) Strength of the glow (0 for a clean edge)\nuniform float glow; // = 0.3\n\n// The heart shape: tip at (0, 0), notch at (0, 1), lobes are circles of radius sqrt(2)/4\n// centered at (+-0.25, 0.75), tangent to the lines y = |x|. HEART_O is its center.\n#define HEART_O vec2(0.0, 0.55)\n#define LOBE vec2(0.25, 0.75)\n#define LOBE_R 0.35355339\n\nfloat dot2(vec2 v) { return dot(v, v); }\n\n// Exact signed distance to the heart\nfloat sdHeart(vec2 p) {\n p.x = abs(p.x);\n if (p.x + p.y > 1.0) return sqrt(dot2(p - LOBE)) - LOBE_R;\n return sqrt(min(dot2(p - vec2(0.0, 1.0)), dot2(p - 0.5 * max(p.x + p.y, 0.0)))) * sign(p.x - p.y);\n}\n\n// Scale of the smallest heart (centered on HEART_O) that contains p: the heart is the union of a\n// lobe disk and the triangle |x| <= y, |x| + y <= 1, both convex around HEART_O, so the boundary\n// along a ray is the farthest of their exits.\nfloat heartScale(vec2 p) {\n float l = length(p);\n if (l < 1e-6) return 0.0;\n vec2 d = vec2(abs(p.x), p.y) / l;\n vec2 m = HEART_O - LOBE;\n float b = dot(m, d);\n float tDisk = -b + sqrt(b * b - dot2(m) + LOBE_R * LOBE_R);\n float tSide = d.x > d.y ? HEART_O.y / (d.x - d.y) : 1e6;\n float tTop = d.x + d.y > 0.0 ? (1.0 - HEART_O.y) / (d.x + d.y) : 1e6;\n return l / max(tDisk, min(tSide, tTop));\n}\n\nvec4 transition (vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n vec2 asp = vec2(ratio, 1.0);\n vec2 c = center * asp;\n // Scale at which the heart covers the whole frame: the corners, plus the point of the top edge\n // in line with the notch (the only concave part of the heart)\n float cx = clamp(center.x, 0.0, 1.0) * ratio;\n float full = max(\n max(max(heartScale(vec2(0.0, 0.0) - c), heartScale(vec2(ratio, 0.0) - c)),\n max(heartScale(vec2(0.0, 1.0) - c), heartScale(vec2(ratio, 1.0) - c))),\n heartScale(vec2(cx, 1.0) - c));\n float sm = max(smoothness, 0.001);\n // Margin so the soft edge is past the frame at progress = 1\n full += 4.0 * sm;\n\n // Eased growth with two heartbeats riding on it: the heart surges, then almost stops\n float p = progress;\n float e = p * p * (2.0 - p);\n float env = max(sin(3.14159265 * p), 0.0);\n float beat = sin(6.28318531 * 2.0 * p) * env * env;\n float s = full * clamp(e + 0.09 * pulse * beat, 0.0, 1.0);\n if (s <= 0.0) return a;\n\n vec2 q = uv * asp - c;\n float d = s * sdHeart(q / s + HEART_O);\n float m = smoothstep(0.0, sm, -d);\n vec4 col = mix(a, b, m);\n // Soft light just outside the edge, faded in and out with the transition (adds no alpha)\n float light = exp(-max(d, 0.0) / (0.008 + sm)) * (1.0 - m) * glow * min(1.0, 4.0 * env);\n return col + vec4(glowColor * light, 0.0);\n}\n","author":"gre","license":"MIT","description":"A heart grows from the center with a little heartbeat to reveal the incoming image","tags":["shape","wipe","heart"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Center of the heart"},"smoothness":{"type":"float","default":0.006,"min":0,"max":0.1,"description":"Softness of the heart's edge"},"pulse":{"type":"float","default":0.5,"min":0,"max":1,"description":"Strength of the heartbeat throb as the heart grows"},"glowColor":{"type":"vec3","default":[1,0.85,0.9],"color":true,"description":"Color of the soft light glowing along the heart's edge"},"glow":{"type":"float","default":0.3,"min":0,"max":1,"description":"Strength of the glow (0 for a clean edge)"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sat, 7 Nov 2026 18:49:54 +0100"},{"name":"HeatHaze","paramsTypes":{"strength":"float","scale":"float","speed":"float"},"defaultParams":{"strength":0.04,"scale":6,"speed":2},"glsl":"// Author: gre\n// License: MIT\n// Description: Shimmering heat waves rise through the frame, strongest at the bottom, making the outgoing image wobble like the air over hot asphalt; the incoming image shows through the haze and settles as it calms\n// Tags: distort, heat, shimmer, noise, organic, blend\n\n// @range(0, 0.1) How far the haze bends the image, in frame heights (the strongest waves bend it about 1.5 times as far)\nuniform float strength; // = 0.04\n// @range(1, 12) Size of the heat waves: more, smaller ones with a larger value\nuniform float scale; // = 6.0\n// @range(0, 6) How fast the heat waves rise\nuniform float speed; // = 2.0\n\n// reflects coordinates that leave the frame back into it, so the edges do not smear\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\nfloat vnoise(vec2 v) {\n vec2 i = floor(v);\n vec2 f = fract(v);\n f = f * f * (3.0 - 2.0 * f);\n return mix(\n mix(hash12(i), hash12(i + vec2(1.0, 0.0)), f.x),\n mix(hash12(i + vec2(0.0, 1.0)), hash12(i + vec2(1.0, 1.0)), f.x),\n f.y\n );\n}\n\n// centered on 0, within [-1.5, 1.5]\nfloat fbm(vec2 v) {\n float sum = 0.0;\n float amp = 0.5;\n for (int i = 0; i < 4; i++) {\n sum += amp * vnoise(v);\n v = mat2(1.6, 1.2, -1.2, 1.6) * v + 5.3;\n amp *= 0.5;\n }\n return (sum / 0.9375 - 0.5) * 3.0;\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n const float PI = 3.141592653589793;\n float p = progress;\n // the haze builds up then calms down\n float amount = sin(PI * p);\n // the waves scroll upward and slowly churn as they rise\n float t = p * speed;\n // in square pixels, then squashed vertically into the thin bands of rising air\n vec2 q = vec2(uv.x * ratio, uv.y * 2.5) * scale;\n q.y -= t * scale;\n // the bands are bent by a slower, larger turbulence so they do not stay straight\n vec2 w = vec2(fbm(q * 0.35 + vec2(0.0, t)), fbm(q * 0.35 + vec2(7.1, -t)));\n q += 1.5 * w;\n vec2 offset = vec2(fbm(q), 0.5 * fbm(q + vec2(3.7, 1.9)));\n // the hot air is near the ground: strongest at the bottom, fainter at the top\n float ground = mix(1.0, 0.3, uv.y);\n offset *= strength * amount * ground * vec2(1.0 / ratio, 1.0);\n\n vec2 d = mirror(uv + offset);\n // the images swap in the thick of the haze\n float m = smoothstep(0.3, 0.7, p);\n if (m <= 0.0) return getFromColor(d);\n if (m >= 1.0) return getToColor(d);\n vec4 a = getFromColor(d);\n vec4 b = getToColor(d);\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Shimmering heat waves rise through the frame, strongest at the bottom, making the outgoing image wobble like the air over hot asphalt; the incoming image shows through the haze and settles as it calms","tags":["distort","heat","shimmer","noise","organic","blend"],"params":{"strength":{"type":"float","default":0.04,"min":0,"max":0.1,"description":"How far the haze bends the image, in frame heights (the strongest waves bend it about 1.5 times as far)"},"scale":{"type":"float","default":6,"min":1,"max":12,"description":"Size of the heat waves: more, smaller ones with a larger value"},"speed":{"type":"float","default":2,"min":0,"max":6,"description":"How fast the heat waves rise"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:12:23 +0100","updatedAt":"Wed, 4 Nov 2026 20:12:23 +0100"},{"name":"Hexagonalize","paramsTypes":{"steps":"int","horizontalHexagons":"float"},"defaultParams":{"steps":50,"horizontalHexagons":20},"glsl":"// Author: Fernando Kuteken\n// License: MIT\n// Description: Both images turn into hexagons, crossfade, then sharpen again\n// Tags: pixelate, hexagon, blend\n// Hexagonal math from: http://www.redblobgames.com/grids/hexagons/\n\nuniform int steps; // = 50\n// @param Number of hexagons across\nuniform float horizontalHexagons; // = 20\n\nstruct Hexagon {\n float q;\n float r;\n float s;\n};\n\nHexagon createHexagon(float q, float r){\n Hexagon hex;\n hex.q = q;\n hex.r = r;\n hex.s = -q - r;\n return hex;\n}\n\nHexagon roundHexagon(Hexagon hex){\n \n float q = floor(hex.q + 0.5);\n float r = floor(hex.r + 0.5);\n float s = floor(hex.s + 0.5);\n\n float deltaQ = abs(q - hex.q);\n float deltaR = abs(r - hex.r);\n float deltaS = abs(s - hex.s);\n\n if (deltaQ > deltaR && deltaQ > deltaS)\n q = -r - s;\n else if (deltaR > deltaS)\n r = -q - s;\n else\n s = -q - r;\n\n return createHexagon(q, r);\n}\n\nHexagon hexagonFromPoint(vec2 point, float size) {\n \n point.y /= ratio;\n point = (point - 0.5) / size;\n \n float q = (sqrt(3.0) / 3.0) * point.x + (-1.0 / 3.0) * point.y;\n float r = 0.0 * point.x + 2.0 / 3.0 * point.y;\n\n Hexagon hex = createHexagon(q, r);\n return roundHexagon(hex);\n \n}\n\nvec2 pointFromHexagon(Hexagon hex, float size) {\n \n float x = (sqrt(3.0) * hex.q + (sqrt(3.0) / 2.0) * hex.r) * size + 0.5;\n float y = (0.0 * hex.q + (3.0 / 2.0) * hex.r) * size + 0.5;\n \n return vec2(x, y * ratio);\n}\n\nvec4 transition (vec2 uv) {\n \n float dist = 2.0 * min(progress, 1.0 - progress);\n dist = steps > 0 ? ceil(dist * float(steps)) / float(steps) : dist;\n \n float size = (sqrt(3.0) / 3.0) * dist / horizontalHexagons;\n \n vec2 point = dist > 0.0 ? pointFromHexagon(hexagonFromPoint(uv, size), size) : uv;\n\n return mix(getFromColor(point), getToColor(point), progress);\n \n}\n","author":"Fernando Kuteken","license":"MIT","description":"Both images turn into hexagons, crossfade, then sharpen again","tags":["pixelate","hexagon","blend"],"params":{"steps":{"type":"int","default":50},"horizontalHexagons":{"type":"float","default":20,"description":"Number of hexagons across"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Hologram","paramsTypes":{"tint":"vec3","background":"vec4","scanlines":"float","jitter":"float","flicker":"float"},"defaultParams":{"tint":[0.2,0.75,1],"background":[0,0.02,0.05,1],"scanlines":150,"jitter":0.04,"flicker":0.6},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image turns into a flickering hologram (blue by default) with scanlines and jittering rows, breaks up, and the hologram resolves into the incoming image in full color\n// Tags: hologram, sci-fi, scanlines, flicker, glitch\n\n// @color Color of the hologram\nuniform vec3 tint; // = vec3(0.2, 0.75, 1.0)\n// @color Color behind the hologram, seen between its scanlines and where it breaks up\nuniform vec4 background; // = vec4(0.0, 0.02, 0.05, 1.0)\n// @range(20, 300) Number of scanlines over the frame height\nuniform float scanlines; // = 150.0\n// @range(0, 0.2) How far rows of the hologram jump sideways, relative to the frame width\nuniform float jitter; // = 0.04\n// @range(0, 1) Strength of the flicker and of the rows that drop out\nuniform float flicker; // = 0.6\n\nconst float PI = 3.14159265;\n// steps per transition of the flicker and the jitter\nconst float STEPS = 32.0;\n\nfloat hash(vec2 p) {\n p = fract(p * vec2(443.897, 441.423));\n p += dot(p, p.yx + 19.19);\n return fract((p.x + p.y) * p.x);\n}\n\nfloat luma(vec3 c) {\n return dot(c, vec3(0.299, 0.587, 0.114));\n}\n\nvec4 premultiplied(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\n// the image the hologram shows: rows switch from the outgoing image to the incoming one\n// while the hologram breaks up\nvec4 source(vec2 uv, float m) {\n return m > 0.5 ? getToColor(uv) : getFromColor(uv);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n float p = progress;\n // how much of the hologram shows, and how broken up it is (peaking mid-transition)\n float h = smoothstep(0.0, 0.3, p) * (1.0 - smoothstep(0.7, 1.0, p));\n float b = smoothstep(0.0, 1.0, 1.0 - abs(p - 0.5) / 0.22);\n float f = floor(p * STEPS);\n\n // rows of the hologram jump sideways, more while it breaks up\n float band = floor(uv.y * 36.0);\n float jump = step(1.0 - (0.2 + 0.6 * b) * h, hash(vec2(band, f)));\n float offset = (hash(vec2(band, f + 0.37)) - 0.5) * 2.0 * jitter * jump * (0.3 + 0.7 * b);\n offset += sin(uv.y * 23.0 + f * 1.7) * 0.0015 * h;\n vec2 q = uv + vec2(offset, 0.0);\n\n // when each row of the hologram switches to the incoming image\n float m = step(hash(vec2(floor(uv.y * 24.0), 7.0)), (p - 0.35) / 0.3);\n\n // the hologram: the luma of the image in the tint, with colored fringes\n // (sampled inside the frame, the fringes weighted by the alpha of their texels)\n vec4 c = source(clamp(q, 0.0, 1.0), m);\n vec2 dx = vec2(0.003 + 0.01 * b, 0.0);\n float l = luma(c.rgb);\n vec4 cr = source(clamp(q + dx, 0.0, 1.0), m);\n vec4 cb = source(clamp(q - dx, 0.0, 1.0), m);\n float lr = luma(cr.rgb) * cr.a;\n float lb = luma(cb.rgb) * cb.a;\n vec3 g = smoothstep(0.05, 0.9, vec3(lr, l, lb));\n // the brightest parts burn toward white\n vec3 holo = tint * (0.06 + 1.25 * g) + 0.45 * g * g * g;\n // brighter scan band rolling down\n float roll = fract(uv.y + 2.0 * p);\n holo += tint * 0.35 * smoothstep(0.85, 1.0, roll) * (1.0 - smoothstep(0.98, 1.0, roll));\n holo = clamp(holo, 0.0, 1.0);\n // nothing outside the image where a row jumped out of the frame\n float inside = step(0.0, q.x) * step(q.x, 1.0);\n\n // opacity of the hologram: scanlines, flicker and missing rows\n float lines = 0.5 + 0.5 * sin((uv.y * scanlines - p * 6.0) * 2.0 * PI);\n float vis = mix(1.0, 0.15 + 0.85 * lines, h);\n vis *= 1.0 - flicker * (0.25 + 0.75 * b) * hash(vec2(f, 3.1)) * h;\n float gap = step(hash(vec2(floor(uv.y * 90.0), f + 0.71)), flicker * 0.45 * b);\n vis *= 1.0 - gap;\n vec4 layer = vec4(holo, c.a * vis * inside);\n // the hologram over its background, transparent where neither the image nor the\n // hologram is\n vec4 plain = premultiplied(source(uv, m));\n vec4 back = premultiplied(vec4(background.rgb, background.a * max(plain.a, layer.a)));\n vec4 holoColor = premultiplied(layer) + back * (1.0 - layer.a);\n\n // the images in full color, then the hologram over them\n vec4 o = mix(plain, holoColor, h);\n return o.a > 0.0 ? vec4(o.rgb / o.a, o.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The outgoing image turns into a flickering hologram (blue by default) with scanlines and jittering rows, breaks up, and the hologram resolves into the incoming image in full color","tags":["hologram","sci-fi","scanlines","flicker","glitch"],"params":{"tint":{"type":"vec3","default":[0.2,0.75,1],"color":true,"description":"Color of the hologram"},"background":{"type":"vec4","default":[0,0.02,0.05,1],"color":true,"description":"Color behind the hologram, seen between its scanlines and where it breaks up"},"scanlines":{"type":"float","default":150,"min":20,"max":300,"description":"Number of scanlines over the frame height"},"jitter":{"type":"float","default":0.04,"min":0,"max":0.2,"description":"How far rows of the hologram jump sideways, relative to the frame width"},"flicker":{"type":"float","default":0.6,"min":0,"max":1,"description":"Strength of the flicker and of the rows that drop out"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:14:30 +0100","updatedAt":"Wed, 4 Nov 2026 20:14:30 +0100"},{"name":"Honeycomb","paramsTypes":{"size":"float"},"defaultParams":{"size":6},"glsl":"// Author: gre\n// License: MIT\n// Description: The image splits into hexagons that spin and shrink away in a wave from the center, uncovering the incoming image\n// Tags: hexagon, tiles, rotate, radial\n\n// @range(2, 30) Number of hexagons across the shorter side\nuniform float size; // = 6.0\n\n// Distance to the center of a pointy-top hexagon, 0.5 on the edges of a cell\nfloat hexDist(vec2 p) {\n p = abs(p);\n return max(p.x, dot(p, vec2(0.5, 0.8660254)));\n}\n\nmat2 rotation(float a) {\n return mat2(cos(a), sin(a), -sin(a), cos(a));\n}\n\n// Coverage of a hexagon turned by a and scaled by s inside its cell, with soft edges of width e\n// (unturned at s = 1, it covers its whole cell)\nfloat hexMask(vec2 local, float s, float a, float e) {\n float r = (0.52 + e) * s;\n return 1.0 - smoothstep(r - e, r, hexDist(rotation(-a) * local));\n}\n\n// Where the image is sampled, for a point of a hexagon turned by a and scaled by s\nvec2 hexUv(vec2 uv, vec2 local, vec2 cellToUv, float s, float a) {\n return uv + cellToUv * (rotation(-a) * local / max(s, 0.001) - local);\n}\n\nvec4 transition(vec2 uv) {\n // nearest hexagon center, on two interleaved rectangular grids (centers 1 apart)\n vec2 toCells = vec2(ratio, 1.0) * size / min(ratio, 1.0);\n vec2 p = (uv - 0.5) * toCells;\n const vec2 grid = vec2(1.0, 1.7320508);\n vec2 a = (floor(p / grid) + 0.5) * grid;\n vec2 b = (floor((p - 0.5 * grid) / grid) + 1.0) * grid;\n vec2 center = dot(p - a, p - a) < dot(p - b, p - b) ? a : b;\n vec2 local = p - center;\n\n // each hexagon starts later the further it is from the center\n float d = min(length(center / toCells * vec2(ratio, 1.0)) / (0.5 * length(vec2(ratio, 1.0))), 1.0);\n float t = clamp((progress - 0.6 * d) / 0.4, 0.0, 1.0);\n\n // the outgoing hexagon spins (opening gaps at the corners of its cell), shrinks away and darkens,\n // casting a soft shadow on the incoming image\n float s = 1.0 - smoothstep(0.1, 1.0, t);\n float turn = 1.8 * t * (2.0 - t);\n vec4 fromTile = getFromColor(hexUv(uv, local, 1.0 / toCells, s, turn));\n fromTile.rgb *= 1.0 - 0.3 * t;\n vec4 below = getToColor(uv);\n below.rgb *= 1.0 - 0.5 * hexMask(local - vec2(0.06, -0.08) * s, s, turn, 0.2);\n return mix(below, fromTile, hexMask(local, s, turn, 0.03));\n}\n","author":"gre","license":"MIT","description":"The image splits into hexagons that spin and shrink away in a wave from the center, uncovering the incoming image","tags":["hexagon","tiles","rotate","radial"],"params":{"size":{"type":"float","default":6,"min":2,"max":30,"description":"Number of hexagons across the shorter side"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:26:58 +0100","updatedAt":"Sat, 31 Oct 2026 18:26:58 +0100"},{"name":"HorizontalClose","paramsTypes":{},"defaultParams":{},"glsl":"// Author: martiniti\n// License: MIT\n// Description: The incoming image closes in from the top and bottom edges toward the middle\n// Tags: wipe, split\n\nvec4 transition (vec2 uv) {\n\n float s = 2.0 - abs((uv.y - 0.5) / (progress - 1.0)) - 2.0 * progress;\n \n return mix(\n getFromColor(uv),\n getToColor(uv),\n smoothstep(0.5, 0.0, s)\n ); \n}\n","author":"martiniti","license":"MIT","description":"The incoming image closes in from the top and bottom edges toward the middle","tags":["wipe","split"],"params":{},"textures":[],"createdAt":"Tue, 4 Apr 2023 10:35:23 +0300","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"HorizontalOpen","paramsTypes":{},"defaultParams":{},"glsl":"// Author: martiniti\n// License: MIT\n// Description: The incoming image opens from a line in the middle toward the top and bottom edges\n// Tags: wipe, split\n\nvec4 transition (vec2 uv) {\n \n float regress = 1.0 - progress;\n\n float s = 2.0 - abs((uv.y - 0.5) / (regress - 1.0)) - 2.0 * regress;\n \n return mix(\n getFromColor(uv),\n getToColor(uv),\n smoothstep(0.0, 0.5, s)\n );\n}\n","author":"martiniti","license":"MIT","description":"The incoming image opens from a line in the middle toward the top and bottom edges","tags":["wipe","split"],"params":{},"textures":[],"createdAt":"Tue, 4 Apr 2023 10:35:30 +0300","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"HsvFade","paramsTypes":{},"defaultParams":{},"glsl":"// Author: nwoeanhinnogaehr\n// License: MIT\n// Description: A crossfade through the HSV color space that cycles through hues\n// Tags: fade, color, hue\n// Ported from https://gist.github.com/nwoeanhinnogaehr/b185145363d65751009b\n\n// HSV functions from http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl\n\nvec3 hsv2rgb(vec3 c) {\n const vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);\n vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);\n return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);\n}\n\nvec3 rgb2hsv(vec3 c) {\n const vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);\n vec4 p = mix(vec4(c.bg, K.wz), vec4(c.gb, K.xy), step(c.b, c.g));\n vec4 q = mix(vec4(p.xyw, c.r), vec4(c.r, p.yzx), step(p.x, c.r));\n float d = q.x - min(q.w, q.y);\n return vec3(abs(q.z + (q.w - q.y) / (6.0 * d + 0.001)), d / (q.x + 0.001), q.x);\n}\n\nvec4 transition(vec2 uv) {\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n vec3 m = mix(rgb2hsv(from.rgb), rgb2hsv(to.rgb), progress);\n return vec4(hsv2rgb(m), mix(from.a, to.a, progress));\n}\n","author":"nwoeanhinnogaehr","license":"MIT","description":"A crossfade through the HSV color space that cycles through hues","tags":["fade","color","hue"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"InkBleed","paramsTypes":{"drops":"float","tendrils":"float","rim":"float","seed":"float"},"defaultParams":{"drops":4,"tendrils":0.7,"rim":0.5,"seed":3},"glsl":"// Author: gre\n// License: MIT\n// Description: The incoming image spreads over the outgoing one like drops of ink in water, blooming from a few points with curling, wispy edges and a darker rim, until it fills the frame\n// Tags: ink, organic, fluid, noise\n\n// @range(1, 8, 1) Number of ink drops\nuniform float drops; // = 4.0\n// @range(0, 1) How far the curling tendrils reach out of the blooms\nuniform float tendrils; // = 0.7\n// @range(0, 1) How dark the rim of ink at the front of the blooms is\nuniform float rim; // = 0.5\n// @param Random seed for the drop positions and the swirls\nuniform float seed; // = 3.0\n\nfloat hash (vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\nfloat vnoise (vec2 p) {\n vec2 i = floor(p);\n vec2 f = fract(p);\n f = f * f * (3.0 - 2.0 * f);\n return mix(\n mix(hash(i), hash(i + vec2(1.0, 0.0)), f.x),\n mix(hash(i + vec2(0.0, 1.0)), hash(i + vec2(1.0, 1.0)), f.x),\n f.y\n );\n}\n\nfloat fbm (vec2 p) {\n float v = 0.0;\n float a = 0.5;\n for (int i = 0; i < 4; i++) {\n v += a * vnoise(p);\n p = mat2(1.6, 1.2, -1.2, 1.6) * p + 7.3;\n a *= 0.5;\n }\n return v / 0.9375;\n}\n\nvec2 fold (vec2 p) {\n return 1.0 - abs(1.0 - mod(p, 2.0));\n}\n\nvec4 transition (vec2 uv) {\n float p = progress;\n vec2 q = vec2(uv.x * ratio, uv.y);\n // swirls: noise warped twice by itself, drifting as the ink spreads\n vec2 o = vec2(seed * 3.1, seed * 1.7);\n vec2 sq = q * 2.2 + o;\n vec2 w1 = vec2(fbm(sq + vec2(0.0, 0.6 * p)), fbm(sq + vec2(5.2, 1.3) - vec2(0.5 * p, 0.0)));\n vec2 w2 = vec2(fbm(sq + 3.0 * w1 + vec2(1.7, 9.2)), fbm(sq + 3.0 * w1 + vec2(8.3, 2.8)));\n float swirl = fbm(sq * 0.8 + 2.5 * w2) - 0.5; // marbled, curling pattern\n vec2 flow = w2 - 0.5;\n float amp = 0.05 + 0.35 * tendrils;\n float n = clamp(floor(drops + 0.5), 1.0, 8.0);\n float rimW = 0.1;\n float feather = 0.05; // soft, diluted ink around the front\n float margin = 1.2 * amp + rimW + 0.08; // how far the swirls can pull the front back\n float f = -1e3; // > 0 inside the ink\n float fs = -1e3; // the same, only for the drops already fallen, which fades their haze in\n for (int i = 0; i < 8; i++) {\n float fi = float(i);\n if (fi < n) {\n vec2 hs = vec2(fi * 7.13 + seed, fi * 3.71 - seed);\n vec2 c = vec2(mix(0.15, 0.85, hash(hs)) * ratio, mix(0.15, 0.85, hash(hs + 19.7)));\n float start = 0.2 * fi / n;\n float s = clamp((p - start) / (1.0 - start), 0.0, 1.0);\n // distance to the farthest corner: each bloom alone covers the frame in the end\n vec2 m = max(c, vec2(ratio, 1.0) - c);\n float far = length(m) + margin;\n float s3 = s * s * s;\n float r = (far + 0.02) * s * (0.35 + 0.65 * s3 * s3) - 0.02;\n // a drop starts round, then its front curls more and more as it spreads\n float reach = amp * min(1.0, max(r, 0.0) * 5.0);\n float g = r - length(q - c + 1.3 * reach * flow) + reach * 0.9 * swirl;\n f = max(f, g);\n fs = max(fs, g - 0.15 * (1.0 - min(1.0, s * 12.0)));\n }\n }\n float aa = 0.003;\n float inside = smoothstep(-aa, aa, f);\n // feathered wisps of diluted ink, streaked along the swirls, ahead of the front\n float wisp = 1.0 - smoothstep(0.0, 0.08, abs(fbm(sq * 2.0 + 5.0 * w2) - 0.5));\n float soft = smoothstep(-feather, 0.0, fs) * (0.35 + 0.4 * wisp);\n float haze = 0.35 * wisp * (1.0 - smoothstep(0.0, 0.1, -fs));\n float cover = max(inside, max(soft, haze));\n // the ink is denser, and still moving, close to its front\n float edge = 1.0 - smoothstep(0.0, rimW, f);\n vec4 to = getToColor(fold(uv - 0.015 * edge * flow / vec2(ratio, 1.0)));\n to.rgb = mix(to.rgb, to.rgb * to.rgb * 0.7, rim * edge);\n return mix(getFromColor(uv), to, cover);\n}\n","author":"gre","license":"MIT","description":"The incoming image spreads over the outgoing one like drops of ink in water, blooming from a few points with curling, wispy edges and a darker rim, until it fills the frame","tags":["ink","organic","fluid","noise"],"params":{"drops":{"type":"float","default":4,"min":1,"max":8,"step":1,"description":"Number of ink drops"},"tendrils":{"type":"float","default":0.7,"min":0,"max":1,"description":"How far the curling tendrils reach out of the blooms"},"rim":{"type":"float","default":0.5,"min":0,"max":1,"description":"How dark the rim of ink at the front of the blooms is"},"seed":{"type":"float","default":3,"description":"Random seed for the drop positions and the swirls"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:34:30 +0100","updatedAt":"Sun, 1 Nov 2026 20:34:30 +0100"},{"name":"InsetWipe","paramsTypes":{"anchor":"vec2","smoothness":"float","borderWidth":"float","borderColor":"vec4","reverse":"bool"},"defaultParams":{"anchor":[1,1],"smoothness":0,"borderWidth":0,"borderColor":[1,1,1,1],"reverse":false},"glsl":"// Author: gre\n// License: MIT\n// Description: A rectangle anchored in a corner, on an edge or in the center grows until the incoming image fills the frame, revealing it in place without scaling it; in reverse, the outgoing image shrinks into the rectangle\n// Tags: wipe, shape, box\n\n// @param Where the rectangle grows from: (0, 0) bottom left, (1, 1) top right, (0.5, 0) middle of the bottom edge, (0.5, 0.5) center\nuniform vec2 anchor; // = vec2(1.0, 1.0)\n// @range(0, 0.2) Softness of the rectangle's edge\nuniform float smoothness; // = 0.0\n// @range(0, 0.1) Width of a border drawn around the rectangle, in frame heights (0: no border)\nuniform float borderWidth; // = 0.0\n// @color Color of the border\nuniform vec4 borderColor; // = vec4(1.0, 1.0, 1.0, 1.0)\n// @param The outgoing image shrinks into the rectangle instead, toward the anchor\nuniform bool reverse; // = false\n\n// half width of the antialiased edge, in frame heights\nconst float AA = 0.001;\n\nvec4 premultiplied(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return b;\n\n vec2 an = clamp(anchor, 0.0, 1.0);\n vec2 sq = vec2(ratio, 1.0);\n // the rectangle keeps the proportions that make it reach every far side of the frame\n // at once; measured in square pixels so its edge and border have an even width\n vec2 ext = max(an, 1.0 - an) * sq;\n vec2 d = abs(uv - an) * sq;\n float s = max(smoothness, AA);\n float bw = max(borderWidth, 0.0);\n\n // eased growth, from a rectangle whose border is not yet in the frame to one whose\n // soft edge has left it on every side\n float t = reverse ? 1.0 - progress : progress;\n float p = mix(t, t * t * (3.0 - 2.0 * t), 0.3);\n vec2 size = p * ext + mix(-(bw + s), s, p);\n // signed distance to the rectangle's edge, square-cornered, < 0 inside\n float e = max(d.x - size.x, d.y - size.y);\n\n // the rectangle shows the incoming image, or the outgoing one in reverse\n vec4 inside = reverse ? a : b;\n vec4 c = premultiplied(reverse ? b : a);\n if (bw > 0.0) {\n // laid over the image outside the rectangle, so a translucent border tints it\n float m = 1.0 - smoothstep(bw - s, bw + s, e);\n c = premultiplied(borderColor) * m + c * (1.0 - borderColor.a * m);\n }\n c = mix(c, premultiplied(inside), 1.0 - smoothstep(-s, s, e));\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"A rectangle anchored in a corner, on an edge or in the center grows until the incoming image fills the frame, revealing it in place without scaling it; in reverse, the outgoing image shrinks into the rectangle","tags":["wipe","shape","box"],"params":{"anchor":{"type":"vec2","default":[1,1],"description":"Where the rectangle grows from: (0, 0) bottom left, (1, 1) top right, (0.5, 0) middle of the bottom edge, (0.5, 0.5) center"},"smoothness":{"type":"float","default":0,"min":0,"max":0.2,"description":"Softness of the rectangle's edge"},"borderWidth":{"type":"float","default":0,"min":0,"max":0.1,"description":"Width of a border drawn around the rectangle, in frame heights (0: no border)"},"borderColor":{"type":"vec4","default":[1,1,1,1],"color":true,"description":"Color of the border"},"reverse":{"type":"bool","default":false,"description":"The outgoing image shrinks into the rectangle instead, toward the anchor"}},"textures":[],"createdAt":"Thu, 5 Nov 2026 07:31:05 +0100","updatedAt":"Thu, 5 Nov 2026 11:34:33 +0100"},{"name":"InsideCube","paramsTypes":{"direction":"vec2","fov":"float","shading":"float","background":"vec4"},"defaultParams":{"direction":[1,0],"fov":90,"shading":0.6,"background":[0.09,0.09,0.1,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The camera stands inside a cube: the outgoing image covers the wall in front of it and the view turns toward the next inner wall, so the outgoing image swings away in perspective as the incoming one turns into view, the walls darkening into the shaded inner corner between them\n// Tags: 3d, cube, rotate, perspective, directional\n\n// @param Direction the view turns toward, snapped to its main axis (left, right, up or down): the incoming image is on the wall on that side\nuniform vec2 direction; // = vec2(1.0, 0.0)\n// @range(60, 120) Field of view along the turn, in degrees: at 90 the camera stays at the center of the cube, a wider view makes the walls recede more\nuniform float fov; // = 90.0\n// @range(0, 1) How much the walls darken as they turn away, and the shadow in the inner corners of the cube\nuniform float shading; // = 0.6\n// @color Color of the other faces of the cube, seen where the two walls leave the frame uncovered during the turn\nuniform vec4 background; // = vec4(0.09, 0.09, 0.1, 1.0)\n\nconst float PI = 3.141592653589793;\n// width of the anti-aliased edges, in frame heights\nconst float EDGE = 0.002;\n\nvec4 premultiply(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\n// shadow of a concave edge of the cube, at a distance dist from it\nfloat cornerShadow(float dist, float size) {\n float k = 1.0 - smoothstep(0.0, size, dist);\n return k * k;\n}\n\n// the image on a wall at the point l of the wall, in frame heights from its center (l.x along\n// the turn, l.y across), premultiplied; s and vertical undo the mirroring and the swap of axes\n// that transition() applies to the frame coordinates\nvec4 wallColor(vec2 l, bool incoming, bool vertical, float s) {\n vec2 h = vec2(l.x * s, l.y);\n vec2 p = vertical ? h.yx : h;\n vec2 st = clamp(p / vec2(ratio, 1.0) + 0.5, 0.0, 1.0);\n return premultiply(incoming ? getToColor(st) : getFromColor(st));\n}\n\nvec4 transition(vec2 uv) {\n bool vertical = abs(direction.y) > abs(direction.x);\n float s = (vertical ? direction.y : direction.x) < 0.0 ? -1.0 : 1.0;\n // q.x: along the turn, toward the incoming wall; q.y: across; in frame heights\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n vec2 q = vertical ? p.yx : p;\n q.x *= s;\n // half sizes of a wall along and across the turn\n float A = vertical ? 0.5 : 0.5 * ratio;\n float B = vertical ? 0.5 * ratio : 0.5;\n // focal length: a wall exactly fills the frame when seen square from that distance\n // (below about 53 degrees the camera would stand outside the cube)\n float F = A / tan(radians(clamp(fov, 55.0, 170.0)) * 0.5);\n\n float e = smoothstep(0.0, 1.0, progress);\n float th = 0.5 * PI * e;\n float c = cos(th);\n float sn = sin(th);\n float amount = max(sin(PI * e), 0.0); // 0 at both ends, so the images are untouched there\n float aa = EDGE * min(1.0, 40.0 * amount) + 1e-6;\n float shadow = shading * min(1.0, 4.0 * amount);\n\n // in the plane of the turn (a: along, z: depth), the outgoing wall is z = F, a in [-A, A],\n // the incoming wall is a = A, z in [F - 2A, F]; the camera starts in front of the center of\n // the first one and ends in front of the center of the second one\n vec2 cam = (A - F) * e * vec2(1.0, -1.0);\n vec2 d = vec2(q.x * c + F * sn, F * c - q.x * sn);\n\n // the inner corner between the two walls projects to a line across the frame\n vec2 P = vec2(A, F) - cam;\n float sc = F * (P.x * c - P.y * sn) / max(P.x * sn + P.y * c, 1e-6);\n\n // outgoing wall\n float tf = d.y > 1e-6 ? (F - cam.y) / d.y : 1e6;\n float af = cam.x + tf * d.x;\n vec2 lf = vec2(af, q.y * tf);\n // incoming wall\n float ti = d.x > 1e-6 ? (A - cam.x) / d.x : 1e6;\n float ai = (F - A) - (cam.y + ti * d.y);\n vec2 li = vec2(ai, q.y * ti);\n\n // each wall darkens as it turns away from the view, and toward the concave edges\n float size = 0.8 * min(A, B);\n float edgeF = cornerShadow(A - af, size) + 0.5 * cornerShadow(B - abs(lf.y), size);\n float edgeI = cornerShadow(ai + A, size) + 0.5 * cornerShadow(B - abs(li.y), size);\n float shadeF = (1.0 - shading * 0.8 * (1.0 - c)) * (1.0 - 0.7 * shadow * min(edgeF, 1.0));\n float shadeI = (1.0 - shading * 0.8 * (1.0 - sn)) * (1.0 - 0.7 * shadow * min(edgeI, 1.0));\n\n // how much of the pixel each wall covers, from distances on screen in frame heights: split at\n // the corner line, cut across by the edges of the walls (lb = q.y * t), and at their far\n // edges (along the wall, a moves F * t / d.depth times faster than q.x)\n float wF = clamp(0.5 + (sc - q.x) / aa, 0.0, 1.0);\n float covF = wF * clamp(0.5 + (B / tf - abs(q.y)) / aa, 0.0, 1.0)\n * clamp(0.5 + (af + A) * d.y / (tf * F * aa), 0.0, 1.0);\n float covI = (1.0 - wF) * clamp(0.5 + (B / ti - abs(q.y)) / aa, 0.0, 1.0)\n * clamp(0.5 + (A - ai) * d.x / (ti * F * aa), 0.0, 1.0);\n // only sample the walls that show in this pixel\n vec4 colF = covF > 0.0 ? wallColor(lf, false, vertical, s) : vec4(0.0);\n vec4 colI = covI > 0.0 ? wallColor(li, true, vertical, s) : vec4(0.0);\n colF.rgb *= shadeF;\n colI.rgb *= shadeI;\n\n // the other faces of the cube, with the same shadow along their edges with the two walls\n vec4 bg = premultiply(background);\n float cov = covF + covI;\n if (cov < 1.0) {\n // where the ray meets the floor or the ceiling, never beyond the walls\n float tb = min(B / max(abs(q.y), 1e-6), min(tf, ti));\n vec2 fl = cam + tb * d;\n float edgeB = cornerShadow(F - fl.y, size) + cornerShadow(A - fl.x, size);\n bg.rgb *= 1.0 - 0.5 * shadow * min(edgeB, 1.0);\n }\n vec4 col = colF * covF + colI * covI + bg * (1.0 - cov);\n return col.a > 0.0 ? vec4(col.rgb / col.a, col.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The camera stands inside a cube: the outgoing image covers the wall in front of it and the view turns toward the next inner wall, so the outgoing image swings away in perspective as the incoming one turns into view, the walls darkening into the shaded inner corner between them","tags":["3d","cube","rotate","perspective","directional"],"params":{"direction":{"type":"vec2","default":[1,0],"description":"Direction the view turns toward, snapped to its main axis (left, right, up or down): the incoming image is on the wall on that side"},"fov":{"type":"float","default":90,"min":60,"max":120,"description":"Field of view along the turn, in degrees: at 90 the camera stays at the center of the cube, a wider view makes the walls recede more"},"shading":{"type":"float","default":0.6,"min":0,"max":1,"description":"How much the walls darken as they turn away, and the shadow in the inner corners of the cube"},"background":{"type":"vec4","default":[0.09,0.09,0.1,1],"color":true,"description":"Color of the other faces of the cube, seen where the two walls leave the frame uncovered during the turn"}},"textures":[],"createdAt":"Sat, 7 Nov 2026 18:51:09 +0100","updatedAt":"Sat, 7 Nov 2026 18:51:09 +0100"},{"name":"InvertedPageCurl","paramsTypes":{},"defaultParams":{},"glsl":"// Author: Hewlett-Packard\n// License: BSD 3 Clause\n// Description: The outgoing image curls away like a page, revealing the incoming one\n// Tags: page, curl, 3d\n// Adapted by Sergey Kosarevsky from:\n// http://rectalogic.github.io/webvfx/examples_2transition-shader-pagecurl_8html-example.html\n\n/*\nCopyright (c) 2010 Hewlett-Packard Development Company, L.P. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following disclaimer\n in the documentation and/or other materials provided with the\n distribution.\n * Neither the name of Hewlett-Packard nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\nin vec2 texCoord;\n*/\n\nconst float MIN_AMOUNT = -0.16;\nconst float MAX_AMOUNT = 1.5;\n\nconst float PI = 3.141592653589793;\n\nconst float scale = 512.0;\nconst float sharpness = 3.0;\n\nconst float cylinderRadius = 1.0 / PI / 2.0;\n\n// These depend on the progress uniform and must be computed per-fragment.\n// Global initializers with uniforms are invalid in GLSL ES and fail on Mesa.\nfloat amount;\nfloat cylinderCenter;\nfloat cylinderAngle;\n\nvec3 hitPoint(float hitAngle, float yc, vec3 point, mat3 rrotation)\n{\n float hitPoint = hitAngle / (2.0 * PI);\n point.y = hitPoint;\n return rrotation * point;\n}\n\nvec4 antiAlias(vec4 color1, vec4 color2, float distanc)\n{\n distanc *= scale;\n if (distanc < 0.0) return color2;\n if (distanc > 2.0) return color1;\n float dd = pow(1.0 - distanc / 2.0, sharpness);\n return ((color2 - color1) * dd) + color1;\n}\n\nfloat distanceToEdge(vec3 point)\n{\n float dx = abs(point.x > 0.5 ? 1.0 - point.x : point.x);\n float dy = abs(point.y > 0.5 ? 1.0 - point.y : point.y);\n if (point.x < 0.0) dx = -point.x;\n if (point.x > 1.0) dx = point.x - 1.0;\n if (point.y < 0.0) dy = -point.y;\n if (point.y > 1.0) dy = point.y - 1.0;\n if ((point.x < 0.0 || point.x > 1.0) && (point.y < 0.0 || point.y > 1.0)) return sqrt(dx * dx + dy * dy);\n return min(dx, dy);\n}\n\nvec4 seeThrough(float yc, vec2 p, mat3 rotation, mat3 rrotation)\n{\n float hitAngle = PI - (acos(clamp(yc / cylinderRadius, -1.0, 1.0)) - cylinderAngle);\n vec3 point = hitPoint(hitAngle, yc, rotation * vec3(p, 1.0), rrotation);\n if (yc <= 0.0 && (point.x < 0.0 || point.y < 0.0 || point.x > 1.0 || point.y > 1.0))\n {\n return getToColor(p);\n }\n\n if (yc > 0.0) return getFromColor(p);\n\n vec4 color = getFromColor(point.xy);\n vec4 tcolor = vec4(0.0);\n\n return antiAlias(color, tcolor, distanceToEdge(point));\n}\n\nvec4 seeThroughWithShadow(float yc, vec2 p, vec3 point, mat3 rotation, mat3 rrotation)\n{\n float shadow = distanceToEdge(point) * 30.0;\n shadow = (1.0 - shadow) / 3.0;\n\n if (shadow < 0.0) shadow = 0.0; else shadow *= amount;\n\n vec4 shadowColor = seeThrough(yc, p, rotation, rrotation);\n shadowColor.r -= shadow;\n shadowColor.g -= shadow;\n shadowColor.b -= shadow;\n\n return shadowColor;\n}\n\nvec4 backside(float yc, vec3 point)\n{\n vec4 color = getFromColor(point.xy);\n float gray = (color.r + color.b + color.g) / 15.0;\n gray += (8.0 / 10.0) * (pow(max(0.0, 1.0 - abs(yc / cylinderRadius)), 2.0 / 10.0) / 2.0 + (5.0 / 10.0));\n color.rgb = vec3(gray);\n return color;\n}\n\nvec4 behindSurface(vec2 p, float yc, vec3 point, mat3 rrotation)\n{\n float safeAmount = amount >= 0.0 ? max(amount, 1e-4) : min(amount, -1e-4);\n float shado = (1.0 - ((-cylinderRadius - yc) / safeAmount * 7.0)) / 6.0;\n shado *= 1.0 - abs(point.x - 0.5);\n\n yc = (-cylinderRadius - cylinderRadius - yc);\n\n float hitAngle = (acos(clamp(yc / cylinderRadius, -1.0, 1.0)) + cylinderAngle) - PI;\n point = hitPoint(hitAngle, yc, point, rrotation);\n\n if (yc < 0.0 && point.x >= 0.0 && point.y >= 0.0 && point.x <= 1.0 && point.y <= 1.0 && (hitAngle < PI || amount > 0.5))\n {\n float dx = point.x - 0.5;\n float dy = point.y - 0.5;\n shado = 1.0 - (sqrt(dx * dx + dy * dy) / (71.0 / 100.0));\n float nyc = -yc / cylinderRadius;\n shado *= nyc * nyc * nyc;\n shado *= 0.5;\n }\n else\n {\n shado = 0.0;\n }\n vec4 to = getToColor(p);\n return vec4(to.rgb - shado, to.a);\n}\n\nvec4 transition(vec2 p) {\n amount = progress * (MAX_AMOUNT - MIN_AMOUNT) + MIN_AMOUNT;\n cylinderCenter = amount;\n cylinderAngle = 2.0 * PI * amount;\n\n const float angle = 100.0 * PI / 180.0;\n float c = cos(-angle);\n float s = sin(-angle);\n\n mat3 rotation = mat3( c, s, 0,\n -s, c, 0,\n -0.801, 0.8900, 1\n );\n c = cos(angle);\n s = sin(angle);\n\n mat3 rrotation = mat3(\tc, s, 0,\n -s, c, 0,\n 0.98500, 0.985, 1\n );\n\n vec3 point = rotation * vec3(p, 1.0);\n\n float yc = point.y - cylinderCenter;\n\n if (yc < -cylinderRadius)\n {\n // Behind surface\n return behindSurface(p,yc, point, rrotation);\n }\n\n if (yc > cylinderRadius)\n {\n // Flat surface\n return getFromColor(p);\n }\n\n float hitAngle = (acos(clamp(yc / cylinderRadius, -1.0, 1.0)) + cylinderAngle) - PI;\n\n float hitAngleMod = mod(hitAngle, 2.0 * PI);\n if ((hitAngleMod > PI && amount < 0.5) || (hitAngleMod > PI/2.0 && amount < 0.0))\n {\n return seeThrough(yc, p, rotation, rrotation);\n }\n\n point = hitPoint(hitAngle, yc, point, rrotation);\n\n if (point.x < 0.0 || point.y < 0.0 || point.x > 1.0 || point.y > 1.0)\n {\n return seeThroughWithShadow(yc, p, point, rotation, rrotation);\n }\n\n vec4 color = backside(yc, point);\n\n vec4 otherColor;\n if (yc < 0.0)\n {\n float dx2 = point.x - 0.5;\n float dy2 = point.y - 0.5;\n float shado = 1.0 - (sqrt(dx2 * dx2 + dy2 * dy2) / 0.71);\n float nyc2 = -yc / cylinderRadius;\n shado *= nyc2 * nyc2 * nyc2;\n shado *= 0.5;\n otherColor = vec4(0.0, 0.0, 0.0, shado * getToColor(p).a); // a shadow on the incoming image\n }\n else\n {\n otherColor = getFromColor(p);\n }\n\n color = antiAlias(color, otherColor, cylinderRadius - abs(yc));\n\n vec4 cl = seeThroughWithShadow(yc, p, point, rotation, rrotation);\n float dist = distanceToEdge(point);\n\n return antiAlias(color, cl, dist);\n}\n","author":"Hewlett-Packard","license":"BSD 3 Clause","description":"The outgoing image curls away like a page, revealing the incoming one","tags":["page","curl","3d"],"params":{},"textures":[],"createdAt":"Wed, 21 Feb 2018 01:13:49 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"Kaleidoscope","paramsTypes":{"speed":"float","angle":"float","power":"float"},"defaultParams":{"speed":1,"angle":1,"power":1.5},"glsl":"// Author: nwoeanhinnogaehr\n// License: MIT\n// Description: A crossfade through a spinning kaleidoscope\n// Tags: kaleidoscope, distort, blend\n\nuniform float speed; // = 1.0\nuniform float angle; // = 1.0\nuniform float power; // = 1.5\n\nvec4 transition(vec2 uv) {\n vec2 p = uv.xy / vec2(1.0).xy;\n vec2 q = p;\n float t = pow(progress, power)*speed;\n p = p -0.5;\n for (int i = 0; i < 7; i++) {\n p = vec2(sin(t)*p.x + cos(t)*p.y, sin(t)*p.y - cos(t)*p.x);\n t += angle;\n p = abs(mod(p, 2.0) - 1.0);\n }\n abs(mod(p, 1.0));\n return mix(\n mix(getFromColor(q), getToColor(q), progress),\n mix(getFromColor(p), getToColor(p), progress), 1.0 - 2.0*abs(progress - 0.5));\n}\n","author":"nwoeanhinnogaehr","license":"MIT","description":"A crossfade through a spinning kaleidoscope","tags":["kaleidoscope","distort","blend"],"params":{"speed":{"type":"float","default":1},"angle":{"type":"float","default":1},"power":{"type":"float","default":1.5}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"KeyholeWipe","paramsTypes":{"center":"vec2","rim":"float","smoothness":"float"},"defaultParams":{"center":[0.5,0.5],"rim":0.6,"smoothness":0.002},"glsl":"// Author: gre\n// License: MIT\n// Description: A keyhole grows steadily from the center until the incoming image fills the frame, its bevelled rim and inner shadow making it read as a hole cut in a plate\n// Tags: shape, wipe, keyhole, iris, reveal\n\n// @param Center of the keyhole\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @range(0, 1) Strength of the bevelled rim around the keyhole and the shadow inside it (0 for a clean cut)\nuniform float rim; // = 0.6\n// @range(0, 0.05) Softness of the keyhole's edge\nuniform float smoothness; // = 0.002\n\n// The keyhole, in its own units (0.85 tall, from y = -0.4 to 0.45): a round head on top of a slot\n// that widens downward.\n#define HEAD vec2(0.0, 0.2)\n#define HEAD_R 0.25\n#define SLOT_Y -0.17\nconst float SLOT_HE = 0.23;\nconst float SLOT_TOP = 0.085;\nconst float SLOT_BOTTOM = 0.165;\nconst float SLOT_ROUND = 0.025;\n// height of the point the keyhole grows around, in its head\nconst float GROW_Y = 0.1;\n// widths of the bevel and of the rim's shadows, in keyhole units\nconst float BEVEL = 0.028;\nconst float SHADE = 0.05;\n\nfloat dot2(vec2 v) { return dot(v, v); }\n\n// Signed distance to the slot, a trapezoid with rounded corners\nfloat sdSlot(vec2 p) {\n p.y -= SLOT_Y;\n float r1 = SLOT_BOTTOM - SLOT_ROUND;\n float r2 = SLOT_TOP - SLOT_ROUND;\n float he = SLOT_HE - SLOT_ROUND;\n vec2 k1 = vec2(r2, he);\n vec2 k2 = vec2(r2 - r1, 2.0 * he);\n p.x = abs(p.x);\n vec2 ca = vec2(p.x - min(p.x, p.y < 0.0 ? r1 : r2), abs(p.y) - he);\n vec2 cb = p - k1 + k2 * clamp(dot(k1 - p, k2) / dot2(k2), 0.0, 1.0);\n float s = (cb.x < 0.0 && ca.y < 0.0) ? -1.0 : 1.0;\n return s * sqrt(min(dot2(ca), dot2(cb))) - SLOT_ROUND;\n}\n\nfloat sdKeyhole(vec2 p) {\n return min(length(p - HEAD) - HEAD_R, sdSlot(p));\n}\n\n// Scale at which the keyhole's head, a disk, reaches the point p (seen from the growth point):\n// the root of |p - s h| = s HEAD_R, h being the head's center\nfloat reach(vec2 p) {\n vec2 h = HEAD - vec2(0.0, GROW_Y);\n float k = HEAD_R * HEAD_R - dot2(h);\n float b = dot(p, h);\n return (sqrt(b * b + k * dot2(p)) - b) / k;\n}\n\nvec4 transition (vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n vec2 asp = vec2(ratio, 1.0);\n vec2 c = center * asp;\n float sm = max(smoothness, 0.0005);\n\n // The keyhole grows around a point of its head, at the center. It covers the frame (grown by a\n // margin, so the soft edge is past it) once its head, a disk, reaches the frame's corners.\n vec2 o = c;\n vec2 lo = -o - 2.5 * sm;\n vec2 hi = asp - o + 2.5 * sm;\n float full = max(max(reach(lo), reach(hi)), max(reach(vec2(lo.x, hi.y)), reach(vec2(hi.x, lo.y))));\n\n // The keyhole grows linearly until it fills the frame\n float p = progress;\n float s = full * p;\n if (s <= 0.0) return a;\n\n vec2 q = (uv * asp - o) / s + vec2(0.0, GROW_Y);\n float d = sdKeyhole(q);\n // the soft edge is just inside the outline, so a tiny keyhole shows nothing\n float hole = 1.0 - smoothstep(-sm, sm, d * s + sm);\n\n float fade = smoothstep(0.0, 0.08, p) * (1.0 - smoothstep(0.7, 1.0, p));\n float rimA = rim * fade;\n if (rimA > 0.0) {\n // Plate around the hole: a bevel lit from above going down into the hole, and a soft shadow\n // on its rim\n vec2 e = vec2(0.002, 0.0);\n vec2 n = vec2(sdKeyhole(q + e) - sdKeyhole(q - e), sdKeyhole(q + e.yx) - sdKeyhole(q - e.yx));\n float lit = -dot(n / max(length(n), 1e-6), vec2(-0.35, 0.94));\n float bevel = 1.0 - smoothstep(0.0, BEVEL, d);\n float shade = exp(-max(d, 0.0) / SHADE);\n a.rgb *= 1.0 - rimA * (0.35 * shade + bevel * 0.4 * max(-lit, 0.0));\n a.rgb += rimA * bevel * bevel * 0.3 * max(lit, 0.0) * a.a;\n\n // Inside the hole: the plate's thickness shades the incoming image under the top of the rim,\n // with a softer vignette all around the edge\n float wall = smoothstep(-0.03, 0.03, sdKeyhole(q + vec2(0.0, 0.05)));\n float vign = exp(min(d, 0.0) / SHADE);\n b.rgb *= 1.0 - rimA * (0.5 * wall + 0.3 * vign);\n }\n\n return mix(a, b, hole);\n}\n","author":"gre","license":"MIT","description":"A keyhole grows steadily from the center until the incoming image fills the frame, its bevelled rim and inner shadow making it read as a hole cut in a plate","tags":["shape","wipe","keyhole","iris","reveal"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Center of the keyhole"},"rim":{"type":"float","default":0.6,"min":0,"max":1,"description":"Strength of the bevelled rim around the keyhole and the shadow inside it (0 for a clean cut)"},"smoothness":{"type":"float","default":0.002,"min":0,"max":0.05,"description":"Softness of the keyhole's edge"}},"textures":[],"createdAt":"Sun, 8 Nov 2026 13:21:54 +0100","updatedAt":"Sun, 8 Nov 2026 13:21:54 +0100"},{"name":"LeafWipe","paramsTypes":{},"defaultParams":{},"glsl":"// Author: @Flexi23\n// License: MIT\n// Description: A leaf shape grows from the center to reveal the incoming image\n// Tags: shape, wipe\n\n// inspired by http://www.wolframalpha.com/input/?i=cannabis+curve\n\nvec4 transition (vec2 uv) {\n if(progress == 0.0){\n return getFromColor(uv);\n }\n vec2 leaf_uv = (uv - vec2(0.5))/10./pow(progress,3.5);\n\tleaf_uv.y += 0.35;\n\tfloat r = 0.18;\n\tfloat o = atan(leaf_uv.y, leaf_uv.x);\n return mix(getFromColor(uv), getToColor(uv), 1.-step(1. - length(leaf_uv)+r*(1.+sin(o))*(1.+0.9 * cos(8.*o))*(1.+0.1*cos(24.*o))*(0.9+0.05*cos(200.*o)), 1.));\n}\n","author":"@Flexi23","license":"MIT","description":"A leaf shape grows from the center to reveal the incoming image","tags":["shape","wipe"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"LedWall","paramsTypes":{"cells":"float","glow":"float","flash":"float","zoom":"float","triads":"bool","direction":"vec2","panel":"vec4"},"defaultParams":{"cells":24,"glow":0.6,"flash":0.7,"zoom":0.15,"triads":false,"direction":[1,0],"panel":[0.02,0.02,0.025,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The picture zooms into a giant LED screen of round glowing diodes on a dark panel; a refresh wave sweeps across it, each diode flicking with a bright pop as it switches to the incoming image, then the diodes melt back into the plain picture\n// Tags: dots, glow, grid, wave\n\n// @range(6, 80) Number of diodes across the shorter side\nuniform float cells; // = 24.0\n// @range(0, 1) Strength of the glow bleeding from the diodes into the dark panel\nuniform float glow; // = 0.6\n// @range(0, 1) Brightness of the flash of each diode as it switches\nuniform float flash; // = 0.7\n// @range(0, 0.5) How much the picture zooms in while it is a screen\nuniform float zoom; // = 0.15\n// @param Each diode is made of red, green and blue sub-diodes\nuniform bool triads; // = false\n// @param Direction in which the refresh wave sweeps across the screen\nuniform vec2 direction; // = vec2(1.0, 0.0)\n// @color Color of the panel between the diodes\nuniform vec4 panel; // = vec4(0.02, 0.02, 0.025, 1.0)\n\n// radius of a lit diode, in cells\nconst float RADIUS = 0.36;\n// width of the soft edge of the diodes, in cells\nconst float EDGE = 0.05;\n\nfloat hash12(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// folds uv back into 0..1, so the frame stays filled\nvec2 mirrored(vec2 v) {\n vec2 m = mod(v, 2.0);\n return mix(m, 2.0 - m, step(1.0, m));\n}\n\n// 1 inside a disc of radius r, with a soft edge\nfloat disc(float d, float r) {\n return 1.0 - smoothstep(r - EDGE, r + EDGE, d);\n}\n\nvec4 transition(vec2 uv) {\n // how much the picture is a screen: it resolves into diodes until 0.3, and back from 0.7\n float led = smoothstep(0.0, 0.3, progress) * (1.0 - smoothstep(0.7, 1.0, progress));\n float z = 1.0 + max(zoom, 0.0) * smoothstep(0.0, 0.45, progress) * (1.0 - smoothstep(0.55, 1.0, progress));\n vec2 p = 0.5 + (uv - 0.5) / z;\n\n // the grid of diodes, in cells, with a diode at the center of the frame\n vec2 aspect = vec2(ratio, 1.0);\n vec2 toCells = aspect * max(cells, 1.0) / min(ratio, 1.0);\n vec2 q = (p - 0.5) * toCells;\n vec2 id = floor(q + 0.5);\n vec2 local = q - id;\n vec2 side = vec2(local.x < 0.0 ? -1.0 : 1.0, local.y < 0.0 ? -1.0 : 1.0);\n\n // the refresh wave runs along dir, from 0 to 1 across the frame\n vec2 dir = length(direction) > 1e-4 ? normalize(direction) : vec2(1.0, 0.0);\n float extent = abs(dir.x) * ratio + abs(dir.y);\n\n vec4 own = vec4(0.0);\n float ownSwitch = 0.0;\n vec4 halo = vec4(0.0);\n float haloWeight = 0.0;\n // this diode and the three nearest ones, whose glow reaches this point\n for (int i = 0; i < 4; i++) {\n // without glow, only this diode matters\n if (i > 0 && glow * led <= 0.0) break;\n vec2 o = vec2(mod(float(i), 2.0), floor(float(i) / 2.0)) * side;\n vec2 c = id + o;\n vec2 cuv = c / toCells + 0.5;\n // where the diode is seen in the frame, so that the wave crosses the visible screen\n float s = clamp(dot((cuv - 0.5) * z * aspect, dir) / extent + 0.5, 0.0, 1.0);\n float when = 0.2 + 0.52 * s + 0.05 * (hash12(c + 71.0) - 0.5);\n float sw = smoothstep(when - 0.012, when + 0.012, progress);\n // the diode blinks off just before it switches, then pops bright\n float x = (progress - when) / 0.018;\n float pop = exp(-x * x) - 0.5 * exp(-(x + 1.6) * (x + 1.6));\n vec2 suv = mirrored(cuv);\n vec4 col = mix(getFromColor(suv), getToColor(suv), sw);\n col.rgb = col.rgb * (1.0 + 1.4 * flash * pop) + 0.2 * flash * max(pop, 0.0);\n if (i == 0) {\n own = col;\n ownSwitch = sw;\n }\n float d = length(local - o);\n float w = 0.9 * glow * exp(-6.0 * max(d - RADIUS, 0.0)) * (1.0 + 0.8 * flash * max(pop, 0.0));\n // the neighbors fade out where the next ones in the other direction take over, so the glow has no seam\n if (o.x != 0.0) w *= smoothstep(0.0, 0.2, abs(local.x));\n if (o.y != 0.0) w *= smoothstep(0.0, 0.2, abs(local.y));\n halo += w * col;\n haloWeight += w;\n }\n\n // the plain picture, switched along with its diode\n vec4 plain = mix(getFromColor(p), getToColor(p), ownSwitch);\n float d = length(local);\n // the diodes cover their whole cell with the plain picture when led = 0: the dark panel\n // shows up first between them, then they light up with the color of their center\n float r = mix(0.8, RADIUS, smoothstep(0.0, 0.6, led));\n vec4 gap = vec4(panel.rgb, panel.a * own.a);\n if (haloWeight > 0.0) {\n gap = mix(gap, halo / haloWeight, clamp(haloWeight * led, 0.0, 1.0));\n }\n vec4 body = own;\n if (triads) {\n // three sub-diodes on the panel, red at the top, green and blue below\n vec3 sub = vec3(\n disc(length(local - vec2(0.0, 0.15)), 0.2),\n disc(length(local - vec2(-0.13, -0.075)), 0.2),\n disc(length(local - vec2(0.13, -0.075)), 0.2));\n float m = max(sub.r, max(sub.g, sub.b));\n body = vec4(gap.rgb * (1.0 - m) + own.rgb * 1.5 * sub, mix(gap.a, own.a, m));\n // the sub-diodes reach out to 0.4 cells\n r = max(r, 0.45);\n } else {\n // brighter at the core of the diode\n float k = clamp(d / RADIUS, 0.0, 1.0);\n body.rgb *= 0.8 + 0.45 * (1.0 - k * k);\n }\n // the color of the center spreads from it over the diode\n float lit = smoothstep(0.0, 0.8, led);\n body = mix(plain, body, lit * mix(1.0, lit, smoothstep(0.0, 0.7, d)));\n vec4 color = mix(gap, body, disc(d, r));\n return clamp(color, 0.0, 1.0);\n}\n","author":"gre","license":"MIT","description":"The picture zooms into a giant LED screen of round glowing diodes on a dark panel; a refresh wave sweeps across it, each diode flicking with a bright pop as it switches to the incoming image, then the diodes melt back into the plain picture","tags":["dots","glow","grid","wave"],"params":{"cells":{"type":"float","default":24,"min":6,"max":80,"description":"Number of diodes across the shorter side"},"glow":{"type":"float","default":0.6,"min":0,"max":1,"description":"Strength of the glow bleeding from the diodes into the dark panel"},"flash":{"type":"float","default":0.7,"min":0,"max":1,"description":"Brightness of the flash of each diode as it switches"},"zoom":{"type":"float","default":0.15,"min":0,"max":0.5,"description":"How much the picture zooms in while it is a screen"},"triads":{"type":"bool","default":false,"description":"Each diode is made of red, green and blue sub-diodes"},"direction":{"type":"vec2","default":[1,0],"description":"Direction in which the refresh wave sweeps across the screen"},"panel":{"type":"vec4","default":[0.02,0.02,0.025,1],"color":true,"description":"Color of the panel between the diodes"}},"textures":[],"createdAt":"Fri, 6 Nov 2026 17:50:17 +0100","updatedAt":"Fri, 6 Nov 2026 17:50:17 +0100"},{"name":"LeftRight","paramsTypes":{},"defaultParams":{},"glsl":"// Author: zhmy\n// License: MIT\n// Description: The outgoing image shrinks away to the left while the incoming one slides in from the right\n// Tags: slide, zoom, horizontal\n\nconst vec4 black = vec4(0.0); // where no image is drawn: transparent\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n vec2 spfr,spto = vec2(-1.);\n\n float size = mix(1.0, 3.0, progress*0.2);\n spto = (uv + vec2(-0.5,-0.5))*vec2(size,size)+vec2(0.5,0.5);\n spfr = (uv - vec2(1.-progress, 0.0));\n if(inBounds(spfr)){\n return getToColor(spfr);\n }else if(inBounds(spto)){\n return getFromColor(spto) * (1.0 - progress);\n } else{\n return black;\n }\n}","author":"zhmy","license":"MIT","description":"The outgoing image shrinks away to the left while the incoming one slides in from the right","tags":["slide","zoom","horizontal"],"params":{},"textures":[],"createdAt":"Thu, 17 Dec 2020 11:50:34 +0800","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"LensFlare","paramsTypes":{"angle":"float","height":"float","intensity":"float","color":"vec3"},"defaultParams":{"angle":-12,"height":0.18,"intensity":1,"color":[0.35,0.6,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: A bright light sweeps across the frame and flares the lens: a long thin horizontal streak, a glowing core and a trail of colored ghost reflections; at its peak the incoming image spreads out from the light under its glare\n// Tags: light, flare, glow, streak\n\n// @range(-90, 90) Angle of the path of the light, in degrees (0 sweeps from left to right)\nuniform float angle; // = -12.0\n// @range(-0.5, 0.5) How far above the center of the frame the light passes\nuniform float height; // = 0.18\n// @range(0, 2) Brightness of the flare\nuniform float intensity; // = 1.0\n// @color Color of the streak and of the glare\nuniform vec3 color; // = vec3(0.35, 0.6, 1.0)\n\nconst int BLOOM_TAPS = 12;\nconst int GHOSTS = 6;\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\nvec4 premultiplied(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\n// the image on screen (premultiplied): the outgoing one, then the incoming one after the cut\nvec4 frame(vec2 st, float m) {\n if (m <= 0.0) return premultiplied(getFromColor(st));\n if (m >= 1.0) return premultiplied(getToColor(st));\n return mix(premultiplied(getFromColor(st)), premultiplied(getToColor(st)), m);\n}\n\n// the light of a pixel (premultiplied): its color above a knee\nvec3 highlight(vec4 c) {\n float lum = dot(c.rgb, vec3(0.2126, 0.7152, 0.0722));\n return c.rgb * smoothstep(0.55, 0.95, lum);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n if (p <= 0.0) return getFromColor(uv);\n if (p >= 1.0) return getToColor(uv);\n\n // 0 at both ends, 1 at the peak\n float env = 4.0 * p * (1.0 - p);\n float peak = pow(env, 24.0);\n // frame coordinates, centered, with square units\n vec2 aspect = vec2(ratio, 1.0);\n vec2 q = (uv - 0.5) * aspect;\n float r = radians(angle);\n vec2 dir = vec2(cos(r), -sin(r));\n vec2 normal = vec2(-dir.y, dir.x);\n // the light crosses the frame, slowing down as it passes the middle\n float t = p - 0.5;\n float travel = 0.5 * (abs(dir.x) * ratio + abs(dir.y)) + 0.3;\n float along = travel * (2.0 * t) * (0.55 + 1.8 * t * t);\n vec2 src = dir * along + normal * height;\n\n vec2 d = q - src;\n float dist = length(d);\n float k = intensity * env;\n\n // the cut, under the glare: the incoming image spreads out from the light in a soft circle,\n // slower as the flare gets dimmer so that it still reads as intended\n float cut = mix(0.2, 0.06, clamp(intensity, 0.0, 1.0));\n float s = clamp((p - 0.5 + cut) / (2.0 * cut), 0.0, 1.0);\n float soft = 0.3;\n float reach = 0.5 * length(aspect) + length(src) + soft;\n float front = s * (reach + soft);\n float m = smoothstep(front, front - soft, dist);\n vec4 base = frame(uv, m);\n\n // the anamorphic streak: long and thin, always horizontal, white at the center and tinted along\n float ax = abs(d.x);\n float ay = abs(d.y);\n float thin = exp(-ay * 140.0) * exp(-ax * 0.7);\n float wide = exp(-ay * 30.0) * exp(-ax * 1.6);\n vec3 tint = color;\n vec3 streak = (thin * mix(vec3(1.0), tint, smoothstep(0.0, 0.3, ax)) + 0.5 * wide * tint) * 3.0;\n\n // the core and its halo\n vec3 core = vec3(1.0, 0.97, 0.92) * exp(-dist * dist * 600.0) * 3.0 + mix(vec3(1.0), tint, 0.5) * exp(-dist * 7.0) * 0.6;\n\n // ghosts on the line from the light through the center of the frame\n vec3 ghosts = vec3(0.0);\n for (int i = 0; i < GHOSTS; i++) {\n float fi = float(i);\n float f = -0.45 + 0.42 * fi + 0.08 * sin(fi * 2.3);\n vec2 g = -src * f;\n float size = 0.025 + 0.06 * fract(fi * 0.618 + 0.2);\n float gd = length(q - g) / size;\n // a soft disc with a brighter rim\n float disc = smoothstep(1.0, 0.8, gd) * (0.35 + 0.65 * smoothstep(0.4, 0.95, gd));\n vec3 hue = mix(tint, vec3(1.0, 0.65, 0.35), fract(fi * 0.53));\n hue = mix(hue, vec3(0.5, 1.0, 0.6), step(4.5, fi) * 0.6);\n ghosts += disc * hue * 0.45;\n }\n\n // the highlights of the image bloom at the peak\n vec3 bloom = vec3(0.0);\n if (peak > 1e-3) {\n float radius = 0.06 * env;\n for (int i = 0; i < BLOOM_TAPS; i++) {\n float fi = float(i);\n float a = fi * 2.39996;\n float rr = radius * sqrt((fi + 0.5) / float(BLOOM_TAPS));\n vec2 o = vec2(cos(a), sin(a)) * rr / aspect;\n bloom += highlight(frame(mirror(uv + o), m));\n }\n bloom /= float(BLOOM_TAPS);\n }\n\n // at the peak, the glare: a wide halo around the light and a light veil over the frame, to hide the cut\n vec3 glare = mix(vec3(1.0), tint, 0.5) * peak * (0.45 + 2.2 * exp(-dist * 3.0));\n\n vec3 light = k * (streak + core + ghosts) + intensity * (bloom * 2.5 * peak + glare);\n light = 1.0 - exp(-light);\n\n // screened over the image; the flare only shows on the image, so transparency is kept\n vec3 c = base.rgb + light * base.a - base.rgb * light;\n if (base.a <= 0.0) return vec4(0.0);\n return vec4(clamp(c / base.a, 0.0, 1.0), base.a);\n}\n","author":"gre","license":"MIT","description":"A bright light sweeps across the frame and flares the lens: a long thin horizontal streak, a glowing core and a trail of colored ghost reflections; at its peak the incoming image spreads out from the light under its glare","tags":["light","flare","glow","streak"],"params":{"angle":{"type":"float","default":-12,"min":-90,"max":90,"description":"Angle of the path of the light, in degrees (0 sweeps from left to right)"},"height":{"type":"float","default":0.18,"min":-0.5,"max":0.5,"description":"How far above the center of the frame the light passes"},"intensity":{"type":"float","default":1,"min":0,"max":2,"description":"Brightness of the flare"},"color":{"type":"vec3","default":[0.35,0.6,1],"color":true,"description":"Color of the streak and of the glare"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 18:52:13 +0100","updatedAt":"Sun, 1 Nov 2026 18:52:13 +0100"},{"name":"LightRays","paramsTypes":{"center":"vec2","drift":"float","reach":"float","threshold":"float","intensity":"float","tint":"vec3"},"defaultParams":{"center":[0.5,0.6],"drift":0.15,"reach":0.6,"threshold":0.65,"intensity":1.5,"tint":[1,0.82,0.55]},"glsl":"// Author: gre\n// License: MIT\n// Description: Shafts of light burst from the highlights of the outgoing image and stream outward from a slowly drifting center; at their peak the incoming image takes over and its own rays shrink back into its highlights\n// Tags: light, glow, rays, radial\n\n// @param Point the rays stream away from, at the middle of the transition\nuniform vec2 center; // = vec2(0.5, 0.6)\n// @range(0, 0.5) How far the center drifts during the transition, from left to right\nuniform float drift; // = 0.15\n// @range(0, 1) Length of the rays at the peak, as a fraction of their distance to the center\nuniform float reach; // = 0.6\n// @range(0, 0.8) Brightness above which the image casts rays\nuniform float threshold; // = 0.65\n// @range(0, 4) Brightness of the rays\nuniform float intensity; // = 1.5\n// @color Tint of the rays, toward their ends\nuniform vec3 tint; // = vec3(1.0, 0.82, 0.55)\n\nconst int TAPS = 20;\n// number of shafts around the center\nconst float SHAFTS = 23.0;\nconst float PI = 3.141592653589793;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\n// smooth noise around the center, wrapping over a full turn (t in 0..1)\nfloat shaftNoise(float t, float n, float seed) {\n float x = t * n;\n float i = floor(x);\n float f = x - i;\n float a = hash12(vec2(mod(i, n), seed));\n float b = hash12(vec2(mod(i + 1.0, n), seed));\n return mix(a, b, f * f * (3.0 - 2.0 * f));\n}\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// the light of a pixel (premultiplied): its color above the threshold\nvec3 glow(vec4 c, float knee) {\n float lum = dot(c.rgb, vec3(0.2126, 0.7152, 0.0722));\n return c.rgb * c.a * smoothstep(knee, knee + 0.2, lum);\n}\n\n// the light at a ray tap: one image, or both during the short switch\nvec3 light(vec2 st, float knee, float m) {\n if (m <= 0.0) return glow(getFromColor(st), knee);\n if (m >= 1.0) return glow(getToColor(st), knee);\n return mix(glow(getFromColor(st), knee), glow(getToColor(st), knee), m);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n // the rays grow on the outgoing image, and shrink back into the incoming one\n float amount = p < 0.5 ? smoothstep(0.0, 0.5, p) : 1.0 - smoothstep(0.5, 1.0, p);\n float peak = amount * amount * amount;\n float m = smoothstep(0.46, 0.54, p);\n vec4 fromColor = getFromColor(uv);\n vec4 toColor = getToColor(uv);\n if (amount <= 0.0) return m < 0.5 ? fromColor : toColor;\n\n // the rays stream away from a center drifting slowly across the frame\n vec2 origin = center + vec2(drift * (p - 0.5), 0.0);\n float len = reach * amount;\n // more and more of the image catches the light as the rays grow\n float knee = mix(threshold, 0.75 * threshold, peak);\n // a small shift of the taps, under their spacing, blends them into smooth shafts;\n // hashed by integer cell so that every GPU computes the same shift\n float jitter = hash12(floor(uv * vec2(ratio, 1.0) * 997.0));\n\n // the light gathered on the way to the center, fading with the distance it travels\n vec3 rays = vec3(0.0);\n float total = 0.0;\n for (int i = 0; i < TAPS; i++) {\n float s = (float(i) + jitter) / float(TAPS);\n float w = exp(-2.0 * s);\n // warm white near the sources, tinted further along the rays\n vec3 hue = mix(vec3(1.0), tint, smoothstep(0.0, 0.6, s));\n rays += w * hue * light(mirror(mix(uv, origin, s * len)), knee, m);\n total += w;\n }\n // the light breaks into shafts of different strengths, slowly turning\n vec2 d = (uv - origin) * vec2(ratio, 1.0);\n // atan is undefined at the center itself\n float turn = length(d) > 1e-6 ? atan(d.y, d.x) / (2.0 * PI) + 0.5 : 0.0;\n float shafts = 0.6 * shaftNoise(fract(turn + 0.03 * p), SHAFTS, 1.0) + 0.4 * shaftNoise(fract(turn - 0.05 * p), 2.0 * SHAFTS + 1.0, 7.0);\n // merged back into a soft glow close to the center, where the shafts would meet in a point\n rays *= mix(1.0, mix(0.2, 1.6, smoothstep(0.15, 0.85, shafts)), smoothstep(0.0, 0.3, length(d)));\n rays *= intensity * amount * (1.0 + 3.0 * peak) / total;\n // compressed, so that bright areas never flatten into white\n rays = 0.9 * (1.0 - exp(-rays));\n\n // the image stays sharp, with a slight lift of the exposure at the peak; the rays are screened\n // on top of its colors and add nothing to its alpha\n vec4 c = mix(vec4(fromColor.rgb * fromColor.a, fromColor.a), vec4(toColor.rgb * toColor.a, toColor.a), m);\n if (c.a <= 0.0) return vec4(0.0);\n vec3 base = min(c.rgb / c.a * (1.0 + 0.2 * peak), 1.0);\n return vec4(base + rays - base * rays, c.a);\n}\n","author":"gre","license":"MIT","description":"Shafts of light burst from the highlights of the outgoing image and stream outward from a slowly drifting center; at their peak the incoming image takes over and its own rays shrink back into its highlights","tags":["light","glow","rays","radial"],"params":{"center":{"type":"vec2","default":[0.5,0.6],"description":"Point the rays stream away from, at the middle of the transition"},"drift":{"type":"float","default":0.15,"min":0,"max":0.5,"description":"How far the center drifts during the transition, from left to right"},"reach":{"type":"float","default":0.6,"min":0,"max":1,"description":"Length of the rays at the peak, as a fraction of their distance to the center"},"threshold":{"type":"float","default":0.65,"min":0,"max":0.8,"description":"Brightness above which the image casts rays"},"intensity":{"type":"float","default":1.5,"min":0,"max":4,"description":"Brightness of the rays"},"tint":{"type":"vec3","default":[1,0.82,0.55],"color":true,"description":"Tint of the rays, toward their ends"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 20:30:21 +0100","updatedAt":"Mon, 2 Nov 2026 20:30:21 +0100"},{"name":"LightStreaks","paramsTypes":{"reach":"float","threshold":"float","intensity":"float","tint":"vec3","blur":"float","vertical":"bool"},"defaultParams":{"reach":0.6,"threshold":0.7,"intensity":1.5,"tint":[0.45,0.7,1],"blur":0.1,"vertical":false},"glsl":"// Author: gre\n// License: MIT\n// Description: The highlights of the outgoing image flare into long horizontal (or vertical) lens streaks while it smears with motion blur; at the peak the incoming image takes over and its streaks shrink back into its highlights as it sharpens\n// Tags: light, flare, motion-blur, glow\n\n// @range(0, 2) Length of the streaks at the peak, in frame widths\nuniform float reach; // = 0.6\n// @range(0, 1) Brightness above which the image flares\nuniform float threshold; // = 0.7\n// @range(0, 4) Brightness of the streaks\nuniform float intensity; // = 1.5\n// @color Tint of the streaks, toward their ends\nuniform vec3 tint; // = vec3(0.45, 0.7, 1.0)\n// @range(0, 0.5) Length of the motion blur at the peak\nuniform float blur; // = 0.1\n// @param Streak and smear vertically instead\nuniform bool vertical; // = false\n\nconst int BLUR_TAPS = 6;\n// taps on each side of a streak, spaced further and further apart along its falloff\nconst int STREAK_TAPS = 11;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// the image on screen: the outgoing one, then the incoming one after a short switch\nvec4 frame(vec2 st, float m) {\n if (m <= 0.0) return getFromColor(st);\n if (m >= 1.0) return getToColor(st);\n return mix(getFromColor(st), getToColor(st), m);\n}\n\n// the light of a pixel: its color above the threshold\nvec3 glow(vec4 c, float knee) {\n float lum = dot(c.rgb, vec3(0.2126, 0.7152, 0.0722));\n return c.rgb * c.a * smoothstep(knee, knee + 0.2, lum);\n}\n\n// one image only, for the blur and streak taps: during the switch, every other tap reads each image\nvec4 light(vec2 st, float m, bool incoming) {\n if (m <= 0.0) return getFromColor(st);\n if (m >= 1.0) return getToColor(st);\n return incoming ? getToColor(st) : getFromColor(st);\n}\n\nfloat lightWeight(float m, bool incoming) {\n if (m <= 0.0 || m >= 1.0) return 1.0;\n return incoming ? 2.0 * m : 2.0 * (1.0 - m);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n // eased in on the outgoing side, and quickly out after the switch so the incoming image lands sharp\n float amount = p < 0.5 ? smoothstep(0.0, 0.5, p) : pow(2.0 - 2.0 * p, 3.0);\n float peak = amount * amount * amount;\n float m = smoothstep(0.44, 0.56, p);\n vec2 axis = vertical ? vec2(0.0, 1.0) : vec2(1.0, 0.0);\n // a small shift of the taps, under their spacing, blends their copies into a smooth smear;\n // hashed by integer cell so that every GPU computes the same shift\n float jitter = hash12(floor(uv * vec2(ratio, 1.0) * 997.0)) - 0.5;\n\n // the image smears along the streaks (a tent filter)\n float smear = blur * amount;\n vec3 base = vec3(0.0);\n float alpha = 0.0;\n float total = 0.0;\n for (int i = 0; i < BLUR_TAPS; i++) {\n float t = (float(i) + 0.5 + jitter) / float(BLUR_TAPS) - 0.5;\n float w = 1.0 - abs(t);\n total += w;\n bool incoming = mod(float(i), 2.0) > 0.5;\n w *= lightWeight(m, incoming);\n vec4 c = light(mirror(uv + axis * t * smear), m, incoming);\n base += w * c.rgb * c.a;\n alpha += w * c.a;\n }\n base /= total;\n alpha /= total;\n\n // the streaks: the light above the threshold, spread along the axis with an exponential falloff\n float falloff = 0.25 * reach * amount;\n float knee = mix(threshold, 0.8 * threshold, peak);\n vec3 streak = glow(frame(uv, m), knee);\n float weights = 1.0;\n for (int k = 1; k <= STREAK_TAPS; k++) {\n // the distance in units of the falloff, and the stretch of the streak this tap stands for\n float d = exp(0.14 * (float(k) + 0.8 * jitter)) - 1.0;\n float span = 0.14 * (d + 1.0);\n // white at the source, tinted along the streak, red fading first so the tails turn blue and violet\n vec3 hue = mix(vec3(1.0), tint, smoothstep(0.0, 0.8, d));\n hue *= exp(-d * vec3(0.6, 0.2, -0.15));\n float w = exp(-d) * span * 4.0;\n bool incoming = mod(float(k), 2.0) > 0.5;\n vec4 ahead = light(mirror(uv + axis * d * falloff), m, incoming);\n vec4 behind = light(mirror(uv - axis * d * falloff), m, !incoming);\n streak += w * hue * (glow(ahead, knee) * lightWeight(m, incoming) + glow(behind, knee) * lightWeight(m, !incoming));\n weights += 2.0 * w;\n }\n streak *= intensity * amount * (0.6 + 2.4 * peak) * 2.0 / weights;\n // compressed, so that bright skies never flatten into white\n streak = 0.85 * (1.0 - exp(-streak));\n\n // a lift of the exposure at the peak, then the streaks screened on top (premultiplied colors)\n base = min(base * (1.0 + 0.2 * peak), vec3(alpha));\n vec3 color = base + streak - base * streak;\n float a = alpha + max(streak.r, max(streak.g, streak.b)) * (1.0 - alpha);\n return vec4(clamp(color / max(a, 1e-5), 0.0, 1.0), a);\n}\n","author":"gre","license":"MIT","description":"The highlights of the outgoing image flare into long horizontal (or vertical) lens streaks while it smears with motion blur; at the peak the incoming image takes over and its streaks shrink back into its highlights as it sharpens","tags":["light","flare","motion-blur","glow"],"params":{"reach":{"type":"float","default":0.6,"min":0,"max":2,"description":"Length of the streaks at the peak, in frame widths"},"threshold":{"type":"float","default":0.7,"min":0,"max":1,"description":"Brightness above which the image flares"},"intensity":{"type":"float","default":1.5,"min":0,"max":4,"description":"Brightness of the streaks"},"tint":{"type":"vec3","default":[0.45,0.7,1],"color":true,"description":"Tint of the streaks, toward their ends"},"blur":{"type":"float","default":0.1,"min":0,"max":0.5,"description":"Length of the motion blur at the peak"},"vertical":{"type":"bool","default":false,"description":"Streak and smear vertically instead"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 23:20:50 +0100","updatedAt":"Sat, 31 Oct 2026 23:20:50 +0100"},{"name":"LightWipe","paramsTypes":{"direction":"vec2","width":"float","intensity":"float","color":"vec3"},"defaultParams":{"direction":[1,-0.35],"width":0.04,"intensity":1.2,"color":[1,0.86,0.66]},"glsl":"// Author: gre\n// License: MIT\n// Description: A band of intense light sweeps across the frame like a glint on glass, blooming the highlights of both images, and leaves the incoming image behind it\n// Tags: wipe, light, glow, glint\n\n// @param Direction the band of light moves toward\nuniform vec2 direction; // = vec2(1.0, -0.35)\n// @range(0.005, 0.2) Width of the bright core of the band, in frame heights\nuniform float width; // = 0.04\n// @range(0, 3) Brightness of the light\nuniform float intensity; // = 1.2\n// @color Tint of the light, toward the edges of the band (its core burns white)\nuniform vec3 color; // = vec3(1.0, 0.86, 0.66)\n\nconst int TAPS = 12;\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// a gentle ease in and out, which does not linger at the ends\nfloat ease(float t) {\n return 0.5 * (t + t * t * (3.0 - 2.0 * t));\n}\n\n// the image on screen at a point: the outgoing one ahead of the switch, the incoming one behind it\n// (both always sampled, so that no texture read sits in a branch that differs between pixels)\nvec4 frame(vec2 st, float m) {\n return mix(getFromColor(st), getToColor(st), m);\n}\n\n// the light of a pixel (premultiplied): its color above a soft knee\nvec3 highlight(vec4 c) {\n float lum = dot(c.rgb, vec3(0.2126, 0.7152, 0.0722));\n return c.rgb * c.a * smoothstep(0.45, 1.0, lum);\n}\n\nvec4 transition(vec2 uv) {\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n // half extent of the frame along the direction\n float e = 0.5 * (abs(dir.x) * ratio + abs(dir.y));\n float w = max(width, 0.001);\n float s = 0.35 * w;\n // the band starts and ends outside of the frame, with the switch out of sight\n float margin = s + 2.0 * w;\n float pos = -e - margin + 2.0 * (e + margin) * ease(progress);\n // signed distance to the middle of the band: < 0 has been swept\n float d = dot(p, dir) - pos;\n float m = 1.0 - smoothstep(-s, s, d);\n\n // the light ignites as it enters and dies away as it leaves: exactly none at both ends\n float env = smoothstep(0.0, 0.2, progress) * (1.0 - smoothstep(0.8, 1.0, progress));\n // a hot core, a thinner glint trailing behind it, and a wide soft halo\n float core = exp(-d * d / (w * w));\n float g = (d + 2.2 * w) / (0.3 * w);\n float glint = 0.45 * exp(-g * g);\n float halo = 0.35 * exp(-abs(d) / (5.0 * w));\n float band = (core + glint + halo) * env * intensity;\n // the moving glint itself, where the highlights bloom\n float glow = (core + glint) * env * intensity;\n\n vec4 c = frame(uv, m);\n\n // the highlights near the band bloom along it: taps across the band, sampled where the band is brightest\n vec3 bloom = vec3(0.0);\n // spread over the band, short enough that its taps blend into a smooth glow\n float spread = min(3.0 * w, 0.12);\n for (int i = 0; i < TAPS; i++) {\n float t = (float(i) + 0.5) / float(TAPS) * 2.0 - 1.0;\n vec2 st = mirror((p + dir * (t * spread)) / vec2(ratio, 1.0) + 0.5);\n // the image on screen where the tap reads, on the same side of the switch\n float dq = dot((st - 0.5) * vec2(ratio, 1.0), dir) - pos;\n bloom += (1.0 - abs(t)) * highlight(frame(st, 1.0 - smoothstep(-s, s, dq)));\n }\n // the sum of the tent weights\n bloom /= 0.5 * float(TAPS);\n\n // white at the heart of the core, tinted toward the edges of the band\n vec3 hue = mix(color, vec3(1.0), core * core);\n float lum = dot(c.rgb, vec3(0.2126, 0.7152, 0.0722));\n // the light lifts the image, the bright parts more: exposure that rolls off softly to white, never clipping\n vec3 light = hue * band * (0.3 + 0.9 * lum) + hue * bloom * glow * 4.0 + hue * core * env * intensity * 1.6;\n vec3 rgb = 1.0 - (1.0 - c.rgb) * exp(-light);\n // light adds to the image, not to its alpha\n return vec4(rgb, c.a);\n}\n","author":"gre","license":"MIT","description":"A band of intense light sweeps across the frame like a glint on glass, blooming the highlights of both images, and leaves the incoming image behind it","tags":["wipe","light","glow","glint"],"params":{"direction":{"type":"vec2","default":[1,-0.35],"description":"Direction the band of light moves toward"},"width":{"type":"float","default":0.04,"min":0.005,"max":0.2,"description":"Width of the bright core of the band, in frame heights"},"intensity":{"type":"float","default":1.2,"min":0,"max":3,"description":"Brightness of the light"},"color":{"type":"vec3","default":[1,0.86,0.66],"color":true,"description":"Tint of the light, toward the edges of the band (its core burns white)"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 12:39:22 +0100","updatedAt":"Mon, 2 Nov 2026 12:39:22 +0100"},{"name":"LightningFlash","paramsTypes":{"bolts":"int","strike":"float","seed":"float","color":"vec3","glow":"float","flashes":"int"},"defaultParams":{"bolts":2,"strike":0.55,"seed":0,"color":[0.75,0.85,1],"glow":0.5,"flashes":3},"glsl":"// Author: gre\n// License: MIT\n// Description: Forked lightning bolts crack down from the top of the frame, the screen flashes white in a few stuttering strobes, and the incoming image appears lit by the last flickers as they fade out\n// Tags: light, flash, weather, strobe\n\n// @range(1, 3, 1) Number of bolts: the main one strikes the ground, the others fork out higher in the sky\nuniform int bolts; // = 2\n// @range(0, 1) Where the main bolt strikes, from the left (0) to the right (1) of the frame\nuniform float strike; // = 0.55\n// @range(0, 100, 1) Changes the shape of the bolts\nuniform float seed; // = 0.0\n// @color Color of the light, added to the images\nuniform vec3 color; // = vec3(0.75, 0.85, 1.0)\n// @range(0, 1) Size and brightness of the glow around the bolts\nuniform float glow; // = 0.5\n// @range(1, 4, 1) Number of strobes; the images switch during the brightest one\nuniform int flashes; // = 3\n\n// the bolts crack down until this time, then the strobes start\nconst float LEADER = 0.3;\n\nfloat hash(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// a value noise that is linear between its cells: a jagged polyline, centered on 0\nfloat jag(float s, float k) {\n float i = floor(s);\n return mix(hash(vec2(i, k)), hash(vec2(i + 1.0, k)), fract(s)) - 0.5;\n}\n\n// the zigzag of a bolt around its straight line, at height y (narrower in a portrait frame)\nfloat zigzag(float y, float k) {\n return min(ratio, 1.0) * (0.15 * jag(y * 5.0, k) + 0.06 * jag(y * 13.0, k + 1.0) + 0.03 * jag(y * 31.0, k + 2.0) + 0.012 * jag(y * 67.0, k + 3.0));\n}\n\n// the x of a bolt at height y: from x0 at the top (y = 1) to x1 at its end (y = y1),\n// given z0 and z1, its zigzag at both ends\nfloat boltX(float y, float x0, float x1, float y1, float z0, float z1, float k) {\n float t = (1.0 - y) / (1.0 - y1);\n return mix(x0 - z0, x1 - z1, t) + zigzag(y, k);\n}\n\n// the x of a branch at height y: it leaves its bolt at (xb, yb), where its own zigzag is zb,\n// and drifts sideways by dir per unit of height\nfloat branchX(float y, float xb, float yb, float zb, float dir, float k) {\n return xb + dir * (yb - y) + 0.6 * (zigzag(y, k) - zb);\n}\n\n// distance to a curve x = f(y), knowing its x and its slope at the pixel's height,\n// and how far above or below its ends the pixel is; the slope only corrects the distance\n// close to the curve, so the glow farther away does not streak along the zigzags\nfloat curveDist(vec2 q, float x, float slope, float outside) {\n float dx = abs(q.x - x);\n float d = dx * mix(inversesqrt(1.0 + slope * slope), 1.0, smoothstep(0.0, 0.08, dx));\n return length(vec2(d, max(outside, 0.0)));\n}\n\n// a strobe at time t0: a quick rise, a plateau of length hold, then a decay\nfloat pulse(float p, float t0, float hold, float decay) {\n float x = p - t0;\n if (x < 0.0) return smoothstep(-0.012, 0.0, x);\n return exp(-max(x - hold, 0.0) / decay);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n vec2 q = vec2(uv.x * ratio, uv.y);\n // (seeds far apart, so that neighboring seeds share no hash keys)\n float k0 = floor(seed) * 61.0;\n int nb = bolts < 1 ? 1 : (bolts > 3 ? 3 : bolts);\n int nf = flashes < 1 ? 1 : (flashes > 4 ? 4 : flashes);\n // the images switch during the brightest strobe, the second one (or the only one)\n int cut = nf > 1 ? 1 : 0;\n\n // the strobes, a bit irregular; the bolts are lit by all of them, the screen mostly by the brightest\n float flash = 0.0;\n float lit = 0.0;\n float tCut = LEADER;\n float tLast = LEADER;\n float t = LEADER;\n for (int i = 0; i < 4; i++) {\n if (i < nf) {\n bool isCut = i == cut;\n float amp = isCut ? 1.0 : (i < cut ? 0.55 : 0.7 * pow(0.75, float(i - cut - 1)));\n float s = amp * pulse(p, t, isCut ? 0.025 : 0.004, isCut ? 0.03 : 0.022);\n flash = max(flash, s);\n lit = max(lit, pulse(p, t, 0.01, 0.045));\n if (isCut) tCut = t;\n tLast = t;\n t += (isCut ? 0.12 : 0.08) + 0.04 * hash(vec2(float(i), k0 + 5.0));\n }\n }\n // the stutter: the light jumps from one level to another a few times per strobe\n float stutter = mix(0.7, 1.0, hash(vec2(floor(p * 70.0), k0 + 9.0)));\n flash *= stutter;\n // the brightest strobe whites the screen out while the images switch\n float whiteout = pulse(p, tCut, 0.025, 0.02);\n // then a few last flickers, fading out\n float tail = p > tLast ? exp(-(p - tLast) / 0.1) * smoothstep(0.03, 0.06, p - tLast) : 0.0;\n flash = max(flash, 0.35 * tail * step(0.45, hash(vec2(floor(p * 40.0), k0 + 13.0))));\n\n // the bolts crack down in a few jumps while faintly lit, then light up with the strobes and go out\n float grow = clamp(p / LEADER, 0.0, 1.0);\n grow = (floor(grow * 7.0) + smoothstep(0.0, 1.0, fract(grow * 7.0))) / 7.0;\n float faint = 0.5 * mix(0.6, 1.0, hash(vec2(floor(p * 50.0), k0 + 11.0)));\n float boltLight = p < LEADER ? faint * smoothstep(0.0, 0.06, p) : max(lit * stutter, faint * exp(-(p - LEADER) / 0.12));\n boltLight = max(boltLight, 0.6 * flash * tail);\n boltLight *= 1.0 - smoothstep(tLast + 0.1, tLast + 0.3, p);\n\n // the bolts: the main one strikes the ground at strike, the others stop in the sky\n float core = 0.0;\n float halo = 0.0;\n float near = 10.0;\n bool lightsOn = boltLight > 0.0 || flash > 0.0;\n for (int b = 0; b < 3; b++) {\n if (b < nb && lightsOn) {\n float fb = float(b);\n float kb = k0 + fb * 17.0;\n float x1 = strike * ratio;\n float y1 = -0.05;\n float bright = 1.0;\n if (b > 0) {\n // the second bolt goes to the roomier side, the third to the other side if there is room there\n float roomy = strike < 0.5 ? 1.0 : -1.0;\n bool cramped = min(strike, 1.0 - strike) < 0.25;\n float side = b == 1 || cramped ? roomy : -roomy;\n float dist = b == 2 && cramped ? 0.5 : 0.22;\n x1 = clamp(x1 + side * ratio * (dist + 0.12 * hash(vec2(fb, kb))), 0.08 * ratio, 0.92 * ratio);\n y1 = 0.25 + 0.25 * hash(vec2(fb, kb + 1.0));\n bright = 0.7;\n }\n float x0 = clamp(x1 + (hash(vec2(fb, kb + 2.0)) - 0.5) * 0.5 * min(ratio, 1.0), 0.1 * ratio, 0.9 * ratio);\n // the tip of the bolt while it cracks down\n float tip = mix(1.02, y1, grow);\n // (the slope is measured over a few pixels, so it changes smoothly at the corners)\n float e = 0.01;\n float z0 = zigzag(1.0, kb);\n float z1 = zigzag(y1, kb);\n float x = boltX(q.y, x0, x1, y1, z0, z1, kb);\n float slope = (boltX(q.y + e, x0, x1, y1, z0, z1, kb) - boltX(q.y - e, x0, x1, y1, z0, z1, kb)) / (2.0 * e);\n float d = curveDist(q, x, slope, max(max(y1, tip) - q.y, q.y - 1.05));\n near = min(near, d);\n float w = 0.003 * mix(1.0, 0.7, fb / 2.0);\n core += bright * exp(-d * d / (w * w));\n halo += bright * (0.7 * exp(-d * 24.0) + 0.25 * exp(-d * 6.0));\n // three branches, leaving the bolt on either side and fading toward their ends\n for (int j = 0; j < 3; j++) {\n float fj = float(j);\n float kj = kb + 3.0 + fj * 5.0;\n float tb = 0.12 + 0.2 * fj + 0.15 * hash(vec2(fj, kj));\n float yb = mix(1.0, y1, tb);\n float len = (0.3 + 0.25 * hash(vec2(fj, kj + 1.0))) * (1.0 - tb) * (1.0 - y1);\n float dir = (j == 1 ? -1.0 : 1.0) * (0.2 + 0.45 * hash(vec2(fj, kj + 2.0))) * min(ratio, 1.0);\n float xb = boltX(yb, x0, x1, y1, z0, z1, kb);\n float zb = zigzag(yb, kj);\n float bx = branchX(q.y, xb, yb, zb, dir, kj);\n float bs = (branchX(q.y + e, xb, yb, zb, dir, kj) - branchX(q.y - e, xb, yb, zb, dir, kj)) / (2.0 * e);\n float bd = curveDist(q, bx, bs, max(max(yb - len, tip) - q.y, q.y - yb));\n near = min(near, bd);\n float along = clamp((yb - q.y) / len, 0.0, 1.0);\n float fade = bright * (1.0 - 0.8 * along);\n float bw = w * mix(0.8, 0.4, along);\n core += fade * exp(-bd * bd / (bw * bw));\n halo += fade * 0.6 * (0.7 * exp(-bd * 24.0) + 0.25 * exp(-bd * 6.0));\n }\n }\n }\n\n // the outgoing image gives way to the incoming one at the brightest strobe, hidden by it\n float m = smoothstep(tCut, tCut + 0.025, p);\n vec4 c = vec4(0.0);\n if (m < 1.0) {\n vec4 a = getFromColor(uv);\n c += (1.0 - m) * vec4(a.rgb * a.a, a.a);\n }\n if (m > 0.0) {\n vec4 a = getToColor(uv);\n c += m * vec4(a.rgb * a.a, a.a);\n }\n if (c.a <= 0.0) return vec4(0.0);\n vec3 col = c.rgb / c.a;\n\n // the effect fades in at the start and is gone at the end\n float live = smoothstep(0.0, 0.03, p) * (1.0 - smoothstep(0.85, 1.0, p));\n // the sky darkens a little as the storm builds, then the strobes overexpose the image,\n // more around the bolts, and the bolts glow over it\n float dim = 0.4 * smoothstep(0.0, LEADER, p) * (1.0 - smoothstep(tCut, tLast + 0.15, p));\n float f = flash * mix(0.6 + 0.4 * exp(-near * 4.0), 1.0, smoothstep(0.6, 1.0, flash));\n col *= 1.0 - dim * live;\n col = col * (1.0 + 2.5 * f * live) + color * (1.1 * f * live);\n float g = 0.4 + 1.2 * glow;\n vec3 light = mix(color, vec3(1.0), 0.75) * min(core, 1.5) * 1.6 + color * g * halo;\n col += light * boltLight * live;\n col = mix(col, vec3(1.0), 0.92 * whiteout * live);\n return vec4(clamp(col, 0.0, 1.0), c.a);\n}\n","author":"gre","license":"MIT","description":"Forked lightning bolts crack down from the top of the frame, the screen flashes white in a few stuttering strobes, and the incoming image appears lit by the last flickers as they fade out","tags":["light","flash","weather","strobe"],"params":{"bolts":{"type":"int","default":2,"min":1,"max":3,"step":1,"description":"Number of bolts: the main one strikes the ground, the others fork out higher in the sky"},"strike":{"type":"float","default":0.55,"min":0,"max":1,"description":"Where the main bolt strikes, from the left (0) to the right (1) of the frame"},"seed":{"type":"float","default":0,"min":0,"max":100,"step":1,"description":"Changes the shape of the bolts"},"color":{"type":"vec3","default":[0.75,0.85,1],"color":true,"description":"Color of the light, added to the images"},"glow":{"type":"float","default":0.5,"min":0,"max":1,"description":"Size and brightness of the glow around the bolts"},"flashes":{"type":"int","default":3,"min":1,"max":4,"step":1,"description":"Number of strobes; the images switch during the brightest one"}},"textures":[],"createdAt":"Thu, 5 Nov 2026 11:34:09 +0100","updatedAt":"Thu, 5 Nov 2026 11:34:09 +0100"},{"name":"LiquidFill","paramsTypes":{"direction":"vec2","amplitude":"float","waves":"float","highlight":"vec4","refraction":"float","bubbles":"float"},"defaultParams":{"direction":[0,1],"amplitude":0.06,"waves":1.5,"highlight":[1,1,1,0.8],"refraction":0.03,"bubbles":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The incoming image rises over the outgoing one like liquid filling a glass, its surface sloshing in waves, lit by a bright meniscus line, bending the image just below it, with a few bubbles rising through it\n// Tags: liquid, water, wave, directional, reveal\n\n// @param Direction the liquid rises toward\nuniform vec2 direction; // = vec2(0.0, 1.0)\n// @range(0, 0.3) Height of the waves on the surface, in frame heights\nuniform float amplitude; // = 0.06\n// @range(0.5, 6) Number of waves across the frame\nuniform float waves; // = 1.5\n// @color Color of the bright line along the surface and the rims of the bubbles (its alpha is its strength)\nuniform vec4 highlight; // = vec4(1.0, 1.0, 1.0, 0.8)\n// @range(0, 0.1) How much the incoming image is bent just below the surface\nuniform float refraction; // = 0.03\n// @range(0, 1) How many bubbles rise through the liquid\nuniform float bubbles; // = 0.5\n\nconst float PI = 3.141592653589793;\n// half width of the antialiased edges, in frame heights\nconst float AA = 0.0015;\n// width of the meniscus line, in frame heights\nconst float LINE = 0.006;\n// size of the cells the bubbles are scattered in, in frame heights\nconst float CELL = 0.08;\n\nfloat hash (vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// height of the surface above its mean level at x (across the frame, from -1 to 1), between -1 and 1:\n// a slosh from side to side and a smaller wave running along it\nfloat surface (float x, float t) {\n float k = PI * max(waves, 0.01);\n return 0.6 * sin(k * x + 0.5 * PI) * cos(2.0 * PI * 1.3 * t)\n + 0.4 * sin(1.7 * k * x - 9.0 * t + 1.3);\n}\n\nvec4 transition (vec2 uv) {\n vec4 a = getFromColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return getToColor(uv);\n\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(0.0, 1.0);\n vec2 across = vec2(-dir.y, dir.x);\n // measured in square pixels, so the waves and bubbles are not stretched\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n // half extents of the frame along the direction and across it\n float e = 0.5 * (abs(dir.x) * ratio + abs(dir.y));\n float w = 0.5 * (abs(dir.y) * ratio + abs(dir.x));\n float d = dot(p, dir);\n float x = dot(p, across);\n float t = progress;\n // the liquid moves most in the middle of the transition and settles at the ends\n float stir = sin(PI * t);\n float amp = max(amplitude, 0.0) * (0.35 + 0.65 * stir);\n // the surface starts fully below the frame and ends fully above it, waves and meniscus included\n float margin = max(amplitude, 0.0) + 2.0 * LINE + AA;\n float mean = mix(-e - margin, e + margin, mix(t, t * t * (3.0 - 2.0 * t), 0.5));\n float level = mean + amp * surface(x / w, t);\n // > 0 below the surface, in the liquid\n float depth = level - d;\n float m = smoothstep(-AA, AA, depth);\n\n // the incoming image is bent by the waves just below the surface, less and less deeper down\n float bend = refraction * stir * exp(-max(depth, 0.0) / 0.06);\n vec2 offset = bend * (dir * sin(18.0 * x - 7.0 * t) + across * cos(13.0 * x + 5.0 * t));\n vec4 b = getToColor(clamp(uv + offset / vec2(ratio, 1.0), 0.0, 1.0));\n\n // bubbles rise in columns through the liquid, carried up with it and rising faster still\n float glow = 0.0;\n float rise = mean + 0.5 * t;\n vec2 bq = vec2(x, d - rise) / CELL;\n vec2 cell = floor(bq);\n float hs = hash(cell + 7.1);\n float r = (0.12 + 0.18 * hash(cell + 3.7)) * stir;\n float px = AA / CELL;\n if (hs < bubbles * 0.6 && r > px) {\n // placed so that it stays inside its cell, wobble and soft edge included\n vec2 c = cell + 0.5 + (0.42 - r - px) * (vec2(hash(cell + 1.3), hash(cell + 9.4)) * 2.0 - 1.0);\n // a slight wobble as it rises\n c.x += 0.08 * sin(6.0 * t + 6.28 * hs);\n float dist = length(bq - c);\n // its rim, and a small glint near its top\n float rim = smoothstep(0.7 * r - px, 0.7 * r + px, dist) * (1.0 - smoothstep(r - px, r + px, dist));\n float glint = 1.0 - smoothstep(0.25 * r - px, 0.25 * r + px, length(bq - c - 0.45 * r * vec2(-0.7, 0.7)));\n // only in the liquid, and fading out as it nears the surface\n glow = max(rim * 0.6, glint) * smoothstep(0.0, 0.05, depth) * stir;\n }\n // the meniscus: a bright line along the surface, on the liquid side\n float line = 1.0 - smoothstep(LINE - AA, LINE + AA, abs(depth - LINE));\n line += 0.35 * stir * exp(-max(depth, 0.0) / 0.03) * m;\n float light = highlight.a * clamp(max(line, glow), 0.0, 1.0) * (0.4 + 0.6 * stir);\n b.rgb = mix(b.rgb, highlight.rgb, light);\n\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The incoming image rises over the outgoing one like liquid filling a glass, its surface sloshing in waves, lit by a bright meniscus line, bending the image just below it, with a few bubbles rising through it","tags":["liquid","water","wave","directional","reveal"],"params":{"direction":{"type":"vec2","default":[0,1],"description":"Direction the liquid rises toward"},"amplitude":{"type":"float","default":0.06,"min":0,"max":0.3,"description":"Height of the waves on the surface, in frame heights"},"waves":{"type":"float","default":1.5,"min":0.5,"max":6,"description":"Number of waves across the frame"},"highlight":{"type":"vec4","default":[1,1,1,0.8],"color":true,"description":"Color of the bright line along the surface and the rims of the bubbles (its alpha is its strength)"},"refraction":{"type":"float","default":0.03,"min":0,"max":0.1,"description":"How much the incoming image is bent just below the surface"},"bubbles":{"type":"float","default":0.5,"min":0,"max":1,"description":"How many bubbles rise through the liquid"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:12:38 +0100","updatedAt":"Wed, 4 Nov 2026 20:12:38 +0100"},{"name":"LissajousTiles","paramsTypes":{"speed":"float","freq":"vec2","offset":"float","zoom":"float","fade":"float"},"defaultParams":{"speed":0.5,"freq":[2,3],"offset":2,"zoom":0.8,"fade":3},"glsl":"// Author: Boundless <info@boundless-beta.com>\n// License: MIT\n// Description: The image breaks into a grid of tiles that swirl along Lissajous curves, in a Scanimate style, and flip one by one to the incoming image before settling back\n// Tags: tiles, grid, motion, retro\n// <3\n\n// @param Speed of the tiles along their curves\nuniform float speed; // = 0.5;\n// @param Number of loops of the curve, horizontally and vertically\nuniform vec2 freq; // = vec2(2.,3.);\n// @param Extra vertical speed, which bends the curve\nuniform float offset; // = 2.;\n// @range(0, 2) Size of the curve, relative to the image\nuniform float zoom; // = 0.8;\n// @range(0, 10) Spread of the tile-by-tile switch to the incoming image\nuniform float fade; // = 3.;\n\nconst vec2 grid = vec2(10.,10.); // grid size\nconst float TAU = 6.283185307;\n\nvec4 transition (vec2 uv) {\n // The tiles leave and come back with zero speed, so the image does not break apart in the first frame\n float p = 1.-pow(1.-smoothstep(0.,1.,1.-abs(1.-2.*progress)),3.); // transition curve\n // Find the last tile that covers this pixel (looping backwards, the first hit), then sample the images once\n for (float jBig = grid.y-1.; jBig >= 0.; jBig--) {\n for (float iBig = grid.x-1.; iBig >= 0.; iBig--) {\n float i = iBig/grid.x;\n float j = jBig/grid.y;\n float k = i/grid.y+j; // order of the tile along the curve\n vec2 uv0 = uv + vec2(i,j) - 0.5 + 0.5/grid + vec2(cos(k*TAU*freq.x+progress*6.*speed),sin(k*TAU*freq.y+progress*6.*(1.+offset)*speed))*zoom/2.;\n uv0 = mix(uv, uv0, p);\n if (uv0.x >= i && uv0.x < i+1./grid.x && uv0.y >= j && uv0.y < j+1./grid.y) { // mask for each (i,j) tile\n float tileMix = clamp(progress*((1.+fade)*2.*progress)-fade+k*fade, 0., 1.);\n return mix(getFromColor(uv0), getToColor(uv0), tileMix);\n }\n }\n }\n return vec4(0.); // between the tiles: transparent\n}\n","author":"Boundless <info@boundless-beta.com>","license":"MIT","description":"The image breaks into a grid of tiles that swirl along Lissajous curves, in a Scanimate style, and flip one by one to the incoming image before settling back","tags":["tiles","grid","motion","retro"],"params":{"speed":{"type":"float","default":0.5,"description":"Speed of the tiles along their curves"},"freq":{"type":"vec2","default":[2,3],"description":"Number of loops of the curve, horizontally and vertically"},"offset":{"type":"float","default":2,"description":"Extra vertical speed, which bends the curve"},"zoom":{"type":"float","default":0.8,"min":0,"max":2,"description":"Size of the curve, relative to the image"},"fade":{"type":"float","default":3,"min":0,"max":10,"description":"Spread of the tile-by-tile switch to the incoming image"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"LumaWipe","paramsTypes":{},"defaultParams":{},"glsl":"// Author: gre\n// License: MIT\n// Description: A wipe that follows the brightness of a grayscale mask (the luma texture)\n// Tags: wipe, luma, mask\n\nuniform sampler2D luma;\n\nvec4 transition(vec2 uv) {\n return mix(\n getToColor(uv),\n getFromColor(uv),\n step(progress, texture2D(luma, uv).r)\n );\n}\n","author":"gre","license":"MIT","description":"A wipe that follows the brightness of a grayscale mask (the luma texture)","tags":["wipe","luma","mask"],"params":{},"textures":["luma"],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"LuminanceMelt","paramsTypes":{"direction":"bool","l_threshold":"float","above":"bool"},"defaultParams":{"direction":true,"l_threshold":0.8,"above":false},"glsl":"// Author: 0gust1\n// License: MIT\n// Description: The outgoing image melts away in noisy vertical streaks, depending on its brightness\n// Tags: melt, noise, luma\n//My own first transition — based on crosshatch code (from pthrasher), using simplex noise formula (copied and pasted)\n//-> cooler with high contrasted images (isolated dark subject on light background f.e.)\n//TODO : try to rebase it on DoomTransition (from zeh)?\n//optimizations :\n//luminance (see http://stackoverflow.com/questions/596216/formula-to-determine-brightness-of-rgb-color#answer-596241)\n// Y = (R+R+B+G+G+G)/6\n//or Y = (R+R+R+B+G+G+G+G)>>3 \n\n\n//direction of movement : 0 : up, 1, down\n// @param Direction of the melt (false: up, true: down)\nuniform bool direction; // = true\n//luminance threshold\n// @range(0, 1) Luminance threshold\nuniform float l_threshold; // = 0.8 \n//does the movement takes effect above or below luminance threshold ?\n// @param Melt the parts above the threshold instead of below\nuniform bool above; // = false \n\n\n//Random function borrowed from everywhere\nfloat rand(vec2 co){\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n\n\n// Simplex noise :\n// Description : Array and textureless GLSL 2D simplex noise function.\n// Author : Ian McEwan, Ashima Arts.\n// Maintainer : ijm\n// Lastmod : 20110822 (ijm)\n// License : MIT \n// 2011 Ashima Arts. All rights reserved.\n// Distributed under the MIT License. See LICENSE file.\n// https://github.com/ashima/webgl-noise\n// \n\nvec3 mod289(vec3 x) {\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\n\nvec2 mod289(vec2 x) {\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\n\nvec3 permute(vec3 x) {\n return mod289(((x*34.0)+1.0)*x);\n}\n\nfloat snoise(vec2 v)\n {\n const vec4 C = vec4(0.211324865405187, // (3.0-sqrt(3.0))/6.0\n 0.366025403784439, // 0.5*(sqrt(3.0)-1.0)\n -0.577350269189626, // -1.0 + 2.0 * C.x\n 0.024390243902439); // 1.0 / 41.0\n// First corner\n vec2 i = floor(v + dot(v, C.yy) );\n vec2 x0 = v - i + dot(i, C.xx);\n\n// Other corners\n vec2 i1;\n //i1.x = step( x0.y, x0.x ); // x0.x > x0.y ? 1.0 : 0.0\n //i1.y = 1.0 - i1.x;\n i1 = (x0.x > x0.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);\n // x0 = x0 - 0.0 + 0.0 * C.xx ;\n // x1 = x0 - i1 + 1.0 * C.xx ;\n // x2 = x0 - 1.0 + 2.0 * C.xx ;\n vec4 x12 = x0.xyxy + C.xxzz;\n x12.xy -= i1;\n\n// Permutations\n i = mod289(i); // Avoid truncation effects in permutation\n vec3 p = permute( permute( i.y + vec3(0.0, i1.y, 1.0 ))\n\t\t+ i.x + vec3(0.0, i1.x, 1.0 ));\n\n vec3 m = max(0.5 - vec3(dot(x0,x0), dot(x12.xy,x12.xy), dot(x12.zw,x12.zw)), 0.0);\n m = m*m ;\n m = m*m ;\n\n// Gradients: 41 points uniformly over a line, mapped onto a diamond.\n// The ring size 17*17 = 289 is close to a multiple of 41 (41*7 = 287)\n\n vec3 x = 2.0 * fract(p * C.www) - 1.0;\n vec3 h = abs(x) - 0.5;\n vec3 ox = floor(x + 0.5);\n vec3 a0 = x - ox;\n\n// Normalise gradients implicitly by scaling m\n// Approximation of: m *= inversesqrt( a0*a0 + h*h );\n m *= 1.79284291400159 - 0.85373472095314 * ( a0*a0 + h*h );\n\n// Compute final noise value at P\n vec3 g;\n g.x = a0.x * x0.x + h.x * x0.y;\n g.yz = a0.yz * x12.xz + h.yz * x12.yw;\n return 130.0 * dot(m, g);\n}\n\n// Simplex noise -- end\n\nfloat luminance(vec4 color){\n //(0.299*R + 0.587*G + 0.114*B)\n return color.r*0.299+color.g*0.587+color.b*0.114;\n}\n\nvec4 transition(vec2 uv) {\n vec2 center = vec2(1.0, direction);\n vec2 p = uv.xy / vec2(1.0).xy;\n if (progress == 0.0) {\n return getFromColor(p);\n } else if (progress == 1.0) {\n return getToColor(p);\n } else {\n float x = progress;\n float dist = distance(center, p)- progress*exp(snoise(vec2(p.x, 0.0)));\n float r = x - rand(vec2(p.x, 0.1));\n float m;\n if(above){\n m = dist <= r && luminance(getFromColor(p))>l_threshold ? 1.0 : (progress*progress*progress);\n }\n else{\n m = dist <= r && luminance(getFromColor(p))<l_threshold ? 1.0 : (progress*progress*progress); \n }\n return mix(getFromColor(p), getToColor(p), m); \n }\n}\n","author":"0gust1","license":"MIT","description":"The outgoing image melts away in noisy vertical streaks, depending on its brightness","tags":["melt","noise","luma"],"params":{"direction":{"type":"bool","default":true,"description":"Direction of the melt (false: up, true: down)"},"l_threshold":{"type":"float","default":0.8,"min":0,"max":1,"description":"Luminance threshold"},"above":{"type":"bool","default":false,"description":"Melt the parts above the threshold instead of below"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"MoireWipe","paramsTypes":{"density":"float","bands":"float","drift":"float","lines":"float"},"defaultParams":{"density":36,"bands":3,"drift":0.25,"lines":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: Two sets of fine concentric rings, centered on two points that drift toward each other, overlay the image and interfere into a shifting moire of wide bands; the bands open onto the incoming image and widen until it fills the frame, while the thin dark and light ring lines fade away\n// Tags: moire, rings, interference, pattern, graphic, reveal\n\n// @range(10, 80) Number of rings per frame height in each set\nuniform float density; // = 36.0\n// @range(1, 8) How many moire bands the rings make at the start; they get fewer and wider as the centers come together\nuniform float bands; // = 3.0\n// @range(-1, 1) How far the two centers turn around each other, in turns\nuniform float drift; // = 0.25\n// @range(0, 1) Strength of the ring lines drawn over the image\nuniform float lines; // = 0.5\n\nconst float PI = 3.141592653589793;\n// half width of the antialiased edges, in frame heights\nconst float AA = 0.0012;\n// half width of a ring line, in ring spacings\nconst float LINE = 0.1;\n// widest antialiased edge of the bands, in bands, which also sets when they start and finish\n// opening\nconst float EDGE = 0.05;\n// angle of the line between the two centers at the start, in radians\nconst float START = 0.35;\n// strength of the ring lines at lines = 1, so the image always shows through them\nconst float INK = 0.7;\n\n// coverage of the ring lines at radius r, box-filtered over the antialiasing width, and\n// faded to their mean coverage when the rings get too fine to resolve\nfloat ringLines(float r, float f) {\n float q = abs(fract(r * f + 0.5) - 0.5);\n float aa = AA * f;\n float c = clamp((LINE - q) / (2.0 * aa) + 0.5, 0.0, 1.0);\n return mix(c, 2.0 * LINE, clamp(10.0 * aa - 0.5, 0.0, 1.0));\n}\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return b;\n\n float t = progress * progress * (3.0 - 2.0 * progress);\n float f = max(density, 1.0);\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n\n // the two centers turn around the middle of the frame and come together\n float ang = 2.0 * PI * drift * t + START;\n float k = max(bands, 1.0) * (1.0 - 0.75 * t);\n vec2 axis = vec2(cos(ang), sin(ang)) * 0.5 * k / f;\n float r1 = length(p - axis);\n float r2 = length(p + axis);\n // the second set is slightly finer than the first, which bends the bands into curves\n float f2 = f + 1.2 * k;\n\n // the beat of the two ring sets: wide bands where their rings line up, at this distance\n // from the middle of the nearest band, in bands\n float beat = abs(fract(f2 * r2 - f * r1 + 0.5) - 0.5);\n // the bands open from their middles and widen until they cover the frame\n // with an edge antialiased from the analytic gradient of the beat\n vec2 grad = f2 * (p + axis) / max(r2, AA) - f * (p - axis) / max(r1, AA);\n float s = min(AA * length(grad) + 0.004, EDGE);\n float w = mix(-EDGE, 0.5 + EDGE, t);\n float m = 1.0 - smoothstep(w - s, w + s, beat);\n\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n\n // the thin lines of both sets, dark over the outgoing image and light over the incoming\n // one, fade in and out\n float o = INK * clamp(lines, 0.0, 1.0) * sin(PI * t);\n float l = 1.0 - (1.0 - o * ringLines(r1, f)) * (1.0 - o * ringLines(r2, f2));\n c.rgb = mix(c.rgb, vec3(c.a * m), l);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Two sets of fine concentric rings, centered on two points that drift toward each other, overlay the image and interfere into a shifting moire of wide bands; the bands open onto the incoming image and widen until it fills the frame, while the thin dark and light ring lines fade away","tags":["moire","rings","interference","pattern","graphic","reveal"],"params":{"density":{"type":"float","default":36,"min":10,"max":80,"description":"Number of rings per frame height in each set"},"bands":{"type":"float","default":3,"min":1,"max":8,"description":"How many moire bands the rings make at the start; they get fewer and wider as the centers come together"},"drift":{"type":"float","default":0.25,"min":-1,"max":1,"description":"How far the two centers turn around each other, in turns"},"lines":{"type":"float","default":0.5,"min":0,"max":1,"description":"Strength of the ring lines drawn over the image"}},"textures":[],"createdAt":"Sun, 8 Nov 2026 17:40:10 +0100","updatedAt":"Sun, 8 Nov 2026 17:40:10 +0100"},{"name":"Morph","paramsTypes":{"strength":"float"},"defaultParams":{"strength":0.1},"glsl":"// Author: paniq\n// License: MIT\n// Description: A crossfade in which each image is displaced by the other's colors, like a morph\n// Tags: morph, distort, blend\n// @param Strength of the displacement\nuniform float strength; // = 0.1\n\nvec4 transition(vec2 p) {\n vec4 ca = getFromColor(p);\n vec4 cb = getToColor(p);\n \n vec2 oa = (((ca.rg+ca.b)*0.5)*2.0-1.0);\n vec2 ob = (((cb.rg+cb.b)*0.5)*2.0-1.0);\n vec2 oc = mix(oa,ob,0.5)*strength;\n \n float w0 = progress;\n float w1 = 1.0-w0;\n return mix(getFromColor(p+oc*w0), getToColor(p-oc*w1), progress);\n}\n","author":"paniq","license":"MIT","description":"A crossfade in which each image is displaced by the other's colors, like a morph","tags":["morph","distort","blend"],"params":{"strength":{"type":"float","default":0.1,"description":"Strength of the displacement"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Mosaic","paramsTypes":{"endx":"int","endy":"int"},"defaultParams":{"endx":2,"endy":-1},"glsl":"// License: MIT\n// Author: Xaychru\n// Description: The view pans across a mosaic of rotated tiles from both images and settles on the incoming one\n// Tags: mosaic, tiles, zoom\n// ported by gre from https://gist.github.com/Xaychru/130bb7b7affedbda9df5\n\n#define PI 3.14159265358979323\n#define POW2(X) X*X\n#define POW3(X) X*X*X\nuniform int endx; // = 2\nuniform int endy; // = -1\n\nfloat Rand(vec2 v) {\n return fract(sin(dot(v.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\nvec2 Rotate(vec2 v, float a) {\n mat2 rm = mat2(cos(a), -sin(a),\n sin(a), cos(a));\n return rm*v;\n}\nfloat CosInterpolation(float x) {\n return -cos(x*PI)/2.+.5;\n}\nvec4 transition(vec2 uv) {\n vec2 p = uv.xy / vec2(1.0).xy - .5;\n vec2 rp = p;\n float rpr = (progress*2.-1.);\n float z = -(rpr*rpr*2.) + 3.;\n float az = abs(z);\n rp *= az;\n rp += mix(vec2(.5, .5), vec2(float(endx) + .5, float(endy) + .5), POW2(CosInterpolation(progress)));\n vec2 mrp = mod(rp, 1.);\n vec2 crp = rp;\n bool onEnd = int(floor(crp.x))==endx&&int(floor(crp.y))==endy;\n if(!onEnd) {\n float ang = float(int(Rand(floor(crp))*4.))*.5*PI;\n mrp = vec2(.5) + Rotate(mrp-vec2(.5), ang);\n }\n if(onEnd || Rand(floor(crp))>.5) {\n return getToColor(mrp);\n } else {\n return getFromColor(mrp);\n }\n}\n","author":"Xaychru","license":"MIT","description":"The view pans across a mosaic of rotated tiles from both images and settles on the incoming one","tags":["mosaic","tiles","zoom"],"params":{"endx":{"type":"int","default":2},"endy":{"type":"int","default":-1}},"textures":[],"createdAt":"Mon, 12 Jun 2017 10:26:51 +0800","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"MultiplyBlend","paramsTypes":{},"defaultParams":{},"glsl":"// Author: Fernando Kuteken\n// License: MIT\n// Description: A crossfade through the multiplied blend of both images\n// Tags: blend, fade\n\nvec4 blend(vec4 a, vec4 b) {\n return a * b;\n}\n\nvec4 transition (vec2 uv) {\n \n vec4 blended = blend(getFromColor(uv), getToColor(uv));\n \n if (progress < 0.5)\n return mix(getFromColor(uv), blended, 2.0 * progress);\n else\n return mix(blended, getToColor(uv), 2.0 * progress - 1.0);\n}\n\n","author":"Fernando Kuteken","license":"MIT","description":"A crossfade through the multiplied blend of both images","tags":["blend","fade"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"NoiseDissolve","paramsTypes":{},"defaultParams":{},"glsl":"// Author: towrabbit\n// License: MIT\n// Description: The incoming image appears pixel by pixel in random noise\n// Tags: dissolve, noise\n\nfloat random (vec2 st) {\n return fract(sin(dot(st.xy,vec2(12.9898,78.233)))*43758.5453123);\n}\nvec4 transition (vec2 uv) {\n vec4 leftSide = getFromColor(uv);\n vec4 rightSide = getToColor(uv);\n float uvz = floor(random(uv)+progress);\n return mix(leftSide,rightSide,uvz);\n}\n","author":"towrabbit","license":"MIT","description":"The incoming image appears pixel by pixel in random noise","tags":["dissolve","noise"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Overexposure","paramsTypes":{"strength":"float"},"defaultParams":{"strength":0.6},"glsl":"// Author: Ben Zhang\n// License: MIT\n// Description: A crossfade through a washed-out, overexposed white\n// Tags: flash, light, fade\n\n// @param Amount of overexposure\nuniform float strength; // = 0.6\nconst float PI = 3.141592653589793;\n\nvec4 transition (vec2 uv) {\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n\n // Multipliers\n float from_m = 1.0 - progress + sin(PI * progress) * strength;\n float to_m = progress + sin(PI * progress) * strength;\n \n return vec4(\n from.r * from.a * from_m + to.r * to.a * to_m,\n from.g * from.a * from_m + to.g * to.a * to_m,\n from.b * from.a * from_m + to.b * to.a * to_m,\n mix(from.a, to.a, progress)\n );\n}\n","author":"Ben Zhang","license":"MIT","description":"A crossfade through a washed-out, overexposed white","tags":["flash","light","fade"],"params":{"strength":{"type":"float","default":0.6,"description":"Amount of overexposure"}},"textures":[],"createdAt":"Tue, 15 Mar 2022 20:21:15 +0800","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"PaperFold","paramsTypes":{"direction":"vec2","tilt":"float","shading":"float","paper":"vec4"},"defaultParams":{"direction":[1,0.5],"tilt":0.6,"shading":0.6,"paper":[0.95,0.94,0.9,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image is a sheet of paper that folds in half in 3D along a vertical crease, then in half again along a horizontal one, its lit and shaded faces turning to show the back of the paper, and the small folded packet flies off the frame, leaving its shadow on the incoming image underneath\n// Tags: paper, fold, 3d, shadow\n\n// @param Direction the folded packet flies off toward\nuniform vec2 direction; // = vec2(1.0, 0.5)\n// @range(0, 1) How much the sheet tilts and recedes while it folds, so that the folds are seen in 3D\nuniform float tilt; // = 0.6\n// @range(0, 1) How much the faces darken as they turn away from the light, and the shadows they cast\nuniform float shading; // = 0.6\n// @color Color of the back of the paper, through which the print faintly shows\nuniform vec4 paper; // = vec4(0.95, 0.94, 0.9, 1.0)\n\nconst float PI = 3.141592653589793;\n// width of the anti-aliased edges, as a part of the frame's height\nconst float EDGE = 0.0015;\n// how much the print shows through the back of the paper\nconst float SHOW = 0.1;\n// width of the shaded crease, in frame heights\nconst float CREASE = 0.02;\n// direction of the light, from the top left and the front\nconst vec3 LIGHT = vec3(-0.3995, 0.4494, 0.799);\n\nvec4 front(vec2 st) {\n return getFromColor(st / vec2(ratio, 1.0));\n}\n\nvec4 back(vec2 st) {\n vec4 c = front(st);\n return vec4(mix(paper.rgb, c.rgb, SHOW), c.a * paper.a);\n}\n\n// the face of the packet's top layer: the image itself during the first fold, then the back\n// of the right half, laid mirrored over the left half\nvec4 topFace(vec2 st, bool second) {\n return second ? back(vec2(ratio - st.x, st.y)) : front(st);\n}\n\n// distance inside the rectangle [0, h] x [0, k] (negative outside)\nfloat inside(vec2 p, float h, float k) {\n return min(min(p.x, h - p.x), min(p.y, k - p.y));\n}\n\n// The sheet in its own frame: a flat part [0, h] x [0, k] lying at z = 0 and a flap of the same\n// size hinged on its edge x = h, turned toward the viewer so that it lies along `along`, with the\n// normal n. During the second fold, x and y are swapped so that the crease is always along y.\n// Where the ray o + t * v meets the flap's plane: (t, distance from the hinge, y), t < 0 if never.\nvec3 hitFlap(vec3 o, vec3 v, float h, vec3 n, vec3 along) {\n float den = dot(n, v);\n if (abs(den) < 1e-5) return vec3(-1.0, 0.0, 0.0);\n vec3 hinge = vec3(h, 0.0, 0.0);\n float t = dot(n, hinge - o) / den;\n vec3 q = o + t * v;\n return vec3(t, dot(q - hinge, along), q.y);\n}\n\n// how much the point q is shaded, lit by l: by the flap, and by the flat part once it lifts\n// above the incoming image\nfloat shadowAt(vec3 q, vec3 l, float h, float k, vec3 n, vec3 along) {\n float sh = 0.0;\n if (q.z < -1e-4) {\n float soft = 0.004 - 0.4 * q.z;\n sh = smoothstep(-soft, soft, inside(q.xy - q.z / l.z * l.xy, h, k));\n }\n vec3 hit = hitFlap(q, l, h, n, along);\n if (hit.x > 0.0) {\n float height = hit.x * l.z;\n float soft = 0.004 + 0.3 * height;\n // the flap's shadow appears as it lifts and vanishes as it lands\n sh = max(sh, min(4.0 * n.x * n.x, 1.0) * smoothstep(-soft, soft, inside(hit.yz, h, k)) / (1.0 + 3.0 * height));\n }\n return sh;\n}\n\n// a vector of the frame into the frame of the sheet, turned by yaw (around y), pitch (around x)\n// and spin (around z), each given as (cos, sin)\nvec3 toSheet(vec3 v, vec2 yaw, vec2 pitch, vec2 spin) {\n v = vec3(yaw.x * v.x + yaw.y * v.z, v.y, yaw.x * v.z - yaw.y * v.x);\n v = vec3(v.x, pitch.x * v.y + pitch.y * v.z, pitch.x * v.z - pitch.y * v.y);\n return vec3(spin.x * v.x + spin.y * v.y, spin.x * v.y - spin.y * v.x, v.z);\n}\n\nvec4 transition(vec2 uv) {\n float w = ratio;\n float shade = clamp(shading, 0.0, 1.0);\n // the two folds, one right after the other, then the flight of the packet\n float s = 2.0 * smoothstep(0.0, 0.62, progress);\n bool second = s > 1.0;\n float x = second ? s - 1.0 : s;\n float a = PI * mix(x, x * x * (3.0 - 2.0 * x), 0.6);\n float f = clamp((progress - 0.5) / 0.47, 0.0, 1.0);\n\n // the sheet tilts and recedes while it folds, so that the folds are seen in 3D, and lies flat\n // again as the packet flies off\n float turn = clamp(tilt, 0.0, 1.0) * (smoothstep(0.0, 0.25, progress) - smoothstep(0.4, 0.8, progress));\n vec2 yaw = vec2(cos(0.45 * turn), sin(0.45 * turn));\n vec2 pitch = vec2(cos(0.55 * turn), -sin(0.55 * turn));\n float dist = 2.5 * max(w, 1.0);\n float recede = dist * 0.35 * turn;\n\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n // the point of the sheet held in the middle of the frame slides to the middle of the packet\n vec2 c = vec2(0.5 * w - 0.25 * w * min(s, 1.0), 0.5 - 0.25 * max(s - 1.0, 0.0));\n // far enough for the packet and its shadow to leave the frame\n float reach = 0.5 * (abs(dir.x) * w + abs(dir.y)) + length(vec2(0.25 * w, 0.25)) + 0.4;\n float lift = 0.3 * smoothstep(0.0, 0.5, f);\n float turned = (dir.x < 0.0 ? 0.7 : -0.7) * f * f;\n vec2 spin = vec2(cos(turned), sin(turned));\n\n // the eye, the ray toward the point of the frame and the light, in the frame of the sheet,\n // where the sheet lies on the plane z = 0 and the incoming image on z = -lift\n vec3 center = vec3(vec2(0.5 * w, 0.5) + dir * reach * f * f, -recede);\n vec3 eye = vec3(0.5 * w, 0.5, dist);\n vec3 e = toSheet(eye - center, yaw, pitch, spin) + vec3(c, 0.0);\n vec3 d = toSheet(vec3(uv.x * w, uv.y, 0.0) - eye, yaw, pitch, spin);\n vec3 l = toSheet(LIGHT, yaw, pitch, spin);\n if (second) {\n e.xy = e.yx;\n d.xy = d.yx;\n l.xy = l.yx;\n }\n float h = second ? 0.5 : 0.5 * w;\n float k = second ? 0.5 * w : 1.0;\n float creased = sin(a);\n vec3 n = vec3(-creased, 0.0, cos(a));\n vec3 along = vec3(cos(a), 0.0, creased);\n\n vec4 col = getToColor(uv);\n if (d.z < 0.0) {\n vec3 g = e + d * (e.z + lift) / -d.z;\n // the shadow fades as the packet flies higher\n col.rgb *= 1.0 - 0.7 * shade * (1.0 - f * f) * shadowAt(g, l, h, k, n, along);\n }\n\n // the flat part\n float t = d.z < 0.0 ? e.z / -d.z : -1.0;\n vec3 p = e + t * d;\n float m = clamp(inside(p.xy, h, k) / (EDGE * t) + 1.0, 0.0, 1.0);\n if (t > 0.0 && m > 0.0) {\n vec4 img = topFace(second ? p.yx : p.xy, second);\n float sh = shadowAt(p, l, h, k, n, along);\n img.rgb *= (1.0 - 0.7 * shade * sh) * (1.0 - 0.5 * shade * creased * exp(-abs(h - p.x) / CREASE));\n col = mix(col, img, m);\n }\n\n // the flap\n vec3 hit = hitFlap(e, d, h, n, along);\n if (hit.x > 0.0) {\n float r = hit.y;\n // edges seen at a grazing angle are narrower on screen\n float dr = dot(along, normalize(d));\n float fore = sqrt(max(1.0 - dr * dr, 0.0025));\n float mf = clamp(min(min(r, h - r) * fore, min(hit.z, k - hit.z)) / (EDGE * hit.x) + 1.0, 0.0, 1.0);\n if (mf > 0.0) {\n bool up = dot(n, e - vec3(h, 0.0, 0.0)) > 0.0;\n vec2 st = vec2(h + r, hit.z);\n if (second) st = st.yx;\n vec4 img = up ? topFace(st, second) : back(st);\n // lit by the light, relative to the sheet lying flat\n float lit = dot(up ? n : -n, l) - l.z;\n img.rgb *= max(1.0 + 0.6 * shade * lit, 0.0) * (1.0 - 0.5 * shade * creased * exp(-abs(r) / CREASE));\n col = mix(col, img, mf);\n }\n }\n return col;\n}\n","author":"gre","license":"MIT","description":"The outgoing image is a sheet of paper that folds in half in 3D along a vertical crease, then in half again along a horizontal one, its lit and shaded faces turning to show the back of the paper, and the small folded packet flies off the frame, leaving its shadow on the incoming image underneath","tags":["paper","fold","3d","shadow"],"params":{"direction":{"type":"vec2","default":[1,0.5],"description":"Direction the folded packet flies off toward"},"tilt":{"type":"float","default":0.6,"min":0,"max":1,"description":"How much the sheet tilts and recedes while it folds, so that the folds are seen in 3D"},"shading":{"type":"float","default":0.6,"min":0,"max":1,"description":"How much the faces darken as they turn away from the light, and the shadows they cast"},"paper":{"type":"vec4","default":[0.95,0.94,0.9,1],"color":true,"description":"Color of the back of the paper, through which the print faintly shows"}},"textures":[],"createdAt":"Sun, 8 Nov 2026 17:40:00 +0100","updatedAt":"Sun, 8 Nov 2026 17:40:00 +0100"},{"name":"PaperTear","paramsTypes":{"roughness":"float","tilt":"float","rim":"float","paper":"vec4","shadow":"vec4"},"defaultParams":{"roughness":0.12,"tilt":0.1,"rim":0.012,"paper":[1,0.98,0.94,1],"shadow":[0,0,0,0.35]},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image tears in two along a ragged line, and the halves are pulled apart to reveal the incoming one\n// Tags: split, horizontal, shadow\n\n// @range(0, 0.3) How far the tear wanders from the middle, relative to the image height\nuniform float roughness; // = 0.12\n// @range(0, 0.5) How much the top of each half leans away first, so that the tear opens from the top\nuniform float tilt; // = 0.1\n// @range(0, 0.05) Width of the white torn edge, relative to the image height\nuniform float rim; // = 0.012\n// @color Color of the paper fibers on the torn edges\nuniform vec4 paper; // = vec4(1.0, 0.98, 0.94, 1.0)\n// @color Color of the shadow cast on the incoming image\nuniform vec4 shadow; // = vec4(0.0, 0.0, 0.0, 0.35)\n\nfloat tri (float x) {\n return abs(fract(x) - 0.5) - 0.25;\n}\n\n// horizontal position of the tear at height y: smooth meanders...\nfloat meander (float y) {\n return 0.5 * ratio + roughness * (0.5 * sin(y * 4.7 + 1.3) + 0.25 * sin(y * 11.3 + 4.1));\n}\n\n// ...and sharp jags\nfloat tear (float y) {\n return meander(y) + roughness * (0.1 * sin(y * 29.0 + 0.7) + 0.35 * tri(y * 19.0 + sin(y * 7.0)) + 0.12 * tri(y * 47.0 + 0.6 * sin(y * 13.0)));\n}\n\n// width of the torn edge along it, so that the fibers look uneven\nfloat fibers (float y, float seed) {\n return rim * (0.7 + 0.3 * sin(y * 37.0 + seed) + 0.4 * tri(y * 83.0 + seed));\n}\n\n// the left half (or the mirrored right half) slides out, its top leaning away first:\n// from a point on screen to the point of the paper (the frame edges stay covered)\nvec2 unfold (vec2 q, float away, float lean) {\n return vec2(q.x + away + lean * q.y, q.y);\n}\n\n// a torn half over the background, with its fibers and an anti-aliased edge\n// e: distance past the torn edge, limit: how far the fibers reach, aa: edge softness\nvec4 torn (vec4 bg, vec4 col, float e, float limit, float aa) {\n vec4 c = vec4(mix(col.rgb, paper.rgb, clamp(0.5 + e / aa, 0.0, 1.0) * paper.a), col.a);\n return mix(bg, c, clamp(0.5 - (e - limit) / aa, 0.0, 1.0));\n}\n\nvec4 transition (vec2 uv) {\n float p = progress;\n float away = p * p * (0.5 * ratio + 0.1 + roughness + 2.0 * rim); // far enough to leave the frame\n float lean = tilt * p * (2.0 - p);\n float fiber = smoothstep(0.0, 0.15, p); // no torn edge on the intact image\n float aa = 0.002 * fiber + 1e-6;\n vec2 q = vec2(uv.x * ratio, uv.y);\n vec2 l = unfold(q, away, lean);\n vec2 r = unfold(vec2(ratio - q.x, q.y), away, lean);\n float el = l.x - tear(l.y); // > 0 right of the left half's torn edge\n float er = r.x - (ratio - tear(r.y)); // > 0 left of the right half's torn edge\n // soft shadow of the two halves on the incoming image, cast toward the right\n vec2 sq = q - vec2(0.01, 0.0);\n float dl = unfold(sq, away, lean).x - meander(sq.y);\n float dr = unfold(vec2(ratio - sq.x, sq.y), away, lean).x - (ratio - meander(sq.y));\n vec4 to = getToColor(uv);\n float sh = shadow.a * (1.0 - smoothstep(-0.02, 0.08, min(dl, dr)));\n vec4 c = vec4(mix(to.rgb, shadow.rgb, sh), to.a);\n // the image stops at the tear; the bare paper fibers stick out a little beyond it\n if (r.x >= 0.0) {\n c = torn(c, getFromColor(vec2(1.0 - r.x / ratio, r.y)), er, fibers(r.y, 2.0) * 1.5 * fiber, aa);\n }\n if (l.x >= 0.0) {\n c = torn(c, getFromColor(vec2(l.x / ratio, l.y)), el, fibers(l.y, 0.0) * fiber, aa);\n }\n return c;\n}\n","author":"gre","license":"MIT","description":"The outgoing image tears in two along a ragged line, and the halves are pulled apart to reveal the incoming one","tags":["split","horizontal","shadow"],"params":{"roughness":{"type":"float","default":0.12,"min":0,"max":0.3,"description":"How far the tear wanders from the middle, relative to the image height"},"tilt":{"type":"float","default":0.1,"min":0,"max":0.5,"description":"How much the top of each half leans away first, so that the tear opens from the top"},"rim":{"type":"float","default":0.012,"min":0,"max":0.05,"description":"Width of the white torn edge, relative to the image height"},"paper":{"type":"vec4","default":[1,0.98,0.94,1],"color":true,"description":"Color of the paper fibers on the torn edges"},"shadow":{"type":"vec4","default":[0,0,0,0.35],"color":true,"description":"Color of the shadow cast on the incoming image"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:18:48 +0100","updatedAt":"Sat, 31 Oct 2026 18:18:48 +0100"},{"name":"PerlinDissolve","paramsTypes":{"scale":"float","smoothness":"float","seed":"float"},"defaultParams":{"scale":4,"smoothness":0.01,"seed":12.9898},"glsl":"// Author: Rich Harris\n// License: MIT\n// Description: The incoming image appears through blobs of Perlin noise\n// Tags: noise, dissolve\n\n// @param Scale of the noise; higher values make smaller blobs\nuniform float scale; // = 4.0\n// @param Softness of the blob edges\nuniform float smoothness; // = 0.01\n\n// @param Random seed\nuniform float seed; // = 12.9898\n\n// http://byteblacksmith.com/improvements-to-the-canonical-one-liner-glsl-rand-for-opengl-es-2-0/\nfloat random(vec2 co)\n{\n float a = seed;\n float b = 78.233;\n float c = 43758.5453;\n float dt= dot(co.xy ,vec2(a,b));\n float sn= mod(dt,3.14);\n return fract(sin(sn) * c);\n}\n\n// 2D Noise based on Morgan McGuire @morgan3d\n// https://www.shadertoy.com/view/4dS3Wd\nfloat noise (in vec2 st) {\n vec2 i = floor(st);\n vec2 f = fract(st);\n\n // Four corners in 2D of a tile\n float a = random(i);\n float b = random(i + vec2(1.0, 0.0));\n float c = random(i + vec2(0.0, 1.0));\n float d = random(i + vec2(1.0, 1.0));\n\n // Smooth Interpolation\n\n // Cubic Hermine Curve. Same as SmoothStep()\n vec2 u = f*f*(3.0-2.0*f);\n // u = smoothstep(0.,1.,f);\n\n // Mix 4 coorners porcentages\n return mix(a, b, u.x) +\n (c - a)* u.y * (1.0 - u.x) +\n (d - b) * u.x * u.y;\n}\n\nvec4 transition (vec2 uv) {\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n float n = noise(uv * scale);\n\n float p = mix(-smoothness, 1.0 + smoothness, progress);\n float lower = p - smoothness;\n float higher = p + smoothness;\n\n float q = smoothstep(lower, higher, n);\n\n return mix(\n from,\n to,\n 1.0 - q\n );\n}\n","author":"Rich Harris","license":"MIT","description":"The incoming image appears through blobs of Perlin noise","tags":["noise","dissolve"],"params":{"scale":{"type":"float","default":4,"description":"Scale of the noise; higher values make smaller blobs"},"smoothness":{"type":"float","default":0.01,"description":"Softness of the blob edges"},"seed":{"type":"float","default":12.9898,"description":"Random seed"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"PhotoDevelop","paramsTypes":{"card":"vec4","wash":"float","tint":"float"},"defaultParams":{"card":[0.93,0.91,0.85,1],"wash":0.35,"tint":0.8},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image washes out to a blank cream card, then the incoming image develops on it like an instant photo: shadows first, faint and tinted, then its contrast and colors come up and it settles\n// Tags: fade, color, photo, retro\n\n// @color Color of the blank card between the two images\nuniform vec4 card; // = vec4(0.93, 0.91, 0.85, 1.0)\n// @range(0, 1) How long the outgoing image takes to wash out (from 10% to 70% of the transition)\nuniform float wash; // = 0.35\n// @range(0, 1) Strength of the cyan and magenta cast while the image develops\nuniform float tint; // = 0.8\n\nvec3 saturation(vec3 c, float s) {\n float lum = dot(c, vec3(0.2126, 0.7152, 0.0722));\n return mix(vec3(lum), c, s);\n}\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n float p = progress;\n if (p <= 0.0) return a;\n if (p >= 1.0) return b;\n\n // the card only shows where the images are: it takes the alpha of the outgoing image, then the incoming one's\n float split = mix(0.1, 0.7, clamp(wash, 0.0, 1.0));\n float cardAlpha = card.a * mix(a.a, b.a, smoothstep(0.6 * split, split + 0.1, p));\n vec3 cardColor = card.rgb * cardAlpha;\n\n // the outgoing image fades and loses its contrast into the card, its lights first\n float w = smoothstep(0.0, split, p);\n float fromLum = dot(a.rgb, vec3(0.2126, 0.7152, 0.0722));\n float wl = clamp(w * (1.0 + 0.5 * fromLum), 0.0, 1.0);\n vec3 washed = mix(a.rgb, mix(vec3(fromLum), a.rgb, 0.4), w) * a.a;\n vec3 outgoing = mix(washed, cardColor, wl);\n float outAlpha = mix(a.a, cardAlpha, wl);\n\n // development of the incoming image: quick at first, then slowly settling\n float x = clamp((p - split) / max(1.0 - split, 1e-3), 0.0, 1.0);\n float d = 1.0 - pow(1.0 - x, 1.5);\n float lum = dot(b.rgb, vec3(0.2126, 0.7152, 0.0722));\n // the shadows develop first, the highlights last\n float dev = clamp((d - 0.45 * lum) / 0.55, 0.0, 1.0);\n dev = dev * dev * (3.0 - 2.0 * dev);\n // low contrast and nearly no colors at first, with a cast: cyan in the shadows, magenta in the lights\n float early = 1.0 - smoothstep(0.2, 0.95, d);\n vec3 tinted = saturation(b.rgb, smoothstep(0.3, 1.0, d));\n tinted = mix(vec3(0.6), tinted, mix(0.55, 1.0, d));\n vec3 tone = mix(vec3(-0.2, 0.06, 0.1), vec3(0.12, -0.1, 0.06), smoothstep(0.15, 0.6, lum));\n tinted += tone * tint * early;\n vec3 incoming = mix(cardColor, clamp(tinted, 0.0, 1.0) * b.a, dev);\n float inAlpha = mix(cardAlpha, b.a, dev);\n\n vec3 color = p < split ? outgoing : incoming;\n float alpha = p < split ? outAlpha : inAlpha;\n if (alpha <= 0.0) return vec4(0.0);\n return vec4(clamp(color / alpha, 0.0, 1.0), alpha);\n}\n","author":"gre","license":"MIT","description":"The outgoing image washes out to a blank cream card, then the incoming image develops on it like an instant photo: shadows first, faint and tinted, then its contrast and colors come up and it settles","tags":["fade","color","photo","retro"],"params":{"card":{"type":"vec4","default":[0.93,0.91,0.85,1],"color":true,"description":"Color of the blank card between the two images"},"wash":{"type":"float","default":0.35,"min":0,"max":1,"description":"How long the outgoing image takes to wash out (from 10% to 70% of the transition)"},"tint":{"type":"float","default":0.8,"min":0,"max":1,"description":"Strength of the cyan and magenta cast while the image develops"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 20:33:18 +0100","updatedAt":"Sun, 1 Nov 2026 20:33:18 +0100"},{"name":"Pinwheel","paramsTypes":{"speed":"float"},"defaultParams":{"speed":2},"glsl":"// Author: Mr Speaker\n// License: MIT\n// Description: A spinning pinwheel reveals the incoming image\n// Tags: pinwheel, radial, rotate\n\n// @param Rotation speed\nuniform float speed; // = 2.0\n\nvec4 transition(vec2 uv) {\n \n vec2 p = uv.xy / vec2(1.0).xy;\n \n float circPos = atan(p.y - 0.5, p.x - 0.5) + progress * speed;\n float modPos = mod(circPos, 3.1415 / 4.);\n float signed = sign(progress - modPos);\n \n return mix(getToColor(p), getFromColor(p), step(signed, 0.5));\n \n}\n","author":"Mr Speaker","license":"MIT","description":"A spinning pinwheel reveals the incoming image","tags":["pinwheel","radial","rotate"],"params":{"speed":{"type":"float","default":2,"description":"Rotation speed"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"PixelStretch","paramsTypes":{"direction":"vec2","stretch":"float","chroma":"float","softness":"float","jitter":"float"},"defaultParams":{"direction":[1,0],"stretch":0.45,"chroma":0.5,"softness":0.03,"jitter":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: A line sweeps across the frame and drags the outgoing image's pixels behind it as long streaks, which shorten as it goes and reveal the incoming image\n// Tags: smear, streaks, directional, chromatic\n\n// @param Direction in which the line sweeps\nuniform vec2 direction; // = vec2(1.0, 0.0)\n// @range(0, 1) Length of the streaks at the middle of the sweep, as a part of the frame\nuniform float stretch; // = 0.45\n// @range(0, 1) Amount of RGB split along the streaks\nuniform float chroma; // = 0.5\n// @range(0, 0.2) Softness of the line and of the streaks' ends, as a part of the frame\nuniform float softness; // = 0.03\n// @range(0, 1) How much the streaks jitter, each row at its own length\nuniform float jitter; // = 0.5\n\nfloat hash(float n) {\n n = fract(n * 0.1031);\n n *= n + 33.33;\n n *= n + n;\n return fract(n);\n}\n\n// smooth max with a compact support: exactly max(x, y) when they are k apart\nfloat smax(float x, float y, float k) {\n float h = max(k - abs(x - y), 0.0) / k;\n return max(x, y) + h * h * k * 0.25;\n}\n\n// position s along the sweep (0 to 1 across the frame) to a frame coordinate\nvec2 at(vec2 uv, float s0, float s, vec2 d, float ext) {\n return clamp(uv + d * (s - s0) * ext, 0.0, 1.0);\n}\n\nvec4 transition(vec2 uv) {\n vec2 d = normalize(direction + vec2(1e-6, 0.0));\n // ext: length of the frame along the sweep, in uv units\n float ext = abs(d.x) + abs(d.y);\n float s = 0.5 + dot(uv - 0.5, d) / ext;\n // rows across the streaks (about one per pixel line), in frame heights\n vec2 n = vec2(-d.y, d.x);\n float t = dot((uv - 0.5) * vec2(ratio, 1.0), n);\n float row = floor(t * 540.0);\n float clump = floor(t * 60.0);\n float rnd = 0.6 * hash(row + 17.0) + 0.4 * hash(clump + 311.0);\n\n float p = progress;\n float k = softness + 1e-4;\n // the line starts and ends at rest just beyond the frame, past its soft edge, so both ends are exact;\n // it enters at once and slows down a little toward the end\n float margin = k + 0.002;\n float a = mix(-margin, 1.0 + margin, mix(p, p * p * (3.0 - 2.0 * p), 0.5));\n\n // the streaks are longest when the line crosses the middle and vanish as it reaches the edges,\n // so they never repeat the frame's own border (often dark, or letterboxing)\n float h = clamp(4.0 * a * (1.0 - a), 0.0, 1.0);\n float len = stretch * h * (1.0 - 0.6 * jitter * rnd);\n float split = 0.02 * chroma * h;\n\n // ahead of the line the outgoing image is intact; behind it, each pixel repeats the pixel at the line\n vec4 fr = getFromColor(at(uv, s, smax(s, a + split, k), d, ext));\n vec4 fg = getFromColor(at(uv, s, smax(s, a, k), d, ext));\n vec4 fb = getFromColor(at(uv, s, smax(s, a - split, k), d, ext));\n vec4 streak = vec4(fr.r, fg.g, fb.b, fg.a);\n // a faint flicker along the streaks\n float behind = step(s, a);\n streak.rgb *= 1.0 + 0.06 * jitter * h * (hash(row * 3.0 + 5.0) - 0.5) * behind;\n\n // past the end of its streak, each row shows the incoming image as it is\n float w = smoothstep(len - k, len + k, a - s);\n return mix(streak, getToColor(uv), w);\n}\n","author":"gre","license":"MIT","description":"A line sweeps across the frame and drags the outgoing image's pixels behind it as long streaks, which shorten as it goes and reveal the incoming image","tags":["smear","streaks","directional","chromatic"],"params":{"direction":{"type":"vec2","default":[1,0],"description":"Direction in which the line sweeps"},"stretch":{"type":"float","default":0.45,"min":0,"max":1,"description":"Length of the streaks at the middle of the sweep, as a part of the frame"},"chroma":{"type":"float","default":0.5,"min":0,"max":1,"description":"Amount of RGB split along the streaks"},"softness":{"type":"float","default":0.03,"min":0,"max":0.2,"description":"Softness of the line and of the streaks' ends, as a part of the frame"},"jitter":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the streaks jitter, each row at its own length"}},"textures":[],"createdAt":"Sun, 1 Nov 2026 09:38:52 +0100","updatedAt":"Sun, 1 Nov 2026 09:38:52 +0100"},{"name":"Pixelize","paramsTypes":{"squaresMin":"ivec2","steps":"int"},"defaultParams":{"squaresMin":[20,20],"steps":50},"glsl":"// Author: gre\n// License: MIT\n// Description: Both images pixelate, crossfade, then sharpen again\n// Tags: pixelate, blend\n// forked from https://gist.github.com/benraziel/c528607361d90a072e98\n\n// minimum number of squares (when the effect is at its higher level)\n// @param Number of squares at the strongest pixelation\nuniform ivec2 squaresMin; // = ivec2(20)\n// zero disable the stepping\n// @param Number of pixelation steps; 0 for a continuous effect\nuniform int steps; // = 50\n\nvec4 transition(vec2 uv) {\n float d = min(progress, 1.0 - progress);\n float dist = steps>0 ? ceil(d * float(steps)) / float(steps) : d;\n vec2 squareSize = 2.0 * dist / vec2(squaresMin);\n vec2 p = dist>0.0 ? (floor(uv / squareSize) + 0.5) * squareSize : uv;\n return mix(getFromColor(p), getToColor(p), progress);\n}\n","author":"gre","license":"MIT","description":"Both images pixelate, crossfade, then sharpen again","tags":["pixelate","blend"],"params":{"squaresMin":{"type":"ivec2","default":[20,20],"description":"Number of squares at the strongest pixelation"},"steps":{"type":"int","default":50,"description":"Number of pixelation steps; 0 for a continuous effect"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"PlasmaDissolve","paramsTypes":{"scale":"float","smoothness":"float","flow":"float","edgeColor":"vec3","edgeStrength":"float"},"defaultParams":{"scale":3,"smoothness":0.1,"flow":1,"edgeColor":[1,0.45,0.9],"edgeStrength":0.6},"glsl":"// Author: gre\n// License: MIT\n// Description: A flowing plasma of sine waves, as in the old demos, draws moving bands through which the incoming image spreads like tendrils, with a glowing edge\n// Tags: wipe, plasma, organic, glow\n\n// @range(0.5, 10) Size of the plasma: higher values make more, thinner bands\nuniform float scale; // = 3.0\n// @range(0, 0.5) Softness of the band edges\nuniform float smoothness; // = 0.1\n// @range(0, 1) How much the plasma flows during the transition (at most 1, so a revealed area never goes back)\nuniform float flow; // = 1.0\n// @color Color of the glow along the edges\nuniform vec3 edgeColor; // = vec3(1.0, 0.45, 0.9)\n// @range(0, 2) Strength of the glow along the edges\nuniform float edgeStrength; // = 0.6\n\nconst float PI = 3.14159265;\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return b;\n\n // measured in square pixels, so the waves are not stretched\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0) * max(scale, 0.0) * 2.0 * PI;\n // the phase of the waves; the folded plasma below then changes by at most 0.9 * flow per\n // unit of progress, slower than the threshold, so the reveal never goes back\n float t = clamp(flow, 0.0, 1.0) * progress * 0.5;\n // the classic plasma: sines of x, y, a diagonal and the distance to an off-center point\n float v = sin(p.x * 0.6 + t)\n + sin(p.y * 0.8 - t * 0.8)\n + sin((p.x * 0.5 + p.y * 0.7) * 0.7 + t * 0.6)\n + sin(length(p - vec2(0.15, -0.1) * max(scale, 0.0) * 2.0 * PI) * 0.9 - t * 1.2);\n // folded into bands in [0, 1]\n v = abs(fract(v * 0.25 + 0.5) * 2.0 - 1.0);\n\n // the soft edge is fully below every band at the start and above every band at the end\n float s = max(smoothness, 0.001);\n float threshold = mix(-s, 1.0 + s, progress);\n // > 0 where the incoming image shows\n float m = 1.0 - smoothstep(threshold - s, threshold + s, v);\n\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 col = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n if (col.a <= 0.0) return vec4(0.0);\n // a light along the edge, adding nothing to the alpha\n float glow = 4.0 * m * (1.0 - m) * max(edgeStrength, 0.0);\n return vec4(col.rgb / col.a + edgeColor * glow, col.a);\n}\n","author":"gre","license":"MIT","description":"A flowing plasma of sine waves, as in the old demos, draws moving bands through which the incoming image spreads like tendrils, with a glowing edge","tags":["wipe","plasma","organic","glow"],"params":{"scale":{"type":"float","default":3,"min":0.5,"max":10,"description":"Size of the plasma: higher values make more, thinner bands"},"smoothness":{"type":"float","default":0.1,"min":0,"max":0.5,"description":"Softness of the band edges"},"flow":{"type":"float","default":1,"min":0,"max":1,"description":"How much the plasma flows during the transition (at most 1, so a revealed area never goes back)"},"edgeColor":{"type":"vec3","default":[1,0.45,0.9],"color":true,"description":"Color of the glow along the edges"},"edgeStrength":{"type":"float","default":0.6,"min":0,"max":2,"description":"Strength of the glow along the edges"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:14:11 +0100","updatedAt":"Wed, 4 Nov 2026 20:14:11 +0100"},{"name":"PlusWipe","paramsTypes":{"smoothness":"float","reverse":"bool"},"defaultParams":{"smoothness":0.01,"reverse":false},"glsl":"// Author: gre\n// License: MIT\n// Description: A plus-shaped cross grows from the center and widens its arms until the incoming image fills the frame\n// Tags: shape, wipe, cross, plus\n\n// @range(0, 0.1) Softness of the cross's edge\nuniform float smoothness; // = 0.01\n// @param Close four corner rectangles in toward the middle instead\nuniform bool reverse; // = false\n\nfloat boxDist (vec2 p, vec2 halfSize) {\n vec2 d = abs(p) - halfSize;\n return length(max(d, 0.0)) + min(max(d.x, d.y), 0.0);\n}\n\n// 1 inside the cross at time t, 0 outside\nfloat plus (vec2 q, float t, float s) {\n vec2 frame = vec2(0.5 * ratio, 0.5);\n float k = min(frame.x, frame.y);\n // The arms start equally thick, then widen with the frame's proportions,\n // so the four corners left uncovered vanish together\n vec2 halfWidth = k * t + (frame - k) * t * t;\n // The arms reach out at the same speed in every direction\n float halfLength = 3.0 * max(frame.x, frame.y) * t;\n float d = min(boxDist(q, vec2(halfLength, halfWidth.y)), boxDist(q, vec2(halfWidth.x, halfLength)));\n // The soft edge slides from outside to inside the cross, so nothing shows at\n // t = 0 and everything at t = 1, whatever the softness\n return 1.0 - smoothstep(0.0, s, d + s * (1.0 - t));\n}\n\nvec4 transition (vec2 uv) {\n // Measured in square pixels, so the cross is not stretched\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0);\n float s = max(smoothness, 0.001);\n float m = reverse ? 1.0 - plus(q, 1.0 - progress, s) : plus(q, progress, s);\n return mix(getFromColor(uv), getToColor(uv), m);\n}\n","author":"gre","license":"MIT","description":"A plus-shaped cross grows from the center and widens its arms until the incoming image fills the frame","tags":["shape","wipe","cross","plus"],"params":{"smoothness":{"type":"float","default":0.01,"min":0,"max":0.1,"description":"Softness of the cross's edge"},"reverse":{"type":"bool","default":false,"description":"Close four corner rectangles in toward the middle instead"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 08:39:06 +0100","updatedAt":"Mon, 2 Nov 2026 08:39:06 +0100"},{"name":"PolkaDotsCurtain","paramsTypes":{"dots":"float","center":"vec2"},"defaultParams":{"dots":20,"center":[0,0]},"glsl":"// Author: bobylito\n// License: MIT\n// Description: The incoming image appears through growing polka dots\n// Tags: dots, pattern\nconst float SQRT_2 = 1.414213562373;\n// @param Number of dots across the image\nuniform float dots; // = 20.0\nuniform vec2 center; // = vec2(0, 0)\n\nvec4 transition(vec2 uv) {\n bool nextImage = distance(fract(uv * dots), vec2(0.5, 0.5)) < ( progress / distance(uv, center));\n return nextImage ? getToColor(uv) : getFromColor(uv);\n}\n","author":"bobylito","license":"MIT","description":"The incoming image appears through growing polka dots","tags":["dots","pattern"],"params":{"dots":{"type":"float","default":20,"description":"Number of dots across the image"},"center":{"type":"vec2","default":[0,0]}},"textures":[],"createdAt":"Tue, 20 Feb 2018 23:41:45 +0100","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"PopIn","paramsTypes":{"center":"vec2","bounce":"float","corner":"float","shadow":"float"},"defaultParams":{"center":[0.5,0.5],"bounce":1,"corner":0.12,"shadow":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The incoming image pops in as a rounded card over the outgoing one, with an elastic overshoot: too big, a bit small, then it settles into the full frame as its corners square off\n// Tags: pop, scale, zoom, elastic, bounce, shadow\n\n// @param Point of the frame the incoming image pops from\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @range(0, 1.5) How far the card overshoots (too big, then a bit small) before it settles\nuniform float bounce; // = 1.0\n// @range(0, 0.5) Corner radius of the card while it pops, relative to its shorter side\nuniform float corner; // = 0.12\n// @range(0, 1) Darkness of the drop shadow the card casts on the outgoing image\nuniform float shadow; // = 0.5\n\nconst float PI = 3.141592653589793;\n\n// signed distance to a rounded box of half size b and corner radius r\nfloat roundedBox(vec2 p, vec2 b, float r) {\n vec2 q = abs(p) - b + r;\n return length(max(q, 0.0)) + min(max(q.x, q.y), 0.0) - r;\n}\n\nvec4 transition(vec2 uv) {\n float t = progress;\n // scale of the card: an ease-out, plus a damped spring that overshoots and lands exactly at t = 1\n float easeOut = 1.0 - (1.0 - t) * (1.0 - t) * (1.0 - t);\n float spring = 1.0 - exp(-1.5 * t) * cos(2.5 * PI * t) * (1.0 - t);\n float s = mix(easeOut, spring, bounce);\n\n // the card is the incoming frame scaled by s around the center, in aspect-corrected space\n vec2 asp = vec2(ratio, 1.0);\n float side = min(ratio, 1.0);\n vec2 cardCenter = center + (0.5 - center) * s;\n vec2 halfSize = 0.5 * s * asp;\n float r = corner * s * side * (1.0 - t);\n float aa = 0.002;\n // the edge is pushed out by one antialiasing width, so at t = 1 the card covers the whole frame\n float d = roundedBox((uv - cardCenter) * asp, halfSize, r) - aa;\n float cover = clamp(0.5 - d / aa, 0.0, 1.0) * smoothstep(0.0, 0.08, t);\n\n // drop shadow on the outgoing image, offset down and blurred, growing with the card\n float k = min(s, 1.0) * side;\n float blur = 0.05 * k + 1e-4;\n vec2 offset = vec2(0.0, -0.03 * k);\n float ds = roundedBox((uv - cardCenter - offset) * asp, halfSize, r);\n float shade = shadow * (1.0 - smoothstep(-blur, blur, ds)) * smoothstep(0.0, 0.15, t);\n\n vec4 a = getFromColor(uv);\n // the shadow darkens the outgoing image, it does not change its alpha (no shadow on transparent areas)\n a.rgb *= 1.0 - shade;\n // clamped: only the antialiased rim, one pixel or two outside the card, reads past the edge\n vec4 b = getToColor(clamp((uv - center) / max(s, 1e-4) + center, 0.0, 1.0));\n // blend premultiplied, then back to straight alpha\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), cover);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The incoming image pops in as a rounded card over the outgoing one, with an elastic overshoot: too big, a bit small, then it settles into the full frame as its corners square off","tags":["pop","scale","zoom","elastic","bounce","shadow"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Point of the frame the incoming image pops from"},"bounce":{"type":"float","default":1,"min":0,"max":1.5,"description":"How far the card overshoots (too big, then a bit small) before it settles"},"corner":{"type":"float","default":0.12,"min":0,"max":0.5,"description":"Corner radius of the card while it pops, relative to its shorter side"},"shadow":{"type":"float","default":0.5,"min":0,"max":1,"description":"Darkness of the drop shadow the card casts on the outgoing image"}},"textures":[],"createdAt":"Tue, 3 Nov 2026 21:54:13 +0100","updatedAt":"Tue, 3 Nov 2026 21:54:13 +0100"},{"name":"PowerKaleido","paramsTypes":{"scale":"float","z":"float","speed":"float"},"defaultParams":{"scale":2,"z":1.5,"speed":5},"glsl":"// Name: Power Kaleido\n// Author: Boundless\n// License: MIT\n// Description: The image folds into an animated kaleidoscope before revealing the incoming one\n// Tags: kaleidoscope, distort\n#define PI 3.14159265358979\nconst float rad = 120.; // change this value to get different mirror effects\nconst float deg = rad / 180. * PI;\nuniform float scale; // = 2.0\nuniform float z; // = 1.5\nuniform float speed; // = 5.\nvec2 refl(vec2 p,vec2 o,vec2 n)\n{\n\treturn 2.0*o+2.0*n*dot(p-o,n)-p;\n}\n\nvec2 rot(vec2 p, vec2 o, float a)\n{\n float s = sin(a);\n float c = cos(a);\n\treturn o + mat2(c, -s, s, c) * (p - o);\n}\n\nvec4 mainImage(vec2 uv)\n{\n float dist = scale / 10.;\n vec2 uv0 = uv;\n\tuv -= 0.5;\n uv.x *= ratio;\n uv *= z;\n uv = rot(uv, vec2(0.0), progress*speed);\n // uv.x = fract(uv.x/l/3.0)*l*3.0;\n\tfloat theta = progress*6.+PI/.5;\n\tfor(int iter = 0; iter < 10; iter++) {\n for(float i = 0.; i < 2. * PI; i+=deg) {\n\t float ts = sign(asin(cos(i))) == 1.0 ? 1.0 : 0.0;\n if(((ts == 1.0) && (uv.y-dist*cos(i) > tan(i)*(uv.x+dist*+sin(i)))) || ((ts == 0.0) && (uv.y-dist*cos(i) < tan(i)*(uv.x+dist*+sin(i))))) {\n uv = refl(vec2(uv.x+sin(i)*dist*2.,uv.y-cos(i)*dist*2.), vec2(0.,0.), vec2(cos(i),sin(i)));\n }\n }\n }\n uv += 0.5;\n uv = rot(uv, vec2(0.5), progress*-speed);\n uv -= 0.5;\n uv.x /= ratio;\n uv += 0.5;\n uv = 2.*abs(uv/2.-floor(uv/2.+0.5));\n vec2 uvMix = mix(uv,uv0,cos(progress*PI*2.)/2.+0.5);\n vec4 color = mix(getFromColor(uvMix),getToColor(uvMix),cos((progress-1.)*PI)/2.+0.5);\n\treturn color;\n \n}\nvec4 transition (vec2 uv) {\n vec4 color = mainImage(uv);\n return color;\n}\n","author":"Boundless","license":"MIT","description":"The image folds into an animated kaleidoscope before revealing the incoming one","tags":["kaleidoscope","distort"],"params":{"scale":{"type":"float","default":2},"z":{"type":"float","default":1.5},"speed":{"type":"float","default":5}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Prisms","paramsTypes":{"slats":"int","stagger":"float","perspective":"float","shading":"float","horizontal":"bool","backColor":"vec4"},"defaultParams":{"slats":8,"stagger":0.45,"perspective":1,"shading":0.6,"horizontal":false,"backColor":[0,0,0,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame is cut into 3D prisms that turn in a cascade, like a rotating billboard, from the outgoing image on one face to the incoming one on the next\n// Tags: 3d, rotate, stripes\n\n// @range(2, 40, 1) Number of prisms\nuniform int slats; // = 8\n// @range(0, 0.9) Delay of the last prism's turn, as a part of the transition\nuniform float stagger; // = 0.45\n// @range(0, 4) Amount of perspective\nuniform float perspective; // = 1.0\n// @range(0, 1) How much the faces darken as they turn away\nuniform float shading; // = 0.6\n// @param Cut the frame into horizontal prisms instead\nuniform bool horizontal; // = false\n// @color Color seen where the turning prisms leave the frame uncovered\nuniform vec4 backColor; // = vec4(0.0, 0.0, 0.0, 1.0)\n\nconst float PI = 3.141592653589793;\n// width of the anti-aliased edges, in frame heights\nconst float EDGE = 0.002;\n\nvec4 transition (vec2 uv) {\n float n = float(slats);\n // a: the axis across the prisms, b: the axis they turn around\n float a = horizontal ? uv.y : uv.x;\n float b = horizontal ? uv.x : uv.y;\n // the prisms' half width in frame heights, and the perspective from their depth\n float hw = 0.5 / n * (horizontal ? 1.0 : ratio);\n float k = min(perspective * hw, 0.5);\n float bScale = horizontal ? ratio : 1.0;\n // a turning prism is wider than its strip: keep the two nearest faces\n vec4 near1 = vec4(0.0), near2 = vec4(0.0);\n float cover1 = 0.0, cover2 = 0.0;\n float z1 = -2.0, z2 = -2.0;\n for (int d = -1; d <= 1; d++) {\n float i = floor(a * n) + float(d);\n if (i < 0.0 || i > n - 1.0) continue;\n // each prism turns after a delay that grows across the frame, left to right or top to bottom\n float order = (horizontal ? n - 1.0 - i : i) / (n - 1.0);\n float t = clamp((progress - stagger * order) / (1.0 - stagger), 0.0, 1.0);\n t = mix(t, t * t * (3.0 - 2.0 * t), 0.7);\n float c = cos(0.5 * PI * t);\n float s = sin(0.5 * PI * t);\n // soft edges while turning (sharp at rest, to keep the first and last frames exact)\n float edge = EDGE * min(1.0, 20.0 * s * c) + 1e-6;\n // x: position across the strip, -1 to 1; the prism's square section has its faces at distance 1\n float x = 2.0 * (a * n - i) - 1.0;\n for (int f = 0; f < 2; f++) {\n // f = 0: the outgoing face turning away, f = 1: the incoming face turning in\n float cf = f == 0 ? c : s;\n if (cf < 1e-4) continue;\n // u: position on the face, z: depth (1 for a face at rest)\n float u = f == 0 ? (x + s) / c : (x - c) / s;\n float z = f == 0 ? u * s + c : s - u * c;\n if (abs(u) > 1.0 || z <= z2) continue;\n // nearer parts look bigger\n float scale = 1.0 - k * (z - 1.0);\n float y = (b - 0.5) * scale + 0.5;\n if (y < 0.0 || y > 1.0) continue;\n // soften the outer edges only: the faces meet at the prism's corner\n float outer = f == 0 ? 1.0 + u : 1.0 - u;\n float cover = clamp(outer * hw * cf / edge, 0.0, 1.0)\n * clamp(min(y, 1.0 - y) * bScale / scale / edge, 0.0, 1.0);\n float sa = (i + 0.5 + 0.5 * u) / n;\n vec2 p = horizontal ? vec2(y, sa) : vec2(sa, y);\n vec4 img = f == 0 ? getFromColor(p) : getToColor(p);\n // lit from the front and the incoming side: the outgoing face darkens as it turns away\n float lambert = clamp(f == 0 ? c - 0.6 * s : s + 0.6 * c, 0.0, 1.0);\n vec4 color = vec4(img.rgb * mix(1.0 - shading, 1.0, lambert), img.a);\n if (z > z1) {\n near2 = near1; cover2 = cover1; z2 = z1;\n near1 = color; cover1 = cover; z1 = z;\n } else {\n near2 = color; cover2 = cover; z2 = z;\n }\n }\n }\n return mix(mix(backColor, near2, cover2), near1, cover1);\n}\n","author":"gre","license":"MIT","description":"The frame is cut into 3D prisms that turn in a cascade, like a rotating billboard, from the outgoing image on one face to the incoming one on the next","tags":["3d","rotate","stripes"],"params":{"slats":{"type":"int","default":8,"min":2,"max":40,"step":1,"description":"Number of prisms"},"stagger":{"type":"float","default":0.45,"min":0,"max":0.9,"description":"Delay of the last prism's turn, as a part of the transition"},"perspective":{"type":"float","default":1,"min":0,"max":4,"description":"Amount of perspective"},"shading":{"type":"float","default":0.6,"min":0,"max":1,"description":"How much the faces darken as they turn away"},"horizontal":{"type":"bool","default":false,"description":"Cut the frame into horizontal prisms instead"},"backColor":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color seen where the turning prisms leave the frame uncovered"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:17:22 +0100","updatedAt":"Sat, 31 Oct 2026 18:17:22 +0100"},{"name":"Puzzle","paramsTypes":{"pieces":"float","shadow":"float"},"defaultParams":{"pieces":5,"shadow":0.6},"glsl":"// Author: gre\n// License: MIT\n// Description: The image is cut into jigsaw puzzle pieces that lift one after another and fall away, revealing the incoming image\n// Tags: tiles, shadow, rotate, fragments\n\n// @range(2, 12) Number of pieces across the shorter side\nuniform float pieces; // = 5.0\n// @range(0, 1) Darkness of the shadows of the lifted pieces\nuniform float shadow; // = 0.6\n\n// Hash of a cell, without sin, in [0, 1)\nfloat hash(vec2 c) {\n vec2 p = fract(c * vec2(0.1031, 0.1030));\n p += dot(p, p.yx + 33.33);\n return fract((p.x + p.y) * p.x);\n}\n\nfloat boxDist(vec2 p, vec2 halfSize) {\n vec2 q = abs(p) - halfSize;\n return length(max(q, 0.0)) + min(max(q.x, q.y), 0.0);\n}\n\n// Signed distance of a point, relative to the center of piece c, to that piece (cell units).\n// Each edge has a knob (a round head on a neck): a tab for one piece, a blank for its neighbor; border edges are flat.\nfloat pieceDist(vec2 p, vec2 c, vec2 grid, float aspect) {\n vec2 halfSize = vec2(0.5 * aspect, 0.5);\n float d = boxDist(p, halfSize);\n float tabs = 1e3;\n for (int e = 0; e < 4; e++) {\n // right, left, top, bottom: the edge key is the cell on its left or below\n vec2 dir = e == 0 ? vec2(1.0, 0.0) : e == 1 ? vec2(-1.0, 0.0) : e == 2 ? vec2(0.0, 1.0) : vec2(0.0, -1.0);\n vec2 key = c + min(dir, 0.0);\n vec2 next = c + dir;\n if (next.x >= 0.0 && next.y >= 0.0 && next.x < grid.x && next.y < grid.y) {\n float h = hash(key + (e < 2 ? vec2(0.0) : vec2(71.0, 37.0)));\n // the knob points right or up from the key cell when h < 0.5\n bool tab = (h < 0.5) == (dir.x + dir.y > 0.0);\n vec2 out1 = dir * (tab ? 1.0 : -1.0);\n vec2 along = vec2(abs(dir.y), abs(dir.x));\n vec2 edge = dir * halfSize + along * (fract(h * 2.0) - 0.5) * 0.16;\n float k = min(\n length(p - edge - out1 * 0.15) - 0.125,\n boxDist(p - edge - out1 * 0.06, abs(dir) * 0.08 + along * 0.085));\n if (tab) tabs = min(tabs, k);\n else d = max(d, -k);\n }\n }\n return min(d, tabs);\n}\n\nvec4 transition(vec2 uv) {\n // a grid of nearly square cells that fits the frame exactly\n float rows = ratio < 1.0 ? floor(pieces / ratio + 0.5) : pieces;\n float cols = ratio < 1.0 ? pieces : floor(pieces * ratio + 0.5);\n vec2 grid = vec2(cols, rows);\n float aspect = ratio * rows / cols;\n vec2 g = uv * grid;\n vec2 cell = floor(g);\n\n const float aa = 0.01; // soft edges, in cells\n float boardSum = 0.0;\n float allSum = 0.0;\n // the two top moving pieces under this point\n float prio1 = -1.0, prio2 = -1.0, cov1 = 0.0, cov2 = 0.0, shade1 = 1.0, shade2 = 1.0;\n vec2 uv1 = uv, uv2 = uv;\n float shadowAll = 0.0;\n float seam = 1.0;\n for (int i = 0; i < 9; i++) {\n vec2 c = cell + vec2(mod(float(i), 3.0), floor(float(i) / 3.0)) - 1.0;\n if (c.x < 0.0 || c.y < 0.0 || c.x >= cols || c.y >= rows) continue;\n vec2 center = c + 0.5;\n vec2 local = (g - center) * vec2(aspect, 1.0);\n float h = hash(c + vec2(13.0, 7.0));\n // diagonal order from the top left, a little shuffled\n float diag = (c.x / max(cols - 1.0, 1.0) + (rows - 1.0 - c.y) / max(rows - 1.0, 1.0)) * 0.5;\n float delay = (diag + 1.2 * (h - 0.5) * diag * (1.0 - diag)) * 0.6;\n float t = clamp((progress - delay) / 0.4, 0.0, 1.0);\n\n // where the piece was: the board keeps the outgoing image where pieces are still in place\n float d0 = pieceDist(local, c, grid, aspect);\n float w = 1.0 - smoothstep(-aa, aa, d0);\n allSum += w;\n if (t <= 0.0) {\n boardSum += w;\n seam = min(seam, abs(d0));\n continue;\n }\n // lift, then fall away: shrink, spin, drift down and darken\n float lift = smoothstep(0.0, 0.25, t);\n float fall = clamp((t - 0.2) / 0.8, 0.0, 1.0);\n fall *= fall;\n float s = max(1.0 - fall, 0.001);\n float a = (h - 0.5) * 3.0 * fall;\n vec2 off = vec2(0.0, -1.2 * fall);\n mat2 rot = mat2(cos(a), -sin(a), sin(a), cos(a));\n vec2 pl = rot * (local - off) / s;\n float dp = pieceDist(pl, c, grid, aspect);\n float cov = (1.0 - smoothstep(-aa, aa, dp * s)) * min(s * 20.0, 1.0); // fades when tiny\n // darker when falling, and on its edges when lifted\n float shade = (1.0 - 0.5 * fall) * (1.0 - 0.3 * lift * (1.0 - smoothstep(0.0, 0.035, -dp)));\n vec2 puv = (center + pl / vec2(aspect, 1.0)) / grid;\n // soft shadow, offset to the bottom right while lifted\n vec2 sl = rot * (local - off - vec2(0.08, -0.1) * lift) / s;\n float sh = (1.0 - smoothstep(-0.05, 0.12, pieceDist(sl, c, grid, aspect) * s)) * lift * (1.0 - fall) * shadow;\n // the hole it leaves is in its shadow too\n shadowAll = max(shadowAll, max(sh, w * lift * (1.0 - smoothstep(0.2, 0.5, t)) * shadow));\n float prio = delay;\n if (cov > 0.0 && prio > prio1) {\n prio2 = prio1; cov2 = cov1; uv2 = uv1; shade2 = shade1;\n prio1 = prio; cov1 = cov; uv1 = puv; shade1 = shade;\n } else if (cov > 0.0 && prio > prio2) {\n prio2 = prio; cov2 = cov; uv2 = puv; shade2 = shade;\n }\n }\n vec4 base = mix(getToColor(uv), getFromColor(uv), boardSum / max(allSum, 0.001));\n // the cuts show on the board as the transition starts\n base.rgb *= (1.0 - shadowAll) * (1.0 - 0.4 * smoothstep(0.0, 0.1, progress) * (1.0 - smoothstep(0.0, 0.015, seam)));\n vec4 p2 = getFromColor(uv2);\n p2.rgb *= shade2;\n vec4 p1 = getFromColor(uv1);\n p1.rgb *= shade1;\n return mix(mix(base, p2, cov2), p1, cov1);\n}\n","author":"gre","license":"MIT","description":"The image is cut into jigsaw puzzle pieces that lift one after another and fall away, revealing the incoming image","tags":["tiles","shadow","rotate","fragments"],"params":{"pieces":{"type":"float","default":5,"min":2,"max":12,"description":"Number of pieces across the shorter side"},"shadow":{"type":"float","default":0.6,"min":0,"max":1,"description":"Darkness of the shadows of the lifted pieces"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:26:58 +0100","updatedAt":"Sat, 31 Oct 2026 18:26:58 +0100"},{"name":"PuzzleCube","paramsTypes":{"size":"int","gap":"float","shading":"float","background":"vec4"},"defaultParams":{"size":3,"gap":0.012,"shading":0.6,"background":[0.04,0.04,0.05,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame becomes the face of a twisty cube puzzle: dark gaps open between its cubies, then whole columns and rows of cubies turn a quarter turn around the cube one after another in 3D, each bringing the incoming image from the cube's side to the front, until the gaps close on the incoming image\n// Tags: 3d, rotate, grid\n\n// @range(2, 8, 1) Number of cubies along each side of the face\nuniform int size; // = 3\n// @range(0, 0.05) Width of the gaps between the cubies, as a part of the frame's height\nuniform float gap; // = 0.012\n// @range(0, 1) How much the turning sides darken away from the light, and the shadows inside the cube\nuniform float shading; // = 0.6\n// @color Color of the cubies' body, seen in the gaps, on their inner sides and around the cube\nuniform vec4 background; // = vec4(0.04, 0.04, 0.05, 1.0)\n\nconst float PI = 3.141592653589793;\n// delay between the turns of a group, as a part of a turn\nconst float STAGGER = 0.45;\n// width of the anti-aliased edges, in frame heights\nconst float EDGE = 0.0012;\n\nfloat gridSize() {\n return float(size < 2 ? 2 : (size > 8 ? 8 : size));\n}\n\n// the turns run in 3 groups, one after the other: the even columns, the even rows (counted from the top),\n// then the odd columns; the turns of a group overlap\nfloat groupLength(float m) {\n return m > 0.0 ? 1.0 + (m - 1.0) * STAGGER : 0.0;\n}\n\n// the time in turn units, and the length of the groups of even and odd slices\nvec3 timeline(float n) {\n float lenEven = groupLength(floor((n + 1.0) * 0.5));\n float lenOdd = groupLength(floor(n * 0.5));\n float u = clamp((progress - 0.05) / 0.85, 0.0, 1.0) * (2.0 * lenEven + lenOdd);\n return vec3(u, lenEven, lenOdd);\n}\n\n// the turn of a column (isCol) or of a row, 0 at rest to 1 turned\nfloat turnTime(vec3 tl, bool isCol, float idx, float n) {\n // rows are counted from the top\n float k = isCol ? idx : n - 1.0 - idx;\n bool odd = mod(k, 2.0) > 0.5;\n // the odd rows never turn: the columns already brought the incoming image there\n if (odd && !isCol) return 0.0;\n float start = (odd ? 2.0 * tl.y : (isCol ? 0.0 : tl.y)) + floor(k * 0.5) * STAGGER;\n return clamp(tl.x - start, 0.0, 1.0);\n}\n\n// the turn's direction: +1 brings the side of the cube at higher coordinates to the front\nfloat turnDir(bool isCol, float idx) {\n return mod(idx + (isCol ? 0.0 : 1.0), 2.0) < 0.5 ? 1.0 : -1.0;\n}\n\n// eased angle, landing with a little speed left like a click\nfloat turnAngle(float t) {\n return 0.5 * PI * mix(t, t * t * (3.0 - 2.0 * t), 0.8);\n}\n\n// 1 on the cubies' faces, 0 in the gaps, at the point fp of the face (frame heights)\nfloat faceMask(vec2 fp, float n, float g) {\n if (g <= 0.0) return 1.0;\n vec2 cell = vec2(ratio, 1.0) / n;\n vec2 c = fp / cell;\n vec2 r = floor(c + 0.5);\n // distance to the nearest cubie edge inside the face (the face's own border has no gap)\n vec2 d = abs(c - r) * cell;\n d.x = (r.x < 0.5 || r.x > n - 0.5) ? 1.0 : d.x;\n d.y = (r.y < 0.5 || r.y > n - 0.5) ? 1.0 : d.y;\n float e = min(EDGE, 0.5 * g);\n return smoothstep(0.5 * g - e, 0.5 * g + e, min(d.x, d.y));\n}\n\n// does the cubie of the face at fp show the incoming image, from the turns done so far\nbool isDone(vec3 tl, vec2 fp, float n) {\n vec2 cell = clamp(floor(fp / (vec2(ratio, 1.0) / n)), 0.0, n - 1.0);\n return turnTime(tl, true, cell.x, n) >= 1.0 || turnTime(tl, false, cell.y, n) >= 1.0;\n}\n\nvec4 sticker(vec2 fp, bool incoming, float light, float n, float g) {\n vec2 uv = clamp(fp / vec2(ratio, 1.0), 0.0, 1.0);\n vec4 img = incoming ? getToColor(uv) : getFromColor(uv);\n vec4 body = vec4(background.rgb * light, background.a);\n return mix(body, vec4(img.rgb * light, img.a), faceMask(fp, n, g));\n}\n\n// brightness of a face of normal nrm (across the slices, along the turn, depth) in the turn's space, 1 facing the viewer\nfloat lighting(vec3 nrm, bool isCol) {\n vec3 l = normalize(vec3(-0.35, 0.55, 1.0));\n if (isCol) l = l.yxz;\n return 1.0 - shading * (1.0 - clamp(dot(nrm, l) / l.z, 0.0, 1.0));\n}\n\nvec2 rot(vec2 v, float a) {\n float c = cos(a), s = sin(a);\n return vec2(c * v.x - s * v.y, s * v.x + c * v.y);\n}\n\n// casts the ray (o, d), in the turn's space (across the slices, along the turn, depth), onto the slice\n// [a0, a0 + w] turned by the angle a around the middle of the cube (a square section of side S):\n// returns the ray's parameter at the hit (or -1), the face hit (0 front, 1 back, 2 and 3 the sides\n// at higher and lower coordinates along the turn at rest, 4 the slice's ends), and the point hit\n// (across the slices, and across the face, -1 to 1)\nvec4 sliceHit(vec3 o, vec3 d, float a0, float w, float S, float a) {\n vec2 lo = rot(o.yz - vec2(0.5 * S, -0.5 * S), -a);\n vec2 ld = rot(d.yz, -a);\n ld = vec2(abs(ld.x) < 1e-6 ? 1e-6 : ld.x, abs(ld.y) < 1e-6 ? 1e-6 : ld.y);\n float dx = abs(d.x) < 1e-6 ? 1e-6 : d.x;\n vec3 t1 = vec3((a0 - o.x) / dx, (-0.5 * S - lo) / ld);\n vec3 t2 = vec3((a0 + w - o.x) / dx, (0.5 * S - lo) / ld);\n vec3 tn = min(t1, t2);\n vec3 tf = max(t1, t2);\n float tNear = max(tn.x, max(tn.y, tn.z));\n float tFar = min(tf.x, min(tf.y, tf.z));\n if (tNear > tFar || tNear <= 0.0) return vec4(-1.0);\n vec2 q = (lo + tNear * ld) / (0.5 * S);\n float across = o.x + tNear * d.x;\n if (tn.x >= tn.y && tn.x >= tn.z) return vec4(tNear, 4.0, across, sign(-dx));\n if (tn.y > tn.z) return vec4(tNear, ld.x < 0.0 ? 2.0 : 3.0, across, q.y);\n return vec4(tNear, ld.y < 0.0 ? 0.0 : 1.0, across, q.x);\n}\n\n// the color of a turning slice at its hit\nvec4 sliceColor(vec4 hit, vec3 tl, bool isCol, float a, float dir, float S, float n, float g) {\n float f = hit.y;\n if (f > 3.5) return vec4(background.rgb * lighting(vec3(hit.w, 0.0, 0.0), isCol), background.a);\n vec2 nl = f < 0.5 ? vec2(0.0, 1.0) : f < 1.5 ? vec2(0.0, -1.0) : f < 2.5 ? vec2(1.0, 0.0) : vec2(-1.0, 0.0);\n float light = lighting(vec3(0.0, rot(nl, a)), isCol);\n // the front shows what the cubies showed before this turn, the side that comes to the front\n // shows the incoming image where it lands\n bool front = f < 0.5;\n bool coming = nl.x * dir > 0.5;\n if (!front && !coming) return vec4(background.rgb * light, background.a);\n // on the side coming to the front, the point across lands at -dir times its depth\n float r = 0.5 * S * (1.0 + (front ? hit.w : -dir * hit.w));\n vec2 fp = isCol ? vec2(hit.z, r) : vec2(r, hit.z);\n return sticker(fp, coming || isDone(tl, fp, n), light, n, g);\n}\n\nvec4 transition(vec2 uv) {\n float n = gridSize();\n vec3 tl = timeline(n);\n // the gaps open at the start and close at the end, after the last turn\n float g = gap * smoothstep(0.0, 0.1, progress) * (1.0 - smoothstep(0.9, 1.0, progress));\n vec2 P = vec2(uv.x * ratio, uv.y);\n\n // the turns going on are of columns or of rows, never both\n bool isCol = tl.x < tl.y || tl.x >= 2.0 * tl.y;\n // the turn's space: (across the slices, along the turn, depth toward the viewer);\n // a column turns around the horizontal axis through the middle of the cube, a row around the vertical one\n float w = (isCol ? ratio : 1.0) / n;\n float S = isCol ? 1.0 : ratio;\n vec2 pp = isCol ? P : P.yx;\n vec3 o = vec3(isCol ? vec2(0.5 * ratio, 0.5) : vec2(0.5, 0.5 * ratio), 1.2 + 0.6 * max(ratio, 1.0));\n // the ray reaches the face (z = 0) at t = 1\n vec3 d = vec3(pp, 0.0) - o;\n\n float k0 = clamp(floor(pp.x / w), 0.0, n - 1.0);\n float t0 = turnTime(tl, isCol, k0, n);\n\n float nearest = 1.0;\n vec4 color;\n if (t0 <= 0.0 || t0 >= 1.0) {\n // the face at rest: the exact image\n color = isDone(tl, P, n) ? getToColor(uv) : getFromColor(uv);\n color = mix(background, color, faceMask(P, n, g));\n // the shade of the turning slices next to this one, deepest mid-turn\n for (int j = -1; j <= 1; j += 2) {\n float k = k0 + float(j);\n if (k < 0.0 || k > n - 1.0) continue;\n float tk = turnTime(tl, isCol, k, n);\n if (tk <= 0.0 || tk >= 1.0) continue;\n float dist = abs(pp.x - (k + 0.5) * w) - 0.5 * w;\n color.rgb *= 1.0 - 0.5 * shading * sin(2.0 * turnAngle(tk)) * exp(-dist / (0.2 * w));\n }\n } else {\n // inside the hollow left by the turning slice: the sides of the slices next to it and the cube's inside, in the dark\n float tw = abs(d.x) < 1e-6 ? 1e6 : (d.x < 0.0 ? k0 * w - o.x : (k0 + 1.0) * w - o.x) / d.x;\n float tb = (o.z + S) / -d.z;\n nearest = min(tw, tb);\n float along = o.y + nearest * d.y;\n float depth = (o.z + nearest * d.z) / -S;\n float light = tw < tb ? lighting(vec3(-sign(d.x), 0.0, 0.0), isCol) : 1.0;\n light *= 1.0 - shading * (0.5 + 0.4 * clamp(depth, 0.0, 1.0));\n // beyond the cube's edges: the background\n color = along < 0.0 || along > S ? background : vec4(background.rgb * light, background.a);\n }\n\n // the turning slices, which come out in front of the face as they turn\n for (int j = -1; j <= 1; j++) {\n float k = k0 + float(j);\n if (k < 0.0 || k > n - 1.0) continue;\n float tk = turnTime(tl, isCol, k, n);\n if (tk <= 0.0 || tk >= 1.0) continue;\n float dir = turnDir(isCol, k);\n float a = dir * turnAngle(tk);\n vec4 hit = sliceHit(o, d, k * w, w, S, a);\n if (hit.x > 0.0 && hit.x < nearest) {\n nearest = hit.x;\n color = sliceColor(hit, tl, isCol, a, dir, S, n, g);\n }\n }\n return color;\n}\n","author":"gre","license":"MIT","description":"The frame becomes the face of a twisty cube puzzle: dark gaps open between its cubies, then whole columns and rows of cubies turn a quarter turn around the cube one after another in 3D, each bringing the incoming image from the cube's side to the front, until the gaps close on the incoming image","tags":["3d","rotate","grid"],"params":{"size":{"type":"int","default":3,"min":2,"max":8,"step":1,"description":"Number of cubies along each side of the face"},"gap":{"type":"float","default":0.012,"min":0,"max":0.05,"description":"Width of the gaps between the cubies, as a part of the frame's height"},"shading":{"type":"float","default":0.6,"min":0,"max":1,"description":"How much the turning sides darken away from the light, and the shadows inside the cube"},"background":{"type":"vec4","default":[0.04,0.04,0.05,1],"color":true,"description":"Color of the cubies' body, seen in the gaps, on their inner sides and around the cube"}},"textures":[],"createdAt":"Sat, 7 Nov 2026 18:50:04 +0100","updatedAt":"Sat, 7 Nov 2026 18:50:04 +0100"},{"name":"RadialWipe","paramsTypes":{"smoothness":"float"},"defaultParams":{"smoothness":1},"glsl":"// License: MIT\n// Author: Xaychru\n// Description: A radial wipe that sweeps around the center like a clock hand\n// Tags: wipe, radial, clock\n// ported by gre from https://gist.github.com/Xaychru/ce1d48f0ce00bb379750\n\nuniform float smoothness; // = 1.0\n\nconst float PI = 3.141592653589;\n\nvec4 transition(vec2 p) {\n vec2 rp = p*2.-1.;\n return mix(\n getToColor(p),\n getFromColor(p),\n smoothstep(0., smoothness, atan(rp.y,rp.x) - (progress-.5) * PI * 2.5)\n );\n}\n","author":"Xaychru","license":"MIT","description":"A radial wipe that sweeps around the center like a clock hand","tags":["wipe","radial","clock"],"params":{"smoothness":{"type":"float","default":1}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"RandomSquares","paramsTypes":{"size":"ivec2","smoothness":"float"},"defaultParams":{"size":[10,10],"smoothness":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The incoming image appears in random squares\n// Tags: squares, grid, dissolve\n\n// @param Number of squares (columns, rows)\nuniform ivec2 size; // = ivec2(10, 10)\n// @param Softness of each square's switch\nuniform float smoothness; // = 0.5\n \nfloat rand (vec2 co) {\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n\nvec4 transition(vec2 p) {\n float r = rand(floor(vec2(size) * p));\n float m = smoothstep(0.0, -smoothness, r - (progress * (1.0 + smoothness)));\n return mix(getFromColor(p), getToColor(p), m);\n}\n","author":"gre","license":"MIT","description":"The incoming image appears in random squares","tags":["squares","grid","dissolve"],"params":{"size":{"type":"ivec2","default":[10,10],"description":"Number of squares (columns, rows)"},"smoothness":{"type":"float","default":0.5,"description":"Softness of each square's switch"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"RectangleCover","paramsTypes":{"bgcolor":"vec4"},"defaultParams":{"bgcolor":[0,0,0,1]},"glsl":"// Author: martiniti\n// License: MIT\n// Description: A rectangle grows from the center to cover the outgoing image, then shrinks to reveal the incoming one\n// Tags: box, shape, iris\n\n// @color Color of the rectangle\nuniform vec4 bgcolor; // = vec4(0.0, 0.0, 0.0, 1.0)\n\nvec4 transition(vec2 p) {\n float s = pow(2.0 * abs(progress - 0.5), 3.0);\n \n vec2 sq = p.xy / vec2(1.0).xy;\n \n // bottom-left\n vec2 bl = step(vec2(abs(1. - 2.*progress)), sq + .25);\n float dist = bl.x * bl.y;\n\n // top-right\n vec2 tr = step(vec2(abs(1. - 2.*progress)), 1.25-sq);\n dist *= 1. * tr.x * tr.y;\n \n return mix(\n progress < 0.5 ? getFromColor(p) : getToColor(p),\n bgcolor,\n step(s, dist)\n );\n \n}\n","author":"martiniti","license":"MIT","description":"A rectangle grows from the center to cover the outgoing image, then shrinks to reveal the incoming one","tags":["box","shape","iris"],"params":{"bgcolor":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color of the rectangle"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"RectangleIris","paramsTypes":{"bgcolor":"vec4"},"defaultParams":{"bgcolor":[0,0,0,1]},"glsl":"// License: MIT\n// Author: martiniti\n// Description: The outgoing image shrinks into a small rectangle over a background color, then the incoming one grows from it\n// Tags: box, iris, zoom\n\n// @color Background color\nuniform vec4 bgcolor; // = vec4(0.0, 0.0, 0.0, 1.0)\n\nvec4 transition(vec2 uv) {\n \n float s = pow(2.0 * abs(progress - 0.5), 3.0);\n \n vec2 q = uv.xy / vec2(1.0).xy;\n \n // bottom-left\n vec2 bl = step(vec2(1.0 - 2.0*abs(progress - 0.5)), q + 0.25);\n \n // top-right\n vec2 tr = step(vec2(1.0 - 2.0*abs(progress - 0.5)), 1.25 - q);\n \n float dist = length(1.0 - bl.x * bl.y * tr.x * tr.y);\n \n return mix(\n progress < 0.5 ? getFromColor(uv) : getToColor(uv),\n bgcolor,\n step(s, dist)\n );\n \n}\n","author":"martiniti","license":"MIT","description":"The outgoing image shrinks into a small rectangle over a background color, then the incoming one grows from it","tags":["box","iris","zoom"],"params":{"bgcolor":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Background color"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Refraction","paramsTypes":{"strength":"float","scale":"float","dispersion":"float","brightness":"float"},"defaultParams":{"strength":0.15,"scale":2.5,"dispersion":0.5,"brightness":1},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame is seen through flowing liquid glass that bends the outgoing image more and more, with rainbow fringes, flares up as the incoming image takes over, then calms down and clears\n// Tags: distortion, refraction, chromatic-aberration, glow\n\n// @range(0, 0.3) How far the glass bends the image at the peak\nuniform float strength; // = 0.15\n// @range(0.5, 8) Size of the flowing waves: higher makes smaller waves\nuniform float scale; // = 2.5\n// @range(0, 1) Spread of the rainbow fringes\nuniform float dispersion; // = 0.5\n// @range(0, 3) Brightness of the flare at the peak\nuniform float brightness; // = 1.0\n\n// the wavelengths sampled from red to violet\nconst int TAPS = 7;\n\n// the glass surface: smooth waves of a few sizes, warped into each other and flowing over time\nfloat surface(vec2 q, float t) {\n q += 0.45 * vec2(sin(1.3 * q.y + 0.9 * t), sin(1.1 * q.x - 1.2 * t));\n float h = sin(q.x + 0.6 * t) * sin(1.2 * q.y - 0.8 * t);\n h += 0.5 * sin(dot(q, vec2(1.6, -1.2)) + 1.4 * t);\n h += 0.3 * sin(dot(q, vec2(-1.1, 2.9)) - 1.9 * t + 1.7 * sin(0.9 * q.x));\n h += 0.15 * sin(dot(q, vec2(4.3, 3.1)) + 2.6 * t);\n return h;\n}\n\n// a hash without sin, to jitter the wavelengths from pixel to pixel\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// rough spectral response of a wavelength w (0 = red, 1 = violet), in RGB\nvec3 spectrum(float w) {\n vec3 c = vec3(\n 1.0 - smoothstep(0.0, 0.55, w) + 0.35 * smoothstep(0.75, 1.0, w),\n 1.0 - abs(2.0 * w - 1.0) * 1.2,\n smoothstep(0.45, 1.0, w)\n );\n return clamp(c, 0.0, 1.0);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n // 0 at both ends, 1 in the middle: the glass builds up slowly, then calms down\n float h = 1.0 - abs(2.0 * p - 1.0);\n float amount = h * h * (2.0 - h);\n\n // the glass refracts along the slope of its surface\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0) * scale;\n float t = 3.0 * p;\n float e = 0.01;\n vec2 slope = vec2(\n surface(q + vec2(e, 0.0), t) - surface(q - vec2(e, 0.0), t),\n surface(q + vec2(0.0, e), t) - surface(q - vec2(0.0, e), t)\n ) / (2.0 * e);\n vec2 offset = slope * strength * amount / scale;\n // the switch to the incoming image, around the peak: it appears through the glass's waves,\n // the crests first, then the troughs\n float wave = clamp(0.5 * surface(q, t), -1.0, 1.0);\n float m = smoothstep(-0.015, 0.015, p - 0.5 + 0.1 * wave);\n\n // each wavelength bends a little differently: red the least, violet the most\n vec3 color = vec3(0.0);\n vec3 weights = vec3(0.0);\n float alpha = 0.0;\n // jittered wavelengths blend the fringes into a continuous rainbow\n float jitter = hash12(uv * vec2(ratio, 1.0) * 1000.0) - 0.5;\n for (int i = 0; i < TAPS; i++) {\n float w = float(i) / float(TAPS - 1);\n float wj = (float(i) + jitter) / float(TAPS - 1);\n vec2 st = mirror(uv + offset * (1.0 + dispersion * (wj - 0.5) * 1.6));\n vec4 c = mix(getFromColor(st), getToColor(st), m);\n vec3 s = spectrum(w);\n color += s * c.rgb * c.a;\n weights += s;\n alpha += c.a;\n }\n alpha /= float(TAPS);\n color = color / weights / max(alpha, 1e-5);\n\n // a flare at the peak: the image is pushed toward an overexposed white\n float flare = 2.0 * brightness * pow(h, 8.0);\n color = color * (1.0 + flare) / (1.0 + flare * color);\n color += 0.1 * flare * dot(color, vec3(0.3333));\n return vec4(clamp(color, 0.0, 1.0), alpha);\n}\n","author":"gre","license":"MIT","description":"The frame is seen through flowing liquid glass that bends the outgoing image more and more, with rainbow fringes, flares up as the incoming image takes over, then calms down and clears","tags":["distortion","refraction","chromatic-aberration","glow"],"params":{"strength":{"type":"float","default":0.15,"min":0,"max":0.3,"description":"How far the glass bends the image at the peak"},"scale":{"type":"float","default":2.5,"min":0.5,"max":8,"description":"Size of the flowing waves: higher makes smaller waves"},"dispersion":{"type":"float","default":0.5,"min":0,"max":1,"description":"Spread of the rainbow fringes"},"brightness":{"type":"float","default":1,"min":0,"max":3,"description":"Brightness of the flare at the peak"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 23:20:50 +0100","updatedAt":"Sat, 31 Oct 2026 23:20:50 +0100"},{"name":"Revolve","paramsTypes":{"center":"vec2","direction":"float","maxRotation":"float","peakZoom":"float","swirl":"float","barrel":"float","motionBlur":"float","switchStart":"float","switchEnd":"float","shadow":"float"},"defaultParams":{"center":[0.46,0.52],"direction":-1,"maxRotation":1.95,"peakZoom":2.22,"swirl":2.85,"barrel":0.38,"motionBlur":1,"switchStart":0.3,"switchEnd":0.5,"shadow":0.16},"glsl":"// Author: bread\n// License: MIT\n// Description: The outgoing image swirls and zooms with motion blur into the incoming one\n// Tags: swirl, zoom, rotate, blur\n// gl-transitions v1 compatible\n\n// @param Center of the swirl\nuniform vec2 center; // = vec2(0.46, 0.52)\nuniform float direction; // = -1.0\nuniform float maxRotation; // = 1.95\nuniform float peakZoom; // = 2.22\nuniform float swirl; // = 2.85\nuniform float barrel; // = 0.38\nuniform float motionBlur; // = 1.0\nuniform float switchStart; // = 0.30\nuniform float switchEnd; // = 0.50\nuniform float shadow; // = 0.16\n\nfloat sat(float x) {\n return clamp(x, 0.0, 1.0);\n}\n\nfloat ease(float x) {\n x = sat(x);\n return x * x * (3.0 - 2.0 * x);\n}\n\nfloat revolveEnvelope(float t) {\n float rise = ease((t - 0.10) / 0.33);\n float fall = 1.0 - ease((t - 0.43) / 0.29);\n return rise * fall;\n}\n\nvec2 rotate2(vec2 p, float a) {\n float s = sin(a);\n float c = cos(a);\n return vec2(c * p.x - s * p.y, s * p.x + c * p.y);\n}\n\nvec2 warpUv(vec2 uv, float t) {\n float e = revolveEnvelope(t);\n\n vec2 p = uv - center;\n p.x *= ratio;\n\n float r = length(p);\n float edgeSpin = maxRotation * e;\n float coreSpin = swirl * e * pow(1.0 - sat(r / 0.96), 1.55);\n float visibleAngle = direction * (edgeSpin + coreSpin);\n\n p = rotate2(p, -visibleAngle);\n\n float sc = 1.0 + (peakZoom - 1.0) * pow(e, 0.85);\n p /= sc;\n\n float rr = length(p);\n p *= 1.0 + barrel * e * rr * rr * 2.8;\n\n p.x /= ratio;\n return clamp(p + center, vec2(0.001), vec2(0.999));\n}\n\nvec4 sampleRevolve(vec2 uv, float t) {\n vec2 p = warpUv(uv, t);\n float reveal = smoothstep(switchStart, switchEnd, t);\n return mix(getFromColor(p), getToColor(p), reveal);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n float e = revolveEnvelope(progress);\n float span = 0.060 * motionBlur * e;\n\n vec4 color = vec4(0.0);\n float total = 0.0;\n\n for (int i = -8; i <= 8; i++) {\n float x = float(i) / 8.0;\n float w = 1.0 - abs(x);\n w = w * w + 0.01;\n\n float t = sat(progress + x * span);\n color += sampleRevolve(uv, t) * w;\n total += w;\n }\n\n color /= total;\n\n vec2 q = uv - vec2(0.5);\n q.x *= ratio;\n float vignette = 1.0 - shadow * e * smoothstep(0.35, 0.95, length(q));\n color.rgb *= vignette;\n\n return color;\n}\n","author":"bread","license":"MIT","description":"The outgoing image swirls and zooms with motion blur into the incoming one","tags":["swirl","zoom","rotate","blur"],"params":{"center":{"type":"vec2","default":[0.46,0.52],"description":"Center of the swirl"},"direction":{"type":"float","default":-1},"maxRotation":{"type":"float","default":1.95},"peakZoom":{"type":"float","default":2.22},"swirl":{"type":"float","default":2.85},"barrel":{"type":"float","default":0.38},"motionBlur":{"type":"float","default":1},"switchStart":{"type":"float","default":0.3},"switchEnd":{"type":"float","default":0.5},"shadow":{"type":"float","default":0.16}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"RibbonTwist","paramsTypes":{"spread":"float","perspective":"float","shading":"float","vertical":"bool","backColor":"vec4"},"defaultParams":{"spread":0.8,"perspective":0.4,"shading":0.6,"vertical":false,"backColor":[0,0,0,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The image twists like a ribbon around its horizontal center line, the twist travelling smoothly across its width, the outgoing image on its front and the incoming one on its back\n// Tags: 3d, flip, rotate\n\n// @range(0.1, 2) Length of the twisted section, as a part of the frame's width\nuniform float spread; // = 0.8\n// @range(0, 0.8) Amount of perspective: the edge turning toward the viewer grows\nuniform float perspective; // = 0.4\n// @range(0, 1) How much the ribbon darkens as it turns away\nuniform float shading; // = 0.6\n// @param Twist around the vertical center line instead, travelling from top to bottom\nuniform bool vertical; // = false\n// @color Color seen where the twisting ribbon leaves the frame uncovered\nuniform vec4 backColor; // = vec4(0.0, 0.0, 0.0, 1.0)\n\nconst float PI = 3.141592653589793;\n// width of the anti-aliased edges, in frame heights\nconst float EDGE = 0.002;\n\nvec4 transition (vec2 uv) {\n // q.x: along the ribbon, the way the twist travels; q.y: across the ribbon\n vec2 q = vertical ? vec2(1.0 - uv.y, uv.x) : uv;\n // the ribbon's half width across, in frame heights\n float halfSize = vertical ? 0.5 * ratio : 0.5;\n // each line across the ribbon turns half a turn, a little later than the one before\n float t = smoothstep(0.0, 1.0, (progress * (1.0 + spread) - q.x) / spread);\n // the visible face (outgoing front, incoming back) and its angle from its rest position\n bool front = t < 0.5;\n float angle = PI * (front ? t : t - 1.0);\n float c = cos(angle);\n float s = sin(angle);\n // w: screen position across the ribbon, -1 to 1 at rest; v: the matching position on the face\n // a point v of the face goes to v * c across and v * s in depth, nearer points look bigger\n float w = 2.0 * q.y - 1.0;\n float den = c + perspective * w * s;\n if (den <= 0.0) return backColor;\n float v = w / den;\n if (abs(v) >= 1.0) return backColor;\n // soft edges while twisting (sharp at rest, to keep the first and last frames exact)\n float edge = max(EDGE * min(1.0, 20.0 * abs(s)), 1e-4);\n float top = c / (1.0 - perspective * s);\n float bottom = -c / (1.0 + perspective * s);\n float cover = clamp(min(top - w, w - bottom) * halfSize / edge, 0.0, 1.0);\n vec2 p = vec2(q.x, 0.5 + 0.5 * v);\n p = vertical ? vec2(p.y, 1.0 - p.x) : p;\n vec4 img = front ? getFromColor(p) : getToColor(p);\n // lit from the front and slightly from one side of the axis\n float lambert = clamp(c - 0.25 * s, 0.0, 1.0);\n vec4 color = vec4(img.rgb * mix(1.0 - shading, 1.0, lambert), img.a);\n return mix(backColor, color, cover);\n}\n","author":"gre","license":"MIT","description":"The image twists like a ribbon around its horizontal center line, the twist travelling smoothly across its width, the outgoing image on its front and the incoming one on its back","tags":["3d","flip","rotate"],"params":{"spread":{"type":"float","default":0.8,"min":0.1,"max":2,"description":"Length of the twisted section, as a part of the frame's width"},"perspective":{"type":"float","default":0.4,"min":0,"max":0.8,"description":"Amount of perspective: the edge turning toward the viewer grows"},"shading":{"type":"float","default":0.6,"min":0,"max":1,"description":"How much the ribbon darkens as it turns away"},"vertical":{"type":"bool","default":false,"description":"Twist around the vertical center line instead, travelling from top to bottom"},"backColor":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color seen where the twisting ribbon leaves the frame uncovered"}},"textures":[],"createdAt":"Fri, 6 Nov 2026 08:07:28 +0100","updatedAt":"Fri, 6 Nov 2026 08:07:28 +0100"},{"name":"RingSpin","paramsTypes":{"rings":"int","square":"bool","turns":"int","stagger":"float","blur":"float","settle":"float"},"defaultParams":{"rings":6,"square":false,"turns":1,"stagger":0.5,"blur":0.6,"settle":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame is cut into concentric rings that spin like the dials of a combination lock, in alternating directions and blurred with speed, one after another from the center outward; each ring overshoots a little and locks into place on the incoming image\n// Tags: rotate, circle, rings, motion-blur\n\n// @range(2, 12, 1) Number of rings, from the center to the farthest corner\nuniform int rings; // = 6\n// @param Square rings, like nested frames, instead of round ones\nuniform bool square; // = false\n// @range(1, 3, 1) Full turns made by each ring\nuniform int turns; // = 1\n// @range(0, 0.8) Delay between the first ring and the last one, as a part of the transition\nuniform float stagger; // = 0.5\n// @range(0, 1) Amount of angular motion blur while the rings spin fast\nuniform float blur; // = 0.6\n// @range(0, 1) Size of the overshoot when a ring locks\nuniform float settle; // = 0.5\n\nconst float PI = 3.141592653589793;\n// part of a ring's time spent overshooting and coming back\nconst float SETTLE = 0.2;\n// half width of the gaps between the rings, width of their rims and of the anti-aliased edges, in frame heights\nconst float GAP = 0.0035;\nconst float RIM = 0.012;\nconst float EDGE = 0.0015;\n\nvec2 mirrorUV(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\nvec2 rotate(vec2 v, float a) {\n float c = cos(a), s = sin(a);\n return vec2(c * v.x + s * v.y, c * v.y - s * v.x);\n}\n\n// the delay between two rings, kept shorter than the time a ring moves so that the motion never pauses\nfloat ringDelay(float n) {\n float m = max(n - 1.0, 1.0);\n return min(clamp(stagger, 0.0, 0.8) / m, 0.7 / (1.0 + 0.7 * m));\n}\n\n// local time of ring i: 0 until it starts, 1 once it is locked\nfloat ringTime(float i, float n) {\n float d = ringDelay(n);\n return progress >= 1.0 ? 1.0 : clamp((progress - d * i) / (1.0 - d * (n - 1.0)), 0.0, 1.0);\n}\n\n// how much a ring is moving, which opens the gaps around it\nfloat activity(float i, float n) {\n float t = ringTime(i, n);\n return smoothstep(0.0, 0.08, t) * (1.0 - smoothstep(0.88, 1.0, t));\n}\n\n// the ring's angle at its time t: it speeds up, reaches `total` a little fast, overshoots and springs back\nfloat spin(float t, float total) {\n float amp = 0.1 * settle * sign(total);\n float stopT = 1.0 - SETTLE;\n // speed at the stop, matched with the start of the overshoot\n float v1 = amp * PI * stopT / (total * SETTLE);\n float u = clamp(t / stopT, 0.0, 1.0);\n float b = clamp((t - stopT) / SETTLE, 0.0, 1.0);\n return total * (u * u * (3.0 - 2.0 * u) + v1 * (u * u * u - u * u)) + amp * sin(PI * b) * (1.0 - b) * (1.0 - b);\n}\n\nvec4 transition(vec2 uv) {\n vec2 aspect = vec2(ratio, 1.0);\n vec2 c = (uv - 0.5) * aspect;\n float r = square ? max(abs(c.x), abs(c.y)) : length(c);\n float n = clamp(float(rings), 1.0, 12.0);\n float w = (square ? 0.5 * max(ratio, 1.0) : length(0.5 * aspect)) / n;\n float f = r / w;\n float i = min(floor(f), n - 1.0);\n float t = ringTime(i, n);\n\n vec4 col;\n if (t <= 0.0) col = getFromColor(uv);\n else if (t >= 1.0) col = getToColor(uv);\n else {\n float total = 2.0 * PI * max(float(turns), 1.0) * (mod(i, 2.0) < 0.5 ? 1.0 : -1.0);\n float a = spin(t, total);\n // angular speed per unit of progress, without the small overshoot; the blur spans what the ring\n // travels in about a frame, at most a short arc so that the 8 taps stay close together\n float u = min(t / (1.0 - SETTLE), 1.0);\n float omega = abs(total) * 6.0 * u * (1.0 - u) / ((1.0 - SETTLE) * (1.0 - ringDelay(n) * (n - 1.0)));\n float span = blur * min(omega * 0.015, 0.1 / max(r, 0.01));\n // the incoming image takes over at full speed, hidden by the blur; the whole turns bring it back upright\n float m = smoothstep(0.3, 0.5, t);\n col = vec4(0.0);\n float ws = 0.0;\n for (int k = 0; k < 8; k++) {\n float x = float(k) / 7.0 - 0.5;\n vec2 q = mirrorUV(rotate(c, a + span * x) / aspect + 0.5);\n vec4 s = mix(getFromColor(q), getToColor(q), m);\n col += (1.0 - abs(x)) * s;\n ws += 1.0 - abs(x);\n }\n col /= ws;\n }\n\n // the nearest boundary between two rings, open while one of them moves: a dark gap\n // with a bevelled rim on each side, lit from the top left\n float bj = clamp(floor(f + 0.5), 1.0, max(n - 1.0, 1.0));\n float act = n > 1.5 ? max(activity(bj - 1.0, n), activity(bj, n)) : 0.0;\n float d = (f - bj) * w;\n vec2 nr = square ? (abs(c.x) > abs(c.y) ? vec2(sign(c.x), 0.0) : vec2(0.0, sign(c.y))) : c / max(r, 1e-4);\n // the outer ring's inner rim faces the center, the inner ring's outer rim faces away from it\n float light = -sign(d) * dot(nr, vec2(-0.6, 0.8)) * (1.0 - smoothstep(GAP, GAP + RIM, abs(d))) * act;\n col.rgb = light > 0.0 ? mix(col.rgb, vec3(col.a), 0.35 * light) : col.rgb * (1.0 + 0.45 * light);\n col.rgb *= 1.0 - 0.85 * act * (1.0 - smoothstep(GAP - EDGE, GAP + EDGE, abs(d)));\n return col;\n}\n","author":"gre","license":"MIT","description":"The frame is cut into concentric rings that spin like the dials of a combination lock, in alternating directions and blurred with speed, one after another from the center outward; each ring overshoots a little and locks into place on the incoming image","tags":["rotate","circle","rings","motion-blur"],"params":{"rings":{"type":"int","default":6,"min":2,"max":12,"step":1,"description":"Number of rings, from the center to the farthest corner"},"square":{"type":"bool","default":false,"description":"Square rings, like nested frames, instead of round ones"},"turns":{"type":"int","default":1,"min":1,"max":3,"step":1,"description":"Full turns made by each ring"},"stagger":{"type":"float","default":0.5,"min":0,"max":0.8,"description":"Delay between the first ring and the last one, as a part of the transition"},"blur":{"type":"float","default":0.6,"min":0,"max":1,"description":"Amount of angular motion blur while the rings spin fast"},"settle":{"type":"float","default":0.5,"min":0,"max":1,"description":"Size of the overshoot when a ring locks"}},"textures":[],"createdAt":"Mon, 9 Nov 2026 20:48:31 +0100","updatedAt":"Mon, 9 Nov 2026 20:48:31 +0100"},{"name":"RingsWipe","paramsTypes":{"count":"int","center":"vec2","stagger":"float","radial":"bool","borderWidth":"float","borderColor":"vec4","smoothness":"float"},"defaultParams":{"count":6,"center":[0.5,0.5],"stagger":0.5,"radial":false,"borderWidth":0.008,"borderColor":[1,1,1,1],"smoothness":0.004},"glsl":"// Author: gre\n// License: MIT\n// Description: Concentric rings ripple out from the center and, one after another, each sweeps around like a clock hand in the opposite direction of its neighbors to reveal the incoming image, or fills across its width, with optional colored borders between the rings\n// Tags: wipe, circle, radial, rings, clock\n\n// @range(1, 20, 1) Number of rings, from the center to the farthest corner\nuniform int count; // = 6\n// @param Center of the rings, in texture coordinates\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @range(0, 1) Delay between the starts of two rings: 0 moves them all together, 1 starts each one when the previous one is done\nuniform float stagger; // = 0.5\n// @param Each ring fills across its width, outward and inward in turn, instead of sweeping around\nuniform bool radial; // = false\n// @range(0, 0.05) Width of the borders between the rings while they move, in frame heights (0 disables them)\nuniform float borderWidth; // = 0.008\n// @color Color of the borders between the rings\nuniform vec4 borderColor; // = vec4(1.0, 1.0, 1.0, 1.0)\n// @range(0, 0.1) Softness of the edges\nuniform float smoothness; // = 0.004\n\nconst float PI = 3.141592653589793;\n// half width of the antialiased edge, in frame heights\nconst float AA = 0.0015;\n\n// progress of ring i, from 0 (not started) to 1 (done), each ring lasting d and starting\n// k * d after the previous one\nfloat ringProgress(float i, float k, float d, float t) {\n return clamp((t - i * k * d) / d, 0.0, 1.0);\n}\n\n// how much ring i, of width w and progress lp, shows the incoming image at radius rad and\n// turn a (0 to 1)\nfloat ringMask(float i, float lp, float w, float rad, float a, float s) {\n bool odd = mod(i, 2.0) > 0.5;\n if (radial) {\n // the filled part grows across the ring, from its inner edge or from its outer one,\n // starting and ending a soft edge past the ring; measured within the ring, so a ring\n // that has not started does not leak into its neighbor's antialiased boundary\n float e = s / w;\n float f = mix(-e, 1.0 + e, lp);\n float x = clamp((rad - i * w) / w, 0.0, 1.0);\n float dist = (odd ? f - (1.0 - x) : f - x) * w;\n return smoothstep(-s, s, dist);\n }\n // the filled part is a growing arc from the top, clockwise on even rings and\n // counterclockwise on odd ones; both of its ends are soft, and it starts empty and\n // ends full, wrapping around, by a soft edge measured along the circle (no shorter than\n // the softness itself near the center, so the center is not left half blended)\n float aa = odd ? 1.0 - a : a;\n float arc = 2.0 * PI * max(rad, s);\n float e = s / arc;\n float lo = mix(e, -e, lp);\n float hi = mix(-e, 1.0 + e, lp);\n float dist = max(min(aa - lo, hi - aa), min(aa - 1.0 - lo, hi - aa + 1.0));\n return smoothstep(-s, s, dist * arc);\n}\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return b;\n\n float n = float(count < 1 ? 1 : count);\n // measured in square pixels, so the rings are round\n vec2 p = (uv - center) * vec2(ratio, 1.0);\n // the rings reach the farthest corner\n vec2 far = max(center, 1.0 - center) * vec2(ratio, 1.0);\n float R = length(far) + AA;\n float w = R / n;\n float rad = length(p);\n float turn = rad > 0.0 ? fract(atan(p.x, p.y) / (2.0 * PI)) : 0.0;\n float s = max(min(smoothness, 0.25 * w), AA);\n float t = mix(progress, progress * progress * (3.0 - 2.0 * progress), 0.35);\n float k = clamp(stagger, 0.0, 1.0);\n float d = 1.0 / (1.0 + k * (n - 1.0));\n\n // blend the two rings on either side of the nearest boundary, so it is antialiased\n float j = floor(rad / w + 0.5);\n float inner = clamp(j - 1.0, 0.0, n - 1.0);\n float outer = clamp(j, 0.0, n - 1.0);\n float li = ringProgress(inner, k, d, t);\n float lo = ringProgress(outer, k, d, t);\n float m = mix(\n ringMask(inner, li, w, rad, turn, s),\n ringMask(outer, lo, w, rad, turn, s),\n smoothstep(-AA, AA, rad - j * w)\n );\n\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n\n // the border between two rings shows from when the inner one starts until the outer one\n // is done, without dimming when one hands over to the other\n if (borderWidth > 0.0 && j >= 1.0 && j <= n - 1.0) {\n float on = min(1.0, 4.0 * li * (1.0 - lo));\n // never wider than the ring, and thinner than the antialiasing only by fading out\n float hw = min(0.5 * borderWidth, 0.5 * w - AA);\n float line = (1.0 - smoothstep(hw - AA, hw + AA, abs(rad - j * w)))\n * min(1.0, borderWidth / (2.0 * AA));\n float o = borderColor.a * line * on;\n c = vec4(borderColor.rgb * o, o) + c * (1.0 - o);\n }\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Concentric rings ripple out from the center and, one after another, each sweeps around like a clock hand in the opposite direction of its neighbors to reveal the incoming image, or fills across its width, with optional colored borders between the rings","tags":["wipe","circle","radial","rings","clock"],"params":{"count":{"type":"int","default":6,"min":1,"max":20,"step":1,"description":"Number of rings, from the center to the farthest corner"},"center":{"type":"vec2","default":[0.5,0.5],"description":"Center of the rings, in texture coordinates"},"stagger":{"type":"float","default":0.5,"min":0,"max":1,"description":"Delay between the starts of two rings: 0 moves them all together, 1 starts each one when the previous one is done"},"radial":{"type":"bool","default":false,"description":"Each ring fills across its width, outward and inward in turn, instead of sweeping around"},"borderWidth":{"type":"float","default":0.008,"min":0,"max":0.05,"description":"Width of the borders between the rings while they move, in frame heights (0 disables them)"},"borderColor":{"type":"vec4","default":[1,1,1,1],"color":true,"description":"Color of the borders between the rings"},"smoothness":{"type":"float","default":0.004,"min":0,"max":0.1,"description":"Softness of the edges"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:11:21 +0100","updatedAt":"Wed, 4 Nov 2026 20:11:21 +0100"},{"name":"Ripple","paramsTypes":{"amplitude":"float","speed":"float"},"defaultParams":{"amplitude":100,"speed":50},"glsl":"// Author: gre\n// License: MIT\n// Description: Ripples spread from the center while crossfading\n// Tags: ripple, wave, blend\n// @param Frequency of the ripples\nuniform float amplitude; // = 100.0\n// @param Speed of the ripples\nuniform float speed; // = 50.0\n\nvec4 transition (vec2 uv) {\n vec2 dir = uv - vec2(.5);\n float dist = length(dir);\n vec2 offset = dir * (sin(progress * dist * amplitude - progress * speed) + .5) / 30. * progress;\n return mix(\n getFromColor(uv + offset),\n getToColor(uv),\n smoothstep(0.2, 1.0, progress)\n );\n}\n","author":"gre","license":"MIT","description":"Ripples spread from the center while crossfading","tags":["ripple","wave","blend"],"params":{"amplitude":{"type":"float","default":100,"description":"Frequency of the ripples"},"speed":{"type":"float","default":50,"description":"Speed of the ripples"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Rolls","paramsTypes":{"type":"int","RotDown":"bool"},"defaultParams":{"type":0,"RotDown":false},"glsl":"// Author: Mark Craig\n// mrmcsoftware on github and youtube ( http://www.youtube.com/MrMcSoftware )\n// License: MIT\n// Description: The outgoing image rolls away around a corner, revealing the incoming one\n// Tags: rotate, roll\n\n// Rolls Transition by Mark Craig (Copyright © 2022)\n\n// @range(0, 3, 1) Corner to roll around\nuniform int type; // = 0\n// @param Roll the outgoing image down instead of up\nuniform bool RotDown; // = false\n// type (0-3): Rotate/Roll from which corner\n// RotDown: if true rotate old image down, otherwise rotate old image up\n\n#define M_PI 3.14159265358979323846\n\nvec4 transition(vec2 uv)\n{\nfloat theta, c1, s1;\nvec2 iResolution = vec2(ratio, 1.0);\nvec2 uvi;\n// I used if/else instead of switch in case it's an old GPU\nif (type == 0) { theta = (RotDown ? M_PI : -M_PI) / 2.0 * progress; uvi.x = 1.0 - uv.x; uvi.y = uv.y; }\nelse if (type == 1) { theta = (RotDown ? M_PI : -M_PI) / 2.0 * progress; uvi = uv; }\nelse if (type == 2) { theta = (RotDown ? -M_PI : M_PI) / 2.0 * progress; uvi.x = uv.x; uvi.y = 1.0 - uv.y; }\nelse if (type == 3) { theta = (RotDown ? -M_PI : M_PI) / 2.0 * progress; uvi = 1.0 - uv; }\nc1 = cos(theta); s1 = sin(theta);\nvec2 uv2;\nuv2.x = (uvi.x * iResolution.x * c1 - uvi.y * iResolution.y * s1);\nuv2.y = (uvi.x * iResolution.x * s1 + uvi.y * iResolution.y * c1);\nif ((uv2.x >= 0.0) && (uv2.x <= iResolution.x) && (uv2.y >= 0.0) && (uv2.y <= iResolution.y))\n\t{\n\tuv2 /= iResolution;\n\tif (type == 0) { uv2.x = 1.0 - uv2.x; }\n\telse if (type == 2) { uv2.y = 1.0 - uv2.y; }\n\telse if (type == 3) { uv2 = 1.0 - uv2; }\n\treturn(getFromColor(uv2));\n\t}\nreturn(getToColor(uv));\n}\n","author":"Mark Craig","license":"MIT","description":"The outgoing image rolls away around a corner, revealing the incoming one","tags":["rotate","roll"],"params":{"type":{"type":"int","default":0,"min":0,"max":3,"step":1,"description":"Corner to roll around"},"RotDown":{"type":"bool","default":false,"description":"Roll the outgoing image down instead of up"}},"textures":[],"createdAt":"Tue, 4 Apr 2023 03:31:55 -0400","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"RotateScaleFade","paramsTypes":{"center":"vec2","rotations":"float","scale":"float","backColor":"vec4"},"defaultParams":{"center":[0.5,0.5],"rotations":1,"scale":8,"backColor":[0.15,0.15,0.15,1]},"glsl":"// Author: Fernando Kuteken\n// License: MIT\n// Description: The outgoing image spins and zooms while fading to the incoming one, over a background color\n// Tags: rotate, zoom, fade\n\n#define PI 3.14159265359\n\n// @param Center of the rotation\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @param Number of turns\nuniform float rotations; // = 1\n// @param Maximum zoom\nuniform float scale; // = 8\n// @color Background color\nuniform vec4 backColor; // = vec4(0.15, 0.15, 0.15, 1.0)\n\nvec4 transition (vec2 uv) {\n \n vec2 difference = uv - center;\n vec2 dir = normalize(difference);\n float dist = length(difference);\n \n float angle = 2.0 * PI * rotations * progress;\n \n float c = cos(angle);\n float s = sin(angle);\n \n float currentScale = mix(scale, 1.0, 2.0 * abs(progress - 0.5));\n \n vec2 rotatedDir = vec2(dir.x * c - dir.y * s, dir.x * s + dir.y * c);\n vec2 rotatedUv = center + rotatedDir * dist / currentScale;\n \n if (rotatedUv.x < 0.0 || rotatedUv.x > 1.0 ||\n rotatedUv.y < 0.0 || rotatedUv.y > 1.0)\n return backColor;\n \n return mix(getFromColor(rotatedUv), getToColor(rotatedUv), progress);\n}\n","author":"Fernando Kuteken","license":"MIT","description":"The outgoing image spins and zooms while fading to the incoming one, over a background color","tags":["rotate","zoom","fade"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Center of the rotation"},"rotations":{"type":"float","default":1,"description":"Number of turns"},"scale":{"type":"float","default":8,"description":"Maximum zoom"},"backColor":{"type":"vec4","default":[0.15,0.15,0.15,1],"color":true,"description":"Background color"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"RotateScaleVanish","paramsTypes":{"FadeInSecond":"bool","ReverseEffect":"bool","ReverseRotation":"bool"},"defaultParams":{"FadeInSecond":true,"ReverseEffect":false,"ReverseRotation":false},"glsl":"// Author: Mark Craig\n// mrmcsoftware on github and youtube ( http://www.youtube.com/MrMcSoftware )\n// License: MIT\n// Description: The outgoing image spins and shrinks away over the incoming one\n// Tags: rotate, zoom, spin\n\n// RotateScaleVanish Transition by Mark Craig (Copyright © 2022)\n\n// @param Fade in the incoming image\nuniform bool FadeInSecond; // = true\n// @param Run the effect in reverse\nuniform bool ReverseEffect; // = false\n// @param Rotate the other way\nuniform bool ReverseRotation; // = false\n\n#define M_PI 3.14159265358979323846\n#define _TWOPI 6.283185307179586476925286766559\n\nvec4 transition(vec2 uv)\n{\nvec2 iResolution = vec2(ratio, 1.0);\nfloat t = ReverseEffect ? 1.0 - progress : progress;\nfloat theta = ReverseRotation ? _TWOPI * t : -_TWOPI * t;\nfloat c1 = cos(theta);\nfloat s1 = sin(theta);\nfloat rad = max(0.00001, 1.0 - t);\nfloat xc1 = (uv.x - 0.5) * iResolution.x;\nfloat yc1 = (uv.y - 0.5) * iResolution.y;\nfloat xc2 = (xc1 * c1 - yc1 * s1) / rad;\nfloat yc2 = (xc1 * s1 + yc1 * c1) / rad;\nvec2 uv2 = vec2(xc2 + iResolution.x / 2.0, yc2 + iResolution.y / 2.0);\nvec4 col3;\nvec4 ColorTo = ReverseEffect ? getFromColor(uv) : getToColor(uv);\nif ((uv2.x >= 0.0) && (uv2.x <= iResolution.x) && (uv2.y >= 0.0) && (uv2.y <= iResolution.y))\n\t{\n\tuv2 /= iResolution;\n\tcol3 = ReverseEffect ? getToColor(uv2) : getFromColor(uv2);\n\t}\nelse { col3 = FadeInSecond ? vec4(0.0) : ColorTo; } // transparent around the shrinking image\nreturn((1.0 - t) * col3 + t * ColorTo); // could have used mix\n}\n","author":"Mark Craig","license":"MIT","description":"The outgoing image spins and shrinks away over the incoming one","tags":["rotate","zoom","spin"],"params":{"FadeInSecond":{"type":"bool","default":true,"description":"Fade in the incoming image"},"ReverseEffect":{"type":"bool","default":false,"description":"Run the effect in reverse"},"ReverseRotation":{"type":"bool","default":false,"description":"Rotate the other way"}},"textures":[],"createdAt":"Tue, 4 Apr 2023 03:31:48 -0400","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"SawtoothWipe","paramsTypes":{"direction":"vec2","teeth":"int","depth":"float","jaws":"bool","smoothness":"float"},"defaultParams":{"direction":[1,0],"teeth":8,"depth":1,"jaws":false,"smoothness":0.004},"glsl":"// Author: gre\n// License: MIT\n// Description: A wipe whose edge is a row of sharp, regular triangular teeth sweeps across the frame, or two toothed edges that start interlocked part from the middle like jaws opening\n// Tags: wipe, shape, directional, zigzag\n\n// @param Direction the toothed edge moves toward (with jaws, the axis along which the two edges part)\nuniform vec2 direction; // = vec2(1.0, 0.0)\n// @range(1, 40, 1) Number of teeth along the edge\nuniform int teeth; // = 8\n// @range(0, 3) Length of the teeth, relative to their width\nuniform float depth; // = 1.0\n// @param Two toothed edges part from the middle instead of one sweeping across\nuniform bool jaws; // = false\n// @range(0, 0.1) Softness of the edge\nuniform float smoothness; // = 0.004\n\n// half width of the antialiased edge, in frame heights\nconst float AA = 0.0015;\n\n// signed distance to a zigzag line of period w and peak-to-peak height h, centered on y = 0,\n// its tips pointing up at x = 0; positive above it\nfloat zigzag(vec2 q, float w, float h) {\n // fold into half a tooth: the slope from the bottom of a notch to the tip of a tooth\n float x = abs(fract(q.x / w) - 0.5) * w;\n vec2 a = vec2(0.0, -0.5 * h);\n vec2 ab = vec2(0.5 * w, h);\n vec2 aq = vec2(x, q.y) - a;\n float d = length(aq - ab * clamp(dot(aq, ab) / dot(ab, ab), 0.0, 1.0));\n return q.y > h * (2.0 * x / w - 0.5) ? d : -d;\n}\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return b;\n\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n // measured in square pixels, so the teeth are not stretched\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n // half extents of the frame along the direction and across it\n float e = 0.5 * (abs(dir.x) * ratio + abs(dir.y));\n float w = 0.5 * (abs(dir.y) * ratio + abs(dir.x));\n float period = 2.0 * w / float(teeth < 1 ? 1 : teeth);\n // position across the edge, with the notches on the sides of the frame so that it shows\n // whole teeth, and along the direction\n vec2 q = vec2(dot(p, vec2(-dir.y, dir.x)) + w + 0.5 * period, dot(p, dir));\n float h = max(depth, 0.0) * period;\n // the soft edge never gets wide enough to blur small teeth away\n float s = max(min(smoothness, 0.25 * period), AA);\n float t = mix(progress, progress * progress * (3.0 - 2.0 * progress), 0.35);\n\n float d;\n if (jaws) {\n // the two edges are the same zigzag, interlocked at the start (crossed by the soft\n // edge, measured across the slopes of the teeth), then moving apart until each one\n // has left the frame on its side\n float overlap = s * sqrt(1.0 + 4.0 * h * h / (period * period));\n float o = mix(-overlap, e + 0.5 * h + s, t);\n d = max(zigzag(q - vec2(0.0, o), period, h), -zigzag(q + vec2(0.0, o), period, h));\n } else {\n // the edge starts fully ahead of the frame and ends fully past it\n float c = mix(-e - 0.5 * h - s, e + 0.5 * h + s, t);\n d = zigzag(q - vec2(0.0, c), period, h);\n }\n // > 0 where the incoming image shows\n float m = 1.0 - smoothstep(-s, s, d);\n\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"A wipe whose edge is a row of sharp, regular triangular teeth sweeps across the frame, or two toothed edges that start interlocked part from the middle like jaws opening","tags":["wipe","shape","directional","zigzag"],"params":{"direction":{"type":"vec2","default":[1,0],"description":"Direction the toothed edge moves toward (with jaws, the axis along which the two edges part)"},"teeth":{"type":"int","default":8,"min":1,"max":40,"step":1,"description":"Number of teeth along the edge"},"depth":{"type":"float","default":1,"min":0,"max":3,"description":"Length of the teeth, relative to their width"},"jaws":{"type":"bool","default":false,"description":"Two toothed edges part from the middle instead of one sweeping across"},"smoothness":{"type":"float","default":0.004,"min":0,"max":0.1,"description":"Softness of the edge"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 16:31:59 +0100","updatedAt":"Wed, 4 Nov 2026 16:31:59 +0100"},{"name":"Shatter","paramsTypes":{"center":"vec2","shards":"float","gravity":"float","seed":"float"},"defaultParams":{"center":[0.5,0.5],"shards":6,"gravity":1,"seed":0},"glsl":"// Author: lbl\n// License: MIT\n// Description: The outgoing image cracks like a pane of glass from an impact point, then its shards break loose from the impact outward, tumbling in 3D and falling away with gravity to reveal the incoming image behind\n// Tags: shatter, fragments, glass, 3d\n\n// @param Impact point where the cracks start, from (0, 0) at the bottom left to (1, 1) at the top right\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @range(3, 8) Approximate number of rows of shards across the height of the frame\nuniform float shards; // = 6.0\n// @range(0.5, 3) Strength of the gravity: the shards fall faster, and break loose over a longer time\nuniform float gravity; // = 1.0\n// @param Random seed: another value gives other shards, tumbling another way\nuniform float seed; // = 0.0\n\n// distance from the camera to the pane, as a part of the frame's height\nconst float EYE = 2.5;\n// how far the corners of the shards are moved from a regular grid, as a part of a cell\nconst float JITTER = 0.32;\n// width of the anti-aliased edges, the crack lines and the bevels, as a part of the frame's height\nconst float EDGE = 0.0012;\nconst float CRACK_WIDTH = 0.0025;\nconst float BEVEL = 0.006;\n\nvec3 hash32(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * vec3(0.1031, 0.1030, 0.0973));\n p3 += dot(p3, p3.yxz + 33.33);\n return fract((p3.xxy + p3.yzz) * p3.zyx);\n}\n\nfloat cellSize() {\n return 1.0 / clamp(shards, 3.0, 8.0);\n}\n\nvec2 seedOffset() {\n return vec2(37.0, 17.0) * floor(seed);\n}\n\n// a corner of the cracks: the point p of a grid, moved at random\nvec2 corner(vec2 p) {\n return (p + JITTER * (2.0 * hash32(p + seedOffset()).xy - 1.0)) * cellSize();\n}\n\n// signed distance from q to the line a -> b, positive on its left\nfloat side(vec2 q, vec2 a, vec2 b) {\n vec2 d = b - a;\n return (d.x * (q.y - a.y) - d.y * (q.x - a.x)) / length(d);\n}\n\n// the cell c is cut into two triangular shards along one of its diagonals, picked at random\nbool diagonalUp(vec2 c) {\n return hash32(c + seedOffset() + 0.5).z > 0.5;\n}\n\n// distance from q to the edges of the triangle p0 p1 p2 (counterclockwise), positive inside\nfloat triangleDist(vec2 q, vec2 p0, vec2 p1, vec2 p2) {\n return min(min(side(q, p0, p1), side(q, p1, p2)), side(q, p2, p0));\n}\n\n// the shard that contains q on the unbroken pane: (its cell, its triangle, the distance from q to its nearest crack)\nvec4 locate(vec2 q) {\n vec2 c = floor(q / cellSize());\n // the cells' sides are not straight: step to the neighbor cell when q is beyond one of them\n vec2 a, b, cc, d;\n for (int i = 0; i < 2; i++) {\n a = corner(c);\n b = corner(c + vec2(1.0, 0.0));\n cc = corner(c + 1.0);\n d = corner(c + vec2(0.0, 1.0));\n c.x += side(q, d, a) < 0.0 ? -1.0 : (side(q, b, cc) < 0.0 ? 1.0 : 0.0);\n a = corner(c);\n b = corner(c + vec2(1.0, 0.0));\n cc = corner(c + 1.0);\n d = corner(c + vec2(0.0, 1.0));\n c.y += side(q, a, b) < 0.0 ? -1.0 : (side(q, cc, d) < 0.0 ? 1.0 : 0.0);\n }\n a = corner(c);\n b = corner(c + vec2(1.0, 0.0));\n cc = corner(c + 1.0);\n d = corner(c + vec2(0.0, 1.0));\n bool up = diagonalUp(c);\n float d0 = up ? triangleDist(q, a, b, cc) : triangleDist(q, a, b, d);\n float d1 = up ? triangleDist(q, a, cc, d) : triangleDist(q, b, cc, d);\n return vec4(c, d1 > d0 ? 1.0 : 0.0, abs(max(d0, d1)));\n}\n\n// Rodrigues' rotation of v around the unit axis k\nvec3 rotate(vec3 v, vec3 k, float angle) {\n float c = cos(angle), s = sin(angle);\n return v * c + cross(k, v) * s + k * dot(k, v) * (1.0 - c);\n}\n\nvec2 impact() {\n return clamp(center, 0.0, 1.0) * vec2(ratio, 1.0);\n}\n\n// distance from the impact to the farthest corner of the frame\nfloat reach() {\n vec2 c = impact();\n return length(max(c, vec2(ratio, 1.0) - c));\n}\n\n// how far below its center a shard must fall to leave the frame\nfloat fallMargin() {\n return 0.1 + 1.5 * cellSize();\n}\n\n// the time a shard breaks loose: the nearer the impact the sooner, and late enough to fall out of the frame by the end\n// (dn: its distance to the impact, as a part of the reach)\nfloat releaseTime(vec2 mid, float dn, float h, float g, float margin) {\n float latest = max(0.98 - sqrt(2.0 * (mid.y + margin) / g), 0.04);\n return 0.04 + (latest - 0.04) * (0.8 * pow(dn, 0.8) + 0.2 * h);\n}\n\n// a flash at the impact, at the start\nfloat flash(vec2 q) {\n float f = sin(3.141592653589793 * clamp(progress / 0.12, 0.0, 1.0));\n vec2 d = q - impact();\n return 0.6 * f * exp(-dot(d, d) / (0.004 + 0.02 * progress));\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n float s = cellSize();\n vec2 a = vec2(uv.x * ratio, uv.y);\n vec3 eye = vec3(0.5 * ratio, 0.5, -EYE);\n vec3 ray = vec3(a, 0.0) - eye;\n vec3 light = normalize(vec3(-0.35, 0.55, -1.0));\n vec3 halfway = normalize(light - normalize(ray));\n float g = 12.0 * clamp(gravity, 0.5, 3.0);\n vec2 imp = impact();\n float rch = reach();\n float margin = fallMargin();\n // the cracks run from the impact to the farthest corner, before the last shards break loose\n float crackTime = clamp(0.6 * (0.94 - sqrt(2.0 * (1.0 + margin) / g)), 0.05, 0.22);\n\n // the part of the pane still in place, behind the loose shards\n vec4 pane = vec4(0.0);\n float paneDepth = 1e9;\n vec4 here = locate(a);\n vec2 hc = here.xy;\n vec2 ha = corner(hc), hb = corner(hc + vec2(1.0, 0.0)), hcc = corner(hc + 1.0), hd = corner(hc + vec2(0.0, 1.0));\n bool hup = diagonalUp(hc);\n vec2 hcenter = here.z < 0.5 ? (hup ? ha + hb + hcc : ha + hb + hd) : (hup ? ha + hcc + hd : hb + hcc + hd);\n vec3 hh = hash32(hc + vec2(0.31, 0.57) * (here.z + 1.0) + seedOffset());\n hcenter /= 3.0;\n if (progress < releaseTime(hcenter, clamp(length(hcenter - imp) / rch, 0.0, 1.0), hh.x, g, margin)) {\n vec4 col = getFromColor(uv);\n float crack = clamp((progress - crackTime * length(a - imp) / rch) / 0.03, 0.0, 1.0);\n // cracked shards settle at slightly different angles (no change while flat: dot(n, light) = -light.z)\n vec3 n = rotate(vec3(0.0, 0.0, -1.0), normalize(vec3(hh.yz - 0.5, 0.0) + 1e-4), 0.06 * crack * (hh.x - 0.5));\n col.rgb *= 1.0 + 1.2 * (dot(n, light) + light.z);\n col.rgb += crack * 0.35 * pow(max(dot(n, halfway), 0.0), 400.0) * col.a;\n float line = crack * (1.0 - smoothstep(0.0, CRACK_WIDTH, here.w));\n col.rgb = mix(col.rgb, vec3(0.95, 0.98, 1.0) * col.a, 0.85 * line);\n pane = col;\n paneDepth = 1.0;\n }\n\n // the two nearest loose shards: depth along the ray, color, coverage\n float t1 = 1e9, t2 = 1e9;\n vec4 c1 = vec4(0.0), c2 = vec4(0.0);\n float a1 = 0.0, a2 = 0.0;\n float shadow = 0.0;\n\n // the shards that broke loose, searched in the cells around and above the pixel since they fall,\n // looking a bit toward the impact and the middle since they drift away and grow toward the camera\n vec2 look = a - 0.06 * progress * (a - imp) / rch - (a - eye.xy) * 0.06 * progress;\n vec2 g0 = floor(look / s) - 1.0;\n float rows = ceil(1.0 / s);\n for (int ri = 0; ri < 11; ri++) {\n float j = g0.y + float(ri);\n if (j > rows) break;\n if (j < -1.0) continue;\n for (int ci = 0; ci < 3; ci++) {\n vec2 c = vec2(g0.x + float(ci), j);\n vec2 ca = corner(c), cb = corner(c + vec2(1.0, 0.0)), ccc = corner(c + 1.0), cd = corner(c + vec2(0.0, 1.0));\n bool up = diagonalUp(c);\n for (int k = 0; k < 2; k++) {\n // the corners of the triangle k of the cell, counterclockwise\n vec2 p0 = (k == 1 && !up) ? cb : ca;\n vec2 p1 = k == 0 ? cb : ccc;\n vec2 p2 = (k == 0 && up) ? ccc : cd;\n vec2 mid = (p0 + p1 + p2) / 3.0;\n vec3 h1 = hash32(c + vec2(0.31, 0.57) * float(k + 1) + seedOffset());\n vec2 away = mid - imp;\n float dist = length(away);\n float dn = clamp(dist / rch, 0.0, 1.0);\n float e = progress - releaseTime(mid, dn, h1.x, g, margin);\n if (e <= 0.0) continue;\n vec3 h2 = hash32(c + vec2(0.73, 0.19) * float(k + 1) + seedOffset());\n // pushed away from the impact and toward the camera, spinning around a random axis, falling\n float near = 1.0 - dn;\n vec3 vel = vec3(away / max(dist, 1e-3) * (0.03 + 0.08 * h1.y) * (0.4 + near), -(0.05 + 0.2 * near * h1.z));\n vec3 pos = vec3(mid, 0.0) + vel * e - vec3(0.0, 0.5 * g * e * e, 0.0);\n // already out of the frame\n if (pos.y + 1.5 * s < -0.05) continue;\n vec3 axis = normalize(vec3(h2.x - 0.5, h2.y - 0.5, 0.3 * (h2.z - 0.5)) + 1e-4);\n float angle = (3.0 + 5.0 * h2.z) * (h2.x < 0.5 ? -1.0 : 1.0) * e;\n vec3 n = rotate(vec3(0.0, 0.0, -1.0), axis, angle);\n float rel = smoothstep(0.0, 0.04, e);\n\n // the camera ray, hidden behind the pane still in place\n float den = dot(ray, n);\n float t = dot(pos - eye, n) / (abs(den) > 1e-4 ? den : 1e-4);\n vec2 q = mid + rotate(eye + t * ray - pos, axis, -angle).xy;\n float border = min(min(q.x, ratio - q.x), min(q.y, 1.0 - q.y));\n float inside = triangleDist(q, p0, p1, p2);\n float ed = min(inside, border);\n if (t > 0.0 && t < t2 && t < paneDepth && ed > 0.0) {\n vec3 nf = den > 0.0 ? -n : n;\n vec4 col = getFromColor(vec2(q.x / ratio, q.y));\n col.rgb *= mix(1.0, clamp(dot(nf, light) / -light.z, 0.45, 1.1), rel);\n float glint = max(dot(nf, halfway), 0.0);\n col.rgb += rel * 0.3 * pow(glint, 60.0) * col.a;\n // the crack line it carried turns into a bright bevel\n float line = 0.85 * (1.0 - smoothstep(0.0, CRACK_WIDTH, inside)) * (1.0 - rel);\n float bevel = 0.8 * rel * (1.0 - smoothstep(0.0, BEVEL, ed)) * (0.3 + 0.7 * pow(glint, 6.0));\n col.rgb = mix(col.rgb, vec3(0.92, 0.97, 0.97) * col.a, max(line, bevel));\n float cover = mix(1.0, smoothstep(0.0, 2.0 * EDGE, ed), rel);\n if (t < t1) {\n t2 = t1; c2 = c1; a2 = a1;\n t1 = t; c1 = col; a1 = cover;\n } else {\n t2 = t; c2 = col; a2 = cover;\n }\n }\n\n // the shadow on the pane and on the incoming image behind\n float lden = dot(light, n);\n float ts = dot(pos - vec3(a, 0.0), n) / (abs(lden) > 1e-4 ? lden : 1e-4);\n vec2 qs = mid + rotate(vec3(a, 0.0) + ts * light - pos, axis, -angle).xy;\n float eds = min(triangleDist(qs, p0, p1, p2), min(min(qs.x, ratio - qs.x), min(qs.y, 1.0 - qs.y)));\n if (ts > 0.0 && eds > 0.0) {\n shadow = max(shadow, rel * smoothstep(0.0, 0.004 + 0.08 * ts, eds) * 0.45 * (1.0 - smoothstep(0.1, 0.9, ts)));\n }\n }\n }\n }\n\n // the incoming image behind, then the pane still in place, then the loose shards in front\n vec4 back = getToColor(uv);\n back.rgb *= 1.0 - shadow;\n pane.rgb *= 1.0 - shadow;\n if (paneDepth == 1.0) back = pane;\n vec4 color = c1 * a1 + c2 * min(a2, 1.0 - a1) + back * max(1.0 - a1 - a2, 0.0);\n color.rgb += flash(a) * color.a;\n return color;\n}\n","author":"lbl","license":"MIT","description":"The outgoing image cracks like a pane of glass from an impact point, then its shards break loose from the impact outward, tumbling in 3D and falling away with gravity to reveal the incoming image behind","tags":["shatter","fragments","glass","3d"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Impact point where the cracks start, from (0, 0) at the bottom left to (1, 1) at the top right"},"shards":{"type":"float","default":6,"min":3,"max":8,"description":"Approximate number of rows of shards across the height of the frame"},"gravity":{"type":"float","default":1,"min":0.5,"max":3,"description":"Strength of the gravity: the shards fall faster, and break loose over a longer time"},"seed":{"type":"float","default":0,"description":"Random seed: another value gives other shards, tumbling another way"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sat, 7 Nov 2026 23:12:12 +0100"},{"name":"Shred","paramsTypes":{"strips":"int","stagger":"float","tilt":"float","shadow":"float"},"defaultParams":{"strips":20,"stagger":0.4,"tilt":0.1,"shadow":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image is cut into paper strips that drop away at uneven speeds, tilting as they fall, revealing the incoming image\n// Tags: slices, stripes, vertical, shadow\n\n// @range(4, 60, 1) Number of strips\nuniform int strips; // = 20\n// @range(0, 0.8) Spread of the strips' start times, as a part of the transition\nuniform float stagger; // = 0.4\n// @range(0, 0.3) Largest tilt of a falling strip, in radians\nuniform float tilt; // = 0.1\n// @range(0, 1) Darkness of the strips' cut edges and of their shadow\nuniform float shadow; // = 0.5\n\n// a deterministic random value in [0, 1) for each strip\nfloat hash (float n) {\n n = fract(n * 0.1031);\n n *= n + 33.33;\n n *= n + n;\n return fract(n);\n}\n\nvec4 transition (vec2 uv) {\n float n = float(strips);\n float w = ratio / n; // strip width, in frame heights\n vec2 q = vec2(uv.x * ratio, uv.y);\n vec4 color = getToColor(uv);\n float cover = -1.0;\n float shade = 0.0;\n // narrow strips tilt less, so that they only reach over their neighbours\n float maxTilt = min(tilt, 2.0 * w);\n for (int d = -3; d <= 3; d++) {\n float i = floor(uv.x * n) + float(d);\n if (i < 0.0 || i > n - 1.0) continue;\n // about one strip in five starts right away\n float delay = stagger * max(0.0, 1.25 * hash(i + 1.0) - 0.25);\n float speed = 1.0 + 0.5 * hash(i + 71.0);\n float t = clamp((progress - delay) / (1.0 - delay), 0.0, 1.0);\n // a pull then a fall that speeds up, long enough to leave the frame\n float fall = (0.4 * t + 0.6 * t * t) * (1.0 + w * (0.5 + tilt)) * speed;\n float angle = maxTilt * (2.0 * hash(i + 37.0) - 1.0) * t;\n // the strips are cut apart as they start moving\n float lift = min(1.0, 8.0 * t);\n float gap = 0.06 * w * lift;\n // position in the strip's own frame, relative to its center\n vec2 v = q - vec2((i + 0.5) * w, 0.5 - fall);\n float ca = cos(angle), sa = sin(angle);\n vec2 l = vec2(ca * v.x + sa * v.y, ca * v.y - sa * v.x);\n vec2 edge = vec2(0.5 * w - gap, 0.5) - abs(l);\n // a soft shadow, cast down and right by the moving strip\n vec2 so = abs(l - lift * vec2(0.15 * w, -0.25 * w)) - vec2(0.5 * w - gap, 0.5);\n shade = max(shade, lift * (1.0 - smoothstep(0.0, 0.5 * w, max(so.x, so.y))));\n if (min(edge.x, edge.y) >= 0.0 && fall > cover) {\n vec2 p = vec2((i + 0.5) * w + l.x, 0.5 + l.y);\n vec4 img = getFromColor(vec2(p.x / ratio, p.y));\n // darker cut edges\n float cut = lift * (1.0 - smoothstep(0.0, 0.25 * w, edge.x));\n color = vec4(img.rgb * (1.0 - 0.5 * shadow * cut), img.a);\n cover = fall;\n }\n }\n if (cover < 0.0) {\n color = vec4(color.rgb * (1.0 - 0.6 * shadow * shade), color.a);\n }\n return color;\n}\n","author":"gre","license":"MIT","description":"The outgoing image is cut into paper strips that drop away at uneven speeds, tilting as they fall, revealing the incoming image","tags":["slices","stripes","vertical","shadow"],"params":{"strips":{"type":"int","default":20,"min":4,"max":60,"step":1,"description":"Number of strips"},"stagger":{"type":"float","default":0.4,"min":0,"max":0.8,"description":"Spread of the strips' start times, as a part of the transition"},"tilt":{"type":"float","default":0.1,"min":0,"max":0.3,"description":"Largest tilt of a falling strip, in radians"},"shadow":{"type":"float","default":0.5,"min":0,"max":1,"description":"Darkness of the strips' cut edges and of their shadow"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:17:22 +0100","updatedAt":"Sat, 31 Oct 2026 18:17:22 +0100"},{"name":"SimpleFlip","paramsTypes":{},"defaultParams":{},"glsl":"// Author: nwoeanhinnogaehr\n// License: MIT\n// Description: The outgoing image flips around the vertical axis into the incoming one\n// Tags: flip, horizontal\n// Ported from https://gist.github.com/nwoeanhinnogaehr/408045772d255df97520\n\nvec4 transition(vec2 uv) {\n vec2 q = uv;\n uv.x = (uv.x - 0.5) / abs(progress - 0.5) * 0.5 + 0.5;\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n // Transparent beside the flipping image\n return mix(a, b, step(0.5, progress)) * step(abs(q.x - 0.5), abs(progress - 0.5));\n}\n","author":"nwoeanhinnogaehr","license":"MIT","description":"The outgoing image flips around the vertical axis into the incoming one","tags":["flip","horizontal"],"params":{},"textures":[],"createdAt":"Sun, 29 Mar 2026 20:32:54 +0200","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"SimpleZoom","paramsTypes":{"zoom_quickness":"float"},"defaultParams":{"zoom_quickness":0.8},"glsl":"// Author: 0gust1\n// License: MIT\n// Description: Zooms into the outgoing image, then fades to the incoming one\n// Tags: zoom, fade\n\n// @range(0.2, 1) Part of the transition spent zooming\nuniform float zoom_quickness; // = 0.8\nvec2 zoom(vec2 uv, float amount) {\n return 0.5 + ((uv - 0.5) * (1.0-amount));\t\n}\n\nvec4 transition (vec2 uv) {\n float nQuick = clamp(zoom_quickness,0.2,1.0);\n return mix(\n getFromColor(zoom(uv, smoothstep(0.0, nQuick, progress))),\n getToColor(uv),\n smoothstep(nQuick-0.2, 1.0, progress)\n );\n}","author":"0gust1","license":"MIT","description":"Zooms into the outgoing image, then fades to the incoming one","tags":["zoom","fade"],"params":{"zoom_quickness":{"type":"float","default":0.8,"min":0.2,"max":1,"description":"Part of the transition spent zooming"}},"textures":[],"createdAt":"Tue, 6 Mar 2018 00:43:47 +0100","updatedAt":"Sat, 10 Oct 2026 10:11:31 +0200"},{"name":"SimpleZoomOut","paramsTypes":{"zoom_quickness":"float","fade":"bool"},"defaultParams":{"zoom_quickness":0.8,"fade":true},"glsl":"// Author: Tianshuo\n// License: MIT\n// Description: The incoming image zooms out into place while fading in\n// Tags: zoom, fade\n\n\n// @range(0.2, 1) Part of the transition spent zooming\nuniform float zoom_quickness; // = 0.8\n// @param Fade instead of cutting to the incoming image\nuniform bool fade; // = true\nvec2 zoom(vec2 uv, float amount) {\n return 0.5 + ((uv - 0.5) * (1.0-amount));\t\n}\n\nvec4 transition (vec2 uv) {\n float nQuick = clamp(zoom_quickness,0.2,1.0);\n return mix(\n getFromColor(uv),\n getToColor(zoom(uv,1.-smoothstep(1.-nQuick, 1., progress))),\n fade?smoothstep(1.0-nQuick, 1., progress):(progress<1.0-nQuick?0.0:1.0)\n );\n}\n","author":"Tianshuo","license":"MIT","description":"The incoming image zooms out into place while fading in","tags":["zoom","fade"],"params":{"zoom_quickness":{"type":"float","default":0.8,"min":0.2,"max":1,"description":"Part of the transition spent zooming"},"fade":{"type":"bool","default":true,"description":"Fade instead of cutting to the incoming image"}},"textures":[],"createdAt":"Sun, 29 Mar 2026 19:32:53 +0200","updatedAt":"Sat, 10 Oct 2026 10:11:31 +0200"},{"name":"SketchDissolve","paramsTypes":{"lineWidth":"float","edges":"float","hatching":"float","paper":"vec4","ink":"vec4"},"defaultParams":{"lineWidth":1.5,"edges":1,"hatching":0.6,"paper":[0.96,0.94,0.89,1],"ink":[0.16,0.16,0.2,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image fades back to blank paper while the incoming one is drawn on it in pencil, outlines first and then hatching in the shadows, before its shading and colors fill in until the picture is complete\n// Tags: pencil, drawing, sketch, edges, dissolve\n\n// @range(0.5, 4) Thickness of the pencil outlines, in thousandths of the frame height\nuniform float lineWidth; // = 1.5\n// @range(0, 2) How many outlines are drawn: higher also traces the fainter edges of the picture\nuniform float edges; // = 1.0\n// @range(0, 1) Amount of diagonal hatching drawn in the shadows\nuniform float hatching; // = 0.6\n// @color Color of the paper\nuniform vec4 paper; // = vec4(0.96, 0.94, 0.89, 1.0)\n// @color Color of the pencil\nuniform vec4 ink; // = vec4(0.16, 0.16, 0.2, 1.0)\n\nfloat sdHash (vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\nfloat sdNoise (vec2 p) {\n vec2 i = floor(p);\n vec2 f = fract(p);\n f = f * f * (3.0 - 2.0 * f);\n return mix(\n mix(sdHash(i), sdHash(i + vec2(1.0, 0.0)), f.x),\n mix(sdHash(i + vec2(0.0, 1.0)), sdHash(i + vec2(1.0, 1.0)), f.x),\n f.y\n );\n}\n\n// luma and alpha of the incoming image: outlines follow both\nvec2 sdTone (vec2 uv) {\n vec4 c = getToColor(uv);\n return vec2(dot(c.rgb, vec3(0.299, 0.587, 0.114)), c.a);\n}\n\n// one family of hatching strokes along direction d, as thick as the shadow is dark\nfloat sdHatch (vec2 q, vec2 d, float dark) {\n float s = dot(q, d) * 60.0 + 0.5 * sdNoise(q * 9.0 + d * 13.0);\n float row = floor(s);\n // each row is made of strokes of uneven length and pressure, with small gaps\n float along = dot(q, vec2(-d.y, d.x)) * 8.0 + sdHash(vec2(row, d.y * 7.0)) * 5.0;\n float cell = floor(along);\n float k = sdHash(vec2(row, cell) + d * 31.0);\n float gap = smoothstep(0.0, 0.12, fract(along)) * (1.0 - smoothstep(0.75 - 0.2 * k, 1.0, fract(along)));\n float w = 0.5 * clamp(dark, 0.0, 1.0) * (0.7 + 0.3 * k);\n return (1.0 - smoothstep(w - 0.24, w, abs(fract(s) - 0.5))) * gap * (0.6 + 0.4 * k);\n}\n\nvec4 transition (vec2 uv) {\n vec2 q = vec2(uv.x * ratio, uv.y);\n // a slightly wobbly hand: the outlines are traced a bit off the real edges\n vec2 wob = (vec2(sdNoise(q * 6.0), sdNoise(q * 6.0 + 17.0)) - 0.5) * 0.004;\n vec2 su = uv + wob * (1.0 - progress);\n vec2 dx = vec2(0.001 * lineWidth / ratio, 0.0);\n vec2 dy = vec2(0.0, 0.001 * lineWidth);\n vec2 tl = sdTone(su - dx + dy), tm = sdTone(su + dy), tr = sdTone(su + dx + dy);\n vec2 ml = sdTone(su - dx), mr = sdTone(su + dx);\n vec2 bl = sdTone(su - dx - dy), bm = sdTone(su - dy), br = sdTone(su + dx - dy);\n vec2 gx = (tr + 2.0 * mr + br) - (tl + 2.0 * ml + bl);\n vec2 gy = (tl + 2.0 * tm + tr) - (bl + 2.0 * bm + br);\n float g = max(length(vec2(gx.x, gy.x)), length(vec2(gx.y, gy.y))) * max(edges, 0.0);\n float outline = smoothstep(0.12, 0.5, g);\n vec4 toC = getToColor(uv);\n float l = clamp((tm.x + bm.x + ml.x + mr.x) * 0.25, 0.0, 1.0);\n\n // graphite grain, and the order in which the strokes are laid down\n float grain = 0.65 + 0.35 * sdNoise(q * vec2(180.0, 60.0));\n float order = sdNoise(q * 3.0 + 4.0);\n float fine = sdNoise(q * 24.0);\n float drawOutline = smoothstep(0.0, 0.1, progress - (0.22 * order + 0.05 * fine));\n float drawHatch = smoothstep(0.0, 0.12, progress - (0.2 + 0.2 * order + 0.05 * fine));\n\n // the shading builds up from the darkest parts to the lightest, then the colors come in\n float fill = smoothstep(0.0, 0.22, progress - (0.4 + 0.25 * l + 0.1 * order));\n\n // hatching: one direction in the shadows, crossed in the darkest parts\n float dark = 1.0 - l;\n float h1 = sdHatch(q, vec2(0.7071, 0.7071), smoothstep(0.35, 0.9, dark));\n float h2 = sdHatch(q, vec2(0.7071, -0.7071), smoothstep(0.65, 1.0, dark));\n float hatch = hatching * 0.8 * max(h1, 0.8 * h2) * toC.a;\n\n // the hatching is absorbed by the shading as it fills in\n hatch *= drawHatch * (1.0 - 0.6 * fill);\n float pencil = max(outline * drawOutline, hatch) * grain;\n // the pencil lines give way to the finished picture at the end\n pencil *= 1.0 - smoothstep(0.7, 1.0, progress);\n\n // the outgoing image fades back to paper\n vec4 base = mix(getFromColor(uv), paper, smoothstep(0.02, 0.38, progress));\n float sat = smoothstep(0.55, 1.0, progress);\n vec4 tone = vec4(paper.rgb * mix(0.3, 1.0, l), paper.a * toC.a);\n vec4 col = mix(tone, toC, sat);\n base = mix(base, col, fill);\n return mix(base, ink, pencil);\n}\n","author":"gre","license":"MIT","description":"The outgoing image fades back to blank paper while the incoming one is drawn on it in pencil, outlines first and then hatching in the shadows, before its shading and colors fill in until the picture is complete","tags":["pencil","drawing","sketch","edges","dissolve"],"params":{"lineWidth":{"type":"float","default":1.5,"min":0.5,"max":4,"description":"Thickness of the pencil outlines, in thousandths of the frame height"},"edges":{"type":"float","default":1,"min":0,"max":2,"description":"How many outlines are drawn: higher also traces the fainter edges of the picture"},"hatching":{"type":"float","default":0.6,"min":0,"max":1,"description":"Amount of diagonal hatching drawn in the shadows"},"paper":{"type":"vec4","default":[0.96,0.94,0.89,1],"color":true,"description":"Color of the paper"},"ink":{"type":"vec4","default":[0.16,0.16,0.2,1],"color":true,"description":"Color of the pencil"}},"textures":[],"createdAt":"Fri, 6 Nov 2026 20:57:10 +0100","updatedAt":"Fri, 6 Nov 2026 20:57:10 +0100"},{"name":"SlideAwayRight","paramsTypes":{},"defaultParams":{},"glsl":"// Author: lizhongjian\n// License: MIT\n// Description: The outgoing image slides to the right, uncovering a crossfade to the incoming one\n// Tags: slide, horizontal, blend\n\nvec4 transition (vec2 uv) {\n vec2 newUV = uv;\n newUV.x -= progress;\n if(uv.x >= progress)\n {\n return getFromColor(newUV);\n }\n\n \n return mix(\n getFromColor(uv),\n getToColor(uv),\n progress\n );\n}\n","author":"lizhongjian","license":"MIT","description":"The outgoing image slides to the right, uncovering a crossfade to the incoming one","tags":["slide","horizontal","blend"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Slides","paramsTypes":{"type":"int","In":"bool"},"defaultParams":{"type":0,"In":false},"glsl":"// Author: Mark Craig\n// mrmcsoftware on github and youtube ( http://www.youtube.com/MrMcSoftware )\n// License: MIT\n// Description: The outgoing image slides out, or the incoming one slides in, toward an edge, a corner or the center\n// Tags: slide, directional\n\n// Slides Transition by Mark Craig (Copyright © 2022)\n\nuniform int type; // = 0\n// @param Slide the incoming image in instead of the outgoing one out\nuniform bool In; // = false\n// type: slide to/from which edge, which corner, or center\n// In: if true slide new image in, otherwise slide old image out\n\n#define rad2 rad / 2.0\n\nvec4 transition(vec2 uv)\n{\nvec2 uv0 = uv;\nfloat rad = In ? progress : 1.0 - progress;\nfloat xc1, yc1;\n// I used if/else instead of switch in case it's an old GPU\nif (type == 0) { xc1 = .5 - rad2; yc1 = 0.0; }\nelse if (type == 1) { xc1 = 1.0 - rad; yc1 = .5 - rad2; }\nelse if (type == 2) { xc1 = .5 - rad2; yc1 = 1.0 - rad; }\nelse if (type == 3) { xc1 = 0.0; yc1 = .5 - rad2; }\nelse if (type == 4) { xc1 = 1.0 - rad; yc1 = 0.0; }\nelse if (type == 5) { xc1 = 1.0 - rad; yc1 = 1.0 - rad; }\nelse if (type == 6) { xc1 = 0.0; yc1 = 1.0 - rad; }\nelse if (type == 7) { xc1 = 0.0; yc1 = 0.0; }\nelse if (type == 8) { xc1 = .5 - rad2; yc1 = .5 - rad2; }\nuv.y = 1.0 - uv.y;\nvec2 uv2;\nif ((uv.x >= xc1) && (uv.x <= xc1 + rad) && (uv.y >= yc1) && (uv.y <= yc1 + rad))\n\t{\n\tuv2 = vec2((uv.x - xc1) / rad, 1.0 - (uv.y - yc1) / rad);\n\treturn(In ? getToColor(uv2) : getFromColor(uv2));\n\t}\nreturn(In ? getFromColor(uv0) : getToColor(uv0));\n}\n","author":"Mark Craig","license":"MIT","description":"The outgoing image slides out, or the incoming one slides in, toward an edge, a corner or the center","tags":["slide","directional"],"params":{"type":{"type":"int","default":0},"In":{"type":"bool","default":false,"description":"Slide the incoming image in instead of the outgoing one out"}},"textures":[],"createdAt":"Tue, 4 Apr 2023 03:32:13 -0400","updatedAt":"Sat, 10 Oct 2026 10:11:31 +0200"},{"name":"SlotReels","paramsTypes":{"reels":"int","blur":"float","stagger":"float","bounce":"float","separator":"vec4"},"defaultParams":{"reels":5,"blur":0.6,"stagger":0.45,"bounce":0.5,"separator":[0.04,0.04,0.05,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame is cut into vertical reels that spin downward like drums, motion-blurred with speed, carrying the outgoing image then the incoming one, and stop one after another from left to right with a small mechanical bounce\n// Tags: 3d, spin, stripes, motion-blur\n\n// @range(1, 16, 1) Number of reels\nuniform int reels; // = 5\n// @range(0, 1) Amount of vertical motion blur while the reels spin fast\nuniform float blur; // = 0.6\n// @range(0, 0.9) Delay between the first and the last reel's stop, as a part of the transition\nuniform float stagger; // = 0.45\n// @range(0, 1) Size of the bounce when a reel stops\nuniform float bounce; // = 0.5\n// @color Color of the separators between the reels\nuniform vec4 separator; // = vec4(0.04, 0.04, 0.05, 1.0)\n\nconst float PI = 3.141592653589793;\n// half of the arc of the drum seen in the frame, in radians\nconst float ARC = 1.15;\n// duration of the bounce, as a part of the transition\nconst float SETTLE = 0.1;\n// width of the separators, in frame heights\nconst float LINE = 0.006;\n// width of the anti-aliased edges, in frame heights\nconst float EDGE = 0.0015;\n\n// the time at which the reel stops, before its bounce\nfloat stopTime(float i, float n) {\n float order = n > 1.0 ? i / (n - 1.0) : 1.0;\n return (1.0 - SETTLE) * (1.0 - clamp(stagger, 0.0, 0.9) * (1.0 - order));\n}\n\n// how far the reel has turned at time t, in image heights: it speeds up, slows down to its stop\n// a little past the incoming image and springs back onto it\nfloat reelOffset(float t, float stopT, float turns) {\n float amp = 0.07 * bounce;\n // speed at the stop, matched with the start of the bounce\n float v1 = amp * PI * stopT / (turns * SETTLE);\n float u = clamp(t / stopT, 0.0, 1.0);\n float g = u * u * (3.0 - 2.0 * u) + v1 * (u * u * u - u * u);\n float b = clamp((t - stopT) / SETTLE, 0.0, 1.0);\n return turns * g + amp * sin(PI * b) * (1.0 - b) * (1.0 - b);\n}\n\n// the reel's speed at time t, the derivative of reelOffset, in image heights per transition\nfloat reelSpeed(float t, float stopT, float turns) {\n float amp = 0.07 * bounce;\n float v1 = amp * PI * stopT / (turns * SETTLE);\n if (t < stopT) {\n float u = max(t / stopT, 0.0);\n return turns * (6.0 * u * (1.0 - u) + v1 * u * (3.0 * u - 2.0)) / stopT;\n }\n float b = min((t - stopT) / SETTLE, 1.0);\n return amp * (1.0 - b) * (PI * cos(PI * b) * (1.0 - b) - 2.0 * sin(PI * b)) / SETTLE;\n}\n\nvec4 transition (vec2 uv) {\n float n = max(float(reels), 1.0);\n float i = min(floor(uv.x * n), n - 1.0);\n float lx = uv.x * n - i;\n float stopT = stopTime(i, n);\n // an odd number of turns, more for the reels that spin longer, so they land on the incoming image\n float turns = 2.0 * floor(stopT * 4.0) + 1.0;\n\n // the reel is a drum while it spins, and flattens back as it settles\n float drum = smoothstep(0.0, 0.12, progress) * (1.0 - smoothstep(stopT, stopT + SETTLE, progress));\n float y = 2.0 * uv.y - 1.0;\n // theta: the angle around the drum's axis, 0 facing the viewer\n float theta = asin(clamp(y * sin(ARC), -1.0, 1.0));\n float v = mix(uv.y, 0.5 + theta / (2.0 * ARC), drum);\n // the far edges of the drum look narrower\n float depth = (1.0 - cos(theta)) * drum;\n float px = 0.5 + (lx - 0.5) * (1.0 + 0.2 * depth);\n\n // offset from the resting position, -turns at the start, 0 once landed\n float off = reelOffset(progress, stopT, turns) - turns;\n float speed = abs(reelSpeed(progress, stopT, turns));\n // the blur spans the distance the reel travels in about a frame\n float spread = blur * min(speed * 0.02, 0.22) * drum;\n\n // up to 8 taps along the reel, weighted toward the middle, one when it stands still\n vec4 c = vec4(0.0);\n float wsum = 0.0;\n for (int k = 0; k < 8; k++) {\n float f = float(k) / 7.0 - 0.5;\n float w = 1.0 - abs(f);\n float vv = v + off + spread * f;\n float seg = floor(vv);\n vec2 q = vec2((i + clamp(px, 0.0, 1.0)) / n, vv - seg);\n // the drum carries the incoming image on even segments, the outgoing one on odd segments\n vec4 s = mod(seg, 2.0) < 0.5 ? getToColor(q) : getFromColor(q);\n // a thin shadow at the seams between the images, not at the frame's top and bottom edges\n s.rgb *= 1.0 - 0.6 * drum * (1.0 - y * y) * (1.0 - smoothstep(0.0, 0.02, min(q.y, 1.0 - q.y)));\n c += w * s;\n wsum += w;\n if (spread < 1e-4) break;\n }\n c /= wsum;\n\n // the drum's faces darken as they turn away, with a soft highlight above its middle\n float facing = cos(theta);\n c.rgb *= mix(1.0, 0.25 + 0.75 * facing * facing, drum);\n c.rgb += drum * 0.07 * c.a * exp(-12.0 * (y - 0.3) * (y - 0.3));\n\n // separators between the reels, and the background around the narrower far edges of the drums\n float env = smoothstep(0.0, 0.1, progress) * (1.0 - smoothstep(0.9, 1.0, progress));\n float reelW = ratio / n;\n float persp = reelW / (1.0 + 0.2 * depth);\n // distance to the reel's sides, and to its sides next to the other reels\n float dSide = min(px, 1.0 - px) * persp;\n float dInner = min(i > 0.5 ? px : 2.0, i < n - 1.5 ? 1.0 - px : 2.0) * persp;\n float line = 1.0 - smoothstep(0.5 * LINE - EDGE, 0.5 * LINE + EDGE, dInner);\n float outside = 1.0 - smoothstep(-EDGE, 0.0, dSide);\n // a soft shadow cast by the separators on the reels\n c.rgb *= 1.0 - 0.35 * env * (1.0 - smoothstep(0.0, 0.03 * reelW + LINE, dInner));\n return mix(c, separator, max(line * env, outside));\n}\n","author":"gre","license":"MIT","description":"The frame is cut into vertical reels that spin downward like drums, motion-blurred with speed, carrying the outgoing image then the incoming one, and stop one after another from left to right with a small mechanical bounce","tags":["3d","spin","stripes","motion-blur"],"params":{"reels":{"type":"int","default":5,"min":1,"max":16,"step":1,"description":"Number of reels"},"blur":{"type":"float","default":0.6,"min":0,"max":1,"description":"Amount of vertical motion blur while the reels spin fast"},"stagger":{"type":"float","default":0.45,"min":0,"max":0.9,"description":"Delay between the first and the last reel's stop, as a part of the transition"},"bounce":{"type":"float","default":0.5,"min":0,"max":1,"description":"Size of the bounce when a reel stops"},"separator":{"type":"vec4","default":[0.04,0.04,0.05,1],"color":true,"description":"Color of the separators between the reels"}},"textures":[],"createdAt":"Sun, 8 Nov 2026 10:38:52 +0100","updatedAt":"Sun, 8 Nov 2026 10:38:52 +0100"},{"name":"SmokeDissolve","paramsTypes":{"direction":"vec2","scale":"float","spread":"float","softness":"float","color":"vec4"},"defaultParams":{"direction":[0.5,0.1],"scale":2.5,"spread":0.4,"softness":0.5,"color":[0.86,0.86,0.88,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: Billowing smoke drifts in across the outgoing image, with lit tops, darker folds and wispy edges, and thickens until it covers the frame; as it thins out and drifts away, the incoming image shows through\n// Tags: smoke, fog, organic, noise, cover\n\n// @param Direction the smoke drifts toward (it comes in from the opposite side); its length is how far it drifts, in frame heights\nuniform vec2 direction; // = vec2(0.5, 0.1)\n// @range(1, 8) Size of the billows: more, smaller ones with a larger value\nuniform float scale; // = 2.5\n// @range(0, 1) How much the smoke rolls in from one side rather than everywhere at once\nuniform float spread; // = 0.4\n// @range(0.05, 1) Softness of the smoke: wispier, more see-through edges with a larger value\nuniform float softness; // = 0.5\n// @color Color of the smoke, lit from above\nuniform vec4 color; // = vec4(0.86, 0.86, 0.88, 1.0)\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\nfloat vnoise(vec2 v) {\n vec2 i = floor(v);\n vec2 f = fract(v);\n f = f * f * (3.0 - 2.0 * f);\n return mix(\n mix(hash12(i), hash12(i + vec2(1.0, 0.0)), f.x),\n mix(hash12(i + vec2(0.0, 1.0)), hash12(i + vec2(1.0, 1.0)), f.x),\n f.y\n );\n}\n\nfloat fbm(vec2 v) {\n float sum = 0.0;\n float amp = 0.5;\n for (int i = 0; i < 4; i++) {\n sum += amp * vnoise(v);\n v = mat2(1.6, 1.2, -1.2, 1.6) * v + 5.3;\n amp *= 0.5;\n }\n return sum / 0.9375;\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n vec2 pos = (uv - 0.5) * vec2(ratio, 1.0);\n\n // where along the drift the pixel is: 0 on the side the smoke comes from, 1 on the other\n float len = length(direction);\n vec2 dir = len > 1e-4 ? direction / len : vec2(0.0);\n float ext = 0.5 * (abs(dir.x) * ratio + abs(dir.y)) + 1e-4;\n float along = len > 1e-4 ? 0.5 + 0.5 * dot(pos, dir) / ext : 0.5;\n\n // the smoke rolls in (until 0.45), covers the whole frame, then thins out (from 0.55),\n // each side of the frame in turn\n float arrive = (p / 0.45) * (1.0 + spread) - spread * along;\n float leave = ((p - 0.55) / 0.45) * (1.0 + spread) - spread * along;\n float body = smoothstep(0.0, 1.0, arrive) * (1.0 - smoothstep(0.0, 1.0, leave));\n // the images switch while the smoke is fully dense everywhere\n float m = smoothstep(0.48, 0.52, p);\n // no smoke here (yet, or any more): one image only\n if (body <= 0.0) return m < 0.5 ? getFromColor(uv) : getToColor(uv);\n\n // billows: noise warped by itself, drifting with the smoke and slowly churning\n vec2 q = (pos - direction * (p - 0.5)) * scale;\n vec2 churn = vec2(0.5 * p, -0.35 * p);\n vec2 warp = vec2(fbm(q + vec2(3.1, 1.7) + churn), fbm(q + vec2(8.3, 2.8) - churn));\n vec2 w = q + 1.1 * (warp - 0.5);\n float n = fbm(w);\n // the billows catch the light from above: brighter where the smoke rises toward it\n // (on the coarse octave only, which shapes them)\n float lit = 0.53 * (vnoise(w) - vnoise(w + vec2(0.0, 0.2)));\n // finer curls that fray the edges into wisps\n float wisp = vnoise(w * 3.3 - 2.0 * churn) - 0.5;\n\n // density: the billows fill in first, the gaps between them last, and thin out first\n float edge = 2.0 * body - (1.0 - smoothstep(0.1, 0.6, n)) + 1.6 * body * (1.0 - body) * wisp;\n float d = smoothstep(0.0, softness, edge) * mix(0.5, 1.0, smoothstep(0.2, 0.9, body));\n\n // the image under the smoke: one image, or both mixed (premultiplied) during the switch\n vec4 base;\n if (m <= 0.0) base = getFromColor(uv);\n else if (m >= 1.0) base = getToColor(uv);\n else {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n base = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n base = base.a > 0.0 ? vec4(base.rgb / base.a, base.a) : vec4(0.0);\n }\n if (d <= 0.0) return base;\n\n // soft volumetric shading: lit tops, darker folds deep in the smoke, lighter thin wisps\n float shade = 0.92 + 1.3 * lit;\n shade *= mix(0.76, 1.04, smoothstep(0.25, 0.75, n));\n shade = mix(1.0, shade, 0.3 + 0.7 * d);\n vec3 smoke = clamp(color.rgb * shade, 0.0, 1.0);\n\n // the smoke color mixes as straight RGBA, like every fill color\n return mix(base, vec4(smoke, color.a), d);\n}\n","author":"gre","license":"MIT","description":"Billowing smoke drifts in across the outgoing image, with lit tops, darker folds and wispy edges, and thickens until it covers the frame; as it thins out and drifts away, the incoming image shows through","tags":["smoke","fog","organic","noise","cover"],"params":{"direction":{"type":"vec2","default":[0.5,0.1],"description":"Direction the smoke drifts toward (it comes in from the opposite side); its length is how far it drifts, in frame heights"},"scale":{"type":"float","default":2.5,"min":1,"max":8,"description":"Size of the billows: more, smaller ones with a larger value"},"spread":{"type":"float","default":0.4,"min":0,"max":1,"description":"How much the smoke rolls in from one side rather than everywhere at once"},"softness":{"type":"float","default":0.5,"min":0.05,"max":1,"description":"Softness of the smoke: wispier, more see-through edges with a larger value"},"color":{"type":"vec4","default":[0.86,0.86,0.88,1],"color":true,"description":"Color of the smoke, lit from above"}},"textures":[],"createdAt":"Tue, 3 Nov 2026 09:42:39 +0100","updatedAt":"Tue, 3 Nov 2026 09:42:39 +0100"},{"name":"SnakeBlockWipe","paramsTypes":{"grid":"ivec2","vertical":"bool","smoothness":"float"},"defaultParams":{"grid":[8,6],"vertical":false,"smoothness":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: Blocks switch to the incoming image one at a time, row after row from the top (or column after column from the left), each line running the opposite way to the one before, like a snake winding across the frame\n// Tags: wipe, blocks, grid, zigzag\n\n// @param Number of blocks (columns, rows)\nuniform ivec2 grid; // = ivec2(8, 6)\n// @param Wind down the columns instead of along the rows\nuniform bool vertical; // = false\n// @range(0, 4) How long each block takes to fade in, in turns of one block (0 switches it at once)\nuniform float smoothness; // = 0.5\n\nvec4 transition(vec2 uv) {\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress <= 0.0) return a;\n if (progress >= 1.0) return b;\n\n vec2 g = max(vec2(grid), 1.0);\n // block coordinates from the top left corner\n vec2 cell = min(floor(vec2(uv.x, 1.0 - uv.y) * g), g - 1.0);\n // the snake runs along the rows, or along the columns when vertical\n float lines = vertical ? g.x : g.y;\n float len = vertical ? g.y : g.x;\n float line = vertical ? cell.x : cell.y;\n float pos = vertical ? cell.y : cell.x;\n // every other line runs backward\n if (mod(line, 2.0) > 0.5) pos = len - 1.0 - pos;\n float order = line * len + pos;\n\n // block k fades in from k to k + w, on a timeline from 0 to n - 1 + w\n float n = lines * len;\n float w = max(smoothness, 0.001);\n float m = clamp((progress * (n - 1.0 + w) - order) / w, 0.0, 1.0);\n\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Blocks switch to the incoming image one at a time, row after row from the top (or column after column from the left), each line running the opposite way to the one before, like a snake winding across the frame","tags":["wipe","blocks","grid","zigzag"],"params":{"grid":{"type":"ivec2","default":[8,6],"description":"Number of blocks (columns, rows)"},"vertical":{"type":"bool","default":false,"description":"Wind down the columns instead of along the rows"},"smoothness":{"type":"float","default":0.5,"min":0,"max":4,"description":"How long each block takes to fade in, in turns of one block (0 switches it at once)"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:13:39 +0100","updatedAt":"Wed, 4 Nov 2026 20:13:39 +0100"},{"name":"Snapshot","paramsTypes":{"tilt":"float","border":"float","flash":"float","shadow":"float","borderColor":"vec4"},"defaultParams":{"tilt":0.35,"border":0.04,"flash":0.85,"shadow":0.45,"borderColor":[0.96,0.94,0.89,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: A camera flash freezes the outgoing image into a printed photo with a white border, which shrinks, tilts and drops out of the frame, revealing the incoming image behind it\n// Tags: photo, flash, scale, rotate, fall, shadow\n\n// @range(0, 1) How much the photo turns as it drops\nuniform float tilt; // = 0.35\n// @range(0, 0.15) Width of the photo's border, relative to the frame height\nuniform float border; // = 0.04\n// @range(0, 1) Strength of the camera flash\nuniform float flash; // = 0.85\n// @range(0, 1) Darkness of the soft shadow the photo casts on the incoming image\nuniform float shadow; // = 0.45\n// @color Color of the photo's border\nuniform vec4 borderColor; // = vec4(0.96, 0.94, 0.89, 1.0)\n\nconst float SHRINK = 0.24; // how much smaller the photo gets before it drops\nconst float RADIUS = 0.008; // corner radius of the photo, in frame heights\nconst float AA = 0.0015; // width of the antialiased edges, in frame heights\n\n// signed distance to a rounded box of half size b and corner radius r\nfloat roundedBox(vec2 q, vec2 b, float r) {\n vec2 d = abs(q) - b + r;\n return length(max(d, 0.0)) + min(max(d.x, d.y), 0.0) - r;\n}\n\nvec4 premultiply(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n vec2 asp = vec2(ratio, 1.0);\n vec2 q = (uv - 0.5) * asp;\n vec2 halfImage = 0.5 * asp;\n vec2 halfCard = halfImage + border;\n\n // the photo shrinks right after the flash, then falls with gravity, turning as it goes\n float k = smoothstep(0.05, 0.4, p);\n float t = clamp((p - 0.3) / 0.7, 0.0, 1.0);\n float fall = t * t;\n float s = 1.0 - SHRINK * k;\n float a = -tilt * (0.12 * k + 0.88 * fall);\n // fall far enough for the turned photo and its shadow to be out of the frame at the end\n float bound = (abs(sin(tilt)) * halfCard.x + abs(cos(tilt)) * halfCard.y) * (1.0 - SHRINK);\n // it is lifted a little toward the viewer before it falls\n float lift = 0.035 * k * (1.0 - fall);\n vec2 center = vec2(0.08 * fall, lift - (0.5 + bound + 0.1) * fall);\n\n float rad = RADIUS * k;\n\n float ca = cos(a), sa = sin(a);\n mat2 unrotate = mat2(ca, -sa, sa, ca);\n\n // the incoming image, already behind the photo, in its soft shadow\n vec4 col = getToColor(uv);\n float sh = shadow * k;\n if (sh > 0.0) {\n vec2 rs = unrotate * (q - center - vec2(0.012, -0.022) * k) / s;\n float ds = roundedBox(rs, halfCard, rad) * s;\n float blur = 0.035 * s;\n col.rgb *= 1.0 - sh * (1.0 - smoothstep(-blur, blur, ds));\n }\n col = premultiply(col);\n\n // the photo: the outgoing image, framed by its border\n vec2 r = unrotate * (q - center) / s;\n float dCard = roundedBox(r, halfCard, rad) * s;\n float dImage = roundedBox(r, halfImage, 0.0) * s;\n // the edges are pushed out by one antialiasing width, so the photo covers the full frame at the start\n float cardCover = clamp(1.5 - dCard / AA, 0.0, 1.0);\n float imageCover = clamp(1.5 - dImage / AA, 0.0, 1.0);\n // the image replaces what is behind it, while the border is laid over the incoming image, which shows through a translucent border\n vec4 photo = premultiply(getFromColor(clamp(r / asp + 0.5, 0.0, 1.0)));\n vec4 paper = premultiply(borderColor);\n vec4 card = mix(paper + col * (1.0 - paper.a), photo, imageCover);\n col = mix(col, card, cardCover);\n if (col.a <= 0.0) return vec4(0.0);\n col.rgb /= col.a;\n\n // the flash only adds light: a quick bloom to white that fades as the photo comes out\n float f = flash * smoothstep(0.0, 0.05, p) * (1.0 - smoothstep(0.05, 0.3, p));\n col.rgb = 1.0 - (1.0 - col.rgb) * (1.0 - f);\n return col;\n}\n","author":"gre","license":"MIT","description":"A camera flash freezes the outgoing image into a printed photo with a white border, which shrinks, tilts and drops out of the frame, revealing the incoming image behind it","tags":["photo","flash","scale","rotate","fall","shadow"],"params":{"tilt":{"type":"float","default":0.35,"min":0,"max":1,"description":"How much the photo turns as it drops"},"border":{"type":"float","default":0.04,"min":0,"max":0.15,"description":"Width of the photo's border, relative to the frame height"},"flash":{"type":"float","default":0.85,"min":0,"max":1,"description":"Strength of the camera flash"},"shadow":{"type":"float","default":0.45,"min":0,"max":1,"description":"Darkness of the soft shadow the photo casts on the incoming image"},"borderColor":{"type":"vec4","default":[0.96,0.94,0.89,1],"color":true,"description":"Color of the photo's border"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 12:50:01 +0100","updatedAt":"Wed, 4 Nov 2026 12:50:01 +0100"},{"name":"Sphere","paramsTypes":{"direction":"vec2","size":"float","shading":"float","shadow":"float"},"defaultParams":{"direction":[1,0],"size":0.3,"shading":0.6,"shadow":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image wraps itself onto a shaded ball that shrinks and rolls away, revealing the incoming image under its shadow\n// Tags: 3d, sphere, roll, wrap, shape\n\n// @param Direction the ball rolls away toward\nuniform vec2 direction; // = vec2(1.0, 0.0)\n// @range(0.1, 0.5) Radius of the ball once wrapped, relative to the shorter side of the frame\nuniform float size; // = 0.3\n// @range(0, 1) Strength of the light and shading on the ball\nuniform float shading; // = 0.6\n// @range(0, 1) Darkness of the soft shadow the ball casts on the incoming image\nuniform float shadow; // = 0.5\n\nconst float PI = 3.14159265;\n// half width of the antialiased ball edge, in frame heights\nconst float AA = 0.0015;\n// toward the light, from the top left\nconst vec3 LIGHT = vec3(-0.5, 0.6, 1.0) / 1.2689;\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n vec4 b = getToColor(uv);\n if (progress >= 1.0) return b;\n\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n vec2 side = vec2(-dir.y, dir.x);\n // measured in square pixels, so the ball is round\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n float shorter = min(ratio, 1.0);\n float r0 = clamp(size, 0.1, 0.5) * shorter;\n\n // the image curves into a ball (infinite radius: exactly flat at the start), then the\n // ball shrinks while rolling away until it and its shadow have left the frame\n float w = clamp(progress / 0.45, 0.0, 1.0);\n w = 1.0 - (1.0 - w) * (1.0 - w);\n float away = smoothstep(0.3, 1.0, progress);\n away *= away;\n float wrapped = r0 / max(w, 1e-4);\n float radius = wrapped * mix(1.0, 0.5, away);\n // the image is pulled tighter as it wraps, so that it ends up covering the whole ball\n // (its shortest half extent reaches around to the back)\n float tight = mix(1.0, min(1.0, 0.48 * shorter / (PI * r0)), w * w);\n float paper = radius * tight;\n // half extent of the frame along the direction\n float e = 0.5 * (abs(dir.x) * ratio + abs(dir.y));\n // far enough that the ball (0.5 * r0 by then) and its shadow (within 0.9 * r0 of it) have left\n float full = e + 1.1 * r0 + 2.0 * AA;\n float travel = away * full;\n vec2 center = dir * travel;\n // rolling without slipping: the integral of dtravel / radius while the radius shrinks\n float angle = -2.0 * full * log(1.0 - 0.5 * away) / wrapped;\n\n vec2 d = p - center;\n float r = length(d);\n\n // soft shadow on the incoming image, below and to the right of the ball (light from the top left)\n vec2 sd = d - vec2(0.25, -0.3) * radius * w;\n float sh = shadow * w * (1.0 - smoothstep(0.6 * radius, 1.4 * radius, length(sd)));\n vec4 bg = vec4(b.rgb * b.a * (1.0 - sh), b.a);\n\n vec4 ball = vec4(0.0);\n float cover = 1.0 - smoothstep(radius - AA, radius + AA, r);\n if (cover > 0.0) {\n // normal of the visible point of the ball (no squared radius, which overflows when it is huge)\n vec2 nd = d / radius;\n vec3 n = vec3(nd, sqrt(max(1.0 - dot(nd, nd), 0.0)));\n // undo the roll: rotate around the axis across the direction\n float u = dot(n.xy, dir);\n float s = dot(n.xy, side);\n float cu = cos(angle), su = sin(angle);\n vec3 q = vec3(u * cu - n.z * su, s, u * su + n.z * cu);\n // the image is wrapped around the ball from its front point, distances kept along the surface\n float lq = length(q.xy);\n float arc = atan(lq, q.z) * paper;\n vec2 img = lq > 0.0 ? (q.x * dir + q.y * side) / lq * arc : vec2(0.0);\n vec2 iuv = img / vec2(ratio, 1.0) + 0.5;\n // distance to the edge of the image, antialiased like the ball's outline\n vec2 edge = min(iuv, 1.0 - iuv) * vec2(ratio, 1.0);\n float inside = cover * smoothstep(-AA, AA, min(edge.x, edge.y));\n if (inside > 0.0) {\n vec4 c = getFromColor(clamp(iuv, 0.0, 1.0));\n float diff = max(dot(n, LIGHT), 0.0);\n float spec = pow(max(reflect(-LIGHT, n).z, 0.0), 24.0);\n float k = shading * w;\n vec3 lit = c.rgb * mix(1.0, 0.25 + 0.85 * diff, k) + 0.35 * k * spec;\n ball = vec4(clamp(lit, 0.0, 1.0) * c.a, c.a) * inside;\n }\n }\n\n // the ball over the incoming image, premultiplied so transparent images do not bleed their color\n vec4 c = ball + bg * (1.0 - ball.a);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The outgoing image wraps itself onto a shaded ball that shrinks and rolls away, revealing the incoming image under its shadow","tags":["3d","sphere","roll","wrap","shape"],"params":{"direction":{"type":"vec2","default":[1,0],"description":"Direction the ball rolls away toward"},"size":{"type":"float","default":0.3,"min":0.1,"max":0.5,"description":"Radius of the ball once wrapped, relative to the shorter side of the frame"},"shading":{"type":"float","default":0.6,"min":0,"max":1,"description":"Strength of the light and shading on the ball"},"shadow":{"type":"float","default":0.5,"min":0,"max":1,"description":"Darkness of the soft shadow the ball casts on the incoming image"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:11:57 +0100","updatedAt":"Wed, 4 Nov 2026 20:11:57 +0100"},{"name":"SpiralBlockWipe","paramsTypes":{"grid":"ivec2","inward":"bool","clockwise":"bool","smoothness":"float"},"defaultParams":{"grid":[8,6],"inward":true,"clockwise":true,"smoothness":0.05},"glsl":"// Author: gre\n// License: MIT\n// Description: Square blocks switch to the incoming image one after another along a rectangular spiral, from the border inward or from the center outward\n// Tags: wipe, grid, blocks, spiral\n\n// @param Number of blocks (columns, rows)\nuniform ivec2 grid; // = ivec2(8, 6)\n// @param Spiral from the top left corner inward; false spirals from the center outward, ending at the top left corner\nuniform bool inward; // = true\n// @param Turn clockwise; false turns counterclockwise\nuniform bool clockwise; // = true\n// @range(0, 0.5) Duration of each block's fade, as a fraction of the transition\nuniform float smoothness; // = 0.05\n\n// Position of the cell c (from the top left corner) along the spiral that runs clockwise\n// from the top left corner of a n.x by n.y grid inward, from 0 to n.x * n.y - 1\nfloat spiralIndex(vec2 c, vec2 n) {\n // ring: distance to the border, in cells\n float k = min(min(c.x, c.y), min(n.x - 1.0 - c.x, n.y - 1.0 - c.y));\n // size of the ring, and the cell's position in it\n vec2 s = n - 2.0 * k;\n vec2 l = c - k;\n // the outer rings come first\n float before = n.x * n.y - s.x * s.y;\n float along;\n if (l.y == 0.0) along = l.x; // top side, to the right\n else if (l.x == s.x - 1.0) along = s.x - 1.0 + l.y; // right side, down\n else if (l.y == s.y - 1.0) along = 2.0 * s.x + s.y - 3.0 - l.x; // bottom side, to the left\n else along = 2.0 * (s.x - 1.0) + 2.0 * (s.y - 1.0) - l.y; // left side, up\n return before + along;\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n vec2 n = max(vec2(grid), vec2(1.0));\n // the cell, counted from the top left corner\n vec2 c = min(floor(vec2(uv.x, 1.0 - uv.y) * n), n - 1.0);\n // the transposed spiral turns the other way from the same corner; walking the spiral\n // outward reverses it too\n if (clockwise != inward) {\n c = c.yx;\n n = n.yx;\n }\n float count = n.x * n.y;\n float i = spiralIndex(c, n);\n if (!inward) i = count - 1.0 - i;\n\n // the blocks switch one after another, each one fading in over w blocks of time, the first\n // fade starting at 0 and the last ending at 1; without fade, block i switches at (i + 0.5) / count\n float w = max(smoothness, 0.0) * count;\n float o = max(0.5 * (1.0 - w), 0.0);\n float x = progress * (count - 1.0 + 2.0 * o + w) - i - o;\n float m = w > 0.0 ? smoothstep(0.0, w, x) : step(0.0, x);\n\n if (m <= 0.0) return getFromColor(uv);\n if (m >= 1.0) return getToColor(uv);\n vec4 a = getFromColor(uv);\n vec4 b = getToColor(uv);\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 col = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);\n return col.a > 0.0 ? vec4(col.rgb / col.a, col.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"Square blocks switch to the incoming image one after another along a rectangular spiral, from the border inward or from the center outward","tags":["wipe","grid","blocks","spiral"],"params":{"grid":{"type":"ivec2","default":[8,6],"description":"Number of blocks (columns, rows)"},"inward":{"type":"bool","default":true,"description":"Spiral from the top left corner inward; false spirals from the center outward, ending at the top left corner"},"clockwise":{"type":"bool","default":true,"description":"Turn clockwise; false turns counterclockwise"},"smoothness":{"type":"float","default":0.05,"min":0,"max":0.5,"description":"Duration of each block's fade, as a fraction of the transition"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:58:21 +0100","updatedAt":"Wed, 4 Nov 2026 20:58:21 +0100"},{"name":"SpiralWipe","paramsTypes":{"turns":"float","smoothness":"float","clockwise":"bool"},"defaultParams":{"turns":3,"smoothness":0.05,"clockwise":true},"glsl":"// Author: gre\n// License: MIT\n// Description: A spiral arm winds out from the center and widens to reveal the incoming image\n// Tags: shape, wipe, radial\n\n#define PI 3.141592653589793\n\n// @range(2, 8) Number of turns of the spiral\nuniform float turns; // = 3.0\n// @range(0, 0.5) Softness of the arm's edges\nuniform float smoothness; // = 0.05\n// @param Wind clockwise; false winds counterclockwise\nuniform bool clockwise; // = true\n\n// Coverage of the arm turn at position s (in turns along the spiral), d away from its middle line\nfloat arm (float s, float d) {\n // The tip reaches the frame's corners at 60% of the transition, and the whole arm widens until the end\n float end = -0.5 + (turns + 0.5) / 0.6;\n float tip = mix(-0.5, end, progress);\n s = max(s, -0.5);\n float width = sqrt(clamp((tip - s) / max(end - s, 0.001), 0.0, 1.0));\n // Edge softness in arm widths, at least a pixel wide\n float e = smoothness + 0.005 * turns;\n return smoothstep(0.0, e, width * (0.5 + e) - d);\n}\n\nvec4 transition (vec2 uv) {\n // Square pixels, normalized so the frame's corners are at distance 1\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0) / (0.5 * length(vec2(ratio, 1.0)));\n // Fraction of a turn, starting at the top\n float a = dot(q, q) < 1e-12 ? 0.0 : atan(q.x, q.y) / (2.0 * PI);\n a = fract(clockwise ? a : -a);\n // Radius in turns of the spiral, and the arm turn the point is in\n float w = length(q) * turns - a;\n float n = floor(w);\n float f = w - n;\n // The arm turns around it can overlap it near the edges\n float m = max(arm(n + a, abs(f - 0.5)), max(arm(n + 1.0 + a, 1.5 - f), arm(n - 1.0 + a, f + 0.5)));\n return mix(getFromColor(uv), getToColor(uv), m);\n}\n","author":"gre","license":"MIT","description":"A spiral arm winds out from the center and widens to reveal the incoming image","tags":["shape","wipe","radial"],"params":{"turns":{"type":"float","default":3,"min":2,"max":8,"description":"Number of turns of the spiral"},"smoothness":{"type":"float","default":0.05,"min":0,"max":0.5,"description":"Softness of the arm's edges"},"clockwise":{"type":"bool","default":true,"description":"Wind clockwise; false winds counterclockwise"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:17:51 +0100","updatedAt":"Sat, 31 Oct 2026 18:17:51 +0100"},{"name":"SplatterWipe","paramsTypes":{"splats":"float","spikiness":"float","droplets":"float","drips":"float","rim":"float","seed":"float"},"defaultParams":{"splats":4,"spikiness":0.6,"droplets":0.6,"drips":0.5,"rim":0.5,"seed":3},"glsl":"// Author: gre\n// License: MIT\n// Description: Splats of paint land one after another, each popping in with a spiky outline, flung droplets and a few drips running down, revealing the incoming image until they cover the frame\n// Tags: paint, splash, organic, reveal\n\n// @range(2, 10, 1) Number of splats across the frame\nuniform float splats; // = 4.0\n// @range(0, 1) How long the spikes around each splat are\nuniform float spikiness; // = 0.6\n// @range(0, 1) How many droplets are flung around each splat\nuniform float droplets; // = 0.6\n// @range(0, 1) How far the paint drips run down\nuniform float drips; // = 0.5\n// @range(0, 1) How dark and glossy the rim of the splats is\nuniform float rim; // = 0.5\n// @param Random seed for the splats\nuniform float seed; // = 3.0\n\nconst float PI = 3.141592653589793;\n// number of spikes around a splat\nconst float SPIKES = 14.0;\n// furthest reach of the shapes of a splat from its center, in cells. Splats are looked for in the 3x3 cells\n// around a pixel, and the center of a splat 2 cells away is more than 1.35 cells away; on top of REACH, the\n// smooth unions add up to 0.02 and the antialiasing 0.025 (at 10 splats), which leaves a margin of 0.055\n// so that no splat is ever cut by the search\nconst float REACH = 1.25;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\n// smooth noise around a splat, wrapping over a full turn (t in 0..1)\nfloat turnNoise(float t, float n, vec2 key) {\n float x = t * n;\n float i = floor(x);\n float f = x - i;\n float a = hash12(key + vec2(mod(i, n), 61.0));\n float b = hash12(key + vec2(mod(i + 1.0, n), 61.0));\n return mix(a, b, f * f * (3.0 - 2.0 * f));\n}\n\n// smooth union of two signed distances (> 0 inside)\nfloat smax(float a, float b, float k) {\n float h = max(k - abs(a - b), 0.0) / k;\n return max(a, b) + h * h * k * 0.25;\n}\n\n// signed distance (approximately, in cells, > 0 inside) to the splat of a grid cell\nfloat splat(vec2 q, vec2 cell, vec2 key) {\n float t0 = 0.01 + 0.6 * hash12(key + vec2(3.0, 0.0)); // when it lands\n if (progress <= t0) return -1.0;\n vec2 c = cell + 0.5 + 0.3 * (vec2(hash12(key + vec2(5.0, 1.0)), hash12(key + vec2(9.0, 2.0))) - 0.5);\n vec2 d = q - c;\n float l = length(d);\n // nothing of the splat reaches this far (its distance there would be below -0.08 anyway)\n if (l > REACH + 0.1) return -1.0;\n // a fast pop-in, then the paint slowly spreads until it covers its whole cell\n float pop = clamp((progress - t0) / 0.08, 0.0, 1.0);\n pop = 1.0 - (1.0 - pop) * (1.0 - pop) * (1.0 - pop);\n float x = clamp((progress - t0) / (0.96 - t0), 0.0, 1.0);\n float grow = x * x * x;\n float r0 = 0.42 + 0.2 * hash12(key + vec2(11.0, 3.0));\n // the farthest corner of the cell is at most 0.65 * sqrt(2) ~ 0.92 cells away, and the body dents by 6% at most in the end\n float rc = mix(r0 * pop, 1.03, grow);\n\n float a = l > 1e-5 ? atan(d.y, d.x) / (2.0 * PI) + 0.5 : 0.0;\n // an irregular body\n float lumps = mix(0.3, 0.06, grow) * (turnNoise(a, 5.0, key) - 0.5) + mix(0.18, 0.06, grow) * (turnNoise(a, 19.0, key + 3.0) - 0.5);\n float f = rc * (1.0 + lumps) - l;\n\n // a spike in each slice of the turn: a ray that tapers from a wide base, the long ones ending in a bead;\n // the slices on both sides are looked at too, as their spikes can lean over the boundary\n float s = floor(a * SPIKES);\n float spike = -1.0;\n for (int k = -1; k <= 1; k++) {\n float sl = s + float(k);\n vec2 sk = key + vec2(mod(sl, SPIKES), 17.0);\n float h = hash12(sk);\n float w0 = (0.022 + 0.03 * hash12(sk + 1.5)) * pop;\n float len = max(min(spikiness * (0.06 + 0.6 * h * h) * pop, REACH - 1.2 * w0 - rc), 0.0);\n if (len > 0.0) {\n // short spikes are thin too, so that no spikiness leaves a clean body\n float w = w0 * min(len / 0.06, 1.0);\n float ang = (sl + 0.5 + 0.4 * (hash12(sk + 0.5) - 0.5)) / SPIKES * 2.0 * PI - PI;\n vec2 dir = vec2(cos(ang), sin(ang));\n float along = dot(d, dir);\n float across = abs(d.x * dir.y - d.y * dir.x);\n float u = clamp((along - rc) / len, 0.0, 1.0);\n float ray = min(w * (1.0 - 0.7 * u) - across, rc + len - along);\n if (h > 0.5) ray = max(ray, w * 1.2 - length(d - dir * (rc + len)));\n spike = max(spike, ray);\n }\n }\n f = smax(f, spike, 0.08);\n\n // droplets flung out around the splat\n for (int j = 0; j < 5; j++) {\n vec2 dk = key + vec2(float(j), 29.0);\n float hr = hash12(dk + 0.5);\n float rad = (0.015 + 0.05 * hr * hr) * clamp(droplets * 5.0 - float(j), 0.0, 1.0) * pop;\n if (rad > 0.0) {\n float da = 2.0 * PI * hash12(dk);\n float dist = min(r0 + 0.08 + 0.5 * hash12(dk + 1.5), REACH - rad) * mix(0.5, 1.0, pop);\n f = max(f, rad - length(d - dist * vec2(cos(da), sin(da))));\n }\n }\n\n // drips running down from the bottom of the splat\n if (drips > 0.0) {\n float run = clamp((progress - t0 - 0.03) / 0.45, 0.0, 1.0);\n run = run * (2.0 - run);\n for (int j = 0; j < 2; j++) {\n vec2 dk = key + vec2(float(j), 43.0);\n float xo = (hash12(dk) - 0.5) * r0;\n float dw = (0.03 + 0.02 * hash12(dk + 0.5)) * pop;\n float top = sqrt(r0 * r0 - xo * xo) * pop;\n float bottom = min(top + drips * (0.25 + 0.75 * hash12(dk + 1.5)) * run, sqrt(REACH * REACH - xo * xo) - 1.6 * dw);\n float dx = abs(d.x - xo);\n float drip = min(dw - dx, min(d.y + bottom, -d.y));\n float tip = dw * 1.4 - length(vec2(dx, d.y + bottom + 0.2 * dw));\n f = smax(f, max(drip, tip), 0.05);\n }\n }\n return f;\n}\n\nvec4 transition(vec2 uv) {\n float n = max(1.0, floor(splats + 0.5));\n float cellSize = max(ratio, 1.0) / n;\n vec2 q = vec2(uv.x * ratio, uv.y) / cellSize; // in cells\n vec2 base = floor(q);\n vec2 sd = seed * vec2(7.0, 13.0);\n float f = -1.0;\n for (int j = -1; j <= 1; j++) {\n for (int i = -1; i <= 1; i++) {\n vec2 cell = base + vec2(float(i), float(j));\n f = max(f, splat(q, cell, cell + sd));\n }\n }\n float aa = 0.0025 / cellSize; // about a pixel or two, in cells\n float inside = smoothstep(-aa, aa, f);\n vec4 from = getFromColor(uv);\n vec4 to = getToColor(uv);\n // thick paint: a darker rim with a thin glossy line just inside it, gone once the frame is covered\n float e = clamp(f / 0.045, 0.0, 1.0);\n float amount = rim * (1.0 - smoothstep(0.75, 1.0, progress));\n float dark = (1.0 - e) * (1.0 - e) * 0.6;\n float gloss = smoothstep(0.2, 0.4, e) * (1.0 - smoothstep(0.4, 0.7, e)) * 0.3;\n to.rgb = mix(to.rgb * (1.0 - dark * amount), vec3(1.0), gloss * amount * to.a);\n return mix(from, to, inside);\n}\n","author":"gre","license":"MIT","description":"Splats of paint land one after another, each popping in with a spiky outline, flung droplets and a few drips running down, revealing the incoming image until they cover the frame","tags":["paint","splash","organic","reveal"],"params":{"splats":{"type":"float","default":4,"min":2,"max":10,"step":1,"description":"Number of splats across the frame"},"spikiness":{"type":"float","default":0.6,"min":0,"max":1,"description":"How long the spikes around each splat are"},"droplets":{"type":"float","default":0.6,"min":0,"max":1,"description":"How many droplets are flung around each splat"},"drips":{"type":"float","default":0.5,"min":0,"max":1,"description":"How far the paint drips run down"},"rim":{"type":"float","default":0.5,"min":0,"max":1,"description":"How dark and glossy the rim of the splats is"},"seed":{"type":"float","default":3,"description":"Random seed for the splats"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 22:33:20 +0100","updatedAt":"Mon, 2 Nov 2026 22:33:20 +0100"},{"name":"SplitFlap","paramsTypes":{"size":"ivec2","stagger":"float","randomness":"float","flaps":"int","gap":"float","perspective":"float","shading":"float","background":"vec4"},"defaultParams":{"size":[8,6],"stagger":0.6,"randomness":0.3,"flaps":1,"gap":0.004,"perspective":0.35,"shading":0.4,"background":[0,0,0,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The frame becomes a split-flap board: in each cell the top half of the outgoing image flips down on a hinge across the middle, cell after cell, its back bringing the bottom half of the incoming image\n// Tags: 3d, flip, grid\n\n// @param Number of cells (columns, rows)\nuniform ivec2 size; // = ivec2(8, 6)\n// @range(0, 0.9) Delay of the last cell's flip, as a part of the transition\nuniform float stagger; // = 0.6\n// @range(0, 1) How much the order of the cells is shuffled, from a wave across the board to random\nuniform float randomness; // = 0.3\n// @range(1, 4, 1) Number of flaps that fall in each cell, the ones before the last showing other parts of the incoming image\nuniform int flaps; // = 1\n// @range(0, 0.05) Width of the gaps between the cells, as a part of the frame's shorter side (the hinges get half of it)\nuniform float gap; // = 0.004\n// @range(0, 1) Amount of perspective: the falling flaps grow as they come toward the viewer\nuniform float perspective; // = 0.35\n// @range(0, 1) How much the flaps darken as they turn away from the light, and the shadows they cast\nuniform float shading; // = 0.4\n// @color Color seen in the gaps between the cells\nuniform vec4 background; // = vec4(0.0, 0.0, 0.0, 1.0)\n\nconst float PI = 3.141592653589793;\n// width of the anti-aliased edges, as a part of the frame's shorter side\nconst float EDGE = 0.001;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\n// the cell's flip, 0 to 1\nfloat cellTime(vec2 cell, vec2 grid) {\n float wave = (cell.x + 0.5 * (grid.y - 1.0 - cell.y)) / max(grid.x - 1.0 + 0.5 * (grid.y - 1.0), 1.0);\n float order = mix(wave, hash12(cell + 17.0), randomness);\n float delay = clamp(stagger, 0.0, 0.99);\n return clamp((progress - order * delay) / (1.0 - delay), 0.0, 1.0);\n}\n\n// the card on the front of the falling flap, at the cell's flip t\nfloat flapIndex(float t, float n) {\n return min(floor(t * n), n - 1.0);\n}\n\n// the falling flap's angle, 0 upright to PI down: it starts gently and lands fast\nfloat flapAngle(float t, float n) {\n float u = t * n - flapIndex(t, n);\n return PI * u * (0.3 + 0.7 * u);\n}\n\n// card i of a cell at the point lc of the card: the outgoing image first, the incoming one last,\n// and in between the incoming image of another cell\nvec4 card(float i, float n, vec2 cell, vec2 grid, vec2 lc) {\n if (i < 0.5) return getFromColor((cell + lc) / grid);\n vec2 src = cell;\n if (i < n - 0.5) src = floor(vec2(hash12(cell * 3.7 + i * 11.3), hash12(cell * 5.3 + i * 7.9 + 1.7)) * grid);\n return getToColor((src + lc) / grid);\n}\n\n// 1 inside a half card, 0 in the gaps: x across the card and f the distance from the hinge, in cell sizes\nfloat cardMask(float x, float f, vec2 cellSize, float g) {\n if (g <= 0.0) return 1.0;\n float e = EDGE * min(1.0, g / max(gap, 1e-4));\n // the gap at the hinge is half as wide as the one between the cells\n float d = min(min(x, 1.0 - x) * cellSize.x, min(2.0 * f, 0.5 - f) * cellSize.y);\n return smoothstep(0.5 * g - e, 0.5 * g + e, d);\n}\n\nvec4 transition (vec2 uv) {\n vec2 grid = max(vec2(size), 1.0);\n float n = max(float(flaps), 1.0);\n vec2 cellSize = vec2(ratio, 1.0) / grid / min(ratio, 1.0);\n vec2 cell = floor(uv * grid);\n vec2 l = uv * grid - cell;\n // the gaps open at the start and close at the end\n float g = gap * smoothstep(0.0, 0.12, progress) * (1.0 - smoothstep(0.88, 1.0, progress));\n // w: height above the hinge, in cell heights\n float w = l.y - 0.5;\n bool upper = w >= 0.0;\n\n // the board behind the falling flaps: the top half of the next card once the flap has left it,\n // the bottom half of the current card until the flap has landed on it\n float t = cellTime(cell, grid);\n float k = flapIndex(t, n);\n float a = flapAngle(t, n);\n bool started = t * n > k;\n bool landed = t >= 1.0;\n vec4 color = card(k + (upper ? (started ? 1.0 : 0.0) : (landed ? 1.0 : 0.0)), n, cell, grid, l);\n // shadows of the flap leaning over the top half, then falling onto the bottom half\n if (started && !landed) color.rgb *= 1.0 - 0.45 * shading * max(upper ? cos(a) : -cos(a), 0.0);\n color = mix(background, color, cardMask(l.x, abs(w), cellSize, g));\n\n // the falling flaps of this cell and of its neighbors, which grow beyond their cells as they come closer\n float nearest = -1.0;\n for (int d = -1; d <= 1; d++) {\n vec2 nc = cell + vec2(float(d), 0.0);\n if (nc.x < 0.0 || nc.x > grid.x - 1.0) continue;\n float nt = d == 0 ? t : cellTime(nc, grid);\n float na = d == 0 ? a : flapAngle(nt, n);\n float fc = cos(na);\n float fs = sin(na);\n // a point at distance f from the hinge is at height f * fc and depth f * fs, nearer points look wider\n if (abs(fc) < 1e-5 || (w >= 0.0) != (fc > 0.0)) continue;\n float f = w / fc;\n if (f > 0.5) continue;\n float z = f * fs;\n if (z <= nearest) continue;\n float lx = 0.5 + (l.x - float(d) - 0.5) * (1.0 - perspective * z);\n if (lx < 0.0 || lx > 1.0) continue;\n bool front = fc > 0.0;\n vec2 lc = vec2(lx, front ? 0.5 + f : 0.5 - f);\n float m = cardMask(lx, f, cellSize, g);\n if (m <= 0.0) continue;\n vec4 img = card(flapIndex(nt, n) + (front ? 0.0 : 1.0), n, nc, grid, lc);\n // lit from above the viewer: the front darkens as it turns down, the back brightens as it lands\n float lambert = (front ? 0.92 * fc - 0.4 * fs : 0.4 * fs - 0.92 * fc) / 0.92;\n img.rgb *= mix(1.0 - shading, 1.0, clamp(lambert, 0.0, 1.0));\n color = mix(color, img, m);\n nearest = z;\n }\n return color;\n}\n","author":"gre","license":"MIT","description":"The frame becomes a split-flap board: in each cell the top half of the outgoing image flips down on a hinge across the middle, cell after cell, its back bringing the bottom half of the incoming image","tags":["3d","flip","grid"],"params":{"size":{"type":"ivec2","default":[8,6],"description":"Number of cells (columns, rows)"},"stagger":{"type":"float","default":0.6,"min":0,"max":0.9,"description":"Delay of the last cell's flip, as a part of the transition"},"randomness":{"type":"float","default":0.3,"min":0,"max":1,"description":"How much the order of the cells is shuffled, from a wave across the board to random"},"flaps":{"type":"int","default":1,"min":1,"max":4,"step":1,"description":"Number of flaps that fall in each cell, the ones before the last showing other parts of the incoming image"},"gap":{"type":"float","default":0.004,"min":0,"max":0.05,"description":"Width of the gaps between the cells, as a part of the frame's shorter side (the hinges get half of it)"},"perspective":{"type":"float","default":0.35,"min":0,"max":1,"description":"Amount of perspective: the falling flaps grow as they come toward the viewer"},"shading":{"type":"float","default":0.4,"min":0,"max":1,"description":"How much the flaps darken as they turn away from the light, and the shadows they cast"},"background":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color seen in the gaps between the cells"}},"textures":[],"createdAt":"Fri, 6 Nov 2026 10:06:28 +0100","updatedAt":"Fri, 6 Nov 2026 10:06:28 +0100"},{"name":"SplitSlideInHorizontal","paramsTypes":{"reverse":"bool"},"defaultParams":{"reverse":false},"glsl":"// Author: OllyOllyOlly\n// License: MIT\n// Description: The incoming image slides in as two halves moving horizontally in opposite directions\n// Tags: slide, split, horizontal\n\n// @param Swap the directions of the halves\nuniform bool reverse; // = false\n\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n float modifier = reverse ? -1.0 : 1.0;\n vec2 toP = (uv.y > 0.5) ?\n vec2((uv.x - (progress * modifier)) + modifier, uv.y) :\n vec2((uv.x + (progress * modifier)) - modifier, uv.y);\n\n vec2 fromP = uv;\n\n return inBounds(toP) ? getToColor(toP) : getFromColor(fromP);\n}\n","author":"OllyOllyOlly","license":"MIT","description":"The incoming image slides in as two halves moving horizontally in opposite directions","tags":["slide","split","horizontal"],"params":{"reverse":{"type":"bool","default":false,"description":"Swap the directions of the halves"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"SplitSlideInOutHorizontal","paramsTypes":{"reverse":"bool"},"defaultParams":{"reverse":false},"glsl":"// Author: OllyOllyOlly\n// License: MIT\n// Description: The halves of both images slide horizontally in opposite directions, out and in at once\n// Tags: slide, split, horizontal\n\n// @param Swap the directions of the halves\nuniform bool reverse; // = false\n\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n float modifier = (uv.y > 0.5 ? 1.0 : -1.0) * (reverse ? -1.0 : 1.0) ;\n vec2 fromP = vec2(uv.x + (progress * modifier), uv.y);\n vec2 toP = vec2((uv.x + (progress * modifier)) - modifier, uv.y);\n\n return inBounds(fromP) ? getFromColor(fromP) : getToColor(toP);\n}\n","author":"OllyOllyOlly","license":"MIT","description":"The halves of both images slide horizontally in opposite directions, out and in at once","tags":["slide","split","horizontal"],"params":{"reverse":{"type":"bool","default":false,"description":"Swap the directions of the halves"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"SplitSlideInOutVertical","paramsTypes":{"reverse":"bool"},"defaultParams":{"reverse":false},"glsl":"// Author: OllyOllyOlly\n// License: MIT\n// Description: The halves of both images slide vertically in opposite directions, out and in at once\n// Tags: slide, split, vertical\n\n// @param Swap the directions of the halves\nuniform bool reverse; // = false\n\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n float modifier = (uv.x > 0.5 ? 1.0 : -1.0) * (reverse ? -1.0 : 1.0) ;\n vec2 fromP = vec2(uv.x, uv.y + (progress * modifier));\n vec2 toP = vec2(uv.x, (uv.y + (progress * modifier)) - modifier);\n\n return inBounds(fromP) ? getFromColor(fromP) : getToColor(toP);\n}\n","author":"OllyOllyOlly","license":"MIT","description":"The halves of both images slide vertically in opposite directions, out and in at once","tags":["slide","split","vertical"],"params":{"reverse":{"type":"bool","default":false,"description":"Swap the directions of the halves"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"SplitSlideInVertical","paramsTypes":{"reverse":"bool"},"defaultParams":{"reverse":false},"glsl":"// Author: OllyOllyOlly\n// License: MIT\n// Description: The incoming image slides in as two halves moving vertically in opposite directions\n// Tags: slide, split, vertical\n\n// @param Swap the directions of the halves\nuniform bool reverse; // = false\n\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n float modifier = reverse ? -1.0 : 1.0;\n vec2 p = (uv.x > 0.5) ?\n vec2(uv.x, (uv.y - (progress * modifier)) + modifier) :\n vec2(uv.x, (uv.y + (progress * modifier)) - modifier);\n\n return inBounds(p) ? getToColor(p) : getFromColor(uv);\n}\n","author":"OllyOllyOlly","license":"MIT","description":"The incoming image slides in as two halves moving vertically in opposite directions","tags":["slide","split","vertical"],"params":{"reverse":{"type":"bool","default":false,"description":"Swap the directions of the halves"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"SplitSlideOutHorizontal","paramsTypes":{"reverse":"bool"},"defaultParams":{"reverse":false},"glsl":"// Author: OllyOllyOlly\n// License: MIT\n// Description: The outgoing image slides out as two halves moving horizontally in opposite directions\n// Tags: slide, split, horizontal\n\n// @param Swap the directions of the halves\nuniform bool reverse; // = false\n\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n float modifier = (uv.y > 0.5 ? 1.0 : -1.0) * (reverse ? -1.0 : 1.0) ;\n vec2 p = vec2(uv.x + (progress * modifier), uv.y);\n\n return inBounds(p) ? getFromColor(p) : getToColor(uv);\n}\n","author":"OllyOllyOlly","license":"MIT","description":"The outgoing image slides out as two halves moving horizontally in opposite directions","tags":["slide","split","horizontal"],"params":{"reverse":{"type":"bool","default":false,"description":"Swap the directions of the halves"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"SplitSlideOutVertical","paramsTypes":{"reverse":"bool"},"defaultParams":{"reverse":false},"glsl":"// Author: OllyOllyOlly\n// License: MIT\n// Description: The outgoing image slides out as two halves moving vertically in opposite directions\n// Tags: slide, split, vertical\n\n// @param Swap the directions of the halves\nuniform bool reverse; // = false\n\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n float modifier = (uv.x > 0.5 ? 1.0 : -1.0) * (reverse ? -1.0 : 1.0) ;\n vec2 p = vec2(uv.x, uv.y + (progress * modifier));\n\n return inBounds(p) ? getFromColor(p) : getToColor(uv);\n}\n","author":"OllyOllyOlly","license":"MIT","description":"The outgoing image slides out as two halves moving vertically in opposite directions","tags":["slide","split","vertical"],"params":{"reverse":{"type":"bool","default":false,"description":"Swap the directions of the halves"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"SpotlightWipe","paramsTypes":{"center":"vec2","size":"float","darkness":"float","warmth":"vec3"},"defaultParams":{"center":[0.5,0.5],"size":0.3,"darkness":0.85,"warmth":[1,0.93,0.8]},"glsl":"// Author: gre\n// License: MIT\n// Description: The stage lights go down on the outgoing image and a soft oval spotlight searches across it along a curved path, comes to rest and lights the incoming image inside it, then widens until the stage lights come back up on the incoming image\n// Tags: light, spotlight, stage, iris, reveal\n\n// @param Point where the spotlight comes to rest and opens from\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @range(0.08, 0.45) Width of the spotlight while it searches, in frame heights\nuniform float size; // = 0.3\n// @range(0, 1) How dark the stage gets around the spotlight\nuniform float darkness; // = 0.85\n// @color Tint of the spotlight\nuniform vec3 warmth; // = vec3(1.0, 0.93, 0.8)\n\n// height of the oval over its width: a cone of light hitting a stage seen at an angle\nconst float FLAT = 0.72;\n// distance to the spotlight's center, in oval radii, inside which the incoming image is fully lit\nconst float LIT = 0.74;\n\n// a point of the curved path the spotlight searches along, from the lower left to its resting point\nvec2 path(float t, vec2 c) {\n vec2 a = vec2(0.08, 0.3);\n vec2 b = vec2(0.35, 1.15);\n vec2 d = vec2(1.05, 0.95);\n float s = 1.0 - t;\n return s * s * s * a + 3.0 * s * s * t * b + 3.0 * s * t * t * d + t * t * t * c;\n}\n\nvec4 transition(vec2 uv) {\n vec2 asp = vec2(ratio, 1.0);\n float p = progress;\n\n // the spotlight slides along its path and eases to rest, its last few steps overlapping the start\n // of its widening so the motion never stops\n float t = clamp(p / 0.5, 0.0, 1.0);\n t = t * t * (3.0 - 2.0 * t);\n vec2 c = path(t, center);\n\n // it widens until its lit core covers the farthest corner of the frame\n vec2 far = max(center, 1.0 - center) * asp;\n float full = length(vec2(far.x, far.y / FLAT)) / LIT;\n float g = smoothstep(0.44, 1.0, p);\n float radius = mix(0.5 * size, full, g * (0.3 + 0.7 * g));\n\n // distance to the spotlight's center, 1 on the oval's edge\n vec2 q = (uv - c) * asp;\n float r = length(vec2(q.x, q.y / FLAT)) / radius;\n\n // light of the spotlight: a flat core, a soft penumbra, a slightly brighter rim and a faint spill\n float core = 1.0 - smoothstep(0.72, 1.08, r);\n float ring = (r - 0.9) / 0.09;\n float spot = max(core * (1.0 - 0.1 * r * r), 0.12 * (1.0 - smoothstep(0.9, 2.4, r))) + 0.16 * exp(-ring * ring);\n\n // the stage lights go down at the start and come back up at the end\n float s = darkness * smoothstep(0.0, 0.18, p) * (1.0 - smoothstep(0.72, 1.0, p));\n vec3 light = 1.0 - s + s * spot * warmth;\n\n // as it comes to rest, the spotlight lights the incoming image inside it\n float lit = smoothstep(0.42, 0.58, p) * (1.0 - smoothstep(LIT, 1.0, r));\n vec4 col = mix(getFromColor(uv), getToColor(uv), lit);\n return vec4(col.rgb * light, col.a);\n}\n","author":"gre","license":"MIT","description":"The stage lights go down on the outgoing image and a soft oval spotlight searches across it along a curved path, comes to rest and lights the incoming image inside it, then widens until the stage lights come back up on the incoming image","tags":["light","spotlight","stage","iris","reveal"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Point where the spotlight comes to rest and opens from"},"size":{"type":"float","default":0.3,"min":0.08,"max":0.45,"description":"Width of the spotlight while it searches, in frame heights"},"darkness":{"type":"float","default":0.85,"min":0,"max":1,"description":"How dark the stage gets around the spotlight"},"warmth":{"type":"vec3","default":[1,0.93,0.8],"color":true,"description":"Tint of the spotlight"}},"textures":[],"createdAt":"Sun, 8 Nov 2026 21:30:20 +0100","updatedAt":"Sun, 8 Nov 2026 21:30:20 +0100"},{"name":"SquaresWipe","paramsTypes":{"squares":"ivec2","direction":"vec2","smoothness":"float"},"defaultParams":{"squares":[10,10],"direction":[1,-0.5],"smoothness":1.6},"glsl":"// Author: gre\n// License: MIT\n// Description: Squares grow along a diagonal sweep to reveal the incoming image\n// Tags: squares, grid, wipe, directional\n \n// @param Number of squares (columns, rows)\nuniform ivec2 squares;// = ivec2(10,10)\n// @param Direction of the sweep\nuniform vec2 direction;// = vec2(1.0, -0.5)\n// @param Softness of the sweep\nuniform float smoothness; // = 1.6\n\nconst vec2 center = vec2(0.5, 0.5);\nvec4 transition (vec2 p) {\n vec2 v = normalize(direction);\n v /= abs(v.x)+abs(v.y);\n float d = v.x * center.x + v.y * center.y;\n float offset = smoothness;\n float pr = smoothstep(-offset, 0.0, v.x * p.x + v.y * p.y - (d-0.5+progress*(1.+offset)));\n vec2 squarep = fract(p*vec2(squares));\n vec2 squaremin = vec2(pr/2.0);\n vec2 squaremax = vec2(1.0 - pr/2.0);\n float a = (1.0 - step(progress, 0.0)) * step(squaremin.x, squarep.x) * step(squaremin.y, squarep.y) * step(squarep.x, squaremax.x) * step(squarep.y, squaremax.y);\n return mix(getFromColor(p), getToColor(p), a);\n}\n","author":"gre","license":"MIT","description":"Squares grow along a diagonal sweep to reveal the incoming image","tags":["squares","grid","wipe","directional"],"params":{"squares":{"type":"ivec2","default":[10,10],"description":"Number of squares (columns, rows)"},"direction":{"type":"vec2","default":[1,-0.5],"description":"Direction of the sweep"},"smoothness":{"type":"float","default":1.6,"description":"Softness of the sweep"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"Squeeze","paramsTypes":{"colorSeparation":"float"},"defaultParams":{"colorSeparation":0.04},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image is squeezed into a line with color separation, revealing the incoming one\n// Tags: squeeze, chromatic, vertical\n \n// @param Amount of color separation\nuniform float colorSeparation; // = 0.04\n \nvec4 transition (vec2 uv) {\n float y = 0.5 + (uv.y-0.5) / (1.0-progress);\n if (y < 0.0 || y > 1.0) {\n return getToColor(uv);\n }\n else {\n vec2 fp = vec2(uv.x, y);\n vec2 off = progress * vec2(0.0, colorSeparation);\n vec4 c = getFromColor(fp);\n vec4 cn = getFromColor(fp - off);\n vec4 cp = getFromColor(fp + off);\n return vec4(cn.r, c.g, cp.b, c.a);\n }\n}\n","author":"gre","license":"MIT","description":"The outgoing image is squeezed into a line with color separation, revealing the incoming one","tags":["squeeze","chromatic","vertical"],"params":{"colorSeparation":{"type":"float","default":0.04,"description":"Amount of color separation"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"StarWipe","paramsTypes":{"border_thickness":"float","star_rotation":"float","border_color":"vec4","star_center":"vec2"},"defaultParams":{"border_thickness":0.01,"star_rotation":0.75,"border_color":[1,1,1,1],"star_center":[0.5,0.5]},"glsl":"// Author: Ben Lucas\n// License: MIT\n// Description: A growing star reveals the incoming image\n// Tags: wipe, shape, star\n#define PI 3.141592653589793\n#define STAR_ANGLE 1.2566370614359172\n\n// @param Thickness of the star's border\nuniform float border_thickness;// = 0.01\nuniform float star_rotation;// = 0.75\n// @color Color of the star's border\nuniform vec4 border_color; // = vec4(1.0)\n// @param Center of the star\nuniform vec2 star_center;// = vec2(0.5)\n\nvec2 rotate(vec2 v, float theta) {\n float cosTheta = cos(theta);\n float sinTheta = sin(theta);\n\n return vec2(\n cosTheta * v.x - sinTheta * v.y,\n sinTheta * v.x + cosTheta * v.y\n );\n}\n\nbool inStar(vec2 uv, vec2 center, float radius){\n vec2 uv_centered = uv - center;\n uv_centered = rotate(uv_centered, star_rotation * STAR_ANGLE);\n float theta = atan(uv_centered.y, uv_centered.x) + PI;\n\n vec2 uv_rotated = rotate(uv_centered, -STAR_ANGLE * (floor(theta / STAR_ANGLE) + 0.5));\n\n float slope = 0.3;\n if(uv_rotated.y > 0.0){\n return (radius + uv_rotated.x * slope > uv_rotated.y);\n } else {\n return (-radius - uv_rotated.x * slope < uv_rotated.y);\n }\n}\n\nvec4 transition (vec2 uv) {\n float progressScaled = (2.0 * border_thickness + 1.0) * progress - border_thickness;\n if(inStar(uv, star_center, progressScaled)){\n return getToColor(uv);\n } else if(inStar(uv, star_center, progressScaled+border_thickness)){\n return border_color;\n } else {\n return getFromColor(uv);\n }\n}\n","author":"Ben Lucas","license":"MIT","description":"A growing star reveals the incoming image","tags":["wipe","shape","star"],"params":{"border_thickness":{"type":"float","default":0.01,"description":"Thickness of the star's border"},"star_rotation":{"type":"float","default":0.75},"border_color":{"type":"vec4","default":[1,1,1,1],"color":true,"description":"Color of the star's border"},"star_center":{"type":"vec2","default":[0.5,0.5],"description":"Center of the star"}},"textures":[],"createdAt":"Wed, 1 Apr 2026 10:31:54 -0700","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"StaticFade","paramsTypes":{"n_noise_pixels":"float","static_luminosity":"float"},"defaultParams":{"n_noise_pixels":200,"static_luminosity":0.8},"glsl":"// Author: Ben Lucas\n// License: MIT\n// Description: Cuts to the incoming image halfway, hidden behind a burst of TV static\n// Tags: static, noise, retro\n\nuniform float n_noise_pixels ; // = 200.0\nuniform float static_luminosity ; // = 0.8\n\nfloat rnd (vec2 st) {\n return fract(sin(dot(st.xy,\n vec2(10.5302340293,70.23492931)))*\n 12345.5453123);\n}\n\nvec4 staticNoise (vec2 st, float offset, float luminosity, float alpha) {\n float staticR = luminosity * rnd(st * vec2(offset * 2.0, offset * 3.0));\n float staticG = luminosity * rnd(st * vec2(offset * 3.0, offset * 5.0));\n float staticB = luminosity * rnd(st * vec2(offset * 5.0, offset * 7.0));\n return vec4(staticR, staticG, staticB, alpha);\n}\n\nfloat staticIntensity(float t)\n{\n float transitionProgress = abs(2.0*(t-0.5));\n float transformedThreshold =1.2*(1.0 - transitionProgress)-0.1;\n return min(1.0, transformedThreshold);\n}\n \nvec4 transition (vec2 uv) {\n\n float baseMix = step(0.5, progress);\n vec4 transitionMix = mix(\n getFromColor(uv),\n getToColor(uv),\n baseMix\n );\n \n vec2 uvStatic = floor(uv * n_noise_pixels)/n_noise_pixels;\n \n vec4 staticColor = staticNoise(uvStatic, progress, static_luminosity, transitionMix.a); // static where the image is\n\n float staticThresh = staticIntensity(progress);\n float staticMix = step(rnd(uvStatic), staticThresh);\n\n return mix(transitionMix, staticColor, staticMix);\n}\n","author":"Ben Lucas","license":"MIT","description":"Cuts to the incoming image halfway, hidden behind a burst of TV static","tags":["static","noise","retro"],"params":{"n_noise_pixels":{"type":"float","default":200},"static_luminosity":{"type":"float","default":0.8}},"textures":[],"createdAt":"Fri, 2 Jun 2023 04:27:43 -0400","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"StaticWipe","paramsTypes":{"u_transitionUpToDown":"bool","u_max_static_span":"float"},"defaultParams":{"u_transitionUpToDown":true,"u_max_static_span":0.5},"glsl":"// Author: Ben Lucas\n// License: MIT\n// Description: A wipe from top to bottom with a band of TV static at its edge\n// Tags: wipe, static, noise, vertical\n\n#define PI 3.14159265359\n\nfloat rnd (vec2 st) {\n return fract(sin(dot(st.xy,\n vec2(10,70)))*\n 12345.5453123);\n}\n\n// @param Wipe from top to bottom; false wipes from bottom to top\nuniform bool u_transitionUpToDown; // = true\n// @param Maximum height of the static band\nuniform float u_max_static_span; // = 0.5\n\nvec4 transition (vec2 uv) {\n \n\n float span = u_max_static_span*pow(sin(PI*progress),0.5);\n \n float transitionEdge = u_transitionUpToDown ? 1.0-uv.y : uv.y;\n float mixRatio = 1.0 - step(progress, transitionEdge);\n\n vec4 transitionMix = mix(\n getFromColor(uv),\n getToColor(uv),\n mixRatio\n );\n \n float noiseEnvelope = smoothstep(progress-span, progress, transitionEdge) * (1.0 - smoothstep(progress, progress + span, transitionEdge));\n vec4 noise = vec4(vec3(rnd(uv*(1.0+progress))), transitionMix.a); // static where the image is\n \n\n return mix(transitionMix, noise, noiseEnvelope);\n}\n","author":"Ben Lucas","license":"MIT","description":"A wipe from top to bottom with a band of TV static at its edge","tags":["wipe","static","noise","vertical"],"params":{"u_transitionUpToDown":{"type":"bool","default":true,"description":"Wipe from top to bottom; false wipes from bottom to top"},"u_max_static_span":{"type":"float","default":0.5,"description":"Maximum height of the static band"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"StereoViewer","paramsTypes":{"zoom":"float","corner_radius":"float"},"defaultParams":{"zoom":0.88,"corner_radius":0.22},"glsl":"// Tunable parameters\n// How much to zoom (out) for the effect ~ 0.5 - 1.0\n// @range(0.5, 1) How much the images zoom out\nuniform float zoom; // = 0.88\n// Corner radius as a fraction of the image height\nuniform float corner_radius; // = 0.22\n\n// Author: Ted Schundler\n// License: BSD 2 Clause\n// Description: Both images shrink into rounded cards that swap, like a stereo viewer toy\n// Tags: cards, zoom, retro\n// Free for use and modification by anyone with credit\n\n// Copyright (c) 2016, Theodore K Schundler\n// All rights reserved.\n\n// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n// 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n///////////////////////////////////////////////////////////////////////////////\n// Stereo Viewer Toy Transition //\n// //\n// Inspired by ViewMaster / Image3D image viewer devices. //\n// This effect is similar to what you see when you press the device's lever. //\n// There is a quick zoom in / out to make the transition 'valid' for GLSL.io //\n///////////////////////////////////////////////////////////////////////////////\n\nconst vec4 black = vec4(0.0); // where no image is drawn: transparent\nconst vec2 c00 = vec2(0.0, 0.0); // the four corner points\nconst vec2 c01 = vec2(0.0, 1.0);\nconst vec2 c11 = vec2(1.0, 1.0);\nconst vec2 c10 = vec2(1.0, 0.0);\n\n// Check if a point is within a given corner\nbool in_corner(vec2 p, vec2 corner, vec2 radius) {\n // determine the direction we want to be filled\n vec2 axis = (c11 - corner) - corner;\n\n // warp the point so we are always testing the bottom left point with the\n // circle centered on the origin\n p = p - (corner + axis * radius);\n p *= axis / radius;\n return (p.x > 0.0 && p.y > -1.0) || (p.y > 0.0 && p.x > -1.0) || dot(p, p) < 1.0;\n}\n\n// Check all four corners\n// return a float for v2 for anti-aliasing?\nbool test_rounded_mask(vec2 p, vec2 corner_size) {\n return\n in_corner(p, c00, corner_size) &&\n in_corner(p, c01, corner_size) &&\n in_corner(p, c10, corner_size) &&\n in_corner(p, c11, corner_size);\n}\n\n// Screen blend mode - https://en.wikipedia.org/wiki/Blend_modes\n// This more closely approximates what you see than linear blending\nvec4 screen(vec4 a, vec4 b) {\n return 1.0 - (1.0 - a) * (1.0 -b);\n}\n\n// Given RGBA, find a value that when screened with itself\n// will yield the original value.\nvec4 unscreen(vec4 c) {\n return 1.0 - sqrt(1.0 - c);\n}\n\n// Grab a pixel, only if it isn't masked out by the rounded corners\nvec4 sample_with_corners_from(vec2 p, vec2 corner_size) {\n p = (p - 0.5) / zoom + 0.5;\n if (!test_rounded_mask(p, corner_size)) {\n return black;\n }\n return unscreen(getFromColor(p));\n}\n\nvec4 sample_with_corners_to(vec2 p, vec2 corner_size) {\n p = (p - 0.5) / zoom + 0.5;\n if (!test_rounded_mask(p, corner_size)) {\n return black;\n }\n return unscreen(getToColor(p));\n}\n\n// special sampling used when zooming - extra zoom parameter and don't unscreen\nvec4 simple_sample_with_corners_from(vec2 p, vec2 corner_size, float zoom_amt) {\n p = (p - 0.5) / (1.0 - zoom_amt + zoom * zoom_amt) + 0.5;\n if (!test_rounded_mask(p, corner_size)) {\n return black;\n }\n return getFromColor(p);\n}\n\nvec4 simple_sample_with_corners_to(vec2 p, vec2 corner_size, float zoom_amt) {\n p = (p - 0.5) / (1.0 - zoom_amt + zoom * zoom_amt) + 0.5;\n if (!test_rounded_mask(p, corner_size)) {\n return black;\n }\n return getToColor(p);\n}\n\n// Basic 2D affine transform matrix helpers\n// These really shouldn't be used in a fragment shader - I should work out the\n// the math for a translate & rotate function as a pair of dot products instead\n\nmat3 rotate2d(float angle, float ratio) {\n float s = sin(angle);\n float c = cos(angle);\n return mat3(\n c, s ,0.0,\n -s, c, 0.0,\n 0.0, 0.0, 1.0);\n}\n\nmat3 translate2d(float x, float y) {\n return mat3(\n 1.0, 0.0, 0,\n 0.0, 1.0, 0,\n -x, -y, 1.0);\n}\n\nmat3 scale2d(float x, float y) {\n return mat3(\n x, 0.0, 0,\n 0.0, y, 0,\n 0, 0, 1.0);\n}\n\n// Split an image and rotate one up and one down along off screen pivot points\nvec4 get_cross_rotated(vec3 p3, float angle, vec2 corner_size, float ratio) {\n angle = angle * angle; // easing\n angle /= 2.4; // works out to be a good number of radians\n\n mat3 center_and_scale = translate2d(-0.5, -0.5) * scale2d(1.0, ratio);\n mat3 unscale_and_uncenter = scale2d(1.0, 1.0/ratio) * translate2d(0.5,0.5);\n mat3 slide_left = translate2d(-2.0,0.0);\n mat3 slide_right = translate2d(2.0,0.0);\n mat3 rotate = rotate2d(angle, ratio);\n\n mat3 op_a = center_and_scale * slide_right * rotate * slide_left * unscale_and_uncenter;\n mat3 op_b = center_and_scale * slide_left * rotate * slide_right * unscale_and_uncenter;\n\n vec4 a = sample_with_corners_from((op_a * p3).xy, corner_size);\n vec4 b = sample_with_corners_from((op_b * p3).xy, corner_size);\n\n return screen(a, b);\n}\n\n// Image stays put, but this time move two masks\nvec4 get_cross_masked(vec3 p3, float angle, vec2 corner_size, float ratio) {\n angle = 1.0 - angle;\n angle = angle * angle; // easing\n angle /= 2.4;\n\n vec4 img;\n\n mat3 center_and_scale = translate2d(-0.5, -0.5) * scale2d(1.0, ratio);\n mat3 unscale_and_uncenter = scale2d(1.0 / zoom, 1.0 / (zoom * ratio)) * translate2d(0.5,0.5);\n mat3 slide_left = translate2d(-2.0,0.0);\n mat3 slide_right = translate2d(2.0,0.0);\n mat3 rotate = rotate2d(angle, ratio);\n\n mat3 op_a = center_and_scale * slide_right * rotate * slide_left * unscale_and_uncenter;\n mat3 op_b = center_and_scale * slide_left * rotate * slide_right * unscale_and_uncenter;\n\n bool mask_a = test_rounded_mask((op_a * p3).xy, corner_size);\n bool mask_b = test_rounded_mask((op_b * p3).xy, corner_size);\n\n if (mask_a || mask_b) {\n img = sample_with_corners_to(p3.xy, corner_size);\n return screen(mask_a ? img : black, mask_b ? img : black);\n } else {\n return black;\n }\n}\n\nvec4 transition(vec2 uv) {\n float a;\n vec2 p=uv.xy/vec2(1.0).xy;\n vec3 p3 = vec3(p.xy, 1.0); // for 2D matrix transforms\n\n // corner is warped to represent to size after mapping to 1.0, 1.0\n vec2 corner_size = vec2(corner_radius / ratio, corner_radius);\n\n if (progress <= 0.0) {\n // 0.0: start with the base frame always\n return getFromColor(p);\n } else if (progress < 0.1) {\n // 0.0-0.1: zoom out and add rounded corners\n a = progress / 0.1;\n return simple_sample_with_corners_from(p, corner_size * a, a);\n } else if (progress < 0.48) {\n // 0.1-0.48: Split original image apart\n a = (progress - 0.1)/0.38;\n return get_cross_rotated(p3, a, corner_size, ratio);\n } else if (progress < 0.9) {\n // 0.48-0.52: black\n // 0.52 - 0.9: unmask new image\n return get_cross_masked(p3, (progress - 0.52)/0.38, corner_size, ratio);\n } else if (progress < 1.0) {\n // zoom out and add rounded corners\n a = (1.0 - progress) / 0.1;\n return simple_sample_with_corners_to(p, corner_size * a, a);\n } else {\n // 1.0 end with base frame\n return getToColor(p);\n }\n}\n","author":"Ted Schundler","license":"BSD 2 Clause","description":"Both images shrink into rounded cards that swap, like a stereo viewer toy","tags":["cards","zoom","retro"],"params":{"zoom":{"type":"float","default":0.88,"min":0.5,"max":1,"description":"How much the images zoom out"},"corner_radius":{"type":"float","default":0.22}},"textures":[],"createdAt":"Tue, 20 Feb 2018 23:20:29 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"StretchSlide","paramsTypes":{"direction":"vec2","stretch":"float","bounce":"float"},"defaultParams":{"direction":[-1,0],"stretch":0.6,"bounce":0.6},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image stretches out long as it shoots away to one side, pulling in the incoming one squashed behind it, which overshoots and springs back to its shape\n// Tags: slide, stretch, squash, elastic, bounce, directional\n\n// @param Direction in which the images slide\nuniform vec2 direction; // = vec2(-1.0, 0.0)\n// @range(0, 1) How long the outgoing image stretches and how much the squashed incoming one bulges\nuniform float stretch; // = 0.6\n// @range(0, 1) How far the incoming image overshoots before it springs back to its shape\nuniform float bounce; // = 0.6\n\nconst float PI = 3.14159265;\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\nvec4 transition(vec2 uv) {\n float dl = length(direction);\n vec2 d = dl > 1e-6 ? direction / dl : vec2(-1.0, 0.0);\n vec2 n = vec2(-d.y, d.x);\n // s: position along the slide across the frame, from 0 (trailing side) to 1 (leading side)\n float ext = abs(d.x) + abs(d.y);\n vec2 q = uv - 0.5;\n float s = 0.5 + dot(q, d) / ext;\n float t = progress;\n\n // the slide accelerates into the landing (a smoothstep when there is no bounce)\n float land = mix(1.0, 0.5, bounce);\n float m = 3.0 * bounce; // speed at the landing, relative to a linear slide\n float x = clamp(t / land, 0.0, 1.0);\n float e = x * x * (3.0 - 2.0 * x) + m * x * x * (x - 1.0);\n // then a damped spring, starting at the landing speed, that comes to rest exactly at the end\n float w = 2.5 * PI;\n float u = clamp((t - land) / max(1.0 - land, 1e-4), 0.0, 1.0);\n float osc = m * (1.0 - land) / (land * w) * exp(-u) * sin(w * u) * (1.0 - u) * (1.0 - u);\n // past the landing the frame stays covered: the spring stretches the incoming image\n // along the slide, and squashes it back into a sideways bulge\n float len = e + max(osc, 0.0);\n float bulge = 1.0 - e + 3.0 * max(-osc, 0.0);\n\n // the incoming image is pinned at the trailing side and spans up to the seam\n float g = 1.0 + 0.6 * stretch * bulge;\n vec2 pt = q + d * (s / max(len, 1e-4) - s) * ext;\n pt -= n * dot(pt, n) * (1.0 - 1.0 / g);\n vec4 b = getToColor(mirror(pt + 0.5));\n\n // the outgoing image hangs from the seam and stretches out long ahead of it,\n // the most near the seam, where it is pulled\n float l = 1.0 + 4.0 * stretch * e;\n float k = clamp(1.6 * stretch * e, 0.0, 0.8);\n float y = max(s - e, 0.0) / l;\n // invert y = (1 + k) v - k v^2\n float v = 2.0 * y / ((1.0 + k) + sqrt((1.0 + k) * (1.0 + k) - 4.0 * k * y));\n vec4 a = getFromColor(mirror(q + d * (v - s) * ext + 0.5));\n\n // past the landing, only the incoming image is left\n return (s < len || t >= land) ? b : a;\n}\n","author":"gre","license":"MIT","description":"The outgoing image stretches out long as it shoots away to one side, pulling in the incoming one squashed behind it, which overshoots and springs back to its shape","tags":["slide","stretch","squash","elastic","bounce","directional"],"params":{"direction":{"type":"vec2","default":[-1,0],"description":"Direction in which the images slide"},"stretch":{"type":"float","default":0.6,"min":0,"max":1,"description":"How long the outgoing image stretches and how much the squashed incoming one bulges"},"bounce":{"type":"float","default":0.6,"min":0,"max":1,"description":"How far the incoming image overshoots before it springs back to its shape"}},"textures":[],"createdAt":"Tue, 3 Nov 2026 13:10:31 +0100","updatedAt":"Tue, 3 Nov 2026 13:10:31 +0100"},{"name":"StripDatamoshGlitch","paramsTypes":{"strength":"float","horizontalBars":"float","verticalSlits":"float","tear":"float","chroma":"float","residue":"float","noiseAmount":"float","scanAmount":"float","flashAmount":"float"},"defaultParams":{"strength":1,"horizontalBars":42,"verticalSlits":18,"tear":0.18,"chroma":0.032,"residue":0.62,"noiseAmount":0.16,"scanAmount":0.13,"flashAmount":0.2},"glsl":"// Author: bread\n// License: MIT\n// Description: A datamosh glitch: torn strips, chroma shifts and scan noise drag the outgoing image into the incoming one\n// Tags: glitch, datamosh, chromatic\n\nuniform float strength; // = 1.0\nuniform float horizontalBars; // = 42.0\nuniform float verticalSlits; // = 18.0\nuniform float tear; // = 0.18\nuniform float chroma; // = 0.032\nuniform float residue; // = 0.62\nuniform float noiseAmount; // = 0.16\nuniform float scanAmount; // = 0.13\nuniform float flashAmount; // = 0.20\n\nconst float PI = 3.141592653589793;\n\nfloat hash(float n) {\n return fract(sin(n) * 43758.5453123);\n}\n\nfloat hash(vec2 p) {\n return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453123);\n}\n\nfloat sat(float v) {\n return clamp(v, 0.0, 1.0);\n}\n\nfloat burst() {\n return pow(max(0.0, sin(progress * PI)), 0.42) * strength;\n}\n\nvec2 safeUv(vec2 uv) {\n return clamp(uv, vec2(0.0), vec2(1.0));\n}\n\nfloat stripeY(vec2 uv, float density, float seed, float minWidth, float maxWidth) {\n float y = uv.y * density + seed * 0.137;\n float id = floor(y);\n float f = fract(y);\n float c = hash(vec2(id, seed));\n float w = mix(minWidth, maxWidth, hash(vec2(id + 9.17, seed + 2.31)));\n return 1.0 - smoothstep(w, w + 0.018, abs(f - c));\n}\n\nfloat stripeX(vec2 uv, float density, float seed, float minWidth, float maxWidth) {\n float x = uv.x * density + seed * 0.091;\n float id = floor(x);\n float f = fract(x);\n float c = hash(vec2(id, seed + 41.0));\n float w = mix(minWidth, maxWidth, hash(vec2(id + 4.7, seed + 8.9)));\n return 1.0 - smoothstep(w, w + 0.012, abs(f - c));\n}\n\nfloat brokenGate(vec2 uv, float row, float rnd, float frame) {\n float segs = mix(1.0, 9.0, hash(vec2(row, frame + 44.0)));\n float seg = floor(uv.x * segs);\n return step(0.16, hash(vec2(seg, row + frame * 3.0 + rnd)));\n}\n\nfloat horizontalMask(vec2 uv, float frame) {\n float r1 = floor((uv.y + hash(frame) * 0.031) * horizontalBars * 0.38);\n float r2 = floor((uv.y + hash(frame + 2.0) * 0.013) * horizontalBars);\n float r3 = floor((uv.y + hash(frame + 7.0) * 0.006) * horizontalBars * 3.4);\n\n float thick = stripeY(uv, horizontalBars * 0.38, frame + 1.0, 0.035, 0.22);\n float mid = stripeY(uv, horizontalBars, frame + 4.0, 0.014, 0.11);\n float hair = stripeY(uv, horizontalBars * 3.4, frame + 9.0, 0.004, 0.035);\n\n thick *= step(0.42, hash(vec2(r1, frame + 10.0)));\n mid *= step(0.48, hash(vec2(r2, frame + 20.0)));\n hair *= step(0.62, hash(vec2(r3, frame + 30.0)));\n\n thick *= brokenGate(uv, r1, hash(vec2(r1, frame)), frame);\n mid *= brokenGate(uv, r2, hash(vec2(r2, frame)), frame + 3.0);\n\n return sat(max(thick, max(mid, hair)));\n}\n\nfloat verticalMask(vec2 uv, float frame) {\n float col = floor((uv.x + hash(frame + 12.0) * 0.017) * verticalSlits);\n float slit = stripeX(uv, verticalSlits, frame + 13.0, 0.01, 0.075);\n slit *= step(0.66, hash(vec2(col, frame + 19.0)));\n return sat(slit);\n}\n\nvec4 chromaFrom(vec2 uv, vec2 s) {\n uv = safeUv(uv);\n vec4 center = getFromColor(uv);\n return vec4(\n getFromColor(safeUv(uv + s)).r,\n center.g,\n getFromColor(safeUv(uv - s)).b,\n center.a\n );\n}\n\nvec4 chromaTo(vec2 uv, vec2 s) {\n uv = safeUv(uv);\n vec4 center = getToColor(uv);\n return vec4(\n getToColor(safeUv(uv - s)).r,\n center.g,\n getToColor(safeUv(uv + s)).b,\n center.a\n );\n}\n\nvec2 distortUv(vec2 uv, float dir, float b, float h, float v, float frame) {\n float row = floor(uv.y * horizontalBars);\n float col = floor(uv.x * verticalSlits);\n\n float rowRnd = hash(vec2(row, frame));\n float colRnd = hash(vec2(col, frame + 27.0));\n\n float xTear = (rowRnd - 0.5) * 2.0 * tear * b * h;\n xTear += sin(uv.y * 120.0 + progress * 95.0) * 0.006 * b;\n\n float yDrag = (colRnd - 0.5) * 0.13 * b * v;\n float micro = (hash(vec2(row, col + frame)) - 0.5) * 0.018 * b * max(h, v);\n\n return uv + vec2(xTear * dir + micro, yDrag);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n float b = burst();\n float frame = floor(progress * 30.0);\n\n float h = horizontalMask(uv, frame);\n float v = verticalMask(uv, frame);\n float glitch = sat(max(h, v * 0.75));\n\n float row = floor(uv.y * horizontalBars);\n float rowRnd = hash(vec2(row, frame + 5.0));\n\n float bandDelay = (rowRnd - 0.5) * 0.30 * h;\n float reveal = smoothstep(0.18, 0.84, progress + bandDelay);\n\n vec2 split = vec2(chroma * b * (1.0 + 1.7 * glitch), chroma * 0.22 * b * v);\n\n vec2 fromUv = distortUv(uv, 1.0, b, h, v, frame);\n vec2 toUv = distortUv(uv, -1.0, b, h, v, frame);\n\n vec4 color = mix(\n chromaFrom(fromUv, split),\n chromaTo(toUv, split),\n reveal\n );\n\n // Horizontal time-slice residue: old/new frames dragged through uneven scan bands.\n vec2 smearUv = uv;\n smearUv.x += (rowRnd - 0.5) * 0.46 * b * h;\n smearUv.y += (hash(vec2(row, frame + 31.0)) - 0.5) * 0.045 * b * h;\n\n float sliceReveal = smoothstep(0.28, 0.78, progress + (rowRnd - 0.5) * 0.22);\n vec4 sliceColor = mix(\n chromaFrom(smearUv, split * 1.65),\n chromaTo(smearUv - vec2((rowRnd - 0.5) * 0.18 * b, 0.0), split * 1.65),\n sliceReveal\n );\n\n color = mix(color, sliceColor, h * b * residue);\n\n // Thin scan sparks and broken white lines, like the reference clip's bright horizontal noise.\n float hairLine = stripeY(uv, 190.0, frame + 55.0, 0.002, 0.012);\n hairLine *= step(0.70, hash(vec2(floor(uv.y * 190.0), frame + 56.0)));\n color.rgb += vec3(0.72, 0.90, 1.0) * hairLine * b * 0.28;\n\n float scan = 0.5 + 0.5 * sin(uv.y * 980.0 + progress * 130.0);\n color.rgb *= 1.0 - scanAmount * b * scan;\n\n vec2 nCell = floor(uv * vec2(360.0 * ratio, 210.0));\n float n = hash(nCell + vec2(frame * 7.0, frame * 13.0));\n color.rgb += (n - 0.5) * noiseAmount * b * (0.55 + glitch);\n\n // Slight desaturation during the damage peak makes it feel more like broadcast/video signal corruption.\n float luma = dot(color.rgb, vec3(0.299, 0.587, 0.114));\n color.rgb = mix(color.rgb, vec3(luma), 0.18 * b * glitch);\n\n float strobe = step(0.78, hash(vec2(frame, 3.14))) * pow(b, 1.65);\n color.rgb += vec3(strobe * flashAmount);\n\n return vec4(clamp(color.rgb, vec3(0.0), vec3(1.0)), color.a);\n}\n","author":"bread","license":"MIT","description":"A datamosh glitch: torn strips, chroma shifts and scan noise drag the outgoing image into the incoming one","tags":["glitch","datamosh","chromatic"],"params":{"strength":{"type":"float","default":1},"horizontalBars":{"type":"float","default":42},"verticalSlits":{"type":"float","default":18},"tear":{"type":"float","default":0.18},"chroma":{"type":"float","default":0.032},"residue":{"type":"float","default":0.62},"noiseAmount":{"type":"float","default":0.16},"scanAmount":{"type":"float","default":0.13},"flashAmount":{"type":"float","default":0.2}},"textures":[],"createdAt":"Fri, 12 Jun 2026 15:15:42 +0800","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"Swap","paramsTypes":{"reflection":"float","perspective":"float","depth":"float"},"defaultParams":{"reflection":0.4,"perspective":0.2,"depth":3},"glsl":"// Author: gre\n// License: MIT\n// Description: The two images swap places in 3D, with a floor reflection\n// Tags: 3d, swap, reflection\n// General parameters\n// @param Strength of the reflection\nuniform float reflection; // = 0.4\n// @param Amount of perspective\nuniform float perspective; // = 0.2\nuniform float depth; // = 3.0\n \nconst vec4 black = vec4(0.0); // where no image is drawn: transparent\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n \nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n \nvec2 project (vec2 p) {\n return p * vec2(1.0, -1.2) + vec2(0.0, -0.02);\n}\n \nvec4 bgColor (vec2 p, vec2 pfr, vec2 pto) {\n vec4 c = black;\n pfr = project(pfr);\n if (inBounds(pfr)) {\n c += mix(black, getFromColor(pfr), reflection * mix(1.0, 0.0, pfr.y));\n }\n pto = project(pto);\n if (inBounds(pto)) {\n c += mix(black, getToColor(pto), reflection * mix(1.0, 0.0, pto.y));\n }\n return c;\n}\n \nvec4 transition(vec2 p) {\n vec2 pfr, pto = vec2(-1.);\n \n float size = mix(1.0, depth, progress);\n float persp = perspective * progress;\n pfr = (p + vec2(-0.0, -0.5)) * vec2(size/(1.0-perspective*progress), size/(1.0-size*persp*p.x)) + vec2(0.0, 0.5);\n \n size = mix(1.0, depth, 1.-progress);\n persp = perspective * (1.-progress);\n pto = (p + vec2(-1.0, -0.5)) * vec2(size/(1.0-perspective*(1.0-progress)), size/(1.0-size*persp*(0.5-p.x))) + vec2(1.0, 0.5);\n\n if (progress < 0.5) {\n if (inBounds(pfr)) {\n return getFromColor(pfr);\n }\n if (inBounds(pto)) {\n return getToColor(pto);\n } \n }\n if (inBounds(pto)) {\n return getToColor(pto);\n }\n if (inBounds(pfr)) {\n return getFromColor(pfr);\n }\n return bgColor(p, pfr, pto);\n}\n","author":"gre","license":"MIT","description":"The two images swap places in 3D, with a floor reflection","tags":["3d","swap","reflection"],"params":{"reflection":{"type":"float","default":0.4,"description":"Strength of the reflection"},"perspective":{"type":"float","default":0.2,"description":"Amount of perspective"},"depth":{"type":"float","default":3}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"Swirl","paramsTypes":{"strength":"float","radius":"float","center":"vec2"},"defaultParams":{"strength":1,"radius":0.9,"center":[0.5,0.5]},"glsl":"// License: MIT\n// Author: Sergey Kosarevsky\n// Description: The image twists into a round swirl around the center that peaks mid-way, where the outgoing image dissolves into the incoming one, then untwists\n// Tags: swirl, rotate, blend\n// ( http://www.linderdaum.com )\n// ported by gre from https://gist.github.com/corporateshark/cacfedb8cca0f5ce3f7c\n\n// @range(-3, 3) Turns of the swirl at its center at the peak (negative turns clockwise)\nuniform float strength; // = 1.0\n// @range(0.1, 2) Radius of the swirl, in frame heights\nuniform float radius; // = 0.9\n// Center of the swirl\nuniform vec2 center; // = vec2(0.5, 0.5)\n\nconst float PI = 3.141592653589793;\nconst float TAU = 6.283185307179586;\n// how much the swirl pulls the image toward its center at the peak\nconst float ZOOM = 0.12;\n// spread of the motion blur, as a fraction of the swirl's speed\nconst float BLUR = 0.05;\nconst int TAPS = 12;\n\n// fold the coordinates back into the frame, so the image stays filled without smearing its border\nvec2 mirrored(vec2 v) {\n vec2 m = mod(v, 2.0);\n return mix(m, 2.0 - m, step(1.0, m));\n}\n\nvec4 transition(vec2 uv) {\n // the swirl eases in and out, and is exactly 0 at both ends\n float s = sin(PI * progress);\n float amount = s * s;\n // its speed, used for the motion blur, also 0 at both ends\n float speed = PI * sin(TAU * progress);\n // the switch from the outgoing to the incoming image happens around the peak\n float reveal = smoothstep(0.3, 0.7, progress);\n\n // measured in frame heights, so the swirl is round\n vec2 aspect = vec2(ratio, 1.0);\n vec2 d = (uv - center) * aspect;\n float x = clamp(length(d) / max(radius, 1e-3), 0.0, 1.0);\n // the twist fades out smoothly toward the edge of the swirl\n float falloff = (1.0 - x) * (1.0 - x);\n float twist = strength * TAU * falloff;\n float angle = twist * amount;\n // capped so the blur taps never spread apart into visible streaks\n float spread = clamp(twist * speed * BLUR, -1.2, 1.2);\n // the swirl also slightly pulls the image toward its center\n d *= 1.0 - ZOOM * amount * falloff;\n\n vec4 col = vec4(0.0);\n float total = 0.0;\n for (int i = 0; i < TAPS; i++) {\n float k = float(i) / float(TAPS - 1) - 0.5;\n float w = 1.0 - abs(k);\n float a = angle + spread * k;\n float c = cos(a);\n float sn = sin(a);\n vec2 q = mirrored(center + vec2(c * d.x - sn * d.y, sn * d.x + c * d.y) / aspect);\n col += mix(getFromColor(q), getToColor(q), reveal) * w;\n total += w;\n }\n return col / total;\n}\n","author":"Sergey Kosarevsky","license":"MIT","description":"The image twists into a round swirl around the center that peaks mid-way, where the outgoing image dissolves into the incoming one, then untwists","tags":["swirl","rotate","blend"],"params":{"strength":{"type":"float","default":1,"min":-3,"max":3,"description":"Turns of the swirl at its center at the peak (negative turns clockwise)"},"radius":{"type":"float","default":0.9,"min":0.1,"max":2,"description":"Radius of the swirl, in frame heights"},"center":{"type":"vec2","default":[0.5,0.5]}},"textures":[],"createdAt":"Mon, 12 Jun 2017 12:38:27 +0800","updatedAt":"Sat, 7 Nov 2026 18:51:57 +0100"},{"name":"TangentMotionBlur","paramsTypes":{},"defaultParams":{},"glsl":"\n// License: MIT\n// Author: chenkai\n// Description: The outgoing image is flung away along a curve with motion blur\n// Tags: motion-blur, rotate, slide\n// ported from https://codertw.com/%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80/671116/\n\nfloat rand (vec2 co) {\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n \n// motion blur for texture from\nvec4 motionBlurFrom(vec2 _st, vec2 speed) {\n vec2 texCoord = _st.xy / vec2(1.0).xy;\n // Premultiplied sums, so that transparent samples do not darken the blur\n vec3 color = vec3(0.0);\n float alpha = 0.0;\n float total = 0.0;\n float offset = rand(_st);\n for (float t = 0.0; t <= 20.0; t++) {\n float percent = (t + offset) / 20.0;\n float weight = 4.0 * (percent - percent * percent);\n vec2 newuv = texCoord + speed * percent;\n newuv = fract(newuv);\n vec4 c = getFromColor(newuv);\n color += c.rgb * c.a * weight;\n alpha += c.a * weight;\n total += weight;\n }\n return vec4(color / max(alpha, 1e-5), alpha / total);\n}\n\n// motion blur for texture to\nvec4 motionBlurTo(vec2 _st, vec2 speed) {\n vec2 texCoord = _st.xy / vec2(1.0).xy;\n vec3 color = vec3(0.0);\n float alpha = 0.0;\n float total = 0.0;\n float offset = rand(_st);\n for (float t = 0.0; t <= 20.0; t++) {\n float percent = (t + offset) / 20.0;\n float weight = 4.0 * (percent - percent * percent);\n vec2 newuv = texCoord + speed * percent;\n newuv = fract(newuv);\n vec4 c = getToColor(newuv);\n color += c.rgb * c.a * weight;\n alpha += c.a * weight;\n total += weight;\n }\n return vec4(color / max(alpha, 1e-5), alpha / total);\n}\n\n\n// bezier in gpu\nfloat A(float aA1, float aA2) {\n return 1.0 - 3.0 * aA2 + 3.0 * aA1;\n}\nfloat B(float aA1, float aA2) {\n return 3.0 * aA2 - 6.0 * aA1;\n}\nfloat C(float aA1) {\n return 3.0 * aA1;\n}\nfloat GetSlope(float aT, float aA1, float aA2) {\n return 3.0 * A(aA1, aA2)*aT*aT + 2.0 * B(aA1, aA2) * aT + C(aA1);\n}\nfloat CalcBezier(float aT, float aA1, float aA2) {\n return ((A(aA1, aA2)*aT + B(aA1, aA2))*aT + C(aA1))*aT;\n}\nfloat GetTForX(float aX, float mX1, float mX2) {\n // iteration to solve\n float aGuessT = aX;\n for (int i = 0; i < 4; ++i) {\n float currentSlope = GetSlope(aGuessT, mX1, mX2);\n if (currentSlope == 0.0) return aGuessT;\n float currentX = CalcBezier(aGuessT, mX1, mX2) - aX;\n aGuessT -= currentX / currentSlope;\n }\n return aGuessT;\n}\nfloat KeySpline(float aX, float mX1, float mY1, float mX2, float mY2) {\n if (mX1 == mY1 && mX2 == mY2) return aX; // linear\n return CalcBezier(GetTForX(aX, mX1, mX2), mY1, mY2); // x to t, t to y\n}\n\n// norm distribution\nfloat normpdf(float x) {\n float d = x - .5;\n return exp(-20.*d*d);\n}\n\nvec2 rotateUv(vec2 uv, float angle, vec2 anchor, float zDirection) {\n uv = uv - anchor; // anchor to origin\n float s = sin(angle);\n\tfloat c = cos(angle);\n\tmat2 m = mat2(c, -s, s, c);\n uv = m * uv;\n uv += anchor; // anchor back\n return uv;\n}\n\n\n\nvec4 transition (vec2 uv) {\n \n vec2 myst = uv;\n float animationTime = progress; //getAnimationTime();\n float easingTime = KeySpline(animationTime, .68,.01,.17,.98);\n float blur = normpdf(easingTime);\n float r = 0.;\n float rotation = 180./180.*3.14159;\n if (easingTime <= .5) {\n r = rotation * easingTime;\n } else {\n r = -rotation + rotation * easingTime;\n }\n\n // rotation for current frame\n vec2 mystCurrent = myst;\n mystCurrent.y *= 1./ratio;\n mystCurrent = rotateUv(mystCurrent, r, vec2(1., 0.), -1.);\n mystCurrent.y *= ratio;\n \n // frame timeInterval by fps=30\n float timeInterval = 0.0167*2.0;\n if (easingTime <= .5) {\n r = rotation * (easingTime+timeInterval);\n } else {\n r = -rotation + rotation * (easingTime+timeInterval);\n }\n \n // rotation for next frame\n vec2 mystNext = myst;\n mystNext.y *= 1./ratio;\n mystNext = rotateUv(mystNext, r, vec2(1., 0.), -1.);\n mystNext.y *= ratio;\n \n // get speed at tagent direction\n vec2 speed = (mystNext - mystCurrent) / timeInterval * blur * 0.5;\n if (easingTime <= .5) {\n return motionBlurFrom(mystCurrent, speed);\n } else {\n return motionBlurTo(mystCurrent, speed);\n }\n}\n\n","author":"chenkai","license":"MIT","description":"The outgoing image is flung away along a curve with motion blur","tags":["motion-blur","rotate","slide"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"TilesWave","paramsTypes":{"tileCount":"ivec2","flipX":"bool","flipY":"bool"},"defaultParams":{"tileCount":[8,8],"flipX":true,"flipY":false},"glsl":"// Author: numb3r23\n// License: MIT\n// Description: The incoming image is revealed tile by tile in a diagonal wave\n// Tags: tiles, wave, wipe\n// Ported from https://gist.github.com/numb3r23/169781bb76f310e2bfde\n\n// @param Number of tiles (columns, rows)\nuniform ivec2 tileCount; // = ivec2(8, 8)\nuniform bool flipX; // = true\nuniform bool flipY; // = false\n\nvec4 transition(vec2 uv) {\n vec2 tileSize = 1.0 / vec2(tileCount);\n vec2 posInTile = fract(uv * vec2(tileCount));\n vec2 tileNum = floor(uv * vec2(tileCount));\n float countTiles = float(tileCount.x * tileCount.y);\n\n // Diagonal wave from bottom-left to top-right\n float offset = (tileNum.y + tileNum.x * float(tileCount.y)) / countTiles;\n float timeOffset = clamp((progress - offset) * countTiles, 0.0, 0.5);\n float sinTime = 1.0 - abs(cos(fract(timeOffset) * 3.1415926));\n\n vec2 texC = posInTile;\n\n if (sinTime <= 0.5) {\n if (flipX) {\n if (texC.x < sinTime || texC.x > 1.0 - sinTime)\n return getFromColor(uv);\n texC.x = texC.x < 0.5\n ? (texC.x - sinTime) * 0.5 / (0.5 - sinTime)\n : (texC.x - 0.5) * 0.5 / (0.5 - sinTime) + 0.5;\n }\n if (flipY) {\n if (texC.y < sinTime || texC.y > 1.0 - sinTime)\n return getFromColor(uv);\n texC.y = texC.y < 0.5\n ? (texC.y - sinTime) * 0.5 / (0.5 - sinTime)\n : (texC.y - 0.5) * 0.5 / (0.5 - sinTime) + 0.5;\n }\n vec2 globalUV = tileNum * tileSize + texC * tileSize;\n return getFromColor(globalUV);\n } else {\n if (flipX) {\n if (texC.x > sinTime || texC.x < 1.0 - sinTime)\n return getToColor(uv);\n texC.x = texC.x < 0.5\n ? (texC.x - sinTime) * 0.5 / (0.5 - sinTime)\n : (texC.x - 0.5) * 0.5 / (0.5 - sinTime) + 0.5;\n texC.x = 1.0 - texC.x;\n }\n if (flipY) {\n if (texC.y > sinTime || texC.y < 1.0 - sinTime)\n return getToColor(uv);\n texC.y = texC.y < 0.5\n ? (texC.y - sinTime) * 0.5 / (0.5 - sinTime)\n : (texC.y - 0.5) * 0.5 / (0.5 - sinTime) + 0.5;\n texC.y = 1.0 - texC.y;\n }\n vec2 globalUV = tileNum * tileSize + texC * tileSize;\n return getToColor(globalUV);\n }\n}\n","author":"numb3r23","license":"MIT","description":"The incoming image is revealed tile by tile in a diagonal wave","tags":["tiles","wave","wipe"],"params":{"tileCount":{"type":"ivec2","default":[8,8],"description":"Number of tiles (columns, rows)"},"flipX":{"type":"bool","default":true},"flipY":{"type":"bool","default":false}},"textures":[],"createdAt":"Sun, 29 Mar 2026 20:32:54 +0200","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"TopBottom","paramsTypes":{},"defaultParams":{},"glsl":"// Author: zhmy\n// License: MIT\n// Description: The outgoing image shrinks away upward while the incoming one slides in from the bottom\n// Tags: slide, zoom, vertical\n\nconst vec4 black = vec4(0.0); // where no image is drawn: transparent\nconst vec2 boundMin = vec2(0.0, 0.0);\nconst vec2 boundMax = vec2(1.0, 1.0);\n\nbool inBounds (vec2 p) {\n return all(lessThan(boundMin, p)) && all(lessThan(p, boundMax));\n}\n\nvec4 transition (vec2 uv) {\n vec2 spfr,spto = vec2(-1.);\n float size = mix(1.0, 3.0, progress*0.2);\n spto = (uv + vec2(-0.5,-0.5))*vec2(size,size)+vec2(0.5,0.5);\n spfr = (uv + vec2(0.0, 1.0 - progress));\n if(inBounds(spfr)){\n return getToColor(spfr);\n } else if(inBounds(spto)){\n return getFromColor(spto) * (1.0 - progress);\n } else{\n return black;\n }\n}","author":"zhmy","license":"MIT","description":"The outgoing image shrinks away upward while the incoming one slides in from the bottom","tags":["slide","zoom","vertical"],"params":{},"textures":[],"createdAt":"Thu, 17 Dec 2020 11:50:34 +0800","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"TruchetWipe","paramsTypes":{"cells":"float","outline":"float","spread":"float"},"defaultParams":{"cells":8,"outline":0.6,"spread":0.75},"glsl":"// Author: gre\n// License: MIT\n// Description: A grid of square tiles, each holding two quarter-circle arcs, links into long winding paths; starting from the middle and spreading outward, the paths are drawn as thin lines of the incoming image, then thicken into bands with a dark outline and a soft shadow until they merge over the whole frame\n// Tags: truchet, pattern, tiles, paths, graphic, reveal\n\n// @range(3, 20, 1) Number of tiles across the frame's height\nuniform float cells; // = 8.0\n// @range(0, 1) Strength of the dark outline and of the shadow along the bands\nuniform float outline; // = 0.6\n// @range(0, 1) How much the paths are staggered from the middle outward: 0 draws them all at once\nuniform float spread; // = 0.75\n\n// half width of the antialiased edges, in frame heights\nconst float AA = 0.0012;\n// width of the outline, in frame heights\nconst float LINE = 0.003;\n// how far the shadow reaches outside a band, in frame heights\nconst float SHADOW = 0.025;\n// half width of the thin line a path is first drawn as, in tiles\nconst float STROKE = 0.08;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\nfloat vnoise(vec2 v) {\n vec2 i = floor(v);\n vec2 f = fract(v);\n f = f * f * (3.0 - 2.0 * f);\n return mix(\n mix(hash12(i), hash12(i + vec2(1.0, 0.0)), f.x),\n mix(hash12(i + vec2(0.0, 1.0)), hash12(i + vec2(1.0, 1.0)), f.x),\n f.y\n );\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n float n = max(floor(cells + 0.5), 1.0);\n // aspect-correct square tiles, centered on the frame\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n vec2 g = p * n + 0.5;\n vec2 cell = floor(g);\n vec2 q = fract(g);\n // each tile is mirrored at random, so its two arcs (centered on opposite corners) link up with its neighbors' in two ways\n if (hash12(cell + 17.0) > 0.5) q.x = 1.0 - q.x;\n // distance to the nearest arc, in tiles: continuous across the tiles' edges, at most 0.5 (at the corners)\n float d = min(abs(length(q) - 0.5), abs(length(q - 1.0) - 0.5));\n\n // when the paths reach this point: from the middle outward, made irregular by a noise\n float T = clamp(length(p) / (0.5 * length(vec2(ratio, 1.0))) + 0.4 * (vnoise(p * 3.0 + 4.0) - 0.5), 0.0, 1.0);\n float lag = 0.8 * clamp(spread, 0.0, 1.0);\n // every point is fully covered at progress 0.95\n float s = clamp((progress - lag * T) / (0.95 - lag), 0.0, 1.0);\n // in tiles: the paths are first drawn as thin lines, then the bands widen past the tiles' corners\n float aa = AA * n;\n float k = clamp((s - 0.25) / 0.75, 0.0, 1.0);\n float w = STROKE * smoothstep(0.0, 0.3, s) + (0.5 + LINE * n + 3.0 * aa - STROKE) * k * k;\n // signed distance to the edge of the bands (negative inside), in tiles\n float e = d - w;\n\n float band = 1.0 - smoothstep(-2.0 * aa, 0.0, e);\n // outside the bands: a thin outline on their edge and a soft shadow, fading in with the line\n float gap = max(e + aa, 0.0);\n float fall = 1.0 - smoothstep(0.0, SHADOW * n, gap);\n float edge = max(0.8 * (1.0 - smoothstep(LINE * n, LINE * n + 2.0 * aa, gap)), 0.4 * fall * fall);\n float shade = clamp(outline, 0.0, 1.0) * smoothstep(0.0, STROKE, w) * edge;\n\n vec4 a = getFromColor(uv);\n a.rgb *= 1.0 - shade;\n vec4 b = getToColor(uv);\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 o = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), band);\n return o.a > 0.0 ? vec4(o.rgb / o.a, o.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"A grid of square tiles, each holding two quarter-circle arcs, links into long winding paths; starting from the middle and spreading outward, the paths are drawn as thin lines of the incoming image, then thicken into bands with a dark outline and a soft shadow until they merge over the whole frame","tags":["truchet","pattern","tiles","paths","graphic","reveal"],"params":{"cells":{"type":"float","default":8,"min":3,"max":20,"step":1,"description":"Number of tiles across the frame's height"},"outline":{"type":"float","default":0.6,"min":0,"max":1,"description":"Strength of the dark outline and of the shadow along the bands"},"spread":{"type":"float","default":0.75,"min":0,"max":1,"description":"How much the paths are staggered from the middle outward: 0 draws them all at once"}},"textures":[],"createdAt":"Sun, 8 Nov 2026 13:35:44 +0100","updatedAt":"Sun, 8 Nov 2026 13:35:44 +0100"},{"name":"Tumble","paramsTypes":{"flips":"float","spin":"float","direction":"vec2","perspective":"float","shading":"float"},"defaultParams":{"flips":2,"spin":0.15,"direction":[0,0.3],"perspective":0.6,"shading":0.7},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image is thrown away like a rigid card, tumbling end over end with a slight spin as it flies off into the distance in perspective, its darker back showing on every flip and its soft shadow shrinking on the incoming image behind it\n// Tags: 3d, rotate, flip, card, perspective\n\n// @range(-4, 4) Number of turns end over end, negative to tumble the other way\nuniform float flips; // = 2.0\n// @range(-1, 1) Turns of the secondary spin around the line of sight\nuniform float spin; // = 0.15\n// @param Where the card flies toward on screen, in frame heights from the center\nuniform vec2 direction; // = vec2(0.0, 0.3)\n// @range(0.1, 1) Strength of the perspective\nuniform float perspective; // = 0.6\n// @range(0, 1) Shading of the card as it turns, darkness of its back and of its shadow\nuniform float shading; // = 0.7\n\nconst float PI = 3.141592653589793;\n// width of the anti-aliased card edges, in frame heights\nconst float EDGE = 0.0015;\n// direction toward the light: above, to the right, in front\nconst vec3 LIGHT = vec3(0.348, 0.696, -0.628);\n\n// rotates v around the line of sight\nvec3 roll(vec3 v, float c, float s) {\n return vec3(c * v.x - s * v.y, s * v.x + c * v.y, v.z);\n}\n\n// signed distance to the card's rectangle, in its plane\nfloat cardDistance(vec2 q) {\n vec2 e = abs(q) - vec2(0.5 * ratio, 0.5);\n return max(e.x, e.y);\n}\n\n// casts the ray d from the eye onto the card's plane, rel being the card's center from the eye:\n// (the point hit in the card's axes, the distance along d), or a negative distance when it misses\nvec3 castOnCard(vec3 d, vec3 rel, vec3 U, vec3 V, vec3 N) {\n float dn = dot(d, N);\n if (abs(dn) < 1e-6) return vec3(0.0, 0.0, -1.0);\n float k = dot(rel, N) / dn;\n vec3 h = k * d - rel;\n return vec3(dot(h, U), dot(h, V), k);\n}\n\nvec2 cardUv(vec2 q) {\n return clamp(vec2(q.x / ratio, q.y) + 0.5, 0.0, 1.0);\n}\n\nvec4 transition(vec2 uv) {\n // the card is gone a little before the end\n float t = clamp(progress / 0.95, 0.0, 1.0);\n // its size on screen shrinks faster and faster, down to a few percent\n float size = exp(-2.8 * t * t * (0.4 + 0.6 * t));\n float away = 1.0 - size;\n // it spins at its own pace, starting smoothly\n float turn = t * t * (3.0 - 2.0 * t);\n float a = 2.0 * PI * flips * turn;\n float r = 2.0 * PI * spin * turn;\n float cr = cos(r), sr = sin(r);\n // end over end around its horizontal axis, then around the line of sight\n vec3 U = roll(vec3(1.0, 0.0, 0.0), cr, sr);\n vec3 V = roll(vec3(0.0, cos(a), sin(a)), cr, sr);\n vec3 N = roll(vec3(0.0, -sin(a), cos(a)), cr, sr);\n\n // the camera, at dist in front of the plane z = 0, sees the frame at rest on it\n float dist = 1.0 / clamp(perspective, 0.1, 1.0);\n // the card's center, seen at direction * away on screen while it goes away, with a slight rise\n vec2 seen = direction * away + vec2(0.0, 0.12 * t * (1.0 - t));\n vec3 rel = vec3(seen / size, dist / size);\n float fade = 1.0 - smoothstep(0.8, 1.0, t);\n float shadowAmount = 0.6 * shading * sqrt(size) * fade;\n\n vec2 p = vec2((uv.x - 0.5) * ratio, uv.y - 0.5);\n vec4 color = getToColor(uv);\n\n // the soft shadow on the incoming image, cast down and to the left, shrinking with the card\n if (shadowAmount > 0.0) {\n vec3 ds = vec3(p - vec2(-0.05, -0.08) * min(4.0 * t, 1.0) * size, dist);\n vec3 hs = castOnCard(ds, rel, U, V, N);\n if (hs.z > 0.0) {\n float blur = 0.005 + 0.06 * min(3.0 * t, 1.0) * size;\n float sd = cardDistance(hs.xy) * max(abs(dot(ds, N)) / length(ds), 0.05) / hs.z;\n float sh = (1.0 - smoothstep(-blur, blur, sd)) * getFromColor(cardUv(hs.xy)).a;\n color.rgb *= 1.0 - shadowAmount * sh;\n }\n }\n\n // cast the ray onto the card\n vec3 d = vec3(p, dist);\n vec3 hit = castOnCard(d, rel, U, V, N);\n if (hit.z <= 0.0) return color;\n float dn = dot(d, N);\n // anti-aliased edges: a screen pixel covers more of the card when it is far or seen at a grazing angle\n float grazing = max(abs(dn) / length(d), 0.05);\n float e = EDGE * min(20.0 * t, 1.0) * hit.z / grazing;\n float m = clamp(0.5 - cardDistance(hit.xy) / max(e, 1e-6), 0.0, 1.0) * fade;\n if (m <= 0.0) return color;\n\n vec4 card = getFromColor(cardUv(hit.xy));\n // the side facing the camera: the front, or the back which shows the image through, darker and duller\n bool front = dn > 0.0;\n vec3 facing = front ? -N : N;\n float lit = min((0.35 + 0.65 * max(dot(facing, LIGHT), 0.0)) / (0.35 + 0.65 * -LIGHT.z), 1.0);\n float shade = mix(1.0, lit * (front ? 1.0 : 0.55), shading);\n if (!front) card.rgb = mix(card.rgb, vec3(dot(card.rgb, vec3(0.299, 0.587, 0.114))), 0.4 * shading);\n // a glint as the card turns through the light, a light added to the image\n float glint = pow(max(dot(facing, normalize(LIGHT - normalize(d))), 0.0), 60.0);\n card.rgb = card.rgb * shade + 0.35 * shading * glint * smoothstep(0.0, 0.2, t);\n if (m >= 1.0) return card;\n // blend premultiplied, so that a transparent layer gives no color to the other one\n vec4 mixed = mix(vec4(color.rgb * color.a, color.a), vec4(card.rgb * card.a, card.a), m);\n return mixed.a > 0.0 ? vec4(mixed.rgb / mixed.a, mixed.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The outgoing image is thrown away like a rigid card, tumbling end over end with a slight spin as it flies off into the distance in perspective, its darker back showing on every flip and its soft shadow shrinking on the incoming image behind it","tags":["3d","rotate","flip","card","perspective"],"params":{"flips":{"type":"float","default":2,"min":-4,"max":4,"description":"Number of turns end over end, negative to tumble the other way"},"spin":{"type":"float","default":0.15,"min":-1,"max":1,"description":"Turns of the secondary spin around the line of sight"},"direction":{"type":"vec2","default":[0,0.3],"description":"Where the card flies toward on screen, in frame heights from the center"},"perspective":{"type":"float","default":0.6,"min":0.1,"max":1,"description":"Strength of the perspective"},"shading":{"type":"float","default":0.7,"min":0,"max":1,"description":"Shading of the card as it turns, darkness of its back and of its shadow"}},"textures":[],"createdAt":"Sun, 8 Nov 2026 17:40:18 +0100","updatedAt":"Sun, 8 Nov 2026 17:40:18 +0100"},{"name":"Tunnel","paramsTypes":{"speed":"float","twist":"float"},"defaultParams":{"speed":6,"twist":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The camera flies down a tunnel lined with the outgoing image toward the incoming one, which opens at its far end and grows to fill the frame\n// Tags: zoom, 3d, warp, radial\n\n// @range(0.5, 10) How far and fast the camera flies down the tunnel\nuniform float speed; // = 6.0\n// @range(-2, 2) How much the walls spiral as they rush by\nuniform float twist; // = 0.5\n\nvec2 rotate(vec2 v, float a) {\n float c = cos(a);\n float s = sin(a);\n return vec2(c * v.x - s * v.y, s * v.x + c * v.y);\n}\n\nvec4 transition(vec2 uv) {\n vec2 aspect = vec2(ratio, 1.0);\n vec2 c = (uv - 0.5) * aspect;\n float r = length(c);\n // A tube as wide as the frame's corners runs from the camera to an end wall\n // at depth `far`; the outgoing image is projected onto it from the starting\n // point of view, so it looks flat at first. The camera flies to one unit\n // before the end wall, where the incoming image hangs.\n float R = length(0.5 * aspect);\n float far = 1.0 + speed;\n // the distance to the end wall shrinks geometrically, so the end grows evenly\n float e = mix(progress, progress * progress * (3.0 - 2.0 * progress), 0.7);\n float d = pow(far, 1.0 - e);\n float t = far - d; // distance flown\n // the end wall covers the center of the view, the tube's walls the rest\n float k = r * d < R ? d / far : R / (R + t * r); // image scale at that point\n float a = twist * min(t * r / R, t / d); // spiral, continuous at the end wall\n vec4 walls = getFromColor(0.5 + rotate(c * k, a) / aspect);\n walls.rgb *= 0.4 + 0.6 * sqrt(k); // darker where the walls are close\n // the incoming image opens in the end wall\n float open = smoothstep(0.0, 0.6, progress);\n vec2 q = 0.5 + (uv - 0.5) * d / max(open, 1e-4);\n vec2 inside = step(0.0, q) * step(q, vec2(1.0));\n return mix(walls, getToColor(q), inside.x * inside.y * step(r * d, R));\n}\n","author":"gre","license":"MIT","description":"The camera flies down a tunnel lined with the outgoing image toward the incoming one, which opens at its far end and grows to fill the frame","tags":["zoom","3d","warp","radial"],"params":{"speed":{"type":"float","default":6,"min":0.5,"max":10,"description":"How far and fast the camera flies down the tunnel"},"twist":{"type":"float","default":0.5,"min":-2,"max":2,"description":"How much the walls spiral as they rush by"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:20:26 +0100","updatedAt":"Sat, 31 Oct 2026 18:20:26 +0100"},{"name":"TvLostSignal","paramsTypes":{},"defaultParams":{},"glsl":"// Author: mernking (gitlab.com/Godswork)\n// License: MIT\n// Description: A crossfade with drifting tracking lines and tearing, like a TV losing its signal\n// Tags: retro, glitch, scanlines\n\nfloat hash(vec2 p) {\n return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453);\n}\n\nvec4 transition(vec2 uv) {\n\n float p = progress;\n float strength = sin(p * 3.14159265);\n\n vec2 tv = uv;\n\n vec4 fromColor = getFromColor(tv);\n vec4 toColor = getToColor(tv);\n\n vec4 color = mix(fromColor, toColor, p);\n\n // horizontal tracking lines (key effect)\n float lineY = floor(tv.y * 120.0);\n\n float noise = hash(vec2(lineY, p * 20.0));\n\n float line = step(0.92, noise);\n\n // make lines drift during transition\n float drift =\n sin(tv.y * 30.0 + p * 10.0)\n * 0.02\n * strength;\n\n vec4 shiftedFrom = getFromColor(tv + vec2(drift, 0.0));\n vec4 shiftedTo = getToColor(tv + vec2(drift, 0.0));\n\n vec4 lineColor = mix(shiftedFrom, shiftedTo, p);\n\n // apply tearing only on selected scanlines\n color = mix(color, lineColor, line * strength);\n\n // mild scanline darkening (CRT feel)\n float scan =\n sin(tv.y * 900.0) * 0.03;\n\n color.rgb -= scan * strength;\n\n return color;\n}\n","author":"mernking (gitlab.com/Godswork)","license":"MIT","description":"A crossfade with drifting tracking lines and tearing, like a TV losing its signal","tags":["retro","glitch","scanlines"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"TvRoll","paramsTypes":{"rolls":"int","barHeight":"float","barColor":"vec4"},"defaultParams":{"rolls":3,"barHeight":0.12,"barColor":[0,0,0,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image rolls faster and faster, like an old TV losing its vertical hold, then the roll slows down and locks on the incoming image\n// Tags: retro, vertical, scanlines\n\n// @range(1, 8) Number of frames that roll by\nuniform int rolls; // = 3\n// @range(0, 0.5) Height of the bar between the frames\nuniform float barHeight; // = 0.12\n// @color Color of the bar between the frames\nuniform vec4 barColor; // = vec4(0.0, 0.0, 0.0, 1.0)\n\n// The rolling picture at a vertical position y, in frames of height 1 + barHeight\nvec4 picture(vec2 uv, float y, float m) {\n float period = 1.0 + barHeight;\n y = mod(y, period);\n if (y > 1.0) return barColor;\n vec2 q = vec2(uv.x, y);\n return mix(getFromColor(q), getToColor(q), m);\n}\n\nvec4 transition(vec2 uv) {\n float period = 1.0 + barHeight;\n // smooth start and stop: the picture locks again after a whole number of frames\n float s = progress * progress * (3.0 - 2.0 * progress);\n float offset = period * fract(float(rolls) * s);\n float speed = 4.0 * progress * (1.0 - progress); // 0 at both ends, 1 in the middle\n float m = smoothstep(0.42, 0.58, progress); // the channel changes at full speed\n // the horizontal sync wobbles a little\n vec2 p = uv + vec2(0.004 * speed * sin(uv.y * 9.0 + progress * 30.0), 0.0);\n // vertical motion blur\n vec4 c = vec4(0.0);\n for (int i = 0; i < 5; i++) {\n c += picture(p, p.y + offset - 0.0015 * float(rolls) * speed * float(i), m);\n }\n c /= 5.0;\n // scanlines and a flickering brightness\n float scan = 0.5 + 0.5 * sin(uv.y * 400.0);\n float flicker = 0.08 * (0.5 + 0.5 * sin(progress * 97.0));\n c.rgb *= 1.0 - speed * (0.08 * scan + flicker);\n return c;\n}\n","author":"gre","license":"MIT","description":"The outgoing image rolls faster and faster, like an old TV losing its vertical hold, then the roll slows down and locks on the incoming image","tags":["retro","vertical","scanlines"],"params":{"rolls":{"type":"int","default":3,"min":1,"max":8,"description":"Number of frames that roll by"},"barHeight":{"type":"float","default":0.12,"min":0,"max":0.5,"description":"Height of the bar between the frames"},"barColor":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color of the bar between the frames"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:16:40 +0100","updatedAt":"Sat, 31 Oct 2026 18:16:40 +0100"},{"name":"TvStatic","paramsTypes":{"offset":"float"},"defaultParams":{"offset":0.05},"glsl":"// Author: Brandon Anzaldi\n// License: MIT\n// Description: Cuts to full-screen TV static, then to the incoming image\n// Tags: static, noise, retro\n// @param Part of the transition, at each end, that shows the images instead of static\nuniform float offset; // = 0.05\n\n// Pseudo-random noise function\n// http://byteblacksmith.com/improvements-to-the-canonical-one-liner-glsl-rand-for-opengl-es-2-0/\nhighp float noise(vec2 co)\n{\n highp float a = 12.9898;\n highp float b = 78.233;\n highp float c = 43758.5453;\n highp float dt= dot(co.xy * progress, vec2(a, b));\n highp float sn= mod(dt,3.14);\n return fract(sin(sn) * c);\n}\n\nvec4 transition(vec2 p) {\n if (progress < offset) {\n return getFromColor(p);\n } else if (progress > (1.0 - offset)) {\n return getToColor(p);\n } else {\n return vec4(vec3(noise(p)), max(getFromColor(p).a, getToColor(p).a)); // static where the images are\n }\n}\n","author":"Brandon Anzaldi","license":"MIT","description":"Cuts to full-screen TV static, then to the incoming image","tags":["static","noise","retro"],"params":{"offset":{"type":"float","default":0.05,"description":"Part of the transition, at each end, that shows the images instead of static"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"TvTurnOff","paramsTypes":{"color":"vec4","glow":"float"},"defaultParams":{"color":[0,0,0,1],"glow":1},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image collapses into a glowing line and a dot, like an old TV turned off, then the incoming image powers on from the dot\n// Tags: retro, vertical, flash\n\n// @color Color of the switched-off screen\nuniform vec4 color; // = vec4(0.0, 0.0, 0.0, 1.0)\n// @range(0, 2) Strength of the glow around the line and the dot\nuniform float glow; // = 1.0\n\nvec4 getColor(vec2 uv, bool isFrom) {\n return isFrom ? getFromColor(uv) : getToColor(uv);\n}\n\n// The screen at a time t of its power-off: 0 is the full image, 1 is off\nvec4 screen(vec2 uv, float t, bool isFrom) {\n float collapse = smoothstep(0.0, 0.4, t); // the image squeezes into a line\n float shrink = smoothstep(0.3, 0.65, t); // the line shrinks into a dot\n float fade = 0.4 * smoothstep(0.75, 1.0, t); // the dot dims\n float radius = 0.01 * (1.0 - fade);\n // half size of the picture, in height units (x is scaled by ratio)\n vec2 size = vec2(mix(0.5 * ratio, radius, shrink), mix(0.5, radius, collapse));\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0);\n vec2 q = clamp(0.5 + 0.5 * p / size, 0.0, 1.0);\n vec4 c = getColor(q, isFrom);\n // the squeezed picture gets brighter and burns to white\n float white = smoothstep(0.4, 1.0, collapse);\n vec4 light = vec4(mix(min(c.rgb * (1.0 + 2.0 * collapse), 1.0), vec3(1.0), white), c.a);\n // soft edges, outside the picture so that t = 0 is the exact image\n vec2 d = abs(p) - size;\n float dist = length(max(d, 0.0)) + min(max(d.x, d.y), 0.0);\n float inside = clamp(1.0 - dist / 0.004, 0.0, 1.0);\n // a glow around the line, tinted by the center of the picture, then warm white around the dot\n vec4 mid = getColor(vec2(0.5), isFrom);\n vec4 halo = vec4(mix(mix(mid.rgb, vec3(1.0), 0.7), vec3(1.0, 0.92, 0.8), shrink), mid.a);\n float h = 1.0 - exp(-2.0 * glow * white * exp(-max(dist, 0.0) / (0.02 + 0.04 * shrink)));\n vec4 col = mix(color, halo, h * (1.0 - fade));\n return mix(col, light, inside * (1.0 - fade));\n}\n\nvec4 transition(vec2 uv) {\n if (progress < 0.5) {\n return screen(uv, 2.0 * progress, true);\n }\n return screen(uv, 2.0 - 2.0 * progress, false);\n}\n","author":"gre","license":"MIT","description":"The outgoing image collapses into a glowing line and a dot, like an old TV turned off, then the incoming image powers on from the dot","tags":["retro","vertical","flash"],"params":{"color":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color of the switched-off screen"},"glow":{"type":"float","default":1,"min":0,"max":2,"description":"Strength of the glow around the line and the dot"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:16:40 +0100","updatedAt":"Sat, 31 Oct 2026 18:16:40 +0100"},{"name":"UndulatingBurnOut","paramsTypes":{"smoothness":"float","center":"vec2","color":"vec4"},"defaultParams":{"smoothness":0.03,"center":[0.5,0.5],"color":[0,0,0,1]},"glsl":"// License: MIT\n// Author: pthrasher\n// Description: A circle with a wavy edge burns out from the center to reveal the incoming image\n// Tags: circle, burn, wipe\n// adapted by gre from https://gist.github.com/pthrasher/8e6226b215548ba12734\n\n// @param Softness of the edge\nuniform float smoothness; // = 0.03\n// @param Center of the circle\nuniform vec2 center; // = vec2(0.5)\n// @color Color of the burning edge\nuniform vec4 color; // = vec4(0.0, 0.0, 0.0, 1.0)\n\nconst float M_PI = 3.14159265358979323846;\n\nfloat quadraticInOut(float t) {\n float p = 2.0 * t * t;\n return t < 0.5 ? p : -p + (4.0 * t) - 1.0;\n}\n\nfloat getGradient(float r, float dist) {\n float d = r - dist;\n return mix(\n smoothstep(-smoothness, 0.0, r - dist * (1.0 + smoothness)),\n -1.0 - step(0.005, d),\n step(-0.005, d) * step(d, 0.01)\n );\n}\n\nfloat getWave(vec2 p){\n vec2 _p = p - center; // offset from center\n float rads = atan(_p.y, _p.x);\n float degs = degrees(rads) + 180.0;\n vec2 range = vec2(0.0, M_PI * 30.0);\n vec2 domain = vec2(0.0, 360.0);\n float ratio = (M_PI * 30.0) / 360.0;\n degs = degs * ratio;\n float x = progress;\n float magnitude = mix(0.02, 0.09, smoothstep(0.0, 1.0, x));\n float offset = mix(40.0, 30.0, smoothstep(0.0, 1.0, x));\n float ease_degs = quadraticInOut(sin(degs));\n float deg_wave_pos = (ease_degs * magnitude) * sin(x * offset);\n // The soft edge reaches `smoothness` beyond the radius and the burn band 0.005 inside it:\n // start the radius below both so nothing but the outgoing image shows at progress 0\n // (unchanged from progress 0.1 on).\n return x - max(smoothness, 0.01) * (1.0 - smoothstep(0.0, 0.1, x)) + deg_wave_pos;\n}\n\nvec4 transition(vec2 p) {\n float dist = distance(center, p);\n float m = getGradient(getWave(p), dist);\n vec4 cfrom = getFromColor(p);\n vec4 cto = getToColor(p);\n return mix(mix(cfrom, cto, m), mix(cfrom, color, 0.75), step(m, -2.0));\n}\n","author":"pthrasher","license":"MIT","description":"A circle with a wavy edge burns out from the center to reveal the incoming image","tags":["circle","burn","wipe"],"params":{"smoothness":{"type":"float","default":0.03,"description":"Softness of the edge"},"center":{"type":"vec2","default":[0.5,0.5],"description":"Center of the circle"},"color":{"type":"vec4","default":[0,0,0,1],"color":true,"description":"Color of the burning edge"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 18:38:36 +0100"},{"name":"VerticalClose","paramsTypes":{},"defaultParams":{},"glsl":"// Author: martiniti\n// License: MIT\n// Description: The incoming image closes in from the left and right edges toward the middle\n// Tags: wipe, split\n\nvec4 transition (vec2 uv) {\n\n float s = 2.0 - abs((uv.x - 0.5) / (progress - 1.0)) - 2.0 * progress;\n \n return mix(\n getFromColor(uv),\n getToColor(uv),\n smoothstep(0.5, 0.0, s)\n );\n}\n","author":"martiniti","license":"MIT","description":"The incoming image closes in from the left and right edges toward the middle","tags":["wipe","split"],"params":{},"textures":[],"createdAt":"Tue, 4 Apr 2023 10:35:17 +0300","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"VerticalOpen","paramsTypes":{},"defaultParams":{},"glsl":"// Author: martiniti\n// License: MIT\n// Description: The incoming image opens from a line in the middle toward the left and right edges\n// Tags: wipe, split\n\nvec4 transition (vec2 uv) {\n\n float regress = 1.0 - progress;\n float s = 2.0 - abs((uv.x - 0.5) / (regress - 1.0)) - 2.0 * regress;\n \n return mix(\n getFromColor(uv),\n getToColor(uv),\n smoothstep(0.0, 0.5, s)\n );\n}\n","author":"martiniti","license":"MIT","description":"The incoming image opens from a line in the middle toward the left and right edges","tags":["wipe","split"],"params":{},"textures":[],"createdAt":"Tue, 4 Apr 2023 10:35:12 +0300","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"VhsTracking","paramsTypes":{"bands":"int","noise":"float","bleed":"float","wobble":"float"},"defaultParams":{"bands":3,"noise":0.6,"bleed":0.5,"wobble":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: Tape-tracking bands of white snow roll down the frame, tearing the lines around them, with smeared color, wobbling lines, a jittering strip at the bottom and a dropout flash, as the incoming image is recorded over the outgoing one under the densest band\n// Tags: retro, glitch, noise, tape, scanlines\n\n// @range(1, 4, 1) Number of noise bands rolling down (the first one carries the cut)\nuniform int bands; // = 3\n// @range(0, 1) Amount of snow and tearing in the bands\nuniform float noise; // = 0.6\n// @range(0, 1) How far the color smears to the right of the picture\nuniform float bleed; // = 0.5\n// @range(0, 1) How much the lines wobble sideways\nuniform float wobble; // = 0.5\n\nconst float LINES = 220.0; // tape lines over the frame height\nconst float FRAMES = 40.0; // the noise changes this many times over the transition\nconst float BAND = 0.11; // half height of the main band\nconst float STRIP = 0.06; // height of the jittering strip at the bottom\nconst int TAPS = 6;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// the tape image on the outgoing (or, once re-recorded, incoming) side, premultiplied\nvec4 tape(vec2 p, bool fresh) {\n p = mirror(p);\n vec4 c = fresh ? getToColor(p) : getFromColor(p);\n return vec4(c.rgb * c.a, c.a);\n}\n\nfloat luma(vec3 c) {\n return dot(c, vec3(0.299, 0.587, 0.114));\n}\n\n// how dense a band centered at y = c of half height w is on line y, with ragged edges\nfloat bandDensity(float y, float c, float w, float jitter) {\n float d = abs(y - c) / w + 0.35 * jitter;\n return 1.0 - smoothstep(0.0, 1.0, d);\n}\n\nvec4 transition(vec2 uv) {\n // the effects build up quickly and settle at the end: exactly 0 at both ends\n float h = clamp(2.5 * (1.0 - abs(2.0 * progress - 1.0)), 0.0, 1.0);\n float env = h * h * (3.0 - 2.0 * h);\n // a short dropout flash when the main band crosses the middle of the frame\n float f = clamp(1.0 - abs(progress - 0.5) / 0.04, 0.0, 1.0);\n float flash = f * f * (3.0 - 2.0 * f);\n\n float frame = floor(progress * FRAMES);\n float line = floor(uv.y * LINES);\n float jitter = hash12(vec2(line, frame + 7.0)) - 0.5;\n\n // the main band rolls from above the frame to below it; the incoming image is above it\n float c0 = mix(1.0 + 1.2 * BAND, -1.2 * BAND, progress);\n // (the cut is ragged, line by line)\n bool fresh = uv.y > c0 + 0.8 * BAND * jitter;\n float dens = bandDensity(uv.y, c0, BAND, jitter);\n float tear = 1.0 - smoothstep(0.0, 1.0, abs(uv.y - c0) / (2.5 * BAND));\n // thinner and weaker bands roll faster, wrapping around the frame\n for (int i = 1; i < 4; i++) {\n if (i < bands) {\n float k = float(i);\n float w = BAND * (0.35 + 0.2 * hash12(vec2(k, 3.0)));\n float speed = 1.3 + 0.9 * k;\n float cy = -w + (1.0 + 2.0 * w) * fract(hash12(vec2(k, 5.0)) - speed * progress);\n dens = max(dens, 0.6 * bandDensity(uv.y, cy, w, jitter));\n tear = max(tear, 0.5 * (1.0 - smoothstep(0.0, 1.0, abs(uv.y - cy) / (2.5 * w))));\n }\n }\n dens *= env;\n tear *= env;\n\n // horizontal displacement of the line: a slow wobble, a fine jitter and the tearing\n float rowTear = hash12(vec2(floor(uv.y * LINES * 0.5), frame + 31.0)) - 0.5;\n float dx = wobble * env * (0.006 * sin(uv.y * 7.0 + progress * 23.0) + 0.004 * jitter);\n dx += (0.3 + 0.7 * noise) * tear * 0.18 * rowTear;\n // the head-switching strip at the bottom: lines skewed sideways and jittering\n float strip = env * (1.0 - smoothstep(0.0, STRIP, uv.y));\n dx += strip * (0.03 + 0.06 * (1.0 - uv.y / STRIP)) * (0.6 + 0.8 * hash12(vec2(frame, 41.0)));\n vec2 q = vec2(uv.x + dx, uv.y);\n\n vec4 c = tape(q, fresh);\n if (c.a <= 0.0) return vec4(0.0);\n // chroma bleed: the color is smeared to the right of the luma\n float len = bleed * (0.02 + 0.05 * dens) * env;\n vec4 avg = c;\n if (len > 0.0) {\n avg = vec4(0.0);\n for (int i = 0; i < TAPS; i++) {\n float u = (float(i) + 0.5) / float(TAPS);\n avg += tape(q - vec2(len * (0.4 + u), 0.0), fresh);\n }\n avg /= float(TAPS);\n }\n vec3 chroma = (avg.rgb - luma(avg.rgb)) / max(avg.a, 1e-5);\n vec3 rgb = luma(c.rgb) + chroma * c.a; // premultiplied by c.a\n // the signal fades and loses color under the bands\n rgb = mix(rgb, vec3(luma(rgb)), 0.6 * dens);\n\n // snow: short white streaks on the tape lines, denser in the bands\n // (the streaks of each line start at a random offset so they never line up vertically)\n vec2 cell = vec2(floor(uv.x * LINES * 0.3 * ratio + 40.0 * jitter), line);\n float n = hash12(cell + frame * vec2(37.0, 17.0));\n float amount = clamp(noise * max(1.3 * dens, 0.8 * strip) + 0.35 * flash, 0.0, 1.0);\n float snow = amount > 0.0 ? smoothstep(1.0 - amount, 1.0 - 0.6 * amount, n) : 0.0;\n snow *= 0.55 + 0.45 * hash12(cell.yx + frame);\n // and a finer sparkle between them\n float g = hash12(vec2(floor(uv.x * LINES * ratio), line) + frame * vec2(13.0, 29.0));\n snow = max(snow, amount > 0.0 ? 0.7 * smoothstep(1.0 - 0.4 * amount, 1.0, g) : 0.0);\n // and a few dark specks\n float dark = g < 0.1 * amount ? 1.0 : 0.0;\n // the dropout: whole stretches of a few lines go white\n float group = floor(uv.y * LINES / 3.0);\n float drop = step(1.0 - 0.15 * flash, hash12(vec2(group, floor(uv.x * 6.0 + 5.0 * hash12(vec2(group, frame))) + frame * 7.0)));\n rgb *= 1.0 - 0.5 * dark;\n rgb += (clamp(snow + drop + 0.12 * flash, 0.0, 1.0)) * (c.a - rgb);\n\n return vec4(clamp(rgb / c.a, 0.0, 1.0), c.a);\n}\n","author":"gre","license":"MIT","description":"Tape-tracking bands of white snow roll down the frame, tearing the lines around them, with smeared color, wobbling lines, a jittering strip at the bottom and a dropout flash, as the incoming image is recorded over the outgoing one under the densest band","tags":["retro","glitch","noise","tape","scanlines"],"params":{"bands":{"type":"int","default":3,"min":1,"max":4,"step":1,"description":"Number of noise bands rolling down (the first one carries the cut)"},"noise":{"type":"float","default":0.6,"min":0,"max":1,"description":"Amount of snow and tearing in the bands"},"bleed":{"type":"float","default":0.5,"min":0,"max":1,"description":"How far the color smears to the right of the picture"},"wobble":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the lines wobble sideways"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 08:02:59 +0100","updatedAt":"Wed, 4 Nov 2026 08:02:59 +0100"},{"name":"Vortex","paramsTypes":{"grid":"int","center":"vec2","spin":"float","randomness":"float"},"defaultParams":{"grid":24,"center":[0.5,0.5],"spin":1,"randomness":0.2},"glsl":"// Author: gre\n// License: MIT\n// Description: The outgoing image breaks into hundreds of small squares that a tornado carries away along a spiral around the center, from the eye outward, uncovering the incoming image\n// Tags: tiles, spiral, rotation, shatter\n\n// @range(4, 40, 1) Number of rows of squares\nuniform int grid; // = 24\n// Center of the tornado\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @range(-4, 4) Turns each square makes around the center as it flies away (negative turns clockwise)\nuniform float spin; // = 1.0\n// @range(0, 1) How randomly the squares leave: 0 from the center outward, 1 in any order\nuniform float randomness; // = 0.2\n\n// the squares leave in GROUPS waves, each one flying for DURATION of the transition\nconst int GROUPS = 24;\nconst float DURATION = 0.25;\n// half width of the antialiased edge of the squares, in frame heights\nconst float AA = 0.0015;\nconst float TAU = 6.2831853;\n\nfloat hash(vec2 n) {\n return fract(sin(dot(n, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\n// the wave a square (by its cell index) leaves with\nint groupOf(vec2 n, float h, vec2 c, float maxR) {\n // only the very corners leave last\n float r = min(length((n + 0.5) * h - c) / (0.85 * maxR), 1.0);\n float key = clamp(mix(r * sqrt(r), hash(n), clamp(randomness, 0.0, 1.0)), 0.0, 0.9999);\n return int(floor(key * float(GROUPS)));\n}\n\n// local time of a wave's flight, 0 before it leaves, 1 once it has vanished\nfloat flight(int g) {\n float delay = float(g) / float(GROUPS) * (1.0 - DURATION);\n return clamp((progress - delay) / DURATION, 0.0, 1.0);\n}\n\nvec4 premultiplied(vec4 c) {\n return vec4(c.rgb * c.a, c.a);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n // measured in square pixels, so the squares stay square\n vec2 aspect = vec2(ratio, 1.0);\n vec2 p = uv * aspect;\n vec2 c = center * aspect;\n float maxR = max(max(length(c), length(c - vec2(ratio, 0.0))), max(length(c - vec2(0.0, 1.0)), length(c - aspect)));\n float h = 1.0 / float(grid < 1 ? 1 : grid);\n // how far a square is pushed away from the center by the end of its flight\n float reach = 0.7 * maxR;\n\n // the incoming image, under the squares that have not left yet\n vec2 n0 = floor(p / h);\n vec4 col = flight(groupOf(n0, h, c, maxR)) <= 0.0 ? premultiplied(getFromColor(uv)) : premultiplied(getToColor(uv));\n\n // the flying squares, painted from the last wave to leave (lowest) to the first (highest)\n for (int k = 0; k < GROUPS; k++) {\n int g = GROUPS - 1 - k;\n float s = flight(g);\n if (s <= 0.0 || s >= 1.0) continue;\n float e = s * s;\n // like in a tornado, the squares near the eye (the first to leave) spin much faster than\n // the outer ones; all of them orbit before they are flung out\n float angle = spin * TAU * e * 2.0 / (1.0 + 6.0 * float(g) / float(GROUPS));\n float push = reach * e * s;\n // the squares lift toward the viewer, then shrink away\n float size = (1.0 + 0.35 * sin(3.1415927 * s)) * (1.0 - s * s * s);\n float ca = cos(angle);\n float sa = sin(angle);\n mat2 rot = mat2(ca, sa, -sa, ca);\n // undo the wave's spiral to guess which square lands here, then test its neighbors exactly\n vec2 u = (p - c) * rot;\n float ru = length(u);\n vec2 guess = c + (ru > 0.0 ? u / ru : vec2(0.0)) * max(ru - push, 0.0);\n vec2 ng = floor(guess / h);\n for (int j = -1; j <= 1; j++) {\n for (int i = -1; i <= 1; i++) {\n vec2 n = ng + vec2(float(i), float(j));\n if (groupOf(n, h, c, maxR) != g) continue;\n vec2 home = (n + 0.5) * h;\n vec2 rel = home - c;\n float rr = length(rel);\n vec2 dir = rr > 0.0 ? rel / rr : vec2(0.0);\n vec2 pos = c + rot * (dir * (rr + push));\n // each square also tumbles on itself\n float tumble = angle + (hash(n + 17.0) - 0.5) * 3.0 * e * sign(spin);\n float ct = cos(tumble);\n float st = sin(tumble);\n vec2 d = ((p - pos) * mat2(ct, st, -st, ct)) / max(size, 1e-4);\n float edge = 0.5 * h - max(abs(d.x), abs(d.y));\n float cov = clamp(edge * size / (2.0 * AA) + 0.5, 0.0, 1.0);\n vec2 src = home + d;\n if (cov <= 0.0 || src.x < 0.0 || src.y < 0.0 || src.x > ratio || src.y > 1.0) continue;\n vec4 piece = premultiplied(getFromColor(src / aspect)) * cov;\n col = piece + col * (1.0 - piece.a);\n }\n }\n }\n return col.a > 0.0 ? vec4(col.rgb / col.a, col.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The outgoing image breaks into hundreds of small squares that a tornado carries away along a spiral around the center, from the eye outward, uncovering the incoming image","tags":["tiles","spiral","rotation","shatter"],"params":{"grid":{"type":"int","default":24,"min":4,"max":40,"step":1,"description":"Number of rows of squares"},"center":{"type":"vec2","default":[0.5,0.5]},"spin":{"type":"float","default":1,"min":-4,"max":4,"description":"Turns each square makes around the center as it flies away (negative turns clockwise)"},"randomness":{"type":"float","default":0.2,"min":0,"max":1,"description":"How randomly the squares leave: 0 from the center outward, 1 in any order"}},"textures":[],"createdAt":"Wed, 4 Nov 2026 20:13:09 +0100","updatedAt":"Wed, 4 Nov 2026 20:13:09 +0100"},{"name":"WarpSpeed","paramsTypes":{"center":"vec2","streaks":"float","streakColor":"vec4","strength":"float","flash":"float"},"defaultParams":{"center":[0.5,0.5],"streaks":160,"streakColor":[0.78,0.88,1,1],"strength":0.6,"flash":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The camera jumps to light speed: star streaks shoot out from the center and stretch longer and longer while the outgoing image is pulled into a radial smear, then after a flash the incoming image emerges from the center as the streaks shrink back\n// Tags: zoom, radial, light, motion-blur, space\n\n// @param Point the camera flies toward, from (0, 0) at the bottom left to (1, 1) at the top right\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @range(20, 400) Number of star streaks around the center\nuniform float streaks; // = 160.0\n// @color Color of the streaks and of the flash, added as light\nuniform vec4 streakColor; // = vec4(0.78, 0.88, 1.0, 1.0)\n// @range(0, 1) Length of the streaks and of the radial smear\nuniform float strength; // = 0.6\n// @range(0, 1) Brightness of the flash at the peak of the jump\nuniform float flash; // = 0.5\n\nconst float PI = 3.141592653589793;\nconst int TAPS = 12;\n\nfloat hash(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * 0.1031);\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// one layer of stars: one per angular cell, flying outward and stretched along its ray\nfloat stars(float a, float r, float n, float layer, float travel, float speed, float reach) {\n float cell = floor(a * n);\n float h1 = hash(vec2(cell, layer));\n float h2 = hash(vec2(cell, layer + 17.0));\n float h3 = hash(vec2(cell, layer + 31.0));\n // where the star is in its flight, from near the center to past the corners,\n // speeding up as it comes closer\n float life = fract(h1 + travel * (0.6 + 0.8 * h2));\n float head = reach * (0.05 + 1.05 * pow(life, 1.4));\n // the streak is the path of the star during the exposure: longer when the camera is faster\n float tail = head * (1.0 - min(0.9, speed * (0.15 + 0.5 * h3)));\n float along = clamp((r - tail) / max(head - tail, 1e-4), 0.0, 1.0);\n float inside = step(tail, r) * (1.0 - smoothstep(head - 0.006, head, r));\n // brightest at the head, fading toward the tail\n float profile = inside * along * along;\n // thin across the ray, a bit wider away from the center, with a faint halo,\n // faded out before the edges of the cell so that no seam shows between cells\n float f = fract(a * n);\n float cellWidth = 2.0 * PI * r / n;\n float offset = 0.3 + 0.4 * h3;\n float across = (f - offset) * cellWidth;\n float width = min(0.0014 + 0.002 * r / reach, 0.15 * cellWidth);\n float x = across * across / (width * width);\n float line = (exp(-x) + 0.25 * exp(-x / 9.0)) * smoothstep(0.0, 0.2, min(f, 1.0 - f));\n // fade in from far away, out past the frame, and only some cells hold a star\n float fade = smoothstep(0.0, 0.2, life) * (1.0 - smoothstep(0.9, 1.0, life));\n return profile * line * fade * (0.4 + 0.6 * h2) * step(0.25, hash(vec2(cell, layer + 43.0)));\n}\n\n// an image pulled into a radial smear toward the center: scaled by k, blurred over a fraction b\nvec4 smear(vec2 uv, float k, float b, float jitter, bool incoming) {\n if (b <= 0.0 && k >= 1.0) {\n vec4 c = incoming ? getToColor(uv) : getFromColor(uv);\n return vec4(c.rgb * c.a, c.a);\n }\n vec4 sum = vec4(0.0);\n for (int i = 0; i < TAPS; i++) {\n float s = k * (1.0 - b * (float(i) + jitter) / float(TAPS));\n vec2 q = center + (uv - center) * s;\n vec4 c = incoming ? getToColor(q) : getFromColor(q);\n sum += vec4(c.rgb * c.a, c.a);\n }\n return sum / float(TAPS);\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n vec2 aspect = vec2(ratio, 1.0);\n vec2 d = (uv - center) * aspect;\n float r = length(d);\n // (nudged off zero, where atan is undefined)\n float a = atan(d.y, d.x + 1e-6) / (2.0 * PI) + 0.5;\n // distance from the center to the farthest corner\n vec2 far = max(center, 1.0 - center) * aspect;\n float reach = length(far);\n\n // the camera speeds up to the jump, at the middle, then slows down\n float speed = sin(PI * p);\n speed *= speed;\n float travel = 3.0 * (p - sin(2.0 * PI * p) / (2.0 * PI));\n float jitter = hash(floor(uv * aspect * 997.0));\n\n // the outgoing image is pulled forward into the smear; the incoming one arrives\n // magnified and smeared, and settles\n float goOut = smoothstep(0.0, 0.55, p);\n float goIn = 1.0 - smoothstep(0.45, 1.0, p);\n // the incoming image emerges from the center and spreads out to the corners\n float soft = 0.35 * reach;\n float edge = mix(-soft, reach + soft, smoothstep(0.42, 0.78, p));\n float m = 1.0 - smoothstep(edge - soft, edge, r);\n vec4 before = vec4(0.0);\n vec4 after = vec4(0.0);\n if (m < 1.0) before = smear(uv, 1.0 - 0.3 * strength * goOut * goOut, 0.6 * strength * goOut, jitter, false);\n if (m > 0.0) after = smear(uv, 1.0 - 0.3 * strength * goIn * goIn, 0.6 * strength * goIn, jitter, true);\n vec4 c = mix(before, after, m);\n // darker while in the jump, so that the streaks stand out, and brighter soon after it\n // so the incoming image comes out clear\n float dark = p < 0.5 ? speed : speed * speed * speed;\n c.rgb *= 1.0 - 0.65 * (0.5 + 0.5 * strength) * dark;\n\n // the streaks: two layers of stars, their length growing with the speed\n float n = max(floor(streaks), 1.0);\n float len = speed * (0.5 + 1.5 * strength);\n float s = stars(a, r, n, 1.0, travel, len, reach);\n s += stars(fract(a + 0.37), r, max(floor(n * 0.71), 1.0), 2.0, travel * 1.3, len, reach);\n // the flash, brightest at the center, where the incoming image emerges\n float core = r / (0.35 * reach);\n float peak = (p - 0.5) * 9.0;\n float glow = flash * exp(-peak * peak) * speed * (0.35 + 0.9 * exp(-core * core));\n vec3 light = streakColor.rgb * streakColor.a * (2.2 * s * speed + glow);\n // light is added to the image, but adds no opacity\n return c.a > 0.0 ? vec4(clamp(c.rgb / c.a + light, 0.0, 1.0), c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"The camera jumps to light speed: star streaks shoot out from the center and stretch longer and longer while the outgoing image is pulled into a radial smear, then after a flash the incoming image emerges from the center as the streaks shrink back","tags":["zoom","radial","light","motion-blur","space"],"params":{"center":{"type":"vec2","default":[0.5,0.5],"description":"Point the camera flies toward, from (0, 0) at the bottom left to (1, 1) at the top right"},"streaks":{"type":"float","default":160,"min":20,"max":400,"description":"Number of star streaks around the center"},"streakColor":{"type":"vec4","default":[0.78,0.88,1,1],"color":true,"description":"Color of the streaks and of the flash, added as light"},"strength":{"type":"float","default":0.6,"min":0,"max":1,"description":"Length of the streaks and of the radial smear"},"flash":{"type":"float","default":0.5,"min":0,"max":1,"description":"Brightness of the flash at the peak of the jump"}},"textures":[],"createdAt":"Thu, 5 Nov 2026 07:29:56 +0100","updatedAt":"Thu, 5 Nov 2026 07:29:56 +0100"},{"name":"WaterDrop","paramsTypes":{"amplitude":"float","speed":"float","center":"vec2","refraction":"float","highlight":"float"},"defaultParams":{"amplitude":30,"speed":30,"center":[0.5,0.5],"refraction":0.015,"highlight":0.5},"glsl":"// Author: Paweł Płóciennik\n// License: MIT\n// Description: A drop falls into the image like into still water: round ripples spread out from where it hits, bending the image with glints on their slopes, the incoming image shows up inside the leading ripple, and the water calms down\n// Tags: ripple, water, refraction, circle\n// @range(10, 80) Frequency of the ripples: higher makes them closer together\nuniform float amplitude; // = 30\n// @range(0, 80) Speed of the ripples as they run outward through the spreading rings\nuniform float speed; // = 30\n// @param Where the drop falls, in texture coordinates\nuniform vec2 center; // = vec2(0.5, 0.5)\n// @range(0, 0.08) How far the ripples bend the image, in frame heights\nuniform float refraction; // = 0.015\n// @range(0, 1) Brightness of the glints on the ripples\nuniform float highlight; // = 0.5\n\n// mirror the coordinates back into the frame\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// height of the water, from -1 to 1, at a distance s inside the front\nfloat wave(float s, float k, float lambda, float t) {\n // it rises just ahead of the front and dies out a few ripples behind it\n float env = smoothstep(-0.3 * lambda, 0.6 * lambda, s) * exp(-s / (3.5 * lambda));\n // the ripples run out through the train, faster than the train itself spreads\n return env * sin(k * s + speed * t);\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n\n float k = 2.0 * max(amplitude, 1.0);\n float lambda = 6.2831853 / k;\n // measured in square pixels, so the ripples are round\n vec2 q = (uv - center) * vec2(ratio, 1.0);\n float r = length(q);\n vec2 dir = r > 0.0 ? q / r : vec2(0.0);\n // the farthest corner of the frame\n vec2 far = max(center, 1.0 - center) * vec2(ratio, 1.0);\n float R = length(far);\n\n // the incoming image shows from a little behind the front, with a soft edge\n float edge = 0.35 * lambda;\n float soft = 0.1 * lambda;\n // the front spreads out, slowing down a little, from just before the drop hits until\n // its revealed area is past the farthest corner\n float t = progress;\n float e = mix(t, 1.0 - (1.0 - t) * (1.0 - t), 0.4);\n float front = mix(-0.3 * lambda, R + edge + soft + 0.01, e);\n float s = front - r;\n\n // the water calms down at the end\n float calm = 1.0 - smoothstep(0.55, 1.0, t);\n calm *= calm;\n // slope of the water along the radius, normalized to at most about 1\n // (one-sided at the very center)\n float d = 0.02 * lambda;\n float r0 = max(r - d, 0.0);\n float slope = calm * (wave(front - r - d, k, lambda, t) - wave(front - r0, k, lambda, t)) / ((r + d - r0) * k);\n vec2 offset = dir * slope * refraction / vec2(ratio, 1.0);\n\n vec4 ca = getFromColor(mirror(uv - offset));\n vec4 cb = getToColor(mirror(uv - offset));\n float m = smoothstep(edge - soft, edge + soft, s);\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(ca.rgb * ca.a, ca.a), vec4(cb.rgb * cb.a, cb.a), m);\n\n // the slopes facing the light glint, the ones facing away darken a little,\n // and the crests are a little brighter than the troughs\n float h = calm * wave(s, k, lambda, t);\n float lit = -dot(dir, normalize(vec2(-0.6, 0.8))) * slope;\n float glint = highlight * (0.2 * h + 0.6 * smoothstep(0.2, 0.9, lit) - 0.3 * smoothstep(0.2, 0.9, -lit));\n c.rgb = clamp(c.rgb + glint * c.a, 0.0, c.a);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"Paweł Płóciennik","license":"MIT","description":"A drop falls into the image like into still water: round ripples spread out from where it hits, bending the image with glints on their slopes, the incoming image shows up inside the leading ripple, and the water calms down","tags":["ripple","water","refraction","circle"],"params":{"amplitude":{"type":"float","default":30,"min":10,"max":80,"description":"Frequency of the ripples: higher makes them closer together"},"speed":{"type":"float","default":30,"min":0,"max":80,"description":"Speed of the ripples as they run outward through the spreading rings"},"center":{"type":"vec2","default":[0.5,0.5],"description":"Where the drop falls, in texture coordinates"},"refraction":{"type":"float","default":0.015,"min":0,"max":0.08,"description":"How far the ripples bend the image, in frame heights"},"highlight":{"type":"float","default":0.5,"min":0,"max":1,"description":"Brightness of the glints on the ripples"}},"textures":[],"createdAt":"Wed, 21 Feb 2018 19:37:15 +0100","updatedAt":"Sat, 7 Nov 2026 18:52:06 +0100"},{"name":"WaveWipe","paramsTypes":{"direction":"vec2","curl":"float","foam":"float","refraction":"float","water":"vec4","foamColor":"vec4"},"defaultParams":{"direction":[1,0],"curl":0.3,"foam":0.6,"refraction":0.04,"water":[0.05,0.36,0.46,0.75],"foamColor":[1,1,1,1]},"glsl":"// Author: gre\n// License: MIT\n// Description: A breaking wave crashes across the frame, its lip curling over in front of its face and throwing foam and spray ahead, its shadow darkening the outgoing image; the incoming image is left behind it, tinted and bent by the water, clearing as the wave passes\n// Tags: water, wave, ocean, foam, directional, reveal\n\n// @param Direction the wave travels toward\nuniform vec2 direction; // = vec2(1.0, 0.0)\n// @range(0.1, 0.45) Size of the curling lip, in wave heights: how far it overhangs ahead of the face\nuniform float curl; // = 0.3\n// @range(0, 1) Amount of foam on the crest and spray thrown ahead of it\nuniform float foam; // = 0.6\n// @range(0, 0.1) How much the water bends the incoming image behind the wave\nuniform float refraction; // = 0.04\n// @color Color of the water tinting the incoming image behind the wave (its alpha is its strength)\nuniform vec4 water; // = vec4(0.05, 0.36, 0.46, 0.75)\n// @color Color of the foam and spray (its alpha is its strength)\nuniform vec4 foamColor; // = vec4(1.0, 1.0, 1.0, 1.0)\n\nconst float PI = 3.141592653589793;\n// half width of the antialiased edges, in wave heights\nconst float AA = 0.002;\n// how far the base of the face trails behind its top, in wave heights\nconst float TRAIL = 0.35;\n// how far behind the face the water still tints the incoming image, in wave heights\nconst float BAND = 0.4;\n// how far ahead of the lip the spray reaches, in wave heights\nconst float REACH = 0.25;\n\nfloat hash12(vec2 v) {\n vec3 v3 = fract(vec3(v.xyx) * 0.1031);\n v3 += dot(v3, v3.yzx + 33.33);\n return fract((v3.x + v3.y) * v3.z);\n}\n\nfloat vnoise(vec2 v) {\n vec2 i = floor(v);\n vec2 f = fract(v);\n f = f * f * (3.0 - 2.0 * f);\n return mix(\n mix(hash12(i), hash12(i + vec2(1.0, 0.0)), f.x),\n mix(hash12(i + vec2(0.0, 1.0)), hash12(i + vec2(1.0, 1.0)), f.x),\n f.y\n );\n}\n\n// folds coordinates back into the frame, so a displaced image never shows its clamped edges\nvec2 mirror(vec2 v) {\n return 1.0 - abs(1.0 - mod(v, 2.0));\n}\n\n// droplets scattered in cells, one per cell at most, kept inside their cell\nfloat droplets(vec2 q, float cell, float density, float seed) {\n vec2 g = q / cell;\n vec2 id = floor(g);\n if (hash12(id + seed) >= density) return 0.0;\n float r = 0.1 + 0.2 * hash12(id + seed + 4.7);\n vec2 c = id + 0.5 + (0.45 - r) * (vec2(hash12(id + seed + 1.3), hash12(id + seed + 8.1)) * 2.0 - 1.0);\n float px = AA / cell;\n return 1.0 - smoothstep(r - px, r + px, length(g - c));\n}\n\nvec4 transition(vec2 uv) {\n if (progress <= 0.0) return getFromColor(uv);\n if (progress >= 1.0) return getToColor(uv);\n float t = progress;\n\n vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);\n // the crest points up the frame, or to the left when the wave travels straight up or down\n vec2 up = vec2(-dir.y, dir.x);\n if (up.y < 0.0 || (up.y == 0.0 && up.x > 0.0)) up = -up;\n // half extents of the frame along the travel and across it, in frame heights\n float e = 0.5 * (abs(dir.x) * ratio + abs(dir.y));\n float w = 0.5 * (abs(up.x) * ratio + abs(up.y));\n // in wave heights: u along the travel, v from the trough (0) to the crest (1)\n vec2 p = (uv - 0.5) * vec2(ratio, 1.0) / (2.0 * w);\n vec2 q = vec2(dot(p, dir), dot(p, up) + 0.5);\n float E = e / (2.0 * w);\n\n float R = max(curl, 0.01);\n // radius of the hollow at the back of the curl, where it meets the face\n float Rb = 0.5 * R;\n // the lip pitches forward, then curls further down as the wave travels\n float tipAngle = PI * (0.08 - 0.5 * smoothstep(0.0, 0.85, t));\n // the wave sweeps from fully ahead of the frame, spray included, to fully past it, tinted water included\n float travel = mix(t, t * t * (3.0 - 2.0 * t), 0.25);\n vec2 C = vec2(mix(-E - R - REACH, E + Rb + TRAIL + BAND, travel), 1.02 - R);\n\n // polar coordinates around the center of the curl\n vec2 d = q - C;\n // atan is undefined at the very center\n if (d.x == 0.0) d.x = 1e-6;\n float r = length(d);\n float ang = atan(d.y, d.x);\n // the inner surface of the curl spirals in from the tip of the lip (zero thickness) to the back of the hollow\n float k = clamp((ang - tipAngle) / (PI - tipAngle), 0.0, 1.0);\n float rIn = R - (R - Rb) * (1.0 - (1.0 - k) * (1.0 - k));\n bool curled = ang >= tipAngle;\n // the face below the curl: vertical where it meets the hollow, its base trailing behind\n float s = 1.0 - clamp(q.y / C.y, 0.0, 1.0);\n float face = C.x - Rb - TRAIL * s * s;\n float behind = face - q.x; // > 0 behind the face\n\n float wet;\n if (curled) {\n wet = smoothstep(-AA, AA, r - rIn) * (ang > 0.5 * PI ? 1.0 : 1.0 - smoothstep(-AA, AA, r - R));\n } else {\n wet = smoothstep(-AA, AA, behind);\n }\n // the lip: the curl in front of the top of the wave\n float lip = curled ? 1.0 - smoothstep(0.5 * PI - 0.3, 0.5 * PI + 0.5, ang) : 0.0;\n\n float n = vnoise(q * vec2(14.0, 10.0) + vec2(-9.0 * t, 3.0 * t));\n\n // outgoing image, darkened in the hollow and in the shadow of the overhang just ahead of it\n vec4 a = getFromColor(uv);\n float gap = max(min(r - R, -behind), 0.0);\n float shade = 0.55 * exp(-gap / 0.1) * (1.0 - smoothstep(0.0, REACH, gap)) * smoothstep(0.0, 0.6, q.y) * (1.0 - smoothstep(C.y + 0.2 * R, C.y + 1.1 * R, q.y));\n shade += 0.25 * (1.0 - smoothstep(0.0, R, r));\n a.rgb *= 1.0 - shade;\n // spray thrown ahead of the crest, drifting forward and falling, and a mist along it\n float fwd = max(r - R, 0.0);\n float zone = smoothstep(tipAngle - 0.4, tipAngle + 0.2, ang) * (1.0 - smoothstep(0.0, REACH, fwd)) * step(0.0, r - R);\n // stretched along the throw, so the droplets streak forward\n vec2 sq = (d - t * vec2(0.5, -0.25)) * vec2(0.55, 1.0);\n float thin = exp(-fwd / 0.12);\n float spray = droplets(sq, 0.02, foam * thin, 1.0) + 0.6 * droplets(sq * 1.6 + 3.1, 0.02, foam * thin, 7.0);\n // the mist hugs the outside of the lip only\n float mist = foam * n * n * exp(-fwd / 0.06) * (1.0 - smoothstep(0.0, REACH, fwd)) * smoothstep(-AA, AA, r - R) * smoothstep(tipAngle, tipAngle + 0.3, ang);\n a.rgb = mix(a.rgb, foamColor.rgb, foamColor.a * clamp(spray * zone + mist, 0.0, 1.0));\n\n // incoming image behind the face, bent and tinted by the water, clearing further behind\n float band = max(1.0 - smoothstep(0.05, BAND, behind), lip);\n float bend = refraction * band * band;\n vec2 off = bend * (dir * sin(17.0 * q.y + 2.0 * sin(9.0 * q.x) - 6.0 * t) + up * cos(13.0 * q.x - 5.0 * t));\n vec4 b = getToColor(mirror(uv + off * 2.0 * w / vec2(ratio, 1.0)));\n float luma = dot(b.rgb, vec3(0.299, 0.587, 0.114));\n // lit near the top of the face and through the thin lip, darker on the underside of the lip\n vec3 tinted = water.rgb * (0.4 + 0.9 * luma) * (1.0 + 0.6 * q.y);\n tinted += 0.18 * lip * (1.0 - k) * vec3(0.5, 1.0, 0.9);\n tinted *= 1.0 - 0.35 * lip * (1.0 - smoothstep(0.0, 0.06, r - rIn));\n // a bright line along the surface of the face, fading up into the hollow\n tinted += 0.35 * (curled ? k * (1.0 - smoothstep(0.0, 0.015, r - rIn)) : 1.0 - smoothstep(0.0, 0.015, behind)) * vec3(0.7, 0.95, 1.0);\n b.rgb = mix(b.rgb, tinted, water.a * band);\n\n // foam: whitewater along the outer edge of the lip, and churning at the base of the face\n float crest = curled ? (1.0 - smoothstep(0.01, 0.02 + 0.12 * n, abs(R - r))) * smoothstep(tipAngle, tipAngle + 0.4, ang) * (1.0 - smoothstep(0.5 * PI + 0.2, 0.5 * PI + 0.8, ang)) : 0.0;\n float churn = (1.0 - smoothstep(0.0, 0.15 + 0.1 * n, q.y)) * (1.0 - smoothstep(0.0, 0.3, abs(behind))) * smoothstep(0.3, 0.7, n);\n b.rgb = mix(b.rgb, foamColor.rgb, foamColor.a * clamp(foam * 1.5 * (crest + churn), 0.0, 1.0));\n\n // mixed premultiplied, so transparent images do not bleed their color\n vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), wet);\n return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);\n}\n","author":"gre","license":"MIT","description":"A breaking wave crashes across the frame, its lip curling over in front of its face and throwing foam and spray ahead, its shadow darkening the outgoing image; the incoming image is left behind it, tinted and bent by the water, clearing as the wave passes","tags":["water","wave","ocean","foam","directional","reveal"],"params":{"direction":{"type":"vec2","default":[1,0],"description":"Direction the wave travels toward"},"curl":{"type":"float","default":0.3,"min":0.1,"max":0.45,"description":"Size of the curling lip, in wave heights: how far it overhangs ahead of the face"},"foam":{"type":"float","default":0.6,"min":0,"max":1,"description":"Amount of foam on the crest and spray thrown ahead of it"},"refraction":{"type":"float","default":0.04,"min":0,"max":0.1,"description":"How much the water bends the incoming image behind the wave"},"water":{"type":"vec4","default":[0.05,0.36,0.46,0.75],"color":true,"description":"Color of the water tinting the incoming image behind the wave (its alpha is its strength)"},"foamColor":{"type":"vec4","default":[1,1,1,1],"color":true,"description":"Color of the foam and spray (its alpha is its strength)"}},"textures":[],"createdAt":"Fri, 6 Nov 2026 17:50:09 +0100","updatedAt":"Fri, 6 Nov 2026 17:50:09 +0100"},{"name":"WedgeWipe","paramsTypes":{"angle":"float","smoothness":"float","center":"vec2"},"defaultParams":{"angle":0,"smoothness":0.01,"center":[0.5,0.5]},"glsl":"// Author: gre\n// License: MIT\n// Description: Two hands sweep away from each other around the center, opening a widening wedge that reveals the incoming image\n// Tags: wipe, radial, clock, wedge\n\n#define PI 3.141592653589793\n\n// @range(-180, 180) Direction the wedge opens from, in degrees clockwise from 12 o'clock\nuniform float angle; // = 0.0\n// @range(0, 0.2) Softness of the hands' edges\nuniform float smoothness; // = 0.01\n// @param Point the hands turn around\nuniform vec2 center; // = vec2(0.5)\n\nvec4 transition (vec2 uv) {\n // At the end, float PI rounds above pi and sin(spread) can turn slightly negative\n if (progress >= 1.0) return getToColor(uv);\n // Measured in square pixels, so the angles are not stretched\n vec2 q = (uv - center) * vec2(ratio, 1.0);\n float a = radians(angle);\n // Local frame: y along the starting direction, x across it (the wedge is symmetric)\n vec2 p = vec2(abs(q.x * cos(a) - q.y * sin(a)), q.x * sin(a) + q.y * cos(a));\n // Each hand has turned by half a turn at the end\n float spread = PI * progress;\n vec2 hand = vec2(sin(spread), cos(spread));\n // Signed distance to the wedge: the nearest hand, negative inside\n float l = length(p);\n float d = length(p - hand * clamp(dot(p, hand), 0.0, l)) * sign(hand.y * p.x - hand.x * p.y);\n // The soft edge keeps an even width and slides from outside to inside the hands,\n // so nothing is revealed at the start and everything is at the end\n float s = max(smoothness, 0.001);\n float m = 1.0 - smoothstep(0.0, s, d + s * (1.0 - progress));\n return mix(getFromColor(uv), getToColor(uv), m);\n}\n","author":"gre","license":"MIT","description":"Two hands sweep away from each other around the center, opening a widening wedge that reveals the incoming image","tags":["wipe","radial","clock","wedge"],"params":{"angle":{"type":"float","default":0,"min":-180,"max":180,"description":"Direction the wedge opens from, in degrees clockwise from 12 o'clock"},"smoothness":{"type":"float","default":0.01,"min":0,"max":0.2,"description":"Softness of the hands' edges"},"center":{"type":"vec2","default":[0.5,0.5],"description":"Point the hands turn around"}},"textures":[],"createdAt":"Mon, 2 Nov 2026 09:49:36 +0100","updatedAt":"Mon, 2 Nov 2026 09:49:36 +0100"},{"name":"WhipPan","paramsTypes":{"direction":"vec2","blur":"float"},"defaultParams":{"direction":[-1,0],"blur":0.4},"glsl":"// Author: gre\n// License: MIT\n// Description: A fast camera pan that streaks both images with motion blur, the incoming one arriving from the opposite side\n// Tags: slide, motion-blur, directional\n\n// @param Direction in which the images move\nuniform vec2 direction; // = vec2(-1.0, 0.0)\n// @range(0, 1) Length of the motion blur at full speed\nuniform float blur; // = 0.4\n\nconst int SAMPLES = 24;\n\n// The panned strip: the outgoing image, then the incoming one behind it\nvec4 strip(vec2 q, vec2 d) {\n vec2 qt = q + d;\n // which side of the seam between the two images (works for diagonals too)\n if (dot(q - 0.5, -d) < 0.5 * dot(d, d)) {\n return getFromColor(clamp(q, 0.0, 1.0));\n }\n return getToColor(clamp(qt, 0.0, 1.0));\n}\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvec4 transition(vec2 uv) {\n vec2 d = sign(direction);\n // ease in and out: slow start, whip in the middle, slow landing\n float p = progress;\n float h = 1.0 - abs(2.0 * p - 1.0); // 0 at both ends, 1 in the middle\n // mostly cubic, with a bit of linear so that it starts moving at once\n float e = 0.5 * h * (0.1 + 0.9 * h * h);\n float pos = p < 0.5 ? e : 1.0 - e;\n float len = blur * h * (0.1 + 2.7 * h * h) / 2.8; // follows the speed\n\n vec2 q = uv - d * pos;\n // average along the motion, jittered to hide the sample steps\n float jitter = rand(uv);\n vec3 color = vec3(0.0);\n float alpha = 0.0;\n for (int i = 0; i < SAMPLES; i++) {\n float t = (float(i) + jitter) / float(SAMPLES) - 0.5;\n vec4 c = strip(q + d * t * len, d);\n color += c.rgb * c.a;\n alpha += c.a;\n }\n return vec4(color / max(alpha, 1e-5), alpha / float(SAMPLES));\n}\n","author":"gre","license":"MIT","description":"A fast camera pan that streaks both images with motion blur, the incoming one arriving from the opposite side","tags":["slide","motion-blur","directional"],"params":{"direction":{"type":"vec2","default":[-1,0],"description":"Direction in which the images move"},"blur":{"type":"float","default":0.4,"min":0,"max":1,"description":"Length of the motion blur at full speed"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 18:20:26 +0100","updatedAt":"Sat, 31 Oct 2026 18:20:26 +0100"},{"name":"WhipSpin","paramsTypes":{"turns":"float","blur":"float","chroma":"float","zoom":"float"},"defaultParams":{"turns":1,"blur":0.5,"chroma":0.6,"zoom":0.25},"glsl":"// Author: gre\n// License: MIT\n// Description: The camera rolls faster and faster around the center of the frame, streaking the outgoing image in a spin blur, then the incoming one takes over mid-spin and slows to a stop\n// Tags: rotate, motion-blur, spin\n\n// @range(-3, 3) Total rotation, in turns, split between the two images (negative turns clockwise)\nuniform float turns; // = 1.0\n// @range(0, 1) Length of the motion blur along the spin\nuniform float blur; // = 0.5\n// @range(0, 1) How much the color channels split apart as the spin speeds up\nuniform float chroma; // = 0.6\n// @range(0, 1) How much the camera zooms in at the fastest point\nuniform float zoom; // = 0.25\n\nconst float PI = 3.141592653589793;\nconst int SAMPLES = 24;\n\nfloat hash(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * vec3(0.1031, 0.1030, 0.0973));\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// fold the coordinates back into the image so that the rotated frame stays filled\nvec2 mirror(vec2 v) {\n vec2 m = mod(v, 2.0);\n return mix(m, 2.0 - m, step(1.0, m));\n}\n\n// the camera's roll angle at time t: the outgoing image speeds up until the middle,\n// then the incoming one, already turning, slows down to rest\nfloat rollAngle(float t) {\n float halfTurn = PI * turns;\n if (t < 0.5) {\n float x = 2.0 * t;\n return halfTurn * x * x * x;\n }\n float x = 2.0 - 2.0 * t;\n return -halfTurn * x * x * x;\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n float h = 1.0 - abs(2.0 * p - 1.0); // 0 at both ends, 1 at the cut\n // the shutter is open longer as the spin speeds up, and closed at both ends\n float shutter = blur * 0.1 * h;\n float scale = 1.0 + zoom * h * h * h;\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0);\n float jitter = hash(uv * vec2(ratio, 1.0) * 731.0);\n vec3 color = vec3(0.0);\n vec3 weight = vec3(0.0);\n float alpha = 0.0;\n for (int i = 0; i < SAMPLES; i++) {\n float s = (float(i) + jitter) / float(SAMPLES) - 0.5;\n float t = clamp(p + s * shutter, 0.0, 1.0);\n float a = rollAngle(t);\n float c = cos(a), sn = sin(a);\n vec2 r = vec2(c * q.x + sn * q.y, -sn * q.x + c * q.y) / scale;\n vec2 suv = mirror(r / vec2(ratio, 1.0) + 0.5);\n vec4 col = t < 0.5 ? getFromColor(suv) : getToColor(suv);\n // red trails behind and blue leads along the arc: the channels split with the speed\n vec3 w = max(vec3(1.0 - 4.0 * chroma * s, 1.0, 1.0 + 4.0 * chroma * s), 0.0);\n color += col.rgb * col.a * w;\n weight += col.a * w;\n alpha += col.a;\n }\n return vec4(color / max(weight, vec3(1e-5)), alpha / float(SAMPLES));\n}\n","author":"gre","license":"MIT","description":"The camera rolls faster and faster around the center of the frame, streaking the outgoing image in a spin blur, then the incoming one takes over mid-spin and slows to a stop","tags":["rotate","motion-blur","spin"],"params":{"turns":{"type":"float","default":1,"min":-3,"max":3,"description":"Total rotation, in turns, split between the two images (negative turns clockwise)"},"blur":{"type":"float","default":0.5,"min":0,"max":1,"description":"Length of the motion blur along the spin"},"chroma":{"type":"float","default":0.6,"min":0,"max":1,"description":"How much the color channels split apart as the spin speeds up"},"zoom":{"type":"float","default":0.25,"min":0,"max":1,"description":"How much the camera zooms in at the fastest point"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 23:20:50 +0100","updatedAt":"Sat, 31 Oct 2026 23:20:50 +0100"},{"name":"WhipTilt","paramsTypes":{"down":"bool","blur":"float","chroma":"float","perspective":"float"},"defaultParams":{"down":false,"blur":0.5,"chroma":0.5,"perspective":0.7},"glsl":"// Author: gre\n// License: MIT\n// Description: The camera tilts fast from the outgoing image to the incoming one, set edge to edge at an angle above it, streaking both in perspective with a vertical motion blur\n// Tags: 3d, rotate, motion-blur, vertical\n\n// @param Tilt the camera down to an incoming image below instead of above\nuniform bool down; // = false\n// @range(0, 1) Length of the motion blur along the tilt\nuniform float blur; // = 0.5\n// @range(0, 1) How much the color channels split apart as the tilt speeds up\nuniform float chroma; // = 0.5\n// @range(0, 1) Strength of the perspective (field of view of the camera)\nuniform float perspective; // = 0.7\n\nconst float PI = 3.141592653589793;\nconst int SAMPLES = 24;\n\nfloat hash(vec2 p) {\n vec3 p3 = fract(vec3(p.xyx) * vec3(0.1031, 0.1030, 0.0973));\n p3 += dot(p3, p3.yzx + 33.33);\n return fract((p3.x + p3.y) * p3.z);\n}\n\n// fold the coordinates back into the image, only a safety at the far edges\nvec2 mirror(vec2 v) {\n vec2 m = mod(v, 2.0);\n return mix(m, 2.0 - m, step(1.0, m));\n}\n\n// how far the camera has tilted at time t, from 0 to 1: slow start, whip in the middle, slow landing\nfloat tilt(float t) {\n float h = 1.0 - abs(2.0 * t - 1.0);\n float e = 0.5 * h * h * h * h;\n return t < 0.5 ? e : 1.0 - e;\n}\n\nvec4 transition(vec2 uv) {\n float p = progress;\n float h = 1.0 - abs(2.0 * p - 1.0); // 0 at both ends, 1 in the middle\n // the shutter is open longer as the tilt speeds up, and closed at both ends\n float shutter = blur * 0.25 * h * h;\n // the images are two faces of a drum around the camera, each filling the frame from the\n // middle: they meet edge to edge at the angle of the field of view, which the camera turns by\n float halfFov = mix(15.0, 45.0, perspective) * PI / 180.0;\n float dist = 0.5 / tan(halfFov);\n vec2 q = (uv - 0.5) * vec2(ratio, 1.0);\n if (down) q.y = -q.y;\n float jitter = hash(uv * vec2(ratio, 1.0) * 731.0);\n vec3 color = vec3(0.0);\n vec3 weight = vec3(0.0);\n float alpha = 0.0;\n for (int i = 0; i < SAMPLES; i++) {\n float s = (float(i) + jitter) / float(SAMPLES) - 0.5;\n float t = clamp(p + s * shutter, 0.0, 1.0);\n float a = 2.0 * halfFov * tilt(t);\n // zoom in just enough that the faces always cover the frame, wherever their edge is\n vec2 r = q * cos(halfFov) / cos(halfFov - a);\n // the ray in the frame of the outgoing face, then of the incoming one\n float c0 = cos(a), s0 = sin(a);\n vec2 d0 = vec2(r.y * c0 + dist * s0, dist * c0 - r.y * s0);\n float b = a - 2.0 * halfFov;\n float c1 = cos(b), s1 = sin(b);\n vec2 d1 = vec2(r.y * c1 + dist * s1, dist * c1 - r.y * s1);\n // the ray leaves the drum through the nearest face\n bool incoming = d1.y > d0.y;\n vec2 d = incoming ? d1 : d0;\n vec2 hit = dist / d.y * vec2(r.x, d.x);\n if (down) hit.y = -hit.y;\n vec2 suv = mirror(hit / vec2(ratio, 1.0) + 0.5);\n vec4 col = incoming ? getToColor(suv) : getFromColor(suv);\n // red trails behind and blue leads along the motion: the channels split with the speed\n vec3 w = max(vec3(1.0 - 4.0 * chroma * s, 1.0, 1.0 + 4.0 * chroma * s), 0.0);\n color += col.rgb * col.a * w;\n weight += col.a * w;\n alpha += col.a;\n }\n return vec4(color / max(weight, vec3(1e-5)), alpha / float(SAMPLES));\n}\n","author":"gre","license":"MIT","description":"The camera tilts fast from the outgoing image to the incoming one, set edge to edge at an angle above it, streaking both in perspective with a vertical motion blur","tags":["3d","rotate","motion-blur","vertical"],"params":{"down":{"type":"bool","default":false,"description":"Tilt the camera down to an incoming image below instead of above"},"blur":{"type":"float","default":0.5,"min":0,"max":1,"description":"Length of the motion blur along the tilt"},"chroma":{"type":"float","default":0.5,"min":0,"max":1,"description":"How much the color channels split apart as the tilt speeds up"},"perspective":{"type":"float","default":0.7,"min":0,"max":1,"description":"Strength of the perspective (field of view of the camera)"}},"textures":[],"createdAt":"Sat, 31 Oct 2026 23:20:50 +0100","updatedAt":"Sat, 31 Oct 2026 23:20:50 +0100"},{"name":"Wind","paramsTypes":{"size":"float","reversed":"bool"},"defaultParams":{"size":0.2,"reversed":false},"glsl":"// Author: gre\n// License: MIT\n// Description: A ragged left-to-right wipe, as if the image was blown away by the wind\n// Tags: wipe, horizontal, noise\n\n// @range(0, 1) Width of the ragged edge\nuniform float size; // = 0.2\n// @param Wipe from right to left instead\nuniform bool reversed; // = false\n\nfloat rand (vec2 co) {\n return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n\nvec4 transition (vec2 uv) {\n float x = reversed ? 1. - uv.x : uv.x;\n float r = rand(vec2(0, uv.y));\n float m = smoothstep(0.0, -size, x*(1.0-size) + size*r - (progress * (1.0 + size)));\n return mix(\n getFromColor(uv),\n getToColor(uv),\n m\n );\n}\n","author":"gre","license":"MIT","description":"A ragged left-to-right wipe, as if the image was blown away by the wind","tags":["wipe","horizontal","noise"],"params":{"size":{"type":"float","default":0.2,"min":0,"max":1,"description":"Width of the ragged edge"},"reversed":{"type":"bool","default":false,"description":"Wipe from right to left instead"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"WindowBlinds","paramsTypes":{},"defaultParams":{},"glsl":"// Author: Fabien Benetou\n// License: MIT\n// Description: A crossfade through horizontal window blinds\n// Tags: blinds, stripes, blend\n\nvec4 transition (vec2 uv) {\n float t = progress;\n \n if (mod(floor(uv.y*100.*progress),2.)==0.)\n t*=2.-.5;\n \n return mix(\n getFromColor(uv),\n getToColor(uv),\n mix(t, progress, smoothstep(0.8, 1.0, progress))\n );\n}\n","author":"Fabien Benetou","license":"MIT","description":"A crossfade through horizontal window blinds","tags":["blinds","stripes","blend"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"WindowSlices","paramsTypes":{"count":"float","smoothness":"float"},"defaultParams":{"count":10,"smoothness":0.5},"glsl":"// Author: gre\n// License: MIT\n// Description: The incoming image appears through vertical slices that widen\n// Tags: slices, stripes, wipe\n\n// @param Number of slices\nuniform float count; // = 10.0\n// @param Softness of the slices' edges\nuniform float smoothness; // = 0.5\n\nvec4 transition (vec2 p) {\n float pr = smoothstep(-smoothness, 0.0, p.x - progress * (1.0 + smoothness));\n float s = step(pr, fract(count * p.x));\n return mix(getFromColor(p), getToColor(p), s);\n}\n","author":"gre","license":"MIT","description":"The incoming image appears through vertical slices that widen","tags":["slices","stripes","wipe"],"params":{"count":{"type":"float","default":10,"description":"Number of slices"},"smoothness":{"type":"float","default":0.5,"description":"Softness of the slices' edges"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ZoomInCircles","paramsTypes":{},"defaultParams":{},"glsl":"// License: MIT\n// Author: dycm8009\n// Description: Concentric rings of the outgoing image zoom at different speeds before revealing the incoming one\n// Tags: zoom, circle\n// ported by gre from https://gist.github.com/dycm8009/948e99b1800e81ad909a\n\nvec2 zoom(vec2 uv, float amount) {\n return 0.5 + ((uv - 0.5) * amount);\t\n}\n\nvec4 transition(vec2 uv) {\n vec2 ratio2 = vec2(1.0, 1.0 / ratio);\n // TODO: some timing are hardcoded but should be one or many parameters\n // TODO: should also be able to configure how much circles\n // TODO: if() branching should be avoided when possible, prefer use of step() & other functions\n vec2 r = 2.0 * ((vec2(uv.xy) - 0.5) * ratio2);\n float pro = progress / 0.8;\n float z = pro * 0.2;\n float t = 0.0;\n if (pro > 1.0) {\n z = 0.2 + (pro - 1.0) * 5.;\n t = clamp((progress - 0.8) / 0.07, 0.0, 1.0);\n }\n if (length(r) < 0.5+z) {\n // uv = zoom(uv, 0.9 - 0.1 * pro);\n }\n else if (length(r) < 0.8+z*1.5) {\n uv = zoom(uv, 1.0 - 0.15 * pro);\n t = t * 0.5;\n }\n else if (length(r) < 1.2+z*2.5) {\n uv = zoom(uv, 1.0 - 0.2 * pro);\n t = t * 0.2;\n }\n else {\n uv = zoom(uv, 1.0 - 0.25 * pro);\n }\n return mix(getFromColor(uv), getToColor(uv), t);\n}\n","author":"dycm8009","license":"MIT","description":"Concentric rings of the outgoing image zoom at different speeds before revealing the incoming one","tags":["zoom","circle"],"params":{},"textures":[],"createdAt":"Mon, 12 Jun 2017 11:24:34 +0800","updatedAt":"Fri, 9 Oct 2026 23:10:29 +0200"},{"name":"ZoomInOut","paramsTypes":{},"defaultParams":{},"glsl":"// Author: OllyOllyOlly\n// License: MIT\n// Description: Zooms into the outgoing image until it blurs into a flat color, then out to the incoming one\n// Tags: zoom, blur\n\nvec2 zoom(vec2 uv, float amount) {\n return 0.5 + ((uv - 0.5) * (1.0 - amount));\n}\n\nvec4 transition (vec2 uv) {\n float zoomFrom = smoothstep(0.0, 1.0, progress * 2.0);\n float zoomTo = smoothstep(0.0, 1.0, (1.0 - progress) * 2.0);\n float crossfade = smoothstep(0.4, 0.6, progress);\n return mix(\n getFromColor(zoom(uv, zoomFrom)),\n getToColor(zoom(uv, zoomTo)),\n crossfade\n );\n}\n","author":"OllyOllyOlly","license":"MIT","description":"Zooms into the outgoing image until it blurs into a flat color, then out to the incoming one","tags":["zoom","blur"],"params":{},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ZoomWipeLeft","paramsTypes":{"zoom_quickness":"float"},"defaultParams":{"zoom_quickness":0.8},"glsl":"// Author: Handk\n// License: MIT\n// Description: Zooms into the outgoing image, then the incoming one wipes in from right to left\n// Tags: zoom, wipe, horizontal\n\n// @param Part of the first half spent zooming (capped at 0.5)\nuniform float zoom_quickness; // = 0.8\nvec2 zoom(vec2 uv, float amount) {\n if(amount<0.5)\n return 0.5 + ((uv - 0.5) * (1.0-amount));\n else\n return 0.5 + ((uv - 0.5) * (amount));\n \n}\n\nvec4 transition (vec2 uv) {\n float nQuick = clamp(zoom_quickness,0.0,0.5);\n if(progress<0.5){\n vec4 c= mix(\n getFromColor(zoom(uv, smoothstep(0.0, nQuick, progress))),\n getToColor(uv),\n step(0.5, progress)\n );\n \n return c;\n }\n else{\n vec2 p=uv.xy/vec2(1.0).xy;\n vec4 d=getFromColor(p);\n vec4 e=getToColor(p);\n vec4 f= mix(d, e, step(1.0-p.x,(progress-0.5)*2.0));\n \n return f;\n }\n}\n","author":"Handk","license":"MIT","description":"Zooms into the outgoing image, then the incoming one wipes in from right to left","tags":["zoom","wipe","horizontal"],"params":{"zoom_quickness":{"type":"float","default":0.8,"description":"Part of the first half spent zooming (capped at 0.5)"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"},{"name":"ZoomWipeRight","paramsTypes":{"zoom_quickness":"float"},"defaultParams":{"zoom_quickness":0.8},"glsl":"// Author: Handk\n// License: MIT\n// Description: Zooms into the outgoing image, then the incoming one wipes in from left to right\n// Tags: zoom, wipe, horizontal\n\n// @param Part of the first half spent zooming (capped at 0.5)\nuniform float zoom_quickness; // = 0.8\nvec2 zoom(vec2 uv, float amount) {\n if(amount<0.5)\n return 0.5 + ((uv - 0.5) * (1.0-amount));\n else\n return 0.5 + ((uv - 0.5) * (amount));\n \n}\n\nvec4 transition (vec2 uv) {\n float nQuick = clamp(zoom_quickness,0.0,0.5);\n if(progress<0.5){\n vec4 c= mix(\n getFromColor(zoom(uv, smoothstep(0.0, nQuick, progress))),\n getToColor(uv),\n step(0.5, progress)\n );\n \n return c;\n }\n else{\n vec2 p=uv.xy/vec2(1.0).xy;\n vec4 d=getFromColor(p);\n vec4 e=getToColor(p);\n vec4 f= mix(d, e, step(0.0+p.x,(progress-0.5)*2.0));\n \n return f;\n }\n}\n","author":"Handk","license":"MIT","description":"Zooms into the outgoing image, then the incoming one wipes in from left to right","tags":["zoom","wipe","horizontal"],"params":{"zoom_quickness":{"type":"float","default":0.8,"description":"Part of the first half spent zooming (capped at 0.5)"}},"textures":[],"createdAt":"Sun, 25 Oct 2026 17:48:47 +0100","updatedAt":"Sun, 25 Oct 2026 17:48:47 +0100"}]
|