gl-transitions 1.76.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +122 -0
- package/README.md +12 -6
- package/compatibility.json +298 -300
- package/gl-transitions.js +1 -1
- package/gl-transitions.json +1 -1
- package/glsl3/Bounce.glsl +4 -3
- package/glsl3/{BowTieWithParameter.glsl → BowTie.glsl} +1 -1
- package/glsl3/{burn0.glsl → BurnThrough.glsl} +1 -1
- package/glsl3/ButterflyWaveScrawler.glsl +3 -2
- package/glsl3/{chessboard.glsl → Chessboard.glsl} +1 -1
- package/glsl3/{circle.glsl → CircleIris.glsl} +3 -3
- package/glsl3/{circleopen.glsl → CircleOpen.glsl} +1 -1
- package/glsl3/{angular.glsl → ClockWipe.glsl} +1 -1
- package/glsl3/{coord-from-in.glsl → ColorCoords.glsl} +1 -1
- package/glsl3/{ColourDistance.glsl → ColorDistance.glsl} +1 -1
- package/glsl3/{colorphase.glsl → ColorPhase.glsl} +1 -1
- package/glsl3/ColorWrap.glsl +21 -0
- package/glsl3/{crosswarp.glsl → CrossWarp.glsl} +1 -1
- package/glsl3/{crosshatch.glsl → Crosshatch.glsl} +1 -1
- package/glsl3/{cube.glsl → Cube.glsl} +2 -2
- package/glsl3/{directional-easing.glsl → DirectionalEased.glsl} +1 -1
- package/glsl3/{directionalwarp.glsl → DirectionalWarp.glsl} +1 -1
- package/glsl3/{directionalwipe.glsl → DirectionalWipe.glsl} +1 -1
- package/glsl3/{displacement.glsl → DisplacementMap.glsl} +1 -1
- package/glsl3/{DoomScreenTransition.glsl → DoomMelt.glsl} +1 -1
- package/glsl3/{doorway.glsl → Doorway.glsl} +2 -2
- package/glsl3/DreamyZoom.glsl +2 -1
- package/glsl3/{EdgeTransition.glsl → EdgeGlow.glsl} +9 -5
- package/glsl3/{fade.glsl → Fade.glsl} +1 -1
- package/glsl3/{fadecolor.glsl → FadeColor.glsl} +4 -4
- package/glsl3/{fadegrayscale.glsl → FadeGrayscale.glsl} +3 -3
- package/glsl3/{burn.glsl → FlashFade.glsl} +3 -3
- package/glsl3/{polar_function.glsl → FlowerWipe.glsl} +1 -1
- package/glsl3/{flyeye.glsl → FlyEye.glsl} +4 -3
- package/glsl3/{parametric_glitch.glsl → GlitchBands.glsl} +1 -1
- package/glsl3/GlitchDisplace.glsl +1 -2
- package/glsl3/{Drop_Zone_Flicker.glsl → GlitchFlicker.glsl} +8 -6
- package/glsl3/GlitchMemories.glsl +2 -1
- package/glsl3/{dissolve.glsl → GlowDissolve.glsl} +2 -2
- package/glsl3/{heart.glsl → HeartWipe.glsl} +1 -1
- package/glsl3/{hexagonalize.glsl → Hexagonalize.glsl} +1 -1
- package/glsl3/{HSVfade.glsl → HsvFade.glsl} +5 -5
- package/glsl3/InvertedPageCurl.glsl +3 -2
- package/glsl3/{kaleidoscope.glsl → Kaleidoscope.glsl} +1 -1
- package/glsl3/{cannabisleaf.glsl → LeafWipe.glsl} +2 -2
- package/glsl3/LeftRight.glsl +1 -1
- package/glsl3/LissajousTiles.glsl +40 -0
- package/glsl3/{luma.glsl → LumaWipe.glsl} +1 -1
- package/glsl3/{luminance_melt.glsl → LuminanceMelt.glsl} +1 -1
- package/glsl3/{morph.glsl → Morph.glsl} +1 -1
- package/glsl3/{AdvancedMosaic.glsl → MosaicBlend.glsl} +1 -1
- package/glsl3/{mosaic_transition.glsl → MosaicFade.glsl} +1 -1
- package/glsl3/{multiply_blend.glsl → MultiplyBlend.glsl} +1 -1
- package/glsl3/{randomNoisex.glsl → NoiseDissolve.glsl} +1 -1
- package/glsl3/{perlin.glsl → PerlinDissolve.glsl} +1 -1
- package/glsl3/{pinwheel.glsl → Pinwheel.glsl} +1 -1
- package/glsl3/{pixelize.glsl → Pixelize.glsl} +1 -1
- package/glsl3/{powerKaleido.glsl → PowerKaleido.glsl} +1 -1
- package/glsl3/{Radial.glsl → RadialWipe.glsl} +1 -1
- package/glsl3/{randomsquares.glsl → RandomSquares.glsl} +1 -1
- package/glsl3/{Rectangle.glsl → RectangleCover.glsl} +1 -1
- package/glsl3/{RectangleCrop.glsl → RectangleIris.glsl} +1 -1
- package/glsl3/{Revolve_Left.glsl → Revolve.glsl} +1 -1
- package/glsl3/{ripple.glsl → Ripple.glsl} +1 -1
- package/glsl3/{rotateTransition.glsl → RotateFade.glsl} +1 -1
- package/glsl3/{rotate_scale_fade.glsl → RotateScaleFade.glsl} +1 -1
- package/glsl3/RotateScaleVanish.glsl +1 -1
- package/glsl3/{scale-in.glsl → ScaleIn.glsl} +1 -1
- package/glsl3/{fragment.glsl → Shatter.glsl} +1 -1
- package/glsl3/SimpleFlip.glsl +2 -1
- package/glsl3/{x_axis_translation.glsl → SlideAwayRight.glsl} +1 -1
- package/glsl3/{splitSlideInHorizontal.glsl → SplitSlideInHorizontal.glsl} +1 -1
- package/glsl3/{splitSlideInOutHorizontal.glsl → SplitSlideInOutHorizontal.glsl} +1 -1
- package/glsl3/{splitSlideInOutVertical.glsl → SplitSlideInOutVertical.glsl} +1 -1
- package/glsl3/{splitSlideInVertical.glsl → SplitSlideInVertical.glsl} +1 -1
- package/glsl3/{splitSlideOutHorizontal.glsl → SplitSlideOutHorizontal.glsl} +1 -1
- package/glsl3/{splitSlideOutVertical.glsl → SplitSlideOutVertical.glsl} +1 -1
- package/glsl3/{squareswire.glsl → SquaresWipe.glsl} +1 -1
- package/glsl3/{squeeze.glsl → Squeeze.glsl} +1 -1
- package/glsl3/StaticFade.glsl +3 -3
- package/glsl3/{static_wipe.glsl → StaticWipe.glsl} +2 -2
- package/glsl3/StereoViewer.glsl +1 -1
- package/glsl3/StripDatamoshGlitch.glsl +7 -5
- package/glsl3/{swap.glsl → Swap.glsl} +2 -2
- package/glsl3/{tangentMotionBlur.glsl → TangentMotionBlur.glsl} +12 -5
- package/glsl3/TopBottom.glsl +1 -1
- package/glsl3/{old_tv_lost_signal.glsl → TvLostSignal.glsl} +1 -1
- package/glsl3/{TVStatic.glsl → TvStatic.glsl} +2 -2
- package/glsl3/{undulatingBurnOut.glsl → UndulatingBurnOut.glsl} +3 -3
- package/glsl3/{wind.glsl → Wind.glsl} +1 -1
- package/glsl3/{windowblinds.glsl → WindowBlinds.glsl} +1 -1
- package/glsl3/{windowslice.glsl → WindowSlices.glsl} +1 -1
- package/glsl3/{wipeDown.glsl → WipeDown.glsl} +1 -1
- package/glsl3/{wipeLeft.glsl → WipeLeft.glsl} +1 -1
- package/glsl3/{wipeRight.glsl → WipeRight.glsl} +1 -1
- package/glsl3/{wipeUp.glsl → WipeUp.glsl} +1 -1
- package/glsl3/{zoomInOut.glsl → ZoomInOut.glsl} +1 -1
- package/glsl3/{ZoomLeftWipe.glsl → ZoomWipeLeft.glsl} +1 -1
- package/glsl3/{ZoomRigthWipe.glsl → ZoomWipeRight.glsl} +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/layouts.json +778 -758
- package/llms-full.txt +1062 -1048
- package/llms.txt +136 -130
- package/msl/Bounce.metal +36 -31
- package/msl/{BowTieWithParameter.metal → BowTie.metal} +1 -1
- package/msl/{burn0.metal → BurnThrough.metal} +1 -1
- package/msl/ButterflyWaveScrawler.metal +86 -82
- package/msl/{chessboard.metal → Chessboard.metal} +1 -1
- package/msl/{circle.metal → CircleIris.metal} +14 -14
- package/msl/{circleopen.metal → CircleOpen.metal} +1 -1
- package/msl/{angular.metal → ClockWipe.metal} +1 -1
- package/msl/{coord-from-in.metal → ColorCoords.metal} +1 -1
- package/msl/{ColourDistance.metal → ColorDistance.metal} +1 -1
- package/msl/{colorphase.metal → ColorPhase.metal} +1 -1
- package/msl/ColorWrap.metal +119 -0
- package/msl/{crosswarp.metal → CrossWarp.metal} +1 -1
- package/msl/{crosshatch.metal → Crosshatch.metal} +1 -1
- package/msl/Cube.metal +259 -0
- package/msl/{directional-easing.metal → DirectionalEased.metal} +1 -1
- package/msl/{directionalwarp.metal → DirectionalWarp.metal} +1 -1
- package/msl/{directionalwipe.metal → DirectionalWipe.metal} +1 -1
- package/msl/{displacement.metal → DisplacementMap.metal} +1 -1
- package/msl/{DoomScreenTransition.metal → DoomMelt.metal} +1 -1
- package/msl/{doorway.metal → Doorway.metal} +3 -3
- package/msl/DreamyZoom.metal +81 -79
- package/msl/EdgeGlow.metal +294 -0
- package/msl/{fade.metal → Fade.metal} +1 -1
- package/msl/{fadecolor.metal → FadeColor.metal} +17 -16
- package/msl/{fadegrayscale.metal → FadeGrayscale.metal} +40 -38
- package/msl/{burn.metal → FlashFade.metal} +2 -2
- package/msl/{polar_function.metal → FlowerWipe.metal} +1 -1
- package/msl/FlyEye.metal +137 -0
- package/msl/{parametric_glitch.metal → GlitchBands.metal} +1 -1
- package/msl/GlitchDisplace.metal +177 -177
- package/msl/GlitchFlicker.metal +570 -0
- package/msl/GlitchMemories.metal +61 -57
- package/msl/{dissolve.metal → GlowDissolve.metal} +4 -6
- package/msl/{heart.metal → HeartWipe.metal} +1 -1
- package/msl/{hexagonalize.metal → Hexagonalize.metal} +1 -1
- package/msl/{HSVfade.metal → HsvFade.metal} +33 -30
- package/msl/InvertedPageCurl.metal +479 -471
- package/msl/{kaleidoscope.metal → Kaleidoscope.metal} +1 -1
- package/msl/{cannabisleaf.metal → LeafWipe.metal} +2 -2
- package/msl/LeftRight.metal +1 -1
- package/msl/LissajousTiles.metal +210 -0
- package/msl/{luma.metal → LumaWipe.metal} +1 -1
- package/msl/{luminance_melt.metal → LuminanceMelt.metal} +1 -1
- package/msl/{morph.metal → Morph.metal} +1 -1
- package/msl/{AdvancedMosaic.metal → MosaicBlend.metal} +1 -1
- package/msl/{mosaic_transition.metal → MosaicFade.metal} +1 -1
- package/msl/{multiply_blend.metal → MultiplyBlend.metal} +1 -1
- package/msl/{randomNoisex.metal → NoiseDissolve.metal} +1 -1
- package/msl/{perlin.metal → PerlinDissolve.metal} +1 -1
- package/msl/{pinwheel.metal → Pinwheel.metal} +1 -1
- package/msl/{pixelize.metal → Pixelize.metal} +1 -1
- package/msl/{powerKaleido.metal → PowerKaleido.metal} +1 -1
- package/msl/{Radial.metal → RadialWipe.metal} +1 -1
- package/msl/{randomsquares.metal → RandomSquares.metal} +1 -1
- package/msl/{Rectangle.metal → RectangleCover.metal} +1 -1
- package/msl/{RectangleCrop.metal → RectangleIris.metal} +1 -1
- package/msl/{Revolve_Left.metal → Revolve.metal} +1 -1
- package/msl/{ripple.metal → Ripple.metal} +1 -1
- package/msl/{rotateTransition.metal → RotateFade.metal} +1 -1
- package/msl/{rotate_scale_fade.metal → RotateScaleFade.metal} +1 -1
- package/msl/RotateScaleVanish.metal +1 -1
- package/msl/{scale-in.metal → ScaleIn.metal} +1 -1
- package/msl/{fragment.metal → Shatter.metal} +1 -1
- package/msl/SimpleFlip.metal +3 -4
- package/msl/{x_axis_translation.metal → SlideAwayRight.metal} +1 -1
- package/msl/{splitSlideInHorizontal.metal → SplitSlideInHorizontal.metal} +1 -1
- package/msl/{splitSlideInOutHorizontal.metal → SplitSlideInOutHorizontal.metal} +1 -1
- package/msl/{splitSlideInOutVertical.metal → SplitSlideInOutVertical.metal} +1 -1
- package/msl/{splitSlideInVertical.metal → SplitSlideInVertical.metal} +1 -1
- package/msl/{splitSlideOutHorizontal.metal → SplitSlideOutHorizontal.metal} +1 -1
- package/msl/{splitSlideOutVertical.metal → SplitSlideOutVertical.metal} +1 -1
- package/msl/{squareswire.metal → SquaresWipe.metal} +1 -1
- package/msl/{squeeze.metal → Squeeze.metal} +1 -1
- package/msl/StaticFade.metal +85 -80
- package/msl/{static_wipe.metal → StaticWipe.metal} +57 -56
- package/msl/StereoViewer.metal +7 -7
- package/msl/StripDatamoshGlitch.metal +497 -488
- package/msl/{swap.metal → Swap.metal} +4 -4
- package/msl/TangentMotionBlur.metal +607 -0
- package/msl/TopBottom.metal +1 -1
- package/msl/{old_tv_lost_signal.metal → TvLostSignal.metal} +1 -1
- package/msl/{TVStatic.metal → TvStatic.metal} +51 -43
- package/msl/{undulatingBurnOut.metal → UndulatingBurnOut.metal} +5 -5
- package/msl/{wind.metal → Wind.metal} +1 -1
- package/msl/{windowblinds.metal → WindowBlinds.metal} +1 -1
- package/msl/{windowslice.metal → WindowSlices.metal} +1 -1
- package/msl/{wipeDown.metal → WipeDown.metal} +1 -1
- package/msl/{wipeLeft.metal → WipeLeft.metal} +1 -1
- package/msl/{wipeRight.metal → WipeRight.metal} +1 -1
- package/msl/{wipeUp.metal → WipeUp.metal} +1 -1
- package/msl/{zoomInOut.metal → ZoomInOut.metal} +1 -1
- package/msl/{ZoomLeftWipe.metal → ZoomWipeLeft.metal} +1 -1
- package/msl/{ZoomRigthWipe.metal → ZoomWipeRight.metal} +1 -1
- package/package.json +1 -1
- package/skills/gl-transitions/SKILL.md +25 -18
- package/skills/gl-transitions/references/catalog.md +157 -156
- package/skills/gl-transitions/references/native.md +94 -0
- package/skills/gl-transitions/references/skia.md +35 -23
- package/skills/gl-transitions/references/video.md +37 -5
- package/skills/gl-transitions/references/webgl.md +1 -1
- package/sksl/Bounce.sksl +4 -3
- package/sksl/{BowTieWithParameter.sksl → BowTie.sksl} +1 -1
- package/sksl/{burn0.sksl → BurnThrough.sksl} +1 -1
- package/sksl/ButterflyWaveScrawler.sksl +3 -2
- package/sksl/{chessboard.sksl → Chessboard.sksl} +1 -1
- package/sksl/{circle.sksl → CircleIris.sksl} +3 -3
- package/sksl/{circleopen.sksl → CircleOpen.sksl} +1 -1
- package/sksl/{angular.sksl → ClockWipe.sksl} +1 -1
- package/sksl/{coord-from-in.sksl → ColorCoords.sksl} +1 -1
- package/sksl/{ColourDistance.sksl → ColorDistance.sksl} +1 -1
- package/sksl/{colorphase.sksl → ColorPhase.sksl} +1 -1
- package/sksl/ColorWrap.sksl +34 -0
- package/sksl/{crosswarp.sksl → CrossWarp.sksl} +1 -1
- package/sksl/{crosshatch.sksl → Crosshatch.sksl} +1 -1
- package/sksl/{cube.sksl → Cube.sksl} +2 -2
- package/sksl/{directional-easing.sksl → DirectionalEased.sksl} +1 -1
- package/sksl/{directionalwarp.sksl → DirectionalWarp.sksl} +1 -1
- package/sksl/{directionalwipe.sksl → DirectionalWipe.sksl} +1 -1
- package/sksl/{displacement.sksl → DisplacementMap.sksl} +1 -1
- package/sksl/{DoomScreenTransition.sksl → DoomMelt.sksl} +1 -1
- package/sksl/{doorway.sksl → Doorway.sksl} +2 -2
- package/sksl/DreamyZoom.sksl +2 -1
- package/sksl/{EdgeTransition.sksl → EdgeGlow.sksl} +9 -5
- package/sksl/{fade.sksl → Fade.sksl} +1 -1
- package/sksl/{fadecolor.sksl → FadeColor.sksl} +4 -4
- package/sksl/{fadegrayscale.sksl → FadeGrayscale.sksl} +3 -3
- package/sksl/{burn.sksl → FlashFade.sksl} +3 -3
- package/sksl/{polar_function.sksl → FlowerWipe.sksl} +1 -1
- package/sksl/{flyeye.sksl → FlyEye.sksl} +4 -3
- package/sksl/{parametric_glitch.sksl → GlitchBands.sksl} +1 -1
- package/sksl/GlitchDisplace.sksl +1 -2
- package/sksl/{Drop_Zone_Flicker.sksl → GlitchFlicker.sksl} +8 -6
- package/sksl/GlitchMemories.sksl +2 -1
- package/sksl/{dissolve.sksl → GlowDissolve.sksl} +2 -2
- package/sksl/{heart.sksl → HeartWipe.sksl} +1 -1
- package/sksl/{hexagonalize.sksl → Hexagonalize.sksl} +1 -1
- package/sksl/{HSVfade.sksl → HsvFade.sksl} +5 -5
- package/sksl/InvertedPageCurl.sksl +3 -2
- package/sksl/{kaleidoscope.sksl → Kaleidoscope.sksl} +1 -1
- package/sksl/{cannabisleaf.sksl → LeafWipe.sksl} +2 -2
- package/sksl/LeftRight.sksl +1 -1
- package/sksl/LissajousTiles.sksl +52 -0
- package/sksl/{luma.sksl → LumaWipe.sksl} +1 -1
- package/sksl/{luminance_melt.sksl → LuminanceMelt.sksl} +1 -1
- package/sksl/{morph.sksl → Morph.sksl} +1 -1
- package/sksl/{AdvancedMosaic.sksl → MosaicBlend.sksl} +1 -1
- package/sksl/{mosaic_transition.sksl → MosaicFade.sksl} +1 -1
- package/sksl/{multiply_blend.sksl → MultiplyBlend.sksl} +1 -1
- package/sksl/{randomNoisex.sksl → NoiseDissolve.sksl} +1 -1
- package/sksl/{perlin.sksl → PerlinDissolve.sksl} +1 -1
- package/sksl/{pinwheel.sksl → Pinwheel.sksl} +1 -1
- package/sksl/{pixelize.sksl → Pixelize.sksl} +1 -1
- package/sksl/{powerKaleido.sksl → PowerKaleido.sksl} +1 -1
- package/sksl/{Radial.sksl → RadialWipe.sksl} +1 -1
- package/sksl/{randomsquares.sksl → RandomSquares.sksl} +1 -1
- package/sksl/{Rectangle.sksl → RectangleCover.sksl} +1 -1
- package/sksl/{RectangleCrop.sksl → RectangleIris.sksl} +1 -1
- package/sksl/{Revolve_Left.sksl → Revolve.sksl} +1 -1
- package/sksl/{ripple.sksl → Ripple.sksl} +1 -1
- package/sksl/{rotateTransition.sksl → RotateFade.sksl} +1 -1
- package/sksl/{rotate_scale_fade.sksl → RotateScaleFade.sksl} +1 -1
- package/sksl/RotateScaleVanish.sksl +1 -1
- package/sksl/{scale-in.sksl → ScaleIn.sksl} +1 -1
- package/sksl/{fragment.sksl → Shatter.sksl} +1 -1
- package/sksl/SimpleFlip.sksl +2 -1
- package/sksl/{x_axis_translation.sksl → SlideAwayRight.sksl} +1 -1
- package/sksl/{splitSlideInHorizontal.sksl → SplitSlideInHorizontal.sksl} +1 -1
- package/sksl/{splitSlideInOutHorizontal.sksl → SplitSlideInOutHorizontal.sksl} +1 -1
- package/sksl/{splitSlideInOutVertical.sksl → SplitSlideInOutVertical.sksl} +1 -1
- package/sksl/{splitSlideInVertical.sksl → SplitSlideInVertical.sksl} +1 -1
- package/sksl/{splitSlideOutHorizontal.sksl → SplitSlideOutHorizontal.sksl} +1 -1
- package/sksl/{splitSlideOutVertical.sksl → SplitSlideOutVertical.sksl} +1 -1
- package/sksl/{squareswire.sksl → SquaresWipe.sksl} +1 -1
- package/sksl/{squeeze.sksl → Squeeze.sksl} +1 -1
- package/sksl/StaticFade.sksl +3 -3
- package/sksl/{static_wipe.sksl → StaticWipe.sksl} +2 -2
- package/sksl/StereoViewer.sksl +1 -1
- package/sksl/StripDatamoshGlitch.sksl +7 -5
- package/sksl/{swap.sksl → Swap.sksl} +2 -2
- package/sksl/{tangentMotionBlur.sksl → TangentMotionBlur.sksl} +12 -5
- package/sksl/TopBottom.sksl +1 -1
- package/sksl/{old_tv_lost_signal.sksl → TvLostSignal.sksl} +1 -1
- package/sksl/{TVStatic.sksl → TvStatic.sksl} +2 -2
- package/sksl/{undulatingBurnOut.sksl → UndulatingBurnOut.sksl} +3 -3
- package/sksl/{wind.sksl → Wind.sksl} +1 -1
- package/sksl/{windowblinds.sksl → WindowBlinds.sksl} +1 -1
- package/sksl/{windowslice.sksl → WindowSlices.sksl} +1 -1
- package/sksl/{wipeDown.sksl → WipeDown.sksl} +1 -1
- package/sksl/{wipeLeft.sksl → WipeLeft.sksl} +1 -1
- package/sksl/{wipeRight.sksl → WipeRight.sksl} +1 -1
- package/sksl/{wipeUp.sksl → WipeUp.sksl} +1 -1
- package/sksl/{zoomInOut.sksl → ZoomInOut.sksl} +1 -1
- package/sksl/{ZoomLeftWipe.sksl → ZoomWipeLeft.sksl} +1 -1
- package/sksl/{ZoomRigthWipe.sksl → ZoomWipeRight.sksl} +1 -1
- package/sksl/index.js +1 -1
- package/transitions/Bounce.glsl +4 -3
- package/transitions/ButterflyWaveScrawler.glsl +3 -2
- package/transitions/{circle.glsl → CircleIris.glsl} +2 -2
- package/transitions/ColorWrap.glsl +20 -0
- package/transitions/{cube.glsl → Cube.glsl} +1 -1
- package/transitions/{doorway.glsl → Doorway.glsl} +1 -1
- package/transitions/DreamyZoom.glsl +2 -1
- package/transitions/{EdgeTransition.glsl → EdgeGlow.glsl} +8 -4
- package/transitions/{fadecolor.glsl → FadeColor.glsl} +3 -3
- package/transitions/{fadegrayscale.glsl → FadeGrayscale.glsl} +2 -2
- package/transitions/{burn.glsl → FlashFade.glsl} +2 -2
- package/transitions/{flyeye.glsl → FlyEye.glsl} +3 -2
- package/transitions/GlitchDisplace.glsl +1 -2
- package/transitions/{Drop_Zone_Flicker.glsl → GlitchFlicker.glsl} +7 -5
- package/transitions/GlitchMemories.glsl +2 -1
- package/transitions/{dissolve.glsl → GlowDissolve.glsl} +1 -1
- package/transitions/{HSVfade.glsl → HsvFade.glsl} +4 -4
- package/transitions/InvertedPageCurl.glsl +3 -2
- package/transitions/{cannabisleaf.glsl → LeafWipe.glsl} +1 -1
- package/transitions/LeftRight.glsl +1 -1
- package/transitions/LissajousTiles.glsl +39 -0
- package/transitions/RotateScaleVanish.glsl +1 -1
- package/transitions/SimpleFlip.glsl +2 -1
- package/transitions/StaticFade.glsl +3 -3
- package/transitions/{static_wipe.glsl → StaticWipe.glsl} +1 -1
- package/transitions/StereoViewer.glsl +1 -1
- package/transitions/StripDatamoshGlitch.glsl +7 -5
- package/transitions/{swap.glsl → Swap.glsl} +1 -1
- package/transitions/{tangentMotionBlur.glsl → TangentMotionBlur.glsl} +11 -4
- package/transitions/TopBottom.glsl +1 -1
- package/transitions/{TVStatic.glsl → TvStatic.glsl} +1 -1
- package/transitions/{undulatingBurnOut.glsl → UndulatingBurnOut.glsl} +2 -2
- package/wgsl/Bounce.wgsl +36 -31
- package/wgsl/{BowTieWithParameter.wgsl → BowTie.wgsl} +1 -1
- package/wgsl/{burn0.wgsl → BurnThrough.wgsl} +1 -1
- package/wgsl/ButterflyWaveScrawler.wgsl +86 -82
- package/wgsl/{chessboard.wgsl → Chessboard.wgsl} +1 -1
- package/wgsl/{circle.wgsl → CircleIris.wgsl} +13 -13
- package/wgsl/{circleopen.wgsl → CircleOpen.wgsl} +1 -1
- package/wgsl/{angular.wgsl → ClockWipe.wgsl} +1 -1
- package/wgsl/{coord-from-in.wgsl → ColorCoords.wgsl} +1 -1
- package/wgsl/{ColourDistance.wgsl → ColorDistance.wgsl} +1 -1
- package/wgsl/{colorphase.wgsl → ColorPhase.wgsl} +1 -1
- package/wgsl/ColorWrap.wgsl +91 -0
- package/wgsl/{crosswarp.wgsl → CrossWarp.wgsl} +1 -1
- package/wgsl/{crosshatch.wgsl → Crosshatch.wgsl} +1 -1
- package/wgsl/Cube.wgsl +217 -0
- package/wgsl/{directional-easing.wgsl → DirectionalEased.wgsl} +1 -1
- package/wgsl/{directionalwarp.wgsl → DirectionalWarp.wgsl} +1 -1
- package/wgsl/{directionalwipe.wgsl → DirectionalWipe.wgsl} +1 -1
- package/wgsl/{displacement.wgsl → DisplacementMap.wgsl} +1 -1
- package/wgsl/{DoomScreenTransition.wgsl → DoomMelt.wgsl} +1 -1
- package/wgsl/{doorway.wgsl → Doorway.wgsl} +3 -3
- package/wgsl/DreamyZoom.wgsl +81 -79
- package/wgsl/EdgeGlow.wgsl +233 -0
- package/wgsl/{fade.wgsl → Fade.wgsl} +1 -1
- package/wgsl/{fadecolor.wgsl → FadeColor.wgsl} +15 -15
- package/wgsl/FadeGrayscale.wgsl +95 -0
- package/wgsl/{burn.wgsl → FlashFade.wgsl} +2 -2
- package/wgsl/{polar_function.wgsl → FlowerWipe.wgsl} +1 -1
- package/wgsl/FlyEye.wgsl +109 -0
- package/wgsl/{parametric_glitch.wgsl → GlitchBands.wgsl} +1 -1
- package/wgsl/GlitchDisplace.wgsl +177 -177
- package/wgsl/GlitchFlicker.wgsl +522 -0
- package/wgsl/GlitchMemories.wgsl +61 -57
- package/wgsl/{dissolve.wgsl → GlowDissolve.wgsl} +4 -6
- package/wgsl/{heart.wgsl → HeartWipe.wgsl} +1 -1
- package/wgsl/{hexagonalize.wgsl → Hexagonalize.wgsl} +1 -1
- package/wgsl/{HSVfade.wgsl → HsvFade.wgsl} +29 -26
- package/wgsl/InvertedPageCurl.wgsl +475 -467
- package/wgsl/{kaleidoscope.wgsl → Kaleidoscope.wgsl} +1 -1
- package/wgsl/{cannabisleaf.wgsl → LeafWipe.wgsl} +2 -2
- package/wgsl/LeftRight.wgsl +1 -1
- package/wgsl/LissajousTiles.wgsl +170 -0
- package/wgsl/{luma.wgsl → LumaWipe.wgsl} +1 -1
- package/wgsl/{luminance_melt.wgsl → LuminanceMelt.wgsl} +1 -1
- package/wgsl/{morph.wgsl → Morph.wgsl} +1 -1
- package/wgsl/{AdvancedMosaic.wgsl → MosaicBlend.wgsl} +1 -1
- package/wgsl/{mosaic_transition.wgsl → MosaicFade.wgsl} +1 -1
- package/wgsl/{multiply_blend.wgsl → MultiplyBlend.wgsl} +1 -1
- package/wgsl/{randomNoisex.wgsl → NoiseDissolve.wgsl} +1 -1
- package/wgsl/{perlin.wgsl → PerlinDissolve.wgsl} +1 -1
- package/wgsl/{pinwheel.wgsl → Pinwheel.wgsl} +1 -1
- package/wgsl/{pixelize.wgsl → Pixelize.wgsl} +1 -1
- package/wgsl/{powerKaleido.wgsl → PowerKaleido.wgsl} +1 -1
- package/wgsl/{Radial.wgsl → RadialWipe.wgsl} +1 -1
- package/wgsl/{randomsquares.wgsl → RandomSquares.wgsl} +1 -1
- package/wgsl/{Rectangle.wgsl → RectangleCover.wgsl} +1 -1
- package/wgsl/{RectangleCrop.wgsl → RectangleIris.wgsl} +1 -1
- package/wgsl/{Revolve_Left.wgsl → Revolve.wgsl} +1 -1
- package/wgsl/{ripple.wgsl → Ripple.wgsl} +1 -1
- package/wgsl/{rotateTransition.wgsl → RotateFade.wgsl} +1 -1
- package/wgsl/{rotate_scale_fade.wgsl → RotateScaleFade.wgsl} +1 -1
- package/wgsl/RotateScaleVanish.wgsl +1 -1
- package/wgsl/{scale-in.wgsl → ScaleIn.wgsl} +1 -1
- package/wgsl/{fragment.wgsl → Shatter.wgsl} +1 -1
- package/wgsl/SimpleFlip.wgsl +3 -4
- package/wgsl/{x_axis_translation.wgsl → SlideAwayRight.wgsl} +1 -1
- package/wgsl/{splitSlideInHorizontal.wgsl → SplitSlideInHorizontal.wgsl} +1 -1
- package/wgsl/{splitSlideInOutHorizontal.wgsl → SplitSlideInOutHorizontal.wgsl} +1 -1
- package/wgsl/{splitSlideInOutVertical.wgsl → SplitSlideInOutVertical.wgsl} +1 -1
- package/wgsl/{splitSlideInVertical.wgsl → SplitSlideInVertical.wgsl} +1 -1
- package/wgsl/{splitSlideOutHorizontal.wgsl → SplitSlideOutHorizontal.wgsl} +1 -1
- package/wgsl/{splitSlideOutVertical.wgsl → SplitSlideOutVertical.wgsl} +1 -1
- package/wgsl/{squareswire.wgsl → SquaresWipe.wgsl} +1 -1
- package/wgsl/{squeeze.wgsl → Squeeze.wgsl} +1 -1
- package/wgsl/StaticFade.wgsl +84 -80
- package/wgsl/StaticWipe.wgsl +118 -0
- package/wgsl/StereoViewer.wgsl +7 -7
- package/wgsl/StripDatamoshGlitch.wgsl +497 -488
- package/wgsl/{swap.wgsl → Swap.wgsl} +4 -4
- package/wgsl/TangentMotionBlur.wgsl +527 -0
- package/wgsl/TopBottom.wgsl +1 -1
- package/wgsl/{old_tv_lost_signal.wgsl → TvLostSignal.wgsl} +1 -1
- package/wgsl/TvStatic.wgsl +114 -0
- package/wgsl/{undulatingBurnOut.wgsl → UndulatingBurnOut.wgsl} +4 -4
- package/wgsl/{wind.wgsl → Wind.wgsl} +1 -1
- package/wgsl/{windowblinds.wgsl → WindowBlinds.wgsl} +1 -1
- package/wgsl/{windowslice.wgsl → WindowSlices.wgsl} +1 -1
- package/wgsl/{wipeDown.wgsl → WipeDown.wgsl} +1 -1
- package/wgsl/{wipeLeft.wgsl → WipeLeft.wgsl} +1 -1
- package/wgsl/{wipeRight.wgsl → WipeRight.wgsl} +1 -1
- package/wgsl/{wipeUp.wgsl → WipeUp.wgsl} +1 -1
- package/wgsl/{zoomInOut.wgsl → ZoomInOut.wgsl} +1 -1
- package/wgsl/{ZoomLeftWipe.wgsl → ZoomWipeLeft.wgsl} +1 -1
- package/wgsl/{ZoomRigthWipe.wgsl → ZoomWipeRight.wgsl} +1 -1
- package/glsl3/CircleCrop.glsl +0 -20
- package/glsl3/PuzzleRight.glsl +0 -57
- package/msl/CircleCrop.metal +0 -117
- package/msl/Drop_Zone_Flicker.metal +0 -561
- package/msl/EdgeTransition.metal +0 -277
- package/msl/PuzzleRight.metal +0 -262
- package/msl/cube.metal +0 -259
- package/msl/flyeye.metal +0 -133
- package/msl/tangentMotionBlur.metal +0 -583
- package/sksl/CircleCrop.sksl +0 -32
- package/sksl/PuzzleRight.sksl +0 -70
- package/transitions/CircleCrop.glsl +0 -19
- package/transitions/PuzzleRight.glsl +0 -56
- package/wgsl/CircleCrop.wgsl +0 -88
- package/wgsl/Drop_Zone_Flicker.wgsl +0 -513
- package/wgsl/EdgeTransition.wgsl +0 -216
- package/wgsl/PuzzleRight.wgsl +0 -230
- package/wgsl/TVStatic.wgsl +0 -106
- package/wgsl/cube.wgsl +0 -217
- package/wgsl/fadegrayscale.wgsl +0 -93
- package/wgsl/flyeye.wgsl +0 -105
- package/wgsl/static_wipe.wgsl +0 -117
- package/wgsl/tangentMotionBlur.wgsl +0 -503
- /package/transitions/{BowTieWithParameter.glsl → BowTie.glsl} +0 -0
- /package/transitions/{burn0.glsl → BurnThrough.glsl} +0 -0
- /package/transitions/{chessboard.glsl → Chessboard.glsl} +0 -0
- /package/transitions/{circleopen.glsl → CircleOpen.glsl} +0 -0
- /package/transitions/{angular.glsl → ClockWipe.glsl} +0 -0
- /package/transitions/{coord-from-in.glsl → ColorCoords.glsl} +0 -0
- /package/transitions/{ColourDistance.glsl → ColorDistance.glsl} +0 -0
- /package/transitions/{colorphase.glsl → ColorPhase.glsl} +0 -0
- /package/transitions/{crosswarp.glsl → CrossWarp.glsl} +0 -0
- /package/transitions/{crosshatch.glsl → Crosshatch.glsl} +0 -0
- /package/transitions/{directional-easing.glsl → DirectionalEased.glsl} +0 -0
- /package/transitions/{directionalwarp.glsl → DirectionalWarp.glsl} +0 -0
- /package/transitions/{directionalwipe.glsl → DirectionalWipe.glsl} +0 -0
- /package/transitions/{displacement.glsl → DisplacementMap.glsl} +0 -0
- /package/transitions/{DoomScreenTransition.glsl → DoomMelt.glsl} +0 -0
- /package/transitions/{fade.glsl → Fade.glsl} +0 -0
- /package/transitions/{polar_function.glsl → FlowerWipe.glsl} +0 -0
- /package/transitions/{parametric_glitch.glsl → GlitchBands.glsl} +0 -0
- /package/transitions/{heart.glsl → HeartWipe.glsl} +0 -0
- /package/transitions/{hexagonalize.glsl → Hexagonalize.glsl} +0 -0
- /package/transitions/{kaleidoscope.glsl → Kaleidoscope.glsl} +0 -0
- /package/transitions/{luma.glsl → LumaWipe.glsl} +0 -0
- /package/transitions/{luminance_melt.glsl → LuminanceMelt.glsl} +0 -0
- /package/transitions/{morph.glsl → Morph.glsl} +0 -0
- /package/transitions/{AdvancedMosaic.glsl → MosaicBlend.glsl} +0 -0
- /package/transitions/{mosaic_transition.glsl → MosaicFade.glsl} +0 -0
- /package/transitions/{multiply_blend.glsl → MultiplyBlend.glsl} +0 -0
- /package/transitions/{randomNoisex.glsl → NoiseDissolve.glsl} +0 -0
- /package/transitions/{perlin.glsl → PerlinDissolve.glsl} +0 -0
- /package/transitions/{pinwheel.glsl → Pinwheel.glsl} +0 -0
- /package/transitions/{pixelize.glsl → Pixelize.glsl} +0 -0
- /package/transitions/{powerKaleido.glsl → PowerKaleido.glsl} +0 -0
- /package/transitions/{Radial.glsl → RadialWipe.glsl} +0 -0
- /package/transitions/{randomsquares.glsl → RandomSquares.glsl} +0 -0
- /package/transitions/{Rectangle.glsl → RectangleCover.glsl} +0 -0
- /package/transitions/{RectangleCrop.glsl → RectangleIris.glsl} +0 -0
- /package/transitions/{Revolve_Left.glsl → Revolve.glsl} +0 -0
- /package/transitions/{ripple.glsl → Ripple.glsl} +0 -0
- /package/transitions/{rotateTransition.glsl → RotateFade.glsl} +0 -0
- /package/transitions/{rotate_scale_fade.glsl → RotateScaleFade.glsl} +0 -0
- /package/transitions/{scale-in.glsl → ScaleIn.glsl} +0 -0
- /package/transitions/{fragment.glsl → Shatter.glsl} +0 -0
- /package/transitions/{x_axis_translation.glsl → SlideAwayRight.glsl} +0 -0
- /package/transitions/{splitSlideInHorizontal.glsl → SplitSlideInHorizontal.glsl} +0 -0
- /package/transitions/{splitSlideInOutHorizontal.glsl → SplitSlideInOutHorizontal.glsl} +0 -0
- /package/transitions/{splitSlideInOutVertical.glsl → SplitSlideInOutVertical.glsl} +0 -0
- /package/transitions/{splitSlideInVertical.glsl → SplitSlideInVertical.glsl} +0 -0
- /package/transitions/{splitSlideOutHorizontal.glsl → SplitSlideOutHorizontal.glsl} +0 -0
- /package/transitions/{splitSlideOutVertical.glsl → SplitSlideOutVertical.glsl} +0 -0
- /package/transitions/{squareswire.glsl → SquaresWipe.glsl} +0 -0
- /package/transitions/{squeeze.glsl → Squeeze.glsl} +0 -0
- /package/transitions/{old_tv_lost_signal.glsl → TvLostSignal.glsl} +0 -0
- /package/transitions/{wind.glsl → Wind.glsl} +0 -0
- /package/transitions/{windowblinds.glsl → WindowBlinds.glsl} +0 -0
- /package/transitions/{windowslice.glsl → WindowSlices.glsl} +0 -0
- /package/transitions/{wipeDown.glsl → WipeDown.glsl} +0 -0
- /package/transitions/{wipeLeft.glsl → WipeLeft.glsl} +0 -0
- /package/transitions/{wipeRight.glsl → WipeRight.glsl} +0 -0
- /package/transitions/{wipeUp.glsl → WipeUp.glsl} +0 -0
- /package/transitions/{zoomInOut.glsl → ZoomInOut.glsl} +0 -0
- /package/transitions/{ZoomLeftWipe.glsl → ZoomWipeLeft.glsl} +0 -0
- /package/transitions/{ZoomRigthWipe.glsl → ZoomWipeRight.glsl} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// TvStatic — MSL, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/TvStatic.glsl
|
|
2
2
|
// Author: Brandon Anzaldi
|
|
3
3
|
// License: MIT
|
|
4
4
|
// Description: Cuts to full-screen TV static, then to the incoming image
|
|
@@ -28,16 +28,16 @@ float noise(
|
|
|
28
28
|
a = 12.9898;
|
|
29
29
|
b = 78.233;
|
|
30
30
|
c = 43758.547;
|
|
31
|
-
metal::float2
|
|
32
|
-
float
|
|
33
|
-
float
|
|
34
|
-
float
|
|
35
|
-
dt = metal::dot(
|
|
36
|
-
float
|
|
37
|
-
sn =
|
|
38
|
-
float
|
|
39
|
-
float
|
|
40
|
-
return metal::fract(metal::sin(
|
|
31
|
+
metal::float2 _e23 = co;
|
|
32
|
+
float _e25 = uniforms.progress;
|
|
33
|
+
float _e27 = a;
|
|
34
|
+
float _e28 = b;
|
|
35
|
+
dt = metal::dot(_e23 * _e25, metal::float2(_e27, _e28));
|
|
36
|
+
float _e31 = dt;
|
|
37
|
+
sn = _e31 - (metal::floor(_e31 / 3.14) * 3.14);
|
|
38
|
+
float _e36 = sn;
|
|
39
|
+
float _e38 = c;
|
|
40
|
+
return metal::fract(metal::sin(_e36) * _e38);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
metal::float4 getToColor(
|
|
@@ -45,10 +45,10 @@ metal::float4 getToColor(
|
|
|
45
45
|
metal::sampler _sampler,
|
|
46
46
|
metal::texture2d<float, metal::access::sample> _to
|
|
47
47
|
) {
|
|
48
|
-
float
|
|
49
|
-
float
|
|
50
|
-
metal::float4
|
|
51
|
-
return
|
|
48
|
+
float _e19 = uv[0u];
|
|
49
|
+
float _e21 = uv[1u];
|
|
50
|
+
metal::float4 _e24 = _to.sample(_sampler, metal::float2(_e19, 1.0 - _e21), metal::level(0.0));
|
|
51
|
+
return _e24;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
metal::float4 getFromColor(
|
|
@@ -56,10 +56,10 @@ metal::float4 getFromColor(
|
|
|
56
56
|
metal::texture2d<float, metal::access::sample> _from,
|
|
57
57
|
metal::sampler _sampler
|
|
58
58
|
) {
|
|
59
|
-
float
|
|
60
|
-
float
|
|
61
|
-
metal::float4
|
|
62
|
-
return
|
|
59
|
+
float _e19 = uv_1[0u];
|
|
60
|
+
float _e21 = uv_1[1u];
|
|
61
|
+
metal::float4 _e24 = _from.sample(_sampler, metal::float2(_e19, 1.0 - _e21), metal::level(0.0));
|
|
62
|
+
return _e24;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
metal::float4 transition(
|
|
@@ -72,27 +72,35 @@ metal::float4 transition(
|
|
|
72
72
|
metal::float2 param = {};
|
|
73
73
|
metal::float2 param_1 = {};
|
|
74
74
|
metal::float2 param_2 = {};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
metal::
|
|
81
|
-
|
|
75
|
+
metal::float2 param_3 = {};
|
|
76
|
+
metal::float2 param_4 = {};
|
|
77
|
+
float _e24 = uniforms.progress;
|
|
78
|
+
float _e26 = uniforms.offset;
|
|
79
|
+
if (_e24 < _e26) {
|
|
80
|
+
metal::float2 _e28 = p;
|
|
81
|
+
param = _e28;
|
|
82
|
+
metal::float4 _e29 = getFromColor(param, _from, _sampler);
|
|
83
|
+
return _e29;
|
|
82
84
|
} else {
|
|
83
|
-
float
|
|
84
|
-
float
|
|
85
|
-
if (
|
|
86
|
-
metal::float2
|
|
87
|
-
param_1 =
|
|
88
|
-
metal::float4
|
|
89
|
-
return
|
|
85
|
+
float _e31 = uniforms.progress;
|
|
86
|
+
float _e33 = uniforms.offset;
|
|
87
|
+
if (_e31 > (1.0 - _e33)) {
|
|
88
|
+
metal::float2 _e36 = p;
|
|
89
|
+
param_1 = _e36;
|
|
90
|
+
metal::float4 _e37 = getToColor(param_1, _sampler, _to);
|
|
91
|
+
return _e37;
|
|
90
92
|
} else {
|
|
91
|
-
metal::float2
|
|
92
|
-
param_2 =
|
|
93
|
-
float
|
|
94
|
-
metal::float3
|
|
95
|
-
|
|
93
|
+
metal::float2 _e38 = p;
|
|
94
|
+
param_2 = _e38;
|
|
95
|
+
float _e39 = noise(param_2, uniforms);
|
|
96
|
+
metal::float3 _e40 = metal::float3(_e39);
|
|
97
|
+
metal::float2 _e41 = p;
|
|
98
|
+
param_3 = _e41;
|
|
99
|
+
metal::float4 _e42 = getFromColor(param_3, _from, _sampler);
|
|
100
|
+
metal::float2 _e44 = p;
|
|
101
|
+
param_4 = _e44;
|
|
102
|
+
metal::float4 _e45 = getToColor(param_4, _sampler, _to);
|
|
103
|
+
return metal::float4(_e40.x, _e40.y, _e40.z, metal::max(_e42.w, _e45.w));
|
|
96
104
|
}
|
|
97
105
|
}
|
|
98
106
|
}
|
|
@@ -105,11 +113,11 @@ void main_1(
|
|
|
105
113
|
thread metal::float4& _fragColor,
|
|
106
114
|
thread metal::float2& _uv_1
|
|
107
115
|
) {
|
|
108
|
-
metal::float2
|
|
109
|
-
metal::float2
|
|
110
|
-
|
|
111
|
-
metal::float4
|
|
112
|
-
_fragColor =
|
|
116
|
+
metal::float2 param_5 = {};
|
|
117
|
+
metal::float2 _e18 = _uv_1;
|
|
118
|
+
param_5 = _e18;
|
|
119
|
+
metal::float4 _e19 = transition(param_5, _from, _sampler, _to, uniforms);
|
|
120
|
+
_fragColor = _e19;
|
|
113
121
|
return;
|
|
114
122
|
}
|
|
115
123
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// UndulatingBurnOut — MSL, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/UndulatingBurnOut.glsl
|
|
2
2
|
// Author: pthrasher
|
|
3
3
|
// License: MIT
|
|
4
4
|
// Description: A circle with a wavy edge burns out from the center to reveal the incoming image
|
|
@@ -17,7 +17,7 @@ struct Uniforms {
|
|
|
17
17
|
char _pad3[4];
|
|
18
18
|
metal::float2 center;
|
|
19
19
|
char _pad4[8];
|
|
20
|
-
metal::
|
|
20
|
+
metal::float4 color;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
metal::float4 getToColor(
|
|
@@ -173,9 +173,9 @@ metal::float4 transition(
|
|
|
173
173
|
metal::float4 _e58 = cto;
|
|
174
174
|
float _e59 = m;
|
|
175
175
|
metal::float4 _e62 = cfrom;
|
|
176
|
-
metal::
|
|
177
|
-
float
|
|
178
|
-
return metal::mix(metal::mix(_e57, _e58, metal::float4(_e59)), metal::mix(_e62,
|
|
176
|
+
metal::float4 _e64 = uniforms.color;
|
|
177
|
+
float _e67 = m;
|
|
178
|
+
return metal::mix(metal::mix(_e57, _e58, metal::float4(_e59)), metal::mix(_e62, _e64, metal::float4(0.75)), metal::float4(metal::step(_e67, -2.0)));
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
void main_1(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Wind — MSL, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/Wind.glsl
|
|
2
2
|
// Author: gre
|
|
3
3
|
// License: MIT
|
|
4
4
|
// Description: A ragged left-to-right wipe, as if the image was blown away by the wind
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// WindowBlinds — MSL, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/WindowBlinds.glsl
|
|
2
2
|
// Author: Fabien Benetou
|
|
3
3
|
// License: MIT
|
|
4
4
|
// Description: A crossfade through horizontal window blinds
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// WindowSlices — MSL, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/WindowSlices.glsl
|
|
2
2
|
// Author: gre
|
|
3
3
|
// License: MIT
|
|
4
4
|
// Description: The incoming image appears through vertical slices that widen
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// WipeDown — MSL, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/WipeDown.glsl
|
|
2
2
|
// Author: Jake Nelson
|
|
3
3
|
// License: MIT
|
|
4
4
|
// Description: A hard-edged wipe from top to bottom
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// WipeLeft — MSL, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/WipeLeft.glsl
|
|
2
2
|
// Author: Jake Nelson
|
|
3
3
|
// License: MIT
|
|
4
4
|
// Description: A hard-edged wipe from right to left
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// WipeRight — MSL, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/WipeRight.glsl
|
|
2
2
|
// Author: Jake Nelson
|
|
3
3
|
// License: MIT
|
|
4
4
|
// Description: A hard-edged wipe from left to right
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// WipeUp — MSL, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/WipeUp.glsl
|
|
2
2
|
// Author: Jake Nelson
|
|
3
3
|
// License: MIT
|
|
4
4
|
// Description: A hard-edged wipe from bottom to top
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// ZoomInOut — MSL, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/ZoomInOut.glsl
|
|
2
2
|
// Author: OllyOllyOlly
|
|
3
3
|
// License: MIT
|
|
4
4
|
// Description: Zooms into the outgoing image until it blurs into a flat color, then out to the incoming one
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// ZoomWipeLeft — MSL, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/ZoomWipeLeft.glsl
|
|
2
2
|
// Author: Handk
|
|
3
3
|
// License: MIT
|
|
4
4
|
// Description: Zooms into the outgoing image, then the incoming one wipes in from right to left
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// ZoomWipeRight — MSL, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/ZoomWipeRight.glsl
|
|
2
2
|
// Author: Handk
|
|
3
3
|
// License: MIT
|
|
4
4
|
// Description: Zooms into the outgoing image, then the incoming one wipes in from left to right
|
package/package.json
CHANGED
|
@@ -1,46 +1,53 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gl-transitions
|
|
3
|
-
description: Adds image and video transitions (fades, wipes, zooms, glitches, page curls...) from gl-transitions, an open collection of 125 GLSL shaders
|
|
3
|
+
description: Adds image and video transitions (fades, wipes, zooms, glitches, page curls...) from gl-transitions, an open collection of 125 GLSL shaders, with SkSL, GLSL ES 3.00, WGSL and Metal versions of those that translate (see compatibility.json). Use when the user wants a transition between two images, video clips, slides or scenes in WebGL, WebGPU, Skia (CanvasKit, React Native Skia), Remotion, editly, FFmpeg, Rust, Swift (Metal, AVFoundation) or Android, or names a gl-transition.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# gl-transitions
|
|
7
7
|
|
|
8
|
-
Each transition is a GLSL function `vec4 transition(vec2 uv)` that blends an outgoing image into an incoming one as `progress` goes from 0 to 1. The npm package `gl-transitions` ships every transition as GLSL,
|
|
8
|
+
Each transition is a GLSL function `vec4 transition(vec2 uv)` that blends an outgoing image into an incoming one as `progress` goes from 0 to 1. The npm package `gl-transitions` ships every transition as GLSL, plus SkSL, GLSL ES 3.00, WGSL and Metal versions of each one that translates (`compatibility.json`), and a catalog (`gl-transitions.json`) with descriptions, tags and typed parameters. Ready-made packages wrap it for React Native Skia, Remotion, Rust, Swift and Android.
|
|
9
9
|
|
|
10
10
|
## 1. Pick a transition
|
|
11
11
|
|
|
12
|
-
Read `references/catalog.md` (by tag, then one line per transition). If it is missing, fetch `https://cdn.jsdelivr.net/npm/gl-transitions@
|
|
12
|
+
Read `references/catalog.md` (by tag, then one line per transition). If it is missing, fetch `https://cdn.jsdelivr.net/npm/gl-transitions@2/skills/gl-transitions/references/catalog.md`.
|
|
13
13
|
|
|
14
14
|
- Match the user's words against descriptions and tags (`wipe`, `zoom`, `glitch`, `3d`...). Offer 2 or 3 candidates when the request is vague, with their preview link `https://gl-transitions.com/editor/<name>`.
|
|
15
|
-
- Prefer transitions without extra textures: `
|
|
16
|
-
- Names are case-sensitive
|
|
15
|
+
- Prefer transitions without extra textures: `DisplacementMap` and `LumaWipe` need an additional image from the host.
|
|
16
|
+
- Names are PascalCase and case-sensitive (`CrossWarp`, `CrossZoom`, `Cube`). Version 2.0 renamed them: code written for 1.x (`crosswarp`, `cube`) needs the new names, listed in the package's CHANGELOG.md.
|
|
17
17
|
|
|
18
18
|
## 2. Get the source
|
|
19
19
|
|
|
20
20
|
| Need | Where |
|
|
21
21
|
|---|---|
|
|
22
|
-
| JS/TS project | `npm install gl-transitions`, then `import transitions from "gl-transitions"` and `transitions.find((t) => t.name === "
|
|
23
|
-
| GLSL file | `node_modules/gl-transitions/transitions/<name>.glsl` or `https://cdn.jsdelivr.net/npm/gl-transitions@
|
|
24
|
-
| SkSL file | `node_modules/gl-transitions/sksl/<name>.sksl` or `https://cdn.jsdelivr.net/npm/gl-transitions@
|
|
22
|
+
| JS/TS project | `npm install gl-transitions`, then `import transitions from "gl-transitions"` and `transitions.find((t) => t.name === "Cube")` (`glsl`, `params`, `textures`; typed in `index.d.ts`) |
|
|
23
|
+
| GLSL file | `node_modules/gl-transitions/transitions/<name>.glsl` or `https://cdn.jsdelivr.net/npm/gl-transitions@2/transitions/<name>.glsl` |
|
|
24
|
+
| SkSL file | `node_modules/gl-transitions/sksl/<name>.sksl` or `https://cdn.jsdelivr.net/npm/gl-transitions@2/sksl/<name>.sksl` |
|
|
25
|
+
| GLSL ES 3.00, WGSL, Metal file | `glsl3/<name>.glsl`, `wgsl/<name>.wgsl`, `msl/<name>.metal` at the same places; uniform layouts in `layouts.json`, contracts in the package README |
|
|
26
|
+
| Which targets a transition supports | `compatibility.json` (a target a compiler rejected has no file) |
|
|
25
27
|
|
|
26
|
-
Pin the exact version (`gl-transitions@
|
|
28
|
+
Pin the exact version (`gl-transitions@2.x.y`) in production URLs.
|
|
27
29
|
|
|
28
30
|
## 3. Wire it into the host
|
|
29
31
|
|
|
30
|
-
The host defines `progress`, `ratio`, `getFromColor(uv)`, `getToColor(uv)` and one uniform per parameter. **Always set every parameter**, to its `default` from the catalog unless the user chose a value: an unset uniform is 0 and breaks most transitions.
|
|
32
|
+
The host defines `progress`, `ratio`, `getFromColor(uv)`, `getToColor(uv)` and one uniform per parameter. **Always set every parameter**, to its `default` from the catalog unless the user chose a value: an unset uniform is 0 and breaks most transitions. Prefer a ready-made package when one fits the host: they set the parameters left out to their defaults.
|
|
31
33
|
|
|
32
|
-
| Host |
|
|
34
|
+
| Host | Use | Read |
|
|
33
35
|
|---|---|---|
|
|
34
|
-
| WebGL / WebGL 2, regl, raw GLSL |
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
36
|
+
| WebGL / WebGL 2, regl, raw GLSL | The GLSL source with a small wrapper | `references/webgl.md` |
|
|
37
|
+
| React Native Skia | `@gl-transitions/react-native-skia`: `<Transition>` component | `references/skia.md` |
|
|
38
|
+
| CanvasKit (web, Node), other Skia | The shipped SkSL | `references/skia.md` |
|
|
39
|
+
| Remotion | `@gl-transitions/remotion`: `glTransition()` presentation for `<TransitionSeries>` | `references/video.md` |
|
|
40
|
+
| editly (Node video editing) | Built in | `references/video.md` |
|
|
41
|
+
| FFmpeg | The third-party `ffmpeg-gl-transition` filter (custom FFmpeg build) | `references/video.md` |
|
|
42
|
+
| WebGPU (three.js WebGPU, Babylon.js), wgpu, Bevy | The shipped WGSL; in Rust, the `gl-transitions` crate | `references/native.md` |
|
|
43
|
+
| Rust (skia-safe, wgpu, Bevy, fframes) | Crate `gl-transitions`: sources, typed parameters, packed uniforms | `references/native.md` |
|
|
44
|
+
| Swift: iOS, macOS, tvOS, visionOS (Metal, AVFoundation) | Swift package `GLTransitions` | `references/native.md` |
|
|
45
|
+
| Android 13+ (Views, Jetpack Compose) | `com.gl-transitions:gl-transitions` (AGSL `RuntimeShader`) | `references/native.md` |
|
|
46
|
+
| three.js (WebGL), PixiJS, Flutter, Unity, Godot | No dedicated package | Adapt the WebGL recipe where GLSL is accepted (three.js also takes `glsl3/` with `glslVersion: THREE.GLSL3`); otherwise port the GLSL |
|
|
40
47
|
|
|
41
48
|
## 4. Check the result
|
|
42
49
|
|
|
43
|
-
- At `progress = 0` the output must be the outgoing image, at `progress = 1` the incoming one (the specification; a few transitions are off by a pixel or a slight blur at the ends, e.g. `
|
|
50
|
+
- At `progress = 0` the output must be the outgoing image, at `progress = 1` the incoming one (the specification; a few transitions are off by a pixel or a slight blur at the ends, e.g. `MosaicBlend`, `TangentMotionBlur`). Render both ends and one middle frame.
|
|
44
51
|
- An upside-down result means the image rows are flipped: `uv` has its origin at the bottom left (see each reference).
|
|
45
52
|
- A black or frozen result usually means a parameter was left unset or an extra texture is missing.
|
|
46
53
|
- Credit the author and license from the catalog when the user ships the result (most are MIT).
|