gl-transitions 2.5.0 → 3.0.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 (107) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +16 -1
  3. package/compatibility.json +56 -170
  4. package/gl-transitions.js +1 -1
  5. package/gl-transitions.json +1 -1
  6. package/glsl3/BandWipe.glsl +67 -0
  7. package/glsl3/BowTie.glsl +1 -1
  8. package/glsl3/DirectionalWipe.glsl +1 -1
  9. package/glsl3/GlintDissolve.glsl +125 -0
  10. package/glsl3/InsetWipe.glsl +58 -0
  11. package/glsl3/LightningFlash.glsl +200 -0
  12. package/glsl3/WarpSpeed.glsl +120 -0
  13. package/index.js +1 -1
  14. package/layouts.json +191 -198
  15. package/llms-full.txt +452 -515
  16. package/llms.txt +197 -204
  17. package/msl/BandWipe.metal +353 -0
  18. package/msl/BowTie.metal +1 -1
  19. package/msl/DirectionalWipe.metal +1 -1
  20. package/msl/GlintDissolve.metal +558 -0
  21. package/msl/InsetWipe.metal +232 -0
  22. package/msl/LightningFlash.metal +1038 -0
  23. package/msl/WarpSpeed.metal +549 -0
  24. package/package.json +1 -1
  25. package/skills/gl-transitions/references/catalog.md +36 -37
  26. package/sksl/BandWipe.sksl +77 -0
  27. package/sksl/BowTie.sksl +1 -1
  28. package/sksl/DirectionalWipe.sksl +1 -1
  29. package/sksl/GlintDissolve.sksl +136 -0
  30. package/sksl/InsetWipe.sksl +70 -0
  31. package/sksl/LightningFlash.sksl +202 -0
  32. package/sksl/WarpSpeed.sksl +131 -0
  33. package/sksl/index.js +1 -1
  34. package/transitions/BandWipe.glsl +66 -0
  35. package/transitions/BowTie.glsl +1 -1
  36. package/transitions/DirectionalWipe.glsl +1 -1
  37. package/transitions/GlintDissolve.glsl +124 -0
  38. package/transitions/InsetWipe.glsl +57 -0
  39. package/transitions/LightningFlash.glsl +199 -0
  40. package/transitions/WarpSpeed.glsl +119 -0
  41. package/wgsl/BandWipe.wgsl +319 -0
  42. package/wgsl/BowTie.wgsl +1 -1
  43. package/wgsl/DirectionalWipe.wgsl +1 -1
  44. package/wgsl/GlintDissolve.wgsl +519 -0
  45. package/wgsl/InsetWipe.wgsl +200 -0
  46. package/wgsl/LightningFlash.wgsl +964 -0
  47. package/wgsl/WarpSpeed.wgsl +497 -0
  48. package/glsl3/BlockDissolve.glsl +0 -16
  49. package/glsl3/BowTieVertical.glsl +0 -117
  50. package/glsl3/Box.glsl +0 -33
  51. package/glsl3/LinearBlur.glsl +0 -30
  52. package/glsl3/MosaicBlend.glsl +0 -21
  53. package/glsl3/MosaicFade.glsl +0 -20
  54. package/glsl3/RotateFade.glsl +0 -22
  55. package/glsl3/ScaleIn.glsl +0 -18
  56. package/glsl3/WipeDown.glsl +0 -12
  57. package/glsl3/WipeLeft.glsl +0 -12
  58. package/glsl3/WipeRight.glsl +0 -12
  59. package/glsl3/WipeUp.glsl +0 -12
  60. package/msl/BlockDissolve.metal +0 -108
  61. package/msl/BowTieVertical.metal +0 -375
  62. package/msl/Box.metal +0 -204
  63. package/msl/LinearBlur.metal +0 -169
  64. package/msl/MosaicBlend.metal +0 -136
  65. package/msl/MosaicFade.metal +0 -137
  66. package/msl/RotateFade.metal +0 -116
  67. package/msl/ScaleIn.metal +0 -111
  68. package/msl/WipeDown.metal +0 -105
  69. package/msl/WipeLeft.metal +0 -105
  70. package/msl/WipeRight.metal +0 -105
  71. package/msl/WipeUp.metal +0 -105
  72. package/sksl/BlockDissolve.sksl +0 -29
  73. package/sksl/BowTieVertical.sksl +0 -130
  74. package/sksl/Box.sksl +0 -47
  75. package/sksl/LinearBlur.sksl +0 -44
  76. package/sksl/MosaicBlend.sksl +0 -34
  77. package/sksl/MosaicFade.sksl +0 -33
  78. package/sksl/RotateFade.sksl +0 -34
  79. package/sksl/ScaleIn.sksl +0 -32
  80. package/sksl/WipeDown.sksl +0 -26
  81. package/sksl/WipeLeft.sksl +0 -26
  82. package/sksl/WipeRight.sksl +0 -26
  83. package/sksl/WipeUp.sksl +0 -26
  84. package/transitions/BlockDissolve.glsl +0 -15
  85. package/transitions/BowTieVertical.glsl +0 -116
  86. package/transitions/Box.glsl +0 -32
  87. package/transitions/LinearBlur.glsl +0 -29
  88. package/transitions/MosaicBlend.glsl +0 -20
  89. package/transitions/MosaicFade.glsl +0 -19
  90. package/transitions/RotateFade.glsl +0 -21
  91. package/transitions/ScaleIn.glsl +0 -17
  92. package/transitions/WipeDown.glsl +0 -11
  93. package/transitions/WipeLeft.glsl +0 -11
  94. package/transitions/WipeRight.glsl +0 -11
  95. package/transitions/WipeUp.glsl +0 -11
  96. package/wgsl/BlockDissolve.wgsl +0 -78
  97. package/wgsl/BowTieVertical.wgsl +0 -331
  98. package/wgsl/Box.wgsl +0 -176
  99. package/wgsl/LinearBlur.wgsl +0 -131
  100. package/wgsl/MosaicBlend.wgsl +0 -108
  101. package/wgsl/MosaicFade.wgsl +0 -107
  102. package/wgsl/RotateFade.wgsl +0 -85
  103. package/wgsl/ScaleIn.wgsl +0 -79
  104. package/wgsl/WipeDown.wgsl +0 -77
  105. package/wgsl/WipeLeft.wgsl +0 -77
  106. package/wgsl/WipeRight.wgsl +0 -77
  107. package/wgsl/WipeUp.wgsl +0 -77
@@ -1,61 +1,59 @@
1
- # Catalog (gl-transitions@2.5.0)
1
+ # Catalog (gl-transitions@3.0.0)
2
2
 
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.
3
+ 186 transitions. Generated from gl-transitions.json; full details (parameter hints, authors, source links) in https://cdn.jsdelivr.net/npm/gl-transitions@3.0.0/llms-full.txt.
4
4
 
5
5
  ## By tag
6
6
 
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
7
+ - **wipe**: ApertureWipe, ArrowWipe, BandWipe, BowTie, BowTieHorizontal, BrushWipe, CircleOpen, ClockWipe, ColorPanelWipe, CurvedWipe, DiamondWipe, DirectionalWarp, DirectionalWipe, FlameWipe, FlowerWipe, HeartWipe, HorizontalClose, HorizontalOpen, InsetWipe, LeafWipe, LightWipe, LumaWipe, PlasmaDissolve, PlusWipe, RadialWipe, RingsWipe, SawtoothWipe, SnakeBlockWipe, SpiralBlockWipe, SpiralWipe, SquaresWipe, StarWipe, StaticWipe, TilesWave, UndulatingBurnOut, VerticalClose, VerticalOpen, WedgeWipe, Wind, WindowSlices, ZoomWipeLeft, ZoomWipeRight
10
8
  - **slide**: Accordion, BlockSlide, Bounce, CardSwipe, Comb, Directional, DirectionalEased, DirectionalScaled, Fold, Gallery, LeftRight, SlideAwayRight, Slides, SplitSlideInHorizontal, SplitSlideInOutHorizontal, SplitSlideInOutVertical, SplitSlideInVertical, SplitSlideOutHorizontal, SplitSlideOutVertical, StretchSlide, TangentMotionBlur, TopBottom, WhipPan
9
+ - **zoom**: BlockSlide, CrossWarp, CrossZoom, DirectionalScaled, DreamyZoom, Fisheye, LeftRight, Mosaic, PopIn, RectangleIris, Revolve, RotateScaleFade, RotateScaleVanish, SimpleZoom, SimpleZoomOut, StereoViewer, TopBottom, Tunnel, WarpSpeed, ZoomInCircles, ZoomInOut, ZoomWipeLeft, ZoomWipeRight
10
+ - **blend**: ColorCoords, ColorDistance, CrossZoom, DefocusBlur, DisplacementMap, Dreamy, Fade, FilmDissolve, Fisheye, GlitchBands, GlitchMemories, HeatHaze, Hexagonalize, Kaleidoscope, Morph, MultiplyBlend, Pixelize, Ripple, SlideAwayRight, Swirl, WaterDrop, WindowBlinds
11
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
14
- - **horizontal**: BowTieHorizontal, Comb, CrossWarp, Curtains, Fold, LeftRight, PaperTear, SimpleFlip, SlideAwayRight, SplitSlideInHorizontal, SplitSlideInOutHorizontal, SplitSlideOutHorizontal, Wind, WipeLeft, WipeRight, ZoomWipeLeft, ZoomWipeRight
15
- - **vertical**: Bounce, BowTieVertical, CylinderRoll, FallOver, FilmStrip, Shred, SplitSlideInOutVertical, SplitSlideInVertical, SplitSlideOutVertical, Squeeze, StaticWipe, TopBottom, TvRoll, TvTurnOff, WhipTilt, WipeDown, WipeUp
16
- - **fade**: ColorPhase, ColorWrap, EdgeGlow, Fade, FadeColor, FadeGrayscale, FilmDissolve, FlashFade, HsvFade, MultiplyBlend, Overexposure, PhotoDevelop, RotateScaleFade, ScaleIn, SimpleZoom, SimpleZoomOut
12
+ - **rotate**: ApertureWipe, CardSwipe, Cube, DreamyZoom, FallOver, Honeycomb, Pinwheel, Prisms, Puzzle, Revolve, Rolls, RotateScaleFade, RotateScaleVanish, Snapshot, Swirl, TangentMotionBlur, WhipSpin, WhipTilt
13
+ - **shape**: ApertureWipe, ArrowWipe, BowTie, BowTieHorizontal, CircleIris, DiamondWipe, EyeBlink, FlowerWipe, HeartWipe, InsetWipe, LeafWipe, PlusWipe, RectangleCover, SawtoothWipe, Sphere, SpiralWipe, StarWipe
14
+ - **horizontal**: BandWipe, BowTieHorizontal, Comb, CrossWarp, Curtains, Fold, LeftRight, PaperTear, SimpleFlip, SlideAwayRight, SplitSlideInHorizontal, SplitSlideInOutHorizontal, SplitSlideOutHorizontal, Wind, ZoomWipeLeft, ZoomWipeRight
17
15
  - **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
16
+ - **fade**: ColorPhase, ColorWrap, EdgeGlow, Fade, FadeColor, FadeGrayscale, FilmDissolve, FlashFade, HsvFade, MultiplyBlend, Overexposure, PhotoDevelop, RotateScaleFade, SimpleZoom, SimpleZoomOut
19
17
  - **retro**: Ascii, DitherDissolve, DoomMelt, FilmStrip, Halftone, LissajousTiles, PhotoDevelop, StaticFade, StereoViewer, TvLostSignal, TvRoll, TvStatic, TvTurnOff, VhsTracking
18
+ - **vertical**: Bounce, CylinderRoll, FallOver, FilmStrip, Shred, SplitSlideInOutVertical, SplitSlideInVertical, SplitSlideOutVertical, Squeeze, StaticWipe, TopBottom, TvRoll, TvTurnOff, WhipTilt
19
+ - **noise**: BurnThrough, Crosshatch, HeatHaze, 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
+ - **light**: BloomDissolve, BokehDissolve, FilmDissolve, GlintDissolve, LensFlare, LightRays, LightStreaks, LightWipe, LightningFlash, Overexposure, WarpSpeed
21
22
  - **color**: BlockCover, ColorDistance, ColorPanelWipe, ColorPhase, ColorWrap, FadeColor, FadeGrayscale, FlashFade, HsvFade, PhotoDevelop
22
- - **dissolve**: BlockDissolve, BloomDissolve, BokehDissolve, CellDissolve, DitherDissolve, FilmDissolve, GlowDissolve, NoiseDissolve, PerlinDissolve, RandomSquares
23
+ - **dissolve**: BloomDissolve, BokehDissolve, CellDissolve, DitherDissolve, FilmDissolve, GlintDissolve, GlowDissolve, NoiseDissolve, PerlinDissolve, RandomSquares
23
24
  - **distort**: ButterflyWaveScrawler, ColorCoords, CrazyParametricFun, DisplacementMap, Fisheye, FlyEye, HeatHaze, Kaleidoscope, Morph, PowerKaleido
25
+ - **radial**: ClockWipe, Honeycomb, LightRays, Pinwheel, RadialWipe, RingsWipe, SpiralWipe, Tunnel, WarpSpeed, WedgeWipe
24
26
  - **chromatic**: ButterflyWaveScrawler, CameraShake, CylinderRoll, FlyEye, GlitchFlicker, GlitchMemories, PixelStretch, Squeeze, StripDatamoshGlitch
25
27
  - **glitch**: ColorWrap, GlitchBands, GlitchDisplace, GlitchFlicker, GlitchMemories, Hologram, StripDatamoshGlitch, TvLostSignal, VhsTracking
26
28
  - **grid**: BlockCover, BlockSlide, Chessboard, GridFlip, LissajousTiles, RandomSquares, SnakeBlockWipe, SpiralBlockWipe, SquaresWipe
27
- - **radial**: ClockWipe, Honeycomb, LightRays, Pinwheel, RadialWipe, RingsWipe, SpiralWipe, Tunnel, WedgeWipe
29
+ - **motion-blur**: CameraShake, CylinderRoll, FilmStrip, LightStreaks, TangentMotionBlur, WarpSpeed, WhipPan, WhipSpin, WhipTilt
28
30
  - **glow**: BloomDissolve, GlowDissolve, LensFlare, LightRays, LightStreaks, LightWipe, PlasmaDissolve, Refraction
29
- - **light**: BloomDissolve, BokehDissolve, FilmDissolve, LensFlare, LightRays, LightStreaks, LightWipe, Overexposure
30
- - **motion-blur**: CameraShake, CylinderRoll, FilmStrip, LightStreaks, TangentMotionBlur, WhipPan, WhipSpin, WhipTilt
31
31
  - **shadow**: Bounce, Crumple, CurvedWipe, PaperTear, PopIn, Puzzle, Shred, Snapshot
32
- - **blur**: BokehDissolve, CrossZoom, DefocusBlur, EyeBlink, LinearBlur, Revolve, ZoomInOut
33
32
  - **organic**: BrushWipe, GooeyWipe, HeatHaze, InkBleed, PlasmaDissolve, SmokeDissolve, SplatterWipe
33
+ - **stripes**: Accordion, BandWipe, Comb, Prisms, Shred, WindowBlinds, WindowSlices
34
34
  - **tiles**: GridFlip, Honeycomb, LissajousTiles, Mosaic, Puzzle, TilesWave, Vortex
35
+ - **blur**: BokehDissolve, CrossZoom, DefocusBlur, EyeBlink, Revolve, ZoomInOut
36
+ - **flash**: DreamyZoom, FlashFade, LightningFlash, Overexposure, Snapshot, TvTurnOff
35
37
  - **iris**: ApertureWipe, CircleIris, CircleOpen, DiamondWipe, RectangleCover, RectangleIris
36
38
  - **pattern**: Ascii, Chessboard, Crosshatch, DitherDissolve, Halftone, PolkaDotsCurtain
37
- - **stripes**: Accordion, Comb, Prisms, Shred, WindowBlinds, WindowSlices
38
- - **blocks**: BlockCover, BlockDissolve, BlockSlide, SnakeBlockWipe, SpiralBlockWipe
39
39
  - **burn**: BurnThrough, FilmBurn, FlameWipe, GlowDissolve, UndulatingBurnOut
40
40
  - **circle**: CircleIris, CircleOpen, RingsWipe, UndulatingBurnOut, ZoomInCircles
41
- - **flash**: DreamyZoom, FlashFade, Overexposure, Snapshot, TvTurnOff
42
- - **pixelate**: DitherDissolve, Hexagonalize, MosaicBlend, MosaicFade, Pixelize
43
41
  - **scanlines**: GlitchFlicker, Hologram, TvLostSignal, TvRoll, VhsTracking
44
42
  - **wave**: ButterflyWaveScrawler, Dreamy, LiquidFill, Ripple, TilesWave
43
+ - **blocks**: BlockCover, BlockSlide, SnakeBlockWipe, SpiralBlockWipe
45
44
  - **clock**: ClockWipe, RadialWipe, RingsWipe, WedgeWipe
46
45
  - **push**: Comb, Directional, DirectionalEased, DirectionalScaled
47
46
  - **reflection**: Cube, Doorway, Gallery, Swap
48
47
  - **squares**: BlockCover, Chessboard, RandomSquares, SquaresWipe
49
48
  - **bounce**: Bounce, PopIn, StretchSlide
50
- - **box**: Box, RectangleCover, RectangleIris
49
+ - **box**: InsetWipe, RectangleCover, RectangleIris
51
50
  - **displace**: ColorCoords, DisplacementMap, GlitchDisplace
52
51
  - **flip**: BookFlip, GridFlip, SimpleFlip
53
52
  - **fold**: Accordion, Curtains, Fold
54
53
  - **lens**: BokehDissolve, Fisheye, FlyEye
55
- - **mosaic**: Mosaic, MosaicBlend, MosaicFade
54
+ - **pixelate**: DitherDissolve, Hexagonalize, Pixelize
56
55
  - **reveal**: GooeyWipe, LiquidFill, SplatterWipe
57
56
  - **roll**: CylinderRoll, Rolls, Sphere
58
- - **spin**: RotateFade, RotateScaleVanish, WhipSpin
59
57
  - **static**: StaticFade, StaticWipe, TvStatic
60
58
  - **warp**: CrossWarp, DirectionalWarp, Tunnel
61
59
  - **cover**: BlockCover, SmokeDissolve
@@ -79,6 +77,7 @@
79
77
  - **scale**: PopIn, Snapshot
80
78
  - **shatter**: Shatter, Vortex
81
79
  - **slices**: Shred, WindowSlices
80
+ - **spin**: RotateScaleVanish, WhipSpin
82
81
  - **spiral**: SpiralBlockWipe, Vortex
83
82
  - **swirl**: Revolve, Swirl
84
83
  - **water**: LiquidFill, WaterDrop
@@ -114,6 +113,7 @@
114
113
  - **fog**: SmokeDissolve
115
114
  - **gallery**: Gallery
116
115
  - **glint**: LightWipe
116
+ - **glints**: GlintDissolve
117
117
  - **grayscale**: FadeGrayscale
118
118
  - **heart**: HeartWipe
119
119
  - **heat**: HeatHaze
@@ -121,10 +121,12 @@
121
121
  - **hue**: HsvFade
122
122
  - **impact**: CameraShake
123
123
  - **ink**: InkBleed
124
+ - **interleave**: BandWipe
124
125
  - **light-leak**: FilmBurn
125
126
  - **lines**: Crosshatch
126
127
  - **mask**: LumaWipe
127
128
  - **morph**: Morph
129
+ - **mosaic**: Mosaic
128
130
  - **motion**: LissajousTiles
129
131
  - **motion-graphics**: ColorPanelWipe
130
132
  - **panels**: ColorPanelWipe
@@ -148,6 +150,8 @@
148
150
  - **slanted**: ColorPanelWipe
149
151
  - **smear**: PixelStretch
150
152
  - **smoke**: SmokeDissolve
153
+ - **space**: WarpSpeed
154
+ - **sparkle**: GlintDissolve
151
155
  - **sphere**: Sphere
152
156
  - **splash**: SplatterWipe
153
157
  - **squash**: StretchSlide
@@ -157,11 +161,13 @@
157
161
  - **streak**: LensFlare
158
162
  - **streaks**: PixelStretch
159
163
  - **stretch**: StretchSlide
164
+ - **strobe**: LightningFlash
160
165
  - **swap**: Swap
161
166
  - **swipe**: CardSwipe
162
167
  - **tape**: VhsTracking
163
168
  - **text**: Ascii
164
169
  - **voronoi**: CellDissolve
170
+ - **weather**: LightningFlash
165
171
  - **wedge**: WedgeWipe
166
172
  - **wind**: Disintegrate
167
173
  - **wrap**: Sphere
@@ -174,17 +180,15 @@
174
180
  - `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
181
  - `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)
176
182
  - `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))
183
+ - `BandWipe`: Alternating bands wipe in from opposite sides together and interleave like fingers, while both images stay still. Params: bands (int = 8), vertical (bool = false), smoothness (float = 0.02), stagger (float = 0.1)
177
184
  - `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)
178
- - `BlockDissolve`: The incoming image appears in small random blocks. Params: blocksize (float = 0.02)
179
185
  - `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))
180
186
  - `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))
181
187
  - `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)
182
188
  - `BookFlip`: The outgoing image turns like a book page from right to left, revealing the incoming one
183
189
  - `Bounce`: The outgoing image drops out of the frame with a few bounces, revealing the incoming one. Params: shadow_colour (vec4 = vec4(0, 0, 0, 0.6)), shadow_height (float = 0.075), bounces (float = 3)
184
- - `BowTie`: A bow-tie wipe with an adjustable shape that can run in reverse. Params: adjust (float = 0.5), reverse (bool = false)
190
+ - `BowTie`: 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. Params: adjust (float = 0.5), reverse (bool = false)
185
191
  - `BowTieHorizontal`: Two triangles grow from the left and right edges into a bow tie that reveals the incoming image
186
- - `BowTieVertical`: Two triangles grow from the top and bottom edges into a bow tie that reveals the incoming image
187
- - `Box`: The outgoing image shrinks into a box, toward the center or a corner, revealing the incoming one. Params: rectIn (int = 1), location (int = 0)
188
192
  - `BrushWipe`: 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. Params: strokes (float = 4), angle (float = -7), roughness (float = 0.6), waviness (float = 0.5)
189
193
  - `BurnThrough`: The outgoing image burns away in noisy, glowing patches. Params: burnColor (vec3 = vec3(1, 0.5, 0))
190
194
  - `ButterflyWaveScrawler`: Wavy, color-separated ripples scramble the outgoing image into the incoming one. Params: amplitude (float = 1), waves (float = 30), colorSeparation (float = 0.3)
@@ -216,7 +220,7 @@
216
220
  - `DirectionalEased`: Like Directional, with an eased movement. Params: direction (vec2 = vec2(0, 1))
217
221
  - `DirectionalScaled`: Like Directional, with both images scaled down while they slide. Params: direction (vec2 = vec2(0, 1)), scale (float = 0.7)
218
222
  - `DirectionalWarp`: A diagonal wipe with a warped, smeared edge. Params: smoothness (float = 0.1), direction (vec2 = vec2(-1, 1))
219
- - `DirectionalWipe`: A soft-edged diagonal wipe. Params: direction (vec2 = vec2(1, -1)), smoothness (float = 0.5)
223
+ - `DirectionalWipe`: A straight wipe in any direction, diagonal and soft-edged by default; a smoothness of 0 gives a hard edge. Params: direction (vec2 = vec2(1, -1)), smoothness (float = 0.5)
220
224
  - `Disintegrate`: 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. Params: particleSize (float = 0.008), direction (vec2 = vec2(1, -0.15)), spread (float = 0.75)
221
225
  - `DisplacementMap`: A crossfade in which a displacement map (an extra grayscale texture) warps both images. Params: strength (float = 0.5). Extra textures: displacementMap
222
226
  - `DitherDissolve`: The incoming image appears through a regular 8x8 ordered dither pattern, like a retro computer screen. Params: dotSize (float = 0.02)
@@ -240,6 +244,7 @@
240
244
  - `FlyEye`: The image breaks into a fly's-eye grid of lenses with color separation. Params: size (float = 0.04), zoom (float = 50), colorSeparation (float = 0.3)
241
245
  - `Fold`: The incoming image unfolds from the left while the outgoing one folds away to the right
242
246
  - `Gallery`: 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. Params: direction (float = 1), tilt (float = 0.6), gap (float = 0.15), zoom (float = 2), reflection (float = 0.3), background (vec4 = vec4(0.07, 0.07, 0.08, 1))
247
+ - `GlintDissolve`: 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. Params: size (float = 0.15), threshold (float = 0.6), intensity (float = 2), diagonals (bool = false), rotation (float = 0), rainbow (float = 0.35), tint (vec3 = vec3(1, 0.95, 0.85))
243
248
  - `GlitchBands`: A crossfade with glitchy horizontal bands and color shifts. Params: ampx (float = 1), ampy (float = 1)
244
249
  - `GlitchDisplace`: Blocks of the image are displaced in a glitch that flashes into the incoming image
245
250
  - `GlitchFlicker`: A flickering glitch with RGB offset, ghosting and scanlines that flashes back to the outgoing image. Params: frameRate (float = 24), rgbOffset (float = 0.014), blockAmount (float = 0.72), ghostAmount (float = 0.62), redCyan (float = 0.58), scanline (float = 0.075)
@@ -257,6 +262,7 @@
257
262
  - `HorizontalOpen`: The incoming image opens from a line in the middle toward the top and bottom edges
258
263
  - `HsvFade`: A crossfade through the HSV color space that cycles through hues
259
264
  - `InkBleed`: 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. Params: drops (float = 4), tendrils (float = 0.7), rim (float = 0.5), seed (float = 3)
265
+ - `InsetWipe`: 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. Params: anchor (vec2 = vec2(1, 1)), smoothness (float = 0), borderWidth (float = 0), borderColor (vec4 = vec4(1, 1, 1, 1)), reverse (bool = false)
260
266
  - `InvertedPageCurl`: The outgoing image curls away like a page, revealing the incoming one
261
267
  - `Kaleidoscope`: A crossfade through a spinning kaleidoscope. Params: speed (float = 1), angle (float = 1), power (float = 1.5)
262
268
  - `LeafWipe`: A leaf shape grows from the center to reveal the incoming image
@@ -265,15 +271,13 @@
265
271
  - `LightRays`: 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. Params: center (vec2 = vec2(0.5, 0.6)), drift (float = 0.15), reach (float = 0.6), threshold (float = 0.65), intensity (float = 1.5), tint (vec3 = vec3(1, 0.82, 0.55))
266
272
  - `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)
267
273
  - `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))
268
- - `LinearBlur`: A crossfade through a blur. Params: intensity (float = 0.1)
274
+ - `LightningFlash`: 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. Params: bolts (int = 2), strike (float = 0.55), seed (float = 0), color (vec3 = vec3(0.75, 0.85, 1)), glow (float = 0.5), flashes (int = 3)
269
275
  - `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)
270
276
  - `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)
271
277
  - `LumaWipe`: A wipe that follows the brightness of a grayscale mask (the luma texture). Extra textures: luma
272
278
  - `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)
273
279
  - `Morph`: A crossfade in which each image is displaced by the other's colors, like a morph. Params: strength (float = 0.1)
274
280
  - `Mosaic`: The view pans across a mosaic of rotated tiles from both images and settles on the incoming one. Params: endx (int = 2), endy (int = -1)
275
- - `MosaicBlend`: Both images break into large blocks that blend, then sharpen into the incoming image. Params: pixelSize (float = 50)
276
- - `MosaicFade`: Both images break into mosaic blocks that blend, then sharpen into the incoming image. Params: mosaicNum (float = 10)
277
281
  - `MultiplyBlend`: A crossfade through the multiplied blend of both images
278
282
  - `NoiseDissolve`: The incoming image appears pixel by pixel in random noise
279
283
  - `Overexposure`: A crossfade through a washed-out, overexposed white. Params: strength (float = 0.6)
@@ -299,11 +303,9 @@
299
303
  - `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)
300
304
  - `Ripple`: Ripples spread from the center while crossfading. Params: amplitude (float = 100), speed (float = 50)
301
305
  - `Rolls`: The outgoing image rolls away around a corner, revealing the incoming one. Params: type (int = 0), RotDown (bool = false)
302
- - `RotateFade`: The images spin around the center while crossfading
303
306
  - `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))
304
307
  - `RotateScaleVanish`: The outgoing image spins and shrinks away over the incoming one. Params: FadeInSecond (bool = true), ReverseEffect (bool = false), ReverseRotation (bool = false)
305
308
  - `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)
306
- - `ScaleIn`: The incoming image scales in from the center while fading in
307
309
  - `Shatter`: The outgoing image shatters into fragments that fly away
308
310
  - `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)
309
311
  - `SimpleFlip`: The outgoing image flips around the vertical axis into the incoming one
@@ -347,6 +349,7 @@
347
349
  - `VerticalOpen`: The incoming image opens from a line in the middle toward the left and right edges
348
350
  - `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
351
  - `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)
352
+ - `WarpSpeed`: 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. Params: center (vec2 = vec2(0.5, 0.5)), streaks (float = 160), streakColor (vec4 = vec4(0.78, 0.88, 1, 1)), strength (float = 0.6), flash (float = 0.5)
350
353
  - `WaterDrop`: Ripples spread from the center like a drop falling into water, crossfading to the incoming image. Params: amplitude (float = 30), speed (float = 30)
351
354
  - `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))
352
355
  - `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)
@@ -355,10 +358,6 @@
355
358
  - `Wind`: A ragged left-to-right wipe, as if the image was blown away by the wind. Params: size (float = 0.2), reversed (bool = false)
356
359
  - `WindowBlinds`: A crossfade through horizontal window blinds
357
360
  - `WindowSlices`: The incoming image appears through vertical slices that widen. Params: count (float = 10), smoothness (float = 0.5)
358
- - `WipeDown`: A hard-edged wipe from top to bottom
359
- - `WipeLeft`: A hard-edged wipe from right to left
360
- - `WipeRight`: A hard-edged wipe from left to right
361
- - `WipeUp`: A hard-edged wipe from bottom to top
362
361
  - `ZoomInCircles`: Concentric rings of the outgoing image zoom at different speeds before revealing the incoming one
363
362
  - `ZoomInOut`: Zooms into the outgoing image until it blurs into a flat color, then out to the incoming one
364
363
  - `ZoomWipeLeft`: Zooms into the outgoing image, then the incoming one wipes in from right to left. Params: zoom_quickness (float = 0.8)
@@ -0,0 +1,77 @@
1
+ // BandWipe — generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/BandWipe.glsl
2
+ // Author: gre
3
+ // License: MIT
4
+ // Description: Alternating bands wipe in from opposite sides together and interleave like fingers, while both images stay still
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 int bands;
16
+
17
+ uniform int vertical;
18
+
19
+ uniform float smoothness;
20
+
21
+ uniform float stagger;
22
+
23
+ const float AA = 0.0015;
24
+
25
+ float bandMask(float i, float n, float a, float l, float s) {
26
+
27
+
28
+ float k = (vertical != 0) ? i : n - 1.0 - i;
29
+ float g = clamp(stagger, 0.0, 0.95);
30
+ float t = clamp((progress - g * k / max(n - 1.0, 1.0)) / (1.0 - g), 0.0, 1.0);
31
+ t = mix(t, t * t * (3.0 - 2.0 * t), 0.5);
32
+ float x = mod(i, 2.0) > 0.5 ? l - a : a;
33
+
34
+ float c = mix(-s, l + s, t);
35
+ return 1.0 - smoothstep(c - s, c + s, x);
36
+ }
37
+
38
+ vec4 transition(vec2 uv) {
39
+ if (progress <= 0.0) return getFromColor(uv);
40
+ if (progress >= 1.0) return getToColor(uv);
41
+
42
+ float n = float(bands < 1 ? 1 : bands);
43
+
44
+ float along = (vertical != 0) ? uv.y : uv.x * ratio;
45
+ float across = (vertical != 0) ? uv.x : uv.y;
46
+ float l = (vertical != 0) ? 1.0 : ratio;
47
+
48
+ float aaAcross = (vertical != 0) ? AA / ratio : AA;
49
+ float s = max(smoothness, AA);
50
+
51
+ float f = across * n;
52
+ float i = clamp(floor(f), 0.0, n - 1.0);
53
+ float m = bandMask(i, n, along, l, s);
54
+
55
+
56
+
57
+ float fr = f - i;
58
+ float edge = min(fr, 1.0 - fr) / n;
59
+ if (edge < aaAcross) {
60
+ float j = clamp(fr < 0.5 ? i - 1.0 : i + 1.0, 0.0, n - 1.0);
61
+ m = mix(bandMask(j, n, along, l, s), m, 0.5 + 0.5 * smoothstep(0.0, aaAcross, edge));
62
+ }
63
+
64
+ if (m <= 0.0) return getFromColor(uv);
65
+ if (m >= 1.0) return getToColor(uv);
66
+ vec4 a = getFromColor(uv);
67
+ vec4 b = getToColor(uv);
68
+
69
+ vec4 c = mix(vec4(a.rgb * a.a, a.a), vec4(b.rgb * b.a, b.a), m);
70
+ return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);
71
+ }
72
+
73
+ half4 main(float2 _coord) {
74
+ vec2 _uv = _coord / _resolution;
75
+ vec4 _c = clamp(transition(vec2(_uv.x, 1.0 - _uv.y)), 0.0, 1.0);
76
+ return half4(_c.rgb * _c.a, _c.a);
77
+ }
package/sksl/BowTie.sksl CHANGED
@@ -1,7 +1,7 @@
1
1
  // BowTie — generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/BowTie.glsl
2
2
  // Author: KMojek
3
3
  // License: MIT
4
- // Description: A bow-tie wipe with an adjustable shape that can run in reverse
4
+ // 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
5
5
 
6
6
  uniform shader _from;
7
7
  uniform shader _to;
@@ -1,7 +1,7 @@
1
1
  // DirectionalWipe — generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/DirectionalWipe.glsl
2
2
  // Author: gre
3
3
  // License: MIT
4
- // Description: A soft-edged diagonal wipe
4
+ // Description: A straight wipe in any direction, diagonal and soft-edged by default; a smoothness of 0 gives a hard edge
5
5
 
6
6
  uniform shader _from;
7
7
  uniform shader _to;
@@ -0,0 +1,136 @@
1
+ // GlintDissolve — generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/GlintDissolve.glsl
2
+ // Author: gre
3
+ // License: MIT
4
+ // 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
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 size;
16
+
17
+ uniform float threshold;
18
+
19
+ uniform float intensity;
20
+
21
+ uniform int diagonals;
22
+
23
+ uniform float rotation;
24
+
25
+ uniform float rainbow;
26
+
27
+ uniform vec3 tint;
28
+
29
+ const float REACH = 6.0;
30
+
31
+ float hash12(vec2 v) {
32
+ vec3 v3 = fract(vec3(v.xyx) * 0.1031);
33
+ v3 += dot(v3, v3.yzx + 33.33);
34
+ return fract((v3.x + v3.y) * v3.z);
35
+ }
36
+
37
+ float ray(vec2 d, float len, float width) {
38
+ float a = abs(d.x) / len;
39
+ if (a >= 1.0) return 0.0;
40
+ float fall = (1.0 - a) * (1.0 - a);
41
+ float w = width * (1.0 - 0.7 * a);
42
+ return fall * exp(-d.y * d.y / (w * w));
43
+ }
44
+
45
+ vec3 spectrum(float a) {
46
+ return 0.5 + 0.5 * cos(6.2831853 * (a + vec3(0.0, 0.33, 0.67)));
47
+ }
48
+
49
+ vec4 transition(vec2 uv) {
50
+ float p = progress;
51
+
52
+ float t = 1.0 - abs(2.0 * p - 1.0);
53
+ float amount = t * (2.0 - t);
54
+
55
+ float m = smoothstep(0.42, 0.58, p);
56
+ if (amount <= 0.0) return m < 0.5 ? getFromColor(uv) : getToColor(uv);
57
+
58
+ vec4 fromColor = getFromColor(uv);
59
+ vec4 toColor = getToColor(uv);
60
+ vec4 c = mix(vec4(fromColor.rgb * fromColor.a, fromColor.a), vec4(toColor.rgb * toColor.a, toColor.a), m);
61
+ if (c.a <= 0.0) return vec4(0.0);
62
+ vec3 base = c.rgb / c.a;
63
+
64
+
65
+ float cell = size / REACH;
66
+ float ang = radians(rotation);
67
+ vec2 cs = vec2(cos(ang), sin(ang));
68
+ vec2 aspect = vec2(ratio, 1.0);
69
+ vec2 o = (uv - 0.5) * aspect;
70
+ vec2 q = vec2(o.x * cs.x + o.y * cs.y, o.y * cs.x - o.x * cs.y) / cell;
71
+ vec2 home = floor(q);
72
+
73
+ float width = min(0.0022 / cell, 0.07);
74
+
75
+ vec3 light = vec3(0.0);
76
+
77
+
78
+ for (int k = 0; k < 29; k++) {
79
+ float fk = float(k);
80
+ vec2 off = vec2(0.0);
81
+ if (k >= 1 && k <= 12) off = vec2(fk < 7.0 ? fk - 7.0 : fk - 6.0, 0.0);
82
+ else if (k >= 13 && k <= 24) off = vec2(0.0, fk < 19.0 ? fk - 19.0 : fk - 18.0);
83
+ else if (k >= 25) off = vec2(mod(fk, 2.0) * 2.0 - 1.0, fk < 27.0 ? -1.0 : 1.0);
84
+
85
+ if (max(abs(off.x), abs(off.y)) > REACH * amount + 1.0) continue;
86
+ vec2 id = home + off;
87
+
88
+ if (hash12(id + 89.5) > 0.55) continue;
89
+ float h0 = hash12(id + 0.5);
90
+ float h1 = hash12(id + 19.5);
91
+ float h2 = hash12(id + 41.5);
92
+ float h3 = hash12(id + 67.5);
93
+
94
+ vec2 center = id + 0.5 + 0.6 * (vec2(h0, h1) - 0.5);
95
+ vec2 cw = center * cell;
96
+ vec2 st = vec2(cw.x * cs.x - cw.y * cs.y, cw.x * cs.y + cw.y * cs.x) / aspect + 0.5;
97
+ if (st.x < 0.0 || st.x > 1.0 || st.y < 0.0 || st.y > 1.0) continue;
98
+
99
+
100
+ float turn = 0.15 + 0.7 * h3;
101
+ vec4 src = m < turn ? getFromColor(st) : getToColor(st);
102
+ float lum = dot(src.rgb, vec3(0.2126, 0.7152, 0.0722)) * src.a;
103
+
104
+ float knee = threshold + 0.8 * (1.0 - threshold) * h2;
105
+ float b = smoothstep(knee, knee + 0.2 * (1.0 - threshold) + 1e-3, lum);
106
+ if (b <= 0.0) continue;
107
+
108
+ float twinkle = (0.6 + 0.4 * sin(6.2831853 * (h2 + (1.5 + h0) * p))) * smoothstep(0.0, 0.12, abs(m - turn));
109
+ float len = REACH * amount * (0.45 + 0.55 * b) * (0.3 + 0.7 * h1 * h1) * (0.85 + 0.15 * twinkle);
110
+ vec2 d = q - center;
111
+ float r = length(d);
112
+ float star = ray(d, len, width) + ray(d.yx, len, width);
113
+ if ((diagonals != 0)) {
114
+ vec2 e = vec2(d.x + d.y, d.x - d.y) * 0.70710678;
115
+ star += 0.5 * (ray(e, 0.25 * len, width) + ray(e.yx, 0.25 * len, width));
116
+ }
117
+
118
+ float cr = r / (0.08 * len);
119
+ star += exp(-cr * cr) + 0.3 * exp(-r / 0.2);
120
+
121
+ float along = r / len;
122
+ vec3 hue = mix(vec3(1.0), spectrum(1.3 * along + h0), rainbow * smoothstep(0.05, 0.4, along));
123
+ vec3 col = mix(src.rgb / max(max(src.r, max(src.g, src.b)), 1e-3), vec3(1.0), 0.6);
124
+ light += b * twinkle * star * hue * col;
125
+ }
126
+ light *= tint * intensity * amount * amount;
127
+
128
+ light = 1.0 - exp(-light);
129
+ return vec4(clamp(base + light - base * light, 0.0, 1.0), c.a);
130
+ }
131
+
132
+ half4 main(float2 _coord) {
133
+ vec2 _uv = _coord / _resolution;
134
+ vec4 _c = clamp(transition(vec2(_uv.x, 1.0 - _uv.y)), 0.0, 1.0);
135
+ return half4(_c.rgb * _c.a, _c.a);
136
+ }
@@ -0,0 +1,70 @@
1
+ // InsetWipe — generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/InsetWipe.glsl
2
+ // Author: gre
3
+ // License: MIT
4
+ // 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
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 anchor;
16
+
17
+ uniform float smoothness;
18
+
19
+ uniform float borderWidth;
20
+
21
+ uniform vec4 borderColor;
22
+
23
+ uniform int reverse;
24
+
25
+ const float AA = 0.001;
26
+
27
+ vec4 premultiplied(vec4 c) {
28
+ return vec4(c.rgb * c.a, c.a);
29
+ }
30
+
31
+ vec4 transition(vec2 uv) {
32
+ vec4 a = getFromColor(uv);
33
+ vec4 b = getToColor(uv);
34
+ if (progress <= 0.0) return a;
35
+ if (progress >= 1.0) return b;
36
+
37
+ vec2 an = clamp(anchor, 0.0, 1.0);
38
+ vec2 sq = vec2(ratio, 1.0);
39
+
40
+
41
+ vec2 ext = max(an, 1.0 - an) * sq;
42
+ vec2 d = abs(uv - an) * sq;
43
+ float s = max(smoothness, AA);
44
+ float bw = max(borderWidth, 0.0);
45
+
46
+
47
+
48
+ float t = (reverse != 0) ? 1.0 - progress : progress;
49
+ float p = mix(t, t * t * (3.0 - 2.0 * t), 0.3);
50
+ vec2 size = p * ext + mix(-(bw + s), s, p);
51
+
52
+ float e = max(d.x - size.x, d.y - size.y);
53
+
54
+
55
+ vec4 inside = (reverse != 0) ? a : b;
56
+ vec4 c = premultiplied((reverse != 0) ? b : a);
57
+ if (bw > 0.0) {
58
+
59
+ float m = 1.0 - smoothstep(bw - s, bw + s, e);
60
+ c = premultiplied(borderColor) * m + c * (1.0 - borderColor.a * m);
61
+ }
62
+ c = mix(c, premultiplied(inside), 1.0 - smoothstep(-s, s, e));
63
+ return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);
64
+ }
65
+
66
+ half4 main(float2 _coord) {
67
+ vec2 _uv = _coord / _resolution;
68
+ vec4 _c = clamp(transition(vec2(_uv.x, 1.0 - _uv.y)), 0.0, 1.0);
69
+ return half4(_c.rgb * _c.a, _c.a);
70
+ }