gl-transitions 3.4.0 → 3.5.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 +228 -0
- package/compatibility.json +2316 -588
- package/gl-transitions.js +1 -1
- package/gl-transitions.json +1 -1
- package/glsl3/AccretionDisk.glsl +165 -0
- package/glsl3/AirShow.glsl +126 -0
- package/glsl3/Alike.glsl +97 -0
- package/glsl3/Anaglyph.glsl +27 -0
- package/glsl3/Anodize.glsl +34 -0
- package/glsl3/Atom.glsl +68 -0
- package/glsl3/BadBytes.glsl +56 -0
- package/glsl3/BentRays.glsl +47 -0
- package/glsl3/BlackLight.glsl +48 -0
- package/glsl3/Bleach.glsl +93 -0
- package/glsl3/Blueprint.glsl +64 -0
- package/glsl3/BowTie.glsl +15 -6
- package/glsl3/BoxClose.glsl +67 -0
- package/glsl3/Braid.glsl +134 -0
- package/glsl3/Buffering.glsl +47 -0
- package/glsl3/Bullseyes.glsl +86 -0
- package/glsl3/Captcha.glsl +65 -0
- package/glsl3/CardStunt.glsl +57 -0
- package/glsl3/Centrifuge.glsl +90 -0
- package/glsl3/Champagne.glsl +117 -0
- package/glsl3/Choppy.glsl +69 -0
- package/glsl3/Chrysanthemum.glsl +71 -0
- package/glsl3/CloudBanks.glsl +161 -0
- package/glsl3/Coalesce.glsl +91 -0
- package/glsl3/ColorFields.glsl +33 -0
- package/glsl3/ColorPowder.glsl +64 -0
- package/glsl3/CrossProcess.glsl +29 -0
- package/glsl3/CryoJets.glsl +111 -0
- package/glsl3/Curdle.glsl +50 -0
- package/glsl3/DarkAdapt.glsl +41 -0
- package/glsl3/Denoise.glsl +48 -0
- package/glsl3/Dunk.glsl +73 -0
- package/glsl3/EmptySlot.glsl +105 -0
- package/glsl3/EuclidSquares.glsl +79 -0
- package/glsl3/Filament.glsl +29 -0
- package/glsl3/FilmBurn.glsl +25 -12
- package/glsl3/FiveTriangles.glsl +94 -0
- package/glsl3/FlowDissolve.glsl +53 -27
- package/glsl3/FoilBalloon.glsl +123 -0
- package/glsl3/FoldedInk.glsl +147 -0
- package/glsl3/ForceField.glsl +104 -0
- package/glsl3/FullHouse.glsl +79 -0
- package/glsl3/GalacticYear.glsl +80 -0
- package/glsl3/Gliders.glsl +70 -0
- package/glsl3/GoldenAngle.glsl +104 -0
- package/glsl3/GoldenHour.glsl +47 -0
- package/glsl3/Grisaille.glsl +72 -0
- package/glsl3/HandPlane.glsl +68 -0
- package/glsl3/HandPrints.glsl +88 -0
- package/glsl3/Headlong.glsl +109 -0
- package/glsl3/Highlighter.glsl +65 -0
- package/glsl3/HoneycombFill.glsl +77 -0
- package/glsl3/HueDepth.glsl +96 -0
- package/glsl3/IceFerns.glsl +82 -0
- package/glsl3/ImpactFrames.glsl +120 -0
- package/glsl3/JacquardWeave.glsl +88 -0
- package/glsl3/JetStreams.glsl +91 -0
- package/glsl3/KickSnare.glsl +59 -0
- package/glsl3/Ladle.glsl +49 -0
- package/glsl3/Lichen.glsl +93 -0
- package/glsl3/Linkup.glsl +211 -0
- package/glsl3/Luminol.glsl +56 -0
- package/glsl3/MeltedCrayons.glsl +91 -0
- package/glsl3/Merger.glsl +70 -0
- package/glsl3/Minesweeper.glsl +134 -0
- package/glsl3/MotionDrift.glsl +51 -0
- package/glsl3/Multitude.glsl +65 -0
- package/glsl3/NailPolish.glsl +71 -0
- package/glsl3/PaintDissolve.glsl +19 -12
- package/glsl3/Photocopy.glsl +65 -0
- package/glsl3/Physarum.glsl +106 -0
- package/glsl3/Pound.glsl +64 -0
- package/glsl3/Primitives.glsl +71 -0
- package/glsl3/ProgressiveLoad.glsl +45 -0
- package/glsl3/Quicksilver.glsl +111 -0
- package/glsl3/Rebound.glsl +84 -0
- package/glsl3/Recast.glsl +49 -0
- package/glsl3/Resurface.glsl +59 -0
- package/glsl3/RoughToFine.glsl +87 -0
- package/glsl3/SandThrough.glsl +54 -0
- package/glsl3/ShadowPlay.glsl +46 -0
- package/glsl3/Shatter.glsl +55 -35
- package/glsl3/Shoal.glsl +132 -0
- package/glsl3/Simmer.glsl +143 -0
- package/glsl3/SkiTracks.glsl +97 -0
- package/glsl3/SlidingGrid.glsl +120 -0
- package/glsl3/Slipstream.glsl +152 -0
- package/glsl3/Somersault.glsl +86 -0
- package/glsl3/Sparkler.glsl +81 -0
- package/glsl3/SpectralTrails.glsl +69 -0
- package/glsl3/Spectrum.glsl +65 -0
- package/glsl3/StarTrails.glsl +124 -0
- package/glsl3/Streamgraph.glsl +65 -0
- package/glsl3/SunDisc.glsl +161 -0
- package/glsl3/Supergraphic.glsl +147 -0
- package/glsl3/Swell.glsl +113 -0
- package/glsl3/ThreeInks.glsl +131 -0
- package/glsl3/TidalBands.glsl +136 -0
- package/glsl3/TigerEye.glsl +65 -0
- package/glsl3/TileBlast.glsl +25 -9
- package/glsl3/TileShuffle.glsl +48 -35
- package/glsl3/Tinsel.glsl +49 -0
- package/glsl3/Toggles.glsl +63 -0
- package/glsl3/TonalHills.glsl +162 -0
- package/glsl3/ToneBurst.glsl +112 -0
- package/glsl3/Torsion.glsl +37 -0
- package/glsl3/Treemap.glsl +80 -0
- package/glsl3/TripleMatch.glsl +99 -0
- package/glsl3/TwinDragons.glsl +51 -0
- package/glsl3/Undercover.glsl +76 -0
- package/glsl3/Undulate.glsl +54 -0
- package/glsl3/Venn.glsl +48 -0
- package/glsl3/WaterWindow.glsl +89 -0
- package/glsl3/Whirl.glsl +73 -0
- package/glsl3/Wrench.glsl +22 -10
- package/glsl3/XorSquares.glsl +50 -0
- package/index.js +1 -1
- package/layouts.json +6100 -2927
- package/llms-full.txt +2390 -697
- package/llms.txt +458 -350
- package/msl/AccretionDisk.metal +821 -0
- package/msl/AirShow.metal +524 -0
- package/msl/Alike.metal +996 -0
- package/msl/Anaglyph.metal +164 -0
- package/msl/Anodize.metal +168 -0
- package/msl/Atom.metal +324 -0
- package/msl/BadBytes.metal +309 -0
- package/msl/BentRays.metal +237 -0
- package/msl/BlackLight.metal +277 -0
- package/msl/Bleach.metal +489 -0
- package/msl/Blueprint.metal +336 -0
- package/msl/BowTie.metal +162 -110
- package/msl/BoxClose.metal +382 -0
- package/msl/Braid.metal +723 -0
- package/msl/Buffering.metal +227 -0
- package/msl/Bullseyes.metal +416 -0
- package/msl/Captcha.metal +306 -0
- package/msl/CardStunt.metal +275 -0
- package/msl/Centrifuge.metal +495 -0
- package/msl/Champagne.metal +613 -0
- package/msl/Choppy.metal +362 -0
- package/msl/Chrysanthemum.metal +358 -0
- package/msl/CloudBanks.metal +844 -0
- package/msl/Coalesce.metal +475 -0
- package/msl/ColorFields.metal +182 -0
- package/msl/ColorPowder.metal +325 -0
- package/msl/CrossProcess.metal +162 -0
- package/msl/CryoJets.metal +462 -0
- package/msl/Curdle.metal +241 -0
- package/msl/DarkAdapt.metal +196 -0
- package/msl/Denoise.metal +242 -0
- package/msl/Dunk.metal +365 -0
- package/msl/EmptySlot.metal +600 -0
- package/msl/EuclidSquares.metal +476 -0
- package/msl/Filament.metal +183 -0
- package/msl/FilmBurn.metal +311 -270
- package/msl/FiveTriangles.metal +576 -0
- package/msl/FlowDissolve.metal +438 -269
- package/msl/FoilBalloon.metal +628 -0
- package/msl/FoldedInk.metal +836 -0
- package/msl/ForceField.metal +480 -0
- package/msl/FullHouse.metal +376 -0
- package/msl/GalacticYear.metal +384 -0
- package/msl/Gliders.metal +417 -0
- package/msl/GoldenAngle.metal +466 -0
- package/msl/GoldenHour.metal +240 -0
- package/msl/Grisaille.metal +382 -0
- package/msl/HandPlane.metal +374 -0
- package/msl/HandPrints.metal +520 -0
- package/msl/Headlong.metal +552 -0
- package/msl/Highlighter.metal +334 -0
- package/msl/HoneycombFill.metal +332 -0
- package/msl/HueDepth.metal +425 -0
- package/msl/IceFerns.metal +431 -0
- package/msl/ImpactFrames.metal +628 -0
- package/msl/JacquardWeave.metal +447 -0
- package/msl/JetStreams.metal +420 -0
- package/msl/KickSnare.metal +336 -0
- package/msl/Ladle.metal +253 -0
- package/msl/Lichen.metal +420 -0
- package/msl/Linkup.metal +1334 -0
- package/msl/Luminol.metal +305 -0
- package/msl/MeltedCrayons.metal +432 -0
- package/msl/Merger.metal +370 -0
- package/msl/Minesweeper.metal +662 -0
- package/msl/MotionDrift.metal +259 -0
- package/msl/Multitude.metal +382 -0
- package/msl/NailPolish.metal +377 -0
- package/msl/PaintDissolve.metal +856 -764
- package/msl/Photocopy.metal +343 -0
- package/msl/Physarum.metal +476 -0
- package/msl/Pound.metal +279 -0
- package/msl/Primitives.metal +431 -0
- package/msl/ProgressiveLoad.metal +264 -0
- package/msl/Quicksilver.metal +498 -0
- package/msl/Rebound.metal +435 -0
- package/msl/Recast.metal +229 -0
- package/msl/Resurface.metal +314 -0
- package/msl/RoughToFine.metal +438 -0
- package/msl/SandThrough.metal +288 -0
- package/msl/ShadowPlay.metal +252 -0
- package/msl/Shatter.metal +891 -788
- package/msl/Shoal.metal +614 -0
- package/msl/Simmer.metal +684 -0
- package/msl/SkiTracks.metal +483 -0
- package/msl/SlidingGrid.metal +593 -0
- package/msl/Slipstream.metal +836 -0
- package/msl/Somersault.metal +491 -0
- package/msl/Sparkler.metal +341 -0
- package/msl/SpectralTrails.metal +295 -0
- package/msl/Spectrum.metal +291 -0
- package/msl/StarTrails.metal +572 -0
- package/msl/Streamgraph.metal +375 -0
- package/msl/SunDisc.metal +844 -0
- package/msl/Supergraphic.metal +798 -0
- package/msl/Swell.metal +529 -0
- package/msl/ThreeInks.metal +627 -0
- package/msl/TidalBands.metal +711 -0
- package/msl/TigerEye.metal +367 -0
- package/msl/TileBlast.metal +729 -604
- package/msl/TileShuffle.metal +824 -799
- package/msl/Tinsel.metal +243 -0
- package/msl/Toggles.metal +327 -0
- package/msl/TonalHills.metal +856 -0
- package/msl/ToneBurst.metal +526 -0
- package/msl/Torsion.metal +198 -0
- package/msl/Treemap.metal +385 -0
- package/msl/TripleMatch.metal +417 -0
- package/msl/TwinDragons.metal +281 -0
- package/msl/Undercover.metal +425 -0
- package/msl/Undulate.metal +314 -0
- package/msl/Venn.metal +228 -0
- package/msl/WaterWindow.metal +426 -0
- package/msl/Whirl.metal +317 -0
- package/msl/Wrench.metal +798 -730
- package/msl/XorSquares.metal +277 -0
- package/package.json +1 -1
- package/skills/gl-transitions/references/catalog.md +360 -142
- package/sksl/AccretionDisk.sksl +177 -0
- package/sksl/AirShow.sksl +138 -0
- package/sksl/Alike.sksl +105 -0
- package/sksl/Anaglyph.sksl +40 -0
- package/sksl/Anodize.sksl +47 -0
- package/sksl/Atom.sksl +81 -0
- package/sksl/BadBytes.sksl +66 -0
- package/sksl/BentRays.sksl +59 -0
- package/sksl/BlackLight.sksl +61 -0
- package/sksl/Bleach.sksl +106 -0
- package/sksl/Blueprint.sksl +77 -0
- package/sksl/BowTie.sksl +14 -6
- package/sksl/BoxClose.sksl +78 -0
- package/sksl/Braid.sksl +145 -0
- package/sksl/Buffering.sksl +60 -0
- package/sksl/Bullseyes.sksl +97 -0
- package/sksl/Captcha.sksl +78 -0
- package/sksl/CardStunt.sksl +70 -0
- package/sksl/Centrifuge.sksl +103 -0
- package/sksl/Champagne.sksl +130 -0
- package/sksl/Choppy.sksl +80 -0
- package/sksl/Chrysanthemum.sksl +83 -0
- package/sksl/CloudBanks.sksl +171 -0
- package/sksl/Coalesce.sksl +102 -0
- package/sksl/ColorFields.sksl +46 -0
- package/sksl/ColorPowder.sksl +77 -0
- package/sksl/CrossProcess.sksl +42 -0
- package/sksl/CryoJets.sksl +123 -0
- package/sksl/Curdle.sksl +63 -0
- package/sksl/DarkAdapt.sksl +54 -0
- package/sksl/Denoise.sksl +60 -0
- package/sksl/Dunk.sksl +86 -0
- package/sksl/EmptySlot.sksl +116 -0
- package/sksl/EuclidSquares.sksl +90 -0
- package/sksl/Filament.sksl +42 -0
- package/sksl/FilmBurn.sksl +25 -12
- package/sksl/FiveTriangles.sksl +107 -0
- package/sksl/FlowDissolve.sksl +50 -26
- package/sksl/FoilBalloon.sksl +135 -0
- package/sksl/FoldedInk.sksl +159 -0
- package/sksl/ForceField.sksl +115 -0
- package/sksl/FullHouse.sksl +92 -0
- package/sksl/GalacticYear.sksl +91 -0
- package/sksl/Gliders.sksl +82 -0
- package/sksl/GoldenAngle.sksl +115 -0
- package/sksl/GoldenHour.sksl +60 -0
- package/sksl/Grisaille.sksl +84 -0
- package/sksl/HandPlane.sksl +80 -0
- package/sksl/HandPrints.sksl +100 -0
- package/sksl/Headlong.sksl +120 -0
- package/sksl/Highlighter.sksl +77 -0
- package/sksl/HoneycombFill.sksl +90 -0
- package/sksl/HueDepth.sksl +108 -0
- package/sksl/IceFerns.sksl +95 -0
- package/sksl/ImpactFrames.sksl +130 -0
- package/sksl/JacquardWeave.sksl +99 -0
- package/sksl/JetStreams.sksl +100 -0
- package/sksl/KickSnare.sksl +69 -0
- package/sksl/Ladle.sksl +62 -0
- package/sksl/Lichen.sksl +106 -0
- package/sksl/Linkup.sksl +220 -0
- package/sksl/Luminol.sksl +68 -0
- package/sksl/MeltedCrayons.sksl +104 -0
- package/sksl/Merger.sksl +82 -0
- package/sksl/Minesweeper.sksl +145 -0
- package/sksl/MotionDrift.sksl +61 -0
- package/sksl/Multitude.sksl +78 -0
- package/sksl/NailPolish.sksl +83 -0
- package/sksl/PaintDissolve.sksl +18 -11
- package/sksl/Photocopy.sksl +77 -0
- package/sksl/Physarum.sksl +116 -0
- package/sksl/Pound.sksl +77 -0
- package/sksl/Primitives.sksl +81 -0
- package/sksl/ProgressiveLoad.sksl +58 -0
- package/sksl/Quicksilver.sksl +122 -0
- package/sksl/Rebound.sksl +97 -0
- package/sksl/Recast.sksl +60 -0
- package/sksl/Resurface.sksl +71 -0
- package/sksl/RoughToFine.sksl +98 -0
- package/sksl/SandThrough.sksl +67 -0
- package/sksl/ShadowPlay.sksl +59 -0
- package/sksl/Shatter.sksl +55 -35
- package/sksl/Shoal.sksl +143 -0
- package/sksl/Simmer.sksl +154 -0
- package/sksl/SkiTracks.sksl +110 -0
- package/sksl/SlidingGrid.sksl +131 -0
- package/sksl/Slipstream.sksl +162 -0
- package/sksl/Somersault.sksl +96 -0
- package/sksl/Sparkler.sksl +93 -0
- package/sksl/SpectralTrails.sksl +81 -0
- package/sksl/Spectrum.sksl +77 -0
- package/sksl/StarTrails.sksl +135 -0
- package/sksl/Streamgraph.sksl +78 -0
- package/sksl/SunDisc.sksl +172 -0
- package/sksl/Supergraphic.sksl +158 -0
- package/sksl/Swell.sksl +124 -0
- package/sksl/ThreeInks.sksl +142 -0
- package/sksl/TidalBands.sksl +148 -0
- package/sksl/TigerEye.sksl +76 -0
- package/sksl/TileBlast.sksl +23 -8
- package/sksl/TileShuffle.sksl +45 -35
- package/sksl/Tinsel.sksl +62 -0
- package/sksl/Toggles.sksl +75 -0
- package/sksl/TonalHills.sksl +174 -0
- package/sksl/ToneBurst.sksl +124 -0
- package/sksl/Torsion.sksl +50 -0
- package/sksl/Treemap.sksl +93 -0
- package/sksl/TripleMatch.sksl +110 -0
- package/sksl/TwinDragons.sksl +63 -0
- package/sksl/Undercover.sksl +87 -0
- package/sksl/Undulate.sksl +65 -0
- package/sksl/Venn.sksl +60 -0
- package/sksl/WaterWindow.sksl +101 -0
- package/sksl/Whirl.sksl +85 -0
- package/sksl/Wrench.sksl +22 -10
- package/sksl/XorSquares.sksl +63 -0
- package/sksl/index.js +1 -1
- package/transitions/AccretionDisk.glsl +164 -0
- package/transitions/AirShow.glsl +125 -0
- package/transitions/Alike.glsl +96 -0
- package/transitions/Anaglyph.glsl +26 -0
- package/transitions/Anodize.glsl +33 -0
- package/transitions/Atom.glsl +67 -0
- package/transitions/BadBytes.glsl +55 -0
- package/transitions/BentRays.glsl +46 -0
- package/transitions/BlackLight.glsl +47 -0
- package/transitions/Bleach.glsl +92 -0
- package/transitions/Blueprint.glsl +63 -0
- package/transitions/BowTie.glsl +15 -6
- package/transitions/BoxClose.glsl +66 -0
- package/transitions/Braid.glsl +133 -0
- package/transitions/Buffering.glsl +46 -0
- package/transitions/Bullseyes.glsl +85 -0
- package/transitions/Captcha.glsl +64 -0
- package/transitions/CardStunt.glsl +56 -0
- package/transitions/Centrifuge.glsl +89 -0
- package/transitions/Champagne.glsl +116 -0
- package/transitions/Choppy.glsl +68 -0
- package/transitions/Chrysanthemum.glsl +70 -0
- package/transitions/CloudBanks.glsl +160 -0
- package/transitions/Coalesce.glsl +90 -0
- package/transitions/ColorFields.glsl +32 -0
- package/transitions/ColorPowder.glsl +63 -0
- package/transitions/CrossProcess.glsl +28 -0
- package/transitions/CryoJets.glsl +110 -0
- package/transitions/Curdle.glsl +49 -0
- package/transitions/DarkAdapt.glsl +40 -0
- package/transitions/Denoise.glsl +47 -0
- package/transitions/Dunk.glsl +72 -0
- package/transitions/EmptySlot.glsl +104 -0
- package/transitions/EuclidSquares.glsl +78 -0
- package/transitions/Filament.glsl +28 -0
- package/transitions/FilmBurn.glsl +25 -12
- package/transitions/FiveTriangles.glsl +93 -0
- package/transitions/FlowDissolve.glsl +53 -27
- package/transitions/FoilBalloon.glsl +122 -0
- package/transitions/FoldedInk.glsl +146 -0
- package/transitions/ForceField.glsl +103 -0
- package/transitions/FullHouse.glsl +78 -0
- package/transitions/GalacticYear.glsl +79 -0
- package/transitions/Gliders.glsl +69 -0
- package/transitions/GoldenAngle.glsl +103 -0
- package/transitions/GoldenHour.glsl +46 -0
- package/transitions/Grisaille.glsl +71 -0
- package/transitions/HandPlane.glsl +67 -0
- package/transitions/HandPrints.glsl +87 -0
- package/transitions/Headlong.glsl +108 -0
- package/transitions/Highlighter.glsl +64 -0
- package/transitions/HoneycombFill.glsl +76 -0
- package/transitions/HueDepth.glsl +95 -0
- package/transitions/IceFerns.glsl +81 -0
- package/transitions/ImpactFrames.glsl +119 -0
- package/transitions/JacquardWeave.glsl +87 -0
- package/transitions/JetStreams.glsl +90 -0
- package/transitions/KickSnare.glsl +58 -0
- package/transitions/Ladle.glsl +48 -0
- package/transitions/Lichen.glsl +92 -0
- package/transitions/Linkup.glsl +210 -0
- package/transitions/Luminol.glsl +55 -0
- package/transitions/MeltedCrayons.glsl +90 -0
- package/transitions/Merger.glsl +69 -0
- package/transitions/Minesweeper.glsl +133 -0
- package/transitions/MotionDrift.glsl +50 -0
- package/transitions/Multitude.glsl +64 -0
- package/transitions/NailPolish.glsl +70 -0
- package/transitions/PaintDissolve.glsl +19 -12
- package/transitions/Photocopy.glsl +64 -0
- package/transitions/Physarum.glsl +105 -0
- package/transitions/Pound.glsl +63 -0
- package/transitions/Primitives.glsl +70 -0
- package/transitions/ProgressiveLoad.glsl +44 -0
- package/transitions/Quicksilver.glsl +110 -0
- package/transitions/Rebound.glsl +83 -0
- package/transitions/Recast.glsl +48 -0
- package/transitions/Resurface.glsl +58 -0
- package/transitions/RoughToFine.glsl +86 -0
- package/transitions/SandThrough.glsl +53 -0
- package/transitions/ShadowPlay.glsl +45 -0
- package/transitions/Shatter.glsl +55 -35
- package/transitions/Shoal.glsl +131 -0
- package/transitions/Simmer.glsl +142 -0
- package/transitions/SkiTracks.glsl +96 -0
- package/transitions/SlidingGrid.glsl +119 -0
- package/transitions/Slipstream.glsl +151 -0
- package/transitions/Somersault.glsl +85 -0
- package/transitions/Sparkler.glsl +80 -0
- package/transitions/SpectralTrails.glsl +68 -0
- package/transitions/Spectrum.glsl +64 -0
- package/transitions/StarTrails.glsl +123 -0
- package/transitions/Streamgraph.glsl +64 -0
- package/transitions/SunDisc.glsl +160 -0
- package/transitions/Supergraphic.glsl +146 -0
- package/transitions/Swell.glsl +112 -0
- package/transitions/ThreeInks.glsl +130 -0
- package/transitions/TidalBands.glsl +135 -0
- package/transitions/TigerEye.glsl +64 -0
- package/transitions/TileBlast.glsl +25 -9
- package/transitions/TileShuffle.glsl +48 -35
- package/transitions/Tinsel.glsl +48 -0
- package/transitions/Toggles.glsl +62 -0
- package/transitions/TonalHills.glsl +161 -0
- package/transitions/ToneBurst.glsl +111 -0
- package/transitions/Torsion.glsl +36 -0
- package/transitions/Treemap.glsl +79 -0
- package/transitions/TripleMatch.glsl +98 -0
- package/transitions/TwinDragons.glsl +50 -0
- package/transitions/Undercover.glsl +75 -0
- package/transitions/Undulate.glsl +53 -0
- package/transitions/Venn.glsl +47 -0
- package/transitions/WaterWindow.glsl +88 -0
- package/transitions/Whirl.glsl +72 -0
- package/transitions/Wrench.glsl +22 -10
- package/transitions/XorSquares.glsl +49 -0
- package/wgsl/AccretionDisk.wgsl +758 -0
- package/wgsl/AirShow.wgsl +482 -0
- package/wgsl/Alike.wgsl +926 -0
- package/wgsl/Anaglyph.wgsl +134 -0
- package/wgsl/Anodize.wgsl +139 -0
- package/wgsl/Atom.wgsl +288 -0
- package/wgsl/BadBytes.wgsl +273 -0
- package/wgsl/BentRays.wgsl +202 -0
- package/wgsl/BlackLight.wgsl +237 -0
- package/wgsl/Bleach.wgsl +428 -0
- package/wgsl/Blueprint.wgsl +300 -0
- package/wgsl/BowTie.wgsl +152 -110
- package/wgsl/BoxClose.wgsl +345 -0
- package/wgsl/Braid.wgsl +652 -0
- package/wgsl/Buffering.wgsl +191 -0
- package/wgsl/Bullseyes.wgsl +366 -0
- package/wgsl/Captcha.wgsl +275 -0
- package/wgsl/CardStunt.wgsl +246 -0
- package/wgsl/Centrifuge.wgsl +442 -0
- package/wgsl/Champagne.wgsl +568 -0
- package/wgsl/Choppy.wgsl +315 -0
- package/wgsl/Chrysanthemum.wgsl +317 -0
- package/wgsl/CloudBanks.wgsl +773 -0
- package/wgsl/Coalesce.wgsl +424 -0
- package/wgsl/ColorFields.wgsl +149 -0
- package/wgsl/ColorPowder.wgsl +289 -0
- package/wgsl/CrossProcess.wgsl +132 -0
- package/wgsl/CryoJets.wgsl +413 -0
- package/wgsl/Curdle.wgsl +209 -0
- package/wgsl/DarkAdapt.wgsl +163 -0
- package/wgsl/Denoise.wgsl +205 -0
- package/wgsl/Dunk.wgsl +323 -0
- package/wgsl/EmptySlot.wgsl +550 -0
- package/wgsl/EuclidSquares.wgsl +421 -0
- package/wgsl/Filament.wgsl +150 -0
- package/wgsl/FilmBurn.wgsl +300 -258
- package/wgsl/FiveTriangles.wgsl +523 -0
- package/wgsl/FlowDissolve.wgsl +415 -251
- package/wgsl/FoilBalloon.wgsl +579 -0
- package/wgsl/FoldedInk.wgsl +772 -0
- package/wgsl/ForceField.wgsl +434 -0
- package/wgsl/FullHouse.wgsl +337 -0
- package/wgsl/GalacticYear.wgsl +331 -0
- package/wgsl/Gliders.wgsl +374 -0
- package/wgsl/GoldenAngle.wgsl +416 -0
- package/wgsl/GoldenHour.wgsl +202 -0
- package/wgsl/Grisaille.wgsl +341 -0
- package/wgsl/HandPlane.wgsl +332 -0
- package/wgsl/HandPrints.wgsl +476 -0
- package/wgsl/Headlong.wgsl +501 -0
- package/wgsl/Highlighter.wgsl +296 -0
- package/wgsl/HoneycombFill.wgsl +295 -0
- package/wgsl/HueDepth.wgsl +379 -0
- package/wgsl/IceFerns.wgsl +383 -0
- package/wgsl/ImpactFrames.wgsl +560 -0
- package/wgsl/JacquardWeave.wgsl +400 -0
- package/wgsl/JetStreams.wgsl +371 -0
- package/wgsl/KickSnare.wgsl +298 -0
- package/wgsl/Ladle.wgsl +218 -0
- package/wgsl/Lichen.wgsl +379 -0
- package/wgsl/Linkup.wgsl +1243 -0
- package/wgsl/Luminol.wgsl +270 -0
- package/wgsl/MeltedCrayons.wgsl +386 -0
- package/wgsl/Merger.wgsl +324 -0
- package/wgsl/Minesweeper.wgsl +605 -0
- package/wgsl/MotionDrift.wgsl +222 -0
- package/wgsl/Multitude.wgsl +315 -0
- package/wgsl/NailPolish.wgsl +341 -0
- package/wgsl/PaintDissolve.wgsl +850 -759
- package/wgsl/Photocopy.wgsl +304 -0
- package/wgsl/Physarum.wgsl +427 -0
- package/wgsl/Pound.wgsl +242 -0
- package/wgsl/Primitives.wgsl +391 -0
- package/wgsl/ProgressiveLoad.wgsl +228 -0
- package/wgsl/Quicksilver.wgsl +457 -0
- package/wgsl/Rebound.wgsl +389 -0
- package/wgsl/Recast.wgsl +191 -0
- package/wgsl/Resurface.wgsl +282 -0
- package/wgsl/RoughToFine.wgsl +389 -0
- package/wgsl/SandThrough.wgsl +250 -0
- package/wgsl/ShadowPlay.wgsl +209 -0
- package/wgsl/Shatter.wgsl +893 -792
- package/wgsl/Shoal.wgsl +563 -0
- package/wgsl/Simmer.wgsl +633 -0
- package/wgsl/SkiTracks.wgsl +447 -0
- package/wgsl/SlidingGrid.wgsl +532 -0
- package/wgsl/Slipstream.wgsl +774 -0
- package/wgsl/Somersault.wgsl +448 -0
- package/wgsl/Sparkler.wgsl +305 -0
- package/wgsl/SpectralTrails.wgsl +256 -0
- package/wgsl/Spectrum.wgsl +257 -0
- package/wgsl/StarTrails.wgsl +508 -0
- package/wgsl/Streamgraph.wgsl +327 -0
- package/wgsl/SunDisc.wgsl +776 -0
- package/wgsl/Supergraphic.wgsl +734 -0
- package/wgsl/Swell.wgsl +472 -0
- package/wgsl/ThreeInks.wgsl +572 -0
- package/wgsl/TidalBands.wgsl +648 -0
- package/wgsl/TigerEye.wgsl +325 -0
- package/wgsl/TileBlast.wgsl +727 -602
- package/wgsl/TileShuffle.wgsl +817 -789
- package/wgsl/Tinsel.wgsl +214 -0
- package/wgsl/Toggles.wgsl +292 -0
- package/wgsl/TonalHills.wgsl +788 -0
- package/wgsl/ToneBurst.wgsl +454 -0
- package/wgsl/Torsion.wgsl +161 -0
- package/wgsl/Treemap.wgsl +348 -0
- package/wgsl/TripleMatch.wgsl +377 -0
- package/wgsl/TwinDragons.wgsl +238 -0
- package/wgsl/Undercover.wgsl +384 -0
- package/wgsl/Undulate.wgsl +263 -0
- package/wgsl/Venn.wgsl +190 -0
- package/wgsl/WaterWindow.wgsl +378 -0
- package/wgsl/Whirl.wgsl +275 -0
- package/wgsl/Wrench.wgsl +798 -730
- package/wgsl/XorSquares.wgsl +232 -0
|
@@ -0,0 +1,628 @@
|
|
|
1
|
+
// ImpactFrames — MSL, generated from https://github.com/gl-transitions/gl-transitions/blob/master/transitions/ImpactFrames.glsl
|
|
2
|
+
// Author: gre
|
|
3
|
+
// License: MIT
|
|
4
|
+
// Description: The outgoing image takes a hit: jagged rays close in and snap it into a stark black and white ink drawing, scratched by speed lines that are redrawn on a beat; the incoming image bursts out of the center as a second drawing, in red on white, then its real colors shoot out along the same rays
|
|
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
|
+
char _pad2[8];
|
|
17
|
+
metal::float4 ink;
|
|
18
|
+
metal::float4 paper;
|
|
19
|
+
metal::float4 accent;
|
|
20
|
+
float threshold;
|
|
21
|
+
float scratches;
|
|
22
|
+
float zoom;
|
|
23
|
+
char _pad8[4];
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
metal::float4 getToColor(
|
|
27
|
+
thread metal::float2& uv,
|
|
28
|
+
metal::sampler _sampler,
|
|
29
|
+
metal::texture2d<float, metal::access::sample> _to
|
|
30
|
+
) {
|
|
31
|
+
float _e76 = uv[0u];
|
|
32
|
+
float _e78 = uv[1u];
|
|
33
|
+
metal::float4 _e81 = _to.sample(_sampler, metal::float2(_e76, 1.0 - _e78), metal::level(0.0));
|
|
34
|
+
return _e81;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
float lum(
|
|
38
|
+
thread metal::float3& c
|
|
39
|
+
) {
|
|
40
|
+
metal::float3 _e75 = c;
|
|
41
|
+
return metal::dot(_e75, metal::float3(0.299, 0.587, 0.114));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
metal::float4 drawing(
|
|
45
|
+
thread metal::float4& c_1,
|
|
46
|
+
thread float& around,
|
|
47
|
+
thread float& rough,
|
|
48
|
+
thread metal::float4& dark,
|
|
49
|
+
thread metal::float4& light,
|
|
50
|
+
constant Uniforms& uniforms
|
|
51
|
+
) {
|
|
52
|
+
float t = {};
|
|
53
|
+
float x = {};
|
|
54
|
+
metal::float3 param = {};
|
|
55
|
+
float _e83 = uniforms.threshold;
|
|
56
|
+
float _e84 = around;
|
|
57
|
+
t = metal::mix(_e83, _e84, 0.35);
|
|
58
|
+
float _e86 = t;
|
|
59
|
+
float _e88 = t;
|
|
60
|
+
metal::float4 _e90 = c_1;
|
|
61
|
+
param = _e90.xyz;
|
|
62
|
+
float _e92 = lum(param);
|
|
63
|
+
float _e93 = rough;
|
|
64
|
+
x = metal::smoothstep(_e86 - 0.02, _e88 + 0.02, _e92 + (0.8 * _e93));
|
|
65
|
+
metal::float4 _e97 = c_1;
|
|
66
|
+
metal::float4 _e99 = dark;
|
|
67
|
+
float _e102 = dark[3u];
|
|
68
|
+
metal::float4 _e105 = c_1;
|
|
69
|
+
metal::float4 _e107 = light;
|
|
70
|
+
float _e110 = light[3u];
|
|
71
|
+
float _e113 = x;
|
|
72
|
+
metal::float3 _e115 = metal::mix(metal::mix(_e97.xyz, _e99.xyz, metal::float3(_e102)), metal::mix(_e105.xyz, _e107.xyz, metal::float3(_e110)), metal::float3(_e113));
|
|
73
|
+
float _e117 = c_1[3u];
|
|
74
|
+
return metal::float4(_e115.x, _e115.y, _e115.z, _e117);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
metal::float4 getFromColor(
|
|
78
|
+
thread metal::float2& uv_1,
|
|
79
|
+
metal::texture2d<float, metal::access::sample> _from,
|
|
80
|
+
metal::sampler _sampler
|
|
81
|
+
) {
|
|
82
|
+
float _e76 = uv_1[0u];
|
|
83
|
+
float _e78 = uv_1[1u];
|
|
84
|
+
metal::float4 _e81 = _from.sample(_sampler, metal::float2(_e76, 1.0 - _e78), metal::level(0.0));
|
|
85
|
+
return _e81;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
metal::float2 mirror(
|
|
89
|
+
thread metal::float2& v
|
|
90
|
+
) {
|
|
91
|
+
metal::float2 _e75 = v;
|
|
92
|
+
metal::float2 _e76 = metal::float2(2.0);
|
|
93
|
+
return metal::float2(1.0) - metal::abs(metal::float2(1.0) - (_e75 - (metal::floor(_e75 / _e76) * _e76)));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
float localLum(
|
|
97
|
+
thread metal::float2& q,
|
|
98
|
+
thread metal::float2& k,
|
|
99
|
+
thread bool& incoming,
|
|
100
|
+
metal::texture2d<float, metal::access::sample> _from,
|
|
101
|
+
metal::sampler _sampler,
|
|
102
|
+
metal::texture2d<float, metal::access::sample> _to
|
|
103
|
+
) {
|
|
104
|
+
metal::float2 s = {};
|
|
105
|
+
int i = {};
|
|
106
|
+
float t_1 = {};
|
|
107
|
+
metal::float2 o = {};
|
|
108
|
+
metal::float2 st = {};
|
|
109
|
+
metal::float2 param_1 = {};
|
|
110
|
+
metal::float4 c_2 = {};
|
|
111
|
+
metal::float4 local = {};
|
|
112
|
+
metal::float2 param_2 = {};
|
|
113
|
+
metal::float2 param_3 = {};
|
|
114
|
+
metal::float3 param_4 = {};
|
|
115
|
+
s = metal::float2(0.0, 0.0);
|
|
116
|
+
i = 0;
|
|
117
|
+
uint2 loop_bound = uint2(4294967295u);
|
|
118
|
+
bool loop_init = true;
|
|
119
|
+
while(true) {
|
|
120
|
+
if (metal::all(loop_bound == uint2(0u))) { break; }
|
|
121
|
+
loop_bound -= uint2(loop_bound.y == 0u, 1u);
|
|
122
|
+
if (!loop_init) {
|
|
123
|
+
int _e128 = i;
|
|
124
|
+
i = as_type<int>(as_type<uint>(_e128) + as_type<uint>(1));
|
|
125
|
+
}
|
|
126
|
+
loop_init = false;
|
|
127
|
+
int _e88 = i;
|
|
128
|
+
if (_e88 < 12) {
|
|
129
|
+
int _e90 = i;
|
|
130
|
+
t_1 = 2.39996 * static_cast<float>(_e90);
|
|
131
|
+
int _e93 = i;
|
|
132
|
+
float _e99 = t_1;
|
|
133
|
+
float _e101 = t_1;
|
|
134
|
+
o = metal::float2(metal::cos(_e99), metal::sin(_e101)) * (0.16 * metal::sqrt((static_cast<float>(_e93) + 0.5) / 12.0));
|
|
135
|
+
metal::float2 _e105 = q;
|
|
136
|
+
metal::float2 _e106 = o;
|
|
137
|
+
metal::float2 _e108 = k;
|
|
138
|
+
param_1 = ((_e105 + _e106) / _e108) + metal::float2(0.5);
|
|
139
|
+
metal::float2 _e112 = mirror(param_1);
|
|
140
|
+
st = _e112;
|
|
141
|
+
bool _e113 = incoming;
|
|
142
|
+
if (_e113) {
|
|
143
|
+
metal::float2 _e114 = st;
|
|
144
|
+
param_2 = _e114;
|
|
145
|
+
metal::float4 _e115 = getToColor(param_2, _sampler, _to);
|
|
146
|
+
local = _e115;
|
|
147
|
+
} else {
|
|
148
|
+
metal::float2 _e116 = st;
|
|
149
|
+
param_3 = _e116;
|
|
150
|
+
metal::float4 _e117 = getFromColor(param_3, _from, _sampler);
|
|
151
|
+
local = _e117;
|
|
152
|
+
}
|
|
153
|
+
metal::float4 _e118 = local;
|
|
154
|
+
c_2 = _e118;
|
|
155
|
+
metal::float4 _e119 = c_2;
|
|
156
|
+
param_4 = _e119.xyz;
|
|
157
|
+
float _e121 = lum(param_4);
|
|
158
|
+
float _e124 = c_2[3u];
|
|
159
|
+
metal::float2 _e126 = s;
|
|
160
|
+
s = _e126 + (metal::float2(_e121, 1.0) * _e124);
|
|
161
|
+
continue;
|
|
162
|
+
} else {
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
float _e131 = s[0u];
|
|
167
|
+
float _e133 = s[1u];
|
|
168
|
+
return _e131 / metal::max(_e133, 0.0001);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
float hash(
|
|
172
|
+
thread float& n
|
|
173
|
+
) {
|
|
174
|
+
float _e75 = n;
|
|
175
|
+
n = metal::fract(_e75 * 0.1031);
|
|
176
|
+
float _e78 = n;
|
|
177
|
+
float _e80 = n;
|
|
178
|
+
n = _e80 * (_e78 + 33.33);
|
|
179
|
+
float _e82 = n;
|
|
180
|
+
float _e83 = n;
|
|
181
|
+
float _e85 = n;
|
|
182
|
+
n = _e85 * (_e82 + _e83);
|
|
183
|
+
float _e87 = n;
|
|
184
|
+
return metal::fract(_e87);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
float strand(
|
|
188
|
+
thread float& a,
|
|
189
|
+
thread float& n_1,
|
|
190
|
+
thread float& seed
|
|
191
|
+
) {
|
|
192
|
+
float x_1 = {};
|
|
193
|
+
float i_1 = {};
|
|
194
|
+
float lo = {};
|
|
195
|
+
float param_5 = {};
|
|
196
|
+
float hi = {};
|
|
197
|
+
float param_6 = {};
|
|
198
|
+
float _e83 = a;
|
|
199
|
+
float _e85 = n_1;
|
|
200
|
+
x_1 = metal::fract(_e83) * _e85;
|
|
201
|
+
float _e87 = x_1;
|
|
202
|
+
i_1 = metal::floor(_e87);
|
|
203
|
+
float _e89 = i_1;
|
|
204
|
+
float _e90 = n_1;
|
|
205
|
+
float _e95 = seed;
|
|
206
|
+
param_5 = (_e89 - (metal::floor(_e89 / _e90) * _e90)) + _e95;
|
|
207
|
+
float _e97 = hash(param_5);
|
|
208
|
+
lo = _e97;
|
|
209
|
+
float _e98 = i_1;
|
|
210
|
+
float _e99 = _e98 + 1.0;
|
|
211
|
+
float _e100 = n_1;
|
|
212
|
+
float _e105 = seed;
|
|
213
|
+
param_6 = (_e99 - (metal::floor(_e99 / _e100) * _e100)) + _e105;
|
|
214
|
+
float _e107 = hash(param_6);
|
|
215
|
+
hi = _e107;
|
|
216
|
+
float _e108 = lo;
|
|
217
|
+
float _e109 = hi;
|
|
218
|
+
float _e110 = x_1;
|
|
219
|
+
float _e111 = i_1;
|
|
220
|
+
return metal::mix(_e108, _e109, metal::smoothstep(0.3, 0.7, _e110 - _e111));
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
float scratch(
|
|
224
|
+
thread float& a_1,
|
|
225
|
+
thread float& r,
|
|
226
|
+
constant Uniforms& uniforms
|
|
227
|
+
) {
|
|
228
|
+
float seed_1 = {};
|
|
229
|
+
float ray = {};
|
|
230
|
+
float param_7 = {};
|
|
231
|
+
float param_8 = {};
|
|
232
|
+
float param_9 = {};
|
|
233
|
+
float param_10 = {};
|
|
234
|
+
float param_11 = {};
|
|
235
|
+
float param_12 = {};
|
|
236
|
+
float param_13 = {};
|
|
237
|
+
float param_14 = {};
|
|
238
|
+
float param_15 = {};
|
|
239
|
+
float _e88 = uniforms.progress;
|
|
240
|
+
seed_1 = 257.0 * metal::floor((_e88 * 12.0) + 0.5);
|
|
241
|
+
float _e93 = a_1;
|
|
242
|
+
param_7 = _e93;
|
|
243
|
+
param_8 = 240.0;
|
|
244
|
+
float _e94 = seed_1;
|
|
245
|
+
param_9 = _e94;
|
|
246
|
+
float _e95 = strand(param_7, param_8, param_9);
|
|
247
|
+
float _e97 = seed_1;
|
|
248
|
+
float _e99 = a_1;
|
|
249
|
+
param_10 = _e99;
|
|
250
|
+
param_11 = 97.0;
|
|
251
|
+
param_12 = _e97 + 7.0;
|
|
252
|
+
float _e100 = strand(param_10, param_11, param_12);
|
|
253
|
+
float _e103 = seed_1;
|
|
254
|
+
float _e105 = a_1;
|
|
255
|
+
param_13 = _e105;
|
|
256
|
+
param_14 = 31.0;
|
|
257
|
+
param_15 = _e103 + 3.0;
|
|
258
|
+
float _e106 = strand(param_13, param_14, param_15);
|
|
259
|
+
ray = ((0.45 * _e95) + (0.35 * _e100)) + (0.2 * _e106);
|
|
260
|
+
float _e110 = uniforms.scratches;
|
|
261
|
+
float _e111 = ray;
|
|
262
|
+
float _e114 = r;
|
|
263
|
+
return (_e110 * (_e111 - 0.5)) * metal::smoothstep(0.1, 0.7, _e114);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
float star(
|
|
267
|
+
thread float& r_1,
|
|
268
|
+
thread float& R,
|
|
269
|
+
thread float& j,
|
|
270
|
+
thread float& slope
|
|
271
|
+
) {
|
|
272
|
+
float d = {};
|
|
273
|
+
float _e79 = R;
|
|
274
|
+
float _e80 = j;
|
|
275
|
+
float _e82 = r_1;
|
|
276
|
+
float _e84 = R;
|
|
277
|
+
float _e85 = R;
|
|
278
|
+
float _e87 = slope;
|
|
279
|
+
float _e89 = slope;
|
|
280
|
+
d = ((_e79 * _e80) - _e82) / metal::sqrt(1.0 + (((_e84 * _e85) * _e87) * _e89));
|
|
281
|
+
float _e94 = d;
|
|
282
|
+
float _e96 = R;
|
|
283
|
+
return metal::smoothstep(-0.0015, 0.0015, _e94) * metal::smoothstep(0.0, 0.004, _e96);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
float fine(
|
|
287
|
+
thread float& r_2,
|
|
288
|
+
thread float& n_2
|
|
289
|
+
) {
|
|
290
|
+
float _e76 = r_2;
|
|
291
|
+
float _e78 = n_2;
|
|
292
|
+
return metal::smoothstep(0.004, 0.016, (6.2831855 * _e76) / _e78);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
float jag(
|
|
296
|
+
thread float& a_2,
|
|
297
|
+
thread float& r_3
|
|
298
|
+
) {
|
|
299
|
+
float spike = {};
|
|
300
|
+
float param_16 = {};
|
|
301
|
+
float param_17 = {};
|
|
302
|
+
float param_18 = {};
|
|
303
|
+
float param_19 = {};
|
|
304
|
+
float param_20 = {};
|
|
305
|
+
float param_21 = {};
|
|
306
|
+
float param_22 = {};
|
|
307
|
+
float param_23 = {};
|
|
308
|
+
float param_24 = {};
|
|
309
|
+
float param_25 = {};
|
|
310
|
+
float param_26 = {};
|
|
311
|
+
float param_27 = {};
|
|
312
|
+
float param_28 = {};
|
|
313
|
+
float _e90 = a_2;
|
|
314
|
+
param_16 = _e90;
|
|
315
|
+
param_17 = 23.0;
|
|
316
|
+
param_18 = 23.0;
|
|
317
|
+
float _e91 = strand(param_16, param_17, param_18);
|
|
318
|
+
spike = _e91;
|
|
319
|
+
float _e92 = spike;
|
|
320
|
+
float _e94 = spike;
|
|
321
|
+
float _e97 = a_2;
|
|
322
|
+
param_19 = _e97;
|
|
323
|
+
param_20 = 53.0;
|
|
324
|
+
param_21 = 5.0;
|
|
325
|
+
float _e98 = strand(param_19, param_20, param_21);
|
|
326
|
+
float _e100 = r_3;
|
|
327
|
+
param_22 = _e100;
|
|
328
|
+
param_23 = 53.0;
|
|
329
|
+
float _e101 = fine(param_22, param_23);
|
|
330
|
+
float _e104 = a_2;
|
|
331
|
+
param_24 = _e104;
|
|
332
|
+
param_25 = 190.0;
|
|
333
|
+
param_26 = 11.0;
|
|
334
|
+
float _e105 = strand(param_24, param_25, param_26);
|
|
335
|
+
float _e107 = r_3;
|
|
336
|
+
param_27 = _e107;
|
|
337
|
+
param_28 = 190.0;
|
|
338
|
+
float _e108 = fine(param_27, param_28);
|
|
339
|
+
return ((0.75 + ((0.6 * _e92) * _e94)) + metal::mix(0.15, 0.35 * _e98, _e101)) + metal::mix(0.12, 0.3 * _e105, _e108);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
metal::float4 transition(
|
|
343
|
+
thread metal::float2& uv_2,
|
|
344
|
+
metal::texture2d<float, metal::access::sample> _from,
|
|
345
|
+
metal::sampler _sampler,
|
|
346
|
+
metal::texture2d<float, metal::access::sample> _to,
|
|
347
|
+
constant Uniforms& uniforms
|
|
348
|
+
) {
|
|
349
|
+
metal::float2 k_1 = {};
|
|
350
|
+
metal::float2 p = {};
|
|
351
|
+
float R_1 = {};
|
|
352
|
+
float r_4 = {};
|
|
353
|
+
float a_3 = {};
|
|
354
|
+
float reach = {};
|
|
355
|
+
float j_1 = {};
|
|
356
|
+
float param_29 = {};
|
|
357
|
+
float param_30 = {};
|
|
358
|
+
float da = {};
|
|
359
|
+
float slope_1 = {};
|
|
360
|
+
float param_31 = {};
|
|
361
|
+
float param_32 = {};
|
|
362
|
+
float inked = {};
|
|
363
|
+
float param_33 = {};
|
|
364
|
+
float param_34 = {};
|
|
365
|
+
float param_35 = {};
|
|
366
|
+
float param_36 = {};
|
|
367
|
+
float swap = {};
|
|
368
|
+
float param_37 = {};
|
|
369
|
+
float param_38 = {};
|
|
370
|
+
float param_39 = {};
|
|
371
|
+
float param_40 = {};
|
|
372
|
+
float color = {};
|
|
373
|
+
float param_41 = {};
|
|
374
|
+
float param_42 = {};
|
|
375
|
+
float param_43 = {};
|
|
376
|
+
float param_44 = {};
|
|
377
|
+
float rough_1 = {};
|
|
378
|
+
float local_1 = {};
|
|
379
|
+
float param_45 = {};
|
|
380
|
+
float param_46 = {};
|
|
381
|
+
metal::float4 A = {};
|
|
382
|
+
metal::float4 B = {};
|
|
383
|
+
metal::float2 q_1 = {};
|
|
384
|
+
metal::float2 param_47 = {};
|
|
385
|
+
metal::float2 param_48 = {};
|
|
386
|
+
metal::float2 param_49 = {};
|
|
387
|
+
metal::float2 param_50 = {};
|
|
388
|
+
bool param_51 = {};
|
|
389
|
+
metal::float4 param_52 = {};
|
|
390
|
+
float param_53 = {};
|
|
391
|
+
float param_54 = {};
|
|
392
|
+
metal::float4 param_55 = {};
|
|
393
|
+
metal::float4 param_56 = {};
|
|
394
|
+
metal::float2 q_2 = {};
|
|
395
|
+
metal::float2 param_57 = {};
|
|
396
|
+
metal::float2 param_58 = {};
|
|
397
|
+
metal::float2 param_59 = {};
|
|
398
|
+
metal::float2 param_60 = {};
|
|
399
|
+
bool param_61 = {};
|
|
400
|
+
metal::float4 param_62 = {};
|
|
401
|
+
float param_63 = {};
|
|
402
|
+
float param_64 = {};
|
|
403
|
+
metal::float4 param_65 = {};
|
|
404
|
+
metal::float4 param_66 = {};
|
|
405
|
+
metal::float4 col = {};
|
|
406
|
+
metal::float4 local_2 = {};
|
|
407
|
+
bool phi_572_ = {};
|
|
408
|
+
float _e134 = uniforms.ratio;
|
|
409
|
+
k_1 = metal::float2(_e134, 1.0);
|
|
410
|
+
metal::float2 _e136 = uv_2;
|
|
411
|
+
metal::float2 _e139 = k_1;
|
|
412
|
+
p = (_e136 - metal::float2(0.5)) * _e139;
|
|
413
|
+
metal::float2 _e141 = k_1;
|
|
414
|
+
R_1 = 0.5 * metal::length(_e141);
|
|
415
|
+
metal::float2 _e144 = p;
|
|
416
|
+
r_4 = metal::length(_e144);
|
|
417
|
+
float _e147 = p[1u];
|
|
418
|
+
float _e149 = p[0u];
|
|
419
|
+
a_3 = metal::atan2(_e147, _e149 + 0.000001) / 6.2831855;
|
|
420
|
+
float _e153 = R_1;
|
|
421
|
+
reach = 1.5 * _e153;
|
|
422
|
+
float _e155 = a_3;
|
|
423
|
+
param_29 = _e155;
|
|
424
|
+
float _e156 = r_4;
|
|
425
|
+
param_30 = _e156;
|
|
426
|
+
float _e157 = jag(param_29, param_30);
|
|
427
|
+
j_1 = _e157;
|
|
428
|
+
float _e158 = r_4;
|
|
429
|
+
da = 0.0006 / (_e158 + 0.01);
|
|
430
|
+
float _e161 = a_3;
|
|
431
|
+
float _e162 = da;
|
|
432
|
+
param_31 = _e161 + _e162;
|
|
433
|
+
float _e164 = r_4;
|
|
434
|
+
param_32 = _e164;
|
|
435
|
+
float _e165 = jag(param_31, param_32);
|
|
436
|
+
float _e166 = j_1;
|
|
437
|
+
slope_1 = (_e165 - _e166) / 0.0037699111;
|
|
438
|
+
float _e169 = reach;
|
|
439
|
+
float _e171 = uniforms.progress;
|
|
440
|
+
float _e175 = r_4;
|
|
441
|
+
param_33 = _e175;
|
|
442
|
+
param_34 = _e169 * (1.0 - metal::smoothstep(0.0, 0.28, _e171));
|
|
443
|
+
float _e176 = j_1;
|
|
444
|
+
param_35 = _e176;
|
|
445
|
+
float _e177 = slope_1;
|
|
446
|
+
param_36 = _e177;
|
|
447
|
+
float _e178 = star(param_33, param_34, param_35, param_36);
|
|
448
|
+
inked = 1.0 - _e178;
|
|
449
|
+
float _e180 = reach;
|
|
450
|
+
float _e182 = uniforms.progress;
|
|
451
|
+
float _e185 = r_4;
|
|
452
|
+
param_37 = _e185;
|
|
453
|
+
param_38 = _e180 * metal::smoothstep(0.41, 0.6, _e182);
|
|
454
|
+
float _e186 = j_1;
|
|
455
|
+
param_39 = _e186;
|
|
456
|
+
float _e187 = slope_1;
|
|
457
|
+
param_40 = _e187;
|
|
458
|
+
float _e188 = star(param_37, param_38, param_39, param_40);
|
|
459
|
+
swap = _e188;
|
|
460
|
+
float _e189 = reach;
|
|
461
|
+
float _e191 = uniforms.progress;
|
|
462
|
+
float _e194 = r_4;
|
|
463
|
+
param_41 = _e194;
|
|
464
|
+
param_42 = _e189 * metal::smoothstep(0.62, 0.95, _e191);
|
|
465
|
+
float _e195 = j_1;
|
|
466
|
+
param_43 = _e195;
|
|
467
|
+
float _e196 = slope_1;
|
|
468
|
+
param_44 = _e196;
|
|
469
|
+
float _e197 = star(param_41, param_42, param_43, param_44);
|
|
470
|
+
color = _e197;
|
|
471
|
+
float _e198 = inked;
|
|
472
|
+
float _e200 = swap;
|
|
473
|
+
bool _e202 = (_e198 > 0.0) && (_e200 < 1.0);
|
|
474
|
+
phi_572_ = _e202;
|
|
475
|
+
if (!(_e202)) {
|
|
476
|
+
float _e204 = swap;
|
|
477
|
+
float _e206 = color;
|
|
478
|
+
phi_572_ = (_e204 > 0.0) && (_e206 < 1.0);
|
|
479
|
+
}
|
|
480
|
+
bool _e210 = phi_572_;
|
|
481
|
+
if (_e210) {
|
|
482
|
+
float _e211 = r_4;
|
|
483
|
+
float _e212 = R_1;
|
|
484
|
+
float _e214 = a_3;
|
|
485
|
+
param_45 = _e214;
|
|
486
|
+
param_46 = _e211 / _e212;
|
|
487
|
+
float _e215 = scratch(param_45, param_46, uniforms);
|
|
488
|
+
local_1 = _e215;
|
|
489
|
+
} else {
|
|
490
|
+
local_1 = 0.0;
|
|
491
|
+
}
|
|
492
|
+
float _e216 = local_1;
|
|
493
|
+
rough_1 = _e216;
|
|
494
|
+
A = metal::float4(0.0, 0.0, 0.0, 0.0);
|
|
495
|
+
B = metal::float4(0.0, 0.0, 0.0, 0.0);
|
|
496
|
+
float _e217 = swap;
|
|
497
|
+
if (_e217 < 1.0) {
|
|
498
|
+
metal::float2 _e219 = p;
|
|
499
|
+
float _e221 = uniforms.zoom;
|
|
500
|
+
float _e223 = uniforms.progress;
|
|
501
|
+
q_1 = _e219 * (1.0 - (_e221 * metal::smoothstep(0.0, 0.5, _e223)));
|
|
502
|
+
metal::float2 _e228 = q_1;
|
|
503
|
+
metal::float2 _e229 = k_1;
|
|
504
|
+
param_47 = (_e228 / _e229) + metal::float2(0.5);
|
|
505
|
+
metal::float2 _e233 = mirror(param_47);
|
|
506
|
+
param_48 = _e233;
|
|
507
|
+
metal::float4 _e234 = getFromColor(param_48, _from, _sampler);
|
|
508
|
+
A = _e234;
|
|
509
|
+
float _e235 = inked;
|
|
510
|
+
if (_e235 > 0.0) {
|
|
511
|
+
metal::float4 _e237 = A;
|
|
512
|
+
metal::float2 _e238 = q_1;
|
|
513
|
+
param_49 = _e238;
|
|
514
|
+
metal::float2 _e239 = k_1;
|
|
515
|
+
param_50 = _e239;
|
|
516
|
+
param_51 = false;
|
|
517
|
+
float _e240 = localLum(param_49, param_50, param_51, _from, _sampler, _to);
|
|
518
|
+
metal::float4 _e241 = A;
|
|
519
|
+
param_52 = _e241;
|
|
520
|
+
param_53 = _e240;
|
|
521
|
+
float _e242 = rough_1;
|
|
522
|
+
param_54 = _e242;
|
|
523
|
+
metal::float4 _e244 = uniforms.ink;
|
|
524
|
+
param_55 = _e244;
|
|
525
|
+
metal::float4 _e246 = uniforms.paper;
|
|
526
|
+
param_56 = _e246;
|
|
527
|
+
metal::float4 _e247 = drawing(param_52, param_53, param_54, param_55, param_56, uniforms);
|
|
528
|
+
float _e248 = inked;
|
|
529
|
+
A = metal::mix(_e237, _e247, metal::float4(_e248));
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
float _e251 = swap;
|
|
533
|
+
if (_e251 > 0.0) {
|
|
534
|
+
metal::float2 _e253 = p;
|
|
535
|
+
float _e255 = uniforms.zoom;
|
|
536
|
+
float _e257 = uniforms.progress;
|
|
537
|
+
q_2 = _e253 * (1.0 - (_e255 * (1.0 - metal::smoothstep(0.4, 1.0, _e257))));
|
|
538
|
+
metal::float2 _e263 = q_2;
|
|
539
|
+
metal::float2 _e264 = k_1;
|
|
540
|
+
param_57 = (_e263 / _e264) + metal::float2(0.5);
|
|
541
|
+
metal::float2 _e268 = mirror(param_57);
|
|
542
|
+
param_58 = _e268;
|
|
543
|
+
metal::float4 _e269 = getToColor(param_58, _sampler, _to);
|
|
544
|
+
B = _e269;
|
|
545
|
+
float _e270 = color;
|
|
546
|
+
if (_e270 < 1.0) {
|
|
547
|
+
metal::float2 _e272 = q_2;
|
|
548
|
+
param_59 = _e272;
|
|
549
|
+
metal::float2 _e273 = k_1;
|
|
550
|
+
param_60 = _e273;
|
|
551
|
+
param_61 = true;
|
|
552
|
+
float _e274 = localLum(param_59, param_60, param_61, _from, _sampler, _to);
|
|
553
|
+
metal::float4 _e275 = B;
|
|
554
|
+
param_62 = _e275;
|
|
555
|
+
param_63 = _e274;
|
|
556
|
+
float _e276 = rough_1;
|
|
557
|
+
param_64 = _e276;
|
|
558
|
+
metal::float4 _e278 = uniforms.accent;
|
|
559
|
+
param_65 = _e278;
|
|
560
|
+
metal::float4 _e280 = uniforms.paper;
|
|
561
|
+
param_66 = _e280;
|
|
562
|
+
metal::float4 _e281 = drawing(param_62, param_63, param_64, param_65, param_66, uniforms);
|
|
563
|
+
metal::float4 _e282 = B;
|
|
564
|
+
float _e283 = color;
|
|
565
|
+
B = metal::mix(_e281, _e282, metal::float4(_e283));
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
metal::float4 _e286 = A;
|
|
569
|
+
float _e289 = A[3u];
|
|
570
|
+
metal::float3 _e290 = _e286.xyz * _e289;
|
|
571
|
+
float _e292 = A[3u];
|
|
572
|
+
metal::float4 _e297 = B;
|
|
573
|
+
float _e300 = B[3u];
|
|
574
|
+
metal::float3 _e301 = _e297.xyz * _e300;
|
|
575
|
+
float _e303 = B[3u];
|
|
576
|
+
float _e308 = swap;
|
|
577
|
+
col = metal::mix(metal::float4(_e290.x, _e290.y, _e290.z, _e292), metal::float4(_e301.x, _e301.y, _e301.z, _e303), metal::float4(_e308));
|
|
578
|
+
float _e312 = col[3u];
|
|
579
|
+
if (_e312 > 0.0) {
|
|
580
|
+
metal::float4 _e314 = col;
|
|
581
|
+
float _e317 = col[3u];
|
|
582
|
+
metal::float3 _e319 = _e314.xyz / metal::float3(_e317);
|
|
583
|
+
float _e321 = col[3u];
|
|
584
|
+
local_2 = metal::float4(_e319.x, _e319.y, _e319.z, _e321);
|
|
585
|
+
} else {
|
|
586
|
+
local_2 = metal::float4(0.0, 0.0, 0.0, 0.0);
|
|
587
|
+
}
|
|
588
|
+
metal::float4 _e326 = local_2;
|
|
589
|
+
return _e326;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
void main_1(
|
|
593
|
+
metal::texture2d<float, metal::access::sample> _from,
|
|
594
|
+
metal::sampler _sampler,
|
|
595
|
+
metal::texture2d<float, metal::access::sample> _to,
|
|
596
|
+
constant Uniforms& uniforms,
|
|
597
|
+
thread metal::float4& _fragColor,
|
|
598
|
+
thread metal::float2& _uv_1
|
|
599
|
+
) {
|
|
600
|
+
metal::float2 param_67 = {};
|
|
601
|
+
metal::float2 _e75 = _uv_1;
|
|
602
|
+
param_67 = _e75;
|
|
603
|
+
metal::float4 _e76 = transition(param_67, _from, _sampler, _to, uniforms);
|
|
604
|
+
_fragColor = _e76;
|
|
605
|
+
return;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
struct main_Input {
|
|
609
|
+
metal::float2 _uv [[user(loc0), center_perspective]];
|
|
610
|
+
};
|
|
611
|
+
struct main_Output {
|
|
612
|
+
metal::float4 member [[color(0)]];
|
|
613
|
+
};
|
|
614
|
+
fragment main_Output main_(
|
|
615
|
+
main_Input varyings [[stage_in]]
|
|
616
|
+
, metal::texture2d<float, metal::access::sample> _from [[texture(0)]]
|
|
617
|
+
, metal::sampler _sampler [[sampler(0)]]
|
|
618
|
+
, metal::texture2d<float, metal::access::sample> _to [[texture(1)]]
|
|
619
|
+
, constant Uniforms& uniforms [[buffer(0)]]
|
|
620
|
+
) {
|
|
621
|
+
metal::float4 _fragColor = {};
|
|
622
|
+
metal::float2 _uv_1 = {};
|
|
623
|
+
const auto _uv = varyings._uv;
|
|
624
|
+
_uv_1 = _uv;
|
|
625
|
+
main_1(_from, _sampler, _to, uniforms, _fragColor, _uv_1);
|
|
626
|
+
metal::float4 _e3 = _fragColor;
|
|
627
|
+
return main_Output { _e3 };
|
|
628
|
+
}
|