shaders 3.0.448 → 3.0.450
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/dist/cli.js +2 -2
- package/dist/core/{AngularBlur-xU811GPM.js → AngularBlur-4jt7bNoF.js} +15 -15
- package/dist/core/{Arc-DYvFxtGy.js → Arc-DXIfbBgd.js} +13 -12
- package/dist/core/{Ascii-ChE4BP7J.js → Ascii-GDof03Ca.js} +51 -53
- package/dist/core/{Aurora-BThE6pbb.js → Aurora-CS4vewUW.js} +63 -68
- package/dist/core/{BarShift-DdjkPSk3.js → BarShift-BtnYLQ0B.js} +31 -32
- package/dist/core/{BarnDoors-B_kxVuec.js → BarnDoors-Dw9K-amf.js} +21 -22
- package/dist/core/{Beam-C7zPHuIU.js → Beam-D_cyaMjJ.js} +32 -39
- package/dist/core/{Bend-CFcEjifF.js → Bend-CSs5UIh8.js} +27 -28
- package/dist/core/{Blob-CgUolAhz.js → Blob-h25zA5WH.js} +54 -60
- package/dist/core/{BlockDissolve-CLSxXB4e.js → BlockDissolve-CKN_KvLP.js} +21 -20
- package/dist/core/{BlockNoise-BgEJOicU.js → BlockNoise-DhKyd_F7.js} +16 -14
- package/dist/core/{BlueNoise-BqMtBLxM.js → BlueNoise-Auhzq4x5.js} +12 -10
- package/dist/core/{Blur-Xaa6jVPT.js → Blur-CcxMqYsu.js} +27 -27
- package/dist/core/{Boids-B8QUNxRL.js → Boids-D51U46GF.js} +916 -787
- package/dist/core/{BokehBlur-B5fql96U.js → BokehBlur-Cfaqbh3I.js} +104 -104
- package/dist/core/{BrickPattern-EAD5HD4e.js → BrickPattern-tASwilX0.js} +34 -38
- package/dist/core/{BrightnessContrast-mbv32DkA.js → BrightnessContrast-ZCKqJW7i.js} +9 -10
- package/dist/core/{BrushedMetal-B10fDdGt.js → BrushedMetal-B6gSVB28.js} +81 -84
- package/dist/core/{Bulge-C1Pq4DHk.js → Bulge-dCYtWP4S.js} +19 -19
- package/dist/core/{CRTScreen-Ctx0Mxtb.js → CRTScreen-CVY1lOGL.js} +35 -37
- package/dist/core/{CarbonFiber-DSSARe6R.js → CarbonFiber-Do9EONKv.js} +81 -84
- package/dist/core/{Chalkboard-C7srb54u.js → Chalkboard-0hyyGnYl.js} +59 -61
- package/dist/core/{ChannelBlur-DE3T4-pj.js → ChannelBlur-DcZKCKXi.js} +13 -15
- package/dist/core/{CheckerWipe-Dp49-iaT.js → CheckerWipe-BIE62tJ1.js} +23 -23
- package/dist/core/{Checkerboard-oVWtS0rz.js → Checkerboard-CRnfu63u.js} +31 -31
- package/dist/core/{Chevron-CCD5JTRA.js → Chevron-Ld_v4z9T.js} +20 -20
- package/dist/core/{ChromaFlow-BiE9Mes0.js → ChromaFlow-CTWeauIr.js} +32 -33
- package/dist/core/{ChromaticAberration-XEasUrD3.js → ChromaticAberration-CxuOb68m.js} +13 -13
- package/dist/core/{Circle-CvQ9duDU.js → Circle-XP1B5rsN.js} +14 -13
- package/dist/core/{ColorWheel-CXvfWAjN.js → ColorWheel-CFU_OmOW.js} +30 -34
- package/dist/core/{CompressionArtifacts-BDaP7XI6.js → CompressionArtifacts-Bc9xTdQP.js} +64 -66
- package/dist/core/{ConcentricSpin-D06hFXEb.js → ConcentricSpin-DTJytpAk.js} +39 -41
- package/dist/core/{ConicGradient-Cg6vy3gl.js → ConicGradient-C-4uDmQj.js} +17 -18
- package/dist/core/{ContourLines-Cg2Dlmcr.js → ContourLines-C8p6f-1y.js} +29 -30
- package/dist/core/{CornerPin-wtqiMUCa.js → CornerPin-CB92kX10.js} +55 -57
- package/dist/core/{Crescent-Co__JqEE.js → Crescent-Dk4nlG8T.js} +14 -13
- package/dist/core/{Cross-CFytbdrZ.js → Cross-DsnI1U8g.js} +14 -13
- package/dist/core/{Crystal-U7VqhbHy.js → Crystal-CR_sG2y7.js} +143 -152
- package/dist/core/{CurlNoise-BXWYh1Qi.js → CurlNoise-DJ27ih0F.js} +16 -14
- package/dist/core/{CursorRipples-APbH7SVR.js → CursorRipples-CuO3sZga.js} +59 -58
- package/dist/core/{CursorTrail-D5Fj0wGp.js → CursorTrail-d4xx4QpM.js} +72 -71
- package/dist/core/{DataMosh-CWRLpjU3.js → DataMosh-BhvE-2yC.js} +71 -73
- package/dist/core/{DiamondGradient-C_2VoEiQ.js → DiamondGradient-CtOVKrYf.js} +23 -25
- package/dist/core/{DiamondWipe-BkdNODD1.js → DiamondWipe-D-yiQBVj.js} +22 -22
- package/dist/core/{DiffuseBlur-Dl7S4KBW.js → DiffuseBlur-BDf-Czxz.js} +11 -12
- package/dist/core/{DisplacementMap-lv-qoLem.js → DisplacementMap-B_jf_2lj.js} +26 -26
- package/dist/core/{Dither-B33J_gJU.js → Dither-D3P6EJU8.js} +116 -119
- package/dist/core/{DotGrid-DaOhiRaL.js → DotGrid-BnSVhJlh.js} +37 -39
- package/dist/core/{DropShadow-C5Z2Rs2C.js → DropShadow-BSKVH3n3.js} +37 -37
- package/dist/core/{Duotone-x4cywJbU.js → Duotone-DfjYuK2u.js} +7 -7
- package/dist/core/{Ellipse-CrQ1XYjx.js → Ellipse-D7_1QKaa.js} +13 -12
- package/dist/core/{Emboss-DNwO5JcE.js → Emboss-ZiPslqzl.js} +76 -78
- package/dist/core/{Engraving-FsaRQiyI.js → Engraving-DsfkKajz.js} +57 -59
- package/dist/core/{ErosionNoise-CloHpdFT.js → ErosionNoise-SELArv9H.js} +13 -11
- package/dist/core/{Exposure-mO6KjYvc.js → Exposure-A7WlTOti.js} +4 -5
- package/dist/core/{FallingLines-D_1wHUkx.js → FallingLines-9PRMb_Ou.js} +40 -42
- package/dist/core/{FilmGrain-DDhrsw94.js → FilmGrain-SXzVDesw.js} +17 -18
- package/dist/core/{FilmStock-BaP2aTLu.js → FilmStock-RK4fk4m0.js} +74 -74
- package/dist/core/{Flip-DYuqyJva.js → Flip-DjoNWG4v.js} +10 -12
- package/dist/core/{FloatingParticles-DJwNpHtZ.js → FloatingParticles-D7vUF5g7.js} +637 -451
- package/dist/core/{FlowField-D4iGiDic.js → FlowField-tHrXhd1b.js} +24 -23
- package/dist/core/{Flower-D0MqoayS.js → Flower-BfehbmmG.js} +14 -13
- package/dist/core/{FlowingGradient-9Zu0Pu4a.js → FlowingGradient-BTKjkx5F.js} +38 -39
- package/dist/core/{FlutedGlass-C_clmShu.js → FlutedGlass-uFT7iy_9.js} +43 -43
- package/dist/core/{Fog-C_kY5pWB.js → Fog-Cu1CMATa.js} +172 -171
- package/dist/core/{Form3D-D4aXZGoJ.js → Form3D-D0ji-MeC.js} +259 -267
- package/dist/core/{FractalNoise-mMVLGmIv.js → FractalNoise-D9HYiOdr.js} +30 -28
- package/dist/core/{Frost-M53tZlcf.js → Frost-DQZZxdTk.js} +70 -73
- package/dist/core/{GaborNoise-BhXywN1d.js → GaborNoise-D7BP0K4g.js} +16 -14
- package/dist/core/{Glass-B9D_52op.js → Glass-CzCVnGn-.js} +6 -4
- package/dist/core/{GlassTiles-DIkGYgVE.js → GlassTiles-DJzPPqwz.js} +23 -26
- package/dist/core/{Glitch-CUOJt5VX.js → Glitch-D1Dx8__X.js} +84 -72
- package/dist/core/{Glow-D5AdnLvU.js → Glow-Bd9_o_Kv.js} +76 -77
- package/dist/core/{Godrays-BeQCWVw7.js → Godrays-DRPRWGPm.js} +52 -56
- package/dist/core/{Goo-C0_0QYne.js → Goo-28A_pNBg.js} +64 -65
- package/dist/core/{GradientMap-DOVK05_a.js → GradientMap-D8dv-1AX.js} +47 -50
- package/dist/core/{Grayscale-Uv_6LYA9.js → Grayscale-BlVXBVwW.js} +6 -6
- package/dist/core/{Grid-Dbp4DoXZ.js → Grid-D9vlHvs1.js} +46 -48
- package/dist/core/{GridDistortion-D_21zIrm.js → GridDistortion-BpqDvqj6.js} +63 -62
- package/dist/core/{Group-DXiB5Qrx.js → Group-bwQnJRec.js} +1 -1
- package/dist/core/{HTMLInCanvas-xXPLTYIv.js → HTMLInCanvas-gCf64ozE.js} +1 -1
- package/dist/core/{Halftone-DszIQsyx.js → Halftone-B_WouxiP.js} +59 -62
- package/dist/core/{Heart-COpnSJPD.js → Heart-Bmt2TLNz.js} +12 -11
- package/dist/core/{Heatmap-CMm8SD-P.js → Heatmap-Ruef741_.js} +57 -55
- package/dist/core/{HexGrid-B6wNW-45.js → HexGrid-By9k0YuI.js} +32 -35
- package/dist/core/{Hologram-XejRN51V.js → Hologram-Cf25ONOE.js} +62 -66
- package/dist/core/{Holographic-D1G_Ou1y.js → Holographic-C9RzYykt.js} +58 -61
- package/dist/core/{HueShift-BCDgYfJs.js → HueShift-V3gQVuIo.js} +7 -10
- package/dist/core/{ImageTexture-BE2Jlkg6.js → ImageTexture-DAUR2N5Q.js} +3 -2
- package/dist/core/{InkFlow-DJaJqula.js → InkFlow-DlP1gmr4.js} +156 -156
- package/dist/core/{Invert-DDmITZjt.js → Invert-K648khvD.js} +4 -4
- package/dist/core/{IrisWipe-BFs5DDSa.js → IrisWipe-Clkd_5CA.js} +20 -23
- package/dist/core/{IsometricCubes-ChKqYTIw.js → IsometricCubes-CzfAwpQ5.js} +37 -42
- package/dist/core/{Kaleidoscope-C8_-tC6T.js → Kaleidoscope-B9k6HkNn.js} +21 -21
- package/dist/core/{KeyFrames-xR9ZzHKj.js → KeyFrames-DX6JFhsy.js} +130 -129
- package/dist/core/{LensFlare-DHGNEDIX.js → LensFlare-G73cvrIG.js} +82 -84
- package/dist/core/{LightEdge-DYfhB3-7.js → LightEdge-D3i7HUR9.js} +106 -107
- package/dist/core/{LightLeak-CYjuMURe.js → LightLeak-B8yGreP-.js} +58 -59
- package/dist/core/{LinearBlur-CV7gKYHV.js → LinearBlur-BEzNPe0e.js} +14 -14
- package/dist/core/{LinearGradient-DAzw65UB.js → LinearGradient-XjXyaoii.js} +36 -37
- package/dist/core/{LinearWipe-DoDZF7y0.js → LinearWipe-Doj9aS5n.js} +20 -21
- package/dist/core/{LiquidMetal-C9OxRyE4.js → LiquidMetal-CWV_RQip.js} +70 -73
- package/dist/core/{Liquify-gNsuR7aA.js → Liquify-DWrgFruC.js} +67 -66
- package/dist/core/{MagneticFilings-CQ7zHEow.js → MagneticFilings-Co0V07-1.js} +996 -756
- package/dist/core/{Marble-BSSMSrv8.js → Marble-D13mDBvL.js} +22 -21
- package/dist/core/{Mirror-BZAUA2jk.js → Mirror-DvukM_eG.js} +18 -18
- package/dist/core/{MultiPointGradient-HSfAYB-u.js → MultiPointGradient-CyK_Ty9a.js} +30 -31
- package/dist/core/{Neon-D9d6Osal.js → Neon-DD8qY6H9.js} +102 -113
- package/dist/core/{NoiseDissolve-CnELvUG_.js → NoiseDissolve-CeX3VO8J.js} +23 -22
- package/dist/core/{ObjectTracker-COh35yTh.js → ObjectTracker-BWo8H1kh.js} +3 -3
- package/dist/core/{PagePeel-B6sjmvZ1.js → PagePeel-BL5IeBeD.js} +54 -58
- package/dist/core/{Paper-LfukraJk.js → Paper-BAq9MqtG.js} +16 -15
- package/dist/core/{Parallelogram-DBi0yAG3.js → Parallelogram-DYzFG9ci.js} +14 -13
- package/dist/core/{ParticleField-q7COY9YT.js → ParticleField-Bl4uztO7.js} +1489 -1340
- package/dist/core/{ParticleFlow-DiHWbIon.js → ParticleFlow-RPxLP8HC.js} +1422 -1149
- package/dist/core/{Particles-BFsKUAPx.js → Particles-BDEX4Fw2.js} +866 -656
- package/dist/core/{PerlinNoise-KV2GG0ts.js → PerlinNoise-BtXlaEd8.js} +16 -14
- package/dist/core/{Perspective-CJSrtEy5.js → Perspective-CdU5nAEn.js} +23 -25
- package/dist/core/{PixelSort-WD-Y6ZFu.js → PixelSort-C7TX1ClH.js} +109 -109
- package/dist/core/{PixelThrow-CnOXm7Hv.js → PixelThrow-DpKEZPMK.js} +35 -35
- package/dist/core/{Pixelate-XJI9f1oT.js → Pixelate-C2OQUtqr.js} +19 -19
- package/dist/core/{Plasma-C0dnSaw1.js → Plasma-DLq9HroF.js} +33 -32
- package/dist/core/{Plastic-DBv_6A7q.js → Plastic-C2hiOaXw.js} +82 -84
- package/dist/core/{PolarCoordinates-B8Cq2bzT.js → PolarCoordinates-Bumv-Hi3.js} +16 -18
- package/dist/core/{Polygon-ORM35JKg.js → Polygon-DOpR58g4.js} +16 -17
- package/dist/core/{Posterize-Dn-Vv2S1.js → Posterize-CVNOkDme.js} +5 -8
- package/dist/core/{Prism-CYLsGJHY.js → Prism-CCQ1BsBL.js} +36 -40
- package/dist/core/{ProgressiveBlur-BXUumCm5.js → ProgressiveBlur-Cprr1XSE.js} +63 -65
- package/dist/core/{RadialGradient-j6T56q1W.js → RadialGradient-CsmCSySC.js} +22 -23
- package/dist/core/{RadialWipe-Bz19qvls.js → RadialWipe-BAnsqol4.js} +25 -25
- package/dist/core/{RandomBars-3RlhwDYG.js → RandomBars-DdhtxO8o.js} +23 -23
- package/dist/core/{ReactionDiffusion-DdXavIVw.js → ReactionDiffusion-Bih4xEtV.js} +173 -175
- package/dist/core/{RectangularCoordinates-p3250IKV.js → RectangularCoordinates-CKKA2oY1.js} +14 -14
- package/dist/core/{ReflectivePlane-BOl9AEoO.js → ReflectivePlane-u3Tje37M.js} +35 -37
- package/dist/core/{Repeater-BMXmN95R.js → Repeater-C-agsqBS.js} +2 -2
- package/dist/core/{Ring-DKcROHDs.js → Ring-Cj7bR89h.js} +15 -14
- package/dist/core/{RippleWipe-QH8D0Y-2.js → RippleWipe-VL1MMd5o.js} +24 -27
- package/dist/core/{Ripples-8fFdo6aq.js → Ripples-B88TeopS.js} +18 -21
- package/dist/core/{RoundedRect-Cr76tP9o.js → RoundedRect-jn8_QLrT.js} +14 -13
- package/dist/core/{Saturation-Dqifs1x7.js → Saturation-dCNIhHq2.js} +8 -9
- package/dist/core/{Scratches-sa8JU4Eb.js → Scratches-Dz_1Ptk0.js} +16 -14
- package/dist/core/{Sharpness-IRuPd9nn.js → Sharpness-Bxq4YiRL.js} +21 -22
- package/dist/core/{Shatter-BYaxMvyd.js → Shatter-DsuYUr-1.js} +73 -72
- package/dist/core/{SimplexNoise-C2vmRzgy.js → SimplexNoise-CvalBPNF.js} +19 -17
- package/dist/core/{SineWave-BGAJyGFr.js → SineWave-XPK5BsPB.js} +20 -20
- package/dist/core/{SliceWipe-BOcCk5Se.js → SliceWipe-gSs_VRwf.js} +19 -19
- package/dist/core/{Smoke-B1twbhQ4.js → Smoke-kzRXFLW9.js} +156 -155
- package/dist/core/{SmokeFill-CAayneM2.js → SmokeFill-DQZeqiwX.js} +233 -231
- package/dist/core/{SmokeFlow-Ug8difAz.js → SmokeFlow-n23YvKoI.js} +143 -142
- package/dist/core/{Solarize-205KKROH.js → Solarize-DINiQSz1.js} +12 -14
- package/dist/core/{SolidColor-B4pj8onb.js → SolidColor-Cu_9b_my.js} +1 -1
- package/dist/core/{Spherize-DUQxwwCL.js → Spherize-BLY2eqBV.js} +31 -37
- package/dist/core/{Spiral-DY1c-N4F.js → Spiral-CWCmvI3m.js} +36 -36
- package/dist/core/{Star-DRxNaHHo.js → Star-9WSeF-vW.js} +14 -13
- package/dist/core/{Stone-CUdcvOWd.js → Stone-CVO2Ey8i.js} +2 -2
- package/dist/core/{Strands-CFxYJMFu.js → Strands-D9Sz1vX9.js} +47 -49
- package/dist/core/{Stretch-DYrVdt8A.js → Stretch-DMT2Y6kN.js} +19 -19
- package/dist/core/{Stripes-BvnoWdwn.js → Stripes-DPVbOQkX.js} +39 -39
- package/dist/core/{StudioBackground-srQGUpfZ.js → StudioBackground-5JgYClrr.js} +67 -68
- package/dist/core/{SunBurst-COsVDZ4e.js → SunBurst-Din5CIAU.js} +18 -20
- package/dist/core/{Surface3D-TsGPzdGm.js → Surface3D-CW2ApEgt.js} +1934 -1528
- package/dist/core/{Swirl-nXMWVY2X.js → Swirl-DrchXPfh.js} +18 -21
- package/dist/core/{Teardrop-Bjtkigk4.js → Teardrop-CDt_XA4d.js} +13 -12
- package/dist/core/{Text-BGdsqRl5.js → Text-o_dubJeo.js} +20 -21
- package/dist/core/{ThinFilm-DhMKI5e2.js → ThinFilm-d7IlUY62.js} +59 -67
- package/dist/core/{TiltShift-BwuYyXB6.js → TiltShift-DJVcMb_M.js} +66 -67
- package/dist/core/{TimeTrail-CE2XumxR.js → TimeTrail-D1Gir7BK.js} +1003 -1647
- package/dist/core/{Tint-BTmcGjEl.js → Tint-Cak_PyOJ.js} +25 -26
- package/dist/core/{Trapezoid-CiZCh8QS.js → Trapezoid-DnFhlKCD.js} +14 -13
- package/dist/core/{TriangularGrid-BnQOEljy.js → TriangularGrid-BE9CgVlb.js} +34 -36
- package/dist/core/{Tritone-Ta084wlF.js → Tritone-mqU9b4YZ.js} +7 -10
- package/dist/core/{Truchet-BxCh_IIp.js → Truchet-yLdaw6z4.js} +31 -33
- package/dist/core/{Twirl-Cw4jm59Q.js → Twirl-SA6uh8pI.js} +16 -16
- package/dist/core/{VHS-Nwk0E-tf.js → VHS-Ch-bVeit.js} +68 -69
- package/dist/core/{VenetianBlinds-BZ0sS97G.js → VenetianBlinds-CboEoPIZ.js} +22 -23
- package/dist/core/{Vesica-Cf1KiSzK.js → Vesica-DmJWzk7E.js} +13 -12
- package/dist/core/{Vibrance-qWGvLkrW.js → Vibrance-7rW_G3qT.js} +7 -8
- package/dist/core/{VideoTexture-48ylVDvN.js → VideoTexture-Ctk5_1F8.js} +34 -39
- package/dist/core/{Vignette-CK_Li7v2.js → Vignette-DXtlR5LT.js} +20 -22
- package/dist/core/{Voronoi-DMYFDwIS.js → Voronoi-B0ZrQ6QO.js} +33 -37
- package/dist/core/{Water-D74wbHmn.js → Water-DfwGqSnM.js} +101 -108
- package/dist/core/{Watercolor-zo8-4Vqx.js → Watercolor-BAShYSu7.js} +305 -389
- package/dist/core/{WaveDistortion-BLrvGOzF.js → WaveDistortion-Cj4QBBKm.js} +80 -82
- package/dist/core/{WaveletNoise-a5OpO8-D.js → WaveletNoise-DYiU_ziD.js} +16 -14
- package/dist/core/{Weave-D1D3kuUg.js → Weave-DVefdB9i.js} +28 -31
- package/dist/core/{WebcamTexture-pBETyQYG.js → WebcamTexture-BO9jNxcP.js} +7 -7
- package/dist/core/{Wool-CMnWPdy9.js → Wool-D304TmpD.js} +2 -2
- package/dist/core/{WorleyNoise-BAEo0duh.js → WorleyNoise-B5FBTklZ.js} +69 -70
- package/dist/core/{ZoomBlur-CnBNmcfx.js → ZoomBlur-DxySopLs.js} +12 -12
- package/dist/core/agents-c-JjGH1b.js +1440 -0
- package/dist/core/blur-DKmdsW6d.js +2247 -0
- package/dist/core/compute-BoeIXi0l.js +31 -0
- package/dist/core/dataEncoding-CEmpiitu.js +24 -0
- package/dist/core/device-BODv_4aH.js +10 -0
- package/dist/core/edges-BZUKQxSE.js +29857 -0
- package/dist/core/{glass-sOqjtPJD.js → glass-BVqgjSPg.js} +164 -172
- package/dist/core/gpu/index.d.ts.map +1 -1
- package/dist/core/gpu/kit/agents.d.ts +17 -1
- package/dist/core/gpu/kit/agents.d.ts.map +1 -1
- package/dist/core/gpu/passManager.d.ts +6 -2
- package/dist/core/gpu/passManager.d.ts.map +1 -1
- package/dist/core/gpu/textures.d.ts +2 -2
- package/dist/core/gpu/textures.d.ts.map +1 -1
- package/dist/core/index.js +324 -226
- package/dist/core/media-Ds6MRfGR.js +757 -0
- package/dist/core/noise-Cq0KUOSC.js +12033 -0
- package/dist/core/noiseColor-CQyzqpVZ.js +103 -0
- package/dist/core/{noiseColor-CRpf22bk.js → noiseColor-DjCUZ_8u.js} +2 -2
- package/dist/core/noiseStylize-fKVcJbGK.js +359 -0
- package/dist/core/porters-DogLzpKT.js +991 -0
- package/dist/core/presetRenderer.d.ts.map +1 -1
- package/dist/core/registry.js +208 -199
- package/dist/core/sdf-o99ONcMJ.js +5174 -0
- package/dist/core/shaderRegistry-BSrnuqx-.js +425 -0
- package/dist/core/shaders/AngularBlur/index.js +5 -4
- package/dist/core/shaders/Arc/index.js +7 -4
- package/dist/core/shaders/Ascii/index.js +5 -4
- package/dist/core/shaders/Aurora/index.js +6 -4
- package/dist/core/shaders/BarShift/index.js +5 -4
- package/dist/core/shaders/BarnDoors/index.js +5 -4
- package/dist/core/shaders/Beam/index.js +5 -4
- package/dist/core/shaders/Bend/index.js +5 -4
- package/dist/core/shaders/Blob/index.js +5 -4
- package/dist/core/shaders/BlockDissolve/index.js +6 -4
- package/dist/core/shaders/BlockNoise/index.js +8 -5
- package/dist/core/shaders/BlueNoise/index.js +8 -5
- package/dist/core/shaders/Blur/index.js +6 -4
- package/dist/core/shaders/Boids/index.d.ts +3 -3
- package/dist/core/shaders/Boids/index.d.ts.map +1 -1
- package/dist/core/shaders/Boids/index.js +9 -5
- package/dist/core/shaders/BokehBlur/index.js +6 -4
- package/dist/core/shaders/BrickPattern/index.js +5 -4
- package/dist/core/shaders/BrightnessContrast/index.js +5 -4
- package/dist/core/shaders/BrushedMetal/index.js +11 -6
- package/dist/core/shaders/Bulge/index.js +5 -4
- package/dist/core/shaders/CRTScreen/index.js +5 -4
- package/dist/core/shaders/CarbonFiber/index.js +11 -6
- package/dist/core/shaders/Chalkboard/index.js +5 -4
- package/dist/core/shaders/ChannelBlur/index.js +6 -4
- package/dist/core/shaders/CheckerWipe/index.js +5 -4
- package/dist/core/shaders/Checkerboard/index.js +5 -4
- package/dist/core/shaders/Chevron/index.js +5 -4
- package/dist/core/shaders/ChromaFlow/index.js +6 -4
- package/dist/core/shaders/ChromaticAberration/index.js +5 -4
- package/dist/core/shaders/Circle/index.js +7 -4
- package/dist/core/shaders/ColorWheel/index.js +5 -4
- package/dist/core/shaders/CompressionArtifacts/index.js +5 -4
- package/dist/core/shaders/ConcentricSpin/index.js +5 -4
- package/dist/core/shaders/ConicGradient/index.js +5 -4
- package/dist/core/shaders/ContourLines/index.js +5 -4
- package/dist/core/shaders/CornerPin/index.js +5 -4
- package/dist/core/shaders/Crescent/index.js +7 -4
- package/dist/core/shaders/Cross/index.js +7 -4
- package/dist/core/shaders/Crystal/index.js +11 -6
- package/dist/core/shaders/CurlNoise/index.js +8 -5
- package/dist/core/shaders/CursorRipples/index.js +5 -4
- package/dist/core/shaders/CursorTrail/index.js +5 -4
- package/dist/core/shaders/DataMosh/index.js +5 -4
- package/dist/core/shaders/DiamondGradient/index.js +5 -4
- package/dist/core/shaders/DiamondWipe/index.js +5 -4
- package/dist/core/shaders/DiffuseBlur/index.js +5 -4
- package/dist/core/shaders/DisplacementMap/index.js +5 -4
- package/dist/core/shaders/Dither/index.js +5 -4
- package/dist/core/shaders/DotGrid/index.js +5 -4
- package/dist/core/shaders/DropShadow/index.js +5 -4
- package/dist/core/shaders/Duotone/index.js +5 -4
- package/dist/core/shaders/Ellipse/index.js +7 -4
- package/dist/core/shaders/Emboss/index.js +10 -6
- package/dist/core/shaders/Engraving/index.js +6 -4
- package/dist/core/shaders/ErosionNoise/index.js +8 -5
- package/dist/core/shaders/Exposure/index.js +5 -4
- package/dist/core/shaders/FallingLines/index.js +5 -4
- package/dist/core/shaders/FilmGrain/index.js +5 -4
- package/dist/core/shaders/FilmStock/index.js +6 -4
- package/dist/core/shaders/Flip/index.js +5 -4
- package/dist/core/shaders/FloatingParticles/index.d.ts +9 -4
- package/dist/core/shaders/FloatingParticles/index.d.ts.map +1 -1
- package/dist/core/shaders/FloatingParticles/index.js +9 -5
- package/dist/core/shaders/FlowField/index.js +6 -4
- package/dist/core/shaders/Flower/index.js +7 -4
- package/dist/core/shaders/FlowingGradient/index.js +6 -4
- package/dist/core/shaders/FlutedGlass/index.js +5 -4
- package/dist/core/shaders/Fog/index.js +5 -4
- package/dist/core/shaders/Form3D/index.js +5 -4
- package/dist/core/shaders/FractalNoise/index.js +7 -4
- package/dist/core/shaders/Frost/index.js +11 -6
- package/dist/core/shaders/GaborNoise/index.js +8 -5
- package/dist/core/shaders/Glass/index.js +11 -6
- package/dist/core/shaders/GlassTiles/index.js +5 -4
- package/dist/core/shaders/Glitch/index.d.ts +1 -1
- package/dist/core/shaders/Glitch/index.d.ts.map +1 -1
- package/dist/core/shaders/Glitch/index.js +5 -4
- package/dist/core/shaders/Glow/index.js +6 -4
- package/dist/core/shaders/Godrays/index.js +5 -4
- package/dist/core/shaders/Goo/index.js +10 -6
- package/dist/core/shaders/GradientMap/index.js +5 -4
- package/dist/core/shaders/Grayscale/index.js +5 -4
- package/dist/core/shaders/Grid/index.js +5 -4
- package/dist/core/shaders/GridDistortion/index.js +5 -4
- package/dist/core/shaders/Group/index.js +5 -4
- package/dist/core/shaders/HTMLInCanvas/index.js +5 -4
- package/dist/core/shaders/Halftone/index.js +5 -4
- package/dist/core/shaders/Heart/index.js +7 -4
- package/dist/core/shaders/Heatmap/index.js +11 -6
- package/dist/core/shaders/HexGrid/index.js +5 -4
- package/dist/core/shaders/Hologram/index.js +11 -6
- package/dist/core/shaders/Holographic/index.js +11 -6
- package/dist/core/shaders/HueShift/index.js +5 -4
- package/dist/core/shaders/ImageTexture/index.js +7 -5
- package/dist/core/shaders/InkFlow/index.js +5 -4
- package/dist/core/shaders/Invert/index.js +5 -4
- package/dist/core/shaders/IrisWipe/index.js +5 -4
- package/dist/core/shaders/IsometricCubes/index.js +5 -4
- package/dist/core/shaders/Kaleidoscope/index.js +5 -4
- package/dist/core/shaders/KeyFrames/index.js +5 -4
- package/dist/core/shaders/LensFlare/index.js +5 -4
- package/dist/core/shaders/LightEdge/index.js +11 -6
- package/dist/core/shaders/LightLeak/index.js +6 -4
- package/dist/core/shaders/LinearBlur/index.js +5 -4
- package/dist/core/shaders/LinearGradient/index.js +5 -4
- package/dist/core/shaders/LinearWipe/index.js +5 -4
- package/dist/core/shaders/LiquidMetal/index.js +11 -6
- package/dist/core/shaders/Liquify/index.js +5 -4
- package/dist/core/shaders/MagneticFilings/index.d.ts +0 -2
- package/dist/core/shaders/MagneticFilings/index.d.ts.map +1 -1
- package/dist/core/shaders/MagneticFilings/index.js +9 -5
- package/dist/core/shaders/Marble/index.js +6 -4
- package/dist/core/shaders/Mirror/index.js +5 -4
- package/dist/core/shaders/MultiPointGradient/index.js +5 -4
- package/dist/core/shaders/Neon/index.js +9 -5
- package/dist/core/shaders/NoiseDissolve/index.js +6 -4
- package/dist/core/shaders/ObjectTracker/index.js +6 -5
- package/dist/core/shaders/PagePeel/index.js +5 -4
- package/dist/core/shaders/Paper/index.js +6 -4
- package/dist/core/shaders/Parallelogram/index.js +7 -4
- package/dist/core/shaders/ParticleField/index.d.ts +10 -5
- package/dist/core/shaders/ParticleField/index.d.ts.map +1 -1
- package/dist/core/shaders/ParticleField/index.js +9 -5
- package/dist/core/shaders/ParticleFlow/index.d.ts +10 -4
- package/dist/core/shaders/ParticleFlow/index.d.ts.map +1 -1
- package/dist/core/shaders/ParticleFlow/index.js +9 -5
- package/dist/core/shaders/Particles/index.d.ts +4 -3
- package/dist/core/shaders/Particles/index.d.ts.map +1 -1
- package/dist/core/shaders/Particles/index.js +12 -6
- package/dist/core/shaders/PerlinNoise/index.js +8 -5
- package/dist/core/shaders/Perspective/index.js +5 -4
- package/dist/core/shaders/PixelSort/index.js +5 -4
- package/dist/core/shaders/PixelThrow/index.js +6 -4
- package/dist/core/shaders/Pixelate/index.js +5 -4
- package/dist/core/shaders/Plasma/index.js +6 -4
- package/dist/core/shaders/Plastic/index.js +11 -6
- package/dist/core/shaders/PolarCoordinates/index.js +5 -4
- package/dist/core/shaders/Polygon/index.js +7 -4
- package/dist/core/shaders/Posterize/index.js +5 -4
- package/dist/core/shaders/Prism/index.js +5 -4
- package/dist/core/shaders/ProgressiveBlur/index.js +6 -4
- package/dist/core/shaders/RadialGradient/index.js +5 -4
- package/dist/core/shaders/RadialWipe/index.js +5 -4
- package/dist/core/shaders/RandomBars/index.js +6 -4
- package/dist/core/shaders/ReactionDiffusion/index.js +5 -4
- package/dist/core/shaders/RectangularCoordinates/index.js +5 -4
- package/dist/core/shaders/ReflectivePlane/index.js +6 -4
- package/dist/core/shaders/Repeater/index.js +5 -4
- package/dist/core/shaders/Ring/index.js +7 -4
- package/dist/core/shaders/RippleWipe/index.js +5 -4
- package/dist/core/shaders/Ripples/index.js +5 -4
- package/dist/core/shaders/RoundedRect/index.js +7 -4
- package/dist/core/shaders/Saturation/index.js +5 -4
- package/dist/core/shaders/Scratches/index.js +8 -5
- package/dist/core/shaders/Sharpness/index.js +5 -4
- package/dist/core/shaders/Shatter/index.js +6 -4
- package/dist/core/shaders/SimplexNoise/index.js +7 -4
- package/dist/core/shaders/SineWave/index.js +5 -4
- package/dist/core/shaders/SliceWipe/index.js +5 -4
- package/dist/core/shaders/Smoke/index.js +5 -4
- package/dist/core/shaders/SmokeFill/index.js +10 -6
- package/dist/core/shaders/SmokeFlow/index.js +5 -4
- package/dist/core/shaders/Solarize/index.js +5 -4
- package/dist/core/shaders/SolidColor/index.js +2 -2
- package/dist/core/shaders/Spherize/index.js +5 -4
- package/dist/core/shaders/Spiral/index.js +5 -4
- package/dist/core/shaders/Star/index.js +7 -4
- package/dist/core/shaders/Stone/index.js +4 -3
- package/dist/core/shaders/Strands/index.js +5 -4
- package/dist/core/shaders/Stretch/index.js +5 -4
- package/dist/core/shaders/Stripes/index.js +5 -4
- package/dist/core/shaders/StudioBackground/index.js +5 -4
- package/dist/core/shaders/SunBurst/index.js +5 -4
- package/dist/core/shaders/Surface3D/index.d.ts +4 -2
- package/dist/core/shaders/Surface3D/index.d.ts.map +1 -1
- package/dist/core/shaders/Surface3D/index.js +7 -4
- package/dist/core/shaders/Swirl/index.js +5 -4
- package/dist/core/shaders/Teardrop/index.js +7 -4
- package/dist/core/shaders/Text/index.js +6 -5
- package/dist/core/shaders/ThinFilm/index.js +9 -5
- package/dist/core/shaders/TiltShift/index.js +6 -4
- package/dist/core/shaders/TimeTrail/index.d.ts +47 -1
- package/dist/core/shaders/TimeTrail/index.d.ts.map +1 -1
- package/dist/core/shaders/TimeTrail/index.js +7 -5
- package/dist/core/shaders/Tint/index.js +5 -4
- package/dist/core/shaders/Trapezoid/index.js +7 -4
- package/dist/core/shaders/TriangularGrid/index.js +5 -4
- package/dist/core/shaders/Tritone/index.js +5 -4
- package/dist/core/shaders/Truchet/index.js +5 -4
- package/dist/core/shaders/Twirl/index.js +5 -4
- package/dist/core/shaders/VHS/index.js +5 -4
- package/dist/core/shaders/VenetianBlinds/index.js +5 -4
- package/dist/core/shaders/Vesica/index.js +7 -4
- package/dist/core/shaders/Vibrance/index.js +5 -4
- package/dist/core/shaders/VideoTexture/index.js +6 -5
- package/dist/core/shaders/Vignette/index.js +5 -4
- package/dist/core/shaders/Voronoi/index.js +5 -4
- package/dist/core/shaders/Water/index.js +11 -6
- package/dist/core/shaders/Watercolor/index.d.ts +1 -1
- package/dist/core/shaders/Watercolor/index.d.ts.map +1 -1
- package/dist/core/shaders/Watercolor/index.js +6 -4
- package/dist/core/shaders/WaveDistortion/index.js +5 -4
- package/dist/core/shaders/WaveletNoise/index.js +8 -5
- package/dist/core/shaders/Weave/index.js +5 -4
- package/dist/core/shaders/WebcamTexture/index.js +7 -5
- package/dist/core/shaders/Wool/index.js +4 -3
- package/dist/core/shaders/WorleyNoise/index.js +5 -4
- package/dist/core/shaders/ZoomBlur/index.js +5 -4
- package/dist/core/shapeEffectBounds-Dg4GQ5vW.js +19213 -0
- package/dist/core/utilities/transformations/index.js +1 -1
- package/dist/js/bundle.js +188 -184
- package/dist/js/createShader.js +1 -1
- package/dist/react/Shader.js +1 -1
- package/dist/react/bundle.js +197 -193
- package/dist/registry.js +0 -1
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/svelte/index.js +1 -1
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/package.json +1 -1
- package/dist/core/coords-BkIjixe_.js +0 -55724
- package/dist/core/noiseStylize-J6sFKoTh.js +0 -65
- package/dist/core/porters-BmU6G9TR.js +0 -321
- package/dist/core/shaderRegistry-D75z2sND.js +0 -425
- package/dist/core/shapeEffectBounds-PQqKLQXO.js +0 -406
- /package/dist/core/{fonts-DwhbVe2B.js → fonts-v_F1SFl9.js} +0 -0
- /package/dist/core/{naturalSize-Caz3-kRv.js → naturalSize-B679wTgN.js} +0 -0
- /package/dist/core/{transformations-t0d2-uSX.js → transformations-CsPUHppB.js} +0 -0
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
/* shaders@3.0.
|
|
2
|
+
/* shaders@3.0.450 CLI — npx shaders install-mcp. https://shaders.com */
|
|
3
3
|
import { createRequire as __cliCreateRequire } from "module";
|
|
4
4
|
const require = __cliCreateRequire(import.meta.url);
|
|
5
5
|
var Vi=Object.create;var sr=Object.defineProperty;var Yi=Object.getOwnPropertyDescriptor;var Gi=Object.getOwnPropertyNames;var Ki=Object.getPrototypeOf,qi=Object.prototype.hasOwnProperty;var Ji=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,i)=>(typeof require<"u"?require:t)[i]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var $=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var zi=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of Gi(t))!qi.call(e,u)&&u!==i&&sr(e,u,{get:()=>t[u],enumerable:!(r=Yi(t,u))||r.enumerable});return e};var Se=(e,t,i)=>(i=e!=null?Vi(Ki(e)):{},zi(t||!e||!e.__esModule?sr(i,"default",{value:e,enumerable:!0}):i,e));var Dt=$((ka,or)=>{"use strict";var ht={to(e,t){return t?`\x1B[${t+1};${e+1}H`:`\x1B[${e+1}G`},move(e,t){let i="";return e<0?i+=`\x1B[${-e}D`:e>0&&(i+=`\x1B[${e}C`),t<0?i+=`\x1B[${-t}A`:t>0&&(i+=`\x1B[${t}B`),i},up:(e=1)=>`\x1B[${e}A`,down:(e=1)=>`\x1B[${e}B`,forward:(e=1)=>`\x1B[${e}C`,backward:(e=1)=>`\x1B[${e}D`,nextLine:(e=1)=>"\x1B[E".repeat(e),prevLine:(e=1)=>"\x1B[F".repeat(e),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},Qi={up:(e=1)=>"\x1B[S".repeat(e),down:(e=1)=>"\x1B[T".repeat(e)},Zi={screen:"\x1B[2J",up:(e=1)=>"\x1B[1J".repeat(e),down:(e=1)=>"\x1B[J".repeat(e),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(e){let t="";for(let i=0;i<e;i++)t+=this.line+(i<e-1?ht.up():"");return e&&(t+=ht.left),t}};or.exports={cursor:ht,scroll:Qi,erase:Zi,beep:"\x07"}});var cr=$(($a,ft)=>{var Oe=process||{},lr=Oe.argv||[],Be=Oe.env||{},Xi=!(Be.NO_COLOR||lr.includes("--no-color"))&&(!!Be.FORCE_COLOR||lr.includes("--color")||Oe.platform==="win32"||(Oe.stdout||{}).isTTY&&Be.TERM!=="dumb"||!!Be.CI),eu=(e,t,i=e)=>r=>{let u=""+r,s=u.indexOf(t,e.length);return~s?e+tu(u,t,i,s)+t:e+u+t},tu=(e,t,i,r)=>{let u="",s=0;do u+=e.substring(s,r)+i,s=r+t.length,r=e.indexOf(t,s);while(~r);return u+e.substring(s)},ar=(e=Xi)=>{let t=e?eu:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};ft.exports=ar();ft.exports.createColors=ar});var Wn=$((vc,Un)=>{"use strict";var re=class e extends Error{constructor(t,i,r){super("[ParserError] "+t,i,r),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}},Ge=class{constructor(t){this.parser=t,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}},ve=class{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new Ge(this.parseStart)}parse(t){if(t.length===0||t.length==null)return;this._buf=String(t),this.ii=-1,this.char=-1;let i;for(;i===!1||this.nextChar();)i=this.runOne();this._buf=null}nextChar(){return this.char===10&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){this.char=1114112;let t;do t=this.state.parser,this.runOne();while(this.state.parser!==t);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(t){if(typeof t!="function")throw new re("Tried to set state to non-existent state: "+JSON.stringify(t));this.state.parser=t}goto(t){return this.next(t),this.runOne()}call(t,i){i&&this.next(i),this.stack.push(this.state),this.state=new Ge(t)}callNow(t,i){return this.call(t,i),this.runOne()}return(t){if(this.stack.length===0)throw this.error(new re("Stack underflow"));t===void 0&&(t=this.state.buf),this.state=this.stack.pop(),this.state.returned=t}returnNow(t){return this.return(t),this.runOne()}consume(){if(this.char===1114112)throw this.error(new re("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(t){return t.line=this.line,t.col=this.col,t.pos=this.pos,t}parseStart(){throw new re("Must declare a parseStart method")}};ve.END=1114112;ve.Error=re;Un.exports=ve});var Yn=$((wc,Vn)=>{"use strict";Vn.exports=e=>{let t=new Date(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var Ke=$((_c,Gn)=>{"use strict";Gn.exports=(e,t)=>{for(t=String(t);t.length<e;)t="0"+t;return t}});var qn=$((Tc,Kn)=>{"use strict";var De=Ke(),jt=class extends Date{constructor(t){super(t+"Z"),this.isFloating=!0}toISOString(){let t=`${this.getUTCFullYear()}-${De(2,this.getUTCMonth()+1)}-${De(2,this.getUTCDate())}`,i=`${De(2,this.getUTCHours())}:${De(2,this.getUTCMinutes())}:${De(2,this.getUTCSeconds())}.${De(3,this.getUTCMilliseconds())}`;return`${t}T${i}`}};Kn.exports=e=>{let t=new jt(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var Qn=$((Sc,zn)=>{"use strict";var Jn=Ke(),cl=global.Date,Ut=class extends cl{constructor(t){super(t),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${Jn(2,this.getUTCMonth()+1)}-${Jn(2,this.getUTCDate())}`}};zn.exports=e=>{let t=new Ut(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var Xn=$((Bc,Zn)=>{"use strict";var qe=Ke(),Wt=class extends Date{constructor(t){super(`0000-01-01T${t}Z`),this.isTime=!0}toISOString(){return`${qe(2,this.getUTCHours())}:${qe(2,this.getUTCMinutes())}:${qe(2,this.getUTCSeconds())}.${qe(3,this.getUTCMilliseconds())}`}};Zn.exports=e=>{let t=new Wt(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var Je=$((exports,module)=>{"use strict";module.exports=makeParserClass(Wn());module.exports.makeParserClass=makeParserClass;var TomlError=class e extends Error{constructor(t){super(t),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,e),this.fromTOML=!0,this.wrapped=null}};TomlError.wrap=e=>{let t=new TomlError(e.message);return t.code=e.code,t.wrapped=e,t};module.exports.TomlError=TomlError;var createDateTime=Yn(),createDateTimeFloat=qn(),createDate=Qn(),createTime=Xn(),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:" ",[CHAR_n]:`
|
|
@@ -106,7 +106,7 @@ Options:
|
|
|
106
106
|
Supported agents:
|
|
107
107
|
${e}
|
|
108
108
|
|
|
109
|
-
Docs: ${Pi}`)}function Ba(e){let t={global:!1,yes:!1,agents:[]},i;for(let r=0;r<e.length;r++){let u=e[r];switch(u){case"-g":case"--global":t.global=!0;break;case"-y":case"--yes":t.yes=!0;break;case"-a":case"--agent":{let s=e[++r];s||ie(`Missing value for ${u}`),t.agents.push(...s.split(",").map(n=>n.trim()).filter(Boolean));break}case"-h":case"--help":Mi(),process.exit(0);break;case"-v":case"--version":console.log("3.0.
|
|
109
|
+
Docs: ${Pi}`)}function Ba(e){let t={global:!1,yes:!1,agents:[]},i;for(let r=0;r<e.length;r++){let u=e[r];switch(u){case"-g":case"--global":t.global=!0;break;case"-y":case"--yes":t.yes=!0;break;case"-a":case"--agent":{let s=e[++r];s||ie(`Missing value for ${u}`),t.agents.push(...s.split(",").map(n=>n.trim()).filter(Boolean));break}case"-h":case"--help":Mi(),process.exit(0);break;case"-v":case"--version":console.log("3.0.450"),process.exit(0);break;default:u.startsWith("-")&&ie(`Unknown option: ${u} (see npx shaders --help)`),i&&ie(`Unexpected argument: ${u}`),i=u}}return{command:i,flags:t}}function ie(e){console.error(`\u2717 ${e}`),process.exit(1)}function ji(e){let t=new Set(Z());for(let i of e)t.has(i)||ie(`Unknown agent "${i}". Supported agents: ${Z().join(", ")}`);return e}async function Oa(e,t){if(e.agents.length>0)return{targets:ji(e.agents),scope:e.global?"global":"project"};let i=e.global?[]:Qt(t),r=e.global||i.length===0?"global":"project",u=r==="project"?i:await Zt();if(!(!e.yes&&process.stdout.isTTY&&process.stdin.isTTY))return u.length===0&&ie(`No coding agents detected. Pass one explicitly, e.g. npx shaders install-mcp -a cursor
|
|
110
110
|
Supported agents: ${Z().join(", ")}`),{targets:u,scope:r};let n=await Et({message:`Install the Shaders MCP server to which agents? (${r} config)`,options:Z().map(o=>({value:o,label:R[o].displayName,hint:r==="project"&&R[o].localConfigPath?R[o].localConfigPath:R[o].configPath.replace(/^\/Users\/[^/]+|^\/home\/[^/]+|^C:\\Users\\[^\\]+/,"~")})),initialValues:u,required:!0});return de(n)&&(console.log("Cancelled \u2014 nothing was changed."),process.exit(0)),{targets:n,scope:r}}async function Ra(e){let t=process.cwd(),{targets:i,scope:r}=await Oa(e,t),u=0;for(let s of i){let n=r==="project"&&!!R[s].localConfigPath,o=$i(s,ir,{type:"http",url:Sa},{local:n,cwd:t});o.success?console.log(`\u2713 ${R[s].displayName} \u2014 ${o.path}`):(u++,console.error(`\u2717 ${R[s].displayName} \u2014 ${o.error}`))}u===i.length&&process.exit(1),console.log(`
|
|
111
111
|
Done! Open your agent and connect to the "${ir}" MCP server \u2014 you'll be
|
|
112
112
|
prompted to sign in to your Shaders account (Pro) the first time it connects.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as transformPosition } from "./transformations-
|
|
1
|
+
import { N as unpremultiplyAlpha, Rt as sin, Ut as data_exports, _ as floatE, bt as cos, d as ZERO, et as src_default, nt as std_exports, p as call, sn as f32, tn as vec2f } from "./edges-BZUKQxSE.js";
|
|
2
|
+
import { c as transformPosition } from "./transformations-CsPUHppB.js";
|
|
3
3
|
var rawWeights = Array.from({ length: 32 }, (_, i) => {
|
|
4
4
|
const t = (i / 31 - .5) * 2;
|
|
5
5
|
return Math.exp(-.5 * t * t / .64);
|
|
@@ -7,26 +7,26 @@ var rawWeights = Array.from({ length: 32 }, (_, i) => {
|
|
|
7
7
|
var wSum = rawWeights.reduce((a, b) => a + b);
|
|
8
8
|
const BLUR_WEIGHTS = rawWeights.map((w) => w / wSum);
|
|
9
9
|
const TAP_COUNT = 32;
|
|
10
|
-
const angularBlurTapCoord =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
],
|
|
10
|
+
const angularBlurTapCoord = src_default.fn([
|
|
11
|
+
vec2f,
|
|
12
|
+
f32,
|
|
13
|
+
vec2f,
|
|
14
|
+
f32,
|
|
15
|
+
f32
|
|
16
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((center, intensity, uv, aspect, tapIndex) => {
|
|
17
17
|
"use gpu";
|
|
18
|
-
const centerPos =
|
|
18
|
+
const centerPos = vec2f(center.x, __tsover_sub(1, center.y));
|
|
19
19
|
const angleStep = __tsover_div(__tsover_mul(intensity, .005), 31);
|
|
20
20
|
const angle = __tsover_mul(tapIndex, angleStep);
|
|
21
|
-
const cosA =
|
|
22
|
-
const sinA =
|
|
21
|
+
const cosA = cos(angle);
|
|
22
|
+
const sinA = sin(angle);
|
|
23
23
|
const initX = __tsover_sub(uv.x, centerPos.x);
|
|
24
24
|
const initY = __tsover_sub(uv.y, centerPos.y);
|
|
25
25
|
const acX = __tsover_mul(initX, aspect);
|
|
26
26
|
const acY = initY;
|
|
27
27
|
const rotX = __tsover_sub(__tsover_mul(acX, cosA), __tsover_mul(acY, sinA));
|
|
28
28
|
const rotY = __tsover_add(__tsover_mul(acX, sinA), __tsover_mul(acY, cosA));
|
|
29
|
-
return
|
|
29
|
+
return vec2f(__tsover_add(__tsover_div(rotX, aspect), centerPos.x), __tsover_add(rotY, centerPos.y));
|
|
30
30
|
}), {
|
|
31
31
|
v: 1,
|
|
32
32
|
name: void 0,
|
|
@@ -258,8 +258,8 @@ const angularBlurTapCoord = tgpu.fn([
|
|
|
258
258
|
"externalNames": ["d", "std"]
|
|
259
259
|
},
|
|
260
260
|
externals: () => ({
|
|
261
|
-
d,
|
|
262
|
-
std
|
|
261
|
+
d: data_exports,
|
|
262
|
+
std: std_exports
|
|
263
263
|
})
|
|
264
264
|
}) && $.f)({}));
|
|
265
265
|
const componentDefinition = {
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { H as mixColorsLinear, U as mixColorsVariants, et as src_default, p as call, sn as f32, tn as vec2f, y as vec4 } from "./edges-BZUKQxSE.js";
|
|
2
|
+
import { g as shapeLocalCoords, h as sdf_exports, n as ShapeMask, r as arcSdf, v as strokeMaskFromSdf } from "./sdf-o99ONcMJ.js";
|
|
3
|
+
import { a as transformColor, c as transformPosition, l as transformStrokePosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
3
4
|
var APERTURE_TO_HALF_ANGLE = .008726646259971648;
|
|
4
|
-
const arcShape =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
const arcShape = src_default.fn([
|
|
6
|
+
vec2f,
|
|
7
|
+
f32,
|
|
8
|
+
f32,
|
|
9
|
+
f32,
|
|
10
|
+
f32,
|
|
11
|
+
f32,
|
|
12
|
+
f32,
|
|
13
|
+
vec2f,
|
|
14
|
+
f32
|
|
14
15
|
], ShapeMask)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((center, radius, aperture, rotation, softness, strokeThickness, strokePosition, uv, aspect) => {
|
|
15
16
|
"use gpu";
|
|
16
17
|
const local = shapeLocalCoords(center, rotation, uv, aspect);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as transformBoolean } from "./transformations-
|
|
1
|
+
import { Et as fract, Mt as pow, N as unpremultiplyAlpha, Qt as struct, St as dot, Tt as floor, Ut as data_exports, d as ZERO, et as src_default, ht as abs, in as vec3f, mt as select, nt as std_exports, on as vec4f, p as call, sn as f32, tn as vec2f, yt as clamp } from "./edges-BZUKQxSE.js";
|
|
2
|
+
import { i as transformBoolean } from "./transformations-CsPUHppB.js";
|
|
3
3
|
var ATLAS_TEXTURE_SIZE = 2048;
|
|
4
4
|
var REFERENCE_HEIGHT = 1080;
|
|
5
5
|
var GOOGLE_FONTS_MAP = {
|
|
@@ -50,31 +50,31 @@ async function loadAsciiFont(fontFamily) {
|
|
|
50
50
|
} catch {}
|
|
51
51
|
}
|
|
52
52
|
var num = (v, f) => typeof v === "number" ? v : f;
|
|
53
|
-
var AsciiGrid = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(
|
|
54
|
-
cellCenter:
|
|
55
|
-
cellUV:
|
|
56
|
-
isOutside:
|
|
53
|
+
var AsciiGrid = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(struct({
|
|
54
|
+
cellCenter: vec2f,
|
|
55
|
+
cellUV: vec2f,
|
|
56
|
+
isOutside: f32
|
|
57
57
|
}), "AsciiGrid");
|
|
58
|
-
const asciiGrid =
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
const asciiGrid = src_default.fn([
|
|
59
|
+
vec2f,
|
|
60
|
+
vec2f,
|
|
61
|
+
f32,
|
|
62
|
+
f32
|
|
63
63
|
], AsciiGrid)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewport, cellSize, spacing) => {
|
|
64
64
|
"use gpu";
|
|
65
65
|
const scaleFactor = __tsover_div(viewport.y, REFERENCE_HEIGHT);
|
|
66
66
|
const effectiveCellSize = __tsover_mul(cellSize, scaleFactor);
|
|
67
|
-
const mainGridSize =
|
|
68
|
-
const gridCoords =
|
|
69
|
-
const cellCoords =
|
|
70
|
-
const rawCellUV =
|
|
67
|
+
const mainGridSize = vec2f(__tsover_div(viewport.x, effectiveCellSize), __tsover_div(viewport.y, effectiveCellSize));
|
|
68
|
+
const gridCoords = vec2f(__tsover_mul(uv.x, mainGridSize.x), __tsover_mul(uv.y, mainGridSize.y));
|
|
69
|
+
const cellCoords = floor(gridCoords);
|
|
70
|
+
const rawCellUV = fract(gridCoords);
|
|
71
71
|
const centeredU = __tsover_sub(rawCellUV.x, .5);
|
|
72
72
|
const centeredV = __tsover_sub(rawCellUV.y, .5);
|
|
73
|
-
const cellUV =
|
|
73
|
+
const cellUV = vec2f(__tsover_add(__tsover_div(centeredU, spacing), .5), __tsover_add(__tsover_div(centeredV, spacing), .5));
|
|
74
74
|
const half = __tsover_mul(spacing, .5);
|
|
75
|
-
const isOutside =
|
|
75
|
+
const isOutside = select(f32(0), f32(1), abs(centeredU) > half || abs(centeredV) > half);
|
|
76
76
|
return AsciiGrid({
|
|
77
|
-
cellCenter:
|
|
77
|
+
cellCenter: vec2f(__tsover_div(__tsover_add(cellCoords.x, .5), mainGridSize.x), __tsover_div(__tsover_add(cellCoords.y, .5), mainGridSize.y)),
|
|
78
78
|
cellUV,
|
|
79
79
|
isOutside
|
|
80
80
|
});
|
|
@@ -424,31 +424,29 @@ const asciiGrid = tgpu.fn([
|
|
|
424
424
|
},
|
|
425
425
|
externals: () => ({
|
|
426
426
|
REFERENCE_HEIGHT,
|
|
427
|
-
d,
|
|
428
|
-
std,
|
|
427
|
+
d: data_exports,
|
|
428
|
+
std: std_exports,
|
|
429
429
|
AsciiGrid
|
|
430
430
|
})
|
|
431
431
|
}) && $.f)({})).$name("asciiGrid");
|
|
432
|
-
const asciiAtlasUV =
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
],
|
|
432
|
+
const asciiAtlasUV = src_default.fn([
|
|
433
|
+
vec3f,
|
|
434
|
+
f32,
|
|
435
|
+
f32,
|
|
436
|
+
f32,
|
|
437
|
+
f32,
|
|
438
|
+
vec2f
|
|
439
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cellRgb, gamma, charCount, atlasSize, atlasScale, cellUV) => {
|
|
440
440
|
"use gpu";
|
|
441
|
-
const
|
|
442
|
-
const adjustedBrightness = std.pow(rawBrightness, gamma);
|
|
441
|
+
const adjustedBrightness = pow(dot(cellRgb, vec3f(.299, .587, .114)), gamma);
|
|
443
442
|
const invertedBrightness = __tsover_sub(1, adjustedBrightness);
|
|
444
|
-
const
|
|
445
|
-
const
|
|
446
|
-
const
|
|
447
|
-
const atlasRow = std.floor(__tsover_div(charIndex, atlasSize));
|
|
443
|
+
const charIndex = clamp(floor(__tsover_mul(invertedBrightness, charCount)), 0, __tsover_sub(charCount, 1));
|
|
444
|
+
const atlasCol = __tsover_sub(charIndex, __tsover_mul(atlasSize, floor(__tsover_div(charIndex, atlasSize))));
|
|
445
|
+
const atlasRow = floor(__tsover_div(charIndex, atlasSize));
|
|
448
446
|
const atlasCellSize = __tsover_mul(__tsover_div(1, atlasSize), atlasScale);
|
|
449
447
|
const baseU = __tsover_mul(atlasCol, atlasCellSize);
|
|
450
448
|
const baseV = __tsover_mul(atlasRow, atlasCellSize);
|
|
451
|
-
return
|
|
449
|
+
return vec2f(__tsover_add(baseU, __tsover_mul(cellUV.x, atlasCellSize)), __tsover_add(baseV, __tsover_mul(cellUV.y, atlasCellSize)));
|
|
452
450
|
}), {
|
|
453
451
|
v: 1,
|
|
454
452
|
name: void 0,
|
|
@@ -690,25 +688,25 @@ const asciiAtlasUV = tgpu.fn([
|
|
|
690
688
|
"externalNames": ["std", "d"]
|
|
691
689
|
},
|
|
692
690
|
externals: () => ({
|
|
693
|
-
std,
|
|
694
|
-
d
|
|
691
|
+
std: std_exports,
|
|
692
|
+
d: data_exports
|
|
695
693
|
})
|
|
696
694
|
}) && $.f)({})).$name("asciiAtlasUV");
|
|
697
|
-
const asciiCompose =
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
],
|
|
695
|
+
const asciiCompose = src_default.fn([
|
|
696
|
+
vec3f,
|
|
697
|
+
vec4f,
|
|
698
|
+
f32,
|
|
699
|
+
f32,
|
|
700
|
+
f32
|
|
701
|
+
], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((asciiRgb, cellColor, isOutside, alphaThreshold, preserveAlpha) => {
|
|
704
702
|
"use gpu";
|
|
705
|
-
const isBackground =
|
|
703
|
+
const isBackground = dot(asciiRgb, vec3f(.299, .587, .114)) < .1;
|
|
706
704
|
const sourceAlpha = cellColor.w;
|
|
707
705
|
const isBelowThreshold = sourceAlpha < alphaThreshold;
|
|
708
|
-
const outputAlpha =
|
|
706
|
+
const outputAlpha = select(f32(1), sourceAlpha, preserveAlpha > .5);
|
|
709
707
|
const hide = isBackground || isOutside > .5 || isBelowThreshold;
|
|
710
|
-
const finalAlpha =
|
|
711
|
-
return
|
|
708
|
+
const finalAlpha = select(outputAlpha, f32(0), hide);
|
|
709
|
+
return vec4f(__tsover_mul(asciiRgb.x, cellColor.x), __tsover_mul(asciiRgb.y, cellColor.y), __tsover_mul(asciiRgb.z, cellColor.z), finalAlpha);
|
|
712
710
|
}), {
|
|
713
711
|
v: 1,
|
|
714
712
|
name: void 0,
|
|
@@ -922,8 +920,8 @@ const asciiCompose = tgpu.fn([
|
|
|
922
920
|
"externalNames": ["std", "d"]
|
|
923
921
|
},
|
|
924
922
|
externals: () => ({
|
|
925
|
-
std,
|
|
926
|
-
d
|
|
923
|
+
std: std_exports,
|
|
924
|
+
d: data_exports
|
|
927
925
|
})
|
|
928
926
|
}) && $.f)({})).$name("asciiCompose");
|
|
929
927
|
const componentDefinition = {
|
|
@@ -935,15 +933,15 @@ const componentDefinition = {
|
|
|
935
933
|
requiresChild: true,
|
|
936
934
|
extraFields: {
|
|
937
935
|
_charCount: {
|
|
938
|
-
schema:
|
|
936
|
+
schema: f32,
|
|
939
937
|
initial: 9
|
|
940
938
|
},
|
|
941
939
|
_atlasScale: {
|
|
942
|
-
schema:
|
|
940
|
+
schema: f32,
|
|
943
941
|
initial: 1
|
|
944
942
|
},
|
|
945
943
|
_atlasSize: {
|
|
946
|
-
schema:
|
|
944
|
+
schema: f32,
|
|
947
945
|
initial: 3
|
|
948
946
|
}
|
|
949
947
|
},
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { At as mix, Ct as exp, Et as fract, H as mixColorsLinear, Mt as pow, Rt as sin, U as mixColorsVariants, Ut as data_exports, et as src_default, in as vec3f, mt as select, nt as std_exports, on as vec4f, p as call, sn as f32, tn as vec2f, yt as clamp, zt as smoothstep } from "./edges-BZUKQxSE.js";
|
|
2
|
+
import { t as animatedTime } from "./porters-DogLzpKT.js";
|
|
3
|
+
import { d as mxNoiseFloat3, p as noise_exports } from "./noise-Cq0KUOSC.js";
|
|
4
|
+
import { a as transformColor, c as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
4
5
|
var TWO_PI = Math.PI * 2;
|
|
5
|
-
const auroraCurtain =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
],
|
|
6
|
+
const auroraCurtain = src_default.fn([
|
|
7
|
+
vec2f,
|
|
8
|
+
f32,
|
|
9
|
+
f32,
|
|
10
|
+
f32,
|
|
11
|
+
f32,
|
|
12
|
+
f32,
|
|
13
|
+
f32,
|
|
14
|
+
f32,
|
|
15
|
+
f32,
|
|
16
|
+
f32,
|
|
17
|
+
f32
|
|
18
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, layerIdx, layerTime, centerX, centerY, aspect, waviness, rayAmount, auroraHeight, seed, t) => {
|
|
18
19
|
"use gpu";
|
|
19
20
|
const tSlow = __tsover_add(__tsover_mul(t, .06), layerTime);
|
|
20
21
|
const lSeed = __tsover_add(seed, __tsover_mul(layerIdx, 31.7));
|
|
21
22
|
const wx = __tsover_mul(__tsover_mul(__tsover_sub(uv.x, centerX), aspect), 2);
|
|
22
|
-
const ph1 = __tsover_mul(
|
|
23
|
-
const ph2 = __tsover_mul(
|
|
24
|
-
const ph3 = __tsover_mul(
|
|
25
|
-
const arc = __tsover_add(__tsover_add(__tsover_mul(
|
|
26
|
-
const noiseWarp = mxNoiseFloat3(
|
|
23
|
+
const ph1 = __tsover_mul(fract(__tsover_mul(sin(__tsover_mul(lSeed, 12.9)), 4758.5)), TWO_PI);
|
|
24
|
+
const ph2 = __tsover_mul(fract(__tsover_mul(sin(__tsover_mul(lSeed, 78.2)), 2847.1)), TWO_PI);
|
|
25
|
+
const ph3 = __tsover_mul(fract(__tsover_mul(sin(__tsover_mul(lSeed, 41.6)), 1593.7)), TWO_PI);
|
|
26
|
+
const arc = __tsover_add(__tsover_add(__tsover_mul(sin(__tsover_add(__tsover_add(__tsover_mul(wx, .7), __tsover_mul(tSlow, .4)), ph1)), .15), __tsover_mul(sin(__tsover_add(__tsover_add(__tsover_mul(wx, 1.6), __tsover_mul(tSlow, .65)), ph2)), .08)), __tsover_mul(sin(__tsover_add(__tsover_add(__tsover_mul(wx, 2.9), __tsover_mul(tSlow, .3)), ph3)), .04));
|
|
27
|
+
const noiseWarp = mxNoiseFloat3(vec3f(__tsover_mul(wx, .5), __tsover_mul(tSlow, .25), __tsover_mul(lSeed, .1)));
|
|
27
28
|
const pathY = __tsover_add(__tsover_add(centerY, __tsover_mul(arc, waviness)), __tsover_mul(__tsover_mul(noiseWarp, .14), waviness));
|
|
28
29
|
const warpedX = __tsover_add(wx, __tsover_mul(noiseWarp, 2.5));
|
|
29
|
-
const rayFreq =
|
|
30
|
-
const rayPhase = __tsover_mul(
|
|
31
|
-
const rays =
|
|
32
|
-
const localHeight = __tsover_mul(auroraHeight,
|
|
30
|
+
const rayFreq = mix(f32(6), f32(20), rayAmount);
|
|
31
|
+
const rayPhase = __tsover_mul(fract(__tsover_mul(sin(__tsover_mul(lSeed, 53.7)), 3847.2)), TWO_PI);
|
|
32
|
+
const rays = pow(__tsover_add(__tsover_mul(sin(__tsover_add(__tsover_add(__tsover_mul(warpedX, __tsover_mul(rayFreq, .15)), __tsover_mul(tSlow, .1)), rayPhase)), .5), .5), 1.5);
|
|
33
|
+
const localHeight = __tsover_mul(auroraHeight, mix(.4, 1, rays));
|
|
33
34
|
const distFromPath = __tsover_sub(uv.y, pathY);
|
|
34
|
-
const bottomFade =
|
|
35
|
+
const bottomFade = smoothstep(-.04, .015, distFromPath);
|
|
35
36
|
const topExtent = __tsover_mul(localHeight, __tsover_add(__tsover_mul(rays, .4), .6));
|
|
36
|
-
const topFade = __tsover_sub(1,
|
|
37
|
+
const topFade = __tsover_sub(1, smoothstep(0, topExtent, distFromPath));
|
|
37
38
|
const envelope = __tsover_mul(bottomFade, topFade);
|
|
38
|
-
const sectionBright =
|
|
39
|
-
const colorT =
|
|
39
|
+
const sectionBright = mix(.4, 1, __tsover_add(__tsover_mul(noiseWarp, .5), .5));
|
|
40
|
+
const colorT = clamp(__tsover_div(distFromPath, __tsover_add(topExtent, .001)), 0, 1);
|
|
40
41
|
const coreD = __tsover_sub(colorT, .2);
|
|
41
|
-
const coreBright = __tsover_add(__tsover_mul(
|
|
42
|
-
|
|
43
|
-
return d.vec2f(colorT, finalAlpha);
|
|
42
|
+
const coreBright = __tsover_add(__tsover_mul(exp(__tsover_mul(__tsover_mul(coreD, coreD), -6)), .3), 1);
|
|
43
|
+
return vec2f(colorT, __tsover_mul(__tsover_mul(__tsover_mul(envelope, rays), sectionBright), coreBright));
|
|
44
44
|
}), {
|
|
45
45
|
v: 1,
|
|
46
46
|
name: void 0,
|
|
@@ -831,25 +831,25 @@ const auroraCurtain = tgpu.fn([
|
|
|
831
831
|
]
|
|
832
832
|
},
|
|
833
833
|
externals: () => ({
|
|
834
|
-
std,
|
|
834
|
+
std: std_exports,
|
|
835
835
|
TWO_PI,
|
|
836
|
-
d,
|
|
836
|
+
d: data_exports,
|
|
837
837
|
noise: noise_exports
|
|
838
838
|
})
|
|
839
839
|
}) && $.f)({}));
|
|
840
|
-
const auroraField =
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
],
|
|
840
|
+
const auroraField = src_default.fn([
|
|
841
|
+
vec2f,
|
|
842
|
+
vec2f,
|
|
843
|
+
f32,
|
|
844
|
+
f32,
|
|
845
|
+
f32,
|
|
846
|
+
f32,
|
|
847
|
+
f32,
|
|
848
|
+
vec2f,
|
|
849
|
+
f32,
|
|
850
|
+
f32,
|
|
851
|
+
f32
|
|
852
|
+
], vec3f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewport, animTime, seed, waviness, rayDensity, height, center, balance, intensity, curtainCount) => {
|
|
853
853
|
"use gpu";
|
|
854
854
|
const aspect = __tsover_div(viewport.x, viewport.y);
|
|
855
855
|
const centerX = center.x;
|
|
@@ -858,31 +858,28 @@ const auroraField = tgpu.fn([
|
|
|
858
858
|
const rayAmt = __tsover_mul(rayDensity, .01);
|
|
859
859
|
const auroraHeight = __tsover_mul(height, .01);
|
|
860
860
|
const intens = __tsover_mul(intensity, .018);
|
|
861
|
-
const balanceExp =
|
|
861
|
+
const balanceExp = mix(2.5, .4, __tsover_mul(balance, .01));
|
|
862
862
|
const t = animTime;
|
|
863
|
-
const a0 = auroraCurtain(uv,
|
|
863
|
+
const a0 = auroraCurtain(uv, f32(0), 0, centerX, centerY, aspect, wav, rayAmt, auroraHeight, seed, t);
|
|
864
864
|
let weightedT = __tsover_mul(a0.x, a0.y);
|
|
865
865
|
let totalAlpha = a0.y;
|
|
866
|
-
const g1 =
|
|
867
|
-
const a1 = auroraCurtain(uv,
|
|
866
|
+
const g1 = select(f32(0), f32(1), curtainCount >= 2);
|
|
867
|
+
const a1 = auroraCurtain(uv, f32(1), 3.1, centerX, centerY, aspect, wav, rayAmt, auroraHeight, seed, t);
|
|
868
868
|
const w1 = __tsover_mul(__tsover_mul(a1.y, .65), g1);
|
|
869
869
|
weightedT = __tsover_add(weightedT, __tsover_mul(a1.x, w1));
|
|
870
870
|
totalAlpha = __tsover_add(totalAlpha, w1);
|
|
871
|
-
const g2 =
|
|
872
|
-
const a2 = auroraCurtain(uv,
|
|
871
|
+
const g2 = select(f32(0), f32(1), curtainCount >= 3);
|
|
872
|
+
const a2 = auroraCurtain(uv, f32(2), 6.7, centerX, centerY, aspect, wav, rayAmt, auroraHeight, seed, t);
|
|
873
873
|
const w2 = __tsover_mul(__tsover_mul(a2.y, .45), g2);
|
|
874
874
|
weightedT = __tsover_add(weightedT, __tsover_mul(a2.x, w2));
|
|
875
875
|
totalAlpha = __tsover_add(totalAlpha, w2);
|
|
876
|
-
const g3 =
|
|
877
|
-
const a3 = auroraCurtain(uv,
|
|
876
|
+
const g3 = select(f32(0), f32(1), curtainCount >= 4);
|
|
877
|
+
const a3 = auroraCurtain(uv, f32(3), 9.4, centerX, centerY, aspect, wav, rayAmt, auroraHeight, seed, t);
|
|
878
878
|
const w3 = __tsover_mul(__tsover_mul(a3.y, .3), g3);
|
|
879
879
|
weightedT = __tsover_add(weightedT, __tsover_mul(a3.x, w3));
|
|
880
880
|
totalAlpha = __tsover_add(totalAlpha, w3);
|
|
881
|
-
const avgT =
|
|
882
|
-
|
|
883
|
-
const midToHigh = std.smoothstep(.4, .85, avgT);
|
|
884
|
-
const brightness = __tsover_mul(totalAlpha, intens);
|
|
885
|
-
return d.vec3f(lowToMid, midToHigh, brightness);
|
|
881
|
+
const avgT = pow(__tsover_div(weightedT, __tsover_add(totalAlpha, .001)), balanceExp);
|
|
882
|
+
return vec3f(smoothstep(0, .2, avgT), smoothstep(.4, .85, avgT), __tsover_mul(totalAlpha, intens));
|
|
886
883
|
}), {
|
|
887
884
|
v: 1,
|
|
888
885
|
name: void 0,
|
|
@@ -1537,16 +1534,14 @@ const auroraField = tgpu.fn([
|
|
|
1537
1534
|
]
|
|
1538
1535
|
},
|
|
1539
1536
|
externals: () => ({
|
|
1540
|
-
std,
|
|
1537
|
+
std: std_exports,
|
|
1541
1538
|
auroraCurtain,
|
|
1542
|
-
d
|
|
1539
|
+
d: data_exports
|
|
1543
1540
|
})
|
|
1544
1541
|
}) && $.f)({}));
|
|
1545
|
-
const auroraCompose =
|
|
1542
|
+
const auroraCompose = src_default.fn([vec4f, f32], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((color, brightness) => {
|
|
1546
1543
|
"use gpu";
|
|
1547
|
-
|
|
1548
|
-
const alpha = std.clamp(__tsover_mul(brightness, .5), 0, 1);
|
|
1549
|
-
return d.vec4f(col, alpha);
|
|
1544
|
+
return vec4f(clamp(color.xyz.mul(brightness), vec3f(0), vec3f(1)), clamp(__tsover_mul(brightness, .5), 0, 1));
|
|
1550
1545
|
}), {
|
|
1551
1546
|
v: 1,
|
|
1552
1547
|
name: void 0,
|
|
@@ -1639,8 +1634,8 @@ const auroraCompose = tgpu.fn([d.vec4f, d.f32], d.vec4f)(/* @__PURE__ */ (($) =>
|
|
|
1639
1634
|
"externalNames": ["std", "d"]
|
|
1640
1635
|
},
|
|
1641
1636
|
externals: () => ({
|
|
1642
|
-
std,
|
|
1643
|
-
d
|
|
1637
|
+
std: std_exports,
|
|
1638
|
+
d: data_exports
|
|
1644
1639
|
})
|
|
1645
1640
|
}) && $.f)({}));
|
|
1646
1641
|
const componentDefinition = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Et as fract, N as unpremultiplyAlpha, Ot as max, Rt as sin, Tt as floor, Ut as data_exports, bt as cos, c as sampleRemappedExpr, d as ZERO, et as src_default, n as composeEdgeRemapExpr, nt as std_exports, p as call, sn as f32, tn as vec2f } from "./edges-BZUKQxSE.js";
|
|
2
|
+
import { t as animatedTime } from "./porters-DogLzpKT.js";
|
|
3
|
+
import { r as transformAngle, s as transformEdges } from "./transformations-CsPUHppB.js";
|
|
4
4
|
var DEG_TO_RAD = .0174533;
|
|
5
|
-
const barHash =
|
|
5
|
+
const barHash = src_default.fn([f32], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((x) => {
|
|
6
6
|
"use gpu";
|
|
7
|
-
return __tsover_mul(__tsover_sub(
|
|
7
|
+
return __tsover_mul(__tsover_sub(fract(__tsover_mul(sin(__tsover_mul(x, 12.9898)), 43758.5453)), .5), 2);
|
|
8
8
|
}), {
|
|
9
9
|
v: 1,
|
|
10
10
|
name: void 0,
|
|
@@ -52,18 +52,18 @@ const barHash = tgpu.fn([d.f32], d.f32)(/* @__PURE__ */ (($) => (globalThis.__TY
|
|
|
52
52
|
]]]],
|
|
53
53
|
"externalNames": ["std"]
|
|
54
54
|
},
|
|
55
|
-
externals: () => ({ std })
|
|
55
|
+
externals: () => ({ std: std_exports })
|
|
56
56
|
}) && $.f)({}));
|
|
57
|
-
const barSampleUV =
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
],
|
|
57
|
+
const barSampleUV = src_default.fn([
|
|
58
|
+
vec2f,
|
|
59
|
+
f32,
|
|
60
|
+
f32,
|
|
61
|
+
f32
|
|
62
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, aspect, angle, offset) => {
|
|
63
63
|
"use gpu";
|
|
64
64
|
const angleRad = __tsover_mul(angle, DEG_TO_RAD);
|
|
65
|
-
const cosA =
|
|
66
|
-
const sinA =
|
|
65
|
+
const cosA = cos(angleRad);
|
|
66
|
+
const sinA = sin(angleRad);
|
|
67
67
|
const au = __tsover_mul(uv.x, aspect);
|
|
68
68
|
const av = uv.y;
|
|
69
69
|
const cu = __tsover_sub(au, __tsover_mul(aspect, .5));
|
|
@@ -73,7 +73,7 @@ const barSampleUV = tgpu.fn([
|
|
|
73
73
|
const distPV = __tsover_add(projectedV, offset);
|
|
74
74
|
const dcu = __tsover_sub(__tsover_mul(projectedU, cosA), __tsover_mul(distPV, sinA));
|
|
75
75
|
const dcv = __tsover_add(__tsover_mul(projectedU, sinA), __tsover_mul(distPV, cosA));
|
|
76
|
-
return
|
|
76
|
+
return vec2f(__tsover_add(__tsover_div(dcu, aspect), .5), __tsover_add(dcv, .5));
|
|
77
77
|
}), {
|
|
78
78
|
v: 1,
|
|
79
79
|
name: void 0,
|
|
@@ -313,31 +313,30 @@ const barSampleUV = tgpu.fn([
|
|
|
313
313
|
},
|
|
314
314
|
externals: () => ({
|
|
315
315
|
DEG_TO_RAD,
|
|
316
|
-
std,
|
|
317
|
-
d
|
|
316
|
+
std: std_exports,
|
|
317
|
+
d: data_exports
|
|
318
318
|
})
|
|
319
319
|
}) && $.f)({}));
|
|
320
|
-
const barShiftUV =
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
],
|
|
320
|
+
const barShiftUV = src_default.fn([
|
|
321
|
+
f32,
|
|
322
|
+
f32,
|
|
323
|
+
f32,
|
|
324
|
+
f32,
|
|
325
|
+
f32,
|
|
326
|
+
vec2f,
|
|
327
|
+
f32
|
|
328
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((count, angle, intensity, seed, animTime, uv, aspect) => {
|
|
329
329
|
"use gpu";
|
|
330
330
|
const angleRad = __tsover_mul(angle, DEG_TO_RAD);
|
|
331
|
-
const cosA =
|
|
332
|
-
const sinA =
|
|
333
|
-
const longestAxis =
|
|
331
|
+
const cosA = cos(angleRad);
|
|
332
|
+
const sinA = sin(angleRad);
|
|
333
|
+
const longestAxis = max(aspect, 1);
|
|
334
334
|
const au = __tsover_mul(uv.x, aspect);
|
|
335
335
|
const av = uv.y;
|
|
336
336
|
const cu = __tsover_sub(au, __tsover_mul(aspect, .5));
|
|
337
337
|
const cv = __tsover_sub(av, .5);
|
|
338
338
|
const projectedU = __tsover_add(__tsover_mul(cu, cosA), __tsover_mul(cv, sinA));
|
|
339
|
-
const
|
|
340
|
-
const barIndex = std.floor(barCoord);
|
|
339
|
+
const barIndex = floor(__tsover_div(__tsover_mul(projectedU, count), longestAxis));
|
|
341
340
|
const seedOffset = __tsover_mul(seed, .137);
|
|
342
341
|
const staticOffset = barHash(__tsover_add(barIndex, seedOffset));
|
|
343
342
|
const barSpeed = barHash(__tsover_add(__tsover_add(barIndex, seedOffset), 42.7));
|
|
@@ -616,7 +615,7 @@ const barShiftUV = tgpu.fn([
|
|
|
616
615
|
},
|
|
617
616
|
externals: () => ({
|
|
618
617
|
DEG_TO_RAD,
|
|
619
|
-
std,
|
|
618
|
+
std: std_exports,
|
|
620
619
|
barHash,
|
|
621
620
|
barSampleUV
|
|
622
621
|
})
|