gl-transitions 1.76.0 → 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 +129 -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 +2 -2
- 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
|
@@ -0,0 +1,570 @@
|
|
|
1
|
+
// GlitchFlicker — MSL, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/GlitchFlicker.glsl
|
|
2
|
+
// Author: bread
|
|
3
|
+
// License: MIT
|
|
4
|
+
// Description: A flickering glitch with RGB offset, ghosting and scanlines that flashes back to the outgoing image
|
|
5
|
+
// Bindings and uniform layout: see the gl-transitions package README
|
|
6
|
+
|
|
7
|
+
// language: metal1.0
|
|
8
|
+
#include <metal_stdlib>
|
|
9
|
+
#include <simd/simd.h>
|
|
10
|
+
|
|
11
|
+
using metal::uint;
|
|
12
|
+
|
|
13
|
+
struct Uniforms {
|
|
14
|
+
float progress;
|
|
15
|
+
float ratio;
|
|
16
|
+
float frameRate;
|
|
17
|
+
float rgbOffset;
|
|
18
|
+
float blockAmount;
|
|
19
|
+
float ghostAmount;
|
|
20
|
+
float redCyan;
|
|
21
|
+
float scanline;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
metal::float4 getToColor(
|
|
25
|
+
thread metal::float2& uv,
|
|
26
|
+
metal::sampler _sampler,
|
|
27
|
+
metal::texture2d<float, metal::access::sample> _to
|
|
28
|
+
) {
|
|
29
|
+
float _e107 = uv[0u];
|
|
30
|
+
float _e109 = uv[1u];
|
|
31
|
+
metal::float4 _e112 = _to.sample(_sampler, metal::float2(_e107, 1.0 - _e109), metal::level(0.0));
|
|
32
|
+
return _e112;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
metal::float2 safeUv(
|
|
36
|
+
thread metal::float2& uv_1
|
|
37
|
+
) {
|
|
38
|
+
metal::float2 _e106 = uv_1;
|
|
39
|
+
return metal::clamp(_e106, metal::float2(0.001, 0.001), metal::float2(0.999, 0.999));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
metal::float4 chromaTo(
|
|
43
|
+
thread metal::float2& uv_2,
|
|
44
|
+
thread float& amt,
|
|
45
|
+
metal::sampler _sampler,
|
|
46
|
+
metal::texture2d<float, metal::access::sample> _to
|
|
47
|
+
) {
|
|
48
|
+
metal::float2 o = {};
|
|
49
|
+
metal::float4 center = {};
|
|
50
|
+
metal::float2 param = {};
|
|
51
|
+
metal::float2 param_1 = {};
|
|
52
|
+
metal::float2 param_2 = {};
|
|
53
|
+
metal::float2 param_3 = {};
|
|
54
|
+
metal::float2 param_4 = {};
|
|
55
|
+
metal::float2 param_5 = {};
|
|
56
|
+
float _e115 = amt;
|
|
57
|
+
o = metal::float2(_e115, 0.0);
|
|
58
|
+
metal::float2 _e117 = uv_2;
|
|
59
|
+
param = _e117;
|
|
60
|
+
metal::float2 _e118 = safeUv(param);
|
|
61
|
+
param_1 = _e118;
|
|
62
|
+
metal::float4 _e119 = getToColor(param_1, _sampler, _to);
|
|
63
|
+
center = _e119;
|
|
64
|
+
metal::float2 _e120 = uv_2;
|
|
65
|
+
metal::float2 _e121 = o;
|
|
66
|
+
param_2 = _e120 - _e121;
|
|
67
|
+
metal::float2 _e123 = safeUv(param_2);
|
|
68
|
+
param_3 = _e123;
|
|
69
|
+
metal::float4 _e124 = getToColor(param_3, _sampler, _to);
|
|
70
|
+
float _e127 = center[1u];
|
|
71
|
+
metal::float2 _e128 = uv_2;
|
|
72
|
+
metal::float2 _e129 = o;
|
|
73
|
+
param_4 = _e128 + _e129;
|
|
74
|
+
metal::float2 _e131 = safeUv(param_4);
|
|
75
|
+
param_5 = _e131;
|
|
76
|
+
metal::float4 _e132 = getToColor(param_5, _sampler, _to);
|
|
77
|
+
float _e135 = center[3u];
|
|
78
|
+
return metal::float4(_e124.x, _e127, _e132.z, _e135);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
metal::float4 getFromColor(
|
|
82
|
+
thread metal::float2& uv_3,
|
|
83
|
+
metal::texture2d<float, metal::access::sample> _from,
|
|
84
|
+
metal::sampler _sampler
|
|
85
|
+
) {
|
|
86
|
+
float _e107 = uv_3[0u];
|
|
87
|
+
float _e109 = uv_3[1u];
|
|
88
|
+
metal::float4 _e112 = _from.sample(_sampler, metal::float2(_e107, 1.0 - _e109), metal::level(0.0));
|
|
89
|
+
return _e112;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
metal::float4 chromaFrom(
|
|
93
|
+
thread metal::float2& uv_4,
|
|
94
|
+
thread float& amt_1,
|
|
95
|
+
metal::texture2d<float, metal::access::sample> _from,
|
|
96
|
+
metal::sampler _sampler
|
|
97
|
+
) {
|
|
98
|
+
metal::float2 o_1 = {};
|
|
99
|
+
metal::float4 center_1 = {};
|
|
100
|
+
metal::float2 param_6 = {};
|
|
101
|
+
metal::float2 param_7 = {};
|
|
102
|
+
metal::float2 param_8 = {};
|
|
103
|
+
metal::float2 param_9 = {};
|
|
104
|
+
metal::float2 param_10 = {};
|
|
105
|
+
metal::float2 param_11 = {};
|
|
106
|
+
float _e115 = amt_1;
|
|
107
|
+
o_1 = metal::float2(_e115, 0.0);
|
|
108
|
+
metal::float2 _e117 = uv_4;
|
|
109
|
+
param_6 = _e117;
|
|
110
|
+
metal::float2 _e118 = safeUv(param_6);
|
|
111
|
+
param_7 = _e118;
|
|
112
|
+
metal::float4 _e119 = getFromColor(param_7, _from, _sampler);
|
|
113
|
+
center_1 = _e119;
|
|
114
|
+
metal::float2 _e120 = uv_4;
|
|
115
|
+
metal::float2 _e121 = o_1;
|
|
116
|
+
param_8 = _e120 + _e121;
|
|
117
|
+
metal::float2 _e123 = safeUv(param_8);
|
|
118
|
+
param_9 = _e123;
|
|
119
|
+
metal::float4 _e124 = getFromColor(param_9, _from, _sampler);
|
|
120
|
+
float _e127 = center_1[1u];
|
|
121
|
+
metal::float2 _e128 = uv_4;
|
|
122
|
+
metal::float2 _e129 = o_1;
|
|
123
|
+
param_10 = _e128 - _e129;
|
|
124
|
+
metal::float2 _e131 = safeUv(param_10);
|
|
125
|
+
param_11 = _e131;
|
|
126
|
+
metal::float4 _e132 = getFromColor(param_11, _from, _sampler);
|
|
127
|
+
float _e135 = center_1[3u];
|
|
128
|
+
return metal::float4(_e124.x, _e127, _e132.z, _e135);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
float sat(
|
|
132
|
+
thread float& x
|
|
133
|
+
) {
|
|
134
|
+
float _e106 = x;
|
|
135
|
+
return metal::clamp(_e106, 0.0, 1.0);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
float hash12(
|
|
139
|
+
thread metal::float2& p
|
|
140
|
+
) {
|
|
141
|
+
metal::float2 _e106 = p;
|
|
142
|
+
p = metal::fract(_e106 * metal::float2(443.8975, 397.2973));
|
|
143
|
+
metal::float2 _e109 = p;
|
|
144
|
+
metal::float2 _e110 = p;
|
|
145
|
+
metal::float2 _e115 = p;
|
|
146
|
+
p = _e115 + metal::float2(metal::dot(_e109, _e110.yx + metal::float2(19.19)));
|
|
147
|
+
float _e119 = p[0u];
|
|
148
|
+
float _e121 = p[1u];
|
|
149
|
+
return metal::fract(_e119 * _e121);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
float blockMask(
|
|
153
|
+
thread metal::float2& uv_5,
|
|
154
|
+
thread float& f
|
|
155
|
+
) {
|
|
156
|
+
metal::float2 big = {};
|
|
157
|
+
metal::float2 small = {};
|
|
158
|
+
float wide = {};
|
|
159
|
+
metal::float2 param_12 = {};
|
|
160
|
+
float chunks = {};
|
|
161
|
+
metal::float2 param_13 = {};
|
|
162
|
+
float verticalCut = {};
|
|
163
|
+
metal::float2 param_14 = {};
|
|
164
|
+
float param_15 = {};
|
|
165
|
+
metal::float2 _e116 = uv_5;
|
|
166
|
+
big = metal::floor(_e116 * metal::float2(4.0, 2.0));
|
|
167
|
+
metal::float2 _e119 = uv_5;
|
|
168
|
+
small = metal::floor(_e119 * metal::float2(8.0, 4.0));
|
|
169
|
+
float _e123 = big[0u];
|
|
170
|
+
float _e124 = f;
|
|
171
|
+
param_12 = metal::float2(_e123, _e124 * 1.37);
|
|
172
|
+
float _e127 = hash12(param_12);
|
|
173
|
+
wide = metal::step(0.48, _e127);
|
|
174
|
+
metal::float2 _e129 = small;
|
|
175
|
+
float _e130 = f;
|
|
176
|
+
float _e132 = f;
|
|
177
|
+
param_13 = _e129 + metal::float2(_e130 * 2.11, _e132 * 0.73);
|
|
178
|
+
float _e136 = hash12(param_13);
|
|
179
|
+
chunks = metal::step(0.56, _e136);
|
|
180
|
+
float _e139 = uv_5[0u];
|
|
181
|
+
float _e140 = f;
|
|
182
|
+
param_14 = metal::float2(_e140, 4.7);
|
|
183
|
+
float _e142 = hash12(param_14);
|
|
184
|
+
verticalCut = metal::smoothstep(-0.035, 0.035, _e139 - metal::mix(0.18, 0.78, _e142));
|
|
185
|
+
float _e146 = wide;
|
|
186
|
+
float _e147 = chunks;
|
|
187
|
+
float _e150 = verticalCut;
|
|
188
|
+
param_15 = (metal::mix(_e146, _e147, 0.38) * 0.72) + (_e150 * 0.28);
|
|
189
|
+
float _e153 = sat(param_15);
|
|
190
|
+
return _e153;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
float frameGlitch(
|
|
194
|
+
thread float& f_1
|
|
195
|
+
) {
|
|
196
|
+
float _e106 = f_1;
|
|
197
|
+
if (_e106 < 0.5) {
|
|
198
|
+
return 0.0;
|
|
199
|
+
}
|
|
200
|
+
float _e108 = f_1;
|
|
201
|
+
if (_e108 < 6.5) {
|
|
202
|
+
return 0.92;
|
|
203
|
+
}
|
|
204
|
+
float _e110 = f_1;
|
|
205
|
+
if (_e110 < 10.5) {
|
|
206
|
+
return 0.38;
|
|
207
|
+
}
|
|
208
|
+
float _e112 = f_1;
|
|
209
|
+
if (_e112 < 11.5) {
|
|
210
|
+
return 0.78;
|
|
211
|
+
}
|
|
212
|
+
float _e114 = f_1;
|
|
213
|
+
if (_e114 < 12.5) {
|
|
214
|
+
return 0.12;
|
|
215
|
+
}
|
|
216
|
+
float _e116 = f_1;
|
|
217
|
+
if (_e116 < 17.5) {
|
|
218
|
+
return 0.74;
|
|
219
|
+
}
|
|
220
|
+
float _e118 = f_1;
|
|
221
|
+
if (_e118 < 22.5) {
|
|
222
|
+
return 0.88;
|
|
223
|
+
}
|
|
224
|
+
float _e120 = f_1;
|
|
225
|
+
if (_e120 < 23.5) {
|
|
226
|
+
return 0.28;
|
|
227
|
+
}
|
|
228
|
+
return 0.0;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
float frameReveal(
|
|
232
|
+
thread float& f_2
|
|
233
|
+
) {
|
|
234
|
+
float _e106 = f_2;
|
|
235
|
+
if (_e106 < 0.5) {
|
|
236
|
+
return 0.0;
|
|
237
|
+
}
|
|
238
|
+
float _e108 = f_2;
|
|
239
|
+
if (_e108 < 1.5) {
|
|
240
|
+
return 0.28;
|
|
241
|
+
}
|
|
242
|
+
float _e110 = f_2;
|
|
243
|
+
if (_e110 < 2.5) {
|
|
244
|
+
return 0.43;
|
|
245
|
+
}
|
|
246
|
+
float _e112 = f_2;
|
|
247
|
+
if (_e112 < 3.5) {
|
|
248
|
+
return 0.46;
|
|
249
|
+
}
|
|
250
|
+
float _e114 = f_2;
|
|
251
|
+
if (_e114 < 4.5) {
|
|
252
|
+
return 0.38;
|
|
253
|
+
}
|
|
254
|
+
float _e116 = f_2;
|
|
255
|
+
if (_e116 < 5.5) {
|
|
256
|
+
return 0.48;
|
|
257
|
+
}
|
|
258
|
+
float _e118 = f_2;
|
|
259
|
+
if (_e118 < 6.5) {
|
|
260
|
+
return 0.26;
|
|
261
|
+
}
|
|
262
|
+
float _e120 = f_2;
|
|
263
|
+
if (_e120 < 7.5) {
|
|
264
|
+
return 0.1;
|
|
265
|
+
}
|
|
266
|
+
float _e122 = f_2;
|
|
267
|
+
if (_e122 < 8.5) {
|
|
268
|
+
return 0.0;
|
|
269
|
+
}
|
|
270
|
+
float _e124 = f_2;
|
|
271
|
+
if (_e124 < 9.5) {
|
|
272
|
+
return 0.0;
|
|
273
|
+
}
|
|
274
|
+
float _e126 = f_2;
|
|
275
|
+
if (_e126 < 10.5) {
|
|
276
|
+
return 0.3;
|
|
277
|
+
}
|
|
278
|
+
float _e128 = f_2;
|
|
279
|
+
if (_e128 < 11.5) {
|
|
280
|
+
return 0.58;
|
|
281
|
+
}
|
|
282
|
+
float _e130 = f_2;
|
|
283
|
+
if (_e130 < 12.5) {
|
|
284
|
+
return 1.0;
|
|
285
|
+
}
|
|
286
|
+
float _e132 = f_2;
|
|
287
|
+
if (_e132 < 13.5) {
|
|
288
|
+
return 0.7;
|
|
289
|
+
}
|
|
290
|
+
float _e134 = f_2;
|
|
291
|
+
if (_e134 < 14.5) {
|
|
292
|
+
return 0.42;
|
|
293
|
+
}
|
|
294
|
+
float _e136 = f_2;
|
|
295
|
+
if (_e136 < 15.5) {
|
|
296
|
+
return 0.55;
|
|
297
|
+
}
|
|
298
|
+
float _e138 = f_2;
|
|
299
|
+
if (_e138 < 16.5) {
|
|
300
|
+
return 0.72;
|
|
301
|
+
}
|
|
302
|
+
float _e140 = f_2;
|
|
303
|
+
if (_e140 < 17.5) {
|
|
304
|
+
return 0.88;
|
|
305
|
+
}
|
|
306
|
+
float _e142 = f_2;
|
|
307
|
+
if (_e142 < 18.5) {
|
|
308
|
+
return 0.34;
|
|
309
|
+
}
|
|
310
|
+
float _e144 = f_2;
|
|
311
|
+
if (_e144 < 19.5) {
|
|
312
|
+
return 0.48;
|
|
313
|
+
}
|
|
314
|
+
float _e146 = f_2;
|
|
315
|
+
if (_e146 < 20.5) {
|
|
316
|
+
return 0.56;
|
|
317
|
+
}
|
|
318
|
+
float _e148 = f_2;
|
|
319
|
+
if (_e148 < 21.5) {
|
|
320
|
+
return 0.76;
|
|
321
|
+
}
|
|
322
|
+
float _e150 = f_2;
|
|
323
|
+
if (_e150 < 22.5) {
|
|
324
|
+
return 0.93;
|
|
325
|
+
}
|
|
326
|
+
return 1.0;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
metal::float4 transition(
|
|
330
|
+
thread metal::float2& uv_6,
|
|
331
|
+
metal::texture2d<float, metal::access::sample> _from,
|
|
332
|
+
metal::sampler _sampler,
|
|
333
|
+
metal::texture2d<float, metal::access::sample> _to,
|
|
334
|
+
constant Uniforms& uniforms
|
|
335
|
+
) {
|
|
336
|
+
metal::float2 param_16 = {};
|
|
337
|
+
metal::float2 param_17 = {};
|
|
338
|
+
float f_3 = {};
|
|
339
|
+
float reveal = {};
|
|
340
|
+
float param_18 = {};
|
|
341
|
+
float glitch = {};
|
|
342
|
+
float param_19 = {};
|
|
343
|
+
float rnd = {};
|
|
344
|
+
metal::float2 param_20 = {};
|
|
345
|
+
metal::float2 jitter = {};
|
|
346
|
+
metal::float2 param_21 = {};
|
|
347
|
+
metal::float2 fromUv = {};
|
|
348
|
+
metal::float2 param_22 = {};
|
|
349
|
+
metal::float2 toUv = {};
|
|
350
|
+
metal::float2 param_23 = {};
|
|
351
|
+
float block = {};
|
|
352
|
+
metal::float2 param_24 = {};
|
|
353
|
+
float param_25 = {};
|
|
354
|
+
float localReveal = {};
|
|
355
|
+
metal::float2 param_26 = {};
|
|
356
|
+
float param_27 = {};
|
|
357
|
+
metal::float4 oldClip = {};
|
|
358
|
+
metal::float2 param_28 = {};
|
|
359
|
+
float param_29 = {};
|
|
360
|
+
metal::float4 newClip = {};
|
|
361
|
+
metal::float2 param_30 = {};
|
|
362
|
+
float param_31 = {};
|
|
363
|
+
metal::float4 color = {};
|
|
364
|
+
float leftWash = {};
|
|
365
|
+
float cyanWash = {};
|
|
366
|
+
metal::float3 redGhost = {};
|
|
367
|
+
metal::float3 cyanGhost = {};
|
|
368
|
+
float oldReturn = {};
|
|
369
|
+
float lines = {};
|
|
370
|
+
float exposurePulse = {};
|
|
371
|
+
metal::float2 param_32 = {};
|
|
372
|
+
float param_33 = {};
|
|
373
|
+
float param_34 = {};
|
|
374
|
+
float param_35 = {};
|
|
375
|
+
float _e146 = uniforms.progress;
|
|
376
|
+
if (_e146 <= 0.0) {
|
|
377
|
+
metal::float2 _e148 = uv_6;
|
|
378
|
+
param_16 = _e148;
|
|
379
|
+
metal::float4 _e149 = getFromColor(param_16, _from, _sampler);
|
|
380
|
+
return _e149;
|
|
381
|
+
}
|
|
382
|
+
float _e151 = uniforms.progress;
|
|
383
|
+
if (_e151 >= 1.0) {
|
|
384
|
+
metal::float2 _e153 = uv_6;
|
|
385
|
+
param_17 = _e153;
|
|
386
|
+
metal::float4 _e154 = getToColor(param_17, _sampler, _to);
|
|
387
|
+
return _e154;
|
|
388
|
+
}
|
|
389
|
+
float _e156 = uniforms.progress;
|
|
390
|
+
float _e158 = uniforms.frameRate;
|
|
391
|
+
f_3 = metal::floor(_e156 * _e158);
|
|
392
|
+
float _e161 = f_3;
|
|
393
|
+
param_18 = _e161;
|
|
394
|
+
float _e162 = frameReveal(param_18);
|
|
395
|
+
reveal = _e162;
|
|
396
|
+
float _e163 = f_3;
|
|
397
|
+
param_19 = _e163;
|
|
398
|
+
float _e164 = frameGlitch(param_19);
|
|
399
|
+
glitch = _e164;
|
|
400
|
+
float _e165 = f_3;
|
|
401
|
+
param_20 = metal::float2(_e165, 9.13);
|
|
402
|
+
float _e167 = hash12(param_20);
|
|
403
|
+
rnd = _e167;
|
|
404
|
+
float _e168 = rnd;
|
|
405
|
+
float _e171 = f_3;
|
|
406
|
+
param_21 = metal::float2(_e171, 2.71);
|
|
407
|
+
float _e173 = hash12(param_21);
|
|
408
|
+
float _e177 = glitch;
|
|
409
|
+
jitter = metal::float2((_e168 - 0.5) * 0.042, (_e173 - 0.5) * 0.01) * _e177;
|
|
410
|
+
metal::float2 _e179 = uv_6;
|
|
411
|
+
metal::float2 _e180 = jitter;
|
|
412
|
+
param_22 = _e179 + _e180;
|
|
413
|
+
metal::float2 _e182 = safeUv(param_22);
|
|
414
|
+
fromUv = _e182;
|
|
415
|
+
metal::float2 _e183 = uv_6;
|
|
416
|
+
metal::float2 _e184 = jitter;
|
|
417
|
+
param_23 = _e183 - (_e184 * 0.55);
|
|
418
|
+
metal::float2 _e187 = safeUv(param_23);
|
|
419
|
+
toUv = _e187;
|
|
420
|
+
metal::float2 _e188 = uv_6;
|
|
421
|
+
param_24 = _e188;
|
|
422
|
+
float _e189 = f_3;
|
|
423
|
+
param_25 = _e189;
|
|
424
|
+
float _e190 = blockMask(param_24, param_25);
|
|
425
|
+
block = _e190;
|
|
426
|
+
float _e191 = reveal;
|
|
427
|
+
float _e192 = block;
|
|
428
|
+
float _e195 = uniforms.blockAmount;
|
|
429
|
+
float _e197 = glitch;
|
|
430
|
+
float _e200 = f_3;
|
|
431
|
+
float _e202 = uv_6[1u];
|
|
432
|
+
param_26 = metal::float2(_e200, metal::floor(_e202 * 9.0));
|
|
433
|
+
float _e206 = hash12(param_26);
|
|
434
|
+
float _e209 = glitch;
|
|
435
|
+
param_27 = (_e191 + (((_e192 - 0.5) * _e195) * _e197)) + (((_e206 - 0.5) * 0.18) * _e209);
|
|
436
|
+
float _e212 = sat(param_27);
|
|
437
|
+
localReveal = _e212;
|
|
438
|
+
float _e213 = localReveal;
|
|
439
|
+
localReveal = metal::smoothstep(0.22, 0.78, _e213);
|
|
440
|
+
float _e216 = uniforms.rgbOffset;
|
|
441
|
+
float _e217 = glitch;
|
|
442
|
+
metal::float2 _e219 = fromUv;
|
|
443
|
+
param_28 = _e219;
|
|
444
|
+
param_29 = _e216 * _e217;
|
|
445
|
+
metal::float4 _e220 = chromaFrom(param_28, param_29, _from, _sampler);
|
|
446
|
+
oldClip = _e220;
|
|
447
|
+
float _e222 = uniforms.rgbOffset;
|
|
448
|
+
float _e223 = glitch;
|
|
449
|
+
metal::float2 _e225 = toUv;
|
|
450
|
+
param_30 = _e225;
|
|
451
|
+
param_31 = _e222 * _e223;
|
|
452
|
+
metal::float4 _e226 = chromaTo(param_30, param_31, _sampler, _to);
|
|
453
|
+
newClip = _e226;
|
|
454
|
+
metal::float4 _e227 = oldClip;
|
|
455
|
+
metal::float4 _e228 = newClip;
|
|
456
|
+
float _e229 = localReveal;
|
|
457
|
+
color = metal::mix(_e227, _e228, metal::float4(_e229));
|
|
458
|
+
float _e233 = uv_6[0u];
|
|
459
|
+
float _e236 = glitch;
|
|
460
|
+
leftWash = (1.0 - metal::smoothstep(0.1, 0.78, _e233)) * _e236;
|
|
461
|
+
float _e239 = uv_6[0u];
|
|
462
|
+
float _e242 = uv_6[0u];
|
|
463
|
+
float _e246 = glitch;
|
|
464
|
+
cyanWash = (metal::smoothstep(0.08, 0.62, _e239) * (1.0 - metal::smoothstep(0.86, 1.0, _e242))) * _e246;
|
|
465
|
+
metal::float4 _e248 = oldClip;
|
|
466
|
+
redGhost = _e248.xyz * metal::float3(1.34, 0.42, 0.38);
|
|
467
|
+
metal::float4 _e251 = newClip;
|
|
468
|
+
cyanGhost = _e251.xyz * metal::float3(0.48, 1.12, 1.24);
|
|
469
|
+
metal::float4 _e254 = color;
|
|
470
|
+
metal::float3 _e256 = redGhost;
|
|
471
|
+
float _e257 = leftWash;
|
|
472
|
+
float _e259 = uniforms.redCyan;
|
|
473
|
+
metal::float3 _e263 = metal::mix(_e254.xyz, _e256, metal::float3((_e257 * _e259) * 0.42));
|
|
474
|
+
color[0u] = _e263.x;
|
|
475
|
+
color[1u] = _e263.y;
|
|
476
|
+
color[2u] = _e263.z;
|
|
477
|
+
metal::float4 _e270 = color;
|
|
478
|
+
metal::float3 _e272 = cyanGhost;
|
|
479
|
+
float _e273 = cyanWash;
|
|
480
|
+
float _e275 = uniforms.redCyan;
|
|
481
|
+
metal::float3 _e279 = metal::mix(_e270.xyz, _e272, metal::float3((_e273 * _e275) * 0.3));
|
|
482
|
+
color[0u] = _e279.x;
|
|
483
|
+
color[1u] = _e279.y;
|
|
484
|
+
color[2u] = _e279.z;
|
|
485
|
+
float _e286 = glitch;
|
|
486
|
+
float _e287 = reveal;
|
|
487
|
+
oldReturn = _e286 * (1.0 - metal::smoothstep(0.94, 1.0, _e287));
|
|
488
|
+
float _e291 = localReveal;
|
|
489
|
+
float _e298 = oldReturn;
|
|
490
|
+
oldReturn = _e298 * (0.18 + (0.52 * (1.0 - (metal::abs(_e291 - 0.5) * 2.0))));
|
|
491
|
+
metal::float4 _e300 = color;
|
|
492
|
+
metal::float4 _e302 = oldClip;
|
|
493
|
+
float _e304 = oldReturn;
|
|
494
|
+
float _e306 = uniforms.ghostAmount;
|
|
495
|
+
metal::float3 _e309 = metal::mix(_e300.xyz, _e302.xyz, metal::float3(_e304 * _e306));
|
|
496
|
+
color[0u] = _e309.x;
|
|
497
|
+
color[1u] = _e309.y;
|
|
498
|
+
color[2u] = _e309.z;
|
|
499
|
+
float _e317 = uv_6[1u];
|
|
500
|
+
float _e318 = f_3;
|
|
501
|
+
lines = metal::sin((_e317 + (_e318 * 0.017)) * 1080.0);
|
|
502
|
+
float _e323 = lines;
|
|
503
|
+
float _e325 = uniforms.scanline;
|
|
504
|
+
float _e327 = glitch;
|
|
505
|
+
metal::float4 _e329 = color;
|
|
506
|
+
metal::float3 _e332 = _e329.xyz + metal::float3((_e323 * _e325) * _e327);
|
|
507
|
+
color[0u] = _e332.x;
|
|
508
|
+
color[1u] = _e332.y;
|
|
509
|
+
color[2u] = _e332.z;
|
|
510
|
+
float _e339 = f_3;
|
|
511
|
+
param_32 = metal::float2(_e339, 12.4);
|
|
512
|
+
float _e341 = hash12(param_32);
|
|
513
|
+
float _e344 = glitch;
|
|
514
|
+
exposurePulse = ((_e341 - 0.35) * 0.1) * _e344;
|
|
515
|
+
float _e346 = exposurePulse;
|
|
516
|
+
metal::float4 _e347 = color;
|
|
517
|
+
metal::float3 _e350 = _e347.xyz + metal::float3(_e346);
|
|
518
|
+
color[0u] = _e350.x;
|
|
519
|
+
color[1u] = _e350.y;
|
|
520
|
+
color[2u] = _e350.z;
|
|
521
|
+
float _e358 = color[0u];
|
|
522
|
+
param_33 = _e358;
|
|
523
|
+
float _e359 = sat(param_33);
|
|
524
|
+
float _e361 = color[1u];
|
|
525
|
+
param_34 = _e361;
|
|
526
|
+
float _e362 = sat(param_34);
|
|
527
|
+
float _e364 = color[2u];
|
|
528
|
+
param_35 = _e364;
|
|
529
|
+
float _e365 = sat(param_35);
|
|
530
|
+
float _e367 = color[3u];
|
|
531
|
+
return metal::float4(_e359, _e362, _e365, _e367);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
void main_1(
|
|
535
|
+
metal::texture2d<float, metal::access::sample> _from,
|
|
536
|
+
metal::sampler _sampler,
|
|
537
|
+
metal::texture2d<float, metal::access::sample> _to,
|
|
538
|
+
constant Uniforms& uniforms,
|
|
539
|
+
thread metal::float4& _fragColor,
|
|
540
|
+
thread metal::float2& _uv_1
|
|
541
|
+
) {
|
|
542
|
+
metal::float2 param_36 = {};
|
|
543
|
+
metal::float2 _e106 = _uv_1;
|
|
544
|
+
param_36 = _e106;
|
|
545
|
+
metal::float4 _e107 = transition(param_36, _from, _sampler, _to, uniforms);
|
|
546
|
+
_fragColor = _e107;
|
|
547
|
+
return;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
struct main_Input {
|
|
551
|
+
metal::float2 _uv [[user(loc0), center_perspective]];
|
|
552
|
+
};
|
|
553
|
+
struct main_Output {
|
|
554
|
+
metal::float4 member [[color(0)]];
|
|
555
|
+
};
|
|
556
|
+
fragment main_Output main_(
|
|
557
|
+
main_Input varyings [[stage_in]]
|
|
558
|
+
, metal::texture2d<float, metal::access::sample> _from [[texture(0)]]
|
|
559
|
+
, metal::sampler _sampler [[sampler(0)]]
|
|
560
|
+
, metal::texture2d<float, metal::access::sample> _to [[texture(1)]]
|
|
561
|
+
, constant Uniforms& uniforms [[buffer(0)]]
|
|
562
|
+
) {
|
|
563
|
+
metal::float4 _fragColor = {};
|
|
564
|
+
metal::float2 _uv_1 = {};
|
|
565
|
+
const auto _uv = varyings._uv;
|
|
566
|
+
_uv_1 = _uv;
|
|
567
|
+
main_1(_from, _sampler, _to, uniforms, _fragColor, _uv_1);
|
|
568
|
+
metal::float4 _e3 = _fragColor;
|
|
569
|
+
return main_Output { _e3 };
|
|
570
|
+
}
|