gl-transitions 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -0
- package/compatibility.json +359 -11
- package/gl-transitions.js +1 -1
- package/gl-transitions.json +1 -1
- package/glsl3/BookFlip.glsl +124 -21
- package/glsl3/Clothesline.glsl +217 -0
- package/glsl3/ComicPanels.glsl +174 -0
- package/glsl3/Cube.glsl +105 -52
- package/glsl3/DominoFall.glsl +114 -0
- package/glsl3/Doorway.glsl +74 -38
- package/glsl3/Drape.glsl +186 -0
- package/glsl3/DuotoneFade.glsl +58 -0
- package/glsl3/FacetedGlass.glsl +137 -0
- package/glsl3/FrostWipe.glsl +176 -0
- package/glsl3/Funnel.glsl +71 -0
- package/glsl3/GlitterDissolve.glsl +171 -0
- package/glsl3/GridFlip.glsl +151 -56
- package/glsl3/HeartWipe.glsl +71 -11
- package/glsl3/InsideCube.glsl +114 -0
- package/glsl3/KeyholeWipe.glsl +104 -0
- package/glsl3/LedWall.glsl +127 -0
- package/glsl3/MoireWipe.glsl +75 -0
- package/glsl3/PaperFold.glsl +168 -0
- package/glsl3/PuzzleCube.glsl +205 -0
- package/glsl3/RibbonTwist.glsl +53 -0
- package/glsl3/Shatter.glsl +231 -35
- package/glsl3/SketchDissolve.glsl +100 -0
- package/glsl3/SlotReels.glsl +118 -0
- package/glsl3/SplitFlap.glsl +124 -0
- package/glsl3/Swirl.glsl +52 -21
- package/glsl3/TruchetWipe.glsl +80 -0
- package/glsl3/Tumble.glsl +113 -0
- package/glsl3/WaterDrop.glsl +69 -13
- package/glsl3/WaveWipe.glsl +154 -0
- package/index.js +1 -1
- package/layouts.json +991 -19
- package/llms-full.txt +791 -403
- package/llms.txt +219 -197
- package/msl/BookFlip.metal +575 -114
- package/msl/Clothesline.metal +828 -0
- package/msl/ComicPanels.metal +959 -0
- package/msl/Cube.metal +466 -170
- package/msl/DominoFall.metal +510 -0
- package/msl/Doorway.metal +350 -124
- package/msl/Drape.metal +767 -0
- package/msl/DuotoneFade.metal +218 -0
- package/msl/FacetedGlass.metal +529 -0
- package/msl/FrostWipe.metal +677 -0
- package/msl/Funnel.metal +276 -0
- package/msl/GlitterDissolve.metal +637 -0
- package/msl/GridFlip.metal +548 -191
- package/msl/HeartWipe.metal +230 -58
- package/msl/InsideCube.metal +537 -0
- package/msl/KeyholeWipe.metal +370 -0
- package/msl/LedWall.metal +437 -0
- package/msl/MoireWipe.metal +252 -0
- package/msl/PaperFold.metal +762 -0
- package/msl/PuzzleCube.metal +1179 -0
- package/msl/RibbonTwist.metal +235 -0
- package/msl/Shatter.metal +1136 -160
- package/msl/SketchDissolve.metal +446 -0
- package/msl/SlotReels.metal +436 -0
- package/msl/SplitFlap.metal +589 -0
- package/msl/Swirl.metal +144 -77
- package/msl/TruchetWipe.metal +285 -0
- package/msl/Tumble.metal +466 -0
- package/msl/WaterDrop.metal +258 -49
- package/msl/WaveWipe.metal +618 -0
- package/package.json +1 -1
- package/skills/gl-transitions/references/catalog.md +97 -51
- package/sksl/BookFlip.sksl +117 -20
- package/sksl/Clothesline.sksl +217 -0
- package/sksl/ComicPanels.sksl +176 -0
- package/sksl/Cube.sksl +99 -46
- package/sksl/DominoFall.sksl +122 -0
- package/sksl/Doorway.sksl +65 -35
- package/sksl/Drape.sksl +192 -0
- package/sksl/DuotoneFade.sksl +71 -0
- package/sksl/FacetedGlass.sksl +148 -0
- package/sksl/FrostWipe.sksl +183 -0
- package/sksl/Funnel.sksl +83 -0
- package/sksl/GlitterDissolve.sksl +175 -0
- package/sksl/GridFlip.sksl +141 -52
- package/sksl/HeartWipe.sksl +60 -11
- package/sksl/InsideCube.sksl +123 -0
- package/sksl/KeyholeWipe.sksl +109 -0
- package/sksl/LedWall.sksl +137 -0
- package/sksl/MoireWipe.sksl +85 -0
- package/sksl/PaperFold.sksl +170 -0
- package/sksl/PuzzleCube.sksl +203 -0
- package/sksl/RibbonTwist.sksl +66 -0
- package/sksl/Shatter.sksl +218 -33
- package/sksl/SketchDissolve.sksl +111 -0
- package/sksl/SlotReels.sksl +127 -0
- package/sksl/SplitFlap.sksl +131 -0
- package/sksl/Swirl.sksl +49 -20
- package/sksl/TruchetWipe.sksl +92 -0
- package/sksl/Tumble.sksl +122 -0
- package/sksl/WaterDrop.sksl +64 -10
- package/sksl/WaveWipe.sksl +165 -0
- package/sksl/index.js +1 -1
- package/transitions/BookFlip.glsl +124 -21
- package/transitions/Clothesline.glsl +216 -0
- package/transitions/ComicPanels.glsl +173 -0
- package/transitions/Cube.glsl +105 -52
- package/transitions/DominoFall.glsl +113 -0
- package/transitions/Doorway.glsl +74 -38
- package/transitions/Drape.glsl +185 -0
- package/transitions/DuotoneFade.glsl +57 -0
- package/transitions/FacetedGlass.glsl +136 -0
- package/transitions/FrostWipe.glsl +175 -0
- package/transitions/Funnel.glsl +70 -0
- package/transitions/GlitterDissolve.glsl +170 -0
- package/transitions/GridFlip.glsl +151 -56
- package/transitions/HeartWipe.glsl +71 -11
- package/transitions/InsideCube.glsl +113 -0
- package/transitions/KeyholeWipe.glsl +103 -0
- package/transitions/LedWall.glsl +126 -0
- package/transitions/MoireWipe.glsl +74 -0
- package/transitions/PaperFold.glsl +167 -0
- package/transitions/PuzzleCube.glsl +204 -0
- package/transitions/RibbonTwist.glsl +52 -0
- package/transitions/Shatter.glsl +231 -35
- package/transitions/SketchDissolve.glsl +99 -0
- package/transitions/SlotReels.glsl +117 -0
- package/transitions/SplitFlap.glsl +123 -0
- package/transitions/Swirl.glsl +52 -21
- package/transitions/TruchetWipe.glsl +79 -0
- package/transitions/Tumble.glsl +112 -0
- package/transitions/WaterDrop.glsl +69 -13
- package/transitions/WaveWipe.glsl +153 -0
- package/wgsl/BookFlip.wgsl +552 -105
- package/wgsl/Clothesline.wgsl +756 -0
- package/wgsl/ComicPanels.wgsl +886 -0
- package/wgsl/Cube.wgsl +461 -156
- package/wgsl/DominoFall.wgsl +461 -0
- package/wgsl/Doorway.wgsl +333 -117
- package/wgsl/Drape.wgsl +715 -0
- package/wgsl/DuotoneFade.wgsl +185 -0
- package/wgsl/FacetedGlass.wgsl +476 -0
- package/wgsl/FrostWipe.wgsl +617 -0
- package/wgsl/Funnel.wgsl +248 -0
- package/wgsl/GlitterDissolve.wgsl +582 -0
- package/wgsl/GridFlip.wgsl +523 -188
- package/wgsl/HeartWipe.wgsl +225 -55
- package/wgsl/InsideCube.wgsl +496 -0
- package/wgsl/KeyholeWipe.wgsl +337 -0
- package/wgsl/LedWall.wgsl +397 -0
- package/wgsl/MoireWipe.wgsl +222 -0
- package/wgsl/PaperFold.wgsl +700 -0
- package/wgsl/PuzzleCube.wgsl +1087 -0
- package/wgsl/RibbonTwist.wgsl +206 -0
- package/wgsl/Shatter.wgsl +1091 -148
- package/wgsl/SketchDissolve.wgsl +409 -0
- package/wgsl/SlotReels.wgsl +391 -0
- package/wgsl/SplitFlap.wgsl +533 -0
- package/wgsl/Swirl.wgsl +138 -77
- package/wgsl/TruchetWipe.wgsl +255 -0
- package/wgsl/Tumble.wgsl +424 -0
- package/wgsl/WaterDrop.wgsl +251 -49
- package/wgsl/WaveWipe.wgsl +581 -0
|
@@ -1,69 +1,80 @@
|
|
|
1
|
-
# Catalog (gl-transitions@3.
|
|
1
|
+
# Catalog (gl-transitions@3.1.0)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
208 transitions. Generated from gl-transitions.json; full details (parameter hints, authors, source links) in https://cdn.jsdelivr.net/npm/gl-transitions@3.1.0/llms-full.txt.
|
|
4
4
|
|
|
5
5
|
## By tag
|
|
6
6
|
|
|
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
|
|
8
|
-
- **
|
|
9
|
-
- **
|
|
10
|
-
- **
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
13
|
-
- **
|
|
7
|
+
- **wipe**: ApertureWipe, ArrowWipe, BandWipe, BowTie, BowTieHorizontal, BrushWipe, CircleOpen, ClockWipe, ColorPanelWipe, CurvedWipe, DiamondWipe, DirectionalWarp, DirectionalWipe, FlameWipe, FlowerWipe, HeartWipe, HorizontalClose, HorizontalOpen, InsetWipe, KeyholeWipe, LeafWipe, LightWipe, LumaWipe, PlasmaDissolve, PlusWipe, RadialWipe, RingsWipe, SawtoothWipe, SnakeBlockWipe, SpiralBlockWipe, SpiralWipe, SquaresWipe, StarWipe, StaticWipe, TilesWave, UndulatingBurnOut, VerticalClose, VerticalOpen, WedgeWipe, Wind, WindowSlices, ZoomWipeLeft, ZoomWipeRight
|
|
8
|
+
- **3d**: Accordion, BookFlip, Clothesline, Crumple, Cube, Curtains, CylinderRoll, DominoFall, Doorway, Drape, FallOver, Gallery, GlitterDissolve, GridFlip, InsideCube, InvertedPageCurl, PaperFold, Prisms, PuzzleCube, RibbonTwist, Shatter, SlotReels, Sphere, SplitFlap, Swap, Tumble, Tunnel, WhipTilt
|
|
9
|
+
- **slide**: Accordion, BlockSlide, Bounce, CardSwipe, Clothesline, Comb, Directional, DirectionalEased, DirectionalScaled, Fold, Funnel, Gallery, LeftRight, SlideAwayRight, Slides, SplitSlideInHorizontal, SplitSlideInOutHorizontal, SplitSlideInOutVertical, SplitSlideInVertical, SplitSlideOutHorizontal, SplitSlideOutVertical, StretchSlide, TangentMotionBlur, TopBottom, WhipPan
|
|
10
|
+
- **zoom**: BlockSlide, ComicPanels, CrossWarp, CrossZoom, DirectionalScaled, DreamyZoom, Fisheye, LeftRight, Mosaic, PopIn, RectangleIris, Revolve, RotateScaleFade, RotateScaleVanish, SimpleZoom, SimpleZoomOut, StereoViewer, TopBottom, Tunnel, WarpSpeed, ZoomInCircles, ZoomInOut, ZoomWipeLeft, ZoomWipeRight
|
|
11
|
+
- **rotate**: ApertureWipe, CardSwipe, Cube, DominoFall, DreamyZoom, FallOver, Honeycomb, InsideCube, Pinwheel, Prisms, Puzzle, PuzzleCube, Revolve, RibbonTwist, Rolls, RotateScaleFade, RotateScaleVanish, Snapshot, Swirl, TangentMotionBlur, Tumble, WhipSpin, WhipTilt
|
|
12
|
+
- **directional**: ArrowWipe, BlockSlide, CardSwipe, Clothesline, CurvedWipe, Directional, DirectionalEased, DirectionalScaled, DirectionalWarp, DirectionalWipe, Disintegrate, FlameWipe, Gallery, InsideCube, LiquidFill, PixelStretch, SawtoothWipe, Slides, SquaresWipe, StretchSlide, WaveWipe, WhipPan
|
|
13
|
+
- **blend**: ColorCoords, ColorDistance, CrossZoom, DefocusBlur, DisplacementMap, Dreamy, Fade, FilmDissolve, Fisheye, GlitchBands, GlitchMemories, HeatHaze, Hexagonalize, Kaleidoscope, Morph, MultiplyBlend, Pixelize, Ripple, SlideAwayRight, Swirl, WindowBlinds
|
|
14
|
+
- **shape**: ApertureWipe, ArrowWipe, BowTie, BowTieHorizontal, CircleIris, DiamondWipe, EyeBlink, FlowerWipe, HeartWipe, InsetWipe, KeyholeWipe, LeafWipe, PlusWipe, RectangleCover, SawtoothWipe, Sphere, SpiralWipe, StarWipe
|
|
14
15
|
- **horizontal**: BandWipe, BowTieHorizontal, Comb, CrossWarp, Curtains, Fold, LeftRight, PaperTear, SimpleFlip, SlideAwayRight, SplitSlideInHorizontal, SplitSlideInOutHorizontal, SplitSlideOutHorizontal, Wind, ZoomWipeLeft, ZoomWipeRight
|
|
15
|
-
- **
|
|
16
|
+
- **vertical**: Bounce, CylinderRoll, Drape, FallOver, FilmStrip, Funnel, Shred, SplitSlideInOutVertical, SplitSlideInVertical, SplitSlideOutVertical, Squeeze, StaticWipe, TopBottom, TvRoll, TvTurnOff, WhipTilt
|
|
16
17
|
- **fade**: ColorPhase, ColorWrap, EdgeGlow, Fade, FadeColor, FadeGrayscale, FilmDissolve, FlashFade, HsvFade, MultiplyBlend, Overexposure, PhotoDevelop, RotateScaleFade, SimpleZoom, SimpleZoomOut
|
|
17
18
|
- **retro**: Ascii, DitherDissolve, DoomMelt, FilmStrip, Halftone, LissajousTiles, PhotoDevelop, StaticFade, StereoViewer, TvLostSignal, TvRoll, TvStatic, TvTurnOff, VhsTracking
|
|
18
|
-
- **
|
|
19
|
+
- **grid**: BlockCover, BlockSlide, Chessboard, ComicPanels, GridFlip, LedWall, LissajousTiles, PuzzleCube, RandomSquares, SnakeBlockWipe, SpiralBlockWipe, SplitFlap, SquaresWipe
|
|
19
20
|
- **noise**: BurnThrough, Crosshatch, HeatHaze, InkBleed, LuminanceMelt, NoiseDissolve, PerlinDissolve, SmokeDissolve, StaticFade, StaticWipe, TvStatic, VhsTracking, Wind
|
|
21
|
+
- **dissolve**: BloomDissolve, BokehDissolve, CellDissolve, DitherDissolve, FilmDissolve, GlintDissolve, GlitterDissolve, GlowDissolve, NoiseDissolve, PerlinDissolve, RandomSquares, SketchDissolve
|
|
20
22
|
- **split**: Curtains, HorizontalClose, HorizontalOpen, PaperTear, SplitSlideInHorizontal, SplitSlideInOutHorizontal, SplitSlideInOutVertical, SplitSlideInVertical, SplitSlideOutHorizontal, SplitSlideOutVertical, VerticalClose, VerticalOpen
|
|
23
|
+
- **color**: BlockCover, ColorDistance, ColorPanelWipe, ColorPhase, ColorWrap, DuotoneFade, FadeColor, FadeGrayscale, FlashFade, HsvFade, PhotoDevelop
|
|
24
|
+
- **distort**: ButterflyWaveScrawler, ColorCoords, CrazyParametricFun, DisplacementMap, Fisheye, FlyEye, Funnel, HeatHaze, Kaleidoscope, Morph, PowerKaleido
|
|
21
25
|
- **light**: BloomDissolve, BokehDissolve, FilmDissolve, GlintDissolve, LensFlare, LightRays, LightStreaks, LightWipe, LightningFlash, Overexposure, WarpSpeed
|
|
22
|
-
- **
|
|
23
|
-
- **
|
|
24
|
-
- **distort**: ButterflyWaveScrawler, ColorCoords, CrazyParametricFun, DisplacementMap, Fisheye, FlyEye, HeatHaze, Kaleidoscope, Morph, PowerKaleido
|
|
26
|
+
- **shadow**: Bounce, Crumple, CurvedWipe, Drape, Funnel, PaperFold, PaperTear, PopIn, Puzzle, Shred, Snapshot
|
|
27
|
+
- **motion-blur**: CameraShake, CylinderRoll, FilmStrip, LightStreaks, SlotReels, TangentMotionBlur, WarpSpeed, WhipPan, WhipSpin, WhipTilt
|
|
25
28
|
- **radial**: ClockWipe, Honeycomb, LightRays, Pinwheel, RadialWipe, RingsWipe, SpiralWipe, Tunnel, WarpSpeed, WedgeWipe
|
|
26
29
|
- **chromatic**: ButterflyWaveScrawler, CameraShake, CylinderRoll, FlyEye, GlitchFlicker, GlitchMemories, PixelStretch, Squeeze, StripDatamoshGlitch
|
|
27
30
|
- **glitch**: ColorWrap, GlitchBands, GlitchDisplace, GlitchFlicker, GlitchMemories, Hologram, StripDatamoshGlitch, TvLostSignal, VhsTracking
|
|
28
|
-
- **
|
|
29
|
-
- **
|
|
30
|
-
- **
|
|
31
|
-
- **
|
|
31
|
+
- **glow**: BloomDissolve, GlowDissolve, LedWall, LensFlare, LightRays, LightStreaks, LightWipe, PlasmaDissolve, Refraction
|
|
32
|
+
- **stripes**: Accordion, BandWipe, Comb, DominoFall, Prisms, Shred, SlotReels, WindowBlinds, WindowSlices
|
|
33
|
+
- **tiles**: GlitterDissolve, GridFlip, Honeycomb, LissajousTiles, Mosaic, Puzzle, TilesWave, TruchetWipe, Vortex
|
|
34
|
+
- **pattern**: Ascii, Chessboard, Crosshatch, DitherDissolve, Halftone, MoireWipe, PolkaDotsCurtain, TruchetWipe
|
|
35
|
+
- **blur**: BokehDissolve, CrossZoom, DefocusBlur, EyeBlink, FrostWipe, Revolve, ZoomInOut
|
|
36
|
+
- **flip**: BookFlip, GlitterDissolve, GridFlip, RibbonTwist, SimpleFlip, SplitFlap, Tumble
|
|
37
|
+
- **iris**: ApertureWipe, CircleIris, CircleOpen, DiamondWipe, KeyholeWipe, RectangleCover, RectangleIris
|
|
32
38
|
- **organic**: BrushWipe, GooeyWipe, HeatHaze, InkBleed, PlasmaDissolve, SmokeDissolve, SplatterWipe
|
|
33
|
-
- **
|
|
34
|
-
- **
|
|
35
|
-
- **
|
|
39
|
+
- **reveal**: GooeyWipe, KeyholeWipe, LiquidFill, MoireWipe, SplatterWipe, TruchetWipe, WaveWipe
|
|
40
|
+
- **wave**: ButterflyWaveScrawler, Dreamy, LedWall, LiquidFill, Ripple, TilesWave, WaveWipe
|
|
41
|
+
- **circle**: CircleIris, CircleOpen, RingsWipe, UndulatingBurnOut, WaterDrop, ZoomInCircles
|
|
36
42
|
- **flash**: DreamyZoom, FlashFade, LightningFlash, Overexposure, Snapshot, TvTurnOff
|
|
37
|
-
- **iris**: ApertureWipe, CircleIris, CircleOpen, DiamondWipe, RectangleCover, RectangleIris
|
|
38
|
-
- **pattern**: Ascii, Chessboard, Crosshatch, DitherDissolve, Halftone, PolkaDotsCurtain
|
|
39
43
|
- **burn**: BurnThrough, FilmBurn, FlameWipe, GlowDissolve, UndulatingBurnOut
|
|
40
|
-
- **
|
|
44
|
+
- **fold**: Accordion, Curtains, Drape, Fold, PaperFold
|
|
41
45
|
- **scanlines**: GlitchFlicker, Hologram, TvLostSignal, TvRoll, VhsTracking
|
|
42
|
-
- **wave**: ButterflyWaveScrawler, Dreamy, LiquidFill, Ripple, TilesWave
|
|
43
46
|
- **blocks**: BlockCover, BlockSlide, SnakeBlockWipe, SpiralBlockWipe
|
|
44
47
|
- **clock**: ClockWipe, RadialWipe, RingsWipe, WedgeWipe
|
|
48
|
+
- **perspective**: Clothesline, Gallery, InsideCube, Tumble
|
|
45
49
|
- **push**: Comb, Directional, DirectionalEased, DirectionalScaled
|
|
46
50
|
- **reflection**: Cube, Doorway, Gallery, Swap
|
|
47
51
|
- **squares**: BlockCover, Chessboard, RandomSquares, SquaresWipe
|
|
48
52
|
- **bounce**: Bounce, PopIn, StretchSlide
|
|
49
53
|
- **box**: InsetWipe, RectangleCover, RectangleIris
|
|
54
|
+
- **cover**: BlockCover, FrostWipe, SmokeDissolve
|
|
50
55
|
- **displace**: ColorCoords, DisplacementMap, GlitchDisplace
|
|
51
|
-
- **
|
|
52
|
-
- **fold**: Accordion, Curtains, Fold
|
|
56
|
+
- **dots**: Halftone, LedWall, PolkaDotsCurtain
|
|
53
57
|
- **lens**: BokehDissolve, Fisheye, FlyEye
|
|
58
|
+
- **paper**: Clothesline, Crumple, PaperFold
|
|
54
59
|
- **pixelate**: DitherDissolve, Hexagonalize, Pixelize
|
|
55
|
-
- **
|
|
60
|
+
- **refraction**: FacetedGlass, Refraction, WaterDrop
|
|
56
61
|
- **roll**: CylinderRoll, Rolls, Sphere
|
|
62
|
+
- **spin**: RotateScaleVanish, SlotReels, WhipSpin
|
|
57
63
|
- **static**: StaticFade, StaticWipe, TvStatic
|
|
58
64
|
- **warp**: CrossWarp, DirectionalWarp, Tunnel
|
|
59
|
-
- **
|
|
60
|
-
- **
|
|
65
|
+
- **water**: LiquidFill, WaterDrop, WaveWipe
|
|
66
|
+
- **card**: CardSwipe, Tumble
|
|
67
|
+
- **cube**: Cube, InsideCube
|
|
68
|
+
- **distortion**: FacetedGlass, Refraction
|
|
69
|
+
- **edges**: EdgeGlow, SketchDissolve
|
|
61
70
|
- **elastic**: PopIn, StretchSlide
|
|
62
71
|
- **film**: FilmBurn, FilmStrip
|
|
63
72
|
- **fire**: BurnThrough, FlameWipe
|
|
64
73
|
- **flare**: LensFlare, LightStreaks
|
|
65
74
|
- **flicker**: GlitchFlicker, Hologram
|
|
66
75
|
- **fragments**: Puzzle, Shatter
|
|
76
|
+
- **glass**: FacetedGlass, Shatter
|
|
77
|
+
- **graphic**: MoireWipe, TruchetWipe
|
|
67
78
|
- **hexagon**: Hexagonalize, Honeycomb
|
|
68
79
|
- **kaleidoscope**: Kaleidoscope, PowerKaleido
|
|
69
80
|
- **liquid**: GooeyWipe, LiquidFill
|
|
@@ -71,16 +82,18 @@
|
|
|
71
82
|
- **melt**: DoomMelt, LuminanceMelt
|
|
72
83
|
- **page**: BookFlip, InvertedPageCurl
|
|
73
84
|
- **paint**: BrushWipe, SplatterWipe
|
|
85
|
+
- **panels**: ColorPanelWipe, ComicPanels
|
|
74
86
|
- **photo**: PhotoDevelop, Snapshot
|
|
75
87
|
- **psychedelic**: ColorWrap, CrazyParametricFun
|
|
88
|
+
- **rings**: MoireWipe, RingsWipe
|
|
76
89
|
- **ripple**: Ripple, WaterDrop
|
|
77
90
|
- **scale**: PopIn, Snapshot
|
|
78
91
|
- **shatter**: Shatter, Vortex
|
|
79
92
|
- **slices**: Shred, WindowSlices
|
|
80
|
-
- **
|
|
93
|
+
- **sparkle**: GlintDissolve, GlitterDissolve
|
|
81
94
|
- **spiral**: SpiralBlockWipe, Vortex
|
|
82
95
|
- **swirl**: Revolve, Swirl
|
|
83
|
-
- **
|
|
96
|
+
- **voronoi**: CellDissolve, FacetedGlass
|
|
84
97
|
- **zigzag**: SawtoothWipe, SnakeBlockWipe
|
|
85
98
|
- **arrow**: ArrowWipe
|
|
86
99
|
- **blinds**: WindowBlinds
|
|
@@ -90,68 +103,78 @@
|
|
|
90
103
|
- **bokeh**: BokehDissolve
|
|
91
104
|
- **brush**: BrushWipe
|
|
92
105
|
- **camera**: CameraShake
|
|
93
|
-
- **card**: CardSwipe
|
|
94
106
|
- **cards**: StereoViewer
|
|
95
107
|
- **cells**: CellDissolve
|
|
96
108
|
- **chevron**: ArrowWipe
|
|
97
109
|
- **chromatic-aberration**: Refraction
|
|
98
110
|
- **columns**: DoomMelt
|
|
111
|
+
- **comic**: ComicPanels
|
|
99
112
|
- **cross**: PlusWipe
|
|
100
|
-
- **
|
|
113
|
+
- **crystal**: FrostWipe
|
|
101
114
|
- **curl**: InvertedPageCurl
|
|
102
115
|
- **curve**: CurvedWipe
|
|
103
116
|
- **datamosh**: StripDatamoshGlitch
|
|
104
117
|
- **digital**: Ascii
|
|
105
|
-
- **distortion**: Refraction
|
|
106
118
|
- **doors**: Doorway
|
|
119
|
+
- **drawing**: SketchDissolve
|
|
120
|
+
- **duotone**: DuotoneFade
|
|
107
121
|
- **dust**: Disintegrate
|
|
108
|
-
- **edges**: EdgeGlow
|
|
109
122
|
- **eye**: EyeBlink
|
|
123
|
+
- **fabric**: Drape
|
|
124
|
+
- **facets**: FacetedGlass
|
|
110
125
|
- **fall**: Snapshot
|
|
111
126
|
- **flame**: FlameWipe
|
|
112
127
|
- **fluid**: InkBleed
|
|
128
|
+
- **foam**: WaveWipe
|
|
113
129
|
- **fog**: SmokeDissolve
|
|
130
|
+
- **frost**: FrostWipe
|
|
114
131
|
- **gallery**: Gallery
|
|
115
132
|
- **glint**: LightWipe
|
|
116
133
|
- **glints**: GlintDissolve
|
|
134
|
+
- **gradient-map**: DuotoneFade
|
|
117
135
|
- **grayscale**: FadeGrayscale
|
|
118
136
|
- **heart**: HeartWipe
|
|
119
137
|
- **heat**: HeatHaze
|
|
120
138
|
- **hologram**: Hologram
|
|
121
139
|
- **hue**: HsvFade
|
|
140
|
+
- **ice**: FrostWipe
|
|
122
141
|
- **impact**: CameraShake
|
|
123
142
|
- **ink**: InkBleed
|
|
143
|
+
- **interference**: MoireWipe
|
|
124
144
|
- **interleave**: BandWipe
|
|
145
|
+
- **keyhole**: KeyholeWipe
|
|
125
146
|
- **light-leak**: FilmBurn
|
|
126
147
|
- **lines**: Crosshatch
|
|
148
|
+
- **luminance**: DuotoneFade
|
|
127
149
|
- **mask**: LumaWipe
|
|
150
|
+
- **moire**: MoireWipe
|
|
128
151
|
- **morph**: Morph
|
|
129
152
|
- **mosaic**: Mosaic
|
|
130
153
|
- **motion**: LissajousTiles
|
|
131
154
|
- **motion-graphics**: ColorPanelWipe
|
|
132
|
-
- **
|
|
133
|
-
- **paper**: Crumple
|
|
155
|
+
- **ocean**: WaveWipe
|
|
134
156
|
- **particles**: Disintegrate
|
|
135
|
-
- **
|
|
157
|
+
- **paths**: TruchetWipe
|
|
158
|
+
- **pencil**: SketchDissolve
|
|
136
159
|
- **pinwheel**: Pinwheel
|
|
137
160
|
- **plasma**: PlasmaDissolve
|
|
138
161
|
- **plus**: PlusWipe
|
|
139
162
|
- **polar**: FlowerWipe
|
|
140
163
|
- **pop**: PopIn
|
|
164
|
+
- **poster**: DuotoneFade
|
|
165
|
+
- **print**: DuotoneFade
|
|
141
166
|
- **random**: CellDissolve
|
|
142
167
|
- **rays**: LightRays
|
|
143
|
-
- **refraction**: Refraction
|
|
144
|
-
- **rings**: RingsWipe
|
|
145
168
|
- **rotation**: Vortex
|
|
146
169
|
- **sci-fi**: Hologram
|
|
147
170
|
- **shake**: CameraShake
|
|
148
171
|
- **shimmer**: HeatHaze
|
|
149
172
|
- **shrink**: Crumple
|
|
173
|
+
- **sketch**: SketchDissolve
|
|
150
174
|
- **slanted**: ColorPanelWipe
|
|
151
175
|
- **smear**: PixelStretch
|
|
152
176
|
- **smoke**: SmokeDissolve
|
|
153
177
|
- **space**: WarpSpeed
|
|
154
|
-
- **sparkle**: GlintDissolve
|
|
155
178
|
- **sphere**: Sphere
|
|
156
179
|
- **splash**: SplatterWipe
|
|
157
180
|
- **squash**: StretchSlide
|
|
@@ -163,10 +186,11 @@
|
|
|
163
186
|
- **stretch**: StretchSlide
|
|
164
187
|
- **strobe**: LightningFlash
|
|
165
188
|
- **swap**: Swap
|
|
189
|
+
- **swing**: Clothesline
|
|
166
190
|
- **swipe**: CardSwipe
|
|
167
191
|
- **tape**: VhsTracking
|
|
168
192
|
- **text**: Ascii
|
|
169
|
-
- **
|
|
193
|
+
- **truchet**: TruchetWipe
|
|
170
194
|
- **weather**: LightningFlash
|
|
171
195
|
- **wedge**: WedgeWipe
|
|
172
196
|
- **wind**: Disintegrate
|
|
@@ -185,7 +209,7 @@
|
|
|
185
209
|
- `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))
|
|
186
210
|
- `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))
|
|
187
211
|
- `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)
|
|
188
|
-
- `BookFlip`: The outgoing image
|
|
212
|
+
- `BookFlip`: The right half of the outgoing image is a book page that turns over from right to left on the spine at the middle of the frame, curling near its free edge, its back bringing the left half of the incoming image. Params: perspective (float = 0.5), shading (float = 0.6), curl (float = 0.5)
|
|
189
213
|
- `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)
|
|
190
214
|
- `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)
|
|
191
215
|
- `BowTieHorizontal`: Two triangles grow from the left and right edges into a bow tie that reveals the incoming image
|
|
@@ -199,18 +223,20 @@
|
|
|
199
223
|
- `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))
|
|
200
224
|
- `CircleOpen`: A soft-edged circle opens from the center to reveal the incoming image. Params: smoothness (float = 0.3), opening (bool = true)
|
|
201
225
|
- `ClockWipe`: A wipe that sweeps around the center from a starting angle. Params: startingAngle (float = 90)
|
|
226
|
+
- `Clothesline`: The camera pulls back to show the outgoing image as a print hung by two clothespins on a line in front of a wall, the line is pulled sideways and carries it away while the incoming print slides in, both prints swinging and tilting like hanging paper, then the camera moves back in on the incoming print until it fills the frame. Params: direction (float = 1), sway (float = 0.5), size (float = 0.72), background (vec4 = vec4(0.86, 0.84, 0.8, 1)), lineColor (vec4 = vec4(0.42, 0.34, 0.26, 1)), pinColor (vec4 = vec4(0.84, 0.68, 0.47, 1))
|
|
202
227
|
- `ColorCoords`: A crossfade in which the colors of one image displace the other
|
|
203
228
|
- `ColorDistance`: Pixels switch to the incoming image in order of how close their colors are. Params: power (float = 5)
|
|
204
229
|
- `ColorPanelWipe`: Solid color panels, slightly staggered, sweep across and cover the frame, then sweep off the far side and reveal the incoming image. Params: direction (vec2 = vec2(1, 0)), panels (int = 3), color1 (vec4 = vec4(0.98, 0.76, 0.22, 1)), color2 (vec4 = vec4(0.93, 0.33, 0.36, 1)), color3 (vec4 = vec4(0.16, 0.2, 0.42, 1)), stagger (float = 0.35), skew (float = 0.25)
|
|
205
230
|
- `ColorPhase`: A crossfade in which each color channel changes at a different time. Params: fromStep (vec4 = vec4(0, 0.2, 0.4, 0)), toStep (vec4 = vec4(0.6, 0.8, 1, 1))
|
|
206
231
|
- `ColorWrap`: Each color channel of the outgoing image is shifted and wraps around into psychedelic bands, while crossfading to the incoming image. Params: r_strength (float = 1), g_strength (float = 1), b_strength (float = 1)
|
|
207
232
|
- `Comb`: The frame is cut into interleaved strips that slide in opposite directions, each pushing the outgoing image out and the incoming one in. Params: strips (int = 10), vertical (bool = false)
|
|
233
|
+
- `ComicPanels`: The frame splits into slanted comic-book panels with gutters and ink borders; one after another in reading order, each panel lifts off the page with a zoom kick and a drop shadow and punches over to the incoming image, then the gutters close up over the full incoming image. Params: gutter (float = 0.03), gutterColor (vec4 = vec4(1, 1, 1, 1)), borderColor (vec4 = vec4(0, 0, 0, 1)), seed (float = 0)
|
|
208
234
|
- `CrazyParametricFun`: The outgoing image is pulled along a parametric curve into a psychedelic swirl. Params: a (float = 4), b (float = 1), amplitude (float = 120), smoothness (float = 0.1)
|
|
209
235
|
- `CrossWarp`: The outgoing image zooms in while the incoming one zooms out into place, sweeping from right to left
|
|
210
236
|
- `CrossZoom`: A crossfade through a strong zoom blur. Params: strength (float = 0.4)
|
|
211
237
|
- `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)
|
|
212
238
|
- `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))
|
|
213
|
-
- `Cube`: The two images are faces of a
|
|
239
|
+
- `Cube`: The two images are faces of a box that turns a quarter turn in perspective, the outgoing face darkening as it turns away, above a reflective floor. Params: persp (float = 0.7), unzoom (float = 0.3), reflection (float = 0.4), floating (float = 3), shading (float = 0.5)
|
|
214
240
|
- `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)
|
|
215
241
|
- `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))
|
|
216
242
|
- `CylinderRoll`: The frame wraps around a drum that rolls up, the outgoing image turning away over its top in a motion blur and the incoming one coming around from below and unrolling flat. Params: curvature (float = 0.8), blur (float = 0.5), shading (float = 0.6), chroma (float = 0.5), downward (bool = false)
|
|
@@ -224,12 +250,16 @@
|
|
|
224
250
|
- `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)
|
|
225
251
|
- `DisplacementMap`: A crossfade in which a displacement map (an extra grayscale texture) warps both images. Params: strength (float = 0.5). Extra textures: displacementMap
|
|
226
252
|
- `DitherDissolve`: The incoming image appears through a regular 8x8 ordered dither pattern, like a retro computer screen. Params: dotSize (float = 0.02)
|
|
253
|
+
- `DominoFall`: The outgoing image is cut into standing slats that topple backward like dominoes in a chain reaction across the frame, each one leaning onto the next and knocking it over, until they all lie flat and reveal the incoming image. Params: count (int = 12), reverse (bool = false), knock (float = 0.2), lean (float = 0.8), perspective (float = 0.8), shading (float = 0.6)
|
|
227
254
|
- `DoomMelt`: The outgoing image melts down in uneven columns, like the Doom screen wipe. Params: bars (int = 30), amplitude (float = 2), noise (float = 0.1), frequency (float = 0.5), dripScale (float = 0.5)
|
|
228
|
-
- `Doorway`: The outgoing image opens like double doors as the incoming one comes forward, with a floor reflection. Params: reflection (float = 0.4), perspective (float = 0.4), depth (float = 3)
|
|
255
|
+
- `Doorway`: The outgoing image opens like double doors swinging toward the viewer, as the incoming one comes forward from the dark room behind, with a floor reflection. Params: reflection (float = 0.4), perspective (float = 0.4), depth (float = 3)
|
|
256
|
+
- `Drape`: The outgoing image hangs like a sheet of fabric that is let go at the top: it collapses into soft, uneven folds that hide one another as the cloth bunches up and slides down out of the frame, revealing the incoming image behind it. Params: folds (float = 6), depth (float = 0.7), sway (float = 0.4), shadow (float = 0.5)
|
|
229
257
|
- `Dreamy`: A crossfade with a gentle wavy distortion
|
|
230
258
|
- `DreamyZoom`: Zooms and rotates into a bright flash, then out to the incoming image. Params: rotation (float = 6), scale (float = 1.2)
|
|
259
|
+
- `DuotoneFade`: The outgoing image is printed in two inks, shadows first, as a bold high-contrast duotone; the incoming image is printed over it in the same two inks, its dark tones landing before its highlights, then its own colors come back, highlights first. Params: shadowInk (vec4 = vec4(0.11, 0.09, 0.46, 1)), highlightInk (vec4 = vec4(1, 0.45, 0.62, 1)), contrast (float = 0.6), grain (float = 0.4)
|
|
231
260
|
- `EdgeGlow`: Both images fade through black with their edges glowing. Params: edge_thickness (float = 0.001), edge_brightness (float = 8)
|
|
232
261
|
- `EyeBlink`: Curved eyelids close from the top and bottom over the outgoing image, which blurs and dims, then open on the incoming image as it comes back into focus, as if the viewer blinked. Params: blur (float = 0.5), softness (float = 0.12), blinks (int = 1), color (vec4 = vec4(0.03, 0.02, 0.02, 1))
|
|
262
|
+
- `FacetedGlass`: The frame is seen through a pane of irregular cut-glass facets, each one showing its own shifted, zoomed and tilted view of the image, with bright beveled edges and thin dark seams; the facets turn to the incoming image one by one, then the glass flattens out and clears. Params: facets (float = 5), refraction (float = 0.1), bevel (float = 0.6), highlight (vec4 = vec4(1, 0.98, 0.92, 1)), seed (float = 0)
|
|
233
263
|
- `Fade`: A linear crossfade between the two images
|
|
234
264
|
- `FadeColor`: A fade through a solid color, black by default. Params: color (vec4 = vec4(0, 0, 0, 1)), colorPhase (float = 0.4)
|
|
235
265
|
- `FadeGrayscale`: A crossfade through grayscale. Params: intensity (float = 0.3)
|
|
@@ -243,17 +273,20 @@
|
|
|
243
273
|
- `FlowerWipe`: A flower shape with several petals grows to reveal the incoming image. Params: segments (int = 5)
|
|
244
274
|
- `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)
|
|
245
275
|
- `Fold`: The incoming image unfolds from the left while the outgoing one folds away to the right
|
|
276
|
+
- `FrostWipe`: Ice crystals grow in from the edges of the frame with feathery, branching fronts, frosting the outgoing image white and blurry until it is covered, then thaw back out to the edges on the incoming image. Params: spread (float = 0.5), scale (float = 5), blur (float = 0.5), color (vec4 = vec4(0.86, 0.93, 1, 1))
|
|
277
|
+
- `Funnel`: The outgoing image narrows into a curved funnel toward a point on the bottom edge and slides into it, its sides bending like a window minimized into a dock, revealing the incoming image behind it. Params: target (float = 0.7), curvature (float = 0.8), shadow (float = 0.5)
|
|
246
278
|
- `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
279
|
- `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))
|
|
248
280
|
- `GlitchBands`: A crossfade with glitchy horizontal bands and color shifts. Params: ampx (float = 1), ampy (float = 1)
|
|
249
281
|
- `GlitchDisplace`: Blocks of the image are displaced in a glitch that flashes into the incoming image
|
|
250
282
|
- `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)
|
|
251
283
|
- `GlitchMemories`: A crossfade with glitchy, color-shifted blocks
|
|
284
|
+
- `GlitterDissolve`: The image becomes a shimmering field of tiny diamond sequins that flip over in 3D at random moments, each lifting and tilting on its own axis and flashing a glint of light, and land on the incoming image. Params: tiles (float = 20), hexagons (bool = false), sparkle (float = 1), glint (vec3 = vec3(1, 0.97, 0.9)), seed (float = 0), backColor (vec4 = vec4(0.04, 0.04, 0.05, 1))
|
|
252
285
|
- `GlowDissolve`: The incoming image spreads over the outgoing one with a hot, glowing edge. Params: uLineWidth (float = 0.1), uSpreadClr (vec3 = vec3(1, 0, 0)), uHotClr (vec3 = vec3(0.9, 0.9, 0.2)), uPow (float = 5), uIntensity (float = 1)
|
|
253
286
|
- `GooeyWipe`: Soft, glossy blobs of liquid pop up over the outgoing image, swell and melt into each other, revealing the incoming image until they cover the whole frame. Params: blobs (float = 5), smoothness (float = 0.5), highlight (vec4 = vec4(1, 1, 1, 0.7)), shadow (vec4 = vec4(0, 0, 0, 0.3))
|
|
254
|
-
- `GridFlip`: The image splits into a grid of
|
|
287
|
+
- `GridFlip`: The image splits into a grid of cards that lift apart and turn over in perspective one after another, each one showing its part of the incoming image on its back. 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)
|
|
255
288
|
- `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))
|
|
256
|
-
- `HeartWipe`: A heart
|
|
289
|
+
- `HeartWipe`: A heart grows from the center with a little heartbeat to reveal the incoming image. Params: center (vec2 = vec2(0.5, 0.5)), smoothness (float = 0.006), pulse (float = 0.5), glowColor (vec3 = vec3(1, 0.85, 0.9)), glow (float = 0.3)
|
|
257
290
|
- `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)
|
|
258
291
|
- `Hexagonalize`: Both images turn into hexagons, crossfade, then sharpen again. Params: steps (int = 50), horizontalHexagons (float = 20)
|
|
259
292
|
- `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)
|
|
@@ -263,9 +296,12 @@
|
|
|
263
296
|
- `HsvFade`: A crossfade through the HSV color space that cycles through hues
|
|
264
297
|
- `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
298
|
- `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)
|
|
299
|
+
- `InsideCube`: The camera stands inside a cube: the outgoing image covers the wall in front of it and the view turns toward the next inner wall, so the outgoing image swings away in perspective as the incoming one turns into view, the walls darkening into the shaded inner corner between them. Params: direction (vec2 = vec2(1, 0)), fov (float = 90), shading (float = 0.6), background (vec4 = vec4(0.09, 0.09, 0.1, 1))
|
|
266
300
|
- `InvertedPageCurl`: The outgoing image curls away like a page, revealing the incoming one
|
|
267
301
|
- `Kaleidoscope`: A crossfade through a spinning kaleidoscope. Params: speed (float = 1), angle (float = 1), power (float = 1.5)
|
|
302
|
+
- `KeyholeWipe`: A keyhole grows steadily from the center until the incoming image fills the frame, its bevelled rim and inner shadow making it read as a hole cut in a plate. Params: center (vec2 = vec2(0.5, 0.5)), rim (float = 0.6), smoothness (float = 0.002)
|
|
268
303
|
- `LeafWipe`: A leaf shape grows from the center to reveal the incoming image
|
|
304
|
+
- `LedWall`: The picture zooms into a giant LED screen of round glowing diodes on a dark panel; a refresh wave sweeps across it, each diode flicking with a bright pop as it switches to the incoming image, then the diodes melt back into the plain picture. Params: cells (float = 24), glow (float = 0.6), flash (float = 0.7), zoom (float = 0.15), triads (bool = false), direction (vec2 = vec2(1, 0)), panel (vec4 = vec4(0.02, 0.02, 0.025, 1))
|
|
269
305
|
- `LeftRight`: The outgoing image shrinks away to the left while the incoming one slides in from the right
|
|
270
306
|
- `LensFlare`: A bright light sweeps across the frame and flares the lens: a long thin horizontal streak, a glowing core and a trail of colored ghost reflections; at its peak the incoming image spreads out from the light under its glare. Params: angle (float = -12), height (float = 0.18), intensity (float = 1), color (vec3 = vec3(0.35, 0.6, 1))
|
|
271
307
|
- `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))
|
|
@@ -276,11 +312,13 @@
|
|
|
276
312
|
- `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)
|
|
277
313
|
- `LumaWipe`: A wipe that follows the brightness of a grayscale mask (the luma texture). Extra textures: luma
|
|
278
314
|
- `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)
|
|
315
|
+
- `MoireWipe`: Two sets of fine concentric rings, centered on two points that drift toward each other, overlay the image and interfere into a shifting moire of wide bands; the bands open onto the incoming image and widen until it fills the frame, while the thin dark and light ring lines fade away. Params: density (float = 36), bands (float = 3), drift (float = 0.25), lines (float = 0.5)
|
|
279
316
|
- `Morph`: A crossfade in which each image is displaced by the other's colors, like a morph. Params: strength (float = 0.1)
|
|
280
317
|
- `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)
|
|
281
318
|
- `MultiplyBlend`: A crossfade through the multiplied blend of both images
|
|
282
319
|
- `NoiseDissolve`: The incoming image appears pixel by pixel in random noise
|
|
283
320
|
- `Overexposure`: A crossfade through a washed-out, overexposed white. Params: strength (float = 0.6)
|
|
321
|
+
- `PaperFold`: The outgoing image is a sheet of paper that folds in half in 3D along a vertical crease, then in half again along a horizontal one, its lit and shaded faces turning to show the back of the paper, and the small folded packet flies off the frame, leaving its shadow on the incoming image underneath. Params: direction (vec2 = vec2(1, 0.5)), tilt (float = 0.6), shading (float = 0.6), paper (vec4 = vec4(0.95, 0.94, 0.9, 1))
|
|
284
322
|
- `PaperTear`: The outgoing image tears in two along a ragged line, and the halves are pulled apart to reveal the incoming one. Params: roughness (float = 0.12), tilt (float = 0.1), rim (float = 0.012), paper (vec4 = vec4(1, 0.98, 0.94, 1)), shadow (vec4 = vec4(0, 0, 0, 0.35))
|
|
285
323
|
- `PerlinDissolve`: The incoming image appears through blobs of Perlin noise. Params: scale (float = 4), smoothness (float = 0.01), seed (float = 12.9898)
|
|
286
324
|
- `PhotoDevelop`: The outgoing image washes out to a blank cream card, then the incoming image develops on it like an instant photo: shadows first, faint and tinted, then its contrast and colors come up and it settles. Params: card (vec4 = vec4(0.93, 0.91, 0.85, 1)), wash (float = 0.35), tint (float = 0.8)
|
|
@@ -294,25 +332,29 @@
|
|
|
294
332
|
- `PowerKaleido`: The image folds into an animated kaleidoscope before revealing the incoming one. Params: scale (float = 2), z (float = 1.5), speed (float = 5)
|
|
295
333
|
- `Prisms`: The frame is cut into 3D prisms that turn in a cascade, like a rotating billboard, from the outgoing image on one face to the incoming one on the next. Params: slats (int = 8), stagger (float = 0.45), perspective (float = 1), shading (float = 0.6), horizontal (bool = false), backColor (vec4 = vec4(0, 0, 0, 1))
|
|
296
334
|
- `Puzzle`: The image is cut into jigsaw puzzle pieces that lift one after another and fall away, revealing the incoming image. Params: pieces (float = 5), shadow (float = 0.6)
|
|
335
|
+
- `PuzzleCube`: The frame becomes the face of a twisty cube puzzle: dark gaps open between its cubies, then whole columns and rows of cubies turn a quarter turn around the cube one after another in 3D, each bringing the incoming image from the cube's side to the front, until the gaps close on the incoming image. Params: size (int = 3), gap (float = 0.012), shading (float = 0.6), background (vec4 = vec4(0.04, 0.04, 0.05, 1))
|
|
297
336
|
- `RadialWipe`: A radial wipe that sweeps around the center like a clock hand. Params: smoothness (float = 1)
|
|
298
337
|
- `RandomSquares`: The incoming image appears in random squares. Params: size (ivec2 = ivec2(10, 10)), smoothness (float = 0.5)
|
|
299
338
|
- `RectangleCover`: A rectangle grows from the center to cover the outgoing image, then shrinks to reveal the incoming one. Params: bgcolor (vec4 = vec4(0, 0, 0, 1))
|
|
300
339
|
- `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))
|
|
301
340
|
- `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)
|
|
302
341
|
- `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)
|
|
342
|
+
- `RibbonTwist`: The image twists like a ribbon around its horizontal center line, the twist travelling smoothly across its width, the outgoing image on its front and the incoming one on its back. Params: spread (float = 0.8), perspective (float = 0.4), shading (float = 0.6), vertical (bool = false), backColor (vec4 = vec4(0, 0, 0, 1))
|
|
303
343
|
- `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)
|
|
304
344
|
- `Ripple`: Ripples spread from the center while crossfading. Params: amplitude (float = 100), speed (float = 50)
|
|
305
345
|
- `Rolls`: The outgoing image rolls away around a corner, revealing the incoming one. Params: type (int = 0), RotDown (bool = false)
|
|
306
346
|
- `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))
|
|
307
347
|
- `RotateScaleVanish`: The outgoing image spins and shrinks away over the incoming one. Params: FadeInSecond (bool = true), ReverseEffect (bool = false), ReverseRotation (bool = false)
|
|
308
348
|
- `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)
|
|
309
|
-
- `Shatter`: The outgoing image
|
|
349
|
+
- `Shatter`: The outgoing image cracks like a pane of glass from an impact point, then its shards break loose from the impact outward, tumbling in 3D and falling away with gravity to reveal the incoming image behind. Params: center (vec2 = vec2(0.5, 0.5)), shards (float = 6), gravity (float = 1), seed (float = 0)
|
|
310
350
|
- `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)
|
|
311
351
|
- `SimpleFlip`: The outgoing image flips around the vertical axis into the incoming one
|
|
312
352
|
- `SimpleZoom`: Zooms into the outgoing image, then fades to the incoming one. Params: zoom_quickness (float = 0.8)
|
|
313
353
|
- `SimpleZoomOut`: The incoming image zooms out into place while fading in. Params: zoom_quickness (float = 0.8), fade (bool = true)
|
|
354
|
+
- `SketchDissolve`: The outgoing image fades back to blank paper while the incoming one is drawn on it in pencil, outlines first and then hatching in the shadows, before its shading and colors fill in until the picture is complete. Params: lineWidth (float = 1.5), edges (float = 1), hatching (float = 0.6), paper (vec4 = vec4(0.96, 0.94, 0.89, 1)), ink (vec4 = vec4(0.16, 0.16, 0.2, 1))
|
|
314
355
|
- `SlideAwayRight`: The outgoing image slides to the right, uncovering a crossfade to the incoming one
|
|
315
356
|
- `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)
|
|
357
|
+
- `SlotReels`: The frame is cut into vertical reels that spin downward like drums, motion-blurred with speed, carrying the outgoing image then the incoming one, and stop one after another from left to right with a small mechanical bounce. Params: reels (int = 5), blur (float = 0.6), stagger (float = 0.45), bounce (float = 0.5), separator (vec4 = vec4(0.04, 0.04, 0.05, 1))
|
|
316
358
|
- `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))
|
|
317
359
|
- `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)
|
|
318
360
|
- `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))
|
|
@@ -320,6 +362,7 @@
|
|
|
320
362
|
- `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)
|
|
321
363
|
- `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)
|
|
322
364
|
- `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)
|
|
365
|
+
- `SplitFlap`: The frame becomes a split-flap board: in each cell the top half of the outgoing image flips down on a hinge across the middle, cell after cell, its back bringing the bottom half of the incoming image. Params: size (ivec2 = ivec2(8, 6)), stagger (float = 0.6), randomness (float = 0.3), flaps (int = 1), gap (float = 0.004), perspective (float = 0.35), shading (float = 0.4), background (vec4 = vec4(0, 0, 0, 1))
|
|
323
366
|
- `SplitSlideInHorizontal`: The incoming image slides in as two halves moving horizontally in opposite directions. Params: reverse (bool = false)
|
|
324
367
|
- `SplitSlideInOutHorizontal`: The halves of both images slide horizontally in opposite directions, out and in at once. Params: reverse (bool = false)
|
|
325
368
|
- `SplitSlideInOutVertical`: The halves of both images slide vertically in opposite directions, out and in at once. Params: reverse (bool = false)
|
|
@@ -335,10 +378,12 @@
|
|
|
335
378
|
- `StretchSlide`: The outgoing image stretches out long as it shoots away to one side, pulling in the incoming one squashed behind it, which overshoots and springs back to its shape. Params: direction (vec2 = vec2(-1, 0)), stretch (float = 0.6), bounce (float = 0.6)
|
|
336
379
|
- `StripDatamoshGlitch`: A datamosh glitch: torn strips, chroma shifts and scan noise drag the outgoing image into the incoming one. Params: strength (float = 1), horizontalBars (float = 42), verticalSlits (float = 18), tear (float = 0.18), chroma (float = 0.032), residue (float = 0.62), noiseAmount (float = 0.16), scanAmount (float = 0.13), flashAmount (float = 0.2)
|
|
337
380
|
- `Swap`: The two images swap places in 3D, with a floor reflection. Params: reflection (float = 0.4), perspective (float = 0.2), depth (float = 3)
|
|
338
|
-
- `Swirl`:
|
|
381
|
+
- `Swirl`: The image twists into a round swirl around the center that peaks mid-way, where the outgoing image dissolves into the incoming one, then untwists. Params: strength (float = 1), radius (float = 0.9), center (vec2 = vec2(0.5, 0.5))
|
|
339
382
|
- `TangentMotionBlur`: The outgoing image is flung away along a curve with motion blur
|
|
340
383
|
- `TilesWave`: The incoming image is revealed tile by tile in a diagonal wave. Params: tileCount (ivec2 = ivec2(8, 8)), flipX (bool = true), flipY (bool = false)
|
|
341
384
|
- `TopBottom`: The outgoing image shrinks away upward while the incoming one slides in from the bottom
|
|
385
|
+
- `TruchetWipe`: A grid of square tiles, each holding two quarter-circle arcs, links into long winding paths; starting from the middle and spreading outward, the paths are drawn as thin lines of the incoming image, then thicken into bands with a dark outline and a soft shadow until they merge over the whole frame. Params: cells (float = 8), outline (float = 0.6), spread (float = 0.75)
|
|
386
|
+
- `Tumble`: The outgoing image is thrown away like a rigid card, tumbling end over end with a slight spin as it flies off into the distance in perspective, its darker back showing on every flip and its soft shadow shrinking on the incoming image behind it. Params: flips (float = 2), spin (float = 0.15), direction (vec2 = vec2(0, 0.3)), perspective (float = 0.6), shading (float = 0.7)
|
|
342
387
|
- `Tunnel`: The camera flies down a tunnel lined with the outgoing image toward the incoming one, which opens at its far end and grows to fill the frame. Params: speed (float = 6), twist (float = 0.5)
|
|
343
388
|
- `TvLostSignal`: A crossfade with drifting tracking lines and tearing, like a TV losing its signal
|
|
344
389
|
- `TvRoll`: The outgoing image rolls faster and faster, like an old TV losing its vertical hold, then the roll slows down and locks on the incoming image. Params: rolls (int = 3), barHeight (float = 0.12), barColor (vec4 = vec4(0, 0, 0, 1))
|
|
@@ -350,7 +395,8 @@
|
|
|
350
395
|
- `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)
|
|
351
396
|
- `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
397
|
- `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)
|
|
353
|
-
- `WaterDrop`:
|
|
398
|
+
- `WaterDrop`: A drop falls into the image like into still water: round ripples spread out from where it hits, bending the image with glints on their slopes, the incoming image shows up inside the leading ripple, and the water calms down. Params: amplitude (float = 30), speed (float = 30), center (vec2 = vec2(0.5, 0.5)), refraction (float = 0.015), highlight (float = 0.5)
|
|
399
|
+
- `WaveWipe`: A breaking wave crashes across the frame, its lip curling over in front of its face and throwing foam and spray ahead, its shadow darkening the outgoing image; the incoming image is left behind it, tinted and bent by the water, clearing as the wave passes. Params: direction (vec2 = vec2(1, 0)), curl (float = 0.3), foam (float = 0.6), refraction (float = 0.04), water (vec4 = vec4(0.05, 0.36, 0.46, 0.75)), foamColor (vec4 = vec4(1, 1, 1, 1))
|
|
354
400
|
- `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))
|
|
355
401
|
- `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)
|
|
356
402
|
- `WhipSpin`: The camera rolls faster and faster around the center of the frame, streaking the outgoing image in a spin blur, then the incoming one takes over mid-spin and slows to a stop. Params: turns (float = 1), blur (float = 0.5), chroma (float = 0.6), zoom (float = 0.25)
|
package/sksl/BookFlip.sksl
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// BookFlip — generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/BookFlip.glsl
|
|
2
2
|
// Author: hong
|
|
3
3
|
// License: MIT
|
|
4
|
-
// Description: The outgoing image
|
|
4
|
+
// Description: The right half of the outgoing image is a book page that turns over from right to left on the spine at the middle of the frame, curling near its free edge, its back bringing the left half of the incoming image
|
|
5
5
|
|
|
6
6
|
uniform shader _from;
|
|
7
7
|
uniform shader _to;
|
|
@@ -12,35 +12,132 @@ uniform float ratio;
|
|
|
12
12
|
vec4 getFromColor(vec2 uv) { return vec4(unpremul(_from.eval(vec2(uv.x, 1.0 - uv.y) * _resolution))); }
|
|
13
13
|
vec4 getToColor(vec2 uv) { return vec4(unpremul(_to.eval(vec2(uv.x, 1.0 - uv.y) * _resolution))); }
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
uniform float perspective;
|
|
16
|
+
|
|
17
|
+
uniform float shading;
|
|
18
|
+
|
|
19
|
+
uniform float curl;
|
|
20
|
+
|
|
21
|
+
const float PI = 3.141592653589793;
|
|
22
|
+
|
|
23
|
+
const float EDGE = 0.0015;
|
|
24
|
+
|
|
25
|
+
const float CURL_PART = 0.45;
|
|
26
|
+
|
|
27
|
+
const vec2 LIGHT = vec2(-0.447214, 0.894427);
|
|
28
|
+
|
|
29
|
+
float cross2(vec2 a, vec2 b) {
|
|
30
|
+
return a.x * b.y - a.y * b.x;
|
|
17
31
|
}
|
|
18
32
|
|
|
19
|
-
|
|
20
|
-
float
|
|
21
|
-
|
|
22
|
-
return vec2(skewX, skewY);
|
|
33
|
+
float pageAngle() {
|
|
34
|
+
float p = clamp(progress, 0.0, 1.0);
|
|
35
|
+
return PI * p * (0.35 + p * (1.95 - 1.3 * p));
|
|
23
36
|
}
|
|
24
37
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
38
|
+
vec3 hitPage(vec2 eye, vec2 dir, float a, float k, float straight, vec2 c, float w) {
|
|
39
|
+
vec3 best = vec3(-1.0, 0.0, 0.0);
|
|
40
|
+
vec2 d = vec2(cos(a), sin(a));
|
|
41
|
+
|
|
42
|
+
float den = cross2(d, dir);
|
|
43
|
+
if (abs(den) > 1e-7) {
|
|
44
|
+
float u = cross2(eye, dir) / den;
|
|
45
|
+
float t = cross2(eye, d) / den;
|
|
46
|
+
if (t > 0.0 && u >= 0.0 && u <= straight) best = vec3(t, u, a);
|
|
47
|
+
}
|
|
48
|
+
if (k != 0.0) {
|
|
49
|
+
float r = 1.0 / k;
|
|
50
|
+
vec2 oc = eye - c;
|
|
51
|
+
float qa = dot(dir, dir);
|
|
52
|
+
float qb = dot(oc, dir);
|
|
53
|
+
float disc = qb * qb - qa * (dot(oc, oc) - r * r);
|
|
54
|
+
if (disc >= 0.0) {
|
|
55
|
+
float sq = sqrt(disc);
|
|
56
|
+
for (int i = 0; i < 2; i++) {
|
|
57
|
+
float t = (-qb + (i == 0 ? -sq : sq)) / qa;
|
|
58
|
+
if (t > 0.0 && (best.x < 0.0 || t < best.x)) {
|
|
59
|
+
|
|
60
|
+
vec2 v = (oc + t * dir) * k;
|
|
61
|
+
float db = atan(v.x, -v.y) - a;
|
|
62
|
+
db -= 2.0 * PI * floor((db + PI) / (2.0 * PI));
|
|
63
|
+
float s = db / k;
|
|
64
|
+
if (s >= 0.0 && s <= w - straight) best = vec3(t, straight + s, a + db);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return best;
|
|
29
70
|
}
|
|
30
71
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return vec4(vec3(shadeVal ), 1.0);
|
|
72
|
+
vec2 curlPoint(vec2 c, float k, float b) {
|
|
73
|
+
return c + vec2(sin(b), -cos(b)) / k;
|
|
34
74
|
}
|
|
35
75
|
|
|
36
|
-
vec4 transition (vec2
|
|
37
|
-
float
|
|
76
|
+
vec4 transition (vec2 uv) {
|
|
77
|
+
float a = pageAngle();
|
|
78
|
+
float lift = sin(a);
|
|
79
|
+
|
|
80
|
+
float w = 0.5 * ratio;
|
|
81
|
+
float x = uv.x * ratio - w;
|
|
82
|
+
|
|
83
|
+
float dist = w * (1.0 + 1.5 / max(perspective, 0.01));
|
|
84
|
+
vec2 eye = vec2(0.0, dist);
|
|
85
|
+
vec2 dir = vec2(x, -dist);
|
|
38
86
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
87
|
+
|
|
88
|
+
vec2 d = vec2(cos(a), sin(a));
|
|
89
|
+
float k = -clamp(curl, 0.0, 1.0) * lift / (CURL_PART * w);
|
|
90
|
+
if (abs(k) * CURL_PART * w <= 1e-4) k = 0.0;
|
|
91
|
+
float straight = k != 0.0 ? (1.0 - CURL_PART) * w : w;
|
|
92
|
+
vec2 c = straight * d + vec2(-d.y, d.x) / (k != 0.0 ? k : 1.0);
|
|
93
|
+
vec2 bend = straight * d;
|
|
94
|
+
vec2 middle = k != 0.0 ? curlPoint(c, k, a + 0.5 * k * (w - straight)) : bend;
|
|
95
|
+
vec2 edge = k != 0.0 ? curlPoint(c, k, a + k * (w - straight)) : bend;
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
float aa = EDGE * min(20.0 * lift, 1.0);
|
|
99
|
+
vec4 img = vec4(0.0);
|
|
100
|
+
float m = 0.0;
|
|
101
|
+
vec3 hit = hitPage(eye, dir, a, k, straight, c, w);
|
|
102
|
+
if (hit.x > 0.0) {
|
|
103
|
+
float t = hit.x;
|
|
104
|
+
float u = hit.y;
|
|
105
|
+
float b = hit.z;
|
|
106
|
+
vec2 pt = eye + t * dir;
|
|
107
|
+
|
|
108
|
+
float y = clamp(0.5 + (uv.y - 0.5) * t, 0.0, 1.0);
|
|
109
|
+
|
|
110
|
+
float edgeX = edge.x * dist / max(dist - edge.y, 1e-4);
|
|
111
|
+
m = aa > 0.0 && u > (k != 0.0 ? straight : 0.5 * w) ? clamp(abs(x - edgeX) / aa, 0.0, 1.0) : 1.0;
|
|
112
|
+
vec2 normal = vec2(-sin(b), cos(b));
|
|
113
|
+
bool front = dot(normal, eye - pt) > 0.0;
|
|
114
|
+
img = front
|
|
115
|
+
? getFromColor(vec2(clamp(w + u, w, ratio) / ratio, y))
|
|
116
|
+
: getToColor(vec2(clamp(w - u, 0.0, w) / ratio, y));
|
|
117
|
+
|
|
118
|
+
float diffuse = max(dot(front ? normal : -normal, LIGHT), 0.0) / LIGHT.y;
|
|
119
|
+
float shade = mix(1.0, 0.25 + 0.75 * diffuse, shading);
|
|
120
|
+
shade *= 1.0 - 0.35 * shading * lift * exp(-u / (0.04 * w));
|
|
121
|
+
img.rgb *= shade;
|
|
122
|
+
if (m >= 1.0) return img;
|
|
43
123
|
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
vec4 color = x < 0.0 ? getFromColor(uv) : getToColor(uv);
|
|
127
|
+
|
|
128
|
+
vec2 toEdge = edge - vec2(x, 0.0);
|
|
129
|
+
float cosEdge = toEdge.x / max(length(toEdge), 1e-6);
|
|
130
|
+
float blocked = 0.5 * abs((x < 0.0 ? 1.0 : -1.0) - cosEdge);
|
|
131
|
+
float shadow = blocked * blocked * (3.0 - 2.0 * blocked);
|
|
132
|
+
|
|
133
|
+
float slope = -LIGHT.x / LIGHT.y;
|
|
134
|
+
vec3 reach = vec3(bend.x, middle.x, edge.x) + slope * vec3(bend.y, middle.y, edge.y);
|
|
135
|
+
float lo = min(0.0, min(reach.x, min(reach.y, reach.z)));
|
|
136
|
+
float hi = max(0.0, max(reach.x, max(reach.y, reach.z)));
|
|
137
|
+
float soft = max(0.25 * edge.y, 1e-5);
|
|
138
|
+
shadow = max(0.5 * shadow, 0.85 * clamp(min(x - lo, hi - x) / soft + 0.5, 0.0, 1.0) * min(4.0 * lift, 1.0));
|
|
139
|
+
color.rgb *= 1.0 - shading * shadow;
|
|
140
|
+
return mix(color, img, m);
|
|
44
141
|
}
|
|
45
142
|
|
|
46
143
|
half4 main(float2 _coord) {
|