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,9 +1,10 @@
1
- import { At as max, Bt as sin, Dt as floor, Gt as data_exports, Kt as atomic, Mt as mix, St as cos, Yt as textureStorage2d, an as vec2u, at as std_exports, cn as vec4f, en as struct, f as ZERO, fn as u32, h as call, ht as atomicStore, lt as textureStore, mt as atomicLoad, on as vec3f, pt as atomicAdd, qt as arrayOf, rn as vec2f, rt as src_default, un as f32, xt as clamp } from "./edges-CD7gCAto.js";
2
- import { i as PI, o as TAU$1, t as DEG_TO_RAD$1 } from "./constants-DoOzbl5b.js";
3
- import { _ as readAgentFrame, b as worldSplatWindow, f as SIZE_REF_RES, g as makeCpuValueGetter, m as energyCoverageAlpha, p as createAgentSystem, u as FIXED_POINT_GAINS, v as resolveRenderRes } from "./porters-DUtQounc.js";
4
- import { l as hash22, m as noise_exports, o as hash11, u as hash33 } from "./noise-DX5Y_I--.js";
5
- import { a as makeAgentTexelWeightFn, c as pointShapeOptions, i as cursorMagnet, l as resolveAgentShape, n as agents_exports, o as makeAgentWeightFn, t as AGENT_SHAPES } from "./agents-C_kohsYu.js";
6
- import { a as transformColor } from "./transformations-B-zNWNdd.js";
1
+ import { Dt as sin, Ft as vec3f, Gt as textureStorage2d, Kt as arrayOf, Lt as vec4f, Mt as vec2f, Pt as vec2u, Vt as atomic, _t as max, ct as clamp, d as ZERO, et as typegpu_default, ln as u32, lt as cos, m as call, mt as floor, qt as struct, sn as f32, yt as mix } from "./edges-BvIjDyJK.js";
2
+ import { a as makeAgentWeightFn, c as resolveAgentShape, d as atomicStore, i as makeAgentTexelWeightFn, l as atomicAdd, r as cursorMagnet, s as pointShapeOptions, t as AGENT_SHAPES, u as atomicLoad } from "./agents-BrNOCcxk.js";
3
+ import { R as textureStore } from "./device-DWPzs8TD.js";
4
+ import { i as PI, o as TAU$1, t as DEG_TO_RAD$1 } from "./constants-BKlzQFdJ.js";
5
+ import { _ as readAgentFrame, b as worldSplatWindow, f as SIZE_REF_RES, g as makeCpuValueGetter, m as energyCoverageAlpha, p as createAgentSystem, u as FIXED_POINT_GAINS, v as resolveRenderRes } from "./porters-BnG6v9YC.js";
6
+ import { l as hash22, o as hash11, u as hash33 } from "./noise-Be9_Xz5F.js";
7
+ import { a as transformColor } from "./transformations-u-UZrXjj.js";
7
8
  var MAX_MOTES = 8192;
8
9
  var COUNT_MAX_MOBILE = 3e3;
9
10
  var RES = resolveRenderRes({
@@ -45,7 +46,7 @@ var SimParams = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(
45
46
  cursorForce: f32,
46
47
  dragMul: f32
47
48
  }), "SimParams");
48
- var simLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(src_default.bindGroupLayout({
49
+ var simLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(typegpu_default.bindGroupLayout({
49
50
  motes: {
50
51
  storage: arrayOf(vec4f, MAX_MOTES),
51
52
  access: "mutable"
@@ -57,7 +58,7 @@ var simLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(
57
58
  params: { uniform: SimParams },
58
59
  outTex: { storageTexture: textureStorage2d(STATE_FORMAT, "write-only") }
59
60
  }), "simLayout");
60
- var moteDrift = src_default.fn([f32], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((fi) => {
61
+ var moteDrift = typegpu_default.fn([f32], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((fi) => {
61
62
  "use gpu";
62
63
  const prm = simLayout.$.params;
63
64
  const h = hash22(vec2f(__tsover_add(__tsover_mul(fi, .7548), .13), __tsover_add(__tsover_mul(fi, 1.3236), 5.71)));
@@ -65,7 +66,7 @@ var moteDrift = src_default.fn([f32], vec2f)(/* @__PURE__ */ (($) => (globalThis
65
66
  const ang = __tsover_add(prm.angleRad, __tsover_mul(__tsover_mul(__tsover_sub(h.y, .5), 2), prm.angleVarRad));
66
67
  return vec2f(cos(ang), sin(ang)).mul(__tsover_mul(prm.driftBase, speedMul));
67
68
  }), {
68
- v: 1,
69
+ v: 2,
69
70
  name: void 0,
70
71
  ast: {
71
72
  "params": [{
@@ -91,18 +92,10 @@ var moteDrift = src_default.fn([f32], vec2f)(/* @__PURE__ */ (($) => (globalThis
91
92
  "h",
92
93
  [
93
94
  6,
94
- [
95
- 7,
96
- "noise",
97
- "hash22"
98
- ],
95
+ "noise.hash22",
99
96
  [[
100
97
  6,
101
- [
102
- 7,
103
- "d",
104
- "vec2f"
105
- ],
98
+ "d.vec2f",
106
99
  [[
107
100
  1,
108
101
  [
@@ -198,26 +191,14 @@ var moteDrift = src_default.fn([f32], vec2f)(/* @__PURE__ */ (($) => (globalThis
198
191
  7,
199
192
  [
200
193
  6,
201
- [
202
- 7,
203
- "d",
204
- "vec2f"
205
- ],
194
+ "d.vec2f",
206
195
  [[
207
196
  6,
208
- [
209
- 7,
210
- "std",
211
- "cos"
212
- ],
197
+ "std.cos",
213
198
  ["ang"]
214
199
  ], [
215
200
  6,
216
- [
217
- 7,
218
- "std",
219
- "sin"
220
- ],
201
+ "std.sin",
221
202
  ["ang"]
222
203
  ]]
223
204
  ],
@@ -234,26 +215,21 @@ var moteDrift = src_default.fn([f32], vec2f)(/* @__PURE__ */ (($) => (globalThis
234
215
  "speedMul"
235
216
  ]]
236
217
  ]]
237
- ]],
238
- "externalNames": [
239
- "simLayout",
240
- "noise",
241
- "d",
242
- "std"
243
- ]
218
+ ]]
244
219
  },
245
- externals: () => ({
246
- simLayout,
247
- noise: noise_exports,
248
- d: data_exports,
249
- std: std_exports
250
- })
220
+ externals: {
221
+ "simLayout": () => simLayout,
222
+ "noise.hash22": () => hash22,
223
+ "d.vec2f": () => vec2f,
224
+ "std.cos": () => cos,
225
+ "std.sin": () => sin
226
+ }
251
227
  }) && $.f)({})).$name("moteDrift");
252
- var motePresence = src_default.fn([f32], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((fi) => {
228
+ var motePresence = typegpu_default.fn([f32], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((fi) => {
253
229
  "use gpu";
254
230
  return __tsover_add(.55, __tsover_mul(hash11(__tsover_add(__tsover_mul(fi, 1.91), 2.53)), .7));
255
231
  }), {
256
- v: 1,
232
+ v: 2,
257
233
  name: void 0,
258
234
  ast: {
259
235
  "params": [{
@@ -268,11 +244,7 @@ var motePresence = src_default.fn([f32], f32)(/* @__PURE__ */ (($) => (globalThi
268
244
  1,
269
245
  [
270
246
  6,
271
- [
272
- 7,
273
- "noise",
274
- "hash11"
275
- ],
247
+ "noise.hash11",
276
248
  [[
277
249
  1,
278
250
  [
@@ -288,12 +260,11 @@ var motePresence = src_default.fn([f32], f32)(/* @__PURE__ */ (($) => (globalThi
288
260
  "*",
289
261
  [5, "0.7"]
290
262
  ]
291
- ]]]],
292
- "externalNames": ["noise"]
263
+ ]]]]
293
264
  },
294
- externals: () => ({ noise: noise_exports })
265
+ externals: { "noise.hash11": () => hash11 }
295
266
  }) && $.f)({})).$name("motePresence");
296
- var moteOrbit = src_default.fn([f32], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((fi) => {
267
+ var moteOrbit = typegpu_default.fn([f32], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((fi) => {
297
268
  "use gpu";
298
269
  const prm = simLayout.$.params;
299
270
  const h = hash22(vec2f(__tsover_add(__tsover_mul(fi, 2.41), .37), __tsover_add(__tsover_mul(fi, .577), 8.19)));
@@ -303,7 +274,7 @@ var moteOrbit = src_default.fn([f32], vec2f)(/* @__PURE__ */ (($) => (globalThis
303
274
  const t = __tsover_add(__tsover_mul(prm.time, rate), ph);
304
275
  return vec2f(cos(t), sin(t)).mul(rad);
305
276
  }), {
306
- v: 1,
277
+ v: 2,
307
278
  name: void 0,
308
279
  ast: {
309
280
  "params": [{
@@ -329,18 +300,10 @@ var moteOrbit = src_default.fn([f32], vec2f)(/* @__PURE__ */ (($) => (globalThis
329
300
  "h",
330
301
  [
331
302
  6,
332
- [
333
- 7,
334
- "noise",
335
- "hash22"
336
- ],
303
+ "noise.hash22",
337
304
  [[
338
305
  6,
339
- [
340
- 7,
341
- "d",
342
- "vec2f"
343
- ],
306
+ "d.vec2f",
344
307
  [[
345
308
  1,
346
309
  [
@@ -465,26 +428,14 @@ var moteOrbit = src_default.fn([f32], vec2f)(/* @__PURE__ */ (($) => (globalThis
465
428
  7,
466
429
  [
467
430
  6,
468
- [
469
- 7,
470
- "d",
471
- "vec2f"
472
- ],
431
+ "d.vec2f",
473
432
  [[
474
433
  6,
475
- [
476
- 7,
477
- "std",
478
- "cos"
479
- ],
434
+ "std.cos",
480
435
  ["t"]
481
436
  ], [
482
437
  6,
483
- [
484
- 7,
485
- "std",
486
- "sin"
487
- ],
438
+ "std.sin",
488
439
  ["t"]
489
440
  ]]
490
441
  ],
@@ -492,35 +443,27 @@ var moteOrbit = src_default.fn([f32], vec2f)(/* @__PURE__ */ (($) => (globalThis
492
443
  ],
493
444
  ["rad"]
494
445
  ]]
495
- ]],
496
- "externalNames": [
497
- "simLayout",
498
- "noise",
499
- "d",
500
- "ORBIT_RATE",
501
- "TAU",
502
- "ORBIT_RAD",
503
- "std"
504
- ]
446
+ ]]
505
447
  },
506
- externals: () => ({
507
- simLayout,
508
- noise: noise_exports,
509
- d: data_exports,
510
- ORBIT_RATE,
511
- TAU,
512
- ORBIT_RAD,
513
- std: std_exports
514
- })
448
+ externals: {
449
+ "simLayout": () => simLayout,
450
+ "noise.hash22": () => hash22,
451
+ "d.vec2f": () => vec2f,
452
+ "ORBIT_RATE": () => ORBIT_RATE,
453
+ "TAU": () => TAU,
454
+ "ORBIT_RAD": () => ORBIT_RAD,
455
+ "std.cos": () => cos,
456
+ "std.sin": () => sin
457
+ }
515
458
  }) && $.f)({})).$name("moteOrbit");
516
- const floatingParticlesInitKernel = src_default.fn([u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
459
+ const floatingParticlesInitKernel = typegpu_default.fn([u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
517
460
  "use gpu";
518
461
  const prm = simLayout.$.params;
519
462
  const fi = f32(i);
520
463
  const r = hash33(vec3f(__tsover_add(__tsover_mul(fi, 1.618), .71), __tsover_add(__tsover_mul(fi, 2.718), 4.17), __tsover_add(__tsover_mul(fi, 3.142), 9.03)));
521
464
  simLayout.$.motes[i] = vec4f(__tsover_mul(r.x, prm.domainX), r.y, f32(0), f32(0));
522
465
  }), {
523
- v: 1,
466
+ v: 2,
524
467
  name: void 0,
525
468
  ast: {
526
469
  "params": [{
@@ -546,11 +489,7 @@ const floatingParticlesInitKernel = src_default.fn([u32])(/* @__PURE__ */ (($) =
546
489
  "fi",
547
490
  [
548
491
  6,
549
- [
550
- 7,
551
- "d",
552
- "f32"
553
- ],
492
+ "d.f32",
554
493
  ["i"]
555
494
  ]
556
495
  ],
@@ -559,18 +498,10 @@ const floatingParticlesInitKernel = src_default.fn([u32])(/* @__PURE__ */ (($) =
559
498
  "r",
560
499
  [
561
500
  6,
562
- [
563
- 7,
564
- "noise",
565
- "hash33"
566
- ],
501
+ "noise.hash33",
567
502
  [[
568
503
  6,
569
- [
570
- 7,
571
- "d",
572
- "vec3f"
573
- ],
504
+ "d.vec3f",
574
505
  [
575
506
  [
576
507
  1,
@@ -627,11 +558,7 @@ const floatingParticlesInitKernel = src_default.fn([u32])(/* @__PURE__ */ (($) =
627
558
  "=",
628
559
  [
629
560
  6,
630
- [
631
- 7,
632
- "d",
633
- "vec4f"
634
- ],
561
+ "d.vec4f",
635
562
  [
636
563
  [
637
564
  1,
@@ -654,39 +581,28 @@ const floatingParticlesInitKernel = src_default.fn([u32])(/* @__PURE__ */ (($) =
654
581
  ],
655
582
  [
656
583
  6,
657
- [
658
- 7,
659
- "d",
660
- "f32"
661
- ],
584
+ "d.f32",
662
585
  [[5, "0"]]
663
586
  ],
664
587
  [
665
588
  6,
666
- [
667
- 7,
668
- "d",
669
- "f32"
670
- ],
589
+ "d.f32",
671
590
  [[5, "0"]]
672
591
  ]
673
592
  ]
674
593
  ]
675
594
  ]
676
- ]],
677
- "externalNames": [
678
- "simLayout",
679
- "d",
680
- "noise"
681
- ]
595
+ ]]
682
596
  },
683
- externals: () => ({
684
- simLayout,
685
- d: data_exports,
686
- noise: noise_exports
687
- })
597
+ externals: {
598
+ "simLayout": () => simLayout,
599
+ "d.f32": () => f32,
600
+ "noise.hash33": () => hash33,
601
+ "d.vec3f": () => vec3f,
602
+ "d.vec4f": () => vec4f
603
+ }
688
604
  }) && $.f)({})).$name("floatingParticlesInit");
689
- const floatingParticlesUpdateKernel = src_default.fn([u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
605
+ const floatingParticlesUpdateKernel = typegpu_default.fn([u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
690
606
  "use gpu";
691
607
  const prm = simLayout.$.params;
692
608
  const s = simLayout.$.motes[i];
@@ -704,7 +620,7 @@ const floatingParticlesUpdateKernel = src_default.fn([u32])(/* @__PURE__ */ (($)
704
620
  const wy = __tsover_sub(pos.y, floor(pos.y));
705
621
  simLayout.$.motes[i] = vec4f(wx, wy, gust.x, gust.y);
706
622
  }), {
707
- v: 1,
623
+ v: 2,
708
624
  name: void 0,
709
625
  ast: {
710
626
  "params": [{
@@ -747,11 +663,7 @@ const floatingParticlesUpdateKernel = src_default.fn([u32])(/* @__PURE__ */ (($)
747
663
  "fi",
748
664
  [
749
665
  6,
750
- [
751
- 7,
752
- "d",
753
- "f32"
754
- ],
666
+ "d.f32",
755
667
  ["i"]
756
668
  ]
757
669
  ],
@@ -769,11 +681,7 @@ const floatingParticlesUpdateKernel = src_default.fn([u32])(/* @__PURE__ */ (($)
769
681
  "pos",
770
682
  [
771
683
  6,
772
- [
773
- 7,
774
- "d",
775
- "vec2f"
776
- ],
684
+ "d.vec2f",
777
685
  [[
778
686
  7,
779
687
  "s",
@@ -790,11 +698,7 @@ const floatingParticlesUpdateKernel = src_default.fn([u32])(/* @__PURE__ */ (($)
790
698
  "gust",
791
699
  [
792
700
  6,
793
- [
794
- 7,
795
- "d",
796
- "vec2f"
797
- ],
701
+ "d.vec2f",
798
702
  [[
799
703
  7,
800
704
  "s",
@@ -830,11 +734,7 @@ const floatingParticlesUpdateKernel = src_default.fn([u32])(/* @__PURE__ */ (($)
830
734
  ],
831
735
  [[
832
736
  6,
833
- [
834
- 7,
835
- "d",
836
- "vec2f"
837
- ],
737
+ "d.vec2f",
838
738
  [[
839
739
  7,
840
740
  "prm",
@@ -863,11 +763,7 @@ const floatingParticlesUpdateKernel = src_default.fn([u32])(/* @__PURE__ */ (($)
863
763
  7,
864
764
  [
865
765
  6,
866
- [
867
- 7,
868
- "agents",
869
- "cursorMagnet"
870
- ],
766
+ "agents.cursorMagnet",
871
767
  [
872
768
  "delta",
873
769
  [
@@ -956,11 +852,7 @@ const floatingParticlesUpdateKernel = src_default.fn([u32])(/* @__PURE__ */ (($)
956
852
  1,
957
853
  [
958
854
  6,
959
- [
960
- 7,
961
- "std",
962
- "floor"
963
- ],
855
+ "std.floor",
964
856
  [[
965
857
  1,
966
858
  [
@@ -971,11 +863,7 @@ const floatingParticlesUpdateKernel = src_default.fn([u32])(/* @__PURE__ */ (($)
971
863
  "/",
972
864
  [
973
865
  6,
974
- [
975
- 7,
976
- "std",
977
- "max"
978
- ],
866
+ "std.max",
979
867
  [[
980
868
  7,
981
869
  "prm",
@@ -1006,11 +894,7 @@ const floatingParticlesUpdateKernel = src_default.fn([u32])(/* @__PURE__ */ (($)
1006
894
  "-",
1007
895
  [
1008
896
  6,
1009
- [
1010
- 7,
1011
- "std",
1012
- "floor"
1013
- ],
897
+ "std.floor",
1014
898
  [[
1015
899
  7,
1016
900
  "pos",
@@ -1037,11 +921,7 @@ const floatingParticlesUpdateKernel = src_default.fn([u32])(/* @__PURE__ */ (($)
1037
921
  "=",
1038
922
  [
1039
923
  6,
1040
- [
1041
- 7,
1042
- "d",
1043
- "vec4f"
1044
- ],
924
+ "d.vec4f",
1045
925
  [
1046
926
  "wx",
1047
927
  "wy",
@@ -1058,22 +938,18 @@ const floatingParticlesUpdateKernel = src_default.fn([u32])(/* @__PURE__ */ (($)
1058
938
  ]
1059
939
  ]
1060
940
  ]
1061
- ]],
1062
- "externalNames": [
1063
- "simLayout",
1064
- "d",
1065
- "agents",
1066
- "moteDrift",
1067
- "std"
1068
- ]
941
+ ]]
1069
942
  },
1070
- externals: () => ({
1071
- simLayout,
1072
- d: data_exports,
1073
- agents: agents_exports,
1074
- moteDrift,
1075
- std: std_exports
1076
- })
943
+ externals: {
944
+ "simLayout": () => simLayout,
945
+ "d.f32": () => f32,
946
+ "d.vec2f": () => vec2f,
947
+ "agents.cursorMagnet": () => cursorMagnet,
948
+ "moteDrift": () => moteDrift,
949
+ "std.floor": () => floor,
950
+ "std.max": () => max,
951
+ "d.vec4f": () => vec4f
952
+ }
1077
953
  }) && $.f)({})).$name("floatingParticlesUpdate");
1078
954
  function makeFloatingParticlesSplatKernel(shape) {
1079
955
  const name = resolveAgentShape(shape, "dot");
@@ -1082,7 +958,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1082
958
  const EXT = s.ext;
1083
959
  const weightFn = s.soft === 1 ? (() => {
1084
960
  const fast = makeAgentTexelWeightFn(name);
1085
- return src_default.fn([
961
+ return typegpu_default.fn([
1086
962
  f32,
1087
963
  f32,
1088
964
  f32,
@@ -1093,7 +969,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1093
969
  "use gpu";
1094
970
  return fast(q, t, n, bodyR, aaW);
1095
971
  }), {
1096
- v: 1,
972
+ v: 2,
1097
973
  name: void 0,
1098
974
  ast: {
1099
975
  "params": [
@@ -1132,14 +1008,13 @@ function makeFloatingParticlesSplatKernel(shape) {
1132
1008
  "bodyR",
1133
1009
  "aaW"
1134
1010
  ]
1135
- ]]]],
1136
- "externalNames": ["fast"]
1011
+ ]]]]
1137
1012
  },
1138
- externals: () => ({ fast })
1013
+ externals: { "fast": () => fast }
1139
1014
  }) && $.f)({})).$name("floatingParticlesWeight");
1140
1015
  })() : (() => {
1141
1016
  const general = makeAgentWeightFn(name);
1142
- return src_default.fn([
1017
+ return typegpu_default.fn([
1143
1018
  f32,
1144
1019
  f32,
1145
1020
  f32,
@@ -1150,7 +1025,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1150
1025
  "use gpu";
1151
1026
  return general(t, n, bodyR, aaW, soft);
1152
1027
  }), {
1153
- v: 1,
1028
+ v: 2,
1154
1029
  name: void 0,
1155
1030
  ast: {
1156
1031
  "params": [
@@ -1189,13 +1064,12 @@ function makeFloatingParticlesSplatKernel(shape) {
1189
1064
  "aaW",
1190
1065
  "soft"
1191
1066
  ]
1192
- ]]]],
1193
- "externalNames": ["general"]
1067
+ ]]]]
1194
1068
  },
1195
- externals: () => ({ general })
1069
+ externals: { "general": () => general }
1196
1070
  }) && $.f)({})).$name("floatingParticlesWeight");
1197
1071
  })();
1198
- return src_default.fn([u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
1072
+ return typegpu_default.fn([u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
1199
1073
  "use gpu";
1200
1074
  const prm = simLayout.$.params;
1201
1075
  const s4 = simLayout.$.motes[i];
@@ -1230,7 +1104,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1230
1104
  }
1231
1105
  }
1232
1106
  }), {
1233
- v: 1,
1107
+ v: 2,
1234
1108
  name: void 0,
1235
1109
  ast: {
1236
1110
  "params": [{
@@ -1273,11 +1147,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1273
1147
  "fi",
1274
1148
  [
1275
1149
  6,
1276
- [
1277
- 7,
1278
- "d",
1279
- "f32"
1280
- ],
1150
+ "d.f32",
1281
1151
  ["i"]
1282
1152
  ]
1283
1153
  ],
@@ -1290,11 +1160,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1290
1160
  7,
1291
1161
  [
1292
1162
  6,
1293
- [
1294
- 7,
1295
- "d",
1296
- "vec2f"
1297
- ],
1163
+ "d.vec2f",
1298
1164
  [[
1299
1165
  7,
1300
1166
  "s4",
@@ -1330,11 +1196,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1330
1196
  1,
1331
1197
  [
1332
1198
  6,
1333
- [
1334
- 7,
1335
- "noise",
1336
- "hash11"
1337
- ],
1199
+ "noise.hash11",
1338
1200
  [[
1339
1201
  1,
1340
1202
  [
@@ -1360,11 +1222,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1360
1222
  1,
1361
1223
  [
1362
1224
  6,
1363
- [
1364
- 7,
1365
- "std",
1366
- "sin"
1367
- ],
1225
+ "std.sin",
1368
1226
  [[
1369
1227
  1,
1370
1228
  [
@@ -1395,19 +1253,11 @@ function makeFloatingParticlesSplatKernel(shape) {
1395
1253
  1,
1396
1254
  [
1397
1255
  6,
1398
- [
1399
- 7,
1400
- "std",
1401
- "mix"
1402
- ],
1256
+ "std.mix",
1403
1257
  [
1404
1258
  [
1405
1259
  6,
1406
- [
1407
- 7,
1408
- "d",
1409
- "f32"
1410
- ],
1260
+ "d.f32",
1411
1261
  [[5, "1"]]
1412
1262
  ],
1413
1263
  "twk",
@@ -1437,11 +1287,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1437
1287
  "aspect",
1438
1288
  [
1439
1289
  6,
1440
- [
1441
- 7,
1442
- "std",
1443
- "max"
1444
- ],
1290
+ "std.max",
1445
1291
  [[
1446
1292
  7,
1447
1293
  "prm",
@@ -1454,22 +1300,14 @@ function makeFloatingParticlesSplatKernel(shape) {
1454
1300
  "softV",
1455
1301
  [
1456
1302
  6,
1457
- [
1458
- 7,
1459
- "std",
1460
- "max"
1461
- ],
1303
+ "std.max",
1462
1304
  [[
1463
1305
  7,
1464
1306
  "prm",
1465
1307
  "softness"
1466
1308
  ], [
1467
1309
  6,
1468
- [
1469
- 7,
1470
- "d",
1471
- "f32"
1472
- ],
1310
+ "d.f32",
1473
1311
  ["FORCE_SOFT"]
1474
1312
  ]]
1475
1313
  ]
@@ -1479,35 +1317,19 @@ function makeFloatingParticlesSplatKernel(shape) {
1479
1317
  "extK",
1480
1318
  [
1481
1319
  6,
1482
- [
1483
- 7,
1484
- "std",
1485
- "mix"
1486
- ],
1320
+ "std.mix",
1487
1321
  [
1488
1322
  [
1489
1323
  6,
1490
- [
1491
- 7,
1492
- "d",
1493
- "f32"
1494
- ],
1324
+ "d.f32",
1495
1325
  ["EXT"]
1496
1326
  ],
1497
1327
  [
1498
1328
  6,
1499
- [
1500
- 7,
1501
- "std",
1502
- "max"
1503
- ],
1329
+ "std.max",
1504
1330
  [[
1505
1331
  6,
1506
- [
1507
- 7,
1508
- "d",
1509
- "f32"
1510
- ],
1332
+ "d.f32",
1511
1333
  ["EXT"]
1512
1334
  ], [5, "2.4"]]
1513
1335
  ],
@@ -1520,28 +1342,16 @@ function makeFloatingParticlesSplatKernel(shape) {
1520
1342
  "gain",
1521
1343
  [
1522
1344
  6,
1523
- [
1524
- 7,
1525
- "std",
1526
- "mix"
1527
- ],
1345
+ "std.mix",
1528
1346
  [
1529
1347
  [
1530
1348
  6,
1531
- [
1532
- 7,
1533
- "d",
1534
- "f32"
1535
- ],
1349
+ "d.f32",
1536
1350
  ["HARD_GAIN"]
1537
1351
  ],
1538
1352
  [
1539
1353
  6,
1540
- [
1541
- 7,
1542
- "d",
1543
- "f32"
1544
- ],
1354
+ "d.f32",
1545
1355
  ["SOFT_GAIN"]
1546
1356
  ],
1547
1357
  "softV"
@@ -1553,11 +1363,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1553
1363
  "bodyR",
1554
1364
  [
1555
1365
  6,
1556
- [
1557
- 7,
1558
- "std",
1559
- "max"
1560
- ],
1366
+ "std.max",
1561
1367
  [[
1562
1368
  1,
1563
1369
  [
@@ -1642,11 +1448,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1642
1448
  "aspect",
1643
1449
  [
1644
1450
  6,
1645
- [
1646
- 7,
1647
- "d",
1648
- "f32"
1649
- ],
1451
+ "d.f32",
1650
1452
  ["RES"]
1651
1453
  ]
1652
1454
  ]
@@ -1689,11 +1491,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1689
1491
  1,
1690
1492
  [
1691
1493
  6,
1692
- [
1693
- 7,
1694
- "d",
1695
- "f32"
1696
- ],
1494
+ "d.f32",
1697
1495
  ["py"]
1698
1496
  ],
1699
1497
  "+",
@@ -1749,11 +1547,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1749
1547
  1,
1750
1548
  [
1751
1549
  6,
1752
- [
1753
- 7,
1754
- "d",
1755
- "f32"
1756
- ],
1550
+ "d.f32",
1757
1551
  ["px"]
1758
1552
  ],
1759
1553
  "+",
@@ -1838,11 +1632,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1838
1632
  "e",
1839
1633
  [
1840
1634
  6,
1841
- [
1842
- 7,
1843
- "d",
1844
- "u32"
1845
- ],
1635
+ "d.u32",
1846
1636
  [[
1847
1637
  1,
1848
1638
  "w",
@@ -1859,11 +1649,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1859
1649
  ">",
1860
1650
  [
1861
1651
  6,
1862
- [
1863
- 7,
1864
- "d",
1865
- "u32"
1866
- ],
1652
+ "d.u32",
1867
1653
  [[5, "0"]]
1868
1654
  ]
1869
1655
  ],
@@ -1872,11 +1658,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1872
1658
  "idx",
1873
1659
  [
1874
1660
  6,
1875
- [
1876
- 7,
1877
- "d",
1878
- "u32"
1879
- ],
1661
+ "d.u32",
1880
1662
  [[
1881
1663
  1,
1882
1664
  [
@@ -1891,11 +1673,7 @@ function makeFloatingParticlesSplatKernel(shape) {
1891
1673
  ]
1892
1674
  ], [
1893
1675
  6,
1894
- [
1895
- 7,
1896
- "std",
1897
- "atomicAdd"
1898
- ],
1676
+ "std.atomicAdd",
1899
1677
  [[
1900
1678
  8,
1901
1679
  [
@@ -1916,50 +1694,36 @@ function makeFloatingParticlesSplatKernel(shape) {
1916
1694
  ]]
1917
1695
  ]]]
1918
1696
  ]
1919
- ]],
1920
- "externalNames": [
1921
- "simLayout",
1922
- "d",
1923
- "moteOrbit",
1924
- "motePresence",
1925
- "noise",
1926
- "TAU",
1927
- "std",
1928
- "TWINKLE_FREQ",
1929
- "FORCE_SOFT",
1930
- "EXT",
1931
- "HARD_GAIN",
1932
- "SOFT_GAIN",
1933
- "AA_W",
1934
- "worldSplatWindow",
1935
- "RES",
1936
- "INV_RES",
1937
- "weightFn"
1938
- ]
1697
+ ]]
1939
1698
  },
1940
- externals: () => ({
1941
- simLayout,
1942
- d: data_exports,
1943
- moteOrbit,
1944
- motePresence,
1945
- noise: noise_exports,
1946
- TAU,
1947
- std: std_exports,
1948
- TWINKLE_FREQ,
1949
- FORCE_SOFT,
1950
- EXT,
1951
- HARD_GAIN,
1952
- SOFT_GAIN,
1953
- AA_W,
1954
- worldSplatWindow,
1955
- RES,
1956
- INV_RES,
1957
- weightFn
1958
- })
1699
+ externals: {
1700
+ "simLayout": () => simLayout,
1701
+ "d.f32": () => f32,
1702
+ "d.vec2f": () => vec2f,
1703
+ "moteOrbit": () => moteOrbit,
1704
+ "motePresence": () => motePresence,
1705
+ "noise.hash11": () => hash11,
1706
+ "TAU": () => TAU,
1707
+ "std.sin": () => sin,
1708
+ "TWINKLE_FREQ": () => TWINKLE_FREQ,
1709
+ "std.mix": () => mix,
1710
+ "std.max": () => max,
1711
+ "FORCE_SOFT": () => FORCE_SOFT,
1712
+ "EXT": () => EXT,
1713
+ "HARD_GAIN": () => HARD_GAIN,
1714
+ "SOFT_GAIN": () => SOFT_GAIN,
1715
+ "AA_W": () => AA_W,
1716
+ "worldSplatWindow": () => worldSplatWindow,
1717
+ "RES": () => RES,
1718
+ "INV_RES": () => INV_RES,
1719
+ "weightFn": () => weightFn,
1720
+ "d.u32": () => u32,
1721
+ "std.atomicAdd": () => atomicAdd
1722
+ }
1959
1723
  }) && $.f)({})).$name("floatingParticlesSplat");
1960
1724
  }
1961
1725
  const floatingParticlesSplatKernel = makeFloatingParticlesSplatKernel("dot");
1962
- const floatingParticlesResolveKernel = src_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((x, y) => {
1726
+ const floatingParticlesResolveKernel = typegpu_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((x, y) => {
1963
1727
  "use gpu";
1964
1728
  const prm = simLayout.$.params;
1965
1729
  const idx = __tsover_add(__tsover_mul(y, u32(RES)), x);
@@ -1968,7 +1732,7 @@ const floatingParticlesResolveKernel = src_default.fn([u32, u32])(/* @__PURE__ *
1968
1732
  const a = __tsover_mul(energyCoverageAlpha(energy, 1.6), prm.color.w);
1969
1733
  textureStore(simLayout.$.outTex, vec2u(x, y), vec4f(prm.color.x, prm.color.y, prm.color.z, a));
1970
1734
  }), {
1971
- v: 1,
1735
+ v: 2,
1972
1736
  name: void 0,
1973
1737
  ast: {
1974
1738
  "params": [{
@@ -2003,11 +1767,7 @@ const floatingParticlesResolveKernel = src_default.fn([u32, u32])(/* @__PURE__ *
2003
1767
  "*",
2004
1768
  [
2005
1769
  6,
2006
- [
2007
- 7,
2008
- "d",
2009
- "u32"
2010
- ],
1770
+ "d.u32",
2011
1771
  ["RES"]
2012
1772
  ]
2013
1773
  ],
@@ -2022,18 +1782,10 @@ const floatingParticlesResolveKernel = src_default.fn([u32, u32])(/* @__PURE__ *
2022
1782
  1,
2023
1783
  [
2024
1784
  6,
2025
- [
2026
- 7,
2027
- "d",
2028
- "f32"
2029
- ],
1785
+ "d.f32",
2030
1786
  [[
2031
1787
  6,
2032
- [
2033
- 7,
2034
- "std",
2035
- "atomicLoad"
2036
- ],
1788
+ "std.atomicLoad",
2037
1789
  [[
2038
1790
  8,
2039
1791
  [
@@ -2060,11 +1812,7 @@ const floatingParticlesResolveKernel = src_default.fn([u32, u32])(/* @__PURE__ *
2060
1812
  ],
2061
1813
  [
2062
1814
  6,
2063
- [
2064
- 7,
2065
- "std",
2066
- "atomicStore"
2067
- ],
1815
+ "std.atomicStore",
2068
1816
  [[
2069
1817
  8,
2070
1818
  [
@@ -2079,11 +1827,7 @@ const floatingParticlesResolveKernel = src_default.fn([u32, u32])(/* @__PURE__ *
2079
1827
  "idx"
2080
1828
  ], [
2081
1829
  6,
2082
- [
2083
- 7,
2084
- "d",
2085
- "u32"
2086
- ],
1830
+ "d.u32",
2087
1831
  [[5, "0"]]
2088
1832
  ]]
2089
1833
  ],
@@ -2111,11 +1855,7 @@ const floatingParticlesResolveKernel = src_default.fn([u32, u32])(/* @__PURE__ *
2111
1855
  ],
2112
1856
  [
2113
1857
  6,
2114
- [
2115
- 7,
2116
- "std",
2117
- "textureStore"
2118
- ],
1858
+ "std.textureStore",
2119
1859
  [
2120
1860
  [
2121
1861
  7,
@@ -2128,20 +1868,12 @@ const floatingParticlesResolveKernel = src_default.fn([u32, u32])(/* @__PURE__ *
2128
1868
  ],
2129
1869
  [
2130
1870
  6,
2131
- [
2132
- 7,
2133
- "d",
2134
- "vec2u"
2135
- ],
1871
+ "d.vec2u",
2136
1872
  ["x", "y"]
2137
1873
  ],
2138
1874
  [
2139
1875
  6,
2140
- [
2141
- 7,
2142
- "d",
2143
- "vec4f"
2144
- ],
1876
+ "d.vec4f",
2145
1877
  [
2146
1878
  [
2147
1879
  7,
@@ -2175,31 +1907,29 @@ const floatingParticlesResolveKernel = src_default.fn([u32, u32])(/* @__PURE__ *
2175
1907
  ]
2176
1908
  ]
2177
1909
  ]
2178
- ]],
2179
- "externalNames": [
2180
- "simLayout",
2181
- "d",
2182
- "RES",
2183
- "std",
2184
- "energyCoverageAlpha"
2185
- ]
1910
+ ]]
2186
1911
  },
2187
- externals: () => ({
2188
- simLayout,
2189
- d: data_exports,
2190
- RES,
2191
- std: std_exports,
2192
- energyCoverageAlpha
2193
- })
1912
+ externals: {
1913
+ "simLayout": () => simLayout,
1914
+ "d.u32": () => u32,
1915
+ "RES": () => RES,
1916
+ "d.f32": () => f32,
1917
+ "std.atomicLoad": () => atomicLoad,
1918
+ "std.atomicStore": () => atomicStore,
1919
+ "energyCoverageAlpha": () => energyCoverageAlpha,
1920
+ "std.textureStore": () => textureStore,
1921
+ "d.vec2u": () => vec2u,
1922
+ "d.vec4f": () => vec4f
1923
+ }
2194
1924
  }) && $.f)({})).$name("floatingParticlesResolve");
2195
- const particleOverChild = src_default.fn([vec4f, vec4f], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p, c) => {
1925
+ const particleOverChild = typegpu_default.fn([vec4f, vec4f], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p, c) => {
2196
1926
  "use gpu";
2197
1927
  const pa = clamp(p.w, 0, 1);
2198
1928
  const outA = __tsover_add(pa, __tsover_mul(c.w, __tsover_sub(1, pa)));
2199
1929
  const rgb = p.xyz.mul(pa).add(c.xyz.mul(__tsover_mul(c.w, __tsover_sub(1, pa)))).div(max(outA, 1e-4));
2200
1930
  return vec4f(rgb.x, rgb.y, rgb.z, outA);
2201
1931
  }), {
2202
- v: 1,
1932
+ v: 2,
2203
1933
  name: void 0,
2204
1934
  ast: {
2205
1935
  "params": [{
@@ -2215,11 +1945,7 @@ const particleOverChild = src_default.fn([vec4f, vec4f], vec4f)(/* @__PURE__ */
2215
1945
  "pa",
2216
1946
  [
2217
1947
  6,
2218
- [
2219
- 7,
2220
- "std",
2221
- "clamp"
2222
- ],
1948
+ "std.clamp",
2223
1949
  [
2224
1950
  [
2225
1951
  7,
@@ -2313,22 +2039,14 @@ const particleOverChild = src_default.fn([vec4f, vec4f], vec4f)(/* @__PURE__ */
2313
2039
  ],
2314
2040
  [[
2315
2041
  6,
2316
- [
2317
- 7,
2318
- "std",
2319
- "max"
2320
- ],
2042
+ "std.max",
2321
2043
  ["outA", [5, "0.0001"]]
2322
2044
  ]]
2323
2045
  ]
2324
2046
  ],
2325
2047
  [10, [
2326
2048
  6,
2327
- [
2328
- 7,
2329
- "d",
2330
- "vec4f"
2331
- ],
2049
+ "d.vec4f",
2332
2050
  [
2333
2051
  [
2334
2052
  7,
@@ -2348,13 +2066,13 @@ const particleOverChild = src_default.fn([vec4f, vec4f], vec4f)(/* @__PURE__ */
2348
2066
  "outA"
2349
2067
  ]
2350
2068
  ]]
2351
- ]],
2352
- "externalNames": ["std", "d"]
2069
+ ]]
2353
2070
  },
2354
- externals: () => ({
2355
- std: std_exports,
2356
- d: data_exports
2357
- })
2071
+ externals: {
2072
+ "std.clamp": () => clamp,
2073
+ "std.max": () => max,
2074
+ "d.vec4f": () => vec4f
2075
+ }
2358
2076
  }) && $.f)({})).$name("floatingParticlesOverChild");
2359
2077
  const componentDefinition = {
2360
2078
  name: "FloatingParticles",