gl-transitions 3.2.0 → 3.4.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 +270 -0
- package/README.md +1 -0
- package/compatibility.json +2399 -394
- package/gl-transitions.js +1 -1
- package/gl-transitions.json +1 -1
- package/glsl3/Accordion.glsl +1 -10
- package/glsl3/ApertureWipe.glsl +0 -2
- package/glsl3/ArrowWipe.glsl +0 -7
- package/glsl3/Ascii.glsl +1 -12
- package/glsl3/BandWipe.glsl +0 -7
- package/glsl3/BeadUp.glsl +96 -0
- package/glsl3/BillowWipe.glsl +93 -0
- package/glsl3/Bite.glsl +167 -0
- package/glsl3/BlockCover.glsl +1 -4
- package/glsl3/BlockSlide.glsl +1 -11
- package/glsl3/BloomDissolve.glsl +0 -9
- package/glsl3/Blossom.glsl +110 -0
- package/glsl3/BokehDissolve.glsl +1 -8
- package/glsl3/BookFlip.glsl +1 -13
- package/glsl3/Bottleneck.glsl +41 -0
- package/glsl3/Bounce.glsl +1 -1
- package/glsl3/BowTieHorizontal.glsl +1 -8
- package/glsl3/BrickCollapse.glsl +140 -0
- package/glsl3/BrushWipe.glsl +5 -6
- package/glsl3/BurnThrough.glsl +2 -3
- package/glsl3/ButterflyFlight.glsl +69 -0
- package/glsl3/ButterflyWaveScrawler.glsl +0 -3
- package/glsl3/CameraShake.glsl +2 -7
- package/glsl3/CardDeal.glsl +125 -0
- package/glsl3/CardSwipe.glsl +2 -9
- package/glsl3/CellDissolve.glsl +0 -7
- package/glsl3/CircleBurst.glsl +1 -9
- package/glsl3/CircleIris.glsl +1 -0
- package/glsl3/CirclePacking.glsl +106 -0
- package/glsl3/Cleave.glsl +80 -0
- package/glsl3/Clothesline.glsl +6 -27
- package/glsl3/CloudDive.glsl +72 -0
- package/glsl3/CodeRain.glsl +0 -12
- package/glsl3/CoinSettle.glsl +80 -0
- package/glsl3/ColorPanelWipe.glsl +2 -9
- package/glsl3/Comb.glsl +0 -1
- package/glsl3/ComicPanels.glsl +0 -16
- package/glsl3/Condensation.glsl +154 -0
- package/glsl3/CorePunch.glsl +152 -0
- package/glsl3/CornerPin.glsl +75 -0
- package/glsl3/Crankshaft.glsl +98 -0
- package/glsl3/Craze.glsl +123 -0
- package/glsl3/CrossZoom.glsl +1 -1
- package/glsl3/Crumple.glsl +1 -11
- package/glsl3/Cube.glsl +1 -9
- package/glsl3/CurtainRise.glsl +0 -9
- package/glsl3/Curtains.glsl +3 -6
- package/glsl3/CurvedWipe.glsl +0 -3
- package/glsl3/CylinderRoll.glsl +2 -10
- package/glsl3/Cymatics.glsl +83 -0
- package/glsl3/DamBreak.glsl +103 -0
- package/glsl3/Deinterleave.glsl +81 -0
- package/glsl3/DiamondWipe.glsl +0 -1
- package/glsl3/DiffuseDissolve.glsl +44 -0
- package/glsl3/DirectionalScaled.glsl +1 -0
- package/glsl3/DiscCascade.glsl +74 -0
- package/glsl3/Disintegrate.glsl +1 -9
- package/glsl3/DominoFall.glsl +1 -12
- package/glsl3/Donut.glsl +135 -0
- package/glsl3/DoomMelt.glsl +1 -5
- package/glsl3/Doorway.glsl +1 -9
- package/glsl3/Drape.glsl +1 -15
- package/glsl3/DreamyZoom.glsl +2 -10
- package/glsl3/DropHop.glsl +107 -0
- package/glsl3/DuotoneFade.glsl +1 -3
- package/glsl3/EchoSlide.glsl +86 -0
- package/glsl3/EqualizerWipe.glsl +103 -0
- package/glsl3/EyeBlink.glsl +0 -7
- package/glsl3/FacetedGlass.glsl +0 -17
- package/glsl3/Faint.glsl +69 -0
- package/glsl3/FallOver.glsl +0 -2
- package/glsl3/FalseReflection.glsl +61 -0
- package/glsl3/FieldReversal.glsl +114 -0
- package/glsl3/FilmBurn.glsl +1 -0
- package/glsl3/FilmDissolve.glsl +0 -4
- package/glsl3/FilmLeader.glsl +185 -0
- package/glsl3/FilmStrip.glsl +1 -12
- package/glsl3/Fisheye.glsl +1 -0
- package/glsl3/FlameWipe.glsl +1 -22
- package/glsl3/FlowDissolve.glsl +85 -0
- package/glsl3/Flutter.glsl +107 -0
- package/glsl3/FrostWipe.glsl +3 -18
- package/glsl3/Funnel.glsl +0 -7
- package/glsl3/FurShake.glsl +112 -0
- package/glsl3/Gallery.glsl +3 -9
- package/glsl3/Gape.glsl +67 -0
- package/glsl3/GeometricCollage.glsl +231 -0
- package/glsl3/GlassRelief.glsl +75 -0
- package/glsl3/GlintDissolve.glsl +1 -10
- package/glsl3/GlitchDisplace.glsl +0 -3
- package/glsl3/GlitchFlicker.glsl +5 -6
- package/glsl3/GlitchMemories.glsl +1 -1
- package/glsl3/GlitterDissolve.glsl +0 -15
- package/glsl3/Globe.glsl +98 -0
- package/glsl3/GlowDissolve.glsl +2 -1
- package/glsl3/GoldenSpiral.glsl +84 -0
- package/glsl3/GooeyWipe.glsl +3 -6
- package/glsl3/GravityLens.glsl +0 -5
- package/glsl3/GridFlip.glsl +1 -15
- package/glsl3/Halftone.glsl +1 -3
- package/glsl3/HeartWipe.glsl +0 -2
- package/glsl3/HeatHaze.glsl +1 -10
- package/glsl3/HerringboneFold.glsl +85 -0
- package/glsl3/HingedSquares.glsl +112 -0
- package/glsl3/Hologram.glsl +1 -18
- package/glsl3/HoneyDrip.glsl +119 -0
- package/glsl3/Honeycomb.glsl +0 -4
- package/glsl3/HorizontalClose.glsl +1 -0
- package/glsl3/HorizontalHold.glsl +57 -0
- package/glsl3/HyperbolicMosaic.glsl +91 -0
- package/glsl3/Inchworm.glsl +110 -0
- package/glsl3/InkBleed.glsl +2 -6
- package/glsl3/InsetWipe.glsl +1 -4
- package/glsl3/InsideCube.glsl +0 -10
- package/glsl3/InterlaceWipe.glsl +60 -0
- package/glsl3/InvertedPageCurl.glsl +2 -5
- package/glsl3/IrisFold.glsl +61 -0
- package/glsl3/KeyholeWipe.glsl +0 -7
- package/glsl3/Kite.glsl +125 -0
- package/glsl3/Knead.glsl +125 -0
- package/glsl3/LayoutGrid.glsl +134 -0
- package/glsl3/LeafWipe.glsl +2 -4
- package/glsl3/LedWall.glsl +0 -14
- package/glsl3/LensFlare.glsl +0 -13
- package/glsl3/LensPush.glsl +76 -0
- package/glsl3/LensWipe.glsl +74 -0
- package/glsl3/LichtenbergBurn.glsl +88 -0
- package/glsl3/LightRays.glsl +2 -12
- package/glsl3/LightStreaks.glsl +0 -8
- package/glsl3/LightWipe.glsl +1 -13
- package/glsl3/LightningFlash.glsl +1 -14
- package/glsl3/LightningRift.glsl +91 -0
- package/glsl3/LineFeed.glsl +39 -0
- package/glsl3/LiquidFill.glsl +0 -13
- package/glsl3/LissajousTiles.glsl +3 -4
- package/glsl3/LuminanceMelt.glsl +1 -23
- package/glsl3/MarblingDissolve.glsl +80 -0
- package/glsl3/MicroBrickCascade.glsl +88 -0
- package/glsl3/MoireWipe.glsl +0 -9
- package/glsl3/Nightfall.glsl +61 -0
- package/glsl3/NoiseDissolve.glsl +1 -1
- package/glsl3/OutlineCrumble.glsl +105 -0
- package/glsl3/OutlineFill.glsl +61 -0
- package/glsl3/OutlineTear.glsl +93 -0
- package/glsl3/Overexposure.glsl +0 -1
- package/glsl3/PaintBucket.glsl +65 -0
- package/glsl3/PaintDissolve.glsl +175 -0
- package/glsl3/PaperFold.glsl +1 -12
- package/glsl3/PaperLayers.glsl +136 -0
- package/glsl3/PaperPlane.glsl +166 -0
- package/glsl3/PaperTear.glsl +1 -5
- package/glsl3/ParallaxPush.glsl +84 -0
- package/glsl3/Perforate.glsl +82 -0
- package/glsl3/PerlinDissolve.glsl +0 -6
- package/glsl3/PhotoDevelop.glsl +1 -6
- package/glsl3/PinchLift.glsl +114 -0
- package/glsl3/Pinwheel.glsl +2 -1
- package/glsl3/PixelStretch.glsl +1 -3
- package/glsl3/Pixelize.glsl +0 -2
- package/glsl3/PlasmaDissolve.glsl +0 -5
- package/glsl3/PlusWipe.glsl +0 -2
- package/glsl3/PointCharges.glsl +79 -0
- package/glsl3/PopIn.glsl +1 -4
- package/glsl3/PosterPaste.glsl +200 -0
- package/glsl3/PowerKaleido.glsl +0 -1
- package/glsl3/PrimaryLights.glsl +62 -0
- package/glsl3/Prisms.glsl +0 -4
- package/glsl3/ProjectorThrow.glsl +66 -0
- package/glsl3/Pupil.glsl +169 -0
- package/glsl3/Puzzle.glsl +1 -8
- package/glsl3/PuzzleCube.glsl +0 -10
- package/glsl3/QuadTurn.glsl +182 -0
- package/glsl3/QuadtreeBlocks.glsl +95 -0
- package/glsl3/RadialWipe.glsl +1 -1
- package/glsl3/RainPuddle.glsl +81 -0
- package/glsl3/Reassemble.glsl +149 -0
- package/glsl3/RectangleCover.glsl +0 -2
- package/glsl3/RectangleIris.glsl +0 -2
- package/glsl3/ReededGlass.glsl +66 -0
- package/glsl3/Reflow.glsl +55 -0
- package/glsl3/Refraction.glsl +0 -8
- package/glsl3/Revolve.glsl +1 -4
- package/glsl3/RibbonTwist.glsl +0 -4
- package/glsl3/RingSpin.glsl +0 -3
- package/glsl3/RingsWipe.glsl +0 -4
- package/glsl3/Ripple.glsl +1 -0
- package/glsl3/RotateScaleFade.glsl +1 -0
- package/glsl3/RotateScaleVanish.glsl +1 -1
- package/glsl3/Runway.glsl +92 -0
- package/glsl3/SandDrift.glsl +102 -0
- package/glsl3/SawtoothWipe.glsl +0 -4
- package/glsl3/ScreenPrintWipe.glsl +152 -0
- package/glsl3/SequinStroke.glsl +158 -0
- package/glsl3/Shatter.glsl +0 -14
- package/glsl3/Shockwave.glsl +90 -0
- package/glsl3/ShoreWash.glsl +133 -0
- package/glsl3/Shred.glsl +0 -6
- package/glsl3/ShutterWipe.glsl +60 -0
- package/glsl3/SimpleZoomOut.glsl +1 -0
- package/glsl3/SketchDissolve.glsl +0 -8
- package/glsl3/SkyLanterns.glsl +123 -0
- package/glsl3/SlashSplit.glsl +86 -0
- package/glsl3/SlideProjector.glsl +125 -0
- package/glsl3/SlitStretch.glsl +71 -0
- package/glsl3/SlitThread.glsl +91 -0
- package/glsl3/SlotReels.glsl +0 -13
- package/glsl3/SmokeDissolve.glsl +1 -6
- package/glsl3/SnakeBlockWipe.glsl +0 -5
- package/glsl3/Snap.glsl +92 -0
- package/glsl3/Snapshot.glsl +2 -8
- package/glsl3/Snowflake.glsl +119 -0
- package/glsl3/Soak.glsl +105 -0
- package/glsl3/SoapDrop.glsl +108 -0
- package/glsl3/SoapFilm.glsl +71 -0
- package/glsl3/SourceSink.glsl +62 -0
- package/glsl3/SpeedLines.glsl +93 -0
- package/glsl3/Sphere.glsl +0 -9
- package/glsl3/SpinningTop.glsl +173 -0
- package/glsl3/SpiralBlockWipe.glsl +0 -6
- package/glsl3/SpiralLines.glsl +66 -0
- package/glsl3/SplatterWipe.glsl +1 -8
- package/glsl3/SplitFlap.glsl +1 -5
- package/glsl3/SpotlightWipe.glsl +1 -4
- package/glsl3/SquaresWipe.glsl +1 -0
- package/glsl3/Steamroll.glsl +43 -0
- package/glsl3/StereoViewer.glsl +5 -24
- package/glsl3/StickySplit.glsl +105 -0
- package/glsl3/StopMotion.glsl +112 -0
- package/glsl3/Stratify.glsl +74 -0
- package/glsl3/StretchSlide.glsl +0 -5
- package/glsl3/StripDatamoshGlitch.glsl +0 -6
- package/glsl3/StrobeToss.glsl +78 -0
- package/glsl3/Subdivide.glsl +113 -0
- package/glsl3/Swap.glsl +0 -1
- package/glsl3/Swim.glsl +131 -0
- package/glsl3/Swirl.glsl +0 -5
- package/glsl3/Tableau.glsl +90 -0
- package/glsl3/TangentMotionBlur.glsl +5 -14
- package/glsl3/TileBlast.glsl +182 -0
- package/glsl3/TileConveyor.glsl +144 -0
- package/glsl3/TileRings.glsl +147 -0
- package/glsl3/TileShuffle.glsl +221 -0
- package/glsl3/TriangleFlip.glsl +181 -0
- package/glsl3/TruchetWipe.glsl +0 -9
- package/glsl3/Tumble.glsl +0 -10
- package/glsl3/Tunnel.glsl +0 -2
- package/glsl3/TvLostSignal.glsl +0 -4
- package/glsl3/TvRoll.glsl +0 -3
- package/glsl3/TvStatic.glsl +0 -1
- package/glsl3/TvTurnOff.glsl +1 -2
- package/glsl3/Umbrella.glsl +119 -0
- package/glsl3/Unbox.glsl +198 -0
- package/glsl3/UndulatingBurnOut.glsl +1 -1
- package/glsl3/Unstack.glsl +141 -0
- package/glsl3/Unstir.glsl +61 -0
- package/glsl3/Vaporize.glsl +115 -0
- package/glsl3/VerticalClose.glsl +1 -0
- package/glsl3/VhsTracking.glsl +5 -15
- package/glsl3/ViscousFingers.glsl +116 -0
- package/glsl3/Vortex.glsl +3 -12
- package/glsl3/WarpSpeed.glsl +0 -14
- package/glsl3/WaterDrop.glsl +0 -10
- package/glsl3/WatercolorDissolve.glsl +166 -0
- package/glsl3/WaterfallWipe.glsl +139 -0
- package/glsl3/WaveWipe.glsl +0 -15
- package/glsl3/WedgeWipe.glsl +2 -4
- package/glsl3/WhipPan.glsl +0 -1
- package/glsl3/WhipSpin.glsl +0 -2
- package/glsl3/WhipTilt.glsl +0 -2
- package/glsl3/Whirlwind.glsl +63 -0
- package/glsl3/Whittle.glsl +110 -0
- package/glsl3/Wormhole.glsl +101 -0
- package/glsl3/Wrench.glsl +256 -0
- package/glsl3/XorWipe.glsl +41 -0
- package/glsl3/ZoomInCircles.glsl +0 -4
- package/glsl3/ZoomWipeLeft.glsl +1 -0
- package/glsl3/ZoomWipeRight.glsl +1 -0
- package/index.d.ts +6 -0
- package/index.js +1 -1
- package/layouts.json +4840 -860
- package/llms-full.txt +2673 -438
- package/llms.txt +350 -225
- package/msl/BandWipe.metal +160 -176
- package/msl/BeadUp.metal +483 -0
- package/msl/BillowWipe.metal +329 -0
- package/msl/Bite.metal +733 -0
- package/msl/BlockSlide.metal +239 -255
- package/msl/Blossom.metal +670 -0
- package/msl/Bottleneck.metal +192 -0
- package/msl/BowTieHorizontal.metal +78 -87
- package/msl/BrickCollapse.metal +607 -0
- package/msl/BurnThrough.metal +97 -110
- package/msl/ButterflyFlight.metal +371 -0
- package/msl/ButterflyWaveScrawler.metal +74 -90
- package/msl/CardDeal.metal +523 -0
- package/msl/CellDissolve.metal +142 -152
- package/msl/CirclePacking.metal +470 -0
- package/msl/Cleave.metal +310 -0
- package/msl/CloudDive.metal +345 -0
- package/msl/CoinSettle.metal +347 -0
- package/msl/ComicPanels.metal +312 -328
- package/msl/Condensation.metal +778 -0
- package/msl/CorePunch.metal +914 -0
- package/msl/CornerPin.metal +492 -0
- package/msl/Crankshaft.metal +550 -0
- package/msl/Craze.metal +706 -0
- package/msl/Crumple.metal +339 -352
- package/msl/Cymatics.metal +317 -0
- package/msl/DamBreak.metal +461 -0
- package/msl/Deinterleave.metal +390 -0
- package/msl/DiffuseDissolve.metal +193 -0
- package/msl/DiscCascade.metal +329 -0
- package/msl/DominoFall.metal +47 -48
- package/msl/Donut.metal +652 -0
- package/msl/DropHop.metal +501 -0
- package/msl/EchoSlide.metal +438 -0
- package/msl/EqualizerWipe.metal +438 -0
- package/msl/FacetedGlass.metal +291 -307
- package/msl/Faint.metal +367 -0
- package/msl/FalseReflection.metal +293 -0
- package/msl/FieldReversal.metal +539 -0
- package/msl/FilmDissolve.metal +45 -55
- package/msl/FilmLeader.metal +814 -0
- package/msl/FilmStrip.metal +155 -171
- package/msl/FlowDissolve.metal +399 -0
- package/msl/Flutter.metal +513 -0
- package/msl/FurShake.metal +481 -0
- package/msl/Gape.metal +337 -0
- package/msl/GeometricCollage.metal +1188 -0
- package/msl/GlassRelief.metal +330 -0
- package/msl/GlitchFlicker.metal +321 -332
- package/msl/GlitchMemories.metal +45 -52
- package/msl/GlitterDissolve.metal +173 -189
- package/msl/Globe.metal +477 -0
- package/msl/GoldenSpiral.metal +344 -0
- package/msl/HeatHaze.metal +121 -137
- package/msl/HerringboneFold.metal +413 -0
- package/msl/HingedSquares.metal +548 -0
- package/msl/Hologram.metal +181 -197
- package/msl/HoneyDrip.metal +652 -0
- package/msl/HorizontalHold.metal +286 -0
- package/msl/HyperbolicMosaic.metal +408 -0
- package/msl/Inchworm.metal +579 -0
- package/msl/InsetWipe.metal +81 -91
- package/msl/InterlaceWipe.metal +238 -0
- package/msl/InvertedPageCurl.metal +1 -1
- package/msl/IrisFold.metal +281 -0
- package/msl/Kite.metal +772 -0
- package/msl/Knead.metal +678 -0
- package/msl/LayoutGrid.metal +528 -0
- package/msl/LeafWipe.metal +34 -42
- package/msl/LensFlare.metal +193 -209
- package/msl/LensPush.metal +312 -0
- package/msl/LensWipe.metal +295 -0
- package/msl/LightningRift.metal +602 -0
- package/msl/LineFeed.metal +212 -0
- package/msl/LiquidFill.metal +198 -211
- package/msl/LuminanceMelt.metal +108 -126
- package/msl/MarblingDissolve.metal +327 -0
- package/msl/MicroBrickCascade.metal +240 -0
- package/msl/MoireWipe.metal +95 -105
- package/msl/Nightfall.metal +302 -0
- package/msl/NoiseDissolve.metal +29 -29
- package/msl/OutlineCrumble.metal +692 -0
- package/msl/OutlineFill.metal +285 -0
- package/msl/OutlineTear.metal +437 -0
- package/msl/PaintBucket.metal +323 -0
- package/msl/PaintDissolve.metal +1151 -0
- package/msl/PaperLayers.metal +518 -0
- package/msl/PaperPlane.metal +1045 -0
- package/msl/ParallaxPush.metal +312 -0
- package/msl/Perforate.metal +468 -0
- package/msl/PhotoDevelop.metal +89 -99
- package/msl/PinchLift.metal +494 -0
- package/msl/Pinwheel.metal +32 -32
- package/msl/PlasmaDissolve.metal +54 -64
- package/msl/PointCharges.metal +399 -0
- package/msl/PosterPaste.metal +952 -0
- package/msl/PrimaryLights.metal +347 -0
- package/msl/ProjectorThrow.metal +297 -0
- package/msl/Pupil.metal +784 -0
- package/msl/Puzzle.metal +154 -150
- package/msl/QuadTurn.metal +1048 -0
- package/msl/QuadtreeBlocks.metal +493 -0
- package/msl/RadialWipe.metal +27 -25
- package/msl/RainPuddle.metal +397 -0
- package/msl/Reassemble.metal +667 -0
- package/msl/ReededGlass.metal +314 -0
- package/msl/Reflow.metal +306 -0
- package/msl/Revolve.metal +61 -77
- package/msl/RingsWipe.metal +153 -163
- package/msl/Runway.metal +476 -0
- package/msl/SandDrift.metal +497 -0
- package/msl/SawtoothWipe.metal +114 -124
- package/msl/ScreenPrintWipe.metal +577 -0
- package/msl/SequinStroke.metal +819 -0
- package/msl/Shatter.metal +562 -578
- package/msl/Shockwave.metal +240 -0
- package/msl/ShoreWash.metal +538 -0
- package/msl/ShutterWipe.metal +286 -0
- package/msl/SkyLanterns.metal +606 -0
- package/msl/SlashSplit.metal +372 -0
- package/msl/SlideProjector.metal +536 -0
- package/msl/SlitStretch.metal +338 -0
- package/msl/SlitThread.metal +508 -0
- package/msl/SnakeBlockWipe.metal +73 -83
- package/msl/Snap.metal +521 -0
- package/msl/Snowflake.metal +663 -0
- package/msl/Soak.metal +500 -0
- package/msl/SoapDrop.metal +463 -0
- package/msl/SoapFilm.metal +360 -0
- package/msl/SourceSink.metal +355 -0
- package/msl/SpeedLines.metal +401 -0
- package/msl/Sphere.metal +193 -206
- package/msl/SpinningTop.metal +800 -0
- package/msl/SpiralBlockWipe.metal +119 -135
- package/msl/SpiralLines.metal +356 -0
- package/msl/Steamroll.metal +219 -0
- package/msl/StereoViewer.metal +73 -91
- package/msl/StickySplit.metal +490 -0
- package/msl/StopMotion.metal +551 -0
- package/msl/Stratify.metal +392 -0
- package/msl/StripDatamoshGlitch.metal +216 -232
- package/msl/StrobeToss.metal +408 -0
- package/msl/Subdivide.metal +566 -0
- package/msl/Swim.metal +687 -0
- package/msl/Tableau.metal +381 -0
- package/msl/TangentMotionBlur.metal +294 -294
- package/msl/TileBlast.metal +913 -0
- package/msl/TileConveyor.metal +718 -0
- package/msl/TileRings.metal +809 -0
- package/msl/TileShuffle.metal +1182 -0
- package/msl/TriangleFlip.metal +752 -0
- package/msl/TruchetWipe.metal +127 -143
- package/msl/Umbrella.metal +574 -0
- package/msl/Unbox.metal +1094 -0
- package/msl/Unstack.metal +630 -0
- package/msl/Unstir.metal +322 -0
- package/msl/Vaporize.metal +462 -0
- package/msl/VhsTracking.metal +299 -288
- package/msl/ViscousFingers.metal +567 -0
- package/msl/Vortex.metal +326 -316
- package/msl/WaterDrop.metal +181 -197
- package/msl/WatercolorDissolve.metal +791 -0
- package/msl/WaterfallWipe.metal +592 -0
- package/msl/WaveWipe.metal +343 -359
- package/msl/WedgeWipe.metal +59 -67
- package/msl/Whirlwind.metal +275 -0
- package/msl/Whittle.metal +554 -0
- package/msl/Wormhole.metal +505 -0
- package/msl/Wrench.metal +1361 -0
- package/msl/XorWipe.metal +238 -0
- package/package.json +1 -1
- package/skills/gl-transitions/SKILL.md +4 -2
- package/skills/gl-transitions/references/catalog.md +407 -107
- package/skills/gl-transitions/references/native.md +1 -1
- package/skills/gl-transitions/references/webgl.md +1 -1
- package/sksl/Accordion.sksl +0 -7
- package/sksl/ApertureWipe.sksl +0 -2
- package/sksl/ArrowWipe.sksl +0 -7
- package/sksl/Ascii.sksl +0 -7
- package/sksl/BandWipe.sksl +0 -6
- package/sksl/BeadUp.sksl +108 -0
- package/sksl/BillowWipe.sksl +104 -0
- package/sksl/Bite.sksl +177 -0
- package/sksl/BlockCover.sksl +0 -2
- package/sksl/BlockSlide.sksl +0 -9
- package/sksl/BloomDissolve.sksl +0 -7
- package/sksl/Blossom.sksl +121 -0
- package/sksl/BokehDissolve.sksl +0 -6
- package/sksl/BookFlip.sksl +0 -12
- package/sksl/Bottleneck.sksl +54 -0
- package/sksl/Bounce.sksl +1 -1
- package/sksl/BowTieHorizontal.sksl +1 -8
- package/sksl/BrickCollapse.sksl +152 -0
- package/sksl/BrushWipe.sksl +5 -5
- package/sksl/BurnThrough.sksl +2 -3
- package/sksl/ButterflyFlight.sksl +80 -0
- package/sksl/ButterflyWaveScrawler.sksl +0 -3
- package/sksl/CameraShake.sksl +1 -6
- package/sksl/CardDeal.sksl +137 -0
- package/sksl/CardSwipe.sksl +2 -8
- package/sksl/CellDissolve.sksl +0 -6
- package/sksl/CircleBurst.sksl +0 -4
- package/sksl/CirclePacking.sksl +119 -0
- package/sksl/Cleave.sksl +93 -0
- package/sksl/Clothesline.sksl +6 -18
- package/sksl/CloudDive.sksl +84 -0
- package/sksl/CodeRain.sksl +0 -11
- package/sksl/CoinSettle.sksl +93 -0
- package/sksl/ColorPanelWipe.sksl +0 -6
- package/sksl/Comb.sksl +0 -1
- package/sksl/ComicPanels.sksl +0 -11
- package/sksl/Condensation.sksl +161 -0
- package/sksl/CorePunch.sksl +162 -0
- package/sksl/CornerPin.sksl +85 -0
- package/sksl/Crankshaft.sksl +109 -0
- package/sksl/Craze.sksl +135 -0
- package/sksl/CrossZoom.sksl +0 -1
- package/sksl/Crumple.sksl +0 -9
- package/sksl/Cube.sksl +0 -9
- package/sksl/CurtainRise.sksl +0 -9
- package/sksl/Curtains.sksl +3 -6
- package/sksl/CurvedWipe.sksl +0 -3
- package/sksl/CylinderRoll.sksl +1 -8
- package/sksl/Cymatics.sksl +96 -0
- package/sksl/DamBreak.sksl +115 -0
- package/sksl/Deinterleave.sksl +93 -0
- package/sksl/DiamondWipe.sksl +0 -1
- package/sksl/DiffuseDissolve.sksl +55 -0
- package/sksl/DiscCascade.sksl +87 -0
- package/sksl/Disintegrate.sksl +0 -6
- package/sksl/DominoFall.sksl +1 -11
- package/sksl/Donut.sksl +146 -0
- package/sksl/DoomMelt.sksl +0 -1
- package/sksl/Doorway.sksl +0 -7
- package/sksl/Drape.sksl +1 -13
- package/sksl/DreamyZoom.sksl +0 -4
- package/sksl/DropHop.sksl +119 -0
- package/sksl/DuotoneFade.sksl +0 -3
- package/sksl/EchoSlide.sksl +95 -0
- package/sksl/EqualizerWipe.sksl +113 -0
- package/sksl/EyeBlink.sksl +0 -7
- package/sksl/FacetedGlass.sksl +0 -15
- package/sksl/Faint.sksl +81 -0
- package/sksl/FallOver.sksl +0 -2
- package/sksl/FalseReflection.sksl +74 -0
- package/sksl/FieldReversal.sksl +126 -0
- package/sksl/FilmDissolve.sksl +0 -3
- package/sksl/FilmLeader.sksl +192 -0
- package/sksl/FilmStrip.sksl +0 -10
- package/sksl/FlameWipe.sksl +0 -18
- package/sksl/FlowDissolve.sksl +97 -0
- package/sksl/Flutter.sksl +118 -0
- package/sksl/FrostWipe.sksl +3 -15
- package/sksl/Funnel.sksl +0 -6
- package/sksl/FurShake.sksl +124 -0
- package/sksl/Gallery.sksl +3 -9
- package/sksl/Gape.sksl +78 -0
- package/sksl/GeometricCollage.sksl +236 -0
- package/sksl/GlassRelief.sksl +88 -0
- package/sksl/GlintDissolve.sksl +0 -9
- package/sksl/GlitchDisplace.sksl +0 -3
- package/sksl/GlitchFlicker.sksl +4 -5
- package/sksl/GlitchMemories.sksl +1 -1
- package/sksl/GlitterDissolve.sksl +0 -10
- package/sksl/Globe.sksl +109 -0
- package/sksl/GlowDissolve.sksl +1 -1
- package/sksl/GoldenSpiral.sksl +97 -0
- package/sksl/GooeyWipe.sksl +3 -6
- package/sksl/GravityLens.sksl +0 -5
- package/sksl/GridFlip.sksl +0 -10
- package/sksl/Halftone.sksl +1 -3
- package/sksl/HeartWipe.sksl +0 -1
- package/sksl/HeatHaze.sksl +0 -9
- package/sksl/HerringboneFold.sksl +94 -0
- package/sksl/HingedSquares.sksl +117 -0
- package/sksl/Hologram.sksl +0 -15
- package/sksl/HoneyDrip.sksl +130 -0
- package/sksl/Honeycomb.sksl +0 -3
- package/sksl/HorizontalHold.sksl +69 -0
- package/sksl/HyperbolicMosaic.sksl +103 -0
- package/sksl/Inchworm.sksl +123 -0
- package/sksl/InkBleed.sksl +2 -6
- package/sksl/InsetWipe.sksl +0 -3
- package/sksl/InsideCube.sksl +0 -9
- package/sksl/InterlaceWipe.sksl +72 -0
- package/sksl/InvertedPageCurl.sksl +2 -4
- package/sksl/IrisFold.sksl +74 -0
- package/sksl/KeyholeWipe.sksl +0 -6
- package/sksl/Kite.sksl +138 -0
- package/sksl/Knead.sksl +133 -0
- package/sksl/LayoutGrid.sksl +144 -0
- package/sksl/LeafWipe.sksl +1 -4
- package/sksl/LedWall.sksl +0 -11
- package/sksl/LensFlare.sksl +0 -10
- package/sksl/LensPush.sksl +89 -0
- package/sksl/LensWipe.sksl +87 -0
- package/sksl/LichtenbergBurn.sksl +100 -0
- package/sksl/LightRays.sksl +0 -8
- package/sksl/LightStreaks.sksl +0 -5
- package/sksl/LightWipe.sksl +0 -9
- package/sksl/LightningFlash.sksl +0 -13
- package/sksl/LightningRift.sksl +103 -0
- package/sksl/LineFeed.sksl +52 -0
- package/sksl/LiquidFill.sksl +0 -13
- package/sksl/LissajousTiles.sksl +3 -3
- package/sksl/LuminanceMelt.sksl +1 -11
- package/sksl/MarblingDissolve.sksl +88 -0
- package/sksl/MicroBrickCascade.sksl +101 -0
- package/sksl/MoireWipe.sksl +0 -9
- package/sksl/Nightfall.sksl +74 -0
- package/sksl/NoiseDissolve.sksl +1 -1
- package/sksl/OutlineCrumble.sksl +114 -0
- package/sksl/OutlineFill.sksl +74 -0
- package/sksl/OutlineTear.sksl +104 -0
- package/sksl/Overexposure.sksl +0 -1
- package/sksl/PaintBucket.sksl +77 -0
- package/sksl/PaintDissolve.sksl +175 -0
- package/sksl/PaperFold.sksl +0 -12
- package/sksl/PaperLayers.sksl +144 -0
- package/sksl/PaperPlane.sksl +176 -0
- package/sksl/PaperTear.sksl +0 -2
- package/sksl/ParallaxPush.sksl +96 -0
- package/sksl/Perforate.sksl +91 -0
- package/sksl/PerlinDissolve.sksl +0 -6
- package/sksl/PhotoDevelop.sksl +0 -6
- package/sksl/PinchLift.sksl +124 -0
- package/sksl/Pinwheel.sksl +2 -1
- package/sksl/PixelStretch.sksl +0 -3
- package/sksl/PlasmaDissolve.sksl +0 -5
- package/sksl/PlusWipe.sksl +0 -1
- package/sksl/PointCharges.sksl +92 -0
- package/sksl/PopIn.sksl +0 -3
- package/sksl/PosterPaste.sksl +205 -0
- package/sksl/PowerKaleido.sksl +0 -1
- package/sksl/PrimaryLights.sksl +74 -0
- package/sksl/Prisms.sksl +0 -4
- package/sksl/ProjectorThrow.sksl +77 -0
- package/sksl/Pupil.sksl +180 -0
- package/sksl/Puzzle.sksl +1 -8
- package/sksl/PuzzleCube.sksl +0 -8
- package/sksl/QuadTurn.sksl +191 -0
- package/sksl/QuadtreeBlocks.sksl +102 -0
- package/sksl/RadialWipe.sksl +1 -1
- package/sksl/RainPuddle.sksl +93 -0
- package/sksl/Reassemble.sksl +160 -0
- package/sksl/RectangleCover.sksl +0 -2
- package/sksl/RectangleIris.sksl +0 -2
- package/sksl/ReededGlass.sksl +79 -0
- package/sksl/Reflow.sksl +67 -0
- package/sksl/Refraction.sksl +0 -6
- package/sksl/Revolve.sksl +0 -3
- package/sksl/RibbonTwist.sksl +0 -4
- package/sksl/RingSpin.sksl +0 -2
- package/sksl/RingsWipe.sksl +0 -4
- package/sksl/RotateScaleVanish.sksl +1 -1
- package/sksl/Runway.sksl +102 -0
- package/sksl/SandDrift.sksl +112 -0
- package/sksl/SawtoothWipe.sksl +0 -3
- package/sksl/ScreenPrintWipe.sksl +163 -0
- package/sksl/SequinStroke.sksl +169 -0
- package/sksl/Shatter.sksl +0 -9
- package/sksl/Shockwave.sksl +103 -0
- package/sksl/ShoreWash.sksl +142 -0
- package/sksl/Shred.sksl +0 -5
- package/sksl/ShutterWipe.sksl +72 -0
- package/sksl/SketchDissolve.sksl +0 -8
- package/sksl/SkyLanterns.sksl +133 -0
- package/sksl/SlashSplit.sksl +94 -0
- package/sksl/SlideProjector.sksl +130 -0
- package/sksl/SlitStretch.sksl +84 -0
- package/sksl/SlitThread.sksl +104 -0
- package/sksl/SlotReels.sksl +0 -12
- package/sksl/SmokeDissolve.sksl +0 -6
- package/sksl/SnakeBlockWipe.sksl +0 -5
- package/sksl/Snap.sksl +102 -0
- package/sksl/Snapshot.sksl +2 -7
- package/sksl/Snowflake.sksl +128 -0
- package/sksl/Soak.sksl +118 -0
- package/sksl/SoapDrop.sksl +119 -0
- package/sksl/SoapFilm.sksl +82 -0
- package/sksl/SourceSink.sksl +73 -0
- package/sksl/SpeedLines.sksl +101 -0
- package/sksl/Sphere.sksl +0 -9
- package/sksl/SpinningTop.sksl +180 -0
- package/sksl/SpiralBlockWipe.sksl +0 -6
- package/sksl/SpiralLines.sksl +78 -0
- package/sksl/SplatterWipe.sksl +1 -7
- package/sksl/SplitFlap.sksl +0 -4
- package/sksl/SpotlightWipe.sksl +0 -4
- package/sksl/Steamroll.sksl +56 -0
- package/sksl/StereoViewer.sksl +5 -12
- package/sksl/StickySplit.sksl +118 -0
- package/sksl/StopMotion.sksl +121 -0
- package/sksl/Stratify.sksl +83 -0
- package/sksl/StretchSlide.sksl +0 -4
- package/sksl/StripDatamoshGlitch.sksl +0 -6
- package/sksl/StrobeToss.sksl +89 -0
- package/sksl/Subdivide.sksl +121 -0
- package/sksl/Swim.sksl +140 -0
- package/sksl/Swirl.sksl +0 -5
- package/sksl/Tableau.sksl +101 -0
- package/sksl/TangentMotionBlur.sksl +5 -11
- package/sksl/TileBlast.sksl +191 -0
- package/sksl/TileConveyor.sksl +156 -0
- package/sksl/TileRings.sksl +158 -0
- package/sksl/TileShuffle.sksl +220 -0
- package/sksl/TriangleFlip.sksl +191 -0
- package/sksl/TruchetWipe.sksl +0 -8
- package/sksl/Tumble.sksl +0 -8
- package/sksl/Tunnel.sksl +0 -2
- package/sksl/TvLostSignal.sksl +0 -4
- package/sksl/TvRoll.sksl +0 -3
- package/sksl/TvTurnOff.sksl +0 -2
- package/sksl/Umbrella.sksl +129 -0
- package/sksl/Unbox.sksl +205 -0
- package/sksl/UndulatingBurnOut.sksl +1 -1
- package/sksl/Unstack.sksl +154 -0
- package/sksl/Unstir.sksl +74 -0
- package/sksl/Vaporize.sksl +124 -0
- package/sksl/VhsTracking.sksl +4 -14
- package/sksl/ViscousFingers.sksl +126 -0
- package/sksl/Vortex.sksl +3 -11
- package/sksl/WarpSpeed.sksl +0 -14
- package/sksl/WaterDrop.sksl +0 -9
- package/sksl/WatercolorDissolve.sksl +176 -0
- package/sksl/WaterfallWipe.sksl +152 -0
- package/sksl/WaveWipe.sksl +0 -14
- package/sksl/WedgeWipe.sksl +2 -4
- package/sksl/WhipPan.sksl +0 -1
- package/sksl/WhipSpin.sksl +0 -1
- package/sksl/WhipTilt.sksl +0 -2
- package/sksl/Whirlwind.sksl +76 -0
- package/sksl/Whittle.sksl +120 -0
- package/sksl/Wormhole.sksl +112 -0
- package/sksl/Wrench.sksl +263 -0
- package/sksl/XorWipe.sksl +54 -0
- package/sksl/ZoomInCircles.sksl +0 -4
- package/sksl/index.js +1 -1
- package/transitions/Accordion.glsl +1 -10
- package/transitions/ApertureWipe.glsl +0 -2
- package/transitions/ArrowWipe.glsl +0 -7
- package/transitions/Ascii.glsl +1 -12
- package/transitions/BandWipe.glsl +0 -7
- package/transitions/BeadUp.glsl +95 -0
- package/transitions/BillowWipe.glsl +92 -0
- package/transitions/Bite.glsl +166 -0
- package/transitions/BlockCover.glsl +1 -4
- package/transitions/BlockSlide.glsl +1 -11
- package/transitions/BloomDissolve.glsl +0 -9
- package/transitions/Blossom.glsl +109 -0
- package/transitions/BokehDissolve.glsl +1 -8
- package/transitions/BookFlip.glsl +1 -13
- package/transitions/Bottleneck.glsl +40 -0
- package/transitions/Bounce.glsl +1 -1
- package/transitions/BowTieHorizontal.glsl +1 -8
- package/transitions/BrickCollapse.glsl +139 -0
- package/transitions/BrushWipe.glsl +5 -6
- package/transitions/BurnThrough.glsl +2 -3
- package/transitions/ButterflyFlight.glsl +68 -0
- package/transitions/ButterflyWaveScrawler.glsl +0 -3
- package/transitions/CameraShake.glsl +2 -7
- package/transitions/CardDeal.glsl +124 -0
- package/transitions/CardSwipe.glsl +2 -9
- package/transitions/CellDissolve.glsl +0 -7
- package/transitions/CircleBurst.glsl +1 -9
- package/transitions/CircleIris.glsl +1 -0
- package/transitions/CirclePacking.glsl +105 -0
- package/transitions/Cleave.glsl +79 -0
- package/transitions/Clothesline.glsl +6 -27
- package/transitions/CloudDive.glsl +71 -0
- package/transitions/CodeRain.glsl +0 -12
- package/transitions/CoinSettle.glsl +79 -0
- package/transitions/ColorPanelWipe.glsl +2 -9
- package/transitions/Comb.glsl +0 -1
- package/transitions/ComicPanels.glsl +0 -16
- package/transitions/Condensation.glsl +153 -0
- package/transitions/CorePunch.glsl +151 -0
- package/transitions/CornerPin.glsl +74 -0
- package/transitions/Crankshaft.glsl +97 -0
- package/transitions/Craze.glsl +122 -0
- package/transitions/CrossZoom.glsl +1 -1
- package/transitions/Crumple.glsl +1 -11
- package/transitions/Cube.glsl +1 -9
- package/transitions/CurtainRise.glsl +0 -9
- package/transitions/Curtains.glsl +3 -6
- package/transitions/CurvedWipe.glsl +0 -3
- package/transitions/CylinderRoll.glsl +2 -10
- package/transitions/Cymatics.glsl +82 -0
- package/transitions/DamBreak.glsl +102 -0
- package/transitions/Deinterleave.glsl +80 -0
- package/transitions/DiamondWipe.glsl +0 -1
- package/transitions/DiffuseDissolve.glsl +43 -0
- package/transitions/DirectionalScaled.glsl +1 -0
- package/transitions/DiscCascade.glsl +73 -0
- package/transitions/Disintegrate.glsl +1 -9
- package/transitions/DominoFall.glsl +1 -12
- package/transitions/Donut.glsl +134 -0
- package/transitions/DoomMelt.glsl +1 -5
- package/transitions/Doorway.glsl +1 -9
- package/transitions/Drape.glsl +1 -15
- package/transitions/DreamyZoom.glsl +2 -10
- package/transitions/DropHop.glsl +106 -0
- package/transitions/DuotoneFade.glsl +1 -3
- package/transitions/EchoSlide.glsl +85 -0
- package/transitions/EqualizerWipe.glsl +102 -0
- package/transitions/EyeBlink.glsl +0 -7
- package/transitions/FacetedGlass.glsl +0 -17
- package/transitions/Faint.glsl +68 -0
- package/transitions/FallOver.glsl +0 -2
- package/transitions/FalseReflection.glsl +60 -0
- package/transitions/FieldReversal.glsl +113 -0
- package/transitions/FilmBurn.glsl +1 -0
- package/transitions/FilmDissolve.glsl +0 -4
- package/transitions/FilmLeader.glsl +184 -0
- package/transitions/FilmStrip.glsl +1 -12
- package/transitions/Fisheye.glsl +1 -0
- package/transitions/FlameWipe.glsl +1 -22
- package/transitions/FlowDissolve.glsl +84 -0
- package/transitions/Flutter.glsl +106 -0
- package/transitions/FrostWipe.glsl +3 -18
- package/transitions/Funnel.glsl +0 -7
- package/transitions/FurShake.glsl +111 -0
- package/transitions/Gallery.glsl +3 -9
- package/transitions/Gape.glsl +66 -0
- package/transitions/GeometricCollage.glsl +230 -0
- package/transitions/GlassRelief.glsl +74 -0
- package/transitions/GlintDissolve.glsl +1 -10
- package/transitions/GlitchDisplace.glsl +0 -3
- package/transitions/GlitchFlicker.glsl +5 -6
- package/transitions/GlitchMemories.glsl +1 -1
- package/transitions/GlitterDissolve.glsl +0 -15
- package/transitions/Globe.glsl +97 -0
- package/transitions/GlowDissolve.glsl +2 -1
- package/transitions/GoldenSpiral.glsl +83 -0
- package/transitions/GooeyWipe.glsl +3 -6
- package/transitions/GravityLens.glsl +0 -5
- package/transitions/GridFlip.glsl +1 -15
- package/transitions/Halftone.glsl +1 -3
- package/transitions/HeartWipe.glsl +0 -2
- package/transitions/HeatHaze.glsl +1 -10
- package/transitions/HerringboneFold.glsl +84 -0
- package/transitions/HingedSquares.glsl +111 -0
- package/transitions/Hologram.glsl +1 -18
- package/transitions/HoneyDrip.glsl +118 -0
- package/transitions/Honeycomb.glsl +0 -4
- package/transitions/HorizontalClose.glsl +1 -0
- package/transitions/HorizontalHold.glsl +56 -0
- package/transitions/HyperbolicMosaic.glsl +90 -0
- package/transitions/Inchworm.glsl +109 -0
- package/transitions/InkBleed.glsl +2 -6
- package/transitions/InsetWipe.glsl +1 -4
- package/transitions/InsideCube.glsl +0 -10
- package/transitions/InterlaceWipe.glsl +59 -0
- package/transitions/InvertedPageCurl.glsl +2 -5
- package/transitions/IrisFold.glsl +60 -0
- package/transitions/KeyholeWipe.glsl +0 -7
- package/transitions/Kite.glsl +124 -0
- package/transitions/Knead.glsl +124 -0
- package/transitions/LayoutGrid.glsl +133 -0
- package/transitions/LeafWipe.glsl +2 -4
- package/transitions/LedWall.glsl +0 -14
- package/transitions/LensFlare.glsl +0 -13
- package/transitions/LensPush.glsl +75 -0
- package/transitions/LensWipe.glsl +73 -0
- package/transitions/LichtenbergBurn.glsl +87 -0
- package/transitions/LightRays.glsl +2 -12
- package/transitions/LightStreaks.glsl +0 -8
- package/transitions/LightWipe.glsl +1 -13
- package/transitions/LightningFlash.glsl +1 -14
- package/transitions/LightningRift.glsl +90 -0
- package/transitions/LineFeed.glsl +38 -0
- package/transitions/LiquidFill.glsl +0 -13
- package/transitions/LissajousTiles.glsl +3 -4
- package/transitions/LuminanceMelt.glsl +1 -23
- package/transitions/MarblingDissolve.glsl +79 -0
- package/transitions/MicroBrickCascade.glsl +87 -0
- package/transitions/MoireWipe.glsl +0 -9
- package/transitions/Nightfall.glsl +60 -0
- package/transitions/NoiseDissolve.glsl +1 -1
- package/transitions/OutlineCrumble.glsl +104 -0
- package/transitions/OutlineFill.glsl +60 -0
- package/transitions/OutlineTear.glsl +92 -0
- package/transitions/Overexposure.glsl +0 -1
- package/transitions/PaintBucket.glsl +64 -0
- package/transitions/PaintDissolve.glsl +174 -0
- package/transitions/PaperFold.glsl +1 -12
- package/transitions/PaperLayers.glsl +135 -0
- package/transitions/PaperPlane.glsl +165 -0
- package/transitions/PaperTear.glsl +1 -5
- package/transitions/ParallaxPush.glsl +83 -0
- package/transitions/Perforate.glsl +81 -0
- package/transitions/PerlinDissolve.glsl +0 -6
- package/transitions/PhotoDevelop.glsl +1 -6
- package/transitions/PinchLift.glsl +113 -0
- package/transitions/Pinwheel.glsl +2 -1
- package/transitions/PixelStretch.glsl +1 -3
- package/transitions/Pixelize.glsl +0 -2
- package/transitions/PlasmaDissolve.glsl +0 -5
- package/transitions/PlusWipe.glsl +0 -2
- package/transitions/PointCharges.glsl +78 -0
- package/transitions/PopIn.glsl +1 -4
- package/transitions/PosterPaste.glsl +199 -0
- package/transitions/PowerKaleido.glsl +0 -1
- package/transitions/PrimaryLights.glsl +61 -0
- package/transitions/Prisms.glsl +0 -4
- package/transitions/ProjectorThrow.glsl +65 -0
- package/transitions/Pupil.glsl +168 -0
- package/transitions/Puzzle.glsl +1 -8
- package/transitions/PuzzleCube.glsl +0 -10
- package/transitions/QuadTurn.glsl +181 -0
- package/transitions/QuadtreeBlocks.glsl +94 -0
- package/transitions/RadialWipe.glsl +1 -1
- package/transitions/RainPuddle.glsl +80 -0
- package/transitions/Reassemble.glsl +148 -0
- package/transitions/RectangleCover.glsl +0 -2
- package/transitions/RectangleIris.glsl +0 -2
- package/transitions/ReededGlass.glsl +65 -0
- package/transitions/Reflow.glsl +54 -0
- package/transitions/Refraction.glsl +0 -8
- package/transitions/Revolve.glsl +1 -4
- package/transitions/RibbonTwist.glsl +0 -4
- package/transitions/RingSpin.glsl +0 -3
- package/transitions/RingsWipe.glsl +0 -4
- package/transitions/Ripple.glsl +1 -0
- package/transitions/RotateScaleFade.glsl +1 -0
- package/transitions/RotateScaleVanish.glsl +1 -1
- package/transitions/Runway.glsl +91 -0
- package/transitions/SandDrift.glsl +101 -0
- package/transitions/SawtoothWipe.glsl +0 -4
- package/transitions/ScreenPrintWipe.glsl +151 -0
- package/transitions/SequinStroke.glsl +157 -0
- package/transitions/Shatter.glsl +0 -14
- package/transitions/Shockwave.glsl +89 -0
- package/transitions/ShoreWash.glsl +132 -0
- package/transitions/Shred.glsl +0 -6
- package/transitions/ShutterWipe.glsl +59 -0
- package/transitions/SimpleZoomOut.glsl +1 -0
- package/transitions/SketchDissolve.glsl +0 -8
- package/transitions/SkyLanterns.glsl +122 -0
- package/transitions/SlashSplit.glsl +85 -0
- package/transitions/SlideProjector.glsl +124 -0
- package/transitions/SlitStretch.glsl +70 -0
- package/transitions/SlitThread.glsl +90 -0
- package/transitions/SlotReels.glsl +0 -13
- package/transitions/SmokeDissolve.glsl +1 -6
- package/transitions/SnakeBlockWipe.glsl +0 -5
- package/transitions/Snap.glsl +91 -0
- package/transitions/Snapshot.glsl +2 -8
- package/transitions/Snowflake.glsl +118 -0
- package/transitions/Soak.glsl +104 -0
- package/transitions/SoapDrop.glsl +107 -0
- package/transitions/SoapFilm.glsl +70 -0
- package/transitions/SourceSink.glsl +61 -0
- package/transitions/SpeedLines.glsl +92 -0
- package/transitions/Sphere.glsl +0 -9
- package/transitions/SpinningTop.glsl +172 -0
- package/transitions/SpiralBlockWipe.glsl +0 -6
- package/transitions/SpiralLines.glsl +65 -0
- package/transitions/SplatterWipe.glsl +1 -8
- package/transitions/SplitFlap.glsl +1 -5
- package/transitions/SpotlightWipe.glsl +1 -4
- package/transitions/SquaresWipe.glsl +1 -0
- package/transitions/Steamroll.glsl +42 -0
- package/transitions/StereoViewer.glsl +5 -24
- package/transitions/StickySplit.glsl +104 -0
- package/transitions/StopMotion.glsl +111 -0
- package/transitions/Stratify.glsl +73 -0
- package/transitions/StretchSlide.glsl +0 -5
- package/transitions/StripDatamoshGlitch.glsl +0 -6
- package/transitions/StrobeToss.glsl +77 -0
- package/transitions/Subdivide.glsl +112 -0
- package/transitions/Swap.glsl +0 -1
- package/transitions/Swim.glsl +130 -0
- package/transitions/Swirl.glsl +0 -5
- package/transitions/Tableau.glsl +89 -0
- package/transitions/TangentMotionBlur.glsl +5 -14
- package/transitions/TileBlast.glsl +181 -0
- package/transitions/TileConveyor.glsl +143 -0
- package/transitions/TileRings.glsl +146 -0
- package/transitions/TileShuffle.glsl +220 -0
- package/transitions/TriangleFlip.glsl +180 -0
- package/transitions/TruchetWipe.glsl +0 -9
- package/transitions/Tumble.glsl +0 -10
- package/transitions/Tunnel.glsl +0 -2
- package/transitions/TvLostSignal.glsl +0 -4
- package/transitions/TvRoll.glsl +0 -3
- package/transitions/TvStatic.glsl +0 -1
- package/transitions/TvTurnOff.glsl +1 -2
- package/transitions/Umbrella.glsl +118 -0
- package/transitions/Unbox.glsl +197 -0
- package/transitions/UndulatingBurnOut.glsl +1 -1
- package/transitions/Unstack.glsl +140 -0
- package/transitions/Unstir.glsl +60 -0
- package/transitions/Vaporize.glsl +114 -0
- package/transitions/VerticalClose.glsl +1 -0
- package/transitions/VhsTracking.glsl +5 -15
- package/transitions/ViscousFingers.glsl +115 -0
- package/transitions/Vortex.glsl +3 -12
- package/transitions/WarpSpeed.glsl +0 -14
- package/transitions/WaterDrop.glsl +0 -10
- package/transitions/WatercolorDissolve.glsl +165 -0
- package/transitions/WaterfallWipe.glsl +138 -0
- package/transitions/WaveWipe.glsl +0 -15
- package/transitions/WedgeWipe.glsl +2 -4
- package/transitions/WhipPan.glsl +0 -1
- package/transitions/WhipSpin.glsl +0 -2
- package/transitions/WhipTilt.glsl +0 -2
- package/transitions/Whirlwind.glsl +62 -0
- package/transitions/Whittle.glsl +109 -0
- package/transitions/Wormhole.glsl +100 -0
- package/transitions/Wrench.glsl +255 -0
- package/transitions/XorWipe.glsl +40 -0
- package/transitions/ZoomInCircles.glsl +0 -4
- package/transitions/ZoomWipeLeft.glsl +1 -0
- package/transitions/ZoomWipeRight.glsl +1 -0
- package/wgsl/BandWipe.wgsl +152 -168
- package/wgsl/BeadUp.wgsl +439 -0
- package/wgsl/BillowWipe.wgsl +298 -0
- package/wgsl/Bite.wgsl +663 -0
- package/wgsl/BlockSlide.wgsl +231 -247
- package/wgsl/Blossom.wgsl +616 -0
- package/wgsl/Bottleneck.wgsl +162 -0
- package/wgsl/BowTieHorizontal.wgsl +78 -87
- package/wgsl/BrickCollapse.wgsl +554 -0
- package/wgsl/BurnThrough.wgsl +97 -110
- package/wgsl/ButterflyFlight.wgsl +330 -0
- package/wgsl/ButterflyWaveScrawler.wgsl +66 -82
- package/wgsl/CardDeal.wgsl +480 -0
- package/wgsl/CellDissolve.wgsl +142 -152
- package/wgsl/CirclePacking.wgsl +426 -0
- package/wgsl/Cleave.wgsl +279 -0
- package/wgsl/CloudDive.wgsl +303 -0
- package/wgsl/CoinSettle.wgsl +314 -0
- package/wgsl/ComicPanels.wgsl +312 -328
- package/wgsl/Condensation.wgsl +705 -0
- package/wgsl/CorePunch.wgsl +841 -0
- package/wgsl/CornerPin.wgsl +448 -0
- package/wgsl/Crankshaft.wgsl +483 -0
- package/wgsl/Craze.wgsl +633 -0
- package/wgsl/Crumple.wgsl +335 -348
- package/wgsl/Cymatics.wgsl +286 -0
- package/wgsl/DamBreak.wgsl +428 -0
- package/wgsl/Deinterleave.wgsl +346 -0
- package/wgsl/DiffuseDissolve.wgsl +162 -0
- package/wgsl/DiscCascade.wgsl +293 -0
- package/wgsl/DominoFall.wgsl +45 -46
- package/wgsl/Donut.wgsl +558 -0
- package/wgsl/DropHop.wgsl +456 -0
- package/wgsl/EchoSlide.wgsl +386 -0
- package/wgsl/EqualizerWipe.wgsl +397 -0
- package/wgsl/FacetedGlass.wgsl +283 -299
- package/wgsl/Faint.wgsl +320 -0
- package/wgsl/FalseReflection.wgsl +261 -0
- package/wgsl/FieldReversal.wgsl +486 -0
- package/wgsl/FilmDissolve.wgsl +45 -55
- package/wgsl/FilmLeader.wgsl +764 -0
- package/wgsl/FilmStrip.wgsl +155 -171
- package/wgsl/FlowDissolve.wgsl +349 -0
- package/wgsl/Flutter.wgsl +454 -0
- package/wgsl/FurShake.wgsl +439 -0
- package/wgsl/Gape.wgsl +306 -0
- package/wgsl/GeometricCollage.wgsl +1075 -0
- package/wgsl/GlassRelief.wgsl +293 -0
- package/wgsl/GlitchFlicker.wgsl +321 -332
- package/wgsl/GlitchMemories.wgsl +45 -52
- package/wgsl/GlitterDissolve.wgsl +173 -189
- package/wgsl/Globe.wgsl +432 -0
- package/wgsl/GoldenSpiral.wgsl +310 -0
- package/wgsl/HeatHaze.wgsl +113 -129
- package/wgsl/HerringboneFold.wgsl +372 -0
- package/wgsl/HingedSquares.wgsl +490 -0
- package/wgsl/Hologram.wgsl +181 -197
- package/wgsl/HoneyDrip.wgsl +604 -0
- package/wgsl/HorizontalHold.wgsl +243 -0
- package/wgsl/HyperbolicMosaic.wgsl +371 -0
- package/wgsl/Inchworm.wgsl +525 -0
- package/wgsl/InsetWipe.wgsl +81 -91
- package/wgsl/InterlaceWipe.wgsl +205 -0
- package/wgsl/InvertedPageCurl.wgsl +1 -1
- package/wgsl/IrisFold.wgsl +248 -0
- package/wgsl/Kite.wgsl +725 -0
- package/wgsl/Knead.wgsl +599 -0
- package/wgsl/LayoutGrid.wgsl +479 -0
- package/wgsl/LeafWipe.wgsl +34 -42
- package/wgsl/LensFlare.wgsl +193 -209
- package/wgsl/LensPush.wgsl +270 -0
- package/wgsl/LensWipe.wgsl +265 -0
- package/wgsl/LichtenbergBurn.wgsl +480 -0
- package/wgsl/LightningRift.wgsl +549 -0
- package/wgsl/LineFeed.wgsl +184 -0
- package/wgsl/LiquidFill.wgsl +194 -207
- package/wgsl/LuminanceMelt.wgsl +100 -118
- package/wgsl/MarblingDissolve.wgsl +287 -0
- package/wgsl/MicroBrickCascade.wgsl +210 -0
- package/wgsl/MoireWipe.wgsl +95 -105
- package/wgsl/Nightfall.wgsl +270 -0
- package/wgsl/NoiseDissolve.wgsl +29 -29
- package/wgsl/OutlineCrumble.wgsl +612 -0
- package/wgsl/OutlineFill.wgsl +246 -0
- package/wgsl/OutlineTear.wgsl +379 -0
- package/wgsl/PaintBucket.wgsl +275 -0
- package/wgsl/PaintDissolve.wgsl +1081 -0
- package/wgsl/PaperLayers.wgsl +468 -0
- package/wgsl/PaperPlane.wgsl +949 -0
- package/wgsl/ParallaxPush.wgsl +281 -0
- package/wgsl/Perforate.wgsl +412 -0
- package/wgsl/PhotoDevelop.wgsl +89 -99
- package/wgsl/PinchLift.wgsl +454 -0
- package/wgsl/Pinwheel.wgsl +32 -32
- package/wgsl/PlasmaDissolve.wgsl +54 -64
- package/wgsl/PointCharges.wgsl +359 -0
- package/wgsl/PosterPaste.wgsl +879 -0
- package/wgsl/PrimaryLights.wgsl +311 -0
- package/wgsl/ProjectorThrow.wgsl +258 -0
- package/wgsl/Pupil.wgsl +739 -0
- package/wgsl/Puzzle.wgsl +154 -150
- package/wgsl/QuadTurn.wgsl +961 -0
- package/wgsl/QuadtreeBlocks.wgsl +441 -0
- package/wgsl/RadialWipe.wgsl +27 -25
- package/wgsl/RainPuddle.wgsl +358 -0
- package/wgsl/Reassemble.wgsl +609 -0
- package/wgsl/ReededGlass.wgsl +277 -0
- package/wgsl/Reflow.wgsl +267 -0
- package/wgsl/Revolve.wgsl +61 -77
- package/wgsl/RingsWipe.wgsl +153 -163
- package/wgsl/Runway.wgsl +426 -0
- package/wgsl/SandDrift.wgsl +439 -0
- package/wgsl/SawtoothWipe.wgsl +114 -124
- package/wgsl/ScreenPrintWipe.wgsl +534 -0
- package/wgsl/SequinStroke.wgsl +728 -0
- package/wgsl/Shatter.wgsl +554 -570
- package/wgsl/Shockwave.wgsl +210 -0
- package/wgsl/ShoreWash.wgsl +492 -0
- package/wgsl/ShutterWipe.wgsl +252 -0
- package/wgsl/SkyLanterns.wgsl +559 -0
- package/wgsl/SlashSplit.wgsl +332 -0
- package/wgsl/SlideProjector.wgsl +482 -0
- package/wgsl/SlitStretch.wgsl +310 -0
- package/wgsl/SlitThread.wgsl +466 -0
- package/wgsl/SnakeBlockWipe.wgsl +73 -83
- package/wgsl/Snap.wgsl +465 -0
- package/wgsl/Snowflake.wgsl +608 -0
- package/wgsl/Soak.wgsl +459 -0
- package/wgsl/SoapDrop.wgsl +419 -0
- package/wgsl/SoapFilm.wgsl +318 -0
- package/wgsl/SourceSink.wgsl +312 -0
- package/wgsl/SpeedLines.wgsl +362 -0
- package/wgsl/Sphere.wgsl +189 -202
- package/wgsl/SpinningTop.wgsl +704 -0
- package/wgsl/SpiralBlockWipe.wgsl +111 -127
- package/wgsl/SpiralLines.wgsl +310 -0
- package/wgsl/Steamroll.wgsl +190 -0
- package/wgsl/StereoViewer.wgsl +73 -91
- package/wgsl/StickySplit.wgsl +454 -0
- package/wgsl/StopMotion.wgsl +496 -0
- package/wgsl/Stratify.wgsl +339 -0
- package/wgsl/StripDatamoshGlitch.wgsl +216 -232
- package/wgsl/StrobeToss.wgsl +356 -0
- package/wgsl/Subdivide.wgsl +520 -0
- package/wgsl/Swim.wgsl +619 -0
- package/wgsl/Tableau.wgsl +345 -0
- package/wgsl/TangentMotionBlur.wgsl +294 -294
- package/wgsl/TileBlast.wgsl +850 -0
- package/wgsl/TileConveyor.wgsl +658 -0
- package/wgsl/TileRings.wgsl +750 -0
- package/wgsl/TileShuffle.wgsl +1083 -0
- package/wgsl/TriangleFlip.wgsl +692 -0
- package/wgsl/TruchetWipe.wgsl +119 -135
- package/wgsl/Umbrella.wgsl +533 -0
- package/wgsl/Unbox.wgsl +1018 -0
- package/wgsl/Unstack.wgsl +564 -0
- package/wgsl/Unstir.wgsl +265 -0
- package/wgsl/Vaporize.wgsl +420 -0
- package/wgsl/VhsTracking.wgsl +299 -288
- package/wgsl/ViscousFingers.wgsl +506 -0
- package/wgsl/Vortex.wgsl +318 -308
- package/wgsl/WaterDrop.wgsl +173 -189
- package/wgsl/WatercolorDissolve.wgsl +724 -0
- package/wgsl/WaterfallWipe.wgsl +550 -0
- package/wgsl/WaveWipe.wgsl +335 -351
- package/wgsl/WedgeWipe.wgsl +55 -63
- package/wgsl/Whirlwind.wgsl +241 -0
- package/wgsl/Whittle.wgsl +484 -0
- package/wgsl/Wormhole.wgsl +461 -0
- package/wgsl/Wrench.wgsl +1288 -0
- package/wgsl/XorWipe.wgsl +202 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// HoneyDrip — GLSL ES 3.00, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/HoneyDrip.glsl
|
|
2
|
+
// Author: gre
|
|
3
|
+
// License: MIT
|
|
4
|
+
// Description: The outgoing image sags like honey hanging from the top of the frame: its bottom gathers into one heavy amber drop that pulls the middle into a thinning glossy thread, the thread snaps, the drop falls out of the frame and the rest springs back up, revealing the incoming image
|
|
5
|
+
// Tags: liquid, drip, gravity, organic, vertical, glossy
|
|
6
|
+
|
|
7
|
+
// @range(0.4, 0.8) When the thread snaps, as a part of the transition
|
|
8
|
+
uniform float snap; // = 0.55
|
|
9
|
+
// @range(0, 1) Strength of the glossy shading, amber depth and refraction
|
|
10
|
+
uniform float gloss; // = 0.7
|
|
11
|
+
|
|
12
|
+
const vec3 AMBER = vec3(1.0, 0.6, 0.18);
|
|
13
|
+
|
|
14
|
+
float smin(float a, float b, float k) {
|
|
15
|
+
float h = clamp(0.5 + 0.5 * (b - a) / k, 0.0, 1.0);
|
|
16
|
+
return mix(b, a, h) - k * h * (1.0 - h);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
float capsule(vec2 p, float y0, float y1, float r) {
|
|
20
|
+
return length(vec2(p.x, p.y - clamp(p.y, y0, y1))) - r;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
float dropSd(vec2 p, vec3 d) {
|
|
24
|
+
vec2 q = (p - vec2(0.0, d.x)) / d.yz;
|
|
25
|
+
// widest low, narrowing toward the thread
|
|
26
|
+
q.x /= 1.0 + 0.22 * clamp(q.y, -1.0, 1.0);
|
|
27
|
+
return (length(q) - 1.0) * min(d.y, d.z);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// p = (x from the center, depth from the top); b: band bottom, upper thread end, lower thread start, thread radius;
|
|
31
|
+
// d: drop center depth and radii; k: blend radius, kc: blend across the snapped thread
|
|
32
|
+
float honey(vec2 p, vec4 b, vec3 d, float k, float kc) {
|
|
33
|
+
float upper = smin(p.y - b.x, capsule(p, min(b.x + b.w, b.y), b.y, b.w), k);
|
|
34
|
+
float lower = smin(capsule(p, b.z, d.x, b.w), dropSd(p, d), k);
|
|
35
|
+
return smin(upper, lower, kc);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
vec4 transition(vec2 uv) {
|
|
39
|
+
float t = progress;
|
|
40
|
+
float W = 0.5 * ratio;
|
|
41
|
+
float sn = clamp(snap, 0.05, 0.95);
|
|
42
|
+
float u = min(t, sn) / sn;
|
|
43
|
+
float s = u * (2.0 - u);
|
|
44
|
+
float after = max(t - sn, 0.0) / (1.0 - sn);
|
|
45
|
+
float rel = smoothstep(0.0, 1.0, after * 2.5);
|
|
46
|
+
|
|
47
|
+
float aPre = mix(1.06, 0.2, s);
|
|
48
|
+
// the band jerks up when released, wobbles once, then leaves
|
|
49
|
+
float a = mix(aPre, -0.12, smoothstep(0.0, 1.0, after * 1.25)) - aPre * 0.25 * sin(after * 9.0) * exp(-after * 5.0);
|
|
50
|
+
float rx = mix(W + 0.15, min(0.5 * W, 0.22), s);
|
|
51
|
+
float ry = mix(0.55, min(1.25 * rx + 0.04, 0.3), s);
|
|
52
|
+
float c0 = mix(0.58, 0.95 - ry, s * s);
|
|
53
|
+
// lands the drop's top just past the bottom edge at the end
|
|
54
|
+
float fall = (1.06 - c0 + ry) * after * (0.15 + 0.85 * after);
|
|
55
|
+
float c = c0 + fall;
|
|
56
|
+
float rn = mix(W, 0.013, pow(s, 0.6)) * (1.0 + 0.6 * rel);
|
|
57
|
+
float k = mix(0.32, 0.09, s * s);
|
|
58
|
+
float ys = mix(aPre, c0 - ry, 0.45);
|
|
59
|
+
float yu = mix(ys, a, smoothstep(0.0, 1.0, after * 3.0));
|
|
60
|
+
float yl = mix(ys, c0 - 0.8 * ry, smoothstep(0.0, 1.0, after * 1.2)) + fall;
|
|
61
|
+
float kc = k * (1.0 - smoothstep(0.0, 1.0, after * 12.0)) + 1e-4;
|
|
62
|
+
vec4 b = vec4(a, yu, yl, rn);
|
|
63
|
+
vec3 d = vec3(c, rx, ry);
|
|
64
|
+
|
|
65
|
+
vec2 p = vec2((uv.x - 0.5) * ratio, 1.0 - uv.y);
|
|
66
|
+
float sd = honey(p, b, d, k, kc);
|
|
67
|
+
vec2 e = vec2(0.002, 0.0);
|
|
68
|
+
vec2 g = vec2(
|
|
69
|
+
honey(p + e.xy, b, d, k, kc) - honey(p - e.xy, b, d, k, kc),
|
|
70
|
+
honey(p + e.yx, b, d, k, kc) - honey(p - e.yx, b, d, k, kc)) / (2.0 * e.x);
|
|
71
|
+
|
|
72
|
+
// the material keeps its top-to-bottom order: band, a sliver in the thread, the lower image in the drop
|
|
73
|
+
float top = max(c - ry, a);
|
|
74
|
+
float vTop = aPre + 0.1 * (1.0 - aPre) * clamp((top - a) / 0.1, 0.0, 1.0);
|
|
75
|
+
float v = p.y < a ? p.y + aPre - a
|
|
76
|
+
: p.y < top ? mix(aPre, vTop, (p.y - a) / max(top - a, 1e-4))
|
|
77
|
+
: mix(vTop, 1.0, clamp((p.y - top) / (c + ry - top), 0.0, 1.0));
|
|
78
|
+
// the shape is symmetric and each row is one span, so bisect its half-width
|
|
79
|
+
float lo = 0.0;
|
|
80
|
+
float hi = W;
|
|
81
|
+
for (int i = 0; i < 10; i++) {
|
|
82
|
+
float m = 0.5 * (lo + hi);
|
|
83
|
+
if (honey(vec2(m, p.y), b, d, k, kc) < 0.0) lo = m; else hi = m;
|
|
84
|
+
}
|
|
85
|
+
// the band's bottom edge makes the span jump, so ease from the band's width into the thread's
|
|
86
|
+
float wb = 0.5 * (lo + hi);
|
|
87
|
+
float w = mix(W, wb, smoothstep(a, a + 1.5 * k, p.y));
|
|
88
|
+
// narrow rows show only the middle of the picture, so the drop does not read as a fisheye
|
|
89
|
+
float sx = clamp(p.x / max(mix(w, max(w, min(rx, W)), 0.6), 1e-3), -1.0, 1.0);
|
|
90
|
+
|
|
91
|
+
float env = s * (1.0 - smoothstep(0.0, 1.0, after));
|
|
92
|
+
float depth = clamp(-sd / clamp(0.6 * wb, 0.012, 0.18), 0.0, 1.0);
|
|
93
|
+
float h = sqrt(depth * (2.0 - depth));
|
|
94
|
+
// outward direction, y up; its x part fades on the center line, where the distance field creases
|
|
95
|
+
vec2 nOut = vec2(g.x * smoothstep(0.0, 0.3 * w + 1e-3, abs(p.x)), -g.y) / max(length(g), 1e-3);
|
|
96
|
+
vec3 n = normalize(vec3(nOut * (1.0 - depth) * s * gloss, mix(1.0, max(h, 0.05), s * gloss)));
|
|
97
|
+
vec2 src = vec2(0.5 + 0.5 * sx, 1.0 - v) - n.xy * 0.03;
|
|
98
|
+
vec4 img = getFromColor(clamp(mix(uv, src, s), 0.0, 1.0));
|
|
99
|
+
|
|
100
|
+
vec3 l = normalize(vec3(-0.4, 0.55, 0.73));
|
|
101
|
+
float dif = 1.0 + 0.45 * (dot(n, l) / l.z - 1.0);
|
|
102
|
+
float rs = max(dot(reflect(-l, n), vec3(0.0, 0.0, 1.0)), 0.0);
|
|
103
|
+
float bulk = smoothstep(0.02, 0.12, wb) * smoothstep(a, a + k, p.y);
|
|
104
|
+
float thick = depth * bulk;
|
|
105
|
+
// light focused through the drop gathers inside the rim opposite the light
|
|
106
|
+
float glow = bulk * smoothstep(0.0, 0.3, depth) * (1.0 - smoothstep(0.3, 1.0, depth)) * max(dot(nOut, -l.xy), 0.0);
|
|
107
|
+
float amt = gloss * s;
|
|
108
|
+
vec3 col = img.rgb * mix(1.0, dif, amt);
|
|
109
|
+
col *= exp(-amt * (0.08 + thick) * vec3(0.0, 0.45, 1.2));
|
|
110
|
+
col *= mix(vec3(1.0), vec3(0.55, 0.32, 0.1), 0.7 * amt * (1.0 - h) * (1.0 - h));
|
|
111
|
+
col += amt * (1.3 * glow * AMBER + pow(rs, 50.0) + 0.12 * pow(rs, 8.0) * AMBER);
|
|
112
|
+
img.rgb = col;
|
|
113
|
+
|
|
114
|
+
float aa = 0.006;
|
|
115
|
+
float inside = clamp(0.5 - sd / aa, 0.0, 1.0);
|
|
116
|
+
vec4 bg = getToColor(uv);
|
|
117
|
+
bg.rgb *= 1.0 - 0.45 * env * exp(-max(sd, 0.0) * 16.0);
|
|
118
|
+
return mix(bg, img, inside);
|
|
119
|
+
}
|
package/glsl3/Honeycomb.glsl
CHANGED
|
@@ -24,7 +24,6 @@ float hexMask(vec2 local, float s, float a, float e) {
|
|
|
24
24
|
return 1.0 - smoothstep(r - e, r, hexDist(rotation(-a) * local));
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
// Where the image is sampled, for a point of a hexagon turned by a and scaled by s
|
|
28
27
|
vec2 hexUv(vec2 uv, vec2 local, vec2 cellToUv, float s, float a) {
|
|
29
28
|
return uv + cellToUv * (rotation(-a) * local / max(s, 0.001) - local);
|
|
30
29
|
}
|
|
@@ -39,12 +38,9 @@ vec4 transition(vec2 uv) {
|
|
|
39
38
|
vec2 center = dot(p - a, p - a) < dot(p - b, p - b) ? a : b;
|
|
40
39
|
vec2 local = p - center;
|
|
41
40
|
|
|
42
|
-
// each hexagon starts later the further it is from the center
|
|
43
41
|
float d = min(length(center / toCells * vec2(ratio, 1.0)) / (0.5 * length(vec2(ratio, 1.0))), 1.0);
|
|
44
42
|
float t = clamp((progress - 0.6 * d) / 0.4, 0.0, 1.0);
|
|
45
43
|
|
|
46
|
-
// the outgoing hexagon spins (opening gaps at the corners of its cell), shrinks away and darkens,
|
|
47
|
-
// casting a soft shadow on the incoming image
|
|
48
44
|
float s = 1.0 - smoothstep(0.1, 1.0, t);
|
|
49
45
|
float turn = 1.8 * t * (2.0 - t);
|
|
50
46
|
vec4 fromTile = getFromColor(hexUv(uv, local, 1.0 / toCells, s, turn));
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// HorizontalHold — GLSL ES 3.00, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/HorizontalHold.glsl
|
|
2
|
+
// Author: gre
|
|
3
|
+
// License: MIT
|
|
4
|
+
// Description: The picture loses its horizontal hold like an old TV: it shears into diagonal bands that slide sideways and wrap around, separated by a slanted blanking bar that carries the incoming image in, then the shear straightens, wobbles and locks
|
|
5
|
+
// Tags: retro, horizontal, shear, scanlines
|
|
6
|
+
|
|
7
|
+
// @range(2, 6, 1) Number of times the picture slips sideways before it locks
|
|
8
|
+
uniform int slips; // = 3
|
|
9
|
+
// @range(0, 4) How far the lines lag from top to bottom at the worst of the tearing, in picture widths
|
|
10
|
+
uniform float shear; // = 1.25
|
|
11
|
+
// @range(0, 0.5) Width of the blanking bar between the copies of the picture
|
|
12
|
+
uniform float barWidth; // = 0.14
|
|
13
|
+
// @color Color of the blanking bar
|
|
14
|
+
uniform vec4 barColor; // = vec4(0.02, 0.02, 0.03, 1.0)
|
|
15
|
+
|
|
16
|
+
float slipCount() {
|
|
17
|
+
return max(float(slips), 1.0);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// The picture stream at x: outgoing copies, then incoming ones, with a bar between them
|
|
21
|
+
vec4 stream(float x, float y, float unsync) {
|
|
22
|
+
float period = 1.0 + barWidth;
|
|
23
|
+
float n = floor(x / period);
|
|
24
|
+
float xm = x - n * period;
|
|
25
|
+
vec2 q = vec2(min(xm, 1.0), y);
|
|
26
|
+
vec4 c = n >= floor(0.5 * slipCount() + 0.5) ? getToColor(q) : getFromColor(q);
|
|
27
|
+
// distance to the nearest bar, negative inside it
|
|
28
|
+
float d = min(xm, 1.0 - xm);
|
|
29
|
+
float g = max(1.0 - d / 0.05, 0.0);
|
|
30
|
+
c.rgb += 0.3 * unsync * g * g * c.a;
|
|
31
|
+
float soft = min(0.012 * unsync, 0.5 * barWidth) + 1e-5;
|
|
32
|
+
return mix(barColor, c, clamp(d / soft, 0.0, 1.0));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
vec4 transition(vec2 uv) {
|
|
36
|
+
float period = 1.0 + barWidth;
|
|
37
|
+
// the sync error grows then fades; the slip is its integral, a whole number of periods
|
|
38
|
+
float t = min(progress / 0.88, 1.0);
|
|
39
|
+
float err = 16.0 * t * t * (1.0 - t) * (1.0 - t);
|
|
40
|
+
float slip = t * t * t * (t * (t * 6.0 - 15.0) + 10.0);
|
|
41
|
+
float u = clamp((progress - 0.74) / 0.26, 0.0, 1.0);
|
|
42
|
+
float lock = u * (1.0 - u) * (1.0 - u);
|
|
43
|
+
float tilt = -0.5 * max(shear, 0.5) * lock * sin(9.42478 * u);
|
|
44
|
+
float unsync = min(err + 3.0 * lock, 1.0);
|
|
45
|
+
float ripple = 0.012 * sin(uv.y * 9.0 + progress * 40.0) + 0.005 * sin(uv.y * 31.0 - progress * 70.0);
|
|
46
|
+
float x = uv.x + period * (slipCount() * slip + shear * err * (1.0 - uv.y) + tilt * (1.0 - uv.y)) + err * ripple;
|
|
47
|
+
float blur = 0.002 * err * slipCount();
|
|
48
|
+
vec4 c = stream(x, uv.y, unsync);
|
|
49
|
+
if (blur > 0.0) {
|
|
50
|
+
for (int i = 0; i < 4; i++) {
|
|
51
|
+
c += stream(x + blur * (float(i) - 1.5), uv.y, unsync);
|
|
52
|
+
}
|
|
53
|
+
c /= 5.0;
|
|
54
|
+
}
|
|
55
|
+
c.rgb *= 1.0 - unsync * (0.1 + 0.08 * sin(uv.y * 480.0));
|
|
56
|
+
return c;
|
|
57
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// HyperbolicMosaic — GLSL ES 3.00, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/HyperbolicMosaic.glsl
|
|
2
|
+
// Author: gre
|
|
3
|
+
// License: MIT
|
|
4
|
+
// Description: The camera pulls back and the outgoing image turns out to be one tile of a curved mosaic on a hyperbolic plane, six tiles meeting at every corner and shrinking endlessly toward a round rim, alternating between the two images; the mosaic glides one tile over and the camera pushes into the incoming image
|
|
5
|
+
// Tags: hyperbolic, tiling, mosaic, geometry, math
|
|
6
|
+
|
|
7
|
+
// @range(0, 1) Darkness of the joints between tiles
|
|
8
|
+
uniform float joints; // = 0.6
|
|
9
|
+
|
|
10
|
+
// {4,6} tiling, even so the two images alternate everywhere: Klein half-side of the central square, 1/sqrt(3)
|
|
11
|
+
const float C = 0.57735;
|
|
12
|
+
// Poincare half-side at a corner, so the picture never folds back inside a tile
|
|
13
|
+
const float PK = 0.36603;
|
|
14
|
+
// rapidity of the glide to the next tile's center, twice the inradius A
|
|
15
|
+
const float A = 0.65848;
|
|
16
|
+
|
|
17
|
+
float ease(float x) {
|
|
18
|
+
x = clamp(x, 0.0, 1.0);
|
|
19
|
+
return x * x * (3.0 - 2.0 * x);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
vec3 boost(vec3 v, float r) {
|
|
23
|
+
float e = exp(r), ch = 0.5 * (e + 1.0 / e), sh = 0.5 * (e - 1.0 / e);
|
|
24
|
+
return vec3(v.x * ch + v.z * sh, v.y, v.x * sh + v.z * ch);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
vec4 transition(vec2 uv) {
|
|
28
|
+
float t = progress;
|
|
29
|
+
float w = ease(t / 0.4) * ease((1.0 - t) / 0.4);
|
|
30
|
+
float g = 2.0 * A * ease((t - 0.25) / 0.5);
|
|
31
|
+
|
|
32
|
+
vec2 s = (uv - 0.5) * vec2(ratio, 1.0);
|
|
33
|
+
// the rim passes just outside the frame corners
|
|
34
|
+
vec2 p = s / (0.51 * length(vec2(ratio, 1.0)));
|
|
35
|
+
// blended in the conformal Poincare model so tiles keep their shape while the camera moves
|
|
36
|
+
vec2 k0 = (uv - 0.5) * 2.0 * C;
|
|
37
|
+
vec2 pz = mix(k0 / (1.0 + sqrt(1.0 - dot(k0, k0))), p, w);
|
|
38
|
+
|
|
39
|
+
// past halfway, glide back from the next tile mirrored onto this one: the same map, but the
|
|
40
|
+
// frame edge then never lands on a wall at progress 1, whatever the float precision
|
|
41
|
+
bool past = g > A;
|
|
42
|
+
vec3 v = boost(vec3(2.0 * pz, 1.0 + dot(pz, pz)), past ? g - 2.0 * A : g);
|
|
43
|
+
if (past) v.x = -v.x;
|
|
44
|
+
|
|
45
|
+
// P accumulates the reflections, to find each tile's orientation
|
|
46
|
+
mat3 P = mat3(1.0);
|
|
47
|
+
float n = past ? 1.0 : 0.0;
|
|
48
|
+
for (int i = 0; i < 24; i++) {
|
|
49
|
+
vec2 k = v.xy / v.z;
|
|
50
|
+
vec3 wall;
|
|
51
|
+
if (k.x > C) wall = vec3(1.0, 0.0, C);
|
|
52
|
+
else if (k.x < -C) wall = vec3(1.0, 0.0, -C);
|
|
53
|
+
else if (k.y > C) wall = vec3(0.0, 1.0, C);
|
|
54
|
+
else if (k.y < -C) wall = vec3(0.0, 1.0, -C);
|
|
55
|
+
else break;
|
|
56
|
+
// Minkowski reflection, <a, b> = a.x b.x + a.y b.y - a.z b.z
|
|
57
|
+
vec3 jw = vec3(wall.xy, -wall.z) * (2.0 / (1.0 - C * C));
|
|
58
|
+
v -= dot(v, jw) * wall;
|
|
59
|
+
vec3 pw = P * wall;
|
|
60
|
+
P -= mat3(pw * jw.x, pw * jw.y, pw * jw.z);
|
|
61
|
+
n += 1.0;
|
|
62
|
+
}
|
|
63
|
+
vec2 k = v.xy / v.z;
|
|
64
|
+
|
|
65
|
+
// turn each tile upright by quarter turns, judged in the view at mid-glide so a tile never flips while it moves
|
|
66
|
+
vec3 o = boost(P * vec3(0.0, 0.0, 1.0), -A);
|
|
67
|
+
vec3 ox = boost(P * vec3(0.1, 0.0, 1.0), -A);
|
|
68
|
+
vec3 oy = boost(P * vec3(0.0, 0.1, 1.0), -A);
|
|
69
|
+
vec2 ex = ox.xy / ox.z - o.xy / o.z;
|
|
70
|
+
vec2 ey = oy.xy / oy.z - o.xy / o.z;
|
|
71
|
+
if (past) { ex.x = -ex.x; ey.x = -ey.x; }
|
|
72
|
+
if (ex.x * ey.y - ex.y * ey.x < 0.0) { k.x = -k.x; ex = -ex; }
|
|
73
|
+
// comparisons rather than atan, whose handling of -0.0 differs between GPUs
|
|
74
|
+
if (abs(ex.x) >= abs(ex.y)) { if (ex.x < 0.0) k = -k; }
|
|
75
|
+
else if (ex.y > 0.0) k = vec2(-k.y, k.x);
|
|
76
|
+
else k = vec2(k.y, -k.x);
|
|
77
|
+
|
|
78
|
+
vec2 pk = k / (1.0 + sqrt(max(1.0 - dot(k, k), 0.0)));
|
|
79
|
+
// conformal and aspect-correct (center crop) inside the mosaic, the full frame at both ends
|
|
80
|
+
vec2 crop = vec2(min(1.0 / ratio, 1.0), min(ratio, 1.0));
|
|
81
|
+
vec2 q = clamp(0.5 + mix(k / C, pk / PK, w) * 0.5 * mix(vec2(1.0), crop, w), 0.0, 1.0);
|
|
82
|
+
vec4 c = mod(n, 2.0) > 0.5 ? getToColor(q) : getFromColor(q);
|
|
83
|
+
|
|
84
|
+
vec2 e = 1.0 - abs(k) / C;
|
|
85
|
+
float edge = 0.5 * min(e.x, e.y);
|
|
86
|
+
// joints fade out where tiles shrink below a few pixels toward the rim
|
|
87
|
+
float j = joints * w * smoothstep(0.02, 0.2, 1.0 - dot(pz, pz));
|
|
88
|
+
c.rgb *= 1.0 - j * (1.0 - smoothstep(0.0, 0.03, edge));
|
|
89
|
+
c.rgb *= 1.0 - w * smoothstep(0.8, 1.0, length(p));
|
|
90
|
+
return c;
|
|
91
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// Inchworm — GLSL ES 3.00, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/Inchworm.glsl
|
|
2
|
+
// Author: gre
|
|
3
|
+
// License: MIT
|
|
4
|
+
// Description: The outgoing image crawls out of the frame like an inchworm: its back edge creeps forward and the picture humps up into a tall shaded arch, then its front edge reaches ahead and the arch flattens, two strides, uncovering the incoming image behind
|
|
5
|
+
// Tags: crawl, hump, 3d, shadow, directional, organic
|
|
6
|
+
|
|
7
|
+
// @range(0.5, 1.5) How tall the arch grows toward the viewer
|
|
8
|
+
uniform float arch; // = 1.0
|
|
9
|
+
|
|
10
|
+
const float PI = 3.14159265;
|
|
11
|
+
const float STRIDE = 0.5;
|
|
12
|
+
const float AA = 0.002;
|
|
13
|
+
const vec3 LIGHT = vec3(-0.5847, 0.3118, 0.7484);
|
|
14
|
+
|
|
15
|
+
float iwEase(float x) {
|
|
16
|
+
x = clamp(x, 0.0, 1.0);
|
|
17
|
+
return x * x * (3.0 - 2.0 * x);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
float iwHump(float x, float a, float span, float h) {
|
|
21
|
+
float u = clamp((x - a) / span, 0.0, 1.0);
|
|
22
|
+
float s = sin(PI * pow(u, 0.8));
|
|
23
|
+
return h * s * s;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
vec4 transition(vec2 uv) {
|
|
27
|
+
float t = progress * 3.0;
|
|
28
|
+
// overlapping beats keep the crawl flowing: gather, reach, gather
|
|
29
|
+
float g = iwEase(t / 1.2) + iwEase((t - 1.8) / 1.2);
|
|
30
|
+
float reach = iwEase((t - 0.8) / 1.4);
|
|
31
|
+
// two gathers carry the back edge just past the right side of the frame, whatever its width
|
|
32
|
+
float a = STRIDE * g * ratio + 0.003 * g;
|
|
33
|
+
float span = (1.0 + STRIDE * reach) * ratio - a;
|
|
34
|
+
// follows the sheet's length, eased off on wide frames so the arch never nears the eye
|
|
35
|
+
float h = arch * 0.55 * (ratio - span) * sqrt((ratio + span) / ratio);
|
|
36
|
+
h = min(h / (1.0 + 0.5 * h), 1.2);
|
|
37
|
+
|
|
38
|
+
// seen from slightly below, so the raised arch lifts its bottom edge off the floor
|
|
39
|
+
vec3 eye = vec3(0.5 * ratio, -1.0, 1.8);
|
|
40
|
+
vec3 ray = vec3(uv.x * ratio, uv.y, 0.0) - eye;
|
|
41
|
+
|
|
42
|
+
float s0 = 1.0 - (h + 0.001) / eye.z;
|
|
43
|
+
float sl = s0;
|
|
44
|
+
float fl = eye.z * (1.0 - s0) - iwHump(eye.x + s0 * ray.x, a, span, h);
|
|
45
|
+
float sr = 1.0;
|
|
46
|
+
int side = 0;
|
|
47
|
+
for (int i = 1; i <= 40; i++) {
|
|
48
|
+
float s = mix(s0, 1.0, float(i) / 40.0);
|
|
49
|
+
float f = eye.z * (1.0 - s) - iwHump(eye.x + s * ray.x, a, span, h);
|
|
50
|
+
float y = eye.y + s * ray.y;
|
|
51
|
+
if ((fl > 0.0) != (f > 0.0) && y > -2.0 * AA && y < 1.0 + 2.0 * AA) {
|
|
52
|
+
sr = s;
|
|
53
|
+
side = fl > 0.0 ? 1 : 2;
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
sl = s;
|
|
57
|
+
fl = f;
|
|
58
|
+
}
|
|
59
|
+
float fr = eye.z * (1.0 - sr) - iwHump(eye.x + sr * ray.x, a, span, h);
|
|
60
|
+
for (int i = 0; i < 5; i++) {
|
|
61
|
+
float sm = 0.5 * (sl + sr);
|
|
62
|
+
float fm = eye.z * (1.0 - sm) - iwHump(eye.x + sm * ray.x, a, span, h);
|
|
63
|
+
if ((fm > 0.0) == (fl > 0.0)) {
|
|
64
|
+
sl = sm;
|
|
65
|
+
fl = fm;
|
|
66
|
+
} else {
|
|
67
|
+
sr = sm;
|
|
68
|
+
fr = fm;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
// a final secant step lands exactly on the floor where the sheet lies flat
|
|
72
|
+
float sh = abs(fl - fr) > 1e-6 ? sl + (sr - sl) * fl / (fl - fr) : sr;
|
|
73
|
+
vec3 hit = eye + sh * ray;
|
|
74
|
+
|
|
75
|
+
float len = 0.0;
|
|
76
|
+
float tot = 0.0;
|
|
77
|
+
float prev = 0.0;
|
|
78
|
+
for (int i = 1; i <= 24; i++) {
|
|
79
|
+
float x = a + span * float(i) / 24.0;
|
|
80
|
+
float z = iwHump(x, a, span, h);
|
|
81
|
+
float seg = sqrt(span * span / 576.0 + (z - prev) * (z - prev));
|
|
82
|
+
tot += seg;
|
|
83
|
+
len += seg * clamp((hit.x - x) * 24.0 / span + 1.0, 0.0, 1.0);
|
|
84
|
+
prev = z;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
float e = 0.002 * ratio;
|
|
88
|
+
float dz = (iwHump(hit.x + e, a, span, h) - iwHump(hit.x - e, a, span, h)) / (2.0 * e);
|
|
89
|
+
vec3 n = normalize(vec3(-dz, 0.0, 1.0));
|
|
90
|
+
float light = (0.45 + 0.55 * max(dot(n, LIGHT), 0.0)) / (0.45 + 0.55 * LIGHT.z);
|
|
91
|
+
// the underside of the arch only gets light bounced off the floor
|
|
92
|
+
light = side == 2 ? 0.35 : light;
|
|
93
|
+
vec4 sheet = getFromColor(vec2(len / max(tot, 1e-6), clamp(hit.y, 0.0, 1.0)));
|
|
94
|
+
sheet.rgb *= light;
|
|
95
|
+
float cov = side > 0 ? smoothstep(-2.0 * AA, 0.0, hit.y) * smoothstep(-2.0 * AA, 0.0, 1.0 - hit.y) * smoothstep(a - 2.0 * AA, a, hit.x) : 0.0;
|
|
96
|
+
|
|
97
|
+
float occ = 0.0;
|
|
98
|
+
for (int i = 1; i <= 8; i++) {
|
|
99
|
+
float z = h * float(i) / 8.0;
|
|
100
|
+
float x = uv.x * ratio + z * LIGHT.x / LIGHT.z;
|
|
101
|
+
float y = uv.y + z * LIGHT.y / LIGHT.z;
|
|
102
|
+
float inside = smoothstep(-0.02, 0.0, y) * smoothstep(-0.02, 0.0, 1.0 - y);
|
|
103
|
+
occ = max(occ, inside * smoothstep(0.0, 0.04, iwHump(x, a, span, h) - z));
|
|
104
|
+
}
|
|
105
|
+
vec4 floorColor = getToColor(uv);
|
|
106
|
+
float ao = smoothstep(0.0, 0.3, iwHump(uv.x * ratio, a, span, h));
|
|
107
|
+
floorColor.rgb *= (1.0 - 0.5 * occ) * (1.0 - 0.3 * ao);
|
|
108
|
+
|
|
109
|
+
return mix(floorColor, sheet, cov);
|
|
110
|
+
}
|
package/glsl3/InkBleed.glsl
CHANGED
|
@@ -48,17 +48,16 @@ vec2 fold (vec2 p) {
|
|
|
48
48
|
vec4 transition (vec2 uv) {
|
|
49
49
|
float p = progress;
|
|
50
50
|
vec2 q = vec2(uv.x * ratio, uv.y);
|
|
51
|
-
// swirls: noise warped twice by itself, drifting as the ink spreads
|
|
52
51
|
vec2 o = vec2(seed * 3.1, seed * 1.7);
|
|
53
52
|
vec2 sq = q * 2.2 + o;
|
|
54
53
|
vec2 w1 = vec2(fbm(sq + vec2(0.0, 0.6 * p)), fbm(sq + vec2(5.2, 1.3) - vec2(0.5 * p, 0.0)));
|
|
55
54
|
vec2 w2 = vec2(fbm(sq + 3.0 * w1 + vec2(1.7, 9.2)), fbm(sq + 3.0 * w1 + vec2(8.3, 2.8)));
|
|
56
|
-
float swirl = fbm(sq * 0.8 + 2.5 * w2) - 0.5;
|
|
55
|
+
float swirl = fbm(sq * 0.8 + 2.5 * w2) - 0.5;
|
|
57
56
|
vec2 flow = w2 - 0.5;
|
|
58
57
|
float amp = 0.05 + 0.35 * tendrils;
|
|
59
58
|
float n = clamp(floor(drops + 0.5), 1.0, 8.0);
|
|
60
59
|
float rimW = 0.1;
|
|
61
|
-
float feather = 0.05;
|
|
60
|
+
float feather = 0.05;
|
|
62
61
|
float margin = 1.2 * amp + rimW + 0.08; // how far the swirls can pull the front back
|
|
63
62
|
float f = -1e3; // > 0 inside the ink
|
|
64
63
|
float fs = -1e3; // the same, only for the drops already fallen, which fades their haze in
|
|
@@ -74,7 +73,6 @@ vec4 transition (vec2 uv) {
|
|
|
74
73
|
float far = length(m) + margin;
|
|
75
74
|
float s3 = s * s * s;
|
|
76
75
|
float r = (far + 0.02) * s * (0.35 + 0.65 * s3 * s3) - 0.02;
|
|
77
|
-
// a drop starts round, then its front curls more and more as it spreads
|
|
78
76
|
float reach = amp * min(1.0, max(r, 0.0) * 5.0);
|
|
79
77
|
float g = r - length(q - c + 1.3 * reach * flow) + reach * 0.9 * swirl;
|
|
80
78
|
f = max(f, g);
|
|
@@ -83,12 +81,10 @@ vec4 transition (vec2 uv) {
|
|
|
83
81
|
}
|
|
84
82
|
float aa = 0.003;
|
|
85
83
|
float inside = smoothstep(-aa, aa, f);
|
|
86
|
-
// feathered wisps of diluted ink, streaked along the swirls, ahead of the front
|
|
87
84
|
float wisp = 1.0 - smoothstep(0.0, 0.08, abs(fbm(sq * 2.0 + 5.0 * w2) - 0.5));
|
|
88
85
|
float soft = smoothstep(-feather, 0.0, fs) * (0.35 + 0.4 * wisp);
|
|
89
86
|
float haze = 0.35 * wisp * (1.0 - smoothstep(0.0, 0.1, -fs));
|
|
90
87
|
float cover = max(inside, max(soft, haze));
|
|
91
|
-
// the ink is denser, and still moving, close to its front
|
|
92
88
|
float edge = 1.0 - smoothstep(0.0, rimW, f);
|
|
93
89
|
vec4 to = getToColor(fold(uv - 0.015 * edge * flow / vec2(ratio, 1.0)));
|
|
94
90
|
to.rgb = mix(to.rgb, to.rgb * to.rgb * 0.7, rim * edge);
|
package/glsl3/InsetWipe.glsl
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// License: MIT
|
|
4
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
5
|
// Tags: wipe, shape, box
|
|
6
|
+
// Preview: 0.5
|
|
6
7
|
|
|
7
8
|
// @param Where the rectangle grows from: (0, 0) bottom left, (1, 1) top right, (0.5, 0) middle of the bottom edge, (0.5, 0.5) center
|
|
8
9
|
uniform vec2 anchor; // = vec2(1.0, 1.0)
|
|
@@ -15,7 +16,6 @@ uniform vec4 borderColor; // = vec4(1.0, 1.0, 1.0, 1.0)
|
|
|
15
16
|
// @param The outgoing image shrinks into the rectangle instead, toward the anchor
|
|
16
17
|
uniform bool reverse; // = false
|
|
17
18
|
|
|
18
|
-
// half width of the antialiased edge, in frame heights
|
|
19
19
|
const float AA = 0.001;
|
|
20
20
|
|
|
21
21
|
vec4 premultiplied(vec4 c) {
|
|
@@ -25,8 +25,6 @@ vec4 premultiplied(vec4 c) {
|
|
|
25
25
|
vec4 transition(vec2 uv) {
|
|
26
26
|
vec4 a = getFromColor(uv);
|
|
27
27
|
vec4 b = getToColor(uv);
|
|
28
|
-
if (progress <= 0.0) return a;
|
|
29
|
-
if (progress >= 1.0) return b;
|
|
30
28
|
|
|
31
29
|
vec2 an = clamp(anchor, 0.0, 1.0);
|
|
32
30
|
vec2 sq = vec2(ratio, 1.0);
|
|
@@ -45,7 +43,6 @@ vec4 transition(vec2 uv) {
|
|
|
45
43
|
// signed distance to the rectangle's edge, square-cornered, < 0 inside
|
|
46
44
|
float e = max(d.x - size.x, d.y - size.y);
|
|
47
45
|
|
|
48
|
-
// the rectangle shows the incoming image, or the outgoing one in reverse
|
|
49
46
|
vec4 inside = reverse ? a : b;
|
|
50
47
|
vec4 c = premultiplied(reverse ? b : a);
|
|
51
48
|
if (bw > 0.0) {
|
package/glsl3/InsideCube.glsl
CHANGED
|
@@ -14,14 +14,12 @@ uniform float shading; // = 0.6
|
|
|
14
14
|
uniform vec4 background; // = vec4(0.09, 0.09, 0.1, 1.0)
|
|
15
15
|
|
|
16
16
|
const float PI = 3.141592653589793;
|
|
17
|
-
// width of the anti-aliased edges, in frame heights
|
|
18
17
|
const float EDGE = 0.002;
|
|
19
18
|
|
|
20
19
|
vec4 premultiply(vec4 c) {
|
|
21
20
|
return vec4(c.rgb * c.a, c.a);
|
|
22
21
|
}
|
|
23
22
|
|
|
24
|
-
// shadow of a concave edge of the cube, at a distance dist from it
|
|
25
23
|
float cornerShadow(float dist, float size) {
|
|
26
24
|
float k = 1.0 - smoothstep(0.0, size, dist);
|
|
27
25
|
return k * k;
|
|
@@ -44,7 +42,6 @@ vec4 transition(vec2 uv) {
|
|
|
44
42
|
vec2 p = (uv - 0.5) * vec2(ratio, 1.0);
|
|
45
43
|
vec2 q = vertical ? p.yx : p;
|
|
46
44
|
q.x *= s;
|
|
47
|
-
// half sizes of a wall along and across the turn
|
|
48
45
|
float A = vertical ? 0.5 : 0.5 * ratio;
|
|
49
46
|
float B = vertical ? 0.5 * ratio : 0.5;
|
|
50
47
|
// focal length: a wall exactly fills the frame when seen square from that distance
|
|
@@ -65,20 +62,16 @@ vec4 transition(vec2 uv) {
|
|
|
65
62
|
vec2 cam = (A - F) * e * vec2(1.0, -1.0);
|
|
66
63
|
vec2 d = vec2(q.x * c + F * sn, F * c - q.x * sn);
|
|
67
64
|
|
|
68
|
-
// the inner corner between the two walls projects to a line across the frame
|
|
69
65
|
vec2 P = vec2(A, F) - cam;
|
|
70
66
|
float sc = F * (P.x * c - P.y * sn) / max(P.x * sn + P.y * c, 1e-6);
|
|
71
67
|
|
|
72
|
-
// outgoing wall
|
|
73
68
|
float tf = d.y > 1e-6 ? (F - cam.y) / d.y : 1e6;
|
|
74
69
|
float af = cam.x + tf * d.x;
|
|
75
70
|
vec2 lf = vec2(af, q.y * tf);
|
|
76
|
-
// incoming wall
|
|
77
71
|
float ti = d.x > 1e-6 ? (A - cam.x) / d.x : 1e6;
|
|
78
72
|
float ai = (F - A) - (cam.y + ti * d.y);
|
|
79
73
|
vec2 li = vec2(ai, q.y * ti);
|
|
80
74
|
|
|
81
|
-
// each wall darkens as it turns away from the view, and toward the concave edges
|
|
82
75
|
float size = 0.8 * min(A, B);
|
|
83
76
|
float edgeF = cornerShadow(A - af, size) + 0.5 * cornerShadow(B - abs(lf.y), size);
|
|
84
77
|
float edgeI = cornerShadow(ai + A, size) + 0.5 * cornerShadow(B - abs(li.y), size);
|
|
@@ -93,17 +86,14 @@ vec4 transition(vec2 uv) {
|
|
|
93
86
|
* clamp(0.5 + (af + A) * d.y / (tf * F * aa), 0.0, 1.0);
|
|
94
87
|
float covI = (1.0 - wF) * clamp(0.5 + (B / ti - abs(q.y)) / aa, 0.0, 1.0)
|
|
95
88
|
* clamp(0.5 + (A - ai) * d.x / (ti * F * aa), 0.0, 1.0);
|
|
96
|
-
// only sample the walls that show in this pixel
|
|
97
89
|
vec4 colF = covF > 0.0 ? wallColor(lf, false, vertical, s) : vec4(0.0);
|
|
98
90
|
vec4 colI = covI > 0.0 ? wallColor(li, true, vertical, s) : vec4(0.0);
|
|
99
91
|
colF.rgb *= shadeF;
|
|
100
92
|
colI.rgb *= shadeI;
|
|
101
93
|
|
|
102
|
-
// the other faces of the cube, with the same shadow along their edges with the two walls
|
|
103
94
|
vec4 bg = premultiply(background);
|
|
104
95
|
float cov = covF + covI;
|
|
105
96
|
if (cov < 1.0) {
|
|
106
|
-
// where the ray meets the floor or the ceiling, never beyond the walls
|
|
107
97
|
float tb = min(B / max(abs(q.y), 1e-6), min(tf, ti));
|
|
108
98
|
vec2 fl = cam + tb * d;
|
|
109
99
|
float edgeB = cornerShadow(F - fl.y, size) + cornerShadow(A - fl.x, size);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// InterlaceWipe — GLSL ES 3.00, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/InterlaceWipe.glsl
|
|
2
|
+
// Author: gre
|
|
3
|
+
// License: MIT
|
|
4
|
+
// Description: The incoming image loads over the outgoing one like an interlaced picture on a slow connection: a first pass sweeps down drawing it in big blocky rows, then each new pass sweeps down again at twice the detail until the picture is sharp
|
|
5
|
+
// Tags: wipe, retro, pixelate, blocks, scanlines, vertical
|
|
6
|
+
// Preview: 0.2
|
|
7
|
+
|
|
8
|
+
// @range(24, 480) Number of rows of pixels of the picture being loaded, before its last pass draws it at full detail
|
|
9
|
+
uniform float rows; // = 120.0
|
|
10
|
+
// @range(2, 6, 1) Number of passes, the first one drawing blocks 2^(passes - 1) rows tall
|
|
11
|
+
uniform int passes; // = 5
|
|
12
|
+
// @range(0, 1) Brightness of the freshly drawn rows behind each sweep
|
|
13
|
+
uniform float glow; // = 0.5
|
|
14
|
+
|
|
15
|
+
vec4 transition(vec2 uv) {
|
|
16
|
+
float lines = max(floor(rows), 1.0);
|
|
17
|
+
float cols = max(floor(lines * ratio + 0.5), 1.0);
|
|
18
|
+
// no more passes than fit: the first pass's blocks are never taller than the picture
|
|
19
|
+
float n = max(min(clamp(float(passes), 2.0, 6.0), 1.0 + floor(log2(lines) + 0.01)), 2.0);
|
|
20
|
+
float row = min(floor((1.0 - uv.y) * lines), lines - 1.0);
|
|
21
|
+
float col = min(floor(uv.x * cols), cols - 1.0);
|
|
22
|
+
|
|
23
|
+
float p = mix(progress, progress * progress * (3.0 - 2.0 * progress), 0.5);
|
|
24
|
+
// each pass sweeps the whole frame in time T; the passes start one after another and overlap a little
|
|
25
|
+
float T = 1.5 / (n + 0.5);
|
|
26
|
+
|
|
27
|
+
// the finest pass that has drawn this pixel wins: try them from the finest (blocks 1 row tall) up
|
|
28
|
+
float bestB = 0.0;
|
|
29
|
+
float light = 0.0;
|
|
30
|
+
for (int i = 0; i < 6; i++) {
|
|
31
|
+
float k = n - 1.0 - float(i); // order of this pass, from 0 for the first one
|
|
32
|
+
if (k < 0.0) break;
|
|
33
|
+
float b = floor(exp2(float(i)) + 0.5); // block size of this pass, in pixel rows
|
|
34
|
+
float u = clamp((p - (1.0 - T) * k / (n - 1.0)) / T, 0.0, 1.0);
|
|
35
|
+
// the sweep, in block rows; the row it is on fills from left to right block by block.
|
|
36
|
+
// Freshly drawn rows are brighter over a few rows behind it: the sweep runs on past the
|
|
37
|
+
// bottom of the frame until that glow is gone, so the pass is over before its time ends
|
|
38
|
+
float glowRows = max(1.5 * b, 0.05 * lines);
|
|
39
|
+
float blockRows = ceil(lines / b);
|
|
40
|
+
float sweep = u * (blockRows + glowRows / b);
|
|
41
|
+
float behind = sweep - floor(row / b) - (floor(col / b) + 1.0) / ceil(cols / b);
|
|
42
|
+
if (behind >= -1e-4) {
|
|
43
|
+
bestB = b;
|
|
44
|
+
light = 1.0 - smoothstep(0.0, glowRows, behind * b);
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (bestB == 0.0) return getFromColor(uv);
|
|
50
|
+
vec4 c;
|
|
51
|
+
if (bestB <= 1.0) {
|
|
52
|
+
c = getToColor(uv);
|
|
53
|
+
} else {
|
|
54
|
+
float top = floor(row / bestB) * bestB;
|
|
55
|
+
float left = floor(col / bestB) * bestB;
|
|
56
|
+
c = getToColor(vec2((left + 0.5) / cols, 1.0 - (top + 0.5) / lines));
|
|
57
|
+
}
|
|
58
|
+
c.rgb += 0.5 * glow * light * (1.0 - c.rgb);
|
|
59
|
+
return c;
|
|
60
|
+
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
// License: BSD 3 Clause
|
|
4
4
|
// Description: The outgoing image curls away like a page, revealing the incoming one
|
|
5
5
|
// Tags: page, curl, 3d
|
|
6
|
-
// Adapted by Sergey Kosarevsky from:
|
|
7
6
|
// http://rectalogic.github.io/webvfx/examples_2transition-shader-pagecurl_8html-example.html
|
|
8
7
|
|
|
9
8
|
/*
|
|
@@ -37,7 +36,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
37
36
|
in vec2 texCoord;
|
|
38
37
|
*/
|
|
39
38
|
|
|
40
|
-
const float MIN_AMOUNT = -0.
|
|
39
|
+
const float MIN_AMOUNT = -0.4;
|
|
41
40
|
const float MAX_AMOUNT = 1.5;
|
|
42
41
|
|
|
43
42
|
const float PI = 3.141592653589793;
|
|
@@ -177,13 +176,11 @@ vec4 transition(vec2 p) {
|
|
|
177
176
|
|
|
178
177
|
if (yc < -cylinderRadius)
|
|
179
178
|
{
|
|
180
|
-
// Behind surface
|
|
181
179
|
return behindSurface(p,yc, point, rrotation);
|
|
182
180
|
}
|
|
183
181
|
|
|
184
182
|
if (yc > cylinderRadius)
|
|
185
183
|
{
|
|
186
|
-
// Flat surface
|
|
187
184
|
return getFromColor(p);
|
|
188
185
|
}
|
|
189
186
|
|
|
@@ -213,7 +210,7 @@ vec4 transition(vec2 p) {
|
|
|
213
210
|
float nyc2 = -yc / cylinderRadius;
|
|
214
211
|
shado *= nyc2 * nyc2 * nyc2;
|
|
215
212
|
shado *= 0.5;
|
|
216
|
-
otherColor = vec4(0.0, 0.0, 0.0, shado * getToColor(p).a);
|
|
213
|
+
otherColor = vec4(0.0, 0.0, 0.0, shado * getToColor(p).a);
|
|
217
214
|
}
|
|
218
215
|
else
|
|
219
216
|
{
|