gl-transitions 3.3.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 +240 -0
- package/README.md +1 -0
- package/compatibility.json +2241 -446
- 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 +0 -21
- 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 +0 -7
- 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 +0 -10
- 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 +0 -9
- 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 +0 -5
- 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 +0 -13
- 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 +0 -9
- 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 +0 -7
- 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 +0 -13
- package/glsl3/ShoreWash.glsl +1 -18
- package/glsl3/Shred.glsl +0 -6
- package/glsl3/ShutterWipe.glsl +0 -8
- 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 +4 -10
- 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 +0 -10
- 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 +4286 -799
- package/llms-full.txt +2492 -470
- package/llms.txt +350 -238
- 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 +304 -320
- 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/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/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 +235 -251
- package/msl/Hologram.metal +181 -197
- package/msl/HoneyDrip.metal +652 -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 +237 -253
- 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 +108 -124
- 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/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 +123 -139
- 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/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/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 +374 -112
- 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 +0 -19
- 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 +0 -4
- 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 +0 -6
- 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 +0 -7
- package/sksl/Hologram.sksl +0 -15
- package/sksl/HoneyDrip.sksl +130 -0
- package/sksl/Honeycomb.sksl +0 -3
- package/sksl/HorizontalHold.sksl +0 -5
- 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 +0 -12
- 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 +0 -8
- 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 +0 -6
- 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 +0 -13
- package/sksl/ShoreWash.sksl +0 -17
- package/sksl/Shred.sksl +0 -5
- package/sksl/ShutterWipe.sksl +0 -8
- 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 +3 -8
- 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 +0 -10
- 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 +0 -21
- 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 +0 -7
- 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 +0 -10
- 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 +0 -9
- 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 +0 -5
- 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 +0 -13
- 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 +0 -9
- 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 +0 -7
- 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 +0 -13
- package/transitions/ShoreWash.glsl +1 -18
- package/transitions/Shred.glsl +0 -6
- package/transitions/ShutterWipe.glsl +0 -8
- 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 +4 -10
- 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 +0 -10
- 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 +296 -312
- 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/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/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 +227 -243
- package/wgsl/Hologram.wgsl +181 -197
- package/wgsl/HoneyDrip.wgsl +604 -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 +229 -245
- 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 +108 -124
- 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/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 +121 -137
- 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/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/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
|
@@ -42,7 +42,6 @@ vec2 sdTone (vec2 uv) {
|
|
|
42
42
|
float sdHatch (vec2 q, vec2 d, float dark) {
|
|
43
43
|
float s = dot(q, d) * 60.0 + 0.5 * sdNoise(q * 9.0 + d * 13.0);
|
|
44
44
|
float row = floor(s);
|
|
45
|
-
// each row is made of strokes of uneven length and pressure, with small gaps
|
|
46
45
|
float along = dot(q, vec2(-d.y, d.x)) * 8.0 + sdHash(vec2(row, d.y * 7.0)) * 5.0;
|
|
47
46
|
float cell = floor(along);
|
|
48
47
|
float k = sdHash(vec2(row, cell) + d * 31.0);
|
|
@@ -53,7 +52,6 @@ float sdHatch (vec2 q, vec2 d, float dark) {
|
|
|
53
52
|
|
|
54
53
|
vec4 transition (vec2 uv) {
|
|
55
54
|
vec2 q = vec2(uv.x * ratio, uv.y);
|
|
56
|
-
// a slightly wobbly hand: the outlines are traced a bit off the real edges
|
|
57
55
|
vec2 wob = (vec2(sdNoise(q * 6.0), sdNoise(q * 6.0 + 17.0)) - 0.5) * 0.004;
|
|
58
56
|
vec2 su = uv + wob * (1.0 - progress);
|
|
59
57
|
vec2 dx = vec2(0.001 * lineWidth / ratio, 0.0);
|
|
@@ -68,29 +66,23 @@ vec4 transition (vec2 uv) {
|
|
|
68
66
|
vec4 toC = getToColor(uv);
|
|
69
67
|
float l = clamp((tm.x + bm.x + ml.x + mr.x) * 0.25, 0.0, 1.0);
|
|
70
68
|
|
|
71
|
-
// graphite grain, and the order in which the strokes are laid down
|
|
72
69
|
float grain = 0.65 + 0.35 * sdNoise(q * vec2(180.0, 60.0));
|
|
73
70
|
float order = sdNoise(q * 3.0 + 4.0);
|
|
74
71
|
float fine = sdNoise(q * 24.0);
|
|
75
72
|
float drawOutline = smoothstep(0.0, 0.1, progress - (0.22 * order + 0.05 * fine));
|
|
76
73
|
float drawHatch = smoothstep(0.0, 0.12, progress - (0.2 + 0.2 * order + 0.05 * fine));
|
|
77
74
|
|
|
78
|
-
// the shading builds up from the darkest parts to the lightest, then the colors come in
|
|
79
75
|
float fill = smoothstep(0.0, 0.22, progress - (0.4 + 0.25 * l + 0.1 * order));
|
|
80
76
|
|
|
81
|
-
// hatching: one direction in the shadows, crossed in the darkest parts
|
|
82
77
|
float dark = 1.0 - l;
|
|
83
78
|
float h1 = sdHatch(q, vec2(0.7071, 0.7071), smoothstep(0.35, 0.9, dark));
|
|
84
79
|
float h2 = sdHatch(q, vec2(0.7071, -0.7071), smoothstep(0.65, 1.0, dark));
|
|
85
80
|
float hatch = hatching * 0.8 * max(h1, 0.8 * h2) * toC.a;
|
|
86
81
|
|
|
87
|
-
// the hatching is absorbed by the shading as it fills in
|
|
88
82
|
hatch *= drawHatch * (1.0 - 0.6 * fill);
|
|
89
83
|
float pencil = max(outline * drawOutline, hatch) * grain;
|
|
90
|
-
// the pencil lines give way to the finished picture at the end
|
|
91
84
|
pencil *= 1.0 - smoothstep(0.7, 1.0, progress);
|
|
92
85
|
|
|
93
|
-
// the outgoing image fades back to paper
|
|
94
86
|
vec4 base = mix(getFromColor(uv), paper, smoothstep(0.02, 0.38, progress));
|
|
95
87
|
float sat = smoothstep(0.55, 1.0, progress);
|
|
96
88
|
vec4 tone = vec4(paper.rgb * mix(0.3, 1.0, l), paper.a * toC.a);
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// SkyLanterns — GLSL ES 3.00, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/SkyLanterns.glsl
|
|
2
|
+
// Author: gre
|
|
3
|
+
// License: MIT
|
|
4
|
+
// Description: The outgoing picture rounds into a paper lantern lit warmly from inside and drifts off into the dusk over the incoming picture, while little lanterns made of the same picture rise on both sides; as the last ones float away, day breaks on the incoming picture
|
|
5
|
+
// Tags: lantern, night, light, rise, poetic
|
|
6
|
+
|
|
7
|
+
// @range(0, 1) How dark the dusk gets
|
|
8
|
+
uniform float dusk; // = 0.85
|
|
9
|
+
// @range(0, 1) Strength of the glow
|
|
10
|
+
uniform float glow; // = 0.8
|
|
11
|
+
// @color Light of the flame
|
|
12
|
+
uniform vec3 flame; // = vec3(1.0, 0.66, 0.28)
|
|
13
|
+
|
|
14
|
+
const int COUNT = 18;
|
|
15
|
+
|
|
16
|
+
float hash(float p) {
|
|
17
|
+
p = fract(p * 0.1031);
|
|
18
|
+
p *= p + 33.33;
|
|
19
|
+
p *= p + p;
|
|
20
|
+
return fract(p);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// half width of a lantern of half height 1, down to the round mouth
|
|
24
|
+
float profile(float y, float lip) {
|
|
25
|
+
float v = clamp(y, -1.0, 1.0);
|
|
26
|
+
float t = max(v, 0.0);
|
|
27
|
+
float b = max(-v, 0.0);
|
|
28
|
+
float w = 0.72 * sqrt(max(1.0 - t * t * t * t, 0.0)) * (1.0 - 0.3 * b * b);
|
|
29
|
+
float m = max(lip - 1.0 - v, 0.0) / lip;
|
|
30
|
+
return w * sqrt(max(1.0 - m * m, 0.0));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// slope of the outline, to keep its feather even on the caps
|
|
34
|
+
float steep(float y, float lip) {
|
|
35
|
+
float g = (profile(y + 0.01, lip) - profile(y - 0.01, lip)) * 50.0;
|
|
36
|
+
return sqrt(1.0 + g * g);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// l in half heights; k = 0 is the flat picture, 1 the lit lantern; premultiplied
|
|
40
|
+
vec4 paper(vec2 l, float w, float k, float lip, float flick) {
|
|
41
|
+
float mouth = mix(ratio, profile(lip - 1.0, lip), k);
|
|
42
|
+
// under the rim w follows the mouth, but the paper keeps its width
|
|
43
|
+
float x = clamp(l.x / max(l.y < lip - 1.0 ? mouth : w, 1e-4), -1.0, 1.0);
|
|
44
|
+
float turn = asin(x * 0.999);
|
|
45
|
+
float bx = mix(x, turn * 0.6366, k);
|
|
46
|
+
vec2 crop = mix(vec2(1.0), min(vec2(0.8 / ratio, ratio / 0.8), 1.0), k);
|
|
47
|
+
vec4 c = getFromColor(clamp(0.5 + 0.5 * vec2(bx, l.y) * crop, 0.0, 1.0));
|
|
48
|
+
vec2 f = (l + vec2(0.0, 0.7)) * vec2(1.25, 0.72);
|
|
49
|
+
float core = exp(-dot(f, f)) * flick;
|
|
50
|
+
vec3 lit = (c.rgb * 0.75 + 0.2 * flame) * mix(vec3(0.7, 0.58, 0.56), 0.55 + 1.3 * flame, core);
|
|
51
|
+
lit += flame * 0.3 * core * core;
|
|
52
|
+
lit *= 1.0 - 0.45 * x * x * x * x;
|
|
53
|
+
lit *= 1.0 - 0.13 * smoothstep(0.88, 1.0, cos(l.y * 20.0));
|
|
54
|
+
lit *= 1.0 - 0.07 * smoothstep(0.92, 1.0, cos(turn * 9.0));
|
|
55
|
+
vec2 e = vec2(l.x / mouth, (l.y + 1.0 - lip) / lip);
|
|
56
|
+
float r = length(e);
|
|
57
|
+
float inside = 1.0 - smoothstep(0.82, 0.92, r);
|
|
58
|
+
vec3 hole = flame * (0.45 + 0.95 * exp(-dot(e, e) * 2.5)) * flick;
|
|
59
|
+
lit = mix(lit, flame * vec3(0.45, 0.36, 0.3), 1.0 - smoothstep(0.98, 1.06, r));
|
|
60
|
+
lit = mix(lit, hole, inside);
|
|
61
|
+
return vec4(mix(c.rgb, lit, k) * c.a, c.a);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
vec4 transition(vec2 uv) {
|
|
65
|
+
float p = progress;
|
|
66
|
+
vec2 asp = vec2(ratio, 1.0);
|
|
67
|
+
vec2 q = (uv - 0.5) * asp;
|
|
68
|
+
float side = min(ratio, 1.0);
|
|
69
|
+
|
|
70
|
+
float night = smoothstep(0.0, 0.25, p) * (1.0 - smoothstep(0.66, 1.0, p));
|
|
71
|
+
vec4 c = getToColor(uv);
|
|
72
|
+
float lum = dot(c.rgb, vec3(0.299, 0.587, 0.114));
|
|
73
|
+
vec3 moon = mix(vec3(lum), c.rgb, 0.6) * vec3(0.32, 0.42, 0.78) + vec3(0.02, 0.03, 0.08);
|
|
74
|
+
c.rgb = mix(c.rgb, moon, dusk * night) * c.a;
|
|
75
|
+
|
|
76
|
+
vec3 halo = vec3(0.0);
|
|
77
|
+
// far to near, so the nearer lanterns overlap
|
|
78
|
+
for (int i = 0; i < COUNT; i++) {
|
|
79
|
+
float f = float(i);
|
|
80
|
+
float z = 0.2 + 0.8 * f / float(COUNT - 1);
|
|
81
|
+
float sz = mix(0.028, 0.115, z * z) * mix(side, 1.0, 0.15);
|
|
82
|
+
float t = p - 0.17 - 0.2 * hash(f + 3.0);
|
|
83
|
+
if (t <= 0.0) continue;
|
|
84
|
+
// the bigger ones keep to the sides, off the subject
|
|
85
|
+
float v = fract(f * 0.618034 + 0.2) * 2.0 - 1.0;
|
|
86
|
+
float x = 0.5 * (ratio + 0.06) * sign(v) * mix(abs(v), 0.5 + 0.5 * abs(v), smoothstep(0.25, 0.5, z));
|
|
87
|
+
x += 0.025 * side * sin(p * 8.0 + f * 2.1);
|
|
88
|
+
float y = -0.5 - 1.3 * sz + t * (1.5 + 1.4 * z) + 0.7 * t * t;
|
|
89
|
+
vec2 d = q - vec2(x, y);
|
|
90
|
+
float sw = 0.1 * sin(p * 9.0 + f * 1.7);
|
|
91
|
+
d = vec2(d.x + sw * d.y, d.y - sw * d.x) / sz;
|
|
92
|
+
float on = smoothstep(0.0, 0.06, t);
|
|
93
|
+
float flick = 0.92 + 0.08 * sin(p * 60.0 + f * 4.0);
|
|
94
|
+
halo += on * flame * (0.3 * exp(-dot(d, d) * 0.55) + 0.06 * exp(-length(d) * 0.7)) * flick;
|
|
95
|
+
if (abs(d.x) < 0.8 && abs(d.y) < 1.0) {
|
|
96
|
+
float w = profile(d.y, 0.09);
|
|
97
|
+
float m = smoothstep(0.0, 0.003 / sz * steep(d.y, 0.09), w - abs(d.x));
|
|
98
|
+
vec4 s = paper(d, w, 1.0, 0.09, flick);
|
|
99
|
+
s.rgb = mix(s.rgb, (0.75 * s.rgb * vec3(0.8, 0.85, 1.0) + vec3(0.03, 0.03, 0.06) * s.a), 1.0 - z);
|
|
100
|
+
c = s * m + c * (1.0 - s.a * m);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
float k = smoothstep(0.01, 0.3, p);
|
|
105
|
+
float up = smoothstep(0.2, 0.92, p);
|
|
106
|
+
float S = mix(0.5, 0.15 * side, smoothstep(0.0, 0.6, p));
|
|
107
|
+
float lip = max(0.09 * k, 1e-3);
|
|
108
|
+
vec2 pos = vec2(0.26 * ratio * smoothstep(0.08, 0.55, p) + 0.03 * side * sin(p * 8.0) * k, 1.0 * up * up + 0.1 * up - 0.03 * k * (1.0 - up));
|
|
109
|
+
vec2 d = q - pos;
|
|
110
|
+
float sw = 0.08 * sin(p * 9.0) * k;
|
|
111
|
+
d = vec2(d.x + sw * d.y, d.y - sw * d.x) / S;
|
|
112
|
+
float flick = 0.94 + 0.06 * sin(p * 50.0);
|
|
113
|
+
float w = mix(ratio, profile(d.y, lip), k);
|
|
114
|
+
// a hair wider than the frame while still flat
|
|
115
|
+
float slack = 0.004 / S * (1.0 - k) + 0.03 * (1.0 - smoothstep(0.0, 0.05, p));
|
|
116
|
+
float m = smoothstep(0.0, 0.004 / S * mix(1.0, steep(d.y, lip), k), w + slack - abs(d.x)) * smoothstep(0.0, 0.004 / S, 1.0 + slack - abs(d.y));
|
|
117
|
+
halo += k * flame * (0.5 * exp(-dot(d, d) * 0.5) + 0.12 * exp(-length(d) * 0.6)) * flick;
|
|
118
|
+
c.rgb += glow * night * 0.55 * halo * (0.35 * c.a + c.rgb);
|
|
119
|
+
vec4 s = paper(d, w, k, lip, flick);
|
|
120
|
+
// the flat picture replaces the incoming one, the lantern floats over it
|
|
121
|
+
c = s * m + c * (1.0 - m * mix(1.0, s.a, k));
|
|
122
|
+
return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);
|
|
123
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// SlashSplit — GLSL ES 3.00, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/SlashSplit.glsl
|
|
2
|
+
// Author: gre
|
|
3
|
+
// License: MIT
|
|
4
|
+
// Description: A bright blade stroke slashes diagonally across the outgoing image with a flash, then the two cut halves slip along the cut in opposite directions and fly off the frame, casting soft shadows on the incoming image beneath
|
|
5
|
+
// Tags: split, slide, flash, shadow
|
|
6
|
+
|
|
7
|
+
// @range(-75, 75) Angle of the cut against the horizontal, in degrees
|
|
8
|
+
uniform float angle; // = 25.0
|
|
9
|
+
// @range(0, 0.3) How far the halves move apart across the cut as they slide, relative to the image height
|
|
10
|
+
uniform float separation; // = 0.06
|
|
11
|
+
// @color Color of the blade stroke and its flash (alpha sets the intensity)
|
|
12
|
+
uniform vec4 flash; // = vec4(1.0, 0.96, 0.88, 1.0)
|
|
13
|
+
// @color Color of the shadow cast on the incoming image
|
|
14
|
+
uniform vec4 shadow; // = vec4(0.0, 0.0, 0.0, 0.45)
|
|
15
|
+
|
|
16
|
+
// part of the transition during which the blade crosses the frame
|
|
17
|
+
const float CUT = 0.18;
|
|
18
|
+
const float EDGE = 0.0015;
|
|
19
|
+
const vec2 SHADOW_OFFSET = vec2(0.015, -0.022);
|
|
20
|
+
const float SHADOW_BLUR = 0.035;
|
|
21
|
+
|
|
22
|
+
// signed distance (aspect units) to the frame rectangle centered on 0, negative inside
|
|
23
|
+
float boxDistance (vec2 q) {
|
|
24
|
+
vec2 d = abs(q) - 0.5 * vec2(ratio, 1.0);
|
|
25
|
+
return length(max(d, 0.0)) + min(max(d.x, d.y), 0.0);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// one half of the outgoing image, moved by v; s = 1 for the half above the cut, -1 below
|
|
29
|
+
// returns the image point of screen point q (xy) and a signed distance to the half (z, negative inside);
|
|
30
|
+
// the half overhangs its edges by half an edge width so that the still image covers the frame exactly
|
|
31
|
+
vec3 piece (vec2 q, vec2 v, vec2 n, float s) {
|
|
32
|
+
vec2 y = q - v;
|
|
33
|
+
return vec3(y, max(boxDistance(y), -s * dot(y, n)) - 0.5 * EDGE);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
vec4 transition (vec2 uv) {
|
|
37
|
+
float p = progress;
|
|
38
|
+
float a = radians(angle);
|
|
39
|
+
vec2 T = vec2(cos(a), sin(a));
|
|
40
|
+
vec2 N = vec2(-T.y, T.x);
|
|
41
|
+
vec2 q = (uv - 0.5) * vec2(ratio, 1.0);
|
|
42
|
+
float d = dot(q, N);
|
|
43
|
+
float along = dot(q, T);
|
|
44
|
+
|
|
45
|
+
float t = clamp((p - 0.8 * CUT) / (1.0 - 0.8 * CUT), 0.0, 1.0);
|
|
46
|
+
float open = separation * (1.0 - pow(1.0 - t, 3.0));
|
|
47
|
+
float margin = length(SHADOW_OFFSET) + SHADOW_BLUR + 2.0 * EDGE;
|
|
48
|
+
float exitX = (ratio + separation + margin) / max(abs(T.x), 1e-3);
|
|
49
|
+
float exitY = (1.0 + separation + margin) / max(abs(T.y), 1e-3);
|
|
50
|
+
float slide = min(exitX, exitY) * t * t * (1.5 - 0.5 * t);
|
|
51
|
+
vec2 vUp = T * slide + N * open;
|
|
52
|
+
|
|
53
|
+
vec4 to = getToColor(uv);
|
|
54
|
+
vec2 sq = q - SHADOW_OFFSET;
|
|
55
|
+
float sdUp = piece(sq, vUp, N, 1.0).z;
|
|
56
|
+
float sdDown = piece(sq, -vUp, N, -1.0).z;
|
|
57
|
+
float sh = shadow.a * smoothstep(0.0, 0.1, t) * (1.0 - smoothstep(-0.5 * SHADOW_BLUR, SHADOW_BLUR, min(sdUp, sdDown)));
|
|
58
|
+
vec4 c = vec4(mix(to.rgb, shadow.rgb, sh), to.a);
|
|
59
|
+
|
|
60
|
+
float reach = 0.5 * length(vec2(ratio, 1.0)) + 0.1;
|
|
61
|
+
float k = clamp(p / CUT, 0.0, 1.0);
|
|
62
|
+
float head = mix(-reach, reach, 1.0 - (1.0 - k) * (1.0 - k));
|
|
63
|
+
float behind = head - along;
|
|
64
|
+
float drawn = clamp(0.5 + behind / EDGE, 0.0, 1.0);
|
|
65
|
+
|
|
66
|
+
float rim = flash.a * smoothstep(0.0, CUT, p) * (1.0 - 0.6 * t) * drawn;
|
|
67
|
+
for (int i = 0; i < 2; i++) {
|
|
68
|
+
float s = i == 0 ? 1.0 : -1.0;
|
|
69
|
+
vec3 h = piece(q, s * vUp, N, s);
|
|
70
|
+
float cover = clamp(0.5 - h.z / EDGE, 0.0, 1.0);
|
|
71
|
+
vec4 col = getFromColor(clamp(h.xy / vec2(ratio, 1.0) + 0.5, 0.0, 1.0));
|
|
72
|
+
float e = max(s * dot(h.xy, N), 0.0);
|
|
73
|
+
col.rgb = mix(col.rgb, flash.rgb, rim * exp(-e / 0.004) * col.a);
|
|
74
|
+
c = mix(c, col, cover);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
float tail = drawn * (0.35 + 0.65 * exp(-max(behind, 0.0) * 4.0));
|
|
78
|
+
float env = smoothstep(0.0, 0.03, p) * (1.0 - smoothstep(CUT, CUT + 0.12, p));
|
|
79
|
+
float core = exp(-abs(d) / 0.0025) + 0.35 * exp(-abs(d) / 0.02);
|
|
80
|
+
float spark = exp(-length(vec2(behind, d)) / 0.03) * (1.0 - k);
|
|
81
|
+
float glow = flash.a * env * (core * tail + spark);
|
|
82
|
+
float burst = flash.a * 0.25 * smoothstep(0.6 * CUT, CUT, p) * (1.0 - smoothstep(CUT, CUT + 0.15, p));
|
|
83
|
+
c.rgb = mix(c.rgb, flash.rgb, burst * c.a);
|
|
84
|
+
c.rgb += flash.rgb * glow * c.a;
|
|
85
|
+
return c;
|
|
86
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// SlideProjector — GLSL ES 3.00, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/SlideProjector.glsl
|
|
2
|
+
// Author: gre
|
|
3
|
+
// License: MIT
|
|
4
|
+
// Description: A slide projector changes slides: the outgoing picture is jerked up out of the frame, blurring as it leaves the focal plane, the bare lamp flickers on the screen for an instant, then the incoming picture drops in from the top, bounces and hunts for focus before it sharpens
|
|
5
|
+
// Tags: retro, projector, slide, vertical, bounce, focus, flicker
|
|
6
|
+
|
|
7
|
+
// @range(0, 1) How high the incoming slide bounces when it lands in the gate
|
|
8
|
+
uniform float bounce; // = 0.5
|
|
9
|
+
// @range(0, 1) How out of focus the slides get while they move
|
|
10
|
+
uniform float defocus; // = 0.5
|
|
11
|
+
// @range(0, 1) How much the lamp flickers during the change
|
|
12
|
+
uniform float flicker; // = 0.5
|
|
13
|
+
// @color Color of the lamp light on the screen while the gate is empty
|
|
14
|
+
uniform vec4 lampColor; // = vec4(1.0, 0.95, 0.84, 1.0)
|
|
15
|
+
|
|
16
|
+
const float PI = 3.14159265;
|
|
17
|
+
const float MOUNT = 0.07;
|
|
18
|
+
const float CLEAR = 1.0 + MOUNT;
|
|
19
|
+
const int TAPS = 16;
|
|
20
|
+
|
|
21
|
+
float hash(float n) {
|
|
22
|
+
vec3 p3 = fract(vec3(n) * 0.1031);
|
|
23
|
+
p3 += dot(p3, p3.yzx + 33.33);
|
|
24
|
+
return fract((p3.x + p3.y) * p3.z);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// height of the outgoing picture on the screen: a short dip as the lift arm grabs the slide, then
|
|
28
|
+
// it is jerked up, still accelerating as it leaves the frame
|
|
29
|
+
float liftOut(float p) {
|
|
30
|
+
float u = clamp((p - 0.05) / 0.3, 0.0, 1.0);
|
|
31
|
+
float d = clamp(p / 0.12, 0.0, 1.0);
|
|
32
|
+
float s = sin(PI * d);
|
|
33
|
+
return CLEAR * u * u * (0.6 + 0.4 * u) - (0.004 + 0.012 * bounce) * s * s;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// height of the incoming picture: it falls into the gate under gravity, then makes two small hops
|
|
37
|
+
float dropIn(float p) {
|
|
38
|
+
float v = clamp((p - 0.37) / 0.19, 0.0, 1.0);
|
|
39
|
+
float y = CLEAR * (1.0 - v * v);
|
|
40
|
+
float w = clamp((p - 0.56) / 0.22, 0.0, 1.0);
|
|
41
|
+
float h = 0.06 * bounce;
|
|
42
|
+
// hop lengths in proportion to the square root of their heights (1 and 0.15)
|
|
43
|
+
float s1 = clamp(w / 0.72, 0.0, 1.0);
|
|
44
|
+
float s2 = clamp((w - 0.72) / 0.28, 0.0, 1.0);
|
|
45
|
+
return y + h * 4.0 * s1 * (1.0 - s1) + h * 0.15 * 4.0 * s2 * (1.0 - s2);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// how far out of focus the projection is (0 to 1): the outgoing slide leaves the focal plane as it
|
|
49
|
+
// is lifted, the incoming one lands out of focus, sharpens, overshoots and comes back sharp
|
|
50
|
+
float blurAmount(float p) {
|
|
51
|
+
float s = clamp((p - 0.56) / 0.4, 0.0, 1.0);
|
|
52
|
+
float k = 1.0 - s;
|
|
53
|
+
float hunt = abs(cos(s * PI * 1.5)) * k;
|
|
54
|
+
return smoothstep(0.04, 0.3, p) * (p < 0.56 ? 1.0 : hunt);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
float band(float y, float a, float b, float aa) {
|
|
58
|
+
return clamp((min(y - a, b - y)) / aa + 0.5, 0.0, 1.0);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// the gate seen on the screen at y (frame coordinates) with the outgoing slide at height yf and
|
|
62
|
+
// the incoming one at height yt, premultiplied; light is the brightness of the bare lamp there and
|
|
63
|
+
// shade the one of the pictures
|
|
64
|
+
vec4 gate(vec2 q, float yf, float yt, float light, float shade) {
|
|
65
|
+
// edges get sharp as a slide comes to rest, so that it then covers the whole frame
|
|
66
|
+
float af = 0.0015 * min(abs(yf) * 400.0, 1.0) + 1e-6;
|
|
67
|
+
float at = 0.0015 * min(abs(yt) * 400.0, 1.0) + 1e-6;
|
|
68
|
+
vec4 c = vec4(lampColor.rgb * lampColor.a * light, lampColor.a);
|
|
69
|
+
float mf = band(q.y, yf - MOUNT, yf + 1.0 + MOUNT, af);
|
|
70
|
+
float mt = band(q.y, yt - MOUNT, yt + 1.0 + MOUNT, at);
|
|
71
|
+
c.rgb *= 1.0 - 0.96 * max(mf, mt);
|
|
72
|
+
float pf = band(q.y, yf, yf + 1.0, af);
|
|
73
|
+
if (pf > 0.0) {
|
|
74
|
+
vec4 t = getFromColor(vec2(q.x, q.y - yf));
|
|
75
|
+
c = mix(c, vec4(t.rgb * t.a * shade, t.a), pf);
|
|
76
|
+
}
|
|
77
|
+
float pt = band(q.y, yt, yt + 1.0, at);
|
|
78
|
+
if (pt > 0.0) {
|
|
79
|
+
vec4 t = getToColor(vec2(q.x, q.y - yt));
|
|
80
|
+
c = mix(c, vec4(t.rgb * t.a * shade, t.a), pt);
|
|
81
|
+
}
|
|
82
|
+
return c;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
vec4 transition(vec2 uv) {
|
|
86
|
+
float p = progress;
|
|
87
|
+
|
|
88
|
+
float yf = liftOut(p);
|
|
89
|
+
float yt = dropIn(p);
|
|
90
|
+
// vertical speed of the slide that moves (one at a time), for the motion blur
|
|
91
|
+
float dp = 0.004;
|
|
92
|
+
float vf = (liftOut(p + dp) - liftOut(p - dp)) / (2.0 * dp);
|
|
93
|
+
float vt = (dropIn(p + dp) - dropIn(p - dp)) / (2.0 * dp);
|
|
94
|
+
float smear = min(max(abs(vf), abs(vt)) * 0.012, 0.07);
|
|
95
|
+
|
|
96
|
+
float b = blurAmount(p);
|
|
97
|
+
float radius = defocus * 0.02 * b;
|
|
98
|
+
float zoom = 1.0 + 0.025 * defocus * b;
|
|
99
|
+
vec2 c0 = (uv - 0.5) / zoom + 0.5;
|
|
100
|
+
|
|
101
|
+
float env = smoothstep(0.0, 0.12, p) * (1.0 - smoothstep(0.72, 1.0, p));
|
|
102
|
+
float fc = p * 30.0;
|
|
103
|
+
float fl = mix(hash(floor(fc)), hash(floor(fc) + 1.0), smoothstep(0.3, 0.7, fract(fc)));
|
|
104
|
+
vec2 d = (uv - 0.5) * vec2(ratio, 1.0) / (0.5 * sqrt(ratio * ratio + 1.0));
|
|
105
|
+
float light = (1.0 - 0.3 * dot(d, d)) * (1.0 - 0.3 * flicker * fl * env);
|
|
106
|
+
float shade = mix(1.0, 0.92 * light, env);
|
|
107
|
+
|
|
108
|
+
vec4 c;
|
|
109
|
+
if (radius + smear < 1e-4) {
|
|
110
|
+
c = gate(c0, yf, yt, light, shade);
|
|
111
|
+
return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);
|
|
112
|
+
}
|
|
113
|
+
c = vec4(0.0);
|
|
114
|
+
for (int i = 0; i < TAPS; i++) {
|
|
115
|
+
float fi = float(i);
|
|
116
|
+
float a = fi * 2.39996;
|
|
117
|
+
vec2 o = sqrt((fi + 0.5) / float(TAPS)) * vec2(cos(a) / ratio, sin(a)) * radius;
|
|
118
|
+
o.y += ((fi + 0.5) / float(TAPS) - 0.5) * smear;
|
|
119
|
+
// the gate is the frame: fold the taps back so its edges stay sharp
|
|
120
|
+
vec2 q = 1.0 - abs(1.0 - abs(c0 + o));
|
|
121
|
+
c += gate(q, yf, yt, light, shade);
|
|
122
|
+
}
|
|
123
|
+
c /= float(TAPS);
|
|
124
|
+
return c.a > 0.0 ? vec4(c.rgb / c.a, c.a) : vec4(0.0);
|
|
125
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// SlitStretch — GLSL ES 3.00, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/SlitStretch.glsl
|
|
2
|
+
// Author: gre
|
|
3
|
+
// License: MIT
|
|
4
|
+
// Description: The outgoing image is a sheet cut with rows of staggered slits that is pulled from both ends: it lengthens, the slits open into diamonds and the strands between them twist and thin out like expanded metal until only the incoming image is left behind
|
|
5
|
+
// Tags: paper, stretch, pattern, 3d, shadow
|
|
6
|
+
|
|
7
|
+
// @range(0.05, 0.4) Length of a slit and its bridge, relative to the image height
|
|
8
|
+
uniform float size; // = 0.16
|
|
9
|
+
// @range(0, 3) How much the sheet lengthens as it is pulled
|
|
10
|
+
uniform float stretch; // = 1.6
|
|
11
|
+
// @range(0, 1) Strength of the shading of the twisting strands and of their shadow
|
|
12
|
+
uniform float shading; // = 0.7
|
|
13
|
+
// @range(0, 1) How much the sheet narrows at its waist as it is pulled
|
|
14
|
+
uniform float neck; // = 0.8
|
|
15
|
+
// @param Pull the sheet sideways instead, with vertical slits
|
|
16
|
+
uniform bool horizontal; // = false
|
|
17
|
+
|
|
18
|
+
vec4 transition(vec2 uv) {
|
|
19
|
+
float t = progress;
|
|
20
|
+
float q = t * t * (3.0 - 2.0 * t);
|
|
21
|
+
if (q <= 0.0) return getFromColor(uv);
|
|
22
|
+
vec2 asp = vec2(ratio, 1.0);
|
|
23
|
+
// work with the slits along x and the pull along y
|
|
24
|
+
vec2 p = (uv - 0.5) * asp;
|
|
25
|
+
if (horizontal) p = p.yx;
|
|
26
|
+
float Sy = 1.0 + stretch * q;
|
|
27
|
+
// (ys: -0.5 to 0.5 along the sheet's length)
|
|
28
|
+
float ys = clamp(p.y / (Sy * (horizontal ? ratio : 1.0)), -0.5, 0.5);
|
|
29
|
+
float hw = 0.5 * (horizontal ? 1.0 : ratio);
|
|
30
|
+
float wf = 1.0 - 0.7 * neck * q * (1.0 - 4.0 * ys * ys);
|
|
31
|
+
// (no edge on the frame's border at the start)
|
|
32
|
+
float side = (hw * wf - abs(p.x)) / (0.003 * min(1.0, 200.0 * q) + 1e-7);
|
|
33
|
+
p.x /= wf;
|
|
34
|
+
float a = 0.5 * size;
|
|
35
|
+
float b = 0.22 * size * Sy;
|
|
36
|
+
float j = floor(p.y / b + 0.5);
|
|
37
|
+
float xo = mod(j, 2.0) * a;
|
|
38
|
+
float i = floor((p.x - xo) / (2.0 * a) + 0.5);
|
|
39
|
+
vec2 c = vec2(i * 2.0 * a + xo, j * b);
|
|
40
|
+
vec2 d = p - c;
|
|
41
|
+
// check the two neighbouring rows too: the diamonds interlock
|
|
42
|
+
vec2 d2 = p - vec2(c.x + (p.x > c.x ? a : -a), c.y + (p.y > c.y ? b : -b));
|
|
43
|
+
if (abs(d2.x) / a + abs(d2.y) / b < abs(d.x) / a + abs(d.y) / b) d = d2;
|
|
44
|
+
|
|
45
|
+
// the hole: a slit (the bridges between slits keep the sheet whole) that opens into a diamond,
|
|
46
|
+
// slightly larger than the cell at the end, so the strands have gone edge-on
|
|
47
|
+
float grow = 1.0 + 0.12 * q;
|
|
48
|
+
float A = max(a * mix(0.72, 1.0, q) * grow, 1e-4);
|
|
49
|
+
float H = max(b * sqrt(q) * grow, 1e-5);
|
|
50
|
+
float f = abs(d.x) / A + abs(d.y) / H - 1.0;
|
|
51
|
+
float dist = f / sqrt(1.0 / (A * A) + 1.0 / (H * H));
|
|
52
|
+
float e = 0.004;
|
|
53
|
+
// (the edge moves in by its whole softness at the end, so even the finest strands are gone)
|
|
54
|
+
float hole = max(smoothstep(0.0, e, e * q * q * q * q - dist), clamp(0.5 - side, 0.0, 1.0));
|
|
55
|
+
|
|
56
|
+
vec4 img = vec4(0.0);
|
|
57
|
+
if (hole < 1.0) {
|
|
58
|
+
vec2 sp = vec2(p.x, p.y / Sy);
|
|
59
|
+
if (horizontal) sp = sp.yx;
|
|
60
|
+
img = getFromColor(clamp(sp / asp + 0.5, 0.0, 1.0));
|
|
61
|
+
float facet = clamp(d.x * d.y / (0.25 * a * b + 1e-6), -1.0, 1.0);
|
|
62
|
+
float rim = clamp(1.0 - dist / (0.25 * b + 1e-5), 0.0, 1.0);
|
|
63
|
+
img.rgb *= 1.0 + shading * q * (0.35 * facet - 0.25 * rim);
|
|
64
|
+
if (hole <= 0.0) return img;
|
|
65
|
+
}
|
|
66
|
+
vec4 bg = getToColor(uv);
|
|
67
|
+
// soft shadow of the mesh (only within the sheet, not beside its waist)
|
|
68
|
+
float sh = (1.0 - smoothstep(0.0, 0.25 * b + e, -dist)) * clamp(0.5 + side, 0.0, 1.0);
|
|
69
|
+
bg.rgb *= 1.0 - 0.45 * shading * sh * (1.0 - q);
|
|
70
|
+
return mix(img, bg, hole);
|
|
71
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// SlitThread — GLSL ES 3.00, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/SlitThread.glsl
|
|
2
|
+
// Author: gre
|
|
3
|
+
// License: MIT
|
|
4
|
+
// Description: A slit is cut across the middle of the outgoing image and the incoming image is pulled down through it from behind, bulging the old picture above the slit, then swings back up in front of it to cover the frame
|
|
5
|
+
// Tags: slit, thread, paper, layers, through
|
|
6
|
+
|
|
7
|
+
// @range(0.5, 0.95) Width of the incoming sheet while it passes through the slit
|
|
8
|
+
uniform float sheet; // = 0.84
|
|
9
|
+
// @range(0, 1) Strength of shadows and the bulge of the hidden sheet
|
|
10
|
+
uniform float depth; // = 0.8
|
|
11
|
+
|
|
12
|
+
const vec2 LIGHT = vec2(-0.6, 0.8);
|
|
13
|
+
|
|
14
|
+
vec2 rectE(vec2 q, vec2 lo, vec2 hi, vec2 box) {
|
|
15
|
+
return max(lo - q, q - hi) * box;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
float rectD(vec2 q, vec2 lo, vec2 hi, vec2 box) {
|
|
19
|
+
vec2 e = rectE(q, lo, hi, box);
|
|
20
|
+
return max(e.x, e.y);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
float bump(vec2 q, vec2 lo, vec2 hi, vec2 box, float y0) {
|
|
24
|
+
vec2 e = rectE(q, lo, hi, box) + 0.1;
|
|
25
|
+
float d = length(max(e, 0.0)) + min(max(e.x, e.y), 0.0) - 0.1;
|
|
26
|
+
return (1.0 - smoothstep(-0.12, 0.05, d)) * smoothstep(y0, y0 + 0.1, q.y);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
vec4 transition(vec2 uv) {
|
|
30
|
+
vec2 box = vec2(ratio, 1.0);
|
|
31
|
+
float px = 1.0 / 200.0;
|
|
32
|
+
float t = progress;
|
|
33
|
+
float k = clamp(depth, 0.0, 1.0);
|
|
34
|
+
float s0 = clamp(sheet, 0.5, 0.95);
|
|
35
|
+
float y0 = 0.5;
|
|
36
|
+
|
|
37
|
+
// down then up as one swing: the phase lengths match the deceleration into the turn to the acceleration out of it
|
|
38
|
+
float yStart = y0 + 0.012;
|
|
39
|
+
// at the turn the sheet's top edge and its AA fringe sit just under the slit, so the layer switch is invisible
|
|
40
|
+
float yTurn = y0 - 0.004 - 1.5 * px - s0;
|
|
41
|
+
float t0 = 0.06;
|
|
42
|
+
float tTurn = t0 + (1.0 - t0) / (1.0 + sqrt(max(-yTurn, 0.0) / (yStart - yTurn)));
|
|
43
|
+
float down = smoothstep(t0, tTurn, t);
|
|
44
|
+
float rise = smoothstep(tTurn, 1.0, t);
|
|
45
|
+
float s = mix(s0, 1.0, rise);
|
|
46
|
+
float yb = mix(mix(yStart, yTurn, down), 0.0, rise);
|
|
47
|
+
vec2 lo = vec2(0.5 - 0.5 * s, yb), hi = vec2(0.5 + 0.5 * s, yb + s);
|
|
48
|
+
float through = step(tTurn, t);
|
|
49
|
+
float threading = smoothstep(t0, t0 + 0.12, t) * (1.0 - smoothstep(tTurn - 0.1, tTurn, t));
|
|
50
|
+
float enter = smoothstep(t0, t0 + 0.15, t);
|
|
51
|
+
float hidden = (1.0 - through) * enter;
|
|
52
|
+
|
|
53
|
+
float cut = smoothstep(0.0, 0.12, t);
|
|
54
|
+
float halfL = (0.5 * s0 + 0.035) * cut;
|
|
55
|
+
float along = clamp(abs(uv.x - 0.5) / max(halfL, 1e-4), 0.0, 1.0);
|
|
56
|
+
float onSlit = (1.0 - smoothstep(halfL - px, halfL, abs(uv.x - 0.5))) * cut;
|
|
57
|
+
float gap = (0.004 + 0.007 * threading * (1.0 - along * along)) * cut;
|
|
58
|
+
float dy = uv.y - y0;
|
|
59
|
+
|
|
60
|
+
vec2 grad = vec2(0.0);
|
|
61
|
+
if (hidden * k > 0.0) {
|
|
62
|
+
vec2 e = vec2(0.01, 0.0);
|
|
63
|
+
float bx = bump(uv + e.xy, lo, hi, box, y0) - bump(uv - e.xy, lo, hi, box, y0);
|
|
64
|
+
float by = bump(uv + e.yx, lo, hi, box, y0) - bump(uv - e.yx, lo, hi, box, y0);
|
|
65
|
+
grad = vec2(bx, by) * hidden * k;
|
|
66
|
+
}
|
|
67
|
+
vec4 c = getFromColor(uv - 0.01 * grad);
|
|
68
|
+
c.rgb *= 1.0 - 1.2 * dot(grad, LIGHT);
|
|
69
|
+
|
|
70
|
+
c.rgb *= 1.0 - onSlit * 0.85 * (1.0 - smoothstep(gap - 0.5 * px, gap + 0.5 * px, abs(dy)));
|
|
71
|
+
float lipLit = onSlit * smoothstep(gap - 0.5 * px, gap + 0.5 * px, -dy) * (1.0 - smoothstep(gap, gap + 0.012, -dy));
|
|
72
|
+
c.rgb += 0.12 * lipLit;
|
|
73
|
+
|
|
74
|
+
float below = 1.0 - smoothstep(-0.5 * px, 0.5 * px, uv.y - (y0 - gap));
|
|
75
|
+
float front = mix(below, 1.0, through);
|
|
76
|
+
float lift = mix(1.0, 0.6, rise);
|
|
77
|
+
float sh = rectD(uv - vec2(0.008, -0.014) * lift, lo, hi, box);
|
|
78
|
+
float shadowFront = mix(below, 1.0, smoothstep(tTurn, tTurn + 0.08, t));
|
|
79
|
+
c.rgb *= 1.0 - 0.45 * k * shadowFront * (1.0 - smoothstep(-0.02, 0.025, sh)) * (1.0 - rise * rise) * enter;
|
|
80
|
+
|
|
81
|
+
float d = rectD(uv, lo, hi, box);
|
|
82
|
+
// AA fades out so the full-frame border lands exact
|
|
83
|
+
float aa = px * (1.0 - rise) + 1e-4;
|
|
84
|
+
float cov = (1.0 - smoothstep(-aa, aa, d - 0.004 * rise)) * front;
|
|
85
|
+
vec4 to = getToColor(clamp((uv - lo) / s, 0.0, 1.0));
|
|
86
|
+
float lip = (y0 - gap - uv.y) / px;
|
|
87
|
+
float lipShade = threading * step(0.0, lip);
|
|
88
|
+
to.rgb *= 1.0 - 0.5 * k * lipShade * exp(-lip / 5.0);
|
|
89
|
+
to.rgb *= 1.0 - 0.12 * k * smoothstep(-0.01, 0.0, d) * (1.0 - rise);
|
|
90
|
+
return mix(c, to, cov);
|
|
91
|
+
}
|
package/glsl3/SlotReels.glsl
CHANGED
|
@@ -18,14 +18,10 @@ uniform vec4 separator; // = vec4(0.04, 0.04, 0.05, 1.0)
|
|
|
18
18
|
const float PI = 3.141592653589793;
|
|
19
19
|
// half of the arc of the drum seen in the frame, in radians
|
|
20
20
|
const float ARC = 1.15;
|
|
21
|
-
// duration of the bounce, as a part of the transition
|
|
22
21
|
const float SETTLE = 0.1;
|
|
23
|
-
// width of the separators, in frame heights
|
|
24
22
|
const float LINE = 0.006;
|
|
25
|
-
// width of the anti-aliased edges, in frame heights
|
|
26
23
|
const float EDGE = 0.0015;
|
|
27
24
|
|
|
28
|
-
// the time at which the reel stops, before its bounce
|
|
29
25
|
float stopTime(float i, float n) {
|
|
30
26
|
float order = n > 1.0 ? i / (n - 1.0) : 1.0;
|
|
31
27
|
return (1.0 - SETTLE) * (1.0 - clamp(stagger, 0.0, 0.9) * (1.0 - order));
|
|
@@ -63,23 +59,19 @@ vec4 transition (vec2 uv) {
|
|
|
63
59
|
// an odd number of turns, more for the reels that spin longer, so they land on the incoming image
|
|
64
60
|
float turns = 2.0 * floor(stopT * 4.0) + 1.0;
|
|
65
61
|
|
|
66
|
-
// the reel is a drum while it spins, and flattens back as it settles
|
|
67
62
|
float drum = smoothstep(0.0, 0.12, progress) * (1.0 - smoothstep(stopT, stopT + SETTLE, progress));
|
|
68
63
|
float y = 2.0 * uv.y - 1.0;
|
|
69
64
|
// theta: the angle around the drum's axis, 0 facing the viewer
|
|
70
65
|
float theta = asin(clamp(y * sin(ARC), -1.0, 1.0));
|
|
71
66
|
float v = mix(uv.y, 0.5 + theta / (2.0 * ARC), drum);
|
|
72
|
-
// the far edges of the drum look narrower
|
|
73
67
|
float depth = (1.0 - cos(theta)) * drum;
|
|
74
68
|
float px = 0.5 + (lx - 0.5) * (1.0 + 0.2 * depth);
|
|
75
69
|
|
|
76
70
|
// offset from the resting position, -turns at the start, 0 once landed
|
|
77
71
|
float off = reelOffset(progress, stopT, turns) - turns;
|
|
78
72
|
float speed = abs(reelSpeed(progress, stopT, turns));
|
|
79
|
-
// the blur spans the distance the reel travels in about a frame
|
|
80
73
|
float spread = blur * min(speed * 0.02, 0.22) * drum;
|
|
81
74
|
|
|
82
|
-
// up to 8 taps along the reel, weighted toward the middle, one when it stands still
|
|
83
75
|
vec4 c = vec4(0.0);
|
|
84
76
|
float wsum = 0.0;
|
|
85
77
|
for (int k = 0; k < 8; k++) {
|
|
@@ -88,7 +80,6 @@ vec4 transition (vec2 uv) {
|
|
|
88
80
|
float vv = v + off + spread * f;
|
|
89
81
|
float seg = floor(vv);
|
|
90
82
|
vec2 q = vec2((i + clamp(px, 0.0, 1.0)) / n, vv - seg);
|
|
91
|
-
// the drum carries the incoming image on even segments, the outgoing one on odd segments
|
|
92
83
|
vec4 s = mod(seg, 2.0) < 0.5 ? getToColor(q) : getFromColor(q);
|
|
93
84
|
// a thin shadow at the seams between the images, not at the frame's top and bottom edges
|
|
94
85
|
s.rgb *= 1.0 - 0.6 * drum * (1.0 - y * y) * (1.0 - smoothstep(0.0, 0.02, min(q.y, 1.0 - q.y)));
|
|
@@ -98,21 +89,17 @@ vec4 transition (vec2 uv) {
|
|
|
98
89
|
}
|
|
99
90
|
c /= wsum;
|
|
100
91
|
|
|
101
|
-
// the drum's faces darken as they turn away, with a soft highlight above its middle
|
|
102
92
|
float facing = cos(theta);
|
|
103
93
|
c.rgb *= mix(1.0, 0.25 + 0.75 * facing * facing, drum);
|
|
104
94
|
c.rgb += drum * 0.07 * c.a * exp(-12.0 * (y - 0.3) * (y - 0.3));
|
|
105
95
|
|
|
106
|
-
// separators between the reels, and the background around the narrower far edges of the drums
|
|
107
96
|
float env = smoothstep(0.0, 0.1, progress) * (1.0 - smoothstep(0.9, 1.0, progress));
|
|
108
97
|
float reelW = ratio / n;
|
|
109
98
|
float persp = reelW / (1.0 + 0.2 * depth);
|
|
110
|
-
// distance to the reel's sides, and to its sides next to the other reels
|
|
111
99
|
float dSide = min(px, 1.0 - px) * persp;
|
|
112
100
|
float dInner = min(i > 0.5 ? px : 2.0, i < n - 1.5 ? 1.0 - px : 2.0) * persp;
|
|
113
101
|
float line = 1.0 - smoothstep(0.5 * LINE - EDGE, 0.5 * LINE + EDGE, dInner);
|
|
114
102
|
float outside = 1.0 - smoothstep(-EDGE, 0.0, dSide);
|
|
115
|
-
// a soft shadow cast by the separators on the reels
|
|
116
103
|
c.rgb *= 1.0 - 0.35 * env * (1.0 - smoothstep(0.0, 0.03 * reelW + LINE, dInner));
|
|
117
104
|
return mix(c, separator, max(line * env, outside));
|
|
118
105
|
}
|
package/glsl3/SmokeDissolve.glsl
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// License: MIT
|
|
4
4
|
// Description: Billowing smoke drifts in across the outgoing image, with lit tops, darker folds and wispy edges, and thickens until it covers the frame; as it thins out and drifts away, the incoming image shows through
|
|
5
5
|
// Tags: smoke, fog, organic, noise, cover
|
|
6
|
+
// Preview: 0.2
|
|
6
7
|
|
|
7
8
|
// @param Direction the smoke drifts toward (it comes in from the opposite side); its length is how far it drifts, in frame heights
|
|
8
9
|
uniform vec2 direction; // = vec2(0.5, 0.1)
|
|
@@ -60,10 +61,8 @@ vec4 transition(vec2 uv) {
|
|
|
60
61
|
float body = smoothstep(0.0, 1.0, arrive) * (1.0 - smoothstep(0.0, 1.0, leave));
|
|
61
62
|
// the images switch while the smoke is fully dense everywhere
|
|
62
63
|
float m = smoothstep(0.48, 0.52, p);
|
|
63
|
-
// no smoke here (yet, or any more): one image only
|
|
64
64
|
if (body <= 0.0) return m < 0.5 ? getFromColor(uv) : getToColor(uv);
|
|
65
65
|
|
|
66
|
-
// billows: noise warped by itself, drifting with the smoke and slowly churning
|
|
67
66
|
vec2 q = (pos - direction * (p - 0.5)) * scale;
|
|
68
67
|
vec2 churn = vec2(0.5 * p, -0.35 * p);
|
|
69
68
|
vec2 warp = vec2(fbm(q + vec2(3.1, 1.7) + churn), fbm(q + vec2(8.3, 2.8) - churn));
|
|
@@ -72,14 +71,11 @@ vec4 transition(vec2 uv) {
|
|
|
72
71
|
// the billows catch the light from above: brighter where the smoke rises toward it
|
|
73
72
|
// (on the coarse octave only, which shapes them)
|
|
74
73
|
float lit = 0.53 * (vnoise(w) - vnoise(w + vec2(0.0, 0.2)));
|
|
75
|
-
// finer curls that fray the edges into wisps
|
|
76
74
|
float wisp = vnoise(w * 3.3 - 2.0 * churn) - 0.5;
|
|
77
75
|
|
|
78
|
-
// density: the billows fill in first, the gaps between them last, and thin out first
|
|
79
76
|
float edge = 2.0 * body - (1.0 - smoothstep(0.1, 0.6, n)) + 1.6 * body * (1.0 - body) * wisp;
|
|
80
77
|
float d = smoothstep(0.0, softness, edge) * mix(0.5, 1.0, smoothstep(0.2, 0.9, body));
|
|
81
78
|
|
|
82
|
-
// the image under the smoke: one image, or both mixed (premultiplied) during the switch
|
|
83
79
|
vec4 base;
|
|
84
80
|
if (m <= 0.0) base = getFromColor(uv);
|
|
85
81
|
else if (m >= 1.0) base = getToColor(uv);
|
|
@@ -91,7 +87,6 @@ vec4 transition(vec2 uv) {
|
|
|
91
87
|
}
|
|
92
88
|
if (d <= 0.0) return base;
|
|
93
89
|
|
|
94
|
-
// soft volumetric shading: lit tops, darker folds deep in the smoke, lighter thin wisps
|
|
95
90
|
float shade = 0.92 + 1.3 * lit;
|
|
96
91
|
shade *= mix(0.76, 1.04, smoothstep(0.25, 0.75, n));
|
|
97
92
|
shade = mix(1.0, shade, 0.3 + 0.7 * d);
|
|
@@ -14,18 +14,13 @@ uniform float smoothness; // = 0.5
|
|
|
14
14
|
vec4 transition(vec2 uv) {
|
|
15
15
|
vec4 a = getFromColor(uv);
|
|
16
16
|
vec4 b = getToColor(uv);
|
|
17
|
-
if (progress <= 0.0) return a;
|
|
18
|
-
if (progress >= 1.0) return b;
|
|
19
17
|
|
|
20
18
|
vec2 g = max(vec2(grid), 1.0);
|
|
21
|
-
// block coordinates from the top left corner
|
|
22
19
|
vec2 cell = min(floor(vec2(uv.x, 1.0 - uv.y) * g), g - 1.0);
|
|
23
|
-
// the snake runs along the rows, or along the columns when vertical
|
|
24
20
|
float lines = vertical ? g.x : g.y;
|
|
25
21
|
float len = vertical ? g.y : g.x;
|
|
26
22
|
float line = vertical ? cell.x : cell.y;
|
|
27
23
|
float pos = vertical ? cell.y : cell.x;
|
|
28
|
-
// every other line runs backward
|
|
29
24
|
if (mod(line, 2.0) > 0.5) pos = len - 1.0 - pos;
|
|
30
25
|
float order = line * len + pos;
|
|
31
26
|
|