shaders 3.1.456 → 3.1.458

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.
Files changed (474) hide show
  1. package/dist/cli.js +2 -2
  2. package/dist/core/{AngularBlur-CIw_xeFr.js → AngularBlur-BzY7RJ8k.js} +16 -32
  3. package/dist/core/{Arc-Dh0gjBrJ.js → Arc-mmJuqIrG.js} +15 -26
  4. package/dist/core/{Ascii-CUk527uY.js → Ascii-D67jsGPT.js} +64 -165
  5. package/dist/core/{Aurora-A5yag1_A.js → Aurora-CpHlaOfW.js} +93 -289
  6. package/dist/core/{BarShift-BrOamln6.js → BarShift-B9wsOKYJ.js} +33 -68
  7. package/dist/core/{BarnDoors-D_lVAMPJ.js → BarnDoors-C7Uzc1at.js} +16 -28
  8. package/dist/core/{Beam-CgpfMTUq.js → Beam-8CoTk23e.js} +22 -62
  9. package/dist/core/{Bend-CRuu6NuH.js → Bend-BYVoLE8C.js} +50 -161
  10. package/dist/core/{Blob-1mhEIcv5.js → Blob--way9kNy.js} +62 -189
  11. package/dist/core/{BlockDissolve-B9xWZC6U.js → BlockDissolve-f5fwwXWH.js} +17 -32
  12. package/dist/core/{BlockNoise-Csb39Mqw.js → BlockNoise-BpIuLPlC.js} +17 -29
  13. package/dist/core/{BlueNoise-CnSe6lOE.js → BlueNoise-C2tYHQRB.js} +14 -23
  14. package/dist/core/{Blur-Bc8evwsz.js → Blur-CmE46Bvp.js} +41 -114
  15. package/dist/core/{Boids-C7NstB5L.js → Boids-BgsVOmp1.js} +227 -734
  16. package/dist/core/{BokehBlur-CWQm00ut.js → BokehBlur-CU5Qphip.js} +197 -722
  17. package/dist/core/{BrickPattern-DomddM0C.js → BrickPattern-BIpInb0P.js} +41 -99
  18. package/dist/core/{BrightnessContrast-Bs8AV0he.js → BrightnessContrast-BAJYnvFu.js} +12 -22
  19. package/dist/core/{BrushedMetal-D2X_nM8z.js → BrushedMetal-C4a9G-dt.js} +113 -358
  20. package/dist/core/{Bulge-CdhRTWSH.js → Bulge-C7eYFYDP.js} +19 -46
  21. package/dist/core/{CRTScreen-BxnPxDw9.js → CRTScreen-CfCxUiP4.js} +34 -94
  22. package/dist/core/{CarbonFiber-BFogRBFa.js → CarbonFiber-CDWj-Oc3.js} +123 -420
  23. package/dist/core/{Chalkboard-DEuq4TWm.js → Chalkboard-BfiyhSfN.js} +86 -212
  24. package/dist/core/{ChannelBlur-Oz40DKPZ.js → ChannelBlur-D2pxXWLQ.js} +17 -45
  25. package/dist/core/{CheckerWipe-yv4dK6n5.js → CheckerWipe-Cxy0pc7v.js} +18 -36
  26. package/dist/core/{Checkerboard-Ynfnt3oJ.js → Checkerboard-Bdaf19G4.js} +12 -17
  27. package/dist/core/{Chevron-CEwNP2vt.js → Chevron-BsdILsaY.js} +28 -57
  28. package/dist/core/{ChromaFlow-BXw1jQkn.js → ChromaFlow-DGTgGdzI.js} +31 -86
  29. package/dist/core/{ChromaticAberration-CWhYEGDU.js → ChromaticAberration-npr_Zzu7.js} +15 -30
  30. package/dist/core/{Chrome-DdV9RY9D.js → Chrome-DirY2YRZ.js} +156 -546
  31. package/dist/core/{Circle-DGvP0Svo.js → Circle-CLO08218.js} +15 -31
  32. package/dist/core/{ColorWheel-BCReEdLZ.js → ColorWheel-D5Hfl4t7.js} +57 -128
  33. package/dist/core/{CompressionArtifacts-Cm0iOzys.js → CompressionArtifacts-DVlRMU-H.js} +119 -374
  34. package/dist/core/{ConcentricSpin-B3GHzoS1.js → ConcentricSpin-Dls_rak9.js} +41 -98
  35. package/dist/core/{ConicGradient-C3zzgyV4.js → ConicGradient-BjVmRAul.js} +18 -31
  36. package/dist/core/{ContourLines-DDzxvg9k.js → ContourLines-BKcyS-lX.js} +37 -81
  37. package/dist/core/{CornerPin-VFPI_Jzq.js → CornerPin-CrTdyHSy.js} +96 -268
  38. package/dist/core/{Crescent-DL6EeZZp.js → Crescent-C77DCA2i.js} +14 -23
  39. package/dist/core/{Cross-DQIgZt-C.js → Cross-C8SURmac.js} +14 -23
  40. package/dist/core/{Crystal-CB_U2g2k.js → Crystal-WbJgiOqh.js} +206 -753
  41. package/dist/core/{CurlNoise-CFAQHy-5.js → CurlNoise-BiFV2K5L.js} +17 -34
  42. package/dist/core/{CursorRipples-C1hLNWzZ.js → CursorRipples-hIYlb09k.js} +73 -200
  43. package/dist/core/{CursorTrail-CPW8orHG.js → CursorTrail-CjTJ9OJ0.js} +81 -172
  44. package/dist/core/{DataMosh-C_esIK54.js → DataMosh-Cmo5-E5_.js} +134 -521
  45. package/dist/core/{DiamondGradient-BkrLPdAd.js → DiamondGradient-DIxg1EP9.js} +31 -66
  46. package/dist/core/{DiamondWipe-Cscn7Dyy.js → DiamondWipe-D4T1q5ia.js} +17 -36
  47. package/dist/core/{DiffuseBlur-DmPHOfr_.js → DiffuseBlur-okj7zVss.js} +13 -22
  48. package/dist/core/{DisplacementMap-B-cVoGbC.js → DisplacementMap-CHB6_h0f.js} +31 -69
  49. package/dist/core/{Dither-CBsFenFW.js → Dither-DTnkeWP0.js} +161 -438
  50. package/dist/core/{DotGrid-CJJXTOk6.js → DotGrid-BJBEwt4L.js} +36 -77
  51. package/dist/core/{DropShadow-B4msUftn.js → DropShadow-CPT5vr4K.js} +39 -86
  52. package/dist/core/{Duotone-DF3dn0kC.js → Duotone-BWuTPBIw.js} +14 -26
  53. package/dist/core/{Ellipse-WuGsM7Gr.js → Ellipse-gVe3stQJ.js} +14 -23
  54. package/dist/core/{Emboss-D5RYAc-U.js → Emboss-DOPfz-ox.js} +85 -200
  55. package/dist/core/{Engraving-CmNKAHmF.js → Engraving-YNrPy-c7.js} +82 -222
  56. package/dist/core/{ErosionNoise-BjD0wAyD.js → ErosionNoise-X_2sjC-x.js} +14 -23
  57. package/dist/core/{Exposure-BSsbosYN.js → Exposure-xVgsHAWw.js} +7 -12
  58. package/dist/core/{FallingLines-C1YT49dj.js → FallingLines-DPHJRCvy.js} +68 -205
  59. package/dist/core/{FilmGrain-CgvcPFDC.js → FilmGrain-CDuL4T8C.js} +22 -51
  60. package/dist/core/{FilmStock-Bgn9OyQY.js → FilmStock-BmMC2ewO.js} +89 -264
  61. package/dist/core/{Flip-DJuox9qR.js → Flip-DhpEvnT7.js} +13 -26
  62. package/dist/core/{FloatingParticles-BGig0_Ks.js → FloatingParticles-Dx3J-Pbe.js} +177 -459
  63. package/dist/core/{FlowField-0I_PwtkD.js → FlowField-CLbiu5Xo.js} +38 -120
  64. package/dist/core/{Flower--1qeeCuA.js → Flower-nF4Zq0eP.js} +14 -23
  65. package/dist/core/{FlowingGradient-ClUwpsZJ.js → FlowingGradient-aNCwZ9nh.js} +61 -185
  66. package/dist/core/{FlutedGlass-CqSVa4kd.js → FlutedGlass-m19MvmKj.js} +44 -124
  67. package/dist/core/{Fog-DxFsHnT2.js → Fog-DVclS-y4.js} +125 -330
  68. package/dist/core/{Form3D-CabM27VZ.js → Form3D-Cv6l3hHQ.js} +328 -974
  69. package/dist/core/{FractalNoise-CgR9wvoG.js → FractalNoise-BMRqE4LG.js} +26 -55
  70. package/dist/core/{Frost-BL4zkGjj.js → Frost-Cqc7t9TR.js} +115 -422
  71. package/dist/core/{GaborNoise-BHDznYFh.js → GaborNoise-BL4TH_Yh.js} +15 -24
  72. package/dist/core/{Glass-DPa3OWjZ.js → Glass-D5jcM7J7.js} +6 -6
  73. package/dist/core/{GlassTiles-B4Y8x78X.js → GlassTiles-BeKB3vfh.js} +29 -90
  74. package/dist/core/{Glitch-D-QTlz5D.js → Glitch-BmJj_vgQ.js} +83 -295
  75. package/dist/core/{Glow-C3VfGUb6.js → Glow-wdFqXqWh.js} +11 -20
  76. package/dist/core/{Godrays-Bh6Idg3p.js → Godrays-CQ7Gpeni.js} +68 -179
  77. package/dist/core/{Goo-BPaUKk1S.js → Goo-nc_51UOr.js} +92 -323
  78. package/dist/core/{GradientMap-DQ4IbzIx.js → GradientMap-BU9r1enO.js} +61 -141
  79. package/dist/core/{Grayscale-Bpp1Q2KT.js → Grayscale-CGtMggTH.js} +13 -25
  80. package/dist/core/{Grid-BneV9T3T.js → Grid-BFx6ufzG.js} +51 -122
  81. package/dist/core/{GridDistortion-CAKSKhII.js → GridDistortion-B-Hq3rLo.js} +80 -195
  82. package/dist/core/{Group-UvbIuzy-.js → Group-DnA_clLB.js} +1 -1
  83. package/dist/core/{HTMLInCanvas-CMxSuq5H.js → HTMLInCanvas-DhCIQ97w.js} +2 -2
  84. package/dist/core/{Halftone-SiFx0wAg.js → Halftone-eX0AaYyB.js} +114 -283
  85. package/dist/core/{Heart-DLQnxsbQ.js → Heart-98zfiijj.js} +14 -23
  86. package/dist/core/{Heatmap-DhvtrL45.js → Heatmap-BCV4Pq0O.js} +92 -271
  87. package/dist/core/{HexGrid-LGx240mZ.js → HexGrid-BlRlo8z4.js} +46 -117
  88. package/dist/core/{Hologram-DR88qD5X.js → Hologram-B5iMaK95.js} +87 -258
  89. package/dist/core/{Holographic-DKc_nNnT.js → Holographic-DBdODPjj.js} +99 -333
  90. package/dist/core/{HueShift-B7l4vcZP.js → HueShift-AsoQKt_z.js} +16 -33
  91. package/dist/core/{ImageTexture-D41xKACO.js → ImageTexture-CRL52DxI.js} +3 -3
  92. package/dist/core/{InkFlow-Bd4RXQmm.js → InkFlow-JMUVdkv1.js} +60 -148
  93. package/dist/core/{Invert-CEfJB0WN.js → Invert-BWV7zcBe.js} +7 -12
  94. package/dist/core/{IrisWipe-O6dc-Aq2.js → IrisWipe-5LICL9Oq.js} +14 -23
  95. package/dist/core/{IsometricCubes-BQFwe-5s.js → IsometricCubes-DGFF6e8t.js} +61 -180
  96. package/dist/core/{Kaleidoscope-DQFV4-lX.js → Kaleidoscope-B7F2_L9x.js} +28 -69
  97. package/dist/core/{KeyFrames-BjH6gHSf.js → KeyFrames-CVH9NNY6.js} +298 -1172
  98. package/dist/core/{LensDistortion-BcodYk7_.js → LensDistortion-_QcaFbkh.js} +3 -3
  99. package/dist/core/{LensFlare-B4F0dq7O.js → LensFlare-h0EG0UVt.js} +119 -396
  100. package/dist/core/{LightEdge-CF0k0vMa.js → LightEdge-DO7stYlD.js} +169 -491
  101. package/dist/core/{LightLeak-Bu6xFjg-.js → LightLeak-BxqXrUyh.js} +80 -268
  102. package/dist/core/{Line-CRGYWOyW.js → Line-BtfkwqKJ.js} +79 -315
  103. package/dist/core/{LinearBlur-DGfbbIWb.js → LinearBlur-D0_W0tKF.js} +17 -33
  104. package/dist/core/{LinearGradient-DOWwm0bP.js → LinearGradient-BiATK9p7.js} +63 -145
  105. package/dist/core/{LinearWipe-0nTDgTcZ.js → LinearWipe-B1GFY0IT.js} +14 -23
  106. package/dist/core/{LiquidMetal-Bhenyeg-.js → LiquidMetal-07eJWR7z.js} +106 -341
  107. package/dist/core/{Liquify-Bg2tEc64.js → Liquify-CfPGxRC3.js} +72 -194
  108. package/dist/core/{MagneticFilings-Bn5DZWor.js → MagneticFilings-5iGBn4fr.js} +191 -545
  109. package/dist/core/{Marble-CSOGQ6C0.js → Marble-RK87t7fT.js} +30 -88
  110. package/dist/core/MeshGradient-DxUlAoDr.js +1508 -0
  111. package/dist/core/{Mirror-B_2eQT6d.js → Mirror-Bn0fpWtr.js} +26 -67
  112. package/dist/core/{MultiPointGradient-NJZfFGVb.js → MultiPointGradient-C44VD_6j.js} +26 -50
  113. package/dist/core/{Neon-m8PtEGdE.js → Neon-aO0w94H6.js} +119 -337
  114. package/dist/core/{NoiseDissolve-B-fFjiGJ.js → NoiseDissolve-BYyXZMjF.js} +23 -64
  115. package/dist/core/{ObjectTracker-DlVNN9LJ.js → ObjectTracker-ZgeKRvaK.js} +5 -5
  116. package/dist/core/{PagePeel-BZOvdHFV.js → PagePeel-DqrIEWWF.js} +67 -215
  117. package/dist/core/{Paper-w8M4w_Sm.js → Paper-q-nDnqsG.js} +19 -45
  118. package/dist/core/{Parallelogram-a6zB6mY9.js → Parallelogram-Cppv2GJm.js} +14 -23
  119. package/dist/core/{ParticleField-UGf3Daat.js → ParticleField-B-O9nxdw.js} +247 -765
  120. package/dist/core/{ParticleFlow-C7vEbMS3.js → ParticleFlow-DVgTyGq4.js} +283 -840
  121. package/dist/core/{Particles-CumYpD-5.js → Particles-B49_QWS_.js} +381 -1131
  122. package/dist/core/{PerlinNoise-sjc342lu.js → PerlinNoise-CZVb7VEh.js} +17 -29
  123. package/dist/core/{Perspective-S94umCQn.js → Perspective-Bl3AmawJ.js} +27 -73
  124. package/dist/core/{PixelSort-C7tv3A5u.js → PixelSort-7VoL4Ck8.js} +174 -500
  125. package/dist/core/{PixelThrow-2WPijuDY.js → PixelThrow-CPqOSAmc.js} +25 -56
  126. package/dist/core/{Pixelate-BLdO8qAT.js → Pixelate-jMtbtFMG.js} +35 -109
  127. package/dist/core/{Plasma-DBzZcfQN.js → Plasma-DbilAdXY.js} +23 -47
  128. package/dist/core/{Plastic-C0Sl_sV1.js → Plastic-DX61wGBx.js} +125 -379
  129. package/dist/core/{PolarCoordinates-DZNOyHmN.js → PolarCoordinates-KOCO2sd-.js} +19 -44
  130. package/dist/core/{Polygon-BM3xGxOC.js → Polygon-Citu4Kgl.js} +18 -36
  131. package/dist/core/{Posterize-BJl7Irml.js → Posterize-D2-WcAiP.js} +18 -45
  132. package/dist/core/{Prism-CaJyExNA.js → Prism-DYPWHdaf.js} +52 -144
  133. package/dist/core/{ProgressiveBlur-B1Ur87dm.js → ProgressiveBlur-CTxD1yoj.js} +87 -223
  134. package/dist/core/{RadialGradient-C1Fb8TaL.js → RadialGradient-B6I7KijG.js} +30 -63
  135. package/dist/core/{RadialWipe-CA5xWWPN.js → RadialWipe-CtjMG_pj.js} +14 -23
  136. package/dist/core/{RandomBars-B66TF6V8.js → RandomBars-C6ksDuSF.js} +21 -47
  137. package/dist/core/{ReactionDiffusion-cYvl6ks9.js → ReactionDiffusion-BzipteCn.js} +274 -755
  138. package/dist/core/{RectangularCoordinates-BEOFurXt.js → RectangularCoordinates-CfdZ347a.js} +18 -39
  139. package/dist/core/{ReflectivePlane-wERmyiKx.js → ReflectivePlane-Cpv1p9O3.js} +48 -109
  140. package/dist/core/{Repeater-Cy8up7cj.js → Repeater-H17zapDG.js} +2 -2
  141. package/dist/core/{Ring-Cogdtn-0.js → Ring-CDpyGwQ6.js} +15 -31
  142. package/dist/core/{RippleWipe-fJwyE4vj.js → RippleWipe-BqL3WbjT.js} +20 -41
  143. package/dist/core/{Ripples-BSHfhVG1.js → Ripples-OFXx87jz.js} +16 -31
  144. package/dist/core/{RoundedRect-D3intNNI.js → RoundedRect-CuFSyEfW.js} +14 -23
  145. package/dist/core/{Saturation-D42Bfc5P.js → Saturation-DjHX8rx2.js} +18 -45
  146. package/dist/core/{Scratches-CChXWpPg.js → Scratches-Glgspe1m.js} +16 -33
  147. package/dist/core/{Sharpness-Dyh6312-.js → Sharpness-CSOtgpDq.js} +19 -40
  148. package/dist/core/{Shatter-Qc5aMkWj.js → Shatter-ydD72wnA.js} +79 -199
  149. package/dist/core/{SimplexNoise-bCC60yB9.js → SimplexNoise-hkOBRbAM.js} +19 -35
  150. package/dist/core/{SineWave-CnPtZLSs.js → SineWave-Bp_0CoHZ.js} +20 -42
  151. package/dist/core/{SliceWipe-Byb46V6I.js → SliceWipe-B77JxKQI.js} +31 -86
  152. package/dist/core/{Smoke-5x6IAk2_.js → Smoke-BMhBhfbI.js} +50 -142
  153. package/dist/core/{SmokeFill-DOQpTlCv.js → SmokeFill-L_3k9mKj.js} +173 -497
  154. package/dist/core/{SmokeFlow-B4fdM2M-.js → SmokeFlow-BNzNH5BF.js} +41 -102
  155. package/dist/core/{Solarize-BB0bXhP0.js → Solarize-C7kAzXW_.js} +20 -50
  156. package/dist/core/{SolidColor-D-6N9JmI.js → SolidColor-Bp_KSGbp.js} +1 -1
  157. package/dist/core/{Spherize-aWpru70e.js → Spherize-Bj2nPPwK.js} +43 -125
  158. package/dist/core/{Spiral-Dbm2j7mM.js → Spiral-D3pxBQUb.js} +46 -115
  159. package/dist/core/{Star-XtB9FBhQ.js → Star-CEH9XN1n.js} +14 -23
  160. package/dist/core/{Stone-xSVm7jNc.js → Stone-DwYVLkb6.js} +2 -2
  161. package/dist/core/{Strands-BFaZBnNo.js → Strands-C3KJK5qj.js} +73 -224
  162. package/dist/core/{Stretch-BKg0gjm4.js → Stretch-D4dxm3Eq.js} +25 -62
  163. package/dist/core/{Stripes-B_SkTR2m.js → Stripes-C189VJJp.js} +27 -46
  164. package/dist/core/{StudioBackground-CUsUWJ2L.js → StudioBackground-DBftmr1t.js} +63 -207
  165. package/dist/core/{SunBurst-DiqSzz5A.js → SunBurst-BWiu3_T9.js} +20 -43
  166. package/dist/core/{Surface3D-Dd_T3xvt.js → Surface3D-BHj5scrr.js} +236 -806
  167. package/dist/core/{Swirl-DBxZ6Wud.js → Swirl-CG20s_S3.js} +35 -126
  168. package/dist/core/{Teardrop-CnhwMyQx.js → Teardrop-CaZaZqiU.js} +14 -23
  169. package/dist/core/{Text-Cb6QJNWo.js → Text-BbSkUuRh.js} +26 -64
  170. package/dist/core/{ThinFilm-B7CTONK1.js → ThinFilm-DT5F71JM.js} +77 -202
  171. package/dist/core/{TiltShift-DqEFOoJG.js → TiltShift-Bkj3TL8G.js} +90 -238
  172. package/dist/core/{TimeTrail-G_JamlY8.js → TimeTrail-DNI1as8t.js} +173 -403
  173. package/dist/core/{Tint-Dj1rSoJ0.js → Tint-C9ivnlbq.js} +35 -89
  174. package/dist/core/{Trapezoid-D2PMU9G3.js → Trapezoid-Ba413G93.js} +14 -23
  175. package/dist/core/{TriangularGrid-C3DBCmaj.js → TriangularGrid-Cq7BdUyV.js} +50 -126
  176. package/dist/core/{Tritone-DfULv51I.js → Tritone-C4qZhK3A.js} +17 -41
  177. package/dist/core/{Truchet-yjZm8xe3.js → Truchet-BXK_Ot95.js} +60 -152
  178. package/dist/core/{Twirl-DfRsql00.js → Twirl-BZDpTksa.js} +18 -41
  179. package/dist/core/{VHS-CGffLHVk.js → VHS-Ge_vluLk.js} +97 -295
  180. package/dist/core/{VenetianBlinds-CCucT73e.js → VenetianBlinds-Dp92230V.js} +16 -28
  181. package/dist/core/{Vesica-BIGpXjWv.js → Vesica-5kOz3lTP.js} +14 -23
  182. package/dist/core/{Vibrance-CtlvCONz.js → Vibrance-B0y3zjRl.js} +18 -45
  183. package/dist/core/{VideoTexture-DW6bQduh.js → VideoTexture-COYSXvPe.js} +3 -3
  184. package/dist/core/{Vignette-Dz3pPnPR.js → Vignette-BD_9PM6J.js} +23 -56
  185. package/dist/core/{Voronoi-5QA-0zme.js → Voronoi-DIpQvBqc.js} +21 -46
  186. package/dist/core/{Water-CGBvuzXj.js → Water-D6Y7PaqY.js} +179 -639
  187. package/dist/core/{Watercolor-CGOpgWt8.js → Watercolor-gXjW0cmP.js} +59 -184
  188. package/dist/core/{WaveDistortion-CRQzZDLP.js → WaveDistortion-CFVOiujJ.js} +84 -178
  189. package/dist/core/{WaveletNoise-B8MeveW8.js → WaveletNoise-Bm_C1dRt.js} +15 -24
  190. package/dist/core/{Weave-DpwAU5Rn.js → Weave-a9i8xeTZ.js} +34 -74
  191. package/dist/core/{WebcamTexture-DauLQjCl.js → WebcamTexture-BFP7WQuM.js} +13 -22
  192. package/dist/core/{Wool-CuhWR2jo.js → Wool-BwM9vbek.js} +2 -2
  193. package/dist/core/{WorleyNoise-CjRMr7xP.js → WorleyNoise-DsKMQk7S.js} +30 -56
  194. package/dist/core/{ZoomBlur-DgG9JA7a.js → ZoomBlur-DiEaGrqE.js} +10 -19
  195. package/dist/core/{aa-C8WSqiNB.js → aa-C759fSpb.js} +109 -278
  196. package/dist/core/{agents-C_kohsYu.js → agents-BrNOCcxk.js} +246 -298
  197. package/dist/core/{bevel-ogqjoZKV.js → bevel-1wa44FF7.js} +14 -34
  198. package/dist/core/{blur-CZuIxzX6.js → blur-fsxhpklK.js} +314 -925
  199. package/dist/core/{cells-CM9mfnTr.js → cells-CmYMp4aV.js} +92 -191
  200. package/dist/core/{cellular-qYnxKdPx.js → cellular-7Xgxfk7O.js} +134 -385
  201. package/dist/core/derivative-p1TouwZG.js +93 -0
  202. package/dist/core/{device-B0ZwBfOg.js → device-DWPzs8TD.js} +528 -778
  203. package/dist/core/{edges-CD7gCAto.js → edges-BvIjDyJK.js} +11467 -13731
  204. package/dist/core/{fields-CC0756V2.js → fields-DORoQP7V.js} +96 -260
  205. package/dist/core/{geom-90G-d_hc.js → geom-D1eEB6WE.js} +111 -220
  206. package/dist/core/{glass-D8xs_kIG.js → glass-DEHkelE5.js} +164 -391
  207. package/dist/core/index.js +253 -245
  208. package/dist/core/{lightfields-ffHoLyJn.js → lightfields-Btxs_pA3.js} +125 -320
  209. package/dist/core/{lighting-D3jc6qOc.js → lighting-CT_di0hW.js} +111 -248
  210. package/dist/core/{media-fQMXfvXd.js → media-B4AiE8Wu.js} +63 -141
  211. package/dist/core/{mediaLifecycle-yHZ8w5aj.js → mediaLifecycle-DHrjB2zB.js} +1 -1
  212. package/dist/core/{noise-DX5Y_I--.js → noise-Be9_Xz5F.js} +939 -2742
  213. package/dist/core/{noiseColor-DYhX5Js1.js → noiseColor-CCePJCFN.js} +3 -3
  214. package/dist/core/{noiseColor-DRDY44sf.js → noiseColor-D0SCfBYp.js} +2 -2
  215. package/dist/core/{noiseStylize-BZD5cOJl.js → noiseStylize-B7Mis4X3.js} +20 -35
  216. package/dist/core/{porters-DUtQounc.js → porters-BnG6v9YC.js} +762 -2282
  217. package/dist/core/{propConfigs-k3hs8KYL.js → propConfigs-CvzF7Ot8.js} +1 -1
  218. package/dist/core/registry.js +225 -223
  219. package/dist/core/{reveal-DhktaT1C.js → reveal-BPF3DkX1.js} +99 -258
  220. package/dist/core/{sdf3d-CP87OlsQ.js → sdf3d-OWBwV8hi.js} +931 -3004
  221. package/dist/core/shaderRegistry-CnWd3DKN.js +433 -0
  222. package/dist/core/shaderRegistry.d.ts.map +1 -1
  223. package/dist/core/shaders/AngularBlur/index.js +8 -8
  224. package/dist/core/shaders/Arc/index.js +7 -7
  225. package/dist/core/shaders/Ascii/index.js +9 -9
  226. package/dist/core/shaders/Aurora/index.js +11 -10
  227. package/dist/core/shaders/BarShift/index.js +8 -8
  228. package/dist/core/shaders/BarnDoors/index.js +9 -9
  229. package/dist/core/shaders/Beam/index.js +10 -10
  230. package/dist/core/shaders/Bend/index.js +8 -8
  231. package/dist/core/shaders/Blob/index.js +7 -7
  232. package/dist/core/shaders/BlockDissolve/index.js +11 -10
  233. package/dist/core/shaders/BlockNoise/index.js +15 -14
  234. package/dist/core/shaders/BlueNoise/index.js +15 -14
  235. package/dist/core/shaders/Blur/index.js +8 -8
  236. package/dist/core/shaders/Boids/index.js +11 -10
  237. package/dist/core/shaders/BokehBlur/index.js +9 -9
  238. package/dist/core/shaders/BrickPattern/index.js +12 -11
  239. package/dist/core/shaders/BrightnessContrast/index.js +7 -7
  240. package/dist/core/shaders/BrushedMetal/index.js +14 -13
  241. package/dist/core/shaders/Bulge/index.js +7 -7
  242. package/dist/core/shaders/CRTScreen/index.js +7 -7
  243. package/dist/core/shaders/CarbonFiber/index.js +14 -13
  244. package/dist/core/shaders/Chalkboard/index.js +9 -8
  245. package/dist/core/shaders/ChannelBlur/index.js +8 -8
  246. package/dist/core/shaders/CheckerWipe/index.js +9 -9
  247. package/dist/core/shaders/Checkerboard/index.js +10 -9
  248. package/dist/core/shaders/Chevron/index.js +10 -9
  249. package/dist/core/shaders/ChromaFlow/index.js +7 -7
  250. package/dist/core/shaders/ChromaticAberration/index.js +7 -7
  251. package/dist/core/shaders/Chrome/index.js +14 -13
  252. package/dist/core/shaders/Circle/index.js +7 -7
  253. package/dist/core/shaders/ColorWheel/index.js +9 -9
  254. package/dist/core/shaders/CompressionArtifacts/index.js +7 -7
  255. package/dist/core/shaders/ConcentricSpin/index.js +8 -8
  256. package/dist/core/shaders/ConicGradient/index.js +11 -11
  257. package/dist/core/shaders/ContourLines/index.js +9 -8
  258. package/dist/core/shaders/CornerPin/index.js +7 -7
  259. package/dist/core/shaders/Crescent/index.js +7 -7
  260. package/dist/core/shaders/Cross/index.js +7 -7
  261. package/dist/core/shaders/Crystal/index.js +13 -12
  262. package/dist/core/shaders/CurlNoise/index.js +15 -14
  263. package/dist/core/shaders/CursorRipples/index.js +8 -8
  264. package/dist/core/shaders/CursorTrail/index.js +8 -8
  265. package/dist/core/shaders/DataMosh/index.js +9 -8
  266. package/dist/core/shaders/DiamondGradient/index.js +11 -11
  267. package/dist/core/shaders/DiamondWipe/index.js +9 -9
  268. package/dist/core/shaders/DiffuseBlur/index.js +9 -8
  269. package/dist/core/shaders/DisplacementMap/index.js +8 -8
  270. package/dist/core/shaders/Dither/index.js +9 -8
  271. package/dist/core/shaders/DotGrid/index.js +12 -11
  272. package/dist/core/shaders/DropShadow/index.js +9 -9
  273. package/dist/core/shaders/Duotone/index.js +7 -7
  274. package/dist/core/shaders/Ellipse/index.js +7 -7
  275. package/dist/core/shaders/Emboss/index.js +9 -9
  276. package/dist/core/shaders/Engraving/index.js +10 -9
  277. package/dist/core/shaders/ErosionNoise/index.js +15 -14
  278. package/dist/core/shaders/Exposure/index.js +7 -7
  279. package/dist/core/shaders/FallingLines/index.js +10 -9
  280. package/dist/core/shaders/FilmGrain/index.js +9 -8
  281. package/dist/core/shaders/FilmStock/index.js +8 -8
  282. package/dist/core/shaders/Flip/index.js +7 -7
  283. package/dist/core/shaders/FloatingParticles/index.js +11 -10
  284. package/dist/core/shaders/FlowField/index.js +10 -9
  285. package/dist/core/shaders/Flower/index.js +7 -7
  286. package/dist/core/shaders/FlowingGradient/index.js +10 -9
  287. package/dist/core/shaders/FlutedGlass/index.js +8 -8
  288. package/dist/core/shaders/Fog/index.js +11 -10
  289. package/dist/core/shaders/Form3D/index.js +8 -8
  290. package/dist/core/shaders/FractalNoise/index.js +14 -13
  291. package/dist/core/shaders/Frost/index.js +13 -12
  292. package/dist/core/shaders/GaborNoise/index.js +15 -14
  293. package/dist/core/shaders/Glass/index.js +10 -10
  294. package/dist/core/shaders/GlassTiles/index.js +8 -8
  295. package/dist/core/shaders/Glitch/index.js +9 -8
  296. package/dist/core/shaders/Glow/index.js +8 -8
  297. package/dist/core/shaders/Godrays/index.js +12 -11
  298. package/dist/core/shaders/Goo/index.js +10 -10
  299. package/dist/core/shaders/GradientMap/index.js +8 -8
  300. package/dist/core/shaders/Grayscale/index.js +7 -7
  301. package/dist/core/shaders/Grid/index.js +12 -11
  302. package/dist/core/shaders/GridDistortion/index.js +7 -7
  303. package/dist/core/shaders/Group/index.js +7 -7
  304. package/dist/core/shaders/HTMLInCanvas/index.js +8 -8
  305. package/dist/core/shaders/Halftone/index.js +8 -8
  306. package/dist/core/shaders/Heart/index.js +7 -7
  307. package/dist/core/shaders/Heatmap/index.js +12 -11
  308. package/dist/core/shaders/HexGrid/index.js +12 -11
  309. package/dist/core/shaders/Hologram/index.js +12 -11
  310. package/dist/core/shaders/Holographic/index.js +13 -12
  311. package/dist/core/shaders/HueShift/index.js +8 -8
  312. package/dist/core/shaders/ImageTexture/index.js +7 -7
  313. package/dist/core/shaders/InkFlow/index.js +8 -8
  314. package/dist/core/shaders/Invert/index.js +7 -7
  315. package/dist/core/shaders/IrisWipe/index.js +9 -9
  316. package/dist/core/shaders/IsometricCubes/index.js +12 -11
  317. package/dist/core/shaders/Kaleidoscope/index.js +8 -8
  318. package/dist/core/shaders/KeyFrames/index.js +8 -8
  319. package/dist/core/shaders/LensDistortion/index.js +7 -7
  320. package/dist/core/shaders/LensFlare/index.js +11 -11
  321. package/dist/core/shaders/LightEdge/index.js +12 -11
  322. package/dist/core/shaders/LightLeak/index.js +12 -11
  323. package/dist/core/shaders/Line/index.js +7 -7
  324. package/dist/core/shaders/LinearBlur/index.js +9 -9
  325. package/dist/core/shaders/LinearGradient/index.js +9 -9
  326. package/dist/core/shaders/LinearWipe/index.js +9 -9
  327. package/dist/core/shaders/LiquidMetal/index.js +14 -13
  328. package/dist/core/shaders/Liquify/index.js +7 -7
  329. package/dist/core/shaders/MagneticFilings/index.js +11 -10
  330. package/dist/core/shaders/Marble/index.js +11 -10
  331. package/dist/core/shaders/MeshGradient/index.d.ts +87 -0
  332. package/dist/core/shaders/MeshGradient/index.d.ts.map +1 -0
  333. package/dist/core/shaders/MeshGradient/index.js +16 -0
  334. package/dist/core/shaders/Mirror/index.js +8 -8
  335. package/dist/core/shaders/MultiPointGradient/index.js +8 -8
  336. package/dist/core/shaders/Neon/index.js +7 -7
  337. package/dist/core/shaders/NoiseDissolve/index.js +11 -10
  338. package/dist/core/shaders/ObjectTracker/index.js +10 -10
  339. package/dist/core/shaders/PagePeel/index.js +8 -8
  340. package/dist/core/shaders/Paper/index.js +9 -8
  341. package/dist/core/shaders/Parallelogram/index.js +7 -7
  342. package/dist/core/shaders/ParticleField/index.js +11 -10
  343. package/dist/core/shaders/ParticleFlow/index.js +11 -10
  344. package/dist/core/shaders/Particles/index.js +12 -11
  345. package/dist/core/shaders/PerlinNoise/index.js +15 -14
  346. package/dist/core/shaders/Perspective/index.js +8 -8
  347. package/dist/core/shaders/PixelSort/index.js +9 -8
  348. package/dist/core/shaders/PixelThrow/index.js +7 -7
  349. package/dist/core/shaders/Pixelate/index.js +7 -7
  350. package/dist/core/shaders/Plasma/index.js +14 -13
  351. package/dist/core/shaders/Plastic/index.js +13 -12
  352. package/dist/core/shaders/PolarCoordinates/index.js +8 -8
  353. package/dist/core/shaders/Polygon/index.js +7 -7
  354. package/dist/core/shaders/Posterize/index.js +7 -7
  355. package/dist/core/shaders/Prism/index.js +7 -7
  356. package/dist/core/shaders/ProgressiveBlur/index.js +9 -9
  357. package/dist/core/shaders/RadialGradient/index.js +11 -11
  358. package/dist/core/shaders/RadialWipe/index.js +9 -9
  359. package/dist/core/shaders/RandomBars/index.js +11 -10
  360. package/dist/core/shaders/ReactionDiffusion/index.js +11 -10
  361. package/dist/core/shaders/RectangularCoordinates/index.js +8 -8
  362. package/dist/core/shaders/ReflectivePlane/index.js +8 -8
  363. package/dist/core/shaders/Repeater/index.js +7 -7
  364. package/dist/core/shaders/Ring/index.js +7 -7
  365. package/dist/core/shaders/RippleWipe/index.js +9 -9
  366. package/dist/core/shaders/Ripples/index.js +7 -7
  367. package/dist/core/shaders/RoundedRect/index.js +7 -7
  368. package/dist/core/shaders/Saturation/index.js +7 -7
  369. package/dist/core/shaders/Scratches/index.js +12 -11
  370. package/dist/core/shaders/Sharpness/index.js +7 -7
  371. package/dist/core/shaders/Shatter/index.js +7 -7
  372. package/dist/core/shaders/SimplexNoise/index.js +15 -14
  373. package/dist/core/shaders/SineWave/index.js +8 -8
  374. package/dist/core/shaders/SliceWipe/index.js +8 -8
  375. package/dist/core/shaders/Smoke/index.js +8 -8
  376. package/dist/core/shaders/SmokeFill/index.js +10 -10
  377. package/dist/core/shaders/SmokeFlow/index.js +8 -8
  378. package/dist/core/shaders/Solarize/index.js +7 -7
  379. package/dist/core/shaders/SolidColor/index.js +2 -2
  380. package/dist/core/shaders/Spherize/index.js +7 -7
  381. package/dist/core/shaders/Spiral/index.js +9 -8
  382. package/dist/core/shaders/Star/index.js +7 -7
  383. package/dist/core/shaders/Stone/index.js +6 -5
  384. package/dist/core/shaders/Strands/index.js +8 -8
  385. package/dist/core/shaders/Stretch/index.js +8 -8
  386. package/dist/core/shaders/Stripes/index.js +11 -10
  387. package/dist/core/shaders/StudioBackground/index.js +10 -10
  388. package/dist/core/shaders/SunBurst/index.js +10 -10
  389. package/dist/core/shaders/Surface3D/index.js +10 -9
  390. package/dist/core/shaders/Swirl/index.js +7 -7
  391. package/dist/core/shaders/Teardrop/index.js +7 -7
  392. package/dist/core/shaders/Text/index.js +11 -11
  393. package/dist/core/shaders/ThinFilm/index.js +9 -9
  394. package/dist/core/shaders/TiltShift/index.js +9 -9
  395. package/dist/core/shaders/TimeTrail/index.js +7 -7
  396. package/dist/core/shaders/Tint/index.js +7 -7
  397. package/dist/core/shaders/Trapezoid/index.js +7 -7
  398. package/dist/core/shaders/TriangularGrid/index.js +12 -11
  399. package/dist/core/shaders/Tritone/index.js +7 -7
  400. package/dist/core/shaders/Truchet/index.js +12 -11
  401. package/dist/core/shaders/Twirl/index.js +7 -7
  402. package/dist/core/shaders/VHS/index.js +9 -8
  403. package/dist/core/shaders/VenetianBlinds/index.js +9 -9
  404. package/dist/core/shaders/Vesica/index.js +7 -7
  405. package/dist/core/shaders/Vibrance/index.js +7 -7
  406. package/dist/core/shaders/VideoTexture/index.js +7 -7
  407. package/dist/core/shaders/Vignette/index.js +7 -7
  408. package/dist/core/shaders/Voronoi/index.js +12 -12
  409. package/dist/core/shaders/Water/index.js +13 -12
  410. package/dist/core/shaders/Watercolor/index.js +9 -8
  411. package/dist/core/shaders/WaveDistortion/index.js +8 -8
  412. package/dist/core/shaders/WaveletNoise/index.js +15 -14
  413. package/dist/core/shaders/Weave/index.js +12 -11
  414. package/dist/core/shaders/WebcamTexture/index.js +9 -9
  415. package/dist/core/shaders/Wool/index.js +6 -5
  416. package/dist/core/shaders/WorleyNoise/index.js +13 -13
  417. package/dist/core/shaders/ZoomBlur/index.js +8 -8
  418. package/dist/core/telemetry/index.js +1 -1
  419. package/dist/core/{tone-DPUvX6X0.js → tone-DgOOeWNY.js} +67 -137
  420. package/dist/core/utilities/transformations/index.js +1 -1
  421. package/dist/js/bundle.js +202 -187
  422. package/dist/js/createShader.js +1 -1
  423. package/dist/js/utils/generatePresetCode.d.ts.map +1 -1
  424. package/dist/js/utils/generatePresetCode.js +38 -0
  425. package/dist/react/MeshGradient.js +226 -0
  426. package/dist/react/Preview.js +1 -0
  427. package/dist/react/Shader.js +1 -1
  428. package/dist/react/bundle.js +120 -105
  429. package/dist/react/components/MeshGradient.d.ts +41 -0
  430. package/dist/react/components/MeshGradient.d.ts.map +1 -0
  431. package/dist/react/engine/Preview.d.ts.map +1 -1
  432. package/dist/react/index.d.ts +1 -0
  433. package/dist/react/index.d.ts.map +1 -1
  434. package/dist/react/index.js +2 -1
  435. package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
  436. package/dist/react/utils/generatePresetCode.js +38 -0
  437. package/dist/registry.js +418 -0
  438. package/dist/solid/components/MeshGradient.d.ts +38 -0
  439. package/dist/solid/components/MeshGradient.d.ts.map +1 -0
  440. package/dist/solid/components/MeshGradient.js +232 -0
  441. package/dist/solid/engine/Preview.d.ts.map +1 -1
  442. package/dist/solid/engine/Preview.js +219 -217
  443. package/dist/solid/engine/Shader.js +1 -1
  444. package/dist/solid/index.d.ts +1 -0
  445. package/dist/solid/index.d.ts.map +1 -1
  446. package/dist/solid/index.js +174 -172
  447. package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
  448. package/dist/solid/utils/generatePresetCode.js +38 -0
  449. package/dist/svelte/components/MeshGradient.svelte.d.ts +28 -0
  450. package/dist/svelte/index.d.ts +1 -0
  451. package/dist/svelte/index.js +2663 -2456
  452. package/dist/svelte/source/components/MeshGradient.svelte +352 -0
  453. package/dist/svelte/source/engine/Preview.svelte +2 -0
  454. package/dist/svelte/source/index.js +1 -0
  455. package/dist/svelte/utils/generatePresetCode.js +38 -0
  456. package/dist/vue/MeshGradient.js +3 -0
  457. package/dist/vue/MeshGradient.vue_vue_type_script_setup_true_lang.js +237 -0
  458. package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +2 -0
  459. package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
  460. package/dist/vue/components/MeshGradient.vue.d.ts +63 -0
  461. package/dist/vue/components/MeshGradient.vue.d.ts.map +1 -0
  462. package/dist/vue/index.d.ts +1 -0
  463. package/dist/vue/index.d.ts.map +1 -1
  464. package/dist/vue/index.js +2 -1
  465. package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
  466. package/dist/vue/utils/generatePresetCode.js +38 -0
  467. package/package.json +10 -2
  468. package/dist/core/shaderRegistry-IG9k35Qx.js +0 -431
  469. /package/dist/core/{canvasRaster-BB2bNhS7.js → canvasRaster-B41z007g.js} +0 -0
  470. /package/dist/core/{constants-DoOzbl5b.js → constants-BKlzQFdJ.js} +0 -0
  471. /package/dist/core/{fonts-ScBvKolx.js → fonts-BMxmjoBM.js} +0 -0
  472. /package/dist/core/{pointer-DGDGF-yO.js → pointer-DKBz1Qcc.js} +0 -0
  473. /package/dist/core/{support-6QRFK3xB.js → support-DVuLvN48.js} +0 -0
  474. /package/dist/core/{transformations-B-zNWNdd.js → transformations-u-UZrXjj.js} +0 -0
@@ -1,18 +1,120 @@
1
- import { At as max, Ht as sqrt, Mt as mix, Tt as exp, Vt as smoothstep, _t as abs, at as std_exports, gt as select, jt as min, kt as length, pn as __export, rn as vec2f, rt as src_default, un as f32, wt as dot, xt as clamp } from "./edges-CD7gCAto.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
1
+ import { Mt as vec2f, Ot as smoothstep, _t as max, an as dualImpl, cn as i32, ct as clamp, dn as safeStringify, dt as dot, et as typegpu_default, fn as Void, ft as exp, gt as length, it as abs, kt as sqrt, ln as u32, pn as isAtomic, rt as select, sn as f32, un as stitch, vt as min, yt as mix } from "./edges-BvIjDyJK.js";
2
+ dualImpl({
3
+ name: "workgroupBarrier",
4
+ normalImpl: "workgroupBarrier is a no-op outside of CODEGEN mode.",
5
+ signature: {
6
+ argTypes: [],
7
+ returnType: Void
8
+ },
9
+ codegenImpl: () => "workgroupBarrier()",
10
+ sideEffects: true
11
+ });
12
+ dualImpl({
13
+ name: "storageBarrier",
14
+ normalImpl: "storageBarrier is a no-op outside of CODEGEN mode.",
15
+ signature: {
16
+ argTypes: [],
17
+ returnType: Void
18
+ },
19
+ codegenImpl: () => "storageBarrier()",
20
+ sideEffects: true
21
+ });
22
+ dualImpl({
23
+ name: "textureBarrier",
24
+ normalImpl: "textureBarrier is a no-op outside of CODEGEN mode.",
25
+ signature: {
26
+ argTypes: [],
27
+ returnType: Void
28
+ },
29
+ codegenImpl: () => "textureBarrier()",
30
+ sideEffects: true
31
+ });
32
+ var atomicNormalError = "Atomic operations are not supported outside of CODEGEN mode.";
33
+ const atomicLoad = dualImpl({
34
+ name: "atomicLoad",
35
+ normalImpl: atomicNormalError,
36
+ signature: (a) => {
37
+ if (!isAtomic(a)) throw new Error(`Invalid atomic type: ${safeStringify(a)}`);
38
+ return {
39
+ argTypes: [a],
40
+ returnType: a.inner
41
+ };
42
+ },
43
+ codegenImpl: (_ctx, [a]) => stitch`atomicLoad(&${a})`,
44
+ sideEffects: true
45
+ });
46
+ var atomicActionSignature = (a) => {
47
+ if (!isAtomic(a)) throw new Error(`Invalid atomic type: ${safeStringify(a)}`);
48
+ return {
49
+ argTypes: [a, a.inner.type === "u32" ? u32 : i32],
50
+ returnType: Void
51
+ };
52
+ };
53
+ var atomicOpSignature = (a) => {
54
+ if (!isAtomic(a)) throw new Error(`Invalid atomic type: ${safeStringify(a)}`);
55
+ const paramType = a.inner.type === "u32" ? u32 : i32;
56
+ return {
57
+ argTypes: [a, paramType],
58
+ returnType: paramType
59
+ };
60
+ };
61
+ const atomicStore = dualImpl({
62
+ name: "atomicStore",
63
+ normalImpl: atomicNormalError,
64
+ signature: atomicActionSignature,
65
+ codegenImpl: (_ctx, [a, value]) => stitch`atomicStore(&${a}, ${value})`,
66
+ sideEffects: true
67
+ });
68
+ const atomicAdd = dualImpl({
69
+ name: "atomicAdd",
70
+ normalImpl: atomicNormalError,
71
+ signature: atomicOpSignature,
72
+ codegenImpl: (_ctx, [a, value]) => stitch`atomicAdd(&${a}, ${value})`,
73
+ sideEffects: true
74
+ });
75
+ dualImpl({
76
+ name: "atomicSub",
77
+ normalImpl: atomicNormalError,
78
+ signature: atomicOpSignature,
79
+ codegenImpl: (_ctx, [a, value]) => stitch`atomicSub(&${a}, ${value})`,
80
+ sideEffects: true
81
+ });
82
+ dualImpl({
83
+ name: "atomicMax",
84
+ normalImpl: atomicNormalError,
85
+ signature: atomicOpSignature,
86
+ codegenImpl: (_ctx, [a, value]) => stitch`atomicMax(&${a}, ${value})`,
87
+ sideEffects: true
88
+ });
89
+ dualImpl({
90
+ name: "atomicMin",
91
+ normalImpl: atomicNormalError,
92
+ signature: atomicOpSignature,
93
+ codegenImpl: (_ctx, [a, value]) => stitch`atomicMin(&${a}, ${value})`,
94
+ sideEffects: true
95
+ });
96
+ dualImpl({
97
+ name: "atomicAnd",
98
+ normalImpl: atomicNormalError,
99
+ signature: atomicOpSignature,
100
+ codegenImpl: (_ctx, [a, value]) => stitch`atomicAnd(&${a}, ${value})`,
101
+ sideEffects: true
14
102
  });
15
- const arrowSdf = src_default.fn([
103
+ dualImpl({
104
+ name: "atomicOr",
105
+ normalImpl: atomicNormalError,
106
+ signature: atomicOpSignature,
107
+ codegenImpl: (_ctx, [a, value]) => stitch`atomicOr(&${a}, ${value})`,
108
+ sideEffects: true
109
+ });
110
+ dualImpl({
111
+ name: "atomicXor",
112
+ normalImpl: atomicNormalError,
113
+ signature: atomicOpSignature,
114
+ codegenImpl: (_ctx, [a, value]) => stitch`atomicXor(&${a}, ${value})`,
115
+ sideEffects: true
116
+ });
117
+ const arrowSdf = typegpu_default.fn([
16
118
  f32,
17
119
  f32,
18
120
  f32,
@@ -32,7 +134,7 @@ const arrowSdf = src_default.fn([
32
134
  const inside = min(__tsover_sub(__tsover_mul(py, qx), __tsover_mul(px, qy)), __tsover_sub(qy, py)) > 0;
33
135
  return select(sqrt(dSq), -sqrt(dSq), inside);
34
136
  }), {
35
- v: 1,
137
+ v: 2,
36
138
  name: void 0,
37
139
  ast: {
38
140
  "params": [
@@ -59,11 +161,7 @@ const arrowSdf = src_default.fn([
59
161
  "px",
60
162
  [
61
163
  6,
62
- [
63
- 7,
64
- "std",
65
- "abs"
66
- ],
164
+ "std.abs",
67
165
  ["n"]
68
166
  ]
69
167
  ],
@@ -97,11 +195,7 @@ const arrowSdf = src_default.fn([
97
195
  "k",
98
196
  [
99
197
  6,
100
- [
101
- 7,
102
- "std",
103
- "clamp"
104
- ],
198
+ "std.clamp",
105
199
  [
106
200
  [
107
201
  1,
@@ -124,11 +218,7 @@ const arrowSdf = src_default.fn([
124
218
  "/",
125
219
  [
126
220
  6,
127
- [
128
- 7,
129
- "std",
130
- "max"
131
- ],
221
+ "std.max",
132
222
  [[
133
223
  1,
134
224
  [
@@ -195,11 +285,7 @@ const arrowSdf = src_default.fn([
195
285
  "*",
196
286
  [
197
287
  6,
198
- [
199
- 7,
200
- "std",
201
- "clamp"
202
- ],
288
+ "std.clamp",
203
289
  [
204
290
  [
205
291
  1,
@@ -207,11 +293,7 @@ const arrowSdf = src_default.fn([
207
293
  "/",
208
294
  [
209
295
  6,
210
- [
211
- 7,
212
- "std",
213
- "max"
214
- ],
296
+ "std.max",
215
297
  ["qx", [5, "1e-9"]]
216
298
  ]
217
299
  ],
@@ -237,11 +319,7 @@ const arrowSdf = src_default.fn([
237
319
  "dSq",
238
320
  [
239
321
  6,
240
- [
241
- 7,
242
- "std",
243
- "min"
244
- ],
322
+ "std.min",
245
323
  [[
246
324
  1,
247
325
  [
@@ -312,11 +390,7 @@ const arrowSdf = src_default.fn([
312
390
  1,
313
391
  [
314
392
  6,
315
- [
316
- 7,
317
- "std",
318
- "min"
319
- ],
393
+ "std.min",
320
394
  ["sA", "sB"]
321
395
  ],
322
396
  ">",
@@ -325,19 +399,11 @@ const arrowSdf = src_default.fn([
325
399
  ],
326
400
  [10, [
327
401
  6,
328
- [
329
- 7,
330
- "std",
331
- "select"
332
- ],
402
+ "std.select",
333
403
  [
334
404
  [
335
405
  6,
336
- [
337
- 7,
338
- "std",
339
- "sqrt"
340
- ],
406
+ "std.sqrt",
341
407
  ["dSq"]
342
408
  ],
343
409
  [
@@ -345,23 +411,25 @@ const arrowSdf = src_default.fn([
345
411
  "-",
346
412
  [
347
413
  6,
348
- [
349
- 7,
350
- "std",
351
- "sqrt"
352
- ],
414
+ "std.sqrt",
353
415
  ["dSq"]
354
416
  ]
355
417
  ],
356
418
  "inside"
357
419
  ]
358
420
  ]]
359
- ]],
360
- "externalNames": ["std"]
421
+ ]]
361
422
  },
362
- externals: () => ({ std: std_exports })
423
+ externals: {
424
+ "std.abs": () => abs,
425
+ "std.clamp": () => clamp,
426
+ "std.max": () => max,
427
+ "std.min": () => min,
428
+ "std.select": () => select,
429
+ "std.sqrt": () => sqrt
430
+ }
363
431
  }) && $.f)({})).$name("agentArrowSdf");
364
- const capsuleSdf = src_default.fn([
432
+ const capsuleSdf = typegpu_default.fn([
365
433
  f32,
366
434
  f32,
367
435
  f32,
@@ -371,7 +439,7 @@ const capsuleSdf = src_default.fn([
371
439
  const tc = __tsover_sub(t, clamp(t, -hl, hl));
372
440
  return __tsover_sub(sqrt(__tsover_add(__tsover_mul(tc, tc), __tsover_mul(n, n))), r);
373
441
  }), {
374
- v: 1,
442
+ v: 2,
375
443
  name: void 0,
376
444
  ast: {
377
445
  "params": [
@@ -401,11 +469,7 @@ const capsuleSdf = src_default.fn([
401
469
  "-",
402
470
  [
403
471
  6,
404
- [
405
- 7,
406
- "std",
407
- "clamp"
408
- ],
472
+ "std.clamp",
409
473
  [
410
474
  "t",
411
475
  [
@@ -421,11 +485,7 @@ const capsuleSdf = src_default.fn([
421
485
  1,
422
486
  [
423
487
  6,
424
- [
425
- 7,
426
- "std",
427
- "sqrt"
428
- ],
488
+ "std.sqrt",
429
489
  [[
430
490
  1,
431
491
  [
@@ -445,12 +505,14 @@ const capsuleSdf = src_default.fn([
445
505
  ],
446
506
  "-",
447
507
  "r"
448
- ]]]],
449
- "externalNames": ["std"]
508
+ ]]]]
450
509
  },
451
- externals: () => ({ std: std_exports })
510
+ externals: {
511
+ "std.clamp": () => clamp,
512
+ "std.sqrt": () => sqrt
513
+ }
452
514
  }) && $.f)({})).$name("agentCapsuleSdf");
453
- const boxSdf = src_default.fn([
515
+ const boxSdf = typegpu_default.fn([
454
516
  f32,
455
517
  f32,
456
518
  f32,
@@ -463,7 +525,7 @@ const boxSdf = src_default.fn([
463
525
  const oy = max(qy, 0);
464
526
  return __tsover_add(sqrt(__tsover_add(__tsover_mul(ox, ox), __tsover_mul(oy, oy))), min(max(qx, qy), 0));
465
527
  }), {
466
- v: 1,
528
+ v: 2,
467
529
  name: void 0,
468
530
  ast: {
469
531
  "params": [
@@ -492,11 +554,7 @@ const boxSdf = src_default.fn([
492
554
  1,
493
555
  [
494
556
  6,
495
- [
496
- 7,
497
- "std",
498
- "abs"
499
- ],
557
+ "std.abs",
500
558
  ["t"]
501
559
  ],
502
560
  "-",
@@ -510,11 +568,7 @@ const boxSdf = src_default.fn([
510
568
  1,
511
569
  [
512
570
  6,
513
- [
514
- 7,
515
- "std",
516
- "abs"
517
- ],
571
+ "std.abs",
518
572
  ["n"]
519
573
  ],
520
574
  "-",
@@ -526,11 +580,7 @@ const boxSdf = src_default.fn([
526
580
  "ox",
527
581
  [
528
582
  6,
529
- [
530
- 7,
531
- "std",
532
- "max"
533
- ],
583
+ "std.max",
534
584
  ["qx", [5, "0"]]
535
585
  ]
536
586
  ],
@@ -539,11 +589,7 @@ const boxSdf = src_default.fn([
539
589
  "oy",
540
590
  [
541
591
  6,
542
- [
543
- 7,
544
- "std",
545
- "max"
546
- ],
592
+ "std.max",
547
593
  ["qy", [5, "0"]]
548
594
  ]
549
595
  ],
@@ -551,11 +597,7 @@ const boxSdf = src_default.fn([
551
597
  1,
552
598
  [
553
599
  6,
554
- [
555
- 7,
556
- "std",
557
- "sqrt"
558
- ],
600
+ "std.sqrt",
559
601
  [[
560
602
  1,
561
603
  [
@@ -576,26 +618,22 @@ const boxSdf = src_default.fn([
576
618
  "+",
577
619
  [
578
620
  6,
579
- [
580
- 7,
581
- "std",
582
- "min"
583
- ],
621
+ "std.min",
584
622
  [[
585
623
  6,
586
- [
587
- 7,
588
- "std",
589
- "max"
590
- ],
624
+ "std.max",
591
625
  ["qx", "qy"]
592
626
  ], [5, "0"]]
593
627
  ]
594
628
  ]]
595
- ]],
596
- "externalNames": ["std"]
629
+ ]]
597
630
  },
598
- externals: () => ({ std: std_exports })
631
+ externals: {
632
+ "std.abs": () => abs,
633
+ "std.max": () => max,
634
+ "std.sqrt": () => sqrt,
635
+ "std.min": () => min
636
+ }
599
637
  }) && $.f)({})).$name("agentBoxSdf");
600
638
  const AGENT_SHAPES = {
601
639
  arrow: {
@@ -678,7 +716,7 @@ function makeAgentWeightFn(shape) {
678
716
  const sdFn = s.kind === 1 ? arrowSdf : s.kind === 2 ? boxSdf : capsuleSdf;
679
717
  const HL = s.hl;
680
718
  const HW = s.hw;
681
- return src_default.fn([
719
+ return typegpu_default.fn([
682
720
  f32,
683
721
  f32,
684
722
  f32,
@@ -691,7 +729,7 @@ function makeAgentWeightFn(shape) {
691
729
  const gq = __tsover_div(max(sd, 0), max(__tsover_mul(bodyR, .75), 1e-6));
692
730
  return mix(wHard, exp(__tsover_mul(__tsover_mul(gq, gq), -1)), soft);
693
731
  }), {
694
- v: 1,
732
+ v: 2,
695
733
  name: void 0,
696
734
  ast: {
697
735
  "params": [
@@ -750,11 +788,7 @@ function makeAgentWeightFn(shape) {
750
788
  "-",
751
789
  [
752
790
  6,
753
- [
754
- 7,
755
- "std",
756
- "smoothstep"
757
- ],
791
+ "std.smoothstep",
758
792
  [
759
793
  [
760
794
  4,
@@ -774,21 +808,13 @@ function makeAgentWeightFn(shape) {
774
808
  1,
775
809
  [
776
810
  6,
777
- [
778
- 7,
779
- "std",
780
- "max"
781
- ],
811
+ "std.max",
782
812
  ["sd", [5, "0"]]
783
813
  ],
784
814
  "/",
785
815
  [
786
816
  6,
787
- [
788
- 7,
789
- "std",
790
- "max"
791
- ],
817
+ "std.max",
792
818
  [[
793
819
  1,
794
820
  "bodyR",
@@ -803,11 +829,7 @@ function makeAgentWeightFn(shape) {
803
829
  "wSoft",
804
830
  [
805
831
  6,
806
- [
807
- 7,
808
- "std",
809
- "exp"
810
- ],
832
+ "std.exp",
811
833
  [[
812
834
  1,
813
835
  [
@@ -827,31 +849,24 @@ function makeAgentWeightFn(shape) {
827
849
  ],
828
850
  [10, [
829
851
  6,
830
- [
831
- 7,
832
- "std",
833
- "mix"
834
- ],
852
+ "std.mix",
835
853
  [
836
854
  "wHard",
837
855
  "wSoft",
838
856
  "soft"
839
857
  ]
840
858
  ]]
841
- ]],
842
- "externalNames": [
843
- "sdFn",
844
- "HL",
845
- "HW",
846
- "std"
847
- ]
859
+ ]]
848
860
  },
849
- externals: () => ({
850
- sdFn,
851
- HL,
852
- HW,
853
- std: std_exports
854
- })
861
+ externals: {
862
+ "sdFn": () => sdFn,
863
+ "HL": () => HL,
864
+ "HW": () => HW,
865
+ "std.smoothstep": () => smoothstep,
866
+ "std.max": () => max,
867
+ "std.exp": () => exp,
868
+ "std.mix": () => mix
869
+ }
855
870
  }) && $.f)({})).$name("agentWeight");
856
871
  }
857
872
  function makeAgentTexelWeightFn(shape) {
@@ -861,7 +876,7 @@ function makeAgentTexelWeightFn(shape) {
861
876
  const HW = s.hw;
862
877
  const isDisc = s.kind === 0 && s.hl === 0;
863
878
  const soft = s.soft === 1;
864
- if (isDisc) return soft ? src_default.fn([
879
+ if (isDisc) return soft ? typegpu_default.fn([
865
880
  f32,
866
881
  f32,
867
882
  f32,
@@ -873,7 +888,7 @@ function makeAgentTexelWeightFn(shape) {
873
888
  const gq = __tsover_div(max(sd, 0), max(__tsover_mul(bodyR, .75), 1e-6));
874
889
  return exp(__tsover_mul(__tsover_mul(gq, gq), -1));
875
890
  }), {
876
- v: 1,
891
+ v: 2,
877
892
  name: void 0,
878
893
  ast: {
879
894
  "params": [
@@ -910,11 +925,7 @@ function makeAgentTexelWeightFn(shape) {
910
925
  1,
911
926
  [
912
927
  6,
913
- [
914
- 7,
915
- "std",
916
- "sqrt"
917
- ],
928
+ "std.sqrt",
918
929
  ["q"]
919
930
  ],
920
931
  "-",
@@ -929,21 +940,13 @@ function makeAgentTexelWeightFn(shape) {
929
940
  1,
930
941
  [
931
942
  6,
932
- [
933
- 7,
934
- "std",
935
- "max"
936
- ],
943
+ "std.max",
937
944
  ["sd", [5, "0"]]
938
945
  ],
939
946
  "/",
940
947
  [
941
948
  6,
942
- [
943
- 7,
944
- "std",
945
- "max"
946
- ],
949
+ "std.max",
947
950
  [[
948
951
  1,
949
952
  "bodyR",
@@ -955,11 +958,7 @@ function makeAgentTexelWeightFn(shape) {
955
958
  ],
956
959
  [10, [
957
960
  6,
958
- [
959
- 7,
960
- "std",
961
- "exp"
962
- ],
961
+ "std.exp",
963
962
  [[
964
963
  1,
965
964
  [
@@ -976,14 +975,15 @@ function makeAgentTexelWeightFn(shape) {
976
975
  ]
977
976
  ]]
978
977
  ]]
979
- ]],
980
- "externalNames": ["std", "HW"]
978
+ ]]
981
979
  },
982
- externals: () => ({
983
- std: std_exports,
984
- HW
985
- })
986
- }) && $.f)({})).$name("agentTexelWeight") : src_default.fn([
980
+ externals: {
981
+ "std.sqrt": () => sqrt,
982
+ "HW": () => HW,
983
+ "std.max": () => max,
984
+ "std.exp": () => exp
985
+ }
986
+ }) && $.f)({})).$name("agentTexelWeight") : typegpu_default.fn([
987
987
  f32,
988
988
  f32,
989
989
  f32,
@@ -994,7 +994,7 @@ function makeAgentTexelWeightFn(shape) {
994
994
  const sd = __tsover_mul(bodyR, __tsover_sub(sqrt(q), HW));
995
995
  return __tsover_sub(1, smoothstep(-aaW, aaW, sd));
996
996
  }), {
997
- v: 1,
997
+ v: 2,
998
998
  name: void 0,
999
999
  ast: {
1000
1000
  "params": [
@@ -1030,11 +1030,7 @@ function makeAgentTexelWeightFn(shape) {
1030
1030
  1,
1031
1031
  [
1032
1032
  6,
1033
- [
1034
- 7,
1035
- "std",
1036
- "sqrt"
1037
- ],
1033
+ "std.sqrt",
1038
1034
  ["q"]
1039
1035
  ],
1040
1036
  "-",
@@ -1047,11 +1043,7 @@ function makeAgentTexelWeightFn(shape) {
1047
1043
  "-",
1048
1044
  [
1049
1045
  6,
1050
- [
1051
- 7,
1052
- "std",
1053
- "smoothstep"
1054
- ],
1046
+ "std.smoothstep",
1055
1047
  [
1056
1048
  [
1057
1049
  4,
@@ -1062,15 +1054,15 @@ function makeAgentTexelWeightFn(shape) {
1062
1054
  "sd"
1063
1055
  ]
1064
1056
  ]
1065
- ]]]],
1066
- "externalNames": ["std", "HW"]
1057
+ ]]]]
1067
1058
  },
1068
- externals: () => ({
1069
- std: std_exports,
1070
- HW
1071
- })
1059
+ externals: {
1060
+ "std.sqrt": () => sqrt,
1061
+ "HW": () => HW,
1062
+ "std.smoothstep": () => smoothstep
1063
+ }
1072
1064
  }) && $.f)({})).$name("agentTexelWeight");
1073
- return soft ? src_default.fn([
1065
+ return soft ? typegpu_default.fn([
1074
1066
  f32,
1075
1067
  f32,
1076
1068
  f32,
@@ -1082,7 +1074,7 @@ function makeAgentTexelWeightFn(shape) {
1082
1074
  const gq = __tsover_div(max(sd, 0), max(__tsover_mul(bodyR, .75), 1e-6));
1083
1075
  return exp(__tsover_mul(__tsover_mul(gq, gq), -1));
1084
1076
  }), {
1085
- v: 1,
1077
+ v: 2,
1086
1078
  name: void 0,
1087
1079
  ast: {
1088
1080
  "params": [
@@ -1139,21 +1131,13 @@ function makeAgentTexelWeightFn(shape) {
1139
1131
  1,
1140
1132
  [
1141
1133
  6,
1142
- [
1143
- 7,
1144
- "std",
1145
- "max"
1146
- ],
1134
+ "std.max",
1147
1135
  ["sd", [5, "0"]]
1148
1136
  ],
1149
1137
  "/",
1150
1138
  [
1151
1139
  6,
1152
- [
1153
- 7,
1154
- "std",
1155
- "max"
1156
- ],
1140
+ "std.max",
1157
1141
  [[
1158
1142
  1,
1159
1143
  "bodyR",
@@ -1165,11 +1149,7 @@ function makeAgentTexelWeightFn(shape) {
1165
1149
  ],
1166
1150
  [10, [
1167
1151
  6,
1168
- [
1169
- 7,
1170
- "std",
1171
- "exp"
1172
- ],
1152
+ "std.exp",
1173
1153
  [[
1174
1154
  1,
1175
1155
  [
@@ -1186,21 +1166,16 @@ function makeAgentTexelWeightFn(shape) {
1186
1166
  ]
1187
1167
  ]]
1188
1168
  ]]
1189
- ]],
1190
- "externalNames": [
1191
- "sdFn",
1192
- "HL",
1193
- "HW",
1194
- "std"
1195
- ]
1169
+ ]]
1196
1170
  },
1197
- externals: () => ({
1198
- sdFn,
1199
- HL,
1200
- HW,
1201
- std: std_exports
1202
- })
1203
- }) && $.f)({})).$name("agentTexelWeight") : src_default.fn([
1171
+ externals: {
1172
+ "sdFn": () => sdFn,
1173
+ "HL": () => HL,
1174
+ "HW": () => HW,
1175
+ "std.max": () => max,
1176
+ "std.exp": () => exp
1177
+ }
1178
+ }) && $.f)({})).$name("agentTexelWeight") : typegpu_default.fn([
1204
1179
  f32,
1205
1180
  f32,
1206
1181
  f32,
@@ -1211,7 +1186,7 @@ function makeAgentTexelWeightFn(shape) {
1211
1186
  const sd = sdFn(t, n, __tsover_mul(bodyR, HL), __tsover_mul(bodyR, HW));
1212
1187
  return __tsover_sub(1, smoothstep(-aaW, aaW, sd));
1213
1188
  }), {
1214
- v: 1,
1189
+ v: 2,
1215
1190
  name: void 0,
1216
1191
  ast: {
1217
1192
  "params": [
@@ -1265,11 +1240,7 @@ function makeAgentTexelWeightFn(shape) {
1265
1240
  "-",
1266
1241
  [
1267
1242
  6,
1268
- [
1269
- 7,
1270
- "std",
1271
- "smoothstep"
1272
- ],
1243
+ "std.smoothstep",
1273
1244
  [
1274
1245
  [
1275
1246
  4,
@@ -1280,28 +1251,22 @@ function makeAgentTexelWeightFn(shape) {
1280
1251
  "sd"
1281
1252
  ]
1282
1253
  ]
1283
- ]]]],
1284
- "externalNames": [
1285
- "sdFn",
1286
- "HL",
1287
- "HW",
1288
- "std"
1289
- ]
1254
+ ]]]]
1290
1255
  },
1291
- externals: () => ({
1292
- sdFn,
1293
- HL,
1294
- HW,
1295
- std: std_exports
1296
- })
1256
+ externals: {
1257
+ "sdFn": () => sdFn,
1258
+ "HL": () => HL,
1259
+ "HW": () => HW,
1260
+ "std.smoothstep": () => smoothstep
1261
+ }
1297
1262
  }) && $.f)({})).$name("agentTexelWeight");
1298
1263
  }
1299
- const cursorFalloff = src_default.fn([vec2f, f32], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((delta, radSq) => {
1264
+ const cursorFalloff = typegpu_default.fn([vec2f, f32], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((delta, radSq) => {
1300
1265
  "use gpu";
1301
1266
  const dl = dot(delta, delta);
1302
1267
  return exp(__tsover_mul(__tsover_div(dl, max(radSq, 1e-5)), -1));
1303
1268
  }), {
1304
- v: 1,
1269
+ v: 2,
1305
1270
  name: void 0,
1306
1271
  ast: {
1307
1272
  "params": [{
@@ -1316,20 +1281,12 @@ const cursorFalloff = src_default.fn([vec2f, f32], f32)(/* @__PURE__ */ (($) =>
1316
1281
  "dl",
1317
1282
  [
1318
1283
  6,
1319
- [
1320
- 7,
1321
- "std",
1322
- "dot"
1323
- ],
1284
+ "std.dot",
1324
1285
  ["delta", "delta"]
1325
1286
  ]
1326
1287
  ], [10, [
1327
1288
  6,
1328
- [
1329
- 7,
1330
- "std",
1331
- "exp"
1332
- ],
1289
+ "std.exp",
1333
1290
  [[
1334
1291
  1,
1335
1292
  [
@@ -1338,11 +1295,7 @@ const cursorFalloff = src_default.fn([vec2f, f32], f32)(/* @__PURE__ */ (($) =>
1338
1295
  "/",
1339
1296
  [
1340
1297
  6,
1341
- [
1342
- 7,
1343
- "std",
1344
- "max"
1345
- ],
1298
+ "std.max",
1346
1299
  ["radSq", [5, "0.00001"]]
1347
1300
  ]
1348
1301
  ],
@@ -1353,12 +1306,15 @@ const cursorFalloff = src_default.fn([vec2f, f32], f32)(/* @__PURE__ */ (($) =>
1353
1306
  [5, "1"]
1354
1307
  ]
1355
1308
  ]]
1356
- ]]]],
1357
- "externalNames": ["std"]
1309
+ ]]]]
1358
1310
  },
1359
- externals: () => ({ std: std_exports })
1311
+ externals: {
1312
+ "std.dot": () => dot,
1313
+ "std.exp": () => exp,
1314
+ "std.max": () => max
1315
+ }
1360
1316
  }) && $.f)({})).$name("agentCursorFalloff");
1361
- const cursorMagnet = src_default.fn([
1317
+ const cursorMagnet = typegpu_default.fn([
1362
1318
  vec2f,
1363
1319
  f32,
1364
1320
  f32
@@ -1367,7 +1323,7 @@ const cursorMagnet = src_default.fn([
1367
1323
  const dl = max(length(delta), 1e-4);
1368
1324
  return delta.div(dl).mul(__tsover_mul(cursorFalloff(delta, radSq), force));
1369
1325
  }), {
1370
- v: 1,
1326
+ v: 2,
1371
1327
  name: void 0,
1372
1328
  ast: {
1373
1329
  "params": [
@@ -1389,18 +1345,10 @@ const cursorMagnet = src_default.fn([
1389
1345
  "dl",
1390
1346
  [
1391
1347
  6,
1392
- [
1393
- 7,
1394
- "std",
1395
- "max"
1396
- ],
1348
+ "std.max",
1397
1349
  [[
1398
1350
  6,
1399
- [
1400
- 7,
1401
- "std",
1402
- "length"
1403
- ],
1351
+ "std.length",
1404
1352
  ["delta"]
1405
1353
  ], [5, "0.0001"]]
1406
1354
  ]
@@ -1429,12 +1377,12 @@ const cursorMagnet = src_default.fn([
1429
1377
  "*",
1430
1378
  "force"
1431
1379
  ]]
1432
- ]]]],
1433
- "externalNames": ["std", "cursorFalloff"]
1380
+ ]]]]
1434
1381
  },
1435
- externals: () => ({
1436
- std: std_exports,
1437
- cursorFalloff
1438
- })
1382
+ externals: {
1383
+ "std.max": () => max,
1384
+ "std.length": () => length,
1385
+ "cursorFalloff": () => cursorFalloff
1386
+ }
1439
1387
  }) && $.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 };
1388
+ export { makeAgentWeightFn as a, resolveAgentShape as c, atomicStore as d, makeAgentTexelWeightFn as i, atomicAdd as l, cursorFalloff as n, orientedShapeOptions as o, cursorMagnet as r, pointShapeOptions as s, AGENT_SHAPES as t, atomicLoad as u };