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
|
@@ -0,0 +1,1440 @@
|
|
|
1
|
+
import { At as mix, Bt as sqrt, Ct as exp, Dt as length, Ot as max, St as dot, et as src_default, ht as abs, kt as min, mt as select, nt as std_exports, sn as f32, tn as vec2f, un as __export, yt as clamp, zt as smoothstep } from "./edges-BZUKQxSE.js";
|
|
2
|
+
var agents_exports = /* @__PURE__ */ __export({
|
|
3
|
+
AGENT_SHAPES: () => AGENT_SHAPES,
|
|
4
|
+
arrowSdf: () => arrowSdf,
|
|
5
|
+
boxSdf: () => boxSdf,
|
|
6
|
+
capsuleSdf: () => capsuleSdf,
|
|
7
|
+
cursorFalloff: () => cursorFalloff,
|
|
8
|
+
cursorMagnet: () => cursorMagnet,
|
|
9
|
+
makeAgentTexelWeightFn: () => makeAgentTexelWeightFn,
|
|
10
|
+
makeAgentWeightFn: () => makeAgentWeightFn,
|
|
11
|
+
orientedShapeOptions: () => orientedShapeOptions,
|
|
12
|
+
pointShapeOptions: () => pointShapeOptions,
|
|
13
|
+
resolveAgentShape: () => resolveAgentShape
|
|
14
|
+
});
|
|
15
|
+
const arrowSdf = src_default.fn([
|
|
16
|
+
f32,
|
|
17
|
+
f32,
|
|
18
|
+
f32,
|
|
19
|
+
f32
|
|
20
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((t, n, hl, hw) => {
|
|
21
|
+
"use gpu";
|
|
22
|
+
const px = abs(n);
|
|
23
|
+
const py = __tsover_sub(hl, t);
|
|
24
|
+
const qx = hw;
|
|
25
|
+
const qy = __tsover_mul(hl, 2);
|
|
26
|
+
const k = clamp(__tsover_div(__tsover_add(__tsover_mul(px, qx), __tsover_mul(py, qy)), max(__tsover_add(__tsover_mul(qx, qx), __tsover_mul(qy, qy)), 1e-9)), 0, 1);
|
|
27
|
+
const ax = __tsover_sub(px, __tsover_mul(qx, k));
|
|
28
|
+
const ay = __tsover_sub(py, __tsover_mul(qy, k));
|
|
29
|
+
const bx = __tsover_sub(px, __tsover_mul(qx, clamp(__tsover_div(px, max(qx, 1e-9)), 0, 1)));
|
|
30
|
+
const by = __tsover_sub(py, qy);
|
|
31
|
+
const dSq = min(__tsover_add(__tsover_mul(ax, ax), __tsover_mul(ay, ay)), __tsover_add(__tsover_mul(bx, bx), __tsover_mul(by, by)));
|
|
32
|
+
const inside = min(__tsover_sub(__tsover_mul(py, qx), __tsover_mul(px, qy)), __tsover_sub(qy, py)) > 0;
|
|
33
|
+
return select(sqrt(dSq), -sqrt(dSq), inside);
|
|
34
|
+
}), {
|
|
35
|
+
v: 1,
|
|
36
|
+
name: void 0,
|
|
37
|
+
ast: {
|
|
38
|
+
"params": [
|
|
39
|
+
{
|
|
40
|
+
"type": "i",
|
|
41
|
+
"name": "t"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "i",
|
|
45
|
+
"name": "n"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"type": "i",
|
|
49
|
+
"name": "hl"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "i",
|
|
53
|
+
"name": "hw"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"body": [0, [
|
|
57
|
+
[
|
|
58
|
+
13,
|
|
59
|
+
"px",
|
|
60
|
+
[
|
|
61
|
+
6,
|
|
62
|
+
[
|
|
63
|
+
7,
|
|
64
|
+
"std",
|
|
65
|
+
"abs"
|
|
66
|
+
],
|
|
67
|
+
["n"]
|
|
68
|
+
]
|
|
69
|
+
],
|
|
70
|
+
[
|
|
71
|
+
13,
|
|
72
|
+
"py",
|
|
73
|
+
[
|
|
74
|
+
1,
|
|
75
|
+
"hl",
|
|
76
|
+
"-",
|
|
77
|
+
"t"
|
|
78
|
+
]
|
|
79
|
+
],
|
|
80
|
+
[
|
|
81
|
+
13,
|
|
82
|
+
"qx",
|
|
83
|
+
"hw"
|
|
84
|
+
],
|
|
85
|
+
[
|
|
86
|
+
13,
|
|
87
|
+
"qy",
|
|
88
|
+
[
|
|
89
|
+
1,
|
|
90
|
+
"hl",
|
|
91
|
+
"*",
|
|
92
|
+
[5, "2"]
|
|
93
|
+
]
|
|
94
|
+
],
|
|
95
|
+
[
|
|
96
|
+
13,
|
|
97
|
+
"k",
|
|
98
|
+
[
|
|
99
|
+
6,
|
|
100
|
+
[
|
|
101
|
+
7,
|
|
102
|
+
"std",
|
|
103
|
+
"clamp"
|
|
104
|
+
],
|
|
105
|
+
[
|
|
106
|
+
[
|
|
107
|
+
1,
|
|
108
|
+
[
|
|
109
|
+
1,
|
|
110
|
+
[
|
|
111
|
+
1,
|
|
112
|
+
"px",
|
|
113
|
+
"*",
|
|
114
|
+
"qx"
|
|
115
|
+
],
|
|
116
|
+
"+",
|
|
117
|
+
[
|
|
118
|
+
1,
|
|
119
|
+
"py",
|
|
120
|
+
"*",
|
|
121
|
+
"qy"
|
|
122
|
+
]
|
|
123
|
+
],
|
|
124
|
+
"/",
|
|
125
|
+
[
|
|
126
|
+
6,
|
|
127
|
+
[
|
|
128
|
+
7,
|
|
129
|
+
"std",
|
|
130
|
+
"max"
|
|
131
|
+
],
|
|
132
|
+
[[
|
|
133
|
+
1,
|
|
134
|
+
[
|
|
135
|
+
1,
|
|
136
|
+
"qx",
|
|
137
|
+
"*",
|
|
138
|
+
"qx"
|
|
139
|
+
],
|
|
140
|
+
"+",
|
|
141
|
+
[
|
|
142
|
+
1,
|
|
143
|
+
"qy",
|
|
144
|
+
"*",
|
|
145
|
+
"qy"
|
|
146
|
+
]
|
|
147
|
+
], [5, "1e-9"]]
|
|
148
|
+
]
|
|
149
|
+
],
|
|
150
|
+
[5, "0"],
|
|
151
|
+
[5, "1"]
|
|
152
|
+
]
|
|
153
|
+
]
|
|
154
|
+
],
|
|
155
|
+
[
|
|
156
|
+
13,
|
|
157
|
+
"ax",
|
|
158
|
+
[
|
|
159
|
+
1,
|
|
160
|
+
"px",
|
|
161
|
+
"-",
|
|
162
|
+
[
|
|
163
|
+
1,
|
|
164
|
+
"qx",
|
|
165
|
+
"*",
|
|
166
|
+
"k"
|
|
167
|
+
]
|
|
168
|
+
]
|
|
169
|
+
],
|
|
170
|
+
[
|
|
171
|
+
13,
|
|
172
|
+
"ay",
|
|
173
|
+
[
|
|
174
|
+
1,
|
|
175
|
+
"py",
|
|
176
|
+
"-",
|
|
177
|
+
[
|
|
178
|
+
1,
|
|
179
|
+
"qy",
|
|
180
|
+
"*",
|
|
181
|
+
"k"
|
|
182
|
+
]
|
|
183
|
+
]
|
|
184
|
+
],
|
|
185
|
+
[
|
|
186
|
+
13,
|
|
187
|
+
"bx",
|
|
188
|
+
[
|
|
189
|
+
1,
|
|
190
|
+
"px",
|
|
191
|
+
"-",
|
|
192
|
+
[
|
|
193
|
+
1,
|
|
194
|
+
"qx",
|
|
195
|
+
"*",
|
|
196
|
+
[
|
|
197
|
+
6,
|
|
198
|
+
[
|
|
199
|
+
7,
|
|
200
|
+
"std",
|
|
201
|
+
"clamp"
|
|
202
|
+
],
|
|
203
|
+
[
|
|
204
|
+
[
|
|
205
|
+
1,
|
|
206
|
+
"px",
|
|
207
|
+
"/",
|
|
208
|
+
[
|
|
209
|
+
6,
|
|
210
|
+
[
|
|
211
|
+
7,
|
|
212
|
+
"std",
|
|
213
|
+
"max"
|
|
214
|
+
],
|
|
215
|
+
["qx", [5, "1e-9"]]
|
|
216
|
+
]
|
|
217
|
+
],
|
|
218
|
+
[5, "0"],
|
|
219
|
+
[5, "1"]
|
|
220
|
+
]
|
|
221
|
+
]
|
|
222
|
+
]
|
|
223
|
+
]
|
|
224
|
+
],
|
|
225
|
+
[
|
|
226
|
+
13,
|
|
227
|
+
"by",
|
|
228
|
+
[
|
|
229
|
+
1,
|
|
230
|
+
"py",
|
|
231
|
+
"-",
|
|
232
|
+
"qy"
|
|
233
|
+
]
|
|
234
|
+
],
|
|
235
|
+
[
|
|
236
|
+
13,
|
|
237
|
+
"dSq",
|
|
238
|
+
[
|
|
239
|
+
6,
|
|
240
|
+
[
|
|
241
|
+
7,
|
|
242
|
+
"std",
|
|
243
|
+
"min"
|
|
244
|
+
],
|
|
245
|
+
[[
|
|
246
|
+
1,
|
|
247
|
+
[
|
|
248
|
+
1,
|
|
249
|
+
"ax",
|
|
250
|
+
"*",
|
|
251
|
+
"ax"
|
|
252
|
+
],
|
|
253
|
+
"+",
|
|
254
|
+
[
|
|
255
|
+
1,
|
|
256
|
+
"ay",
|
|
257
|
+
"*",
|
|
258
|
+
"ay"
|
|
259
|
+
]
|
|
260
|
+
], [
|
|
261
|
+
1,
|
|
262
|
+
[
|
|
263
|
+
1,
|
|
264
|
+
"bx",
|
|
265
|
+
"*",
|
|
266
|
+
"bx"
|
|
267
|
+
],
|
|
268
|
+
"+",
|
|
269
|
+
[
|
|
270
|
+
1,
|
|
271
|
+
"by",
|
|
272
|
+
"*",
|
|
273
|
+
"by"
|
|
274
|
+
]
|
|
275
|
+
]]
|
|
276
|
+
]
|
|
277
|
+
],
|
|
278
|
+
[
|
|
279
|
+
13,
|
|
280
|
+
"sA",
|
|
281
|
+
[
|
|
282
|
+
1,
|
|
283
|
+
[
|
|
284
|
+
1,
|
|
285
|
+
"py",
|
|
286
|
+
"*",
|
|
287
|
+
"qx"
|
|
288
|
+
],
|
|
289
|
+
"-",
|
|
290
|
+
[
|
|
291
|
+
1,
|
|
292
|
+
"px",
|
|
293
|
+
"*",
|
|
294
|
+
"qy"
|
|
295
|
+
]
|
|
296
|
+
]
|
|
297
|
+
],
|
|
298
|
+
[
|
|
299
|
+
13,
|
|
300
|
+
"sB",
|
|
301
|
+
[
|
|
302
|
+
1,
|
|
303
|
+
"qy",
|
|
304
|
+
"-",
|
|
305
|
+
"py"
|
|
306
|
+
]
|
|
307
|
+
],
|
|
308
|
+
[
|
|
309
|
+
13,
|
|
310
|
+
"inside",
|
|
311
|
+
[
|
|
312
|
+
1,
|
|
313
|
+
[
|
|
314
|
+
6,
|
|
315
|
+
[
|
|
316
|
+
7,
|
|
317
|
+
"std",
|
|
318
|
+
"min"
|
|
319
|
+
],
|
|
320
|
+
["sA", "sB"]
|
|
321
|
+
],
|
|
322
|
+
">",
|
|
323
|
+
[5, "0"]
|
|
324
|
+
]
|
|
325
|
+
],
|
|
326
|
+
[10, [
|
|
327
|
+
6,
|
|
328
|
+
[
|
|
329
|
+
7,
|
|
330
|
+
"std",
|
|
331
|
+
"select"
|
|
332
|
+
],
|
|
333
|
+
[
|
|
334
|
+
[
|
|
335
|
+
6,
|
|
336
|
+
[
|
|
337
|
+
7,
|
|
338
|
+
"std",
|
|
339
|
+
"sqrt"
|
|
340
|
+
],
|
|
341
|
+
["dSq"]
|
|
342
|
+
],
|
|
343
|
+
[
|
|
344
|
+
4,
|
|
345
|
+
"-",
|
|
346
|
+
[
|
|
347
|
+
6,
|
|
348
|
+
[
|
|
349
|
+
7,
|
|
350
|
+
"std",
|
|
351
|
+
"sqrt"
|
|
352
|
+
],
|
|
353
|
+
["dSq"]
|
|
354
|
+
]
|
|
355
|
+
],
|
|
356
|
+
"inside"
|
|
357
|
+
]
|
|
358
|
+
]]
|
|
359
|
+
]],
|
|
360
|
+
"externalNames": ["std"]
|
|
361
|
+
},
|
|
362
|
+
externals: () => ({ std: std_exports })
|
|
363
|
+
}) && $.f)({})).$name("agentArrowSdf");
|
|
364
|
+
const capsuleSdf = src_default.fn([
|
|
365
|
+
f32,
|
|
366
|
+
f32,
|
|
367
|
+
f32,
|
|
368
|
+
f32
|
|
369
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((t, n, hl, r) => {
|
|
370
|
+
"use gpu";
|
|
371
|
+
const tc = __tsover_sub(t, clamp(t, -hl, hl));
|
|
372
|
+
return __tsover_sub(sqrt(__tsover_add(__tsover_mul(tc, tc), __tsover_mul(n, n))), r);
|
|
373
|
+
}), {
|
|
374
|
+
v: 1,
|
|
375
|
+
name: void 0,
|
|
376
|
+
ast: {
|
|
377
|
+
"params": [
|
|
378
|
+
{
|
|
379
|
+
"type": "i",
|
|
380
|
+
"name": "t"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"type": "i",
|
|
384
|
+
"name": "n"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"type": "i",
|
|
388
|
+
"name": "hl"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"type": "i",
|
|
392
|
+
"name": "r"
|
|
393
|
+
}
|
|
394
|
+
],
|
|
395
|
+
"body": [0, [[
|
|
396
|
+
13,
|
|
397
|
+
"tc",
|
|
398
|
+
[
|
|
399
|
+
1,
|
|
400
|
+
"t",
|
|
401
|
+
"-",
|
|
402
|
+
[
|
|
403
|
+
6,
|
|
404
|
+
[
|
|
405
|
+
7,
|
|
406
|
+
"std",
|
|
407
|
+
"clamp"
|
|
408
|
+
],
|
|
409
|
+
[
|
|
410
|
+
"t",
|
|
411
|
+
[
|
|
412
|
+
4,
|
|
413
|
+
"-",
|
|
414
|
+
"hl"
|
|
415
|
+
],
|
|
416
|
+
"hl"
|
|
417
|
+
]
|
|
418
|
+
]
|
|
419
|
+
]
|
|
420
|
+
], [10, [
|
|
421
|
+
1,
|
|
422
|
+
[
|
|
423
|
+
6,
|
|
424
|
+
[
|
|
425
|
+
7,
|
|
426
|
+
"std",
|
|
427
|
+
"sqrt"
|
|
428
|
+
],
|
|
429
|
+
[[
|
|
430
|
+
1,
|
|
431
|
+
[
|
|
432
|
+
1,
|
|
433
|
+
"tc",
|
|
434
|
+
"*",
|
|
435
|
+
"tc"
|
|
436
|
+
],
|
|
437
|
+
"+",
|
|
438
|
+
[
|
|
439
|
+
1,
|
|
440
|
+
"n",
|
|
441
|
+
"*",
|
|
442
|
+
"n"
|
|
443
|
+
]
|
|
444
|
+
]]
|
|
445
|
+
],
|
|
446
|
+
"-",
|
|
447
|
+
"r"
|
|
448
|
+
]]]],
|
|
449
|
+
"externalNames": ["std"]
|
|
450
|
+
},
|
|
451
|
+
externals: () => ({ std: std_exports })
|
|
452
|
+
}) && $.f)({})).$name("agentCapsuleSdf");
|
|
453
|
+
const boxSdf = src_default.fn([
|
|
454
|
+
f32,
|
|
455
|
+
f32,
|
|
456
|
+
f32,
|
|
457
|
+
f32
|
|
458
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((t, n, hl, hw) => {
|
|
459
|
+
"use gpu";
|
|
460
|
+
const qx = __tsover_sub(abs(t), hl);
|
|
461
|
+
const qy = __tsover_sub(abs(n), hw);
|
|
462
|
+
const ox = max(qx, 0);
|
|
463
|
+
const oy = max(qy, 0);
|
|
464
|
+
return __tsover_add(sqrt(__tsover_add(__tsover_mul(ox, ox), __tsover_mul(oy, oy))), min(max(qx, qy), 0));
|
|
465
|
+
}), {
|
|
466
|
+
v: 1,
|
|
467
|
+
name: void 0,
|
|
468
|
+
ast: {
|
|
469
|
+
"params": [
|
|
470
|
+
{
|
|
471
|
+
"type": "i",
|
|
472
|
+
"name": "t"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"type": "i",
|
|
476
|
+
"name": "n"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"type": "i",
|
|
480
|
+
"name": "hl"
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"type": "i",
|
|
484
|
+
"name": "hw"
|
|
485
|
+
}
|
|
486
|
+
],
|
|
487
|
+
"body": [0, [
|
|
488
|
+
[
|
|
489
|
+
13,
|
|
490
|
+
"qx",
|
|
491
|
+
[
|
|
492
|
+
1,
|
|
493
|
+
[
|
|
494
|
+
6,
|
|
495
|
+
[
|
|
496
|
+
7,
|
|
497
|
+
"std",
|
|
498
|
+
"abs"
|
|
499
|
+
],
|
|
500
|
+
["t"]
|
|
501
|
+
],
|
|
502
|
+
"-",
|
|
503
|
+
"hl"
|
|
504
|
+
]
|
|
505
|
+
],
|
|
506
|
+
[
|
|
507
|
+
13,
|
|
508
|
+
"qy",
|
|
509
|
+
[
|
|
510
|
+
1,
|
|
511
|
+
[
|
|
512
|
+
6,
|
|
513
|
+
[
|
|
514
|
+
7,
|
|
515
|
+
"std",
|
|
516
|
+
"abs"
|
|
517
|
+
],
|
|
518
|
+
["n"]
|
|
519
|
+
],
|
|
520
|
+
"-",
|
|
521
|
+
"hw"
|
|
522
|
+
]
|
|
523
|
+
],
|
|
524
|
+
[
|
|
525
|
+
13,
|
|
526
|
+
"ox",
|
|
527
|
+
[
|
|
528
|
+
6,
|
|
529
|
+
[
|
|
530
|
+
7,
|
|
531
|
+
"std",
|
|
532
|
+
"max"
|
|
533
|
+
],
|
|
534
|
+
["qx", [5, "0"]]
|
|
535
|
+
]
|
|
536
|
+
],
|
|
537
|
+
[
|
|
538
|
+
13,
|
|
539
|
+
"oy",
|
|
540
|
+
[
|
|
541
|
+
6,
|
|
542
|
+
[
|
|
543
|
+
7,
|
|
544
|
+
"std",
|
|
545
|
+
"max"
|
|
546
|
+
],
|
|
547
|
+
["qy", [5, "0"]]
|
|
548
|
+
]
|
|
549
|
+
],
|
|
550
|
+
[10, [
|
|
551
|
+
1,
|
|
552
|
+
[
|
|
553
|
+
6,
|
|
554
|
+
[
|
|
555
|
+
7,
|
|
556
|
+
"std",
|
|
557
|
+
"sqrt"
|
|
558
|
+
],
|
|
559
|
+
[[
|
|
560
|
+
1,
|
|
561
|
+
[
|
|
562
|
+
1,
|
|
563
|
+
"ox",
|
|
564
|
+
"*",
|
|
565
|
+
"ox"
|
|
566
|
+
],
|
|
567
|
+
"+",
|
|
568
|
+
[
|
|
569
|
+
1,
|
|
570
|
+
"oy",
|
|
571
|
+
"*",
|
|
572
|
+
"oy"
|
|
573
|
+
]
|
|
574
|
+
]]
|
|
575
|
+
],
|
|
576
|
+
"+",
|
|
577
|
+
[
|
|
578
|
+
6,
|
|
579
|
+
[
|
|
580
|
+
7,
|
|
581
|
+
"std",
|
|
582
|
+
"min"
|
|
583
|
+
],
|
|
584
|
+
[[
|
|
585
|
+
6,
|
|
586
|
+
[
|
|
587
|
+
7,
|
|
588
|
+
"std",
|
|
589
|
+
"max"
|
|
590
|
+
],
|
|
591
|
+
["qx", "qy"]
|
|
592
|
+
], [5, "0"]]
|
|
593
|
+
]
|
|
594
|
+
]]
|
|
595
|
+
]],
|
|
596
|
+
"externalNames": ["std"]
|
|
597
|
+
},
|
|
598
|
+
externals: () => ({ std: std_exports })
|
|
599
|
+
}) && $.f)({})).$name("agentBoxSdf");
|
|
600
|
+
const AGENT_SHAPES = {
|
|
601
|
+
arrow: {
|
|
602
|
+
kind: 1,
|
|
603
|
+
hl: 2.3,
|
|
604
|
+
hw: 1,
|
|
605
|
+
soft: 0,
|
|
606
|
+
ext: 2.65
|
|
607
|
+
},
|
|
608
|
+
streak: {
|
|
609
|
+
kind: 0,
|
|
610
|
+
hl: 1.7,
|
|
611
|
+
hw: .8,
|
|
612
|
+
soft: 0,
|
|
613
|
+
ext: 2.6
|
|
614
|
+
},
|
|
615
|
+
dot: {
|
|
616
|
+
kind: 0,
|
|
617
|
+
hl: 0,
|
|
618
|
+
hw: 1,
|
|
619
|
+
soft: 0,
|
|
620
|
+
ext: 1.2
|
|
621
|
+
},
|
|
622
|
+
square: {
|
|
623
|
+
kind: 2,
|
|
624
|
+
hl: .9,
|
|
625
|
+
hw: .9,
|
|
626
|
+
soft: 0,
|
|
627
|
+
ext: 1.5
|
|
628
|
+
},
|
|
629
|
+
glow: {
|
|
630
|
+
kind: 0,
|
|
631
|
+
hl: 0,
|
|
632
|
+
hw: 0,
|
|
633
|
+
soft: 1,
|
|
634
|
+
ext: 2.1
|
|
635
|
+
}
|
|
636
|
+
};
|
|
637
|
+
function resolveAgentShape(name, fallback) {
|
|
638
|
+
return typeof name === "string" && name in AGENT_SHAPES ? name : fallback;
|
|
639
|
+
}
|
|
640
|
+
const orientedShapeOptions = [
|
|
641
|
+
{
|
|
642
|
+
label: "Arrow",
|
|
643
|
+
value: "arrow"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
label: "Streak",
|
|
647
|
+
value: "streak"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
label: "Dot",
|
|
651
|
+
value: "dot"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
label: "Square",
|
|
655
|
+
value: "square"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
label: "Glow",
|
|
659
|
+
value: "glow"
|
|
660
|
+
}
|
|
661
|
+
];
|
|
662
|
+
const pointShapeOptions = [
|
|
663
|
+
{
|
|
664
|
+
label: "Dot",
|
|
665
|
+
value: "dot"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
label: "Square",
|
|
669
|
+
value: "square"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
label: "Glow",
|
|
673
|
+
value: "glow"
|
|
674
|
+
}
|
|
675
|
+
];
|
|
676
|
+
function makeAgentWeightFn(shape) {
|
|
677
|
+
const s = AGENT_SHAPES[resolveAgentShape(shape, "dot")];
|
|
678
|
+
const sdFn = s.kind === 1 ? arrowSdf : s.kind === 2 ? boxSdf : capsuleSdf;
|
|
679
|
+
const HL = s.hl;
|
|
680
|
+
const HW = s.hw;
|
|
681
|
+
return src_default.fn([
|
|
682
|
+
f32,
|
|
683
|
+
f32,
|
|
684
|
+
f32,
|
|
685
|
+
f32,
|
|
686
|
+
f32
|
|
687
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((t, n, bodyR, aaW, soft) => {
|
|
688
|
+
"use gpu";
|
|
689
|
+
const sd = sdFn(t, n, __tsover_mul(bodyR, HL), __tsover_mul(bodyR, HW));
|
|
690
|
+
const wHard = __tsover_sub(1, smoothstep(-aaW, aaW, sd));
|
|
691
|
+
const gq = __tsover_div(max(sd, 0), max(__tsover_mul(bodyR, .75), 1e-6));
|
|
692
|
+
return mix(wHard, exp(__tsover_mul(__tsover_mul(gq, gq), -1)), soft);
|
|
693
|
+
}), {
|
|
694
|
+
v: 1,
|
|
695
|
+
name: void 0,
|
|
696
|
+
ast: {
|
|
697
|
+
"params": [
|
|
698
|
+
{
|
|
699
|
+
"type": "i",
|
|
700
|
+
"name": "t"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"type": "i",
|
|
704
|
+
"name": "n"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"type": "i",
|
|
708
|
+
"name": "bodyR"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"type": "i",
|
|
712
|
+
"name": "aaW"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"type": "i",
|
|
716
|
+
"name": "soft"
|
|
717
|
+
}
|
|
718
|
+
],
|
|
719
|
+
"body": [0, [
|
|
720
|
+
[
|
|
721
|
+
13,
|
|
722
|
+
"sd",
|
|
723
|
+
[
|
|
724
|
+
6,
|
|
725
|
+
"sdFn",
|
|
726
|
+
[
|
|
727
|
+
"t",
|
|
728
|
+
"n",
|
|
729
|
+
[
|
|
730
|
+
1,
|
|
731
|
+
"bodyR",
|
|
732
|
+
"*",
|
|
733
|
+
"HL"
|
|
734
|
+
],
|
|
735
|
+
[
|
|
736
|
+
1,
|
|
737
|
+
"bodyR",
|
|
738
|
+
"*",
|
|
739
|
+
"HW"
|
|
740
|
+
]
|
|
741
|
+
]
|
|
742
|
+
]
|
|
743
|
+
],
|
|
744
|
+
[
|
|
745
|
+
13,
|
|
746
|
+
"wHard",
|
|
747
|
+
[
|
|
748
|
+
1,
|
|
749
|
+
[5, "1"],
|
|
750
|
+
"-",
|
|
751
|
+
[
|
|
752
|
+
6,
|
|
753
|
+
[
|
|
754
|
+
7,
|
|
755
|
+
"std",
|
|
756
|
+
"smoothstep"
|
|
757
|
+
],
|
|
758
|
+
[
|
|
759
|
+
[
|
|
760
|
+
4,
|
|
761
|
+
"-",
|
|
762
|
+
"aaW"
|
|
763
|
+
],
|
|
764
|
+
"aaW",
|
|
765
|
+
"sd"
|
|
766
|
+
]
|
|
767
|
+
]
|
|
768
|
+
]
|
|
769
|
+
],
|
|
770
|
+
[
|
|
771
|
+
13,
|
|
772
|
+
"gq",
|
|
773
|
+
[
|
|
774
|
+
1,
|
|
775
|
+
[
|
|
776
|
+
6,
|
|
777
|
+
[
|
|
778
|
+
7,
|
|
779
|
+
"std",
|
|
780
|
+
"max"
|
|
781
|
+
],
|
|
782
|
+
["sd", [5, "0"]]
|
|
783
|
+
],
|
|
784
|
+
"/",
|
|
785
|
+
[
|
|
786
|
+
6,
|
|
787
|
+
[
|
|
788
|
+
7,
|
|
789
|
+
"std",
|
|
790
|
+
"max"
|
|
791
|
+
],
|
|
792
|
+
[[
|
|
793
|
+
1,
|
|
794
|
+
"bodyR",
|
|
795
|
+
"*",
|
|
796
|
+
[5, "0.75"]
|
|
797
|
+
], [5, "0.000001"]]
|
|
798
|
+
]
|
|
799
|
+
]
|
|
800
|
+
],
|
|
801
|
+
[
|
|
802
|
+
13,
|
|
803
|
+
"wSoft",
|
|
804
|
+
[
|
|
805
|
+
6,
|
|
806
|
+
[
|
|
807
|
+
7,
|
|
808
|
+
"std",
|
|
809
|
+
"exp"
|
|
810
|
+
],
|
|
811
|
+
[[
|
|
812
|
+
1,
|
|
813
|
+
[
|
|
814
|
+
1,
|
|
815
|
+
"gq",
|
|
816
|
+
"*",
|
|
817
|
+
"gq"
|
|
818
|
+
],
|
|
819
|
+
"*",
|
|
820
|
+
[
|
|
821
|
+
4,
|
|
822
|
+
"-",
|
|
823
|
+
[5, "1"]
|
|
824
|
+
]
|
|
825
|
+
]]
|
|
826
|
+
]
|
|
827
|
+
],
|
|
828
|
+
[10, [
|
|
829
|
+
6,
|
|
830
|
+
[
|
|
831
|
+
7,
|
|
832
|
+
"std",
|
|
833
|
+
"mix"
|
|
834
|
+
],
|
|
835
|
+
[
|
|
836
|
+
"wHard",
|
|
837
|
+
"wSoft",
|
|
838
|
+
"soft"
|
|
839
|
+
]
|
|
840
|
+
]]
|
|
841
|
+
]],
|
|
842
|
+
"externalNames": [
|
|
843
|
+
"sdFn",
|
|
844
|
+
"HL",
|
|
845
|
+
"HW",
|
|
846
|
+
"std"
|
|
847
|
+
]
|
|
848
|
+
},
|
|
849
|
+
externals: () => ({
|
|
850
|
+
sdFn,
|
|
851
|
+
HL,
|
|
852
|
+
HW,
|
|
853
|
+
std: std_exports
|
|
854
|
+
})
|
|
855
|
+
}) && $.f)({})).$name("agentWeight");
|
|
856
|
+
}
|
|
857
|
+
function makeAgentTexelWeightFn(shape) {
|
|
858
|
+
const s = AGENT_SHAPES[resolveAgentShape(shape, "dot")];
|
|
859
|
+
const sdFn = s.kind === 1 ? arrowSdf : s.kind === 2 ? boxSdf : capsuleSdf;
|
|
860
|
+
const HL = s.hl;
|
|
861
|
+
const HW = s.hw;
|
|
862
|
+
const isDisc = s.kind === 0 && s.hl === 0;
|
|
863
|
+
const soft = s.soft === 1;
|
|
864
|
+
if (isDisc) return soft ? src_default.fn([
|
|
865
|
+
f32,
|
|
866
|
+
f32,
|
|
867
|
+
f32,
|
|
868
|
+
f32,
|
|
869
|
+
f32
|
|
870
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((q, _t, _n, bodyR, _aaW) => {
|
|
871
|
+
"use gpu";
|
|
872
|
+
const sd = __tsover_mul(bodyR, __tsover_sub(sqrt(q), HW));
|
|
873
|
+
const gq = __tsover_div(max(sd, 0), max(__tsover_mul(bodyR, .75), 1e-6));
|
|
874
|
+
return exp(__tsover_mul(__tsover_mul(gq, gq), -1));
|
|
875
|
+
}), {
|
|
876
|
+
v: 1,
|
|
877
|
+
name: void 0,
|
|
878
|
+
ast: {
|
|
879
|
+
"params": [
|
|
880
|
+
{
|
|
881
|
+
"type": "i",
|
|
882
|
+
"name": "q"
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"type": "i",
|
|
886
|
+
"name": "_t"
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"type": "i",
|
|
890
|
+
"name": "_n"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"type": "i",
|
|
894
|
+
"name": "bodyR"
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"type": "i",
|
|
898
|
+
"name": "_aaW"
|
|
899
|
+
}
|
|
900
|
+
],
|
|
901
|
+
"body": [0, [
|
|
902
|
+
[
|
|
903
|
+
13,
|
|
904
|
+
"sd",
|
|
905
|
+
[
|
|
906
|
+
1,
|
|
907
|
+
"bodyR",
|
|
908
|
+
"*",
|
|
909
|
+
[
|
|
910
|
+
1,
|
|
911
|
+
[
|
|
912
|
+
6,
|
|
913
|
+
[
|
|
914
|
+
7,
|
|
915
|
+
"std",
|
|
916
|
+
"sqrt"
|
|
917
|
+
],
|
|
918
|
+
["q"]
|
|
919
|
+
],
|
|
920
|
+
"-",
|
|
921
|
+
"HW"
|
|
922
|
+
]
|
|
923
|
+
]
|
|
924
|
+
],
|
|
925
|
+
[
|
|
926
|
+
13,
|
|
927
|
+
"gq",
|
|
928
|
+
[
|
|
929
|
+
1,
|
|
930
|
+
[
|
|
931
|
+
6,
|
|
932
|
+
[
|
|
933
|
+
7,
|
|
934
|
+
"std",
|
|
935
|
+
"max"
|
|
936
|
+
],
|
|
937
|
+
["sd", [5, "0"]]
|
|
938
|
+
],
|
|
939
|
+
"/",
|
|
940
|
+
[
|
|
941
|
+
6,
|
|
942
|
+
[
|
|
943
|
+
7,
|
|
944
|
+
"std",
|
|
945
|
+
"max"
|
|
946
|
+
],
|
|
947
|
+
[[
|
|
948
|
+
1,
|
|
949
|
+
"bodyR",
|
|
950
|
+
"*",
|
|
951
|
+
[5, "0.75"]
|
|
952
|
+
], [5, "0.000001"]]
|
|
953
|
+
]
|
|
954
|
+
]
|
|
955
|
+
],
|
|
956
|
+
[10, [
|
|
957
|
+
6,
|
|
958
|
+
[
|
|
959
|
+
7,
|
|
960
|
+
"std",
|
|
961
|
+
"exp"
|
|
962
|
+
],
|
|
963
|
+
[[
|
|
964
|
+
1,
|
|
965
|
+
[
|
|
966
|
+
1,
|
|
967
|
+
"gq",
|
|
968
|
+
"*",
|
|
969
|
+
"gq"
|
|
970
|
+
],
|
|
971
|
+
"*",
|
|
972
|
+
[
|
|
973
|
+
4,
|
|
974
|
+
"-",
|
|
975
|
+
[5, "1"]
|
|
976
|
+
]
|
|
977
|
+
]]
|
|
978
|
+
]]
|
|
979
|
+
]],
|
|
980
|
+
"externalNames": ["std", "HW"]
|
|
981
|
+
},
|
|
982
|
+
externals: () => ({
|
|
983
|
+
std: std_exports,
|
|
984
|
+
HW
|
|
985
|
+
})
|
|
986
|
+
}) && $.f)({})).$name("agentTexelWeight") : src_default.fn([
|
|
987
|
+
f32,
|
|
988
|
+
f32,
|
|
989
|
+
f32,
|
|
990
|
+
f32,
|
|
991
|
+
f32
|
|
992
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((q, _t, _n, bodyR, aaW) => {
|
|
993
|
+
"use gpu";
|
|
994
|
+
const sd = __tsover_mul(bodyR, __tsover_sub(sqrt(q), HW));
|
|
995
|
+
return __tsover_sub(1, smoothstep(-aaW, aaW, sd));
|
|
996
|
+
}), {
|
|
997
|
+
v: 1,
|
|
998
|
+
name: void 0,
|
|
999
|
+
ast: {
|
|
1000
|
+
"params": [
|
|
1001
|
+
{
|
|
1002
|
+
"type": "i",
|
|
1003
|
+
"name": "q"
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"type": "i",
|
|
1007
|
+
"name": "_t"
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
"type": "i",
|
|
1011
|
+
"name": "_n"
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
"type": "i",
|
|
1015
|
+
"name": "bodyR"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"type": "i",
|
|
1019
|
+
"name": "aaW"
|
|
1020
|
+
}
|
|
1021
|
+
],
|
|
1022
|
+
"body": [0, [[
|
|
1023
|
+
13,
|
|
1024
|
+
"sd",
|
|
1025
|
+
[
|
|
1026
|
+
1,
|
|
1027
|
+
"bodyR",
|
|
1028
|
+
"*",
|
|
1029
|
+
[
|
|
1030
|
+
1,
|
|
1031
|
+
[
|
|
1032
|
+
6,
|
|
1033
|
+
[
|
|
1034
|
+
7,
|
|
1035
|
+
"std",
|
|
1036
|
+
"sqrt"
|
|
1037
|
+
],
|
|
1038
|
+
["q"]
|
|
1039
|
+
],
|
|
1040
|
+
"-",
|
|
1041
|
+
"HW"
|
|
1042
|
+
]
|
|
1043
|
+
]
|
|
1044
|
+
], [10, [
|
|
1045
|
+
1,
|
|
1046
|
+
[5, "1"],
|
|
1047
|
+
"-",
|
|
1048
|
+
[
|
|
1049
|
+
6,
|
|
1050
|
+
[
|
|
1051
|
+
7,
|
|
1052
|
+
"std",
|
|
1053
|
+
"smoothstep"
|
|
1054
|
+
],
|
|
1055
|
+
[
|
|
1056
|
+
[
|
|
1057
|
+
4,
|
|
1058
|
+
"-",
|
|
1059
|
+
"aaW"
|
|
1060
|
+
],
|
|
1061
|
+
"aaW",
|
|
1062
|
+
"sd"
|
|
1063
|
+
]
|
|
1064
|
+
]
|
|
1065
|
+
]]]],
|
|
1066
|
+
"externalNames": ["std", "HW"]
|
|
1067
|
+
},
|
|
1068
|
+
externals: () => ({
|
|
1069
|
+
std: std_exports,
|
|
1070
|
+
HW
|
|
1071
|
+
})
|
|
1072
|
+
}) && $.f)({})).$name("agentTexelWeight");
|
|
1073
|
+
return soft ? src_default.fn([
|
|
1074
|
+
f32,
|
|
1075
|
+
f32,
|
|
1076
|
+
f32,
|
|
1077
|
+
f32,
|
|
1078
|
+
f32
|
|
1079
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((_q, t, n, bodyR, _aaW) => {
|
|
1080
|
+
"use gpu";
|
|
1081
|
+
const sd = sdFn(t, n, __tsover_mul(bodyR, HL), __tsover_mul(bodyR, HW));
|
|
1082
|
+
const gq = __tsover_div(max(sd, 0), max(__tsover_mul(bodyR, .75), 1e-6));
|
|
1083
|
+
return exp(__tsover_mul(__tsover_mul(gq, gq), -1));
|
|
1084
|
+
}), {
|
|
1085
|
+
v: 1,
|
|
1086
|
+
name: void 0,
|
|
1087
|
+
ast: {
|
|
1088
|
+
"params": [
|
|
1089
|
+
{
|
|
1090
|
+
"type": "i",
|
|
1091
|
+
"name": "_q"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"type": "i",
|
|
1095
|
+
"name": "t"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"type": "i",
|
|
1099
|
+
"name": "n"
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"type": "i",
|
|
1103
|
+
"name": "bodyR"
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"type": "i",
|
|
1107
|
+
"name": "_aaW"
|
|
1108
|
+
}
|
|
1109
|
+
],
|
|
1110
|
+
"body": [0, [
|
|
1111
|
+
[
|
|
1112
|
+
13,
|
|
1113
|
+
"sd",
|
|
1114
|
+
[
|
|
1115
|
+
6,
|
|
1116
|
+
"sdFn",
|
|
1117
|
+
[
|
|
1118
|
+
"t",
|
|
1119
|
+
"n",
|
|
1120
|
+
[
|
|
1121
|
+
1,
|
|
1122
|
+
"bodyR",
|
|
1123
|
+
"*",
|
|
1124
|
+
"HL"
|
|
1125
|
+
],
|
|
1126
|
+
[
|
|
1127
|
+
1,
|
|
1128
|
+
"bodyR",
|
|
1129
|
+
"*",
|
|
1130
|
+
"HW"
|
|
1131
|
+
]
|
|
1132
|
+
]
|
|
1133
|
+
]
|
|
1134
|
+
],
|
|
1135
|
+
[
|
|
1136
|
+
13,
|
|
1137
|
+
"gq",
|
|
1138
|
+
[
|
|
1139
|
+
1,
|
|
1140
|
+
[
|
|
1141
|
+
6,
|
|
1142
|
+
[
|
|
1143
|
+
7,
|
|
1144
|
+
"std",
|
|
1145
|
+
"max"
|
|
1146
|
+
],
|
|
1147
|
+
["sd", [5, "0"]]
|
|
1148
|
+
],
|
|
1149
|
+
"/",
|
|
1150
|
+
[
|
|
1151
|
+
6,
|
|
1152
|
+
[
|
|
1153
|
+
7,
|
|
1154
|
+
"std",
|
|
1155
|
+
"max"
|
|
1156
|
+
],
|
|
1157
|
+
[[
|
|
1158
|
+
1,
|
|
1159
|
+
"bodyR",
|
|
1160
|
+
"*",
|
|
1161
|
+
[5, "0.75"]
|
|
1162
|
+
], [5, "0.000001"]]
|
|
1163
|
+
]
|
|
1164
|
+
]
|
|
1165
|
+
],
|
|
1166
|
+
[10, [
|
|
1167
|
+
6,
|
|
1168
|
+
[
|
|
1169
|
+
7,
|
|
1170
|
+
"std",
|
|
1171
|
+
"exp"
|
|
1172
|
+
],
|
|
1173
|
+
[[
|
|
1174
|
+
1,
|
|
1175
|
+
[
|
|
1176
|
+
1,
|
|
1177
|
+
"gq",
|
|
1178
|
+
"*",
|
|
1179
|
+
"gq"
|
|
1180
|
+
],
|
|
1181
|
+
"*",
|
|
1182
|
+
[
|
|
1183
|
+
4,
|
|
1184
|
+
"-",
|
|
1185
|
+
[5, "1"]
|
|
1186
|
+
]
|
|
1187
|
+
]]
|
|
1188
|
+
]]
|
|
1189
|
+
]],
|
|
1190
|
+
"externalNames": [
|
|
1191
|
+
"sdFn",
|
|
1192
|
+
"HL",
|
|
1193
|
+
"HW",
|
|
1194
|
+
"std"
|
|
1195
|
+
]
|
|
1196
|
+
},
|
|
1197
|
+
externals: () => ({
|
|
1198
|
+
sdFn,
|
|
1199
|
+
HL,
|
|
1200
|
+
HW,
|
|
1201
|
+
std: std_exports
|
|
1202
|
+
})
|
|
1203
|
+
}) && $.f)({})).$name("agentTexelWeight") : src_default.fn([
|
|
1204
|
+
f32,
|
|
1205
|
+
f32,
|
|
1206
|
+
f32,
|
|
1207
|
+
f32,
|
|
1208
|
+
f32
|
|
1209
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((_q, t, n, bodyR, aaW) => {
|
|
1210
|
+
"use gpu";
|
|
1211
|
+
const sd = sdFn(t, n, __tsover_mul(bodyR, HL), __tsover_mul(bodyR, HW));
|
|
1212
|
+
return __tsover_sub(1, smoothstep(-aaW, aaW, sd));
|
|
1213
|
+
}), {
|
|
1214
|
+
v: 1,
|
|
1215
|
+
name: void 0,
|
|
1216
|
+
ast: {
|
|
1217
|
+
"params": [
|
|
1218
|
+
{
|
|
1219
|
+
"type": "i",
|
|
1220
|
+
"name": "_q"
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"type": "i",
|
|
1224
|
+
"name": "t"
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"type": "i",
|
|
1228
|
+
"name": "n"
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
"type": "i",
|
|
1232
|
+
"name": "bodyR"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"type": "i",
|
|
1236
|
+
"name": "aaW"
|
|
1237
|
+
}
|
|
1238
|
+
],
|
|
1239
|
+
"body": [0, [[
|
|
1240
|
+
13,
|
|
1241
|
+
"sd",
|
|
1242
|
+
[
|
|
1243
|
+
6,
|
|
1244
|
+
"sdFn",
|
|
1245
|
+
[
|
|
1246
|
+
"t",
|
|
1247
|
+
"n",
|
|
1248
|
+
[
|
|
1249
|
+
1,
|
|
1250
|
+
"bodyR",
|
|
1251
|
+
"*",
|
|
1252
|
+
"HL"
|
|
1253
|
+
],
|
|
1254
|
+
[
|
|
1255
|
+
1,
|
|
1256
|
+
"bodyR",
|
|
1257
|
+
"*",
|
|
1258
|
+
"HW"
|
|
1259
|
+
]
|
|
1260
|
+
]
|
|
1261
|
+
]
|
|
1262
|
+
], [10, [
|
|
1263
|
+
1,
|
|
1264
|
+
[5, "1"],
|
|
1265
|
+
"-",
|
|
1266
|
+
[
|
|
1267
|
+
6,
|
|
1268
|
+
[
|
|
1269
|
+
7,
|
|
1270
|
+
"std",
|
|
1271
|
+
"smoothstep"
|
|
1272
|
+
],
|
|
1273
|
+
[
|
|
1274
|
+
[
|
|
1275
|
+
4,
|
|
1276
|
+
"-",
|
|
1277
|
+
"aaW"
|
|
1278
|
+
],
|
|
1279
|
+
"aaW",
|
|
1280
|
+
"sd"
|
|
1281
|
+
]
|
|
1282
|
+
]
|
|
1283
|
+
]]]],
|
|
1284
|
+
"externalNames": [
|
|
1285
|
+
"sdFn",
|
|
1286
|
+
"HL",
|
|
1287
|
+
"HW",
|
|
1288
|
+
"std"
|
|
1289
|
+
]
|
|
1290
|
+
},
|
|
1291
|
+
externals: () => ({
|
|
1292
|
+
sdFn,
|
|
1293
|
+
HL,
|
|
1294
|
+
HW,
|
|
1295
|
+
std: std_exports
|
|
1296
|
+
})
|
|
1297
|
+
}) && $.f)({})).$name("agentTexelWeight");
|
|
1298
|
+
}
|
|
1299
|
+
const cursorFalloff = src_default.fn([vec2f, f32], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((delta, radSq) => {
|
|
1300
|
+
"use gpu";
|
|
1301
|
+
const dl = dot(delta, delta);
|
|
1302
|
+
return exp(__tsover_mul(__tsover_div(dl, max(radSq, 1e-5)), -1));
|
|
1303
|
+
}), {
|
|
1304
|
+
v: 1,
|
|
1305
|
+
name: void 0,
|
|
1306
|
+
ast: {
|
|
1307
|
+
"params": [{
|
|
1308
|
+
"type": "i",
|
|
1309
|
+
"name": "delta"
|
|
1310
|
+
}, {
|
|
1311
|
+
"type": "i",
|
|
1312
|
+
"name": "radSq"
|
|
1313
|
+
}],
|
|
1314
|
+
"body": [0, [[
|
|
1315
|
+
13,
|
|
1316
|
+
"dl",
|
|
1317
|
+
[
|
|
1318
|
+
6,
|
|
1319
|
+
[
|
|
1320
|
+
7,
|
|
1321
|
+
"std",
|
|
1322
|
+
"dot"
|
|
1323
|
+
],
|
|
1324
|
+
["delta", "delta"]
|
|
1325
|
+
]
|
|
1326
|
+
], [10, [
|
|
1327
|
+
6,
|
|
1328
|
+
[
|
|
1329
|
+
7,
|
|
1330
|
+
"std",
|
|
1331
|
+
"exp"
|
|
1332
|
+
],
|
|
1333
|
+
[[
|
|
1334
|
+
1,
|
|
1335
|
+
[
|
|
1336
|
+
1,
|
|
1337
|
+
"dl",
|
|
1338
|
+
"/",
|
|
1339
|
+
[
|
|
1340
|
+
6,
|
|
1341
|
+
[
|
|
1342
|
+
7,
|
|
1343
|
+
"std",
|
|
1344
|
+
"max"
|
|
1345
|
+
],
|
|
1346
|
+
["radSq", [5, "0.00001"]]
|
|
1347
|
+
]
|
|
1348
|
+
],
|
|
1349
|
+
"*",
|
|
1350
|
+
[
|
|
1351
|
+
4,
|
|
1352
|
+
"-",
|
|
1353
|
+
[5, "1"]
|
|
1354
|
+
]
|
|
1355
|
+
]]
|
|
1356
|
+
]]]],
|
|
1357
|
+
"externalNames": ["std"]
|
|
1358
|
+
},
|
|
1359
|
+
externals: () => ({ std: std_exports })
|
|
1360
|
+
}) && $.f)({})).$name("agentCursorFalloff");
|
|
1361
|
+
const cursorMagnet = src_default.fn([
|
|
1362
|
+
vec2f,
|
|
1363
|
+
f32,
|
|
1364
|
+
f32
|
|
1365
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((delta, radSq, force) => {
|
|
1366
|
+
"use gpu";
|
|
1367
|
+
const dl = max(length(delta), 1e-4);
|
|
1368
|
+
return delta.div(dl).mul(__tsover_mul(cursorFalloff(delta, radSq), force));
|
|
1369
|
+
}), {
|
|
1370
|
+
v: 1,
|
|
1371
|
+
name: void 0,
|
|
1372
|
+
ast: {
|
|
1373
|
+
"params": [
|
|
1374
|
+
{
|
|
1375
|
+
"type": "i",
|
|
1376
|
+
"name": "delta"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"type": "i",
|
|
1380
|
+
"name": "radSq"
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"type": "i",
|
|
1384
|
+
"name": "force"
|
|
1385
|
+
}
|
|
1386
|
+
],
|
|
1387
|
+
"body": [0, [[
|
|
1388
|
+
13,
|
|
1389
|
+
"dl",
|
|
1390
|
+
[
|
|
1391
|
+
6,
|
|
1392
|
+
[
|
|
1393
|
+
7,
|
|
1394
|
+
"std",
|
|
1395
|
+
"max"
|
|
1396
|
+
],
|
|
1397
|
+
[[
|
|
1398
|
+
6,
|
|
1399
|
+
[
|
|
1400
|
+
7,
|
|
1401
|
+
"std",
|
|
1402
|
+
"length"
|
|
1403
|
+
],
|
|
1404
|
+
["delta"]
|
|
1405
|
+
], [5, "0.0001"]]
|
|
1406
|
+
]
|
|
1407
|
+
], [10, [
|
|
1408
|
+
6,
|
|
1409
|
+
[
|
|
1410
|
+
7,
|
|
1411
|
+
[
|
|
1412
|
+
6,
|
|
1413
|
+
[
|
|
1414
|
+
7,
|
|
1415
|
+
"delta",
|
|
1416
|
+
"div"
|
|
1417
|
+
],
|
|
1418
|
+
["dl"]
|
|
1419
|
+
],
|
|
1420
|
+
"mul"
|
|
1421
|
+
],
|
|
1422
|
+
[[
|
|
1423
|
+
1,
|
|
1424
|
+
[
|
|
1425
|
+
6,
|
|
1426
|
+
"cursorFalloff",
|
|
1427
|
+
["delta", "radSq"]
|
|
1428
|
+
],
|
|
1429
|
+
"*",
|
|
1430
|
+
"force"
|
|
1431
|
+
]]
|
|
1432
|
+
]]]],
|
|
1433
|
+
"externalNames": ["std", "cursorFalloff"]
|
|
1434
|
+
},
|
|
1435
|
+
externals: () => ({
|
|
1436
|
+
std: std_exports,
|
|
1437
|
+
cursorFalloff
|
|
1438
|
+
})
|
|
1439
|
+
}) && $.f)({})).$name("agentCursorMagnet");
|
|
1440
|
+
export { makeAgentTexelWeightFn as a, pointShapeOptions as c, cursorMagnet as i, resolveAgentShape as l, agents_exports as n, makeAgentWeightFn as o, cursorFalloff as r, orientedShapeOptions as s, AGENT_SHAPES as t };
|