gl-transitions 2.4.0 → 2.5.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.
Files changed (86) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/compatibility.json +244 -0
  3. package/gl-transitions.js +1 -1
  4. package/gl-transitions.json +1 -1
  5. package/glsl3/ArrowWipe.glsl +100 -0
  6. package/glsl3/BlockSlide.glsl +87 -0
  7. package/glsl3/CellDissolve.glsl +91 -0
  8. package/glsl3/Crumple.glsl +173 -0
  9. package/glsl3/HeatHaze.glsl +79 -0
  10. package/glsl3/Hologram.glsl +97 -0
  11. package/glsl3/LiquidFill.glsl +102 -0
  12. package/glsl3/PlasmaDissolve.glsl +51 -0
  13. package/glsl3/RingsWipe.glsl +106 -0
  14. package/glsl3/SawtoothWipe.glsl +73 -0
  15. package/glsl3/SnakeBlockWipe.glsl +40 -0
  16. package/glsl3/Snapshot.glsl +86 -0
  17. package/glsl3/Sphere.glsl +95 -0
  18. package/glsl3/SpiralBlockWipe.glsl +65 -0
  19. package/glsl3/Vortex.glsl +106 -0
  20. package/index.js +1 -1
  21. package/layouts.json +618 -18
  22. package/llms-full.txt +614 -362
  23. package/llms.txt +204 -189
  24. package/msl/ArrowWipe.metal +391 -0
  25. package/msl/BlockSlide.metal +418 -0
  26. package/msl/CellDissolve.metal +374 -0
  27. package/msl/Crumple.metal +766 -0
  28. package/msl/HeatHaze.metal +320 -0
  29. package/msl/Hologram.metal +380 -0
  30. package/msl/LiquidFill.metal +373 -0
  31. package/msl/PlasmaDissolve.metal +178 -0
  32. package/msl/RingsWipe.metal +437 -0
  33. package/msl/SawtoothWipe.metal +310 -0
  34. package/msl/SnakeBlockWipe.metal +216 -0
  35. package/msl/Snapshot.metal +321 -0
  36. package/msl/Sphere.metal +345 -0
  37. package/msl/SpiralBlockWipe.metal +281 -0
  38. package/msl/Vortex.metal +522 -0
  39. package/package.json +1 -1
  40. package/skills/gl-transitions/references/catalog.md +68 -34
  41. package/sksl/ArrowWipe.sksl +111 -0
  42. package/sksl/BlockSlide.sksl +99 -0
  43. package/sksl/CellDissolve.sksl +103 -0
  44. package/sksl/Crumple.sksl +179 -0
  45. package/sksl/HeatHaze.sksl +90 -0
  46. package/sksl/Hologram.sksl +108 -0
  47. package/sksl/LiquidFill.sksl +113 -0
  48. package/sksl/PlasmaDissolve.sksl +64 -0
  49. package/sksl/RingsWipe.sksl +115 -0
  50. package/sksl/SawtoothWipe.sksl +83 -0
  51. package/sksl/SnakeBlockWipe.sksl +53 -0
  52. package/sksl/Snapshot.sksl +98 -0
  53. package/sksl/Sphere.sksl +108 -0
  54. package/sksl/SpiralBlockWipe.sksl +76 -0
  55. package/sksl/Vortex.sksl +116 -0
  56. package/sksl/index.js +1 -1
  57. package/transitions/ArrowWipe.glsl +99 -0
  58. package/transitions/BlockSlide.glsl +86 -0
  59. package/transitions/CellDissolve.glsl +90 -0
  60. package/transitions/Crumple.glsl +172 -0
  61. package/transitions/HeatHaze.glsl +78 -0
  62. package/transitions/Hologram.glsl +96 -0
  63. package/transitions/LiquidFill.glsl +101 -0
  64. package/transitions/PlasmaDissolve.glsl +50 -0
  65. package/transitions/RingsWipe.glsl +105 -0
  66. package/transitions/SawtoothWipe.glsl +72 -0
  67. package/transitions/SnakeBlockWipe.glsl +39 -0
  68. package/transitions/Snapshot.glsl +85 -0
  69. package/transitions/Sphere.glsl +94 -0
  70. package/transitions/SpiralBlockWipe.glsl +64 -0
  71. package/transitions/Vortex.glsl +105 -0
  72. package/wgsl/ArrowWipe.wgsl +352 -0
  73. package/wgsl/BlockSlide.wgsl +384 -0
  74. package/wgsl/CellDissolve.wgsl +323 -0
  75. package/wgsl/Crumple.wgsl +709 -0
  76. package/wgsl/HeatHaze.wgsl +282 -0
  77. package/wgsl/Hologram.wgsl +339 -0
  78. package/wgsl/LiquidFill.wgsl +339 -0
  79. package/wgsl/PlasmaDissolve.wgsl +149 -0
  80. package/wgsl/RingsWipe.wgsl +394 -0
  81. package/wgsl/SawtoothWipe.wgsl +279 -0
  82. package/wgsl/SnakeBlockWipe.wgsl +188 -0
  83. package/wgsl/Snapshot.wgsl +287 -0
  84. package/wgsl/Sphere.wgsl +316 -0
  85. package/wgsl/SpiralBlockWipe.wgsl +250 -0
  86. package/wgsl/Vortex.wgsl +463 -0
@@ -1,80 +1,89 @@
1
- # Catalog (gl-transitions@2.4.0)
1
+ # Catalog (gl-transitions@2.5.0)
2
2
 
3
- 178 transitions. Generated from gl-transitions.json; full details (parameter hints, authors, source links) in https://cdn.jsdelivr.net/npm/gl-transitions@2.4.0/llms-full.txt.
3
+ 193 transitions. Generated from gl-transitions.json; full details (parameter hints, authors, source links) in https://cdn.jsdelivr.net/npm/gl-transitions@2.5.0/llms-full.txt.
4
4
 
5
5
  ## By tag
6
6
 
7
- - **wipe**: ApertureWipe, BowTie, BowTieHorizontal, BowTieVertical, BrushWipe, CircleOpen, ClockWipe, ColorPanelWipe, CurvedWipe, DiamondWipe, DirectionalWarp, DirectionalWipe, FlameWipe, FlowerWipe, HeartWipe, HorizontalClose, HorizontalOpen, LeafWipe, LightWipe, LumaWipe, PlusWipe, RadialWipe, SpiralWipe, SquaresWipe, StarWipe, StaticWipe, TilesWave, UndulatingBurnOut, VerticalClose, VerticalOpen, WedgeWipe, Wind, WindowSlices, WipeDown, WipeLeft, WipeRight, WipeUp, ZoomWipeLeft, ZoomWipeRight
8
- - **blend**: ColorCoords, ColorDistance, CrossZoom, DefocusBlur, DisplacementMap, Dreamy, Fade, FilmDissolve, Fisheye, GlitchBands, GlitchMemories, Hexagonalize, Kaleidoscope, LinearBlur, Morph, MosaicBlend, MosaicFade, MultiplyBlend, Pixelize, Ripple, RotateFade, SlideAwayRight, Swirl, WaterDrop, WindowBlinds
9
- - **zoom**: Box, CrossWarp, CrossZoom, DirectionalScaled, DreamyZoom, Fisheye, LeftRight, Mosaic, PopIn, RectangleIris, Revolve, RotateScaleFade, RotateScaleVanish, ScaleIn, SimpleZoom, SimpleZoomOut, StereoViewer, TopBottom, Tunnel, ZoomInCircles, ZoomInOut, ZoomWipeLeft, ZoomWipeRight
10
- - **slide**: Accordion, Bounce, CardSwipe, Comb, Directional, DirectionalEased, DirectionalScaled, Fold, Gallery, LeftRight, SlideAwayRight, Slides, SplitSlideInHorizontal, SplitSlideInOutHorizontal, SplitSlideInOutVertical, SplitSlideInVertical, SplitSlideOutHorizontal, SplitSlideOutVertical, StretchSlide, TangentMotionBlur, TopBottom, WhipPan
11
- - **rotate**: ApertureWipe, CardSwipe, Cube, DreamyZoom, FallOver, Honeycomb, Pinwheel, Prisms, Puzzle, Revolve, Rolls, RotateFade, RotateScaleFade, RotateScaleVanish, Swirl, TangentMotionBlur, WhipSpin, WhipTilt
7
+ - **wipe**: ApertureWipe, ArrowWipe, BowTie, BowTieHorizontal, BowTieVertical, BrushWipe, CircleOpen, ClockWipe, ColorPanelWipe, CurvedWipe, DiamondWipe, DirectionalWarp, DirectionalWipe, FlameWipe, FlowerWipe, HeartWipe, HorizontalClose, HorizontalOpen, LeafWipe, LightWipe, LumaWipe, PlasmaDissolve, PlusWipe, RadialWipe, RingsWipe, SawtoothWipe, SnakeBlockWipe, SpiralBlockWipe, SpiralWipe, SquaresWipe, StarWipe, StaticWipe, TilesWave, UndulatingBurnOut, VerticalClose, VerticalOpen, WedgeWipe, Wind, WindowSlices, WipeDown, WipeLeft, WipeRight, WipeUp, ZoomWipeLeft, ZoomWipeRight
8
+ - **blend**: ColorCoords, ColorDistance, CrossZoom, DefocusBlur, DisplacementMap, Dreamy, Fade, FilmDissolve, Fisheye, GlitchBands, GlitchMemories, HeatHaze, Hexagonalize, Kaleidoscope, LinearBlur, Morph, MosaicBlend, MosaicFade, MultiplyBlend, Pixelize, Ripple, RotateFade, SlideAwayRight, Swirl, WaterDrop, WindowBlinds
9
+ - **zoom**: BlockSlide, Box, CrossWarp, CrossZoom, DirectionalScaled, DreamyZoom, Fisheye, LeftRight, Mosaic, PopIn, RectangleIris, Revolve, RotateScaleFade, RotateScaleVanish, ScaleIn, SimpleZoom, SimpleZoomOut, StereoViewer, TopBottom, Tunnel, ZoomInCircles, ZoomInOut, ZoomWipeLeft, ZoomWipeRight
10
+ - **slide**: Accordion, BlockSlide, Bounce, CardSwipe, Comb, Directional, DirectionalEased, DirectionalScaled, Fold, Gallery, LeftRight, SlideAwayRight, Slides, SplitSlideInHorizontal, SplitSlideInOutHorizontal, SplitSlideInOutVertical, SplitSlideInVertical, SplitSlideOutHorizontal, SplitSlideOutVertical, StretchSlide, TangentMotionBlur, TopBottom, WhipPan
11
+ - **directional**: ArrowWipe, BlockSlide, CardSwipe, CurvedWipe, Directional, DirectionalEased, DirectionalScaled, DirectionalWarp, DirectionalWipe, Disintegrate, FlameWipe, Gallery, LiquidFill, PixelStretch, SawtoothWipe, Slides, SquaresWipe, StretchSlide, WhipPan
12
+ - **rotate**: ApertureWipe, CardSwipe, Cube, DreamyZoom, FallOver, Honeycomb, Pinwheel, Prisms, Puzzle, Revolve, Rolls, RotateFade, RotateScaleFade, RotateScaleVanish, Snapshot, Swirl, TangentMotionBlur, WhipSpin, WhipTilt
13
+ - **shape**: ApertureWipe, ArrowWipe, BowTie, BowTieHorizontal, BowTieVertical, Box, CircleIris, DiamondWipe, EyeBlink, FlowerWipe, HeartWipe, LeafWipe, PlusWipe, RectangleCover, SawtoothWipe, Sphere, SpiralWipe, StarWipe
12
14
  - **horizontal**: BowTieHorizontal, Comb, CrossWarp, Curtains, Fold, LeftRight, PaperTear, SimpleFlip, SlideAwayRight, SplitSlideInHorizontal, SplitSlideInOutHorizontal, SplitSlideOutHorizontal, Wind, WipeLeft, WipeRight, ZoomWipeLeft, ZoomWipeRight
13
15
  - **vertical**: Bounce, BowTieVertical, CylinderRoll, FallOver, FilmStrip, Shred, SplitSlideInOutVertical, SplitSlideInVertical, SplitSlideOutVertical, Squeeze, StaticWipe, TopBottom, TvRoll, TvTurnOff, WhipTilt, WipeDown, WipeUp
14
16
  - **fade**: ColorPhase, ColorWrap, EdgeGlow, Fade, FadeColor, FadeGrayscale, FilmDissolve, FlashFade, HsvFade, MultiplyBlend, Overexposure, PhotoDevelop, RotateScaleFade, ScaleIn, SimpleZoom, SimpleZoomOut
15
- - **directional**: CardSwipe, CurvedWipe, Directional, DirectionalEased, DirectionalScaled, DirectionalWarp, DirectionalWipe, Disintegrate, FlameWipe, Gallery, PixelStretch, Slides, SquaresWipe, StretchSlide, WhipPan
16
- - **shape**: ApertureWipe, BowTie, BowTieHorizontal, BowTieVertical, Box, CircleIris, DiamondWipe, EyeBlink, FlowerWipe, HeartWipe, LeafWipe, PlusWipe, RectangleCover, SpiralWipe, StarWipe
17
+ - **3d**: Accordion, BookFlip, Crumple, Cube, Curtains, CylinderRoll, Doorway, FallOver, Gallery, InvertedPageCurl, Prisms, Sphere, Swap, Tunnel, WhipTilt
18
+ - **noise**: BlockDissolve, BurnThrough, Crosshatch, HeatHaze, InkBleed, LuminanceMelt, NoiseDissolve, PerlinDissolve, SmokeDissolve, StaticFade, StaticWipe, TvStatic, VhsTracking, Wind
17
19
  - **retro**: Ascii, DitherDissolve, DoomMelt, FilmStrip, Halftone, LissajousTiles, PhotoDevelop, StaticFade, StereoViewer, TvLostSignal, TvRoll, TvStatic, TvTurnOff, VhsTracking
18
- - **3d**: Accordion, BookFlip, Cube, Curtains, CylinderRoll, Doorway, FallOver, Gallery, InvertedPageCurl, Prisms, Swap, Tunnel, WhipTilt
19
- - **noise**: BlockDissolve, BurnThrough, Crosshatch, InkBleed, LuminanceMelt, NoiseDissolve, PerlinDissolve, SmokeDissolve, StaticFade, StaticWipe, TvStatic, VhsTracking, Wind
20
20
  - **split**: Curtains, HorizontalClose, HorizontalOpen, PaperTear, SplitSlideInHorizontal, SplitSlideInOutHorizontal, SplitSlideInOutVertical, SplitSlideInVertical, SplitSlideOutHorizontal, SplitSlideOutVertical, VerticalClose, VerticalOpen
21
21
  - **color**: BlockCover, ColorDistance, ColorPanelWipe, ColorPhase, ColorWrap, FadeColor, FadeGrayscale, FlashFade, HsvFade, PhotoDevelop
22
+ - **dissolve**: BlockDissolve, BloomDissolve, BokehDissolve, CellDissolve, DitherDissolve, FilmDissolve, GlowDissolve, NoiseDissolve, PerlinDissolve, RandomSquares
23
+ - **distort**: ButterflyWaveScrawler, ColorCoords, CrazyParametricFun, DisplacementMap, Fisheye, FlyEye, HeatHaze, Kaleidoscope, Morph, PowerKaleido
22
24
  - **chromatic**: ButterflyWaveScrawler, CameraShake, CylinderRoll, FlyEye, GlitchFlicker, GlitchMemories, PixelStretch, Squeeze, StripDatamoshGlitch
23
- - **dissolve**: BlockDissolve, BloomDissolve, BokehDissolve, DitherDissolve, FilmDissolve, GlowDissolve, NoiseDissolve, PerlinDissolve, RandomSquares
24
- - **distort**: ButterflyWaveScrawler, ColorCoords, CrazyParametricFun, DisplacementMap, Fisheye, FlyEye, Kaleidoscope, Morph, PowerKaleido
25
- - **glitch**: ColorWrap, GlitchBands, GlitchDisplace, GlitchFlicker, GlitchMemories, StripDatamoshGlitch, TvLostSignal, VhsTracking
25
+ - **glitch**: ColorWrap, GlitchBands, GlitchDisplace, GlitchFlicker, GlitchMemories, Hologram, StripDatamoshGlitch, TvLostSignal, VhsTracking
26
+ - **grid**: BlockCover, BlockSlide, Chessboard, GridFlip, LissajousTiles, RandomSquares, SnakeBlockWipe, SpiralBlockWipe, SquaresWipe
27
+ - **radial**: ClockWipe, Honeycomb, LightRays, Pinwheel, RadialWipe, RingsWipe, SpiralWipe, Tunnel, WedgeWipe
28
+ - **glow**: BloomDissolve, GlowDissolve, LensFlare, LightRays, LightStreaks, LightWipe, PlasmaDissolve, Refraction
26
29
  - **light**: BloomDissolve, BokehDissolve, FilmDissolve, LensFlare, LightRays, LightStreaks, LightWipe, Overexposure
27
30
  - **motion-blur**: CameraShake, CylinderRoll, FilmStrip, LightStreaks, TangentMotionBlur, WhipPan, WhipSpin, WhipTilt
28
- - **radial**: ClockWipe, Honeycomb, LightRays, Pinwheel, RadialWipe, SpiralWipe, Tunnel, WedgeWipe
31
+ - **shadow**: Bounce, Crumple, CurvedWipe, PaperTear, PopIn, Puzzle, Shred, Snapshot
29
32
  - **blur**: BokehDissolve, CrossZoom, DefocusBlur, EyeBlink, LinearBlur, Revolve, ZoomInOut
30
- - **glow**: BloomDissolve, GlowDissolve, LensFlare, LightRays, LightStreaks, LightWipe, Refraction
31
- - **grid**: BlockCover, Chessboard, GridFlip, LissajousTiles, RandomSquares, SquaresWipe
33
+ - **organic**: BrushWipe, GooeyWipe, HeatHaze, InkBleed, PlasmaDissolve, SmokeDissolve, SplatterWipe
34
+ - **tiles**: GridFlip, Honeycomb, LissajousTiles, Mosaic, Puzzle, TilesWave, Vortex
32
35
  - **iris**: ApertureWipe, CircleIris, CircleOpen, DiamondWipe, RectangleCover, RectangleIris
33
36
  - **pattern**: Ascii, Chessboard, Crosshatch, DitherDissolve, Halftone, PolkaDotsCurtain
34
- - **shadow**: Bounce, CurvedWipe, PaperTear, PopIn, Puzzle, Shred
35
37
  - **stripes**: Accordion, Comb, Prisms, Shred, WindowBlinds, WindowSlices
36
- - **tiles**: GridFlip, Honeycomb, LissajousTiles, Mosaic, Puzzle, TilesWave
38
+ - **blocks**: BlockCover, BlockDissolve, BlockSlide, SnakeBlockWipe, SpiralBlockWipe
37
39
  - **burn**: BurnThrough, FilmBurn, FlameWipe, GlowDissolve, UndulatingBurnOut
38
- - **organic**: BrushWipe, GooeyWipe, InkBleed, SmokeDissolve, SplatterWipe
40
+ - **circle**: CircleIris, CircleOpen, RingsWipe, UndulatingBurnOut, ZoomInCircles
41
+ - **flash**: DreamyZoom, FlashFade, Overexposure, Snapshot, TvTurnOff
39
42
  - **pixelate**: DitherDissolve, Hexagonalize, MosaicBlend, MosaicFade, Pixelize
40
- - **circle**: CircleIris, CircleOpen, UndulatingBurnOut, ZoomInCircles
41
- - **flash**: DreamyZoom, FlashFade, Overexposure, TvTurnOff
43
+ - **scanlines**: GlitchFlicker, Hologram, TvLostSignal, TvRoll, VhsTracking
44
+ - **wave**: ButterflyWaveScrawler, Dreamy, LiquidFill, Ripple, TilesWave
45
+ - **clock**: ClockWipe, RadialWipe, RingsWipe, WedgeWipe
42
46
  - **push**: Comb, Directional, DirectionalEased, DirectionalScaled
43
47
  - **reflection**: Cube, Doorway, Gallery, Swap
44
- - **scanlines**: GlitchFlicker, TvLostSignal, TvRoll, VhsTracking
45
48
  - **squares**: BlockCover, Chessboard, RandomSquares, SquaresWipe
46
- - **wave**: ButterflyWaveScrawler, Dreamy, Ripple, TilesWave
47
49
  - **bounce**: Bounce, PopIn, StretchSlide
48
50
  - **box**: Box, RectangleCover, RectangleIris
49
- - **clock**: ClockWipe, RadialWipe, WedgeWipe
50
51
  - **displace**: ColorCoords, DisplacementMap, GlitchDisplace
51
52
  - **flip**: BookFlip, GridFlip, SimpleFlip
52
53
  - **fold**: Accordion, Curtains, Fold
53
54
  - **lens**: BokehDissolve, Fisheye, FlyEye
54
55
  - **mosaic**: Mosaic, MosaicBlend, MosaicFade
56
+ - **reveal**: GooeyWipe, LiquidFill, SplatterWipe
57
+ - **roll**: CylinderRoll, Rolls, Sphere
55
58
  - **spin**: RotateFade, RotateScaleVanish, WhipSpin
56
59
  - **static**: StaticFade, StaticWipe, TvStatic
57
60
  - **warp**: CrossWarp, DirectionalWarp, Tunnel
58
- - **blocks**: BlockCover, BlockDissolve
59
61
  - **cover**: BlockCover, SmokeDissolve
60
62
  - **dots**: Halftone, PolkaDotsCurtain
61
63
  - **elastic**: PopIn, StretchSlide
62
64
  - **film**: FilmBurn, FilmStrip
63
65
  - **fire**: BurnThrough, FlameWipe
64
66
  - **flare**: LensFlare, LightStreaks
67
+ - **flicker**: GlitchFlicker, Hologram
65
68
  - **fragments**: Puzzle, Shatter
66
69
  - **hexagon**: Hexagonalize, Honeycomb
67
70
  - **kaleidoscope**: Kaleidoscope, PowerKaleido
71
+ - **liquid**: GooeyWipe, LiquidFill
68
72
  - **luma**: LumaWipe, LuminanceMelt
69
73
  - **melt**: DoomMelt, LuminanceMelt
70
74
  - **page**: BookFlip, InvertedPageCurl
71
75
  - **paint**: BrushWipe, SplatterWipe
76
+ - **photo**: PhotoDevelop, Snapshot
72
77
  - **psychedelic**: ColorWrap, CrazyParametricFun
73
- - **reveal**: GooeyWipe, SplatterWipe
74
78
  - **ripple**: Ripple, WaterDrop
75
- - **roll**: CylinderRoll, Rolls
79
+ - **scale**: PopIn, Snapshot
80
+ - **shatter**: Shatter, Vortex
76
81
  - **slices**: Shred, WindowSlices
82
+ - **spiral**: SpiralBlockWipe, Vortex
77
83
  - **swirl**: Revolve, Swirl
84
+ - **water**: LiquidFill, WaterDrop
85
+ - **zigzag**: SawtoothWipe, SnakeBlockWipe
86
+ - **arrow**: ArrowWipe
78
87
  - **blinds**: WindowBlinds
79
88
  - **blink**: EyeBlink
80
89
  - **blob**: GooeyWipe
@@ -84,6 +93,8 @@
84
93
  - **camera**: CameraShake
85
94
  - **card**: CardSwipe
86
95
  - **cards**: StereoViewer
96
+ - **cells**: CellDissolve
97
+ - **chevron**: ArrowWipe
87
98
  - **chromatic-aberration**: Refraction
88
99
  - **columns**: DoomMelt
89
100
  - **cross**: PlusWipe
@@ -97,40 +108,47 @@
97
108
  - **dust**: Disintegrate
98
109
  - **edges**: EdgeGlow
99
110
  - **eye**: EyeBlink
111
+ - **fall**: Snapshot
100
112
  - **flame**: FlameWipe
101
- - **flicker**: GlitchFlicker
102
113
  - **fluid**: InkBleed
103
114
  - **fog**: SmokeDissolve
104
115
  - **gallery**: Gallery
105
116
  - **glint**: LightWipe
106
117
  - **grayscale**: FadeGrayscale
107
118
  - **heart**: HeartWipe
119
+ - **heat**: HeatHaze
120
+ - **hologram**: Hologram
108
121
  - **hue**: HsvFade
109
122
  - **impact**: CameraShake
110
123
  - **ink**: InkBleed
111
124
  - **light-leak**: FilmBurn
112
125
  - **lines**: Crosshatch
113
- - **liquid**: GooeyWipe
114
126
  - **mask**: LumaWipe
115
127
  - **morph**: Morph
116
128
  - **motion**: LissajousTiles
117
129
  - **motion-graphics**: ColorPanelWipe
118
130
  - **panels**: ColorPanelWipe
131
+ - **paper**: Crumple
119
132
  - **particles**: Disintegrate
120
133
  - **perspective**: Gallery
121
- - **photo**: PhotoDevelop
122
134
  - **pinwheel**: Pinwheel
135
+ - **plasma**: PlasmaDissolve
123
136
  - **plus**: PlusWipe
124
137
  - **polar**: FlowerWipe
125
138
  - **pop**: PopIn
139
+ - **random**: CellDissolve
126
140
  - **rays**: LightRays
127
141
  - **refraction**: Refraction
128
- - **scale**: PopIn
142
+ - **rings**: RingsWipe
143
+ - **rotation**: Vortex
144
+ - **sci-fi**: Hologram
129
145
  - **shake**: CameraShake
130
- - **shatter**: Shatter
146
+ - **shimmer**: HeatHaze
147
+ - **shrink**: Crumple
131
148
  - **slanted**: ColorPanelWipe
132
149
  - **smear**: PixelStretch
133
150
  - **smoke**: SmokeDissolve
151
+ - **sphere**: Sphere
134
152
  - **splash**: SplatterWipe
135
153
  - **squash**: StretchSlide
136
154
  - **squeeze**: Squeeze
@@ -143,9 +161,10 @@
143
161
  - **swipe**: CardSwipe
144
162
  - **tape**: VhsTracking
145
163
  - **text**: Ascii
146
- - **water**: WaterDrop
164
+ - **voronoi**: CellDissolve
147
165
  - **wedge**: WedgeWipe
148
166
  - **wind**: Disintegrate
167
+ - **wrap**: Sphere
149
168
 
150
169
  ## Transitions
151
170
 
@@ -153,9 +172,11 @@
153
172
 
154
173
  - `Accordion`: 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. Params: pleats (int = 4), direction (vec2 = vec2(-1, 0)), shading (float = 0.7), perspective (float = 1.5), backColor (vec4 = vec4(0, 0, 0, 1))
155
174
  - `ApertureWipe`: A camera aperture opens its turning blades to reveal the incoming image. Params: blades (int = 6), rotation (float = 60), shadow (float = 0.5)
175
+ - `ArrowWipe`: 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. Params: direction (vec2 = vec2(1, 0)), notch (float = 0.4), width (float = 80), count (int = 1), origin (bool = false), smoothness (float = 0.004)
156
176
  - `Ascii`: 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. Params: cellSize (float = 0.04), colored (bool = true), ink (vec4 = vec4(0.3, 1, 0.45, 1)), background (vec4 = vec4(0, 0, 0, 1))
157
177
  - `BlockCover`: 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. Params: blocks (int = 16), color (vec4 = vec4(0.95, 0.32, 0.26, 1)), pop (float = 0.5), smoothness (float = 0.03)
158
178
  - `BlockDissolve`: The incoming image appears in small random blocks. Params: blocksize (float = 0.02)
179
+ - `BlockSlide`: 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. Params: grid (ivec2 = ivec2(5, 4)), direction (vec2 = vec2(1, 0)), stagger (float = 0.6), zoom (float = 0.35), background (vec4 = vec4(0, 0, 0, 1))
159
180
  - `BloomDissolve`: 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. Params: spread (float = 0.25), threshold (float = 0.6), intensity (float = 1.5), tint (vec3 = vec3(1, 0.9, 0.75))
160
181
  - `BokehDissolve`: 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. Params: radius (float = 0.05), blades (int = 0), threshold (float = 0.7), intensity (float = 1)
161
182
  - `BookFlip`: The outgoing image turns like a book page from right to left, revealing the incoming one
@@ -169,6 +190,7 @@
169
190
  - `ButterflyWaveScrawler`: Wavy, color-separated ripples scramble the outgoing image into the incoming one. Params: amplitude (float = 1), waves (float = 30), colorSeparation (float = 0.3)
170
191
  - `CameraShake`: 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. Params: strength (float = 0.5), jolts (float = 12), blur (float = 0.5), split (float = 0.5)
171
192
  - `CardSwipe`: 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. Params: direction (vec2 = vec2(1, 0.25)), rotation (float = 0.5), depth (float = 0.15), backColor (vec4 = vec4(0.06, 0.06, 0.07, 1))
193
+ - `CellDissolve`: 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. Params: cells (float = 8), smoothness (float = 0.1), border (float = 0.006), borderColor (vec4 = vec4(1, 0.95, 0.8, 1)), seed (float = 0)
172
194
  - `Chessboard`: A chessboard pattern of squares reveals the incoming image. Params: grid_num (float = 10)
173
195
  - `CircleIris`: The outgoing image closes into a circle over a background color, then the incoming one opens from it. Params: center (vec2 = vec2(0.5, 0.5)), backColor (vec4 = vec4(0.1, 0.1, 0.1, 1))
174
196
  - `CircleOpen`: A soft-edged circle opens from the center to reveal the incoming image. Params: smoothness (float = 0.3), opening (bool = true)
@@ -183,6 +205,7 @@
183
205
  - `CrossWarp`: The outgoing image zooms in while the incoming one zooms out into place, sweeping from right to left
184
206
  - `CrossZoom`: A crossfade through a strong zoom blur. Params: strength (float = 0.4)
185
207
  - `Crosshatch`: The incoming image appears through a crosshatch of lines spreading from the center. Params: center (vec2 = vec2(0.5, 0.5)), threshold (float = 3), fadeEdge (float = 0.1)
208
+ - `Crumple`: The outgoing image crumples into a creased paper ball, shaded along its folds, which is then tossed away to reveal the incoming image. Params: creases (int = 16), size (float = 0.2), direction (vec2 = vec2(1, 0.4)), paper (vec4 = vec4(0.96, 0.95, 0.91, 1)), shadow (vec4 = vec4(0, 0, 0, 0.45))
186
209
  - `Cube`: The two images are faces of a rotating 3D cube, with a floor reflection. Params: persp (float = 0.7), unzoom (float = 0.3), reflection (float = 0.4), floating (float = 3)
187
210
  - `Curtains`: The outgoing image parts in the middle like stage curtains, gathering into shaded folds as it is pulled to the sides. Params: folds (float = 7), shading (float = 0.7), bunch (float = 0.12), sway (float = 0.4)
188
211
  - `CurvedWipe`: 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. Params: direction (vec2 = vec2(0, 1)), curvature (float = 0.6), smoothness (float = 0.02), shadow (vec4 = vec4(0, 0, 0, 0.4))
@@ -226,7 +249,9 @@
226
249
  - `GridFlip`: The image splits into a grid of tiles that flip one by one to the incoming image. Params: size (ivec2 = ivec2(4, 4)), pause (float = 0.1), dividerWidth (float = 0.05), bgcolor (vec4 = vec4(0, 0, 0, 1)), randomness (float = 0.1)
227
250
  - `Halftone`: The image breaks into printed halftone dots whose size follows its shades, the dots reshape into the incoming image, then merge back into it. Params: dots (float = 28), angle (float = 45), paper (vec4 = vec4(1, 1, 1, 1))
228
251
  - `HeartWipe`: A heart shape grows from the center to reveal the incoming image
252
+ - `HeatHaze`: 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. Params: strength (float = 0.04), scale (float = 6), speed (float = 2)
229
253
  - `Hexagonalize`: Both images turn into hexagons, crossfade, then sharpen again. Params: steps (int = 50), horizontalHexagons (float = 20)
254
+ - `Hologram`: 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. Params: tint (vec3 = vec3(0.2, 0.75, 1)), background (vec4 = vec4(0, 0.02, 0.05, 1)), scanlines (float = 150), jitter (float = 0.04), flicker (float = 0.6)
230
255
  - `Honeycomb`: The image splits into hexagons that spin and shrink away in a wave from the center, uncovering the incoming image. Params: size (float = 6)
231
256
  - `HorizontalClose`: The incoming image closes in from the top and bottom edges toward the middle
232
257
  - `HorizontalOpen`: The incoming image opens from a line in the middle toward the top and bottom edges
@@ -241,6 +266,7 @@
241
266
  - `LightStreaks`: 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. Params: reach (float = 0.6), threshold (float = 0.7), intensity (float = 1.5), tint (vec3 = vec3(0.45, 0.7, 1)), blur (float = 0.1), vertical (bool = false)
242
267
  - `LightWipe`: 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. Params: direction (vec2 = vec2(1, -0.35)), width (float = 0.04), intensity (float = 1.2), color (vec3 = vec3(1, 0.86, 0.66))
243
268
  - `LinearBlur`: A crossfade through a blur. Params: intensity (float = 0.1)
269
+ - `LiquidFill`: 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. Params: direction (vec2 = vec2(0, 1)), amplitude (float = 0.06), waves (float = 1.5), highlight (vec4 = vec4(1, 1, 1, 0.8)), refraction (float = 0.03), bubbles (float = 0.5)
244
270
  - `LissajousTiles`: 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. Params: speed (float = 0.5), freq (vec2 = vec2(2, 3)), offset (float = 2), zoom (float = 0.8), fade (float = 3)
245
271
  - `LumaWipe`: A wipe that follows the brightness of a grayscale mask (the luma texture). Extra textures: luma
246
272
  - `LuminanceMelt`: The outgoing image melts away in noisy vertical streaks, depending on its brightness. Params: direction (bool = true), l_threshold (float = 0.8), above (bool = false)
@@ -257,6 +283,7 @@
257
283
  - `Pinwheel`: A spinning pinwheel reveals the incoming image. Params: speed (float = 2)
258
284
  - `PixelStretch`: 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. Params: direction (vec2 = vec2(1, 0)), stretch (float = 0.45), chroma (float = 0.5), softness (float = 0.03), jitter (float = 0.5)
259
285
  - `Pixelize`: Both images pixelate, crossfade, then sharpen again. Params: squaresMin (ivec2 = ivec2(20, 20)), steps (int = 50)
286
+ - `PlasmaDissolve`: 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. Params: scale (float = 3), smoothness (float = 0.1), flow (float = 1), edgeColor (vec3 = vec3(1, 0.45, 0.9)), edgeStrength (float = 0.6)
260
287
  - `PlusWipe`: A plus-shaped cross grows from the center and widens its arms until the incoming image fills the frame. Params: smoothness (float = 0.01), reverse (bool = false)
261
288
  - `PolkaDotsCurtain`: The incoming image appears through growing polka dots. Params: dots (float = 20), center (vec2 = vec2(0, 0))
262
289
  - `PopIn`: 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. Params: center (vec2 = vec2(0.5, 0.5)), bounce (float = 1), corner (float = 0.12), shadow (float = 0.5)
@@ -269,11 +296,13 @@
269
296
  - `RectangleIris`: The outgoing image shrinks into a small rectangle over a background color, then the incoming one grows from it. Params: bgcolor (vec4 = vec4(0, 0, 0, 1))
270
297
  - `Refraction`: 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. Params: strength (float = 0.15), scale (float = 2.5), dispersion (float = 0.5), brightness (float = 1)
271
298
  - `Revolve`: The outgoing image swirls and zooms with motion blur into the incoming one. Params: center (vec2 = vec2(0.46, 0.52)), direction (float = -1), maxRotation (float = 1.95), peakZoom (float = 2.22), swirl (float = 2.85), barrel (float = 0.38), motionBlur (float = 1), switchStart (float = 0.3), switchEnd (float = 0.5), shadow (float = 0.16)
299
+ - `RingsWipe`: 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. Params: count (int = 6), center (vec2 = vec2(0.5, 0.5)), stagger (float = 0.5), radial (bool = false), borderWidth (float = 0.008), borderColor (vec4 = vec4(1, 1, 1, 1)), smoothness (float = 0.004)
272
300
  - `Ripple`: Ripples spread from the center while crossfading. Params: amplitude (float = 100), speed (float = 50)
273
301
  - `Rolls`: The outgoing image rolls away around a corner, revealing the incoming one. Params: type (int = 0), RotDown (bool = false)
274
302
  - `RotateFade`: The images spin around the center while crossfading
275
303
  - `RotateScaleFade`: The outgoing image spins and zooms while fading to the incoming one, over a background color. Params: center (vec2 = vec2(0.5, 0.5)), rotations (float = 1), scale (float = 8), backColor (vec4 = vec4(0.15, 0.15, 0.15, 1))
276
304
  - `RotateScaleVanish`: The outgoing image spins and shrinks away over the incoming one. Params: FadeInSecond (bool = true), ReverseEffect (bool = false), ReverseRotation (bool = false)
305
+ - `SawtoothWipe`: 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. Params: direction (vec2 = vec2(1, 0)), teeth (int = 8), depth (float = 1), jaws (bool = false), smoothness (float = 0.004)
277
306
  - `ScaleIn`: The incoming image scales in from the center while fading in
278
307
  - `Shatter`: The outgoing image shatters into fragments that fly away
279
308
  - `Shred`: The outgoing image is cut into paper strips that drop away at uneven speeds, tilting as they fall, revealing the incoming image. Params: strips (int = 20), stagger (float = 0.4), tilt (float = 0.1), shadow (float = 0.5)
@@ -283,6 +312,10 @@
283
312
  - `SlideAwayRight`: The outgoing image slides to the right, uncovering a crossfade to the incoming one
284
313
  - `Slides`: The outgoing image slides out, or the incoming one slides in, toward an edge, a corner or the center. Params: type (int = 0), In (bool = false)
285
314
  - `SmokeDissolve`: 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. Params: direction (vec2 = vec2(0.5, 0.1)), scale (float = 2.5), spread (float = 0.4), softness (float = 0.5), color (vec4 = vec4(0.86, 0.86, 0.88, 1))
315
+ - `SnakeBlockWipe`: 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. Params: grid (ivec2 = ivec2(8, 6)), vertical (bool = false), smoothness (float = 0.5)
316
+ - `Snapshot`: 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. Params: tilt (float = 0.35), border (float = 0.04), flash (float = 0.85), shadow (float = 0.45), borderColor (vec4 = vec4(0.96, 0.94, 0.89, 1))
317
+ - `Sphere`: The outgoing image wraps itself onto a shaded ball that shrinks and rolls away, revealing the incoming image under its shadow. Params: direction (vec2 = vec2(1, 0)), size (float = 0.3), shading (float = 0.6), shadow (float = 0.5)
318
+ - `SpiralBlockWipe`: Square blocks switch to the incoming image one after another along a rectangular spiral, from the border inward or from the center outward. Params: grid (ivec2 = ivec2(8, 6)), inward (bool = true), clockwise (bool = true), smoothness (float = 0.05)
286
319
  - `SpiralWipe`: A spiral arm winds out from the center and widens to reveal the incoming image. Params: turns (float = 3), smoothness (float = 0.05), clockwise (bool = true)
287
320
  - `SplatterWipe`: 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. Params: splats (float = 4), spikiness (float = 0.6), droplets (float = 0.6), drips (float = 0.5), rim (float = 0.5), seed (float = 3)
288
321
  - `SplitSlideInHorizontal`: The incoming image slides in as two halves moving horizontally in opposite directions. Params: reverse (bool = false)
@@ -313,6 +346,7 @@
313
346
  - `VerticalClose`: The incoming image closes in from the left and right edges toward the middle
314
347
  - `VerticalOpen`: The incoming image opens from a line in the middle toward the left and right edges
315
348
  - `VhsTracking`: 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. Params: bands (int = 3), noise (float = 0.6), bleed (float = 0.5), wobble (float = 0.5)
349
+ - `Vortex`: 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. Params: grid (int = 24), center (vec2 = vec2(0.5, 0.5)), spin (float = 1), randomness (float = 0.2)
316
350
  - `WaterDrop`: Ripples spread from the center like a drop falling into water, crossfading to the incoming image. Params: amplitude (float = 30), speed (float = 30)
317
351
  - `WedgeWipe`: Two hands sweep away from each other around the center, opening a widening wedge that reveals the incoming image. Params: angle (float = 0), smoothness (float = 0.01), center (vec2 = vec2(0.5, 0.5))
318
352
  - `WhipPan`: A fast camera pan that streaks both images with motion blur, the incoming one arriving from the opposite side. Params: direction (vec2 = vec2(-1, 0)), blur (float = 0.4)
@@ -0,0 +1,111 @@
1
+ // ArrowWipe — generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/ArrowWipe.glsl
2
+ // Author: gre
3
+ // License: MIT
4
+ // 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
5
+
6
+ uniform shader _from;
7
+ uniform shader _to;
8
+ uniform float2 _resolution;
9
+ uniform float progress;
10
+ uniform float ratio;
11
+
12
+ vec4 getFromColor(vec2 uv) { return vec4(unpremul(_from.eval(vec2(uv.x, 1.0 - uv.y) * _resolution))); }
13
+ vec4 getToColor(vec2 uv) { return vec4(unpremul(_to.eval(vec2(uv.x, 1.0 - uv.y) * _resolution))); }
14
+
15
+ uniform vec2 direction;
16
+
17
+ uniform float notch;
18
+
19
+ uniform float width;
20
+
21
+ uniform int count;
22
+
23
+ uniform int origin;
24
+
25
+ uniform float smoothness;
26
+
27
+ float arrow(vec2 q, float tip, float back, vec2 tipN, vec2 notchN) {
28
+ float front = dot(vec2(q.x - tip, q.y), tipN);
29
+ float rear = dot(vec2(back - q.x, -q.y), notchN);
30
+ return max(front, rear);
31
+ }
32
+
33
+ vec4 transition(vec2 uv) {
34
+ vec2 dir = length(direction) > 0.0 ? normalize(direction) : vec2(1.0, 0.0);
35
+ vec2 across = vec2(-dir.y, dir.x);
36
+ vec2 p = (uv - 0.5) * vec2(ratio, 1.0);
37
+ vec2 q = vec2(dot(p, dir), abs(dot(p, across)));
38
+
39
+ float s = max(smoothness, 0.001);
40
+ float n = clamp(notch, 0.0, 0.9);
41
+ float h = radians(0.5 * clamp(width, 20.0, 160.0));
42
+ float cot = cos(h) / sin(h);
43
+
44
+ vec2 tipN = vec2(sin(h), cos(h));
45
+ float notchLen = length(vec2(1.0, n * cot));
46
+ vec2 notchN = vec2(1.0, n * cot) / notchLen;
47
+
48
+ float tipPad = s / sin(h);
49
+
50
+
51
+ vec2 c1 = vec2(0.5 * ratio, 0.5);
52
+ vec2 c2 = vec2(0.5 * ratio, -0.5);
53
+ vec2 k1 = vec2(abs(dot(c1, dir)), abs(dot(c1, across)));
54
+ vec2 k2 = vec2(abs(dot(c2, dir)), abs(dot(c2, across)));
55
+
56
+ float e = max(k1.x, k2.x);
57
+ float r = 0.5 / max(abs(dir.x) / ratio, abs(dir.y));
58
+
59
+
60
+ float tipMin = max(k1.x + k1.y * cot, k2.x + k2.y * cot) + tipPad;
61
+ float notchMax = min(min(n * cot * k1.y - k1.x, n * cot * k2.y - k2.x), -r) - s * notchLen;
62
+
63
+
64
+
65
+ float body = 0.5 * (1.0 - n);
66
+
67
+ float cover = max(tipMin, -notchMax) / body;
68
+
69
+ float t = progress;
70
+ float o;
71
+ float l;
72
+ if ((origin != 0)) {
73
+ o = 0.0;
74
+ l = cover * t * (0.4 + 0.6 * t);
75
+ } else {
76
+
77
+ float l0 = 0.92 * min(1.0, ratio) / max(1.0, 2.0 * tan(h));
78
+
79
+ float o0 = -e - 2.0 * tipPad - body * l0;
80
+
81
+ float u = 1.0 - clamp(t / 0.65, 0.0, 1.0);
82
+ float fly = 1.0 - u * u * u;
83
+
84
+ float grow = clamp((t - 0.3) / 0.7, 0.0, 1.0);
85
+ o = mix(o0, 0.0, fly);
86
+ l = mix(l0, cover, grow * grow * (2.0 - grow));
87
+ }
88
+
89
+
90
+ float gap = (1.0 - n) * 1.35;
91
+ float d = arrow(q, o + body * l, o - body * l, tipN, notchN);
92
+ for (int i = 1; i < 3; i++) {
93
+ if (i < count) {
94
+ float back = o - float(i) * gap * l;
95
+ d = min(d, arrow(q, back + body * l, back - body * l, tipN, notchN));
96
+ }
97
+ }
98
+
99
+ float m = 1.0 - smoothstep(-s, s, d + 2.0 * s * (1.0 - t));
100
+
101
+ vec4 a = getFromColor(uv);
102
+ vec4 b = getToColor(uv);
103
+ vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);
104
+ return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);
105
+ }
106
+
107
+ half4 main(float2 _coord) {
108
+ vec2 _uv = _coord / _resolution;
109
+ vec4 _c = clamp(transition(vec2(_uv.x, 1.0 - _uv.y)), 0.0, 1.0);
110
+ return half4(_c.rgb * _c.a, _c.a);
111
+ }
@@ -0,0 +1,99 @@
1
+ // BlockSlide — generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/BlockSlide.glsl
2
+ // Author: gre
3
+ // License: MIT
4
+ // 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
5
+
6
+ uniform shader _from;
7
+ uniform shader _to;
8
+ uniform float2 _resolution;
9
+ uniform float progress;
10
+ uniform float ratio;
11
+
12
+ vec4 getFromColor(vec2 uv) { return vec4(unpremul(_from.eval(vec2(uv.x, 1.0 - uv.y) * _resolution))); }
13
+ vec4 getToColor(vec2 uv) { return vec4(unpremul(_to.eval(vec2(uv.x, 1.0 - uv.y) * _resolution))); }
14
+
15
+ uniform ivec2 grid;
16
+
17
+ uniform vec2 direction;
18
+
19
+ uniform float stagger;
20
+
21
+ uniform float zoom;
22
+
23
+ uniform vec4 background;
24
+
25
+ const int MAX_BLOCKS = 40;
26
+
27
+ float hash(vec2 p) {
28
+ vec3 p3 = fract(vec3(p.xyx) * 0.1031);
29
+ p3 += dot(p3, p3.yzx + 33.33);
30
+ return fract((p3.x + p3.y) * p3.z);
31
+ }
32
+
33
+ vec4 transition(vec2 uv) {
34
+ if (progress <= 0.0) return getFromColor(uv);
35
+ if (progress >= 1.0) return getToColor(uv);
36
+
37
+ bool vertical = abs(direction.y) > abs(direction.x);
38
+ bool backward = vertical ? direction.y < 0.0 : direction.x < 0.0;
39
+ vec2 g = max(vec2(grid), 1.0);
40
+
41
+ float a = vertical ? uv.y : uv.x;
42
+ float b = vertical ? uv.x : uv.y;
43
+ if (backward) a = 1.0 - a;
44
+ float n = min(vertical ? g.y : g.x, float(MAX_BLOCKS));
45
+ float strips = vertical ? g.x : g.y;
46
+
47
+ float r = min(floor(b * strips), strips - 1.0);
48
+
49
+ float rowOrder = strips > 1.0 ? (vertical ? r : strips - 1.0 - r) / (strips - 1.0) : 0.0;
50
+ float st = clamp(stagger, 0.0, 0.95);
51
+ float z = clamp(zoom, 0.0, 0.9);
52
+
53
+ float an = a * n;
54
+ float bn = b * strips - r;
55
+
56
+
57
+
58
+
59
+ float rear = clamp((progress - st * mix(rowOrder, 1.0, 0.2)) / (1.0 - st), 0.0, 1.0);
60
+ rear = rear * rear * (3.0 - 2.0 * rear);
61
+
62
+ for (int k = 0; k < MAX_BLOCKS; k++) {
63
+ float i = float(k);
64
+ if (i >= n) break;
65
+
66
+ float order = mix(rowOrder, n > 1.0 ? (n - 1.0 - i) / (n - 1.0) : 0.0, 0.2);
67
+ float p = clamp((progress - st * order) / (1.0 - st), 0.0, 1.0);
68
+ p = p * p * (3.0 - 2.0 * p);
69
+ float pin = max(0.0, 1.0 - (1.0 - rear) * (1.0 + (n - 1.0 - i) / n));
70
+
71
+ float zi = hash(vec2(i, r) + 3.7) < 0.5 ? z : 0.0;
72
+
73
+
74
+
75
+ float sFrom = 1.0 - zi * p * p;
76
+ float sTo = 1.0 - zi * (1.0 - pin) * (1.0 - pin);
77
+ vec4 l = vec4(
78
+ (an - i - p * n - 0.5 * (1.0 - sFrom)) / sFrom,
79
+ (bn - 0.5 * (1.0 - sFrom)) / sFrom,
80
+ (an - i - (pin - 1.0) * n - 0.5 * (1.0 - sTo)) / sTo,
81
+ (bn - 0.5 * (1.0 - sTo)) / sTo);
82
+ bool inFrom = all(greaterThanEqual(l.xy, vec2(0.0))) && all(lessThan(l.xy, vec2(1.0)));
83
+ bool inTo = all(greaterThanEqual(l.zw, vec2(0.0))) && all(lessThan(l.zw, vec2(1.0)));
84
+ if (inFrom || inTo) {
85
+
86
+ vec2 q = (vec2(i, r) + (inTo ? l.zw : l.xy)) / vec2(n, strips);
87
+ if (backward) q.x = 1.0 - q.x;
88
+ q = vertical ? q.yx : q;
89
+ return inTo ? getToColor(q) : getFromColor(q);
90
+ }
91
+ }
92
+ return background;
93
+ }
94
+
95
+ half4 main(float2 _coord) {
96
+ vec2 _uv = _coord / _resolution;
97
+ vec4 _c = clamp(transition(vec2(_uv.x, 1.0 - _uv.y)), 0.0, 1.0);
98
+ return half4(_c.rgb * _c.a, _c.a);
99
+ }
@@ -0,0 +1,103 @@
1
+ // CellDissolve — generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/CellDissolve.glsl
2
+ // Author: gre
3
+ // License: MIT
4
+ // 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
5
+
6
+ uniform shader _from;
7
+ uniform shader _to;
8
+ uniform float2 _resolution;
9
+ uniform float progress;
10
+ uniform float ratio;
11
+
12
+ vec4 getFromColor(vec2 uv) { return vec4(unpremul(_from.eval(vec2(uv.x, 1.0 - uv.y) * _resolution))); }
13
+ vec4 getToColor(vec2 uv) { return vec4(unpremul(_to.eval(vec2(uv.x, 1.0 - uv.y) * _resolution))); }
14
+
15
+ uniform float cells;
16
+
17
+ uniform float smoothness;
18
+
19
+ uniform float border;
20
+
21
+ uniform vec4 borderColor;
22
+
23
+ uniform float seed;
24
+
25
+ const float AA = 0.0015;
26
+
27
+ vec2 hash22(vec2 p) {
28
+ vec3 p3 = fract(vec3(p.xyx) * vec3(0.1031, 0.1030, 0.0973));
29
+ p3 += dot(p3, p3.yzx + 33.33);
30
+ return fract((p3.xx + p3.yz) * p3.zy);
31
+ }
32
+
33
+ vec4 transition(vec2 uv) {
34
+ vec4 a = getFromColor(uv);
35
+ vec4 b = getToColor(uv);
36
+ if (progress <= 0.0) return a;
37
+ if (progress >= 1.0) return b;
38
+
39
+ float n = max(cells, 1.0);
40
+
41
+ vec2 p = uv * vec2(ratio, 1.0) * n;
42
+ vec2 i = floor(p);
43
+ vec2 f = p - i;
44
+ vec2 offset = vec2(17.31, 41.97) * seed;
45
+
46
+
47
+ vec2 mg = vec2(0.0);
48
+ vec2 mr = vec2(0.0);
49
+ float md = 8.0;
50
+ for (int y = -1; y <= 1; y++) {
51
+ for (int x = -1; x <= 1; x++) {
52
+ vec2 g = vec2(float(x), float(y));
53
+ vec2 r = g + hash22(i + g + offset) - f;
54
+ float d = dot(r, r);
55
+ if (d < md) {
56
+ md = d;
57
+ mr = r;
58
+ mg = g;
59
+ }
60
+ }
61
+ }
62
+
63
+
64
+
65
+ float edge = 8.0;
66
+ for (int y = -2; y <= 2; y++) {
67
+ for (int x = -2; x <= 2; x++) {
68
+ vec2 g = mg + vec2(float(x), float(y));
69
+ vec2 r = g + hash22(i + g + offset) - f;
70
+ vec2 dr = r - mr;
71
+ if (dot(dr, dr) > 0.00001) {
72
+ edge = min(edge, dot(0.5 * (mr + r), normalize(dr)));
73
+ }
74
+ }
75
+ }
76
+
77
+ edge /= n;
78
+
79
+
80
+ float h = hash22(i + mg + offset + 97.13).x;
81
+ float w = clamp(smoothness, 0.0, 1.0);
82
+ float start = h * (1.0 - w);
83
+ float m = w > 0.0 ? smoothstep(start, start + w, progress) : step(start, progress);
84
+
85
+
86
+ vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);
87
+
88
+
89
+ float open = smoothstep(0.0, 0.2, progress) * (1.0 - smoothstep(0.8, 1.0, progress));
90
+ float bw = max(border, 0.0) * open;
91
+ if (bw > 0.0) {
92
+ float l = 1.0 - smoothstep(0.5 * bw - AA, 0.5 * bw + AA, edge);
93
+ float ba = borderColor.a * l * min(1.0, bw / (2.0 * AA));
94
+ c = vec4(borderColor.rgb * ba, ba) + c * (1.0 - ba);
95
+ }
96
+ return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);
97
+ }
98
+
99
+ half4 main(float2 _coord) {
100
+ vec2 _uv = _coord / _resolution;
101
+ vec4 _c = clamp(transition(vec2(_uv.x, 1.0 - _uv.y)), 0.0, 1.0);
102
+ return half4(_c.rgb * _c.a, _c.a);
103
+ }