shaders 3.0.441 → 3.0.443

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 (953) hide show
  1. package/dist/cli.js +2 -2
  2. package/dist/core/{AngularBlur-BDxGVOMQ.js → AngularBlur-CJsRS1Ri.js} +1 -1
  3. package/dist/core/{Arc-C981IGmm.js → Arc-CNesL3S9.js} +1 -1
  4. package/dist/core/{Ascii-C_-Jn2_c.js → Ascii-z7til0PQ.js} +1 -1
  5. package/dist/core/{Aurora-D66-fTnE.js → Aurora-BAuYUYGc.js} +2 -2
  6. package/dist/core/{BarShift-DLaO6DjV.js → BarShift-qVwbTMcq.js} +2 -2
  7. package/dist/core/BarnDoors-DrOAeSqj.js +448 -0
  8. package/dist/core/{Beam-mVVEXCwG.js → Beam-BW6yblZw.js} +1 -1
  9. package/dist/core/Bend-B7PMQ3T5.js +848 -0
  10. package/dist/core/{Blob-BnBDJJ84.js → Blob-CRJ5N0hK.js} +2 -2
  11. package/dist/core/BlockDissolve-D-6Wy66g.js +364 -0
  12. package/dist/core/{BlockNoise-DINAV0qg.js → BlockNoise-Ct9Fae_7.js} +3 -3
  13. package/dist/core/{BlueNoise-B9jPJ1s5.js → BlueNoise-Cu7rJuP0.js} +2 -2
  14. package/dist/core/{Blur-DDWaY0Ld.js → Blur-BrdVVSPq.js} +1 -1
  15. package/dist/core/Boids-DIzUaLGM.js +4509 -0
  16. package/dist/core/BokehBlur-yYb03spN.js +3509 -0
  17. package/dist/core/{BrickPattern-DGsAflLE.js → BrickPattern-BL_MOS_A.js} +2 -2
  18. package/dist/core/{BrightnessContrast-CEHGmtvm.js → BrightnessContrast-CiKimIcA.js} +1 -1
  19. package/dist/core/{BrushedMetal-CcpOuWtJ.js → BrushedMetal-dvYjizvg.js} +4 -4
  20. package/dist/core/{Bulge-B3noQSAj.js → Bulge-CogpoPKe.js} +1 -1
  21. package/dist/core/{CRTScreen-DL5luEsd.js → CRTScreen-X64EnHMB.js} +1 -1
  22. package/dist/core/{CarbonFiber-CSHN_f_N.js → CarbonFiber-CTy3P-Qk.js} +3 -3
  23. package/dist/core/{Chalkboard-BSLaGFyY.js → Chalkboard-CnHUOHtc.js} +1 -1
  24. package/dist/core/{ChannelBlur-CDigdYX8.js → ChannelBlur-MwnpNLSZ.js} +1 -1
  25. package/dist/core/CheckerWipe-CCNc70ye.js +432 -0
  26. package/dist/core/{Checkerboard-DlZGigj6.js → Checkerboard-C97ZiLyQ.js} +1 -1
  27. package/dist/core/{Chevron-BuOn9mA1.js → Chevron-ABT6D1wM.js} +2 -2
  28. package/dist/core/{ChromaFlow-BOB8M0bU.js → ChromaFlow-7tJQEFm9.js} +1 -1
  29. package/dist/core/{ChromaticAberration-gtezUw88.js → ChromaticAberration-D7-fxyEd.js} +1 -1
  30. package/dist/core/{Circle-Vb7e3gL-.js → Circle-I0DIAypS.js} +1 -1
  31. package/dist/core/{ColorWheel-jc1jsi5U.js → ColorWheel-CEqzzrN-.js} +2 -2
  32. package/dist/core/{CompressionArtifacts-DlwHUO-X.js → CompressionArtifacts-C24nRoC3.js} +1 -1
  33. package/dist/core/{ConcentricSpin-BLIJre0M.js → ConcentricSpin-CAu-PGNH.js} +2 -2
  34. package/dist/core/{ConicGradient-BcNQlquk.js → ConicGradient-n12K5TLj.js} +2 -2
  35. package/dist/core/{ContourLines-CkGvhac3.js → ContourLines-FOStIWDr.js} +1 -1
  36. package/dist/core/{CornerPin-DYy3m7oY.js → CornerPin-DsUVMFcX.js} +1 -1
  37. package/dist/core/{Crescent-CrWVqQDf.js → Crescent-9i_5WPA-.js} +1 -1
  38. package/dist/core/{Cross-DUznb_Y-.js → Cross-HiA69xGL.js} +1 -1
  39. package/dist/core/{Crystal-CgDpYkhN.js → Crystal-BBjEm9m4.js} +3 -3
  40. package/dist/core/{CurlNoise-DAYJuMmN.js → CurlNoise-1jifziI0.js} +3 -3
  41. package/dist/core/{CursorRipples-CNP8wzdR.js → CursorRipples-D4agAYHK.js} +1 -1
  42. package/dist/core/{CursorTrail-B1VULW3E.js → CursorTrail-C-FrY0e2.js} +2 -2
  43. package/dist/core/{DataMosh-BYwbcTxJ.js → DataMosh-DXcM1I4Y.js} +1 -1
  44. package/dist/core/{DiamondGradient-BB7ajCKo.js → DiamondGradient-CQ5jeKEc.js} +2 -2
  45. package/dist/core/DiamondWipe-B1EXgweH.js +381 -0
  46. package/dist/core/{DiffuseBlur-KE2fGEND.js → DiffuseBlur-CmD97dHb.js} +1 -1
  47. package/dist/core/DisplacementMap-JV_CNJfU.js +536 -0
  48. package/dist/core/{Dither-B8yxWNxE.js → Dither-NJDWpGb3.js} +1 -1
  49. package/dist/core/{DotGrid-Doh7yuqR.js → DotGrid-B2w7RFcv.js} +2 -2
  50. package/dist/core/{DropShadow-DhHQBpiK.js → DropShadow-CLWp-bon.js} +1 -1
  51. package/dist/core/{Duotone-DA3IudVy.js → Duotone-Be2jx-jZ.js} +1 -1
  52. package/dist/core/{Ellipse-m1D5EVjj.js → Ellipse-BR6qXidK.js} +1 -1
  53. package/dist/core/{Emboss-C3NBF44G.js → Emboss-C8ElxLo3.js} +3 -3
  54. package/dist/core/{Engraving-Bz503L4R.js → Engraving-D67DM--1.js} +1 -1
  55. package/dist/core/{ErosionNoise-DOOt5U2Z.js → ErosionNoise-FeEMQOkR.js} +2 -2
  56. package/dist/core/{Exposure-DkQ4kanv.js → Exposure-CZ1gfqpf.js} +1 -1
  57. package/dist/core/{FallingLines-BE6S1TUf.js → FallingLines-ifuQ01oA.js} +2 -2
  58. package/dist/core/{FilmGrain-9-Mgc2Ri.js → FilmGrain-p5sawa_f.js} +1 -1
  59. package/dist/core/FilmStock-BD5wv1TV.js +2029 -0
  60. package/dist/core/{Flip-Dpi0pVGo.js → Flip-MKiLH9jJ.js} +1 -1
  61. package/dist/core/FloatingParticles-Bn8CmtwG.js +2736 -0
  62. package/dist/core/{FlowField-0UUp41dK.js → FlowField-BdFeRmif.js} +2 -2
  63. package/dist/core/{Flower-DJLgm11L.js → Flower-BwDBwcSk.js} +1 -1
  64. package/dist/core/{FlowingGradient-C01NbZ16.js → FlowingGradient-RYOS36eB.js} +2 -2
  65. package/dist/core/{FlutedGlass-DIwsLgXX.js → FlutedGlass-Ong8W4Ih.js} +2 -2
  66. package/dist/core/{Fog-BwPDTYRv.js → Fog-C-X8msRb.js} +1 -1
  67. package/dist/core/{Form3D-Csuoy7Rq.js → Form3D-BZ_vaLWe.js} +2 -2
  68. package/dist/core/{FractalNoise-B9usxoBx.js → FractalNoise-BPj8RPkE.js} +2 -2
  69. package/dist/core/{Frost-Bhd3oWES.js → Frost-DmxlFu63.js} +4 -4
  70. package/dist/core/{GaborNoise-CQX_VPTg.js → GaborNoise-Boc8ieHd.js} +3 -3
  71. package/dist/core/{Glass-tFOQd3eV.js → Glass-D5p21MIw.js} +3 -3
  72. package/dist/core/{GlassTiles-C-yPKp5B.js → GlassTiles-BP4CzdI3.js} +1 -1
  73. package/dist/core/{Glitch-0i5BtHaq.js → Glitch-cJguD7jS.js} +1 -1
  74. package/dist/core/{Glow-CMz4cv5I.js → Glow-BabfcnwS.js} +1 -1
  75. package/dist/core/{Godrays-D0euidZr.js → Godrays-BpiKSlNR.js} +2 -2
  76. package/dist/core/{Goo-AMjCwSDQ.js → Goo-BaQEtOyr.js} +4 -4
  77. package/dist/core/{GradientMap-BU4kVWfH.js → GradientMap-BtKtW-4M.js} +1 -1
  78. package/dist/core/{Grayscale-iaDYz9To.js → Grayscale-Bgwugyvv.js} +1 -1
  79. package/dist/core/{Grid-BwbSPDqS.js → Grid-5cEDkyWX.js} +1 -1
  80. package/dist/core/{GridDistortion-B3S8D94q.js → GridDistortion-Byf4G720.js} +1 -1
  81. package/dist/core/{Group-0BcuiZZM.js → Group-DUEQSUir.js} +1 -1
  82. package/dist/core/{DOMTexture-DROf41BI.js → HTMLInCanvas-uW1O3Z-R.js} +17 -8
  83. package/dist/core/{Halftone-ClxolEhO.js → Halftone-BiSLVvGF.js} +1 -1
  84. package/dist/core/{Heart-BdSnsqq-.js → Heart-RAGeVEVH.js} +1 -1
  85. package/dist/core/{Heatmap-CFEEphb2.js → Heatmap-Ds65scO7.js} +4 -4
  86. package/dist/core/{HexGrid-D8CgLdgw.js → HexGrid-H1N5Y1XD.js} +1 -1
  87. package/dist/core/{Hologram-IJhpMkKa.js → Hologram-DpDfyeSz.js} +4 -4
  88. package/dist/core/{Holographic-BbrHmA39.js → Holographic-Ckubuqn8.js} +4 -4
  89. package/dist/core/{HueShift-Bv6qzKH0.js → HueShift-C_a5UVHy.js} +1 -1
  90. package/dist/core/{ImageTexture-Dh6VPuYy.js → ImageTexture-CM-dPJQ4.js} +1 -1
  91. package/dist/core/InkFlow-CY7sCKpI.js +4983 -0
  92. package/dist/core/{Invert-B8gtmw54.js → Invert-DhHrtwHQ.js} +1 -1
  93. package/dist/core/IrisWipe-BnOMUdEV.js +421 -0
  94. package/dist/core/{IsometricCubes-BL0ZvkwZ.js → IsometricCubes-CXPz62PB.js} +1 -1
  95. package/dist/core/{Kaleidoscope-D4VzDZni.js → Kaleidoscope-CSgi0E5B.js} +1 -1
  96. package/dist/core/{KeyFrames-C-nnFGBw.js → KeyFrames-C3I4poq8.js} +1 -1
  97. package/dist/core/{LensFlare-D_LFHDo0.js → LensFlare-DxvbKXgt.js} +2 -2
  98. package/dist/core/{LightEdge-Ck4lGBye.js → LightEdge-niXz_FAk.js} +4 -4
  99. package/dist/core/{LightLeak-DuaMzzKh.js → LightLeak-B7Pt1tt4.js} +2 -2
  100. package/dist/core/{LinearBlur-CHioFPql.js → LinearBlur-CXNcduWQ.js} +1 -1
  101. package/dist/core/{LinearGradient-CEz9WjgA.js → LinearGradient-CYiaWIXd.js} +2 -2
  102. package/dist/core/LinearWipe-gwLhEveK.js +424 -0
  103. package/dist/core/{LiquidMetal-CtbGXpkb.js → LiquidMetal-D0sgLjcd.js} +4 -4
  104. package/dist/core/{Liquify-B0rCOoDY.js → Liquify-h08a8S-C.js} +1 -1
  105. package/dist/core/MagneticFilings-BlNWPVwS.js +3118 -0
  106. package/dist/core/{Marble-BJp6F6BF.js → Marble-bps2lOWc.js} +2 -2
  107. package/dist/core/{Mirror-9fC_SqqB.js → Mirror-8miSUAyZ.js} +1 -1
  108. package/dist/core/{MultiPointGradient-BuDBY6Ax.js → MultiPointGradient-C-9_Q6CM.js} +1 -1
  109. package/dist/core/{Neon-CgA9zX4Y.js → Neon-RDh1tAjH.js} +3 -3
  110. package/dist/core/NoiseDissolve-DjlWGdUc.js +533 -0
  111. package/dist/core/{ObjectTracker-D1qrJe0c.js → ObjectTracker-DW4aEBRv.js} +2 -2
  112. package/dist/core/{PagePeel-YA6Q8kM0.js → PagePeel-JsbScYi4.js} +2 -2
  113. package/dist/core/{Paper-Bu3J7_h8.js → Paper-BGTU0GOF.js} +1 -1
  114. package/dist/core/{Parallelogram-8VWcTkAt.js → Parallelogram-RC3MxzlN.js} +1 -1
  115. package/dist/core/ParticleField-XypD7Eru.js +4786 -0
  116. package/dist/core/ParticleFlow-DBw7m9C6.js +6525 -0
  117. package/dist/core/{Particles-BG7Z-4in.js → Particles-CvpZvfe3.js} +728 -784
  118. package/dist/core/{PerlinNoise-gV2dOb_o.js → PerlinNoise-CHVaarmz.js} +3 -3
  119. package/dist/core/{Perspective-m70JnY4Z.js → Perspective-zyCZAb3_.js} +1 -1
  120. package/dist/core/{PixelSort-tKcoDnMz.js → PixelSort-B-zefB9S.js} +1 -1
  121. package/dist/core/{PixelThrow-CzelDKa4.js → PixelThrow-BZ6erf3G.js} +1 -1
  122. package/dist/core/{Pixelate-CcBgoqXj.js → Pixelate-D1e7buDQ.js} +1 -1
  123. package/dist/core/{Plasma-Bsei8uLa.js → Plasma-CBrx8Xu-.js} +2 -2
  124. package/dist/core/{Plastic-D9qe3OWm.js → Plastic-CcS4iAJM.js} +4 -4
  125. package/dist/core/{PolarCoordinates-C9WxI22k.js → PolarCoordinates-B9SuYLgF.js} +1 -1
  126. package/dist/core/{Polygon-D58HZRzJ.js → Polygon-N0l1KfIO.js} +1 -1
  127. package/dist/core/{Posterize-DxR6F30M.js → Posterize-u2et79Pv.js} +1 -1
  128. package/dist/core/{Prism-JLQP5dhZ.js → Prism-BnDsPBcD.js} +2 -2
  129. package/dist/core/{ProgressiveBlur-DpERTuHY.js → ProgressiveBlur-D9FiTJQy.js} +1 -1
  130. package/dist/core/{RadialGradient-N4mHVX7b.js → RadialGradient-C4oB78ya.js} +2 -2
  131. package/dist/core/RadialWipe-Dzb7i6wy.js +528 -0
  132. package/dist/core/RandomBars-DO9j43mN.js +490 -0
  133. package/dist/core/{ReactionDiffusion-BpLbPwbw.js → ReactionDiffusion-DG1NSPhM.js} +1 -1
  134. package/dist/core/{RectangularCoordinates-Bt9H7sBE.js → RectangularCoordinates-Ck1gXdGx.js} +1 -1
  135. package/dist/core/{ReflectivePlane-Cumbz3x2.js → ReflectivePlane-DFQDgLYC.js} +1 -1
  136. package/dist/core/{Repeater-DuRfWt9x.js → Repeater-CT35_BhW.js} +1 -1
  137. package/dist/core/{Ring-Cg_pZTin.js → Ring-DywDgKDv.js} +1 -1
  138. package/dist/core/RippleWipe-ePWlg-DT.js +500 -0
  139. package/dist/core/{Ripples-BtenteeG.js → Ripples-fTSMeqiE.js} +2 -2
  140. package/dist/core/{RoundedRect-C0ETFLNc.js → RoundedRect-B0lxuFfM.js} +1 -1
  141. package/dist/core/{Saturation-BbOceqP3.js → Saturation-ClaD54dk.js} +1 -1
  142. package/dist/core/{Scratches-B2Q_mgvt.js → Scratches-D8ZIBZ50.js} +3 -3
  143. package/dist/core/{Sharpness-Bhb9aDxA.js → Sharpness-CsnT4s1o.js} +1 -1
  144. package/dist/core/{Shatter-zxLD4RY8.js → Shatter-D_V7GBel.js} +1 -1
  145. package/dist/core/{SimplexNoise-DTCJ__Jt.js → SimplexNoise-tI2G3Wzn.js} +2 -2
  146. package/dist/core/{SineWave-JNTzGGXH.js → SineWave-BGsYyEFg.js} +2 -2
  147. package/dist/core/SliceWipe-s4pWdINK.js +482 -0
  148. package/dist/core/{Smoke-BX4EcQdI.js → Smoke-C3SLe_rD.js} +2 -2
  149. package/dist/core/{SmokeFill-9SqGHgJt.js → SmokeFill-BuKZtbX8.js} +3 -3
  150. package/dist/core/{SmokeFlow-Cfs5EVW_.js → SmokeFlow-5fnVH2a9.js} +2 -2
  151. package/dist/core/{Solarize-BQq15L3x.js → Solarize-TP85IPV7.js} +1 -1
  152. package/dist/core/{Spherize-Czfb_NCO.js → Spherize-C4qsnql6.js} +1 -1
  153. package/dist/core/{Spiral-CO_pymky.js → Spiral-rPHDFACm.js} +2 -2
  154. package/dist/core/{Star-CgLpQtzz.js → Star-BDFhZWLo.js} +1 -1
  155. package/dist/core/{Stone-Bl9-bI0G.js → Stone-CCXo9IgA.js} +2 -2
  156. package/dist/core/{Strands-BdSTwZXc.js → Strands-DCzYUsCX.js} +2 -2
  157. package/dist/core/{Stretch-BCZ_vkQn.js → Stretch-CjhYXAth.js} +1 -1
  158. package/dist/core/{Stripes-OLW9XYEW.js → Stripes-CN2TFWGw.js} +2 -2
  159. package/dist/core/{StudioBackground-ksKsEcWQ.js → StudioBackground-I_XxtKjr.js} +2 -2
  160. package/dist/core/{SunBurst-B_mkcjjh.js → SunBurst-CGQkdsXl.js} +2 -2
  161. package/dist/core/{Surface3D-D6D9L3et.js → Surface3D-CpCPTs0u.js} +1 -1
  162. package/dist/core/{Swirl-DMQ-Iq-_.js → Swirl-BCnlG3G8.js} +2 -2
  163. package/dist/core/{Teardrop-Dz5aCCyM.js → Teardrop-DX-YZkNC.js} +1 -1
  164. package/dist/core/{Text-9v36CCo0.js → Text-oI5d7_UD.js} +2 -2
  165. package/dist/core/{ThinFilm-C28dTgXR.js → ThinFilm-CEYaV4nn.js} +3 -3
  166. package/dist/core/{TiltShift-Df93B2bk.js → TiltShift-C8GluqAm.js} +1 -1
  167. package/dist/core/TimeTrail-CPiSo5Of.js +2847 -0
  168. package/dist/core/{Tint-e-sF3Q5L.js → Tint-NA7BO-Qk.js} +1 -1
  169. package/dist/core/{Trapezoid-B6r05rcQ.js → Trapezoid-BOGSQvW5.js} +1 -1
  170. package/dist/core/{TriangularGrid-CX7hnKpa.js → TriangularGrid-Zx3I4CqA.js} +2 -2
  171. package/dist/core/{Tritone-CccAEZZ2.js → Tritone-Bl69W4Y4.js} +1 -1
  172. package/dist/core/{Truchet-DG3fNF5b.js → Truchet-RJI0-v6x.js} +1 -1
  173. package/dist/core/{Twirl-CtFo8Cjm.js → Twirl-CrIawDs2.js} +1 -1
  174. package/dist/core/{VHS-CKc1qc0j.js → VHS-B12KbScc.js} +1 -1
  175. package/dist/core/VenetianBlinds-CGfPlhGd.js +460 -0
  176. package/dist/core/{Vesica-D1HOV75v.js → Vesica-DekjxkHL.js} +1 -1
  177. package/dist/core/{Vibrance-E9-pYAwh.js → Vibrance-DKKduAD8.js} +1 -1
  178. package/dist/core/{VideoTexture-Df7BPBe-.js → VideoTexture-1xg_a680.js} +1 -1
  179. package/dist/core/{Vignette-DOVH3O7h.js → Vignette-CDRCMNb2.js} +1 -1
  180. package/dist/core/{Voronoi-BYmYkJfN.js → Voronoi-EWj3WFqv.js} +2 -2
  181. package/dist/core/{Water-DAQnd09w.js → Water-BdGrOEuE.js} +4 -4
  182. package/dist/core/{Watercolor-B1iwfQSH.js → Watercolor-BGIcnGZu.js} +1 -1
  183. package/dist/core/{WaveDistortion-BNkgWs3D.js → WaveDistortion-BNlrOaur.js} +2 -2
  184. package/dist/core/{WaveletNoise-ByqzdG-6.js → WaveletNoise-Jv-694xX.js} +3 -3
  185. package/dist/core/{Weave-DeItcIeX.js → Weave-HNS6xvOs.js} +1 -1
  186. package/dist/core/{WebcamTexture-BAeqZ7pH.js → WebcamTexture-DVKxGpWI.js} +1 -1
  187. package/dist/core/{Wool-Br5Ajlvr.js → Wool-D7uM0JRs.js} +2 -2
  188. package/dist/core/{WorleyNoise-D1piyiG2.js → WorleyNoise-DsDWmRCp.js} +2 -2
  189. package/dist/core/{ZoomBlur-ZEtNzn4_.js → ZoomBlur-S2GfQojf.js} +1 -1
  190. package/dist/core/{coords-DLZT4HVT.js → coords-0A7CojvN.js} +1366 -347
  191. package/dist/core/{glass-CGThMEIa.js → glass-BjUqcmHP.js} +1 -1
  192. package/dist/core/gpu/composer.d.ts.map +1 -1
  193. package/dist/core/gpu/contract.d.ts +28 -7
  194. package/dist/core/gpu/contract.d.ts.map +1 -1
  195. package/dist/core/gpu/index.d.ts +4 -0
  196. package/dist/core/gpu/index.d.ts.map +1 -1
  197. package/dist/core/gpu/kit/agents.d.ts +78 -0
  198. package/dist/core/gpu/kit/agents.d.ts.map +1 -0
  199. package/dist/core/gpu/kit/index.d.ts +1 -0
  200. package/dist/core/gpu/kit/index.d.ts.map +1 -1
  201. package/dist/core/gpu/kit/tonemap.d.ts +1 -1
  202. package/dist/core/gpu/textures.d.ts +1 -1
  203. package/dist/core/gpu/textures.d.ts.map +1 -1
  204. package/dist/core/index.js +309 -252
  205. package/dist/core/{noiseColor-kVjc2DJn.js → noiseColor-w3B94vmT.js} +1 -1
  206. package/dist/core/{porters-DdcOi7BN.js → porters-B1jqpcE3.js} +1 -1
  207. package/dist/core/registry.js +197 -175
  208. package/dist/core/shaderRegistry-BrbiIqjD.js +425 -0
  209. package/dist/core/shaderRegistry.d.ts +3 -0
  210. package/dist/core/shaderRegistry.d.ts.map +1 -1
  211. package/dist/core/shaders/AngularBlur/index.js +3 -3
  212. package/dist/core/shaders/Arc/index.js +3 -3
  213. package/dist/core/shaders/Ascii/index.js +3 -3
  214. package/dist/core/shaders/Aurora/index.js +3 -3
  215. package/dist/core/shaders/BarShift/index.js +3 -3
  216. package/dist/core/shaders/BarnDoors/index.d.ts +34 -0
  217. package/dist/core/shaders/BarnDoors/index.d.ts.map +1 -0
  218. package/dist/core/shaders/BarnDoors/index.js +5 -0
  219. package/dist/core/shaders/Beam/index.js +3 -3
  220. package/dist/core/shaders/Bend/index.d.ts +34 -0
  221. package/dist/core/shaders/Bend/index.d.ts.map +1 -0
  222. package/dist/core/shaders/Bend/index.js +5 -0
  223. package/dist/core/shaders/Blob/index.js +3 -3
  224. package/dist/core/shaders/BlockDissolve/index.d.ts +34 -0
  225. package/dist/core/shaders/BlockDissolve/index.d.ts.map +1 -0
  226. package/dist/core/shaders/BlockDissolve/index.js +5 -0
  227. package/dist/core/shaders/BlockNoise/index.js +4 -4
  228. package/dist/core/shaders/BlueNoise/index.js +4 -4
  229. package/dist/core/shaders/Blur/index.js +3 -3
  230. package/dist/core/shaders/Boids/index.d.ts +152 -0
  231. package/dist/core/shaders/Boids/index.d.ts.map +1 -0
  232. package/dist/core/shaders/Boids/index.js +5 -0
  233. package/dist/core/shaders/BokehBlur/index.d.ts +187 -0
  234. package/dist/core/shaders/BokehBlur/index.d.ts.map +1 -0
  235. package/dist/core/shaders/BokehBlur/index.js +5 -0
  236. package/dist/core/shaders/BrickPattern/index.js +3 -3
  237. package/dist/core/shaders/BrightnessContrast/index.js +3 -3
  238. package/dist/core/shaders/BrushedMetal/index.js +5 -5
  239. package/dist/core/shaders/Bulge/index.js +3 -3
  240. package/dist/core/shaders/CRTScreen/index.js +3 -3
  241. package/dist/core/shaders/CarbonFiber/index.js +5 -5
  242. package/dist/core/shaders/Chalkboard/index.js +3 -3
  243. package/dist/core/shaders/ChannelBlur/index.js +3 -3
  244. package/dist/core/shaders/CheckerWipe/index.d.ts +34 -0
  245. package/dist/core/shaders/CheckerWipe/index.d.ts.map +1 -0
  246. package/dist/core/shaders/CheckerWipe/index.js +5 -0
  247. package/dist/core/shaders/Checkerboard/index.js +3 -3
  248. package/dist/core/shaders/Chevron/index.js +3 -3
  249. package/dist/core/shaders/ChromaFlow/index.js +3 -3
  250. package/dist/core/shaders/ChromaticAberration/index.js +3 -3
  251. package/dist/core/shaders/Circle/index.js +3 -3
  252. package/dist/core/shaders/ColorWheel/index.js +3 -3
  253. package/dist/core/shaders/CompressionArtifacts/index.js +3 -3
  254. package/dist/core/shaders/ConcentricSpin/index.js +3 -3
  255. package/dist/core/shaders/ConicGradient/index.js +3 -3
  256. package/dist/core/shaders/ContourLines/index.js +3 -3
  257. package/dist/core/shaders/CornerPin/index.js +3 -3
  258. package/dist/core/shaders/Crescent/index.js +3 -3
  259. package/dist/core/shaders/Cross/index.js +3 -3
  260. package/dist/core/shaders/Crystal/index.js +5 -5
  261. package/dist/core/shaders/CurlNoise/index.js +4 -4
  262. package/dist/core/shaders/CursorRipples/index.js +3 -3
  263. package/dist/core/shaders/CursorTrail/index.js +3 -3
  264. package/dist/core/shaders/DataMosh/index.js +3 -3
  265. package/dist/core/shaders/DiamondGradient/index.js +3 -3
  266. package/dist/core/shaders/DiamondWipe/index.d.ts +34 -0
  267. package/dist/core/shaders/DiamondWipe/index.d.ts.map +1 -0
  268. package/dist/core/shaders/DiamondWipe/index.js +5 -0
  269. package/dist/core/shaders/DiffuseBlur/index.js +3 -3
  270. package/dist/core/shaders/DisplacementMap/index.d.ts +44 -0
  271. package/dist/core/shaders/DisplacementMap/index.d.ts.map +1 -0
  272. package/dist/core/shaders/DisplacementMap/index.js +5 -0
  273. package/dist/core/shaders/Dither/index.js +3 -3
  274. package/dist/core/shaders/DotGrid/index.js +3 -3
  275. package/dist/core/shaders/DropShadow/index.js +3 -3
  276. package/dist/core/shaders/Duotone/index.js +3 -3
  277. package/dist/core/shaders/Ellipse/index.js +3 -3
  278. package/dist/core/shaders/Emboss/index.js +5 -5
  279. package/dist/core/shaders/Engraving/index.js +3 -3
  280. package/dist/core/shaders/ErosionNoise/index.js +4 -4
  281. package/dist/core/shaders/Exposure/index.js +3 -3
  282. package/dist/core/shaders/FallingLines/index.js +3 -3
  283. package/dist/core/shaders/FilmGrain/index.js +3 -3
  284. package/dist/core/shaders/FilmStock/index.d.ts +101 -0
  285. package/dist/core/shaders/FilmStock/index.d.ts.map +1 -0
  286. package/dist/core/shaders/FilmStock/index.js +5 -0
  287. package/dist/core/shaders/FilmStock/stockLuts.d.ts +65 -0
  288. package/dist/core/shaders/FilmStock/stockLuts.d.ts.map +1 -0
  289. package/dist/core/shaders/Flip/index.js +3 -3
  290. package/dist/core/shaders/FloatingParticles/index.d.ts +65 -39
  291. package/dist/core/shaders/FloatingParticles/index.d.ts.map +1 -1
  292. package/dist/core/shaders/FloatingParticles/index.js +4 -4
  293. package/dist/core/shaders/FlowField/index.js +3 -3
  294. package/dist/core/shaders/Flower/index.js +3 -3
  295. package/dist/core/shaders/FlowingGradient/index.js +3 -3
  296. package/dist/core/shaders/FlutedGlass/index.js +3 -3
  297. package/dist/core/shaders/Fog/index.js +3 -3
  298. package/dist/core/shaders/Form3D/index.js +3 -3
  299. package/dist/core/shaders/FractalNoise/index.js +3 -3
  300. package/dist/core/shaders/Frost/index.js +5 -5
  301. package/dist/core/shaders/GaborNoise/index.js +4 -4
  302. package/dist/core/shaders/Glass/index.js +5 -5
  303. package/dist/core/shaders/GlassTiles/index.js +3 -3
  304. package/dist/core/shaders/Glitch/index.js +3 -3
  305. package/dist/core/shaders/Glow/index.js +3 -3
  306. package/dist/core/shaders/Godrays/index.js +3 -3
  307. package/dist/core/shaders/Goo/index.js +5 -5
  308. package/dist/core/shaders/GradientMap/index.js +3 -3
  309. package/dist/core/shaders/Grayscale/index.js +3 -3
  310. package/dist/core/shaders/Grid/index.js +3 -3
  311. package/dist/core/shaders/GridDistortion/index.js +3 -3
  312. package/dist/core/shaders/Group/index.js +3 -3
  313. package/dist/core/shaders/HTMLInCanvas/index.d.ts.map +1 -0
  314. package/dist/core/shaders/HTMLInCanvas/index.js +5 -0
  315. package/dist/core/shaders/Halftone/index.js +3 -3
  316. package/dist/core/shaders/Heart/index.js +3 -3
  317. package/dist/core/shaders/Heatmap/index.js +5 -5
  318. package/dist/core/shaders/HexGrid/index.js +3 -3
  319. package/dist/core/shaders/Hologram/index.js +5 -5
  320. package/dist/core/shaders/Holographic/index.js +5 -5
  321. package/dist/core/shaders/HueShift/index.js +3 -3
  322. package/dist/core/shaders/ImageTexture/index.js +3 -3
  323. package/dist/core/shaders/InkFlow/index.d.ts +105 -0
  324. package/dist/core/shaders/InkFlow/index.d.ts.map +1 -0
  325. package/dist/core/shaders/InkFlow/index.js +5 -0
  326. package/dist/core/shaders/Invert/index.js +3 -3
  327. package/dist/core/shaders/IrisWipe/index.d.ts +36 -0
  328. package/dist/core/shaders/IrisWipe/index.d.ts.map +1 -0
  329. package/dist/core/shaders/IrisWipe/index.js +5 -0
  330. package/dist/core/shaders/IsometricCubes/index.js +3 -3
  331. package/dist/core/shaders/Kaleidoscope/index.js +3 -3
  332. package/dist/core/shaders/KeyFrames/index.js +3 -3
  333. package/dist/core/shaders/LensFlare/index.js +3 -3
  334. package/dist/core/shaders/LightEdge/index.js +5 -5
  335. package/dist/core/shaders/LightLeak/index.js +3 -3
  336. package/dist/core/shaders/LinearBlur/index.js +3 -3
  337. package/dist/core/shaders/LinearGradient/index.js +3 -3
  338. package/dist/core/shaders/LinearWipe/index.d.ts +34 -0
  339. package/dist/core/shaders/LinearWipe/index.d.ts.map +1 -0
  340. package/dist/core/shaders/LinearWipe/index.js +5 -0
  341. package/dist/core/shaders/LiquidMetal/index.js +5 -5
  342. package/dist/core/shaders/Liquify/index.js +3 -3
  343. package/dist/core/shaders/MagneticFilings/index.d.ts +113 -0
  344. package/dist/core/shaders/MagneticFilings/index.d.ts.map +1 -0
  345. package/dist/core/shaders/MagneticFilings/index.js +5 -0
  346. package/dist/core/shaders/Marble/index.js +3 -3
  347. package/dist/core/shaders/Mirror/index.js +3 -3
  348. package/dist/core/shaders/MultiPointGradient/index.js +3 -3
  349. package/dist/core/shaders/Neon/index.js +4 -4
  350. package/dist/core/shaders/NoiseDissolve/index.d.ts +40 -0
  351. package/dist/core/shaders/NoiseDissolve/index.d.ts.map +1 -0
  352. package/dist/core/shaders/NoiseDissolve/index.js +5 -0
  353. package/dist/core/shaders/ObjectTracker/index.js +4 -4
  354. package/dist/core/shaders/PagePeel/index.js +3 -3
  355. package/dist/core/shaders/Paper/index.js +3 -3
  356. package/dist/core/shaders/Parallelogram/index.js +3 -3
  357. package/dist/core/shaders/ParticleField/index.d.ts +134 -0
  358. package/dist/core/shaders/ParticleField/index.d.ts.map +1 -0
  359. package/dist/core/shaders/ParticleField/index.js +5 -0
  360. package/dist/core/shaders/ParticleFlow/index.d.ts +124 -0
  361. package/dist/core/shaders/ParticleFlow/index.d.ts.map +1 -0
  362. package/dist/core/shaders/ParticleFlow/index.js +5 -0
  363. package/dist/core/shaders/Particles/index.d.ts +14 -4
  364. package/dist/core/shaders/Particles/index.d.ts.map +1 -1
  365. package/dist/core/shaders/Particles/index.js +5 -5
  366. package/dist/core/shaders/PerlinNoise/index.js +4 -4
  367. package/dist/core/shaders/Perspective/index.js +3 -3
  368. package/dist/core/shaders/PixelSort/index.js +3 -3
  369. package/dist/core/shaders/PixelThrow/index.js +3 -3
  370. package/dist/core/shaders/Pixelate/index.js +3 -3
  371. package/dist/core/shaders/Plasma/index.js +3 -3
  372. package/dist/core/shaders/Plastic/index.js +5 -5
  373. package/dist/core/shaders/PolarCoordinates/index.js +3 -3
  374. package/dist/core/shaders/Polygon/index.js +3 -3
  375. package/dist/core/shaders/Posterize/index.js +3 -3
  376. package/dist/core/shaders/Prism/index.js +3 -3
  377. package/dist/core/shaders/ProgressiveBlur/index.js +3 -3
  378. package/dist/core/shaders/RadialGradient/index.js +3 -3
  379. package/dist/core/shaders/RadialWipe/index.d.ts +49 -0
  380. package/dist/core/shaders/RadialWipe/index.d.ts.map +1 -0
  381. package/dist/core/shaders/RadialWipe/index.js +5 -0
  382. package/dist/core/shaders/RandomBars/index.d.ts +40 -0
  383. package/dist/core/shaders/RandomBars/index.d.ts.map +1 -0
  384. package/dist/core/shaders/RandomBars/index.js +5 -0
  385. package/dist/core/shaders/ReactionDiffusion/index.js +3 -3
  386. package/dist/core/shaders/RectangularCoordinates/index.js +3 -3
  387. package/dist/core/shaders/ReflectivePlane/index.js +3 -3
  388. package/dist/core/shaders/Repeater/index.js +3 -3
  389. package/dist/core/shaders/Ring/index.js +3 -3
  390. package/dist/core/shaders/RippleWipe/index.d.ts +42 -0
  391. package/dist/core/shaders/RippleWipe/index.d.ts.map +1 -0
  392. package/dist/core/shaders/RippleWipe/index.js +5 -0
  393. package/dist/core/shaders/Ripples/index.js +3 -3
  394. package/dist/core/shaders/RoundedRect/index.js +3 -3
  395. package/dist/core/shaders/Saturation/index.js +3 -3
  396. package/dist/core/shaders/Scratches/index.js +4 -4
  397. package/dist/core/shaders/Sharpness/index.js +3 -3
  398. package/dist/core/shaders/Shatter/index.js +3 -3
  399. package/dist/core/shaders/SimplexNoise/index.js +3 -3
  400. package/dist/core/shaders/SineWave/index.js +3 -3
  401. package/dist/core/shaders/SliceWipe/index.d.ts +27 -0
  402. package/dist/core/shaders/SliceWipe/index.d.ts.map +1 -0
  403. package/dist/core/shaders/SliceWipe/index.js +5 -0
  404. package/dist/core/shaders/Smoke/index.js +3 -3
  405. package/dist/core/shaders/SmokeFill/index.js +5 -5
  406. package/dist/core/shaders/SmokeFlow/index.js +3 -3
  407. package/dist/core/shaders/Solarize/index.js +3 -3
  408. package/dist/core/shaders/SolidColor/index.js +1 -1
  409. package/dist/core/shaders/Spherize/index.js +3 -3
  410. package/dist/core/shaders/Spiral/index.js +3 -3
  411. package/dist/core/shaders/Star/index.js +3 -3
  412. package/dist/core/shaders/Stone/index.js +3 -3
  413. package/dist/core/shaders/Strands/index.js +3 -3
  414. package/dist/core/shaders/Stretch/index.js +3 -3
  415. package/dist/core/shaders/Stripes/index.js +3 -3
  416. package/dist/core/shaders/StudioBackground/index.js +3 -3
  417. package/dist/core/shaders/SunBurst/index.js +3 -3
  418. package/dist/core/shaders/Surface3D/index.js +3 -3
  419. package/dist/core/shaders/Swirl/index.js +3 -3
  420. package/dist/core/shaders/Teardrop/index.js +3 -3
  421. package/dist/core/shaders/Text/index.js +4 -4
  422. package/dist/core/shaders/ThinFilm/index.js +4 -4
  423. package/dist/core/shaders/TiltShift/index.js +3 -3
  424. package/dist/core/shaders/TimeTrail/index.d.ts +100 -0
  425. package/dist/core/shaders/TimeTrail/index.d.ts.map +1 -0
  426. package/dist/core/shaders/TimeTrail/index.js +5 -0
  427. package/dist/core/shaders/Tint/index.js +3 -3
  428. package/dist/core/shaders/Trapezoid/index.js +3 -3
  429. package/dist/core/shaders/TriangularGrid/index.js +3 -3
  430. package/dist/core/shaders/Tritone/index.js +3 -3
  431. package/dist/core/shaders/Truchet/index.js +3 -3
  432. package/dist/core/shaders/Twirl/index.js +3 -3
  433. package/dist/core/shaders/VHS/index.js +3 -3
  434. package/dist/core/shaders/VenetianBlinds/index.d.ts +40 -0
  435. package/dist/core/shaders/VenetianBlinds/index.d.ts.map +1 -0
  436. package/dist/core/shaders/VenetianBlinds/index.js +5 -0
  437. package/dist/core/shaders/Vesica/index.js +3 -3
  438. package/dist/core/shaders/Vibrance/index.js +3 -3
  439. package/dist/core/shaders/VideoTexture/index.js +3 -3
  440. package/dist/core/shaders/Vignette/index.js +3 -3
  441. package/dist/core/shaders/Voronoi/index.js +3 -3
  442. package/dist/core/shaders/Water/index.js +5 -5
  443. package/dist/core/shaders/Watercolor/index.js +3 -3
  444. package/dist/core/shaders/WaveDistortion/index.js +3 -3
  445. package/dist/core/shaders/WaveletNoise/index.js +4 -4
  446. package/dist/core/shaders/Weave/index.js +3 -3
  447. package/dist/core/shaders/WebcamTexture/index.js +3 -3
  448. package/dist/core/shaders/Wool/index.js +3 -3
  449. package/dist/core/shaders/WorleyNoise/index.js +3 -3
  450. package/dist/core/shaders/ZoomBlur/index.js +3 -3
  451. package/dist/core/{shapeEffectBounds-BglTGD4B.js → shapeEffectBounds-DRyn6AvG.js} +1 -1
  452. package/dist/core/types.d.ts +5 -1
  453. package/dist/core/types.d.ts.map +1 -1
  454. package/dist/js/bundle.js +177 -177
  455. package/dist/js/createShader.d.ts.map +1 -1
  456. package/dist/js/createShader.js +2 -1
  457. package/dist/js/utils/generatePresetCode.d.ts.map +1 -1
  458. package/dist/js/utils/generatePresetCode.js +285 -12
  459. package/dist/react/BarnDoors.js +220 -0
  460. package/dist/react/Bend.js +220 -0
  461. package/dist/react/BlockDissolve.js +220 -0
  462. package/dist/react/Boids.js +220 -0
  463. package/dist/react/BokehBlur.js +220 -0
  464. package/dist/react/CheckerWipe.js +220 -0
  465. package/dist/react/DiamondWipe.js +220 -0
  466. package/dist/react/DisplacementMap.js +220 -0
  467. package/dist/react/FilmStock.js +220 -0
  468. package/dist/react/HTMLInCanvas.js +220 -0
  469. package/dist/react/InkFlow.js +220 -0
  470. package/dist/react/IrisWipe.js +220 -0
  471. package/dist/react/{DOMTexture.js → LinearWipe.js} +3 -3
  472. package/dist/react/MagneticFilings.js +220 -0
  473. package/dist/react/NoiseDissolve.js +220 -0
  474. package/dist/react/ParticleField.js +220 -0
  475. package/dist/react/ParticleFlow.js +220 -0
  476. package/dist/react/Preview.js +24 -1
  477. package/dist/react/RadialWipe.js +220 -0
  478. package/dist/react/RandomBars.js +220 -0
  479. package/dist/react/RippleWipe.js +220 -0
  480. package/dist/react/Shader.js +1 -1
  481. package/dist/react/SliceWipe.js +220 -0
  482. package/dist/react/TimeTrail.js +220 -0
  483. package/dist/react/VenetianBlinds.js +220 -0
  484. package/dist/react/bundle.js +164 -164
  485. package/dist/react/components/BarnDoors.d.ts +36 -0
  486. package/dist/react/components/BarnDoors.d.ts.map +1 -0
  487. package/dist/react/components/Bend.d.ts +36 -0
  488. package/dist/react/components/Bend.d.ts.map +1 -0
  489. package/dist/react/components/BlockDissolve.d.ts +36 -0
  490. package/dist/react/components/BlockDissolve.d.ts.map +1 -0
  491. package/dist/react/components/{DOMTexture.d.ts → Boids.d.ts} +2 -2
  492. package/dist/react/components/Boids.d.ts.map +1 -0
  493. package/dist/react/components/BokehBlur.d.ts +38 -0
  494. package/dist/react/components/BokehBlur.d.ts.map +1 -0
  495. package/dist/react/components/CheckerWipe.d.ts +36 -0
  496. package/dist/react/components/CheckerWipe.d.ts.map +1 -0
  497. package/dist/react/components/DiamondWipe.d.ts +36 -0
  498. package/dist/react/components/DiamondWipe.d.ts.map +1 -0
  499. package/dist/react/components/DisplacementMap.d.ts +35 -0
  500. package/dist/react/components/DisplacementMap.d.ts.map +1 -0
  501. package/dist/react/components/FilmStock.d.ts +36 -0
  502. package/dist/react/components/FilmStock.d.ts.map +1 -0
  503. package/dist/react/components/FloatingParticles.d.ts +3 -3
  504. package/dist/react/components/FloatingParticles.d.ts.map +1 -1
  505. package/dist/react/components/HTMLInCanvas.d.ts +32 -0
  506. package/dist/react/components/HTMLInCanvas.d.ts.map +1 -0
  507. package/dist/react/components/InkFlow.d.ts +32 -0
  508. package/dist/react/components/InkFlow.d.ts.map +1 -0
  509. package/dist/react/components/IrisWipe.d.ts +36 -0
  510. package/dist/react/components/IrisWipe.d.ts.map +1 -0
  511. package/dist/react/components/LinearWipe.d.ts +36 -0
  512. package/dist/react/components/LinearWipe.d.ts.map +1 -0
  513. package/dist/react/components/MagneticFilings.d.ts +32 -0
  514. package/dist/react/components/MagneticFilings.d.ts.map +1 -0
  515. package/dist/react/components/NoiseDissolve.d.ts +37 -0
  516. package/dist/react/components/NoiseDissolve.d.ts.map +1 -0
  517. package/dist/react/components/ParticleField.d.ts +42 -0
  518. package/dist/react/components/ParticleField.d.ts.map +1 -0
  519. package/dist/react/components/ParticleFlow.d.ts +32 -0
  520. package/dist/react/components/ParticleFlow.d.ts.map +1 -0
  521. package/dist/react/components/RadialWipe.d.ts +37 -0
  522. package/dist/react/components/RadialWipe.d.ts.map +1 -0
  523. package/dist/react/components/RandomBars.d.ts +37 -0
  524. package/dist/react/components/RandomBars.d.ts.map +1 -0
  525. package/dist/react/components/RippleWipe.d.ts +37 -0
  526. package/dist/react/components/RippleWipe.d.ts.map +1 -0
  527. package/dist/react/components/SliceWipe.d.ts +36 -0
  528. package/dist/react/components/SliceWipe.d.ts.map +1 -0
  529. package/dist/react/components/TimeTrail.d.ts +40 -0
  530. package/dist/react/components/TimeTrail.d.ts.map +1 -0
  531. package/dist/react/components/VenetianBlinds.d.ts +37 -0
  532. package/dist/react/components/VenetianBlinds.d.ts.map +1 -0
  533. package/dist/react/engine/Preview.d.ts.map +1 -1
  534. package/dist/react/index.d.ts +25 -1
  535. package/dist/react/index.d.ts.map +1 -1
  536. package/dist/react/index.js +24 -2
  537. package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
  538. package/dist/react/utils/generatePresetCode.js +286 -13
  539. package/dist/registry.d.ts +2 -0
  540. package/dist/registry.js +18995 -13551
  541. package/dist/solid/components/BarnDoors.d.ts +33 -0
  542. package/dist/solid/components/BarnDoors.d.ts.map +1 -0
  543. package/dist/solid/components/{DOMTexture.js → BarnDoors.js} +1 -1
  544. package/dist/solid/components/Bend.d.ts +33 -0
  545. package/dist/solid/components/Bend.d.ts.map +1 -0
  546. package/dist/solid/components/Bend.js +228 -0
  547. package/dist/solid/components/BlockDissolve.d.ts +33 -0
  548. package/dist/solid/components/BlockDissolve.d.ts.map +1 -0
  549. package/dist/solid/components/BlockDissolve.js +228 -0
  550. package/dist/solid/components/{DOMTexture.d.ts → Boids.d.ts} +2 -2
  551. package/dist/solid/components/Boids.d.ts.map +1 -0
  552. package/dist/solid/components/Boids.js +228 -0
  553. package/dist/solid/components/BokehBlur.d.ts +35 -0
  554. package/dist/solid/components/BokehBlur.d.ts.map +1 -0
  555. package/dist/solid/components/BokehBlur.js +228 -0
  556. package/dist/solid/components/CheckerWipe.d.ts +33 -0
  557. package/dist/solid/components/CheckerWipe.d.ts.map +1 -0
  558. package/dist/solid/components/CheckerWipe.js +228 -0
  559. package/dist/solid/components/DiamondWipe.d.ts +33 -0
  560. package/dist/solid/components/DiamondWipe.d.ts.map +1 -0
  561. package/dist/solid/components/DiamondWipe.js +228 -0
  562. package/dist/solid/components/DisplacementMap.d.ts +32 -0
  563. package/dist/solid/components/DisplacementMap.d.ts.map +1 -0
  564. package/dist/solid/components/DisplacementMap.js +228 -0
  565. package/dist/solid/components/FilmStock.d.ts +33 -0
  566. package/dist/solid/components/FilmStock.d.ts.map +1 -0
  567. package/dist/solid/components/FilmStock.js +228 -0
  568. package/dist/solid/components/FloatingParticles.d.ts +3 -3
  569. package/dist/solid/components/FloatingParticles.d.ts.map +1 -1
  570. package/dist/solid/components/HTMLInCanvas.d.ts +29 -0
  571. package/dist/solid/components/HTMLInCanvas.d.ts.map +1 -0
  572. package/dist/solid/components/HTMLInCanvas.js +228 -0
  573. package/dist/solid/components/InkFlow.d.ts +29 -0
  574. package/dist/solid/components/InkFlow.d.ts.map +1 -0
  575. package/dist/solid/components/InkFlow.js +228 -0
  576. package/dist/solid/components/IrisWipe.d.ts +33 -0
  577. package/dist/solid/components/IrisWipe.d.ts.map +1 -0
  578. package/dist/solid/components/IrisWipe.js +228 -0
  579. package/dist/solid/components/LinearWipe.d.ts +33 -0
  580. package/dist/solid/components/LinearWipe.d.ts.map +1 -0
  581. package/dist/solid/components/LinearWipe.js +228 -0
  582. package/dist/solid/components/MagneticFilings.d.ts +29 -0
  583. package/dist/solid/components/MagneticFilings.d.ts.map +1 -0
  584. package/dist/solid/components/MagneticFilings.js +228 -0
  585. package/dist/solid/components/NoiseDissolve.d.ts +34 -0
  586. package/dist/solid/components/NoiseDissolve.d.ts.map +1 -0
  587. package/dist/solid/components/NoiseDissolve.js +228 -0
  588. package/dist/solid/components/ParticleField.d.ts +39 -0
  589. package/dist/solid/components/ParticleField.d.ts.map +1 -0
  590. package/dist/solid/components/ParticleField.js +228 -0
  591. package/dist/solid/components/ParticleFlow.d.ts +29 -0
  592. package/dist/solid/components/ParticleFlow.d.ts.map +1 -0
  593. package/dist/solid/components/ParticleFlow.js +228 -0
  594. package/dist/solid/components/RadialWipe.d.ts +34 -0
  595. package/dist/solid/components/RadialWipe.d.ts.map +1 -0
  596. package/dist/solid/components/RadialWipe.js +228 -0
  597. package/dist/solid/components/RandomBars.d.ts +34 -0
  598. package/dist/solid/components/RandomBars.d.ts.map +1 -0
  599. package/dist/solid/components/RandomBars.js +228 -0
  600. package/dist/solid/components/RippleWipe.d.ts +34 -0
  601. package/dist/solid/components/RippleWipe.d.ts.map +1 -0
  602. package/dist/solid/components/RippleWipe.js +228 -0
  603. package/dist/solid/components/SliceWipe.d.ts +33 -0
  604. package/dist/solid/components/SliceWipe.d.ts.map +1 -0
  605. package/dist/solid/components/SliceWipe.js +228 -0
  606. package/dist/solid/components/TimeTrail.d.ts +37 -0
  607. package/dist/solid/components/TimeTrail.d.ts.map +1 -0
  608. package/dist/solid/components/TimeTrail.js +228 -0
  609. package/dist/solid/components/VenetianBlinds.d.ts +34 -0
  610. package/dist/solid/components/VenetianBlinds.d.ts.map +1 -0
  611. package/dist/solid/components/VenetianBlinds.js +228 -0
  612. package/dist/solid/engine/Preview.d.ts.map +1 -1
  613. package/dist/solid/engine/Preview.js +351 -306
  614. package/dist/solid/engine/Shader.js +1 -1
  615. package/dist/solid/index.d.ts +25 -1
  616. package/dist/solid/index.d.ts.map +1 -1
  617. package/dist/solid/index.js +373 -328
  618. package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
  619. package/dist/solid/utils/generatePresetCode.js +286 -13
  620. package/dist/svelte/components/BarnDoors.svelte.d.ts +23 -0
  621. package/dist/svelte/components/Bend.svelte.d.ts +23 -0
  622. package/dist/svelte/components/BlockDissolve.svelte.d.ts +23 -0
  623. package/dist/svelte/components/{DOMTexture.svelte.d.ts → Boids.svelte.d.ts} +4 -4
  624. package/dist/svelte/components/BokehBlur.svelte.d.ts +25 -0
  625. package/dist/svelte/components/CheckerWipe.svelte.d.ts +23 -0
  626. package/dist/svelte/components/DiamondWipe.svelte.d.ts +23 -0
  627. package/dist/svelte/components/DisplacementMap.svelte.d.ts +22 -0
  628. package/dist/svelte/components/FilmStock.svelte.d.ts +23 -0
  629. package/dist/svelte/components/FloatingParticles.svelte.d.ts +2 -2
  630. package/dist/svelte/components/HTMLInCanvas.svelte.d.ts +20 -0
  631. package/dist/svelte/components/InkFlow.svelte.d.ts +20 -0
  632. package/dist/svelte/components/IrisWipe.svelte.d.ts +23 -0
  633. package/dist/svelte/components/LinearWipe.svelte.d.ts +23 -0
  634. package/dist/svelte/components/MagneticFilings.svelte.d.ts +20 -0
  635. package/dist/svelte/components/NoiseDissolve.svelte.d.ts +24 -0
  636. package/dist/svelte/components/ParticleField.svelte.d.ts +29 -0
  637. package/dist/svelte/components/ParticleFlow.svelte.d.ts +20 -0
  638. package/dist/svelte/components/RadialWipe.svelte.d.ts +24 -0
  639. package/dist/svelte/components/RandomBars.svelte.d.ts +24 -0
  640. package/dist/svelte/components/RippleWipe.svelte.d.ts +24 -0
  641. package/dist/svelte/components/SliceWipe.svelte.d.ts +23 -0
  642. package/dist/svelte/components/TimeTrail.svelte.d.ts +27 -0
  643. package/dist/svelte/components/VenetianBlinds.svelte.d.ts +24 -0
  644. package/dist/svelte/index.d.ts +25 -1
  645. package/dist/svelte/index.js +5887 -1420
  646. package/dist/svelte/source/components/AngularBlur.svelte +1 -1
  647. package/dist/svelte/source/components/Arc.svelte +1 -1
  648. package/dist/svelte/source/components/Ascii.svelte +1 -1
  649. package/dist/svelte/source/components/Aurora.svelte +1 -1
  650. package/dist/svelte/source/components/BarShift.svelte +1 -1
  651. package/dist/svelte/source/components/BarnDoors.svelte +342 -0
  652. package/dist/svelte/source/components/Beam.svelte +1 -1
  653. package/dist/svelte/source/components/Bend.svelte +342 -0
  654. package/dist/svelte/source/components/Blob.svelte +1 -1
  655. package/dist/svelte/source/components/BlockDissolve.svelte +342 -0
  656. package/dist/svelte/source/components/BlockNoise.svelte +1 -1
  657. package/dist/svelte/source/components/BlueNoise.svelte +1 -1
  658. package/dist/svelte/source/components/Blur.svelte +1 -1
  659. package/dist/svelte/source/components/{DOMTexture.svelte → Boids.svelte} +2 -2
  660. package/dist/svelte/source/components/BokehBlur.svelte +344 -0
  661. package/dist/svelte/source/components/BrickPattern.svelte +1 -1
  662. package/dist/svelte/source/components/BrightnessContrast.svelte +1 -1
  663. package/dist/svelte/source/components/BrushedMetal.svelte +1 -1
  664. package/dist/svelte/source/components/Bulge.svelte +1 -1
  665. package/dist/svelte/source/components/CRTScreen.svelte +1 -1
  666. package/dist/svelte/source/components/CarbonFiber.svelte +1 -1
  667. package/dist/svelte/source/components/Chalkboard.svelte +1 -1
  668. package/dist/svelte/source/components/ChannelBlur.svelte +1 -1
  669. package/dist/svelte/source/components/CheckerWipe.svelte +342 -0
  670. package/dist/svelte/source/components/Checkerboard.svelte +1 -1
  671. package/dist/svelte/source/components/Chevron.svelte +1 -1
  672. package/dist/svelte/source/components/ChromaFlow.svelte +1 -1
  673. package/dist/svelte/source/components/ChromaticAberration.svelte +1 -1
  674. package/dist/svelte/source/components/Circle.svelte +1 -1
  675. package/dist/svelte/source/components/ColorWheel.svelte +1 -1
  676. package/dist/svelte/source/components/CompressionArtifacts.svelte +1 -1
  677. package/dist/svelte/source/components/ConcentricSpin.svelte +1 -1
  678. package/dist/svelte/source/components/ConicGradient.svelte +1 -1
  679. package/dist/svelte/source/components/ContourLines.svelte +1 -1
  680. package/dist/svelte/source/components/CornerPin.svelte +1 -1
  681. package/dist/svelte/source/components/Crescent.svelte +1 -1
  682. package/dist/svelte/source/components/Cross.svelte +1 -1
  683. package/dist/svelte/source/components/Crystal.svelte +1 -1
  684. package/dist/svelte/source/components/CurlNoise.svelte +1 -1
  685. package/dist/svelte/source/components/CursorRipples.svelte +1 -1
  686. package/dist/svelte/source/components/CursorTrail.svelte +1 -1
  687. package/dist/svelte/source/components/DataMosh.svelte +1 -1
  688. package/dist/svelte/source/components/DiamondGradient.svelte +1 -1
  689. package/dist/svelte/source/components/DiamondWipe.svelte +342 -0
  690. package/dist/svelte/source/components/DiffuseBlur.svelte +1 -1
  691. package/dist/svelte/source/components/DisplacementMap.svelte +341 -0
  692. package/dist/svelte/source/components/Dither.svelte +1 -1
  693. package/dist/svelte/source/components/DotGrid.svelte +1 -1
  694. package/dist/svelte/source/components/DropShadow.svelte +1 -1
  695. package/dist/svelte/source/components/Duotone.svelte +1 -1
  696. package/dist/svelte/source/components/Ellipse.svelte +1 -1
  697. package/dist/svelte/source/components/Emboss.svelte +1 -1
  698. package/dist/svelte/source/components/Engraving.svelte +1 -1
  699. package/dist/svelte/source/components/ErosionNoise.svelte +1 -1
  700. package/dist/svelte/source/components/Exposure.svelte +1 -1
  701. package/dist/svelte/source/components/FallingLines.svelte +1 -1
  702. package/dist/svelte/source/components/FilmGrain.svelte +1 -1
  703. package/dist/svelte/source/components/FilmStock.svelte +342 -0
  704. package/dist/svelte/source/components/Flip.svelte +1 -1
  705. package/dist/svelte/source/components/FloatingParticles.svelte +3 -3
  706. package/dist/svelte/source/components/FlowField.svelte +1 -1
  707. package/dist/svelte/source/components/Flower.svelte +1 -1
  708. package/dist/svelte/source/components/FlowingGradient.svelte +1 -1
  709. package/dist/svelte/source/components/FlutedGlass.svelte +1 -1
  710. package/dist/svelte/source/components/Fog.svelte +1 -1
  711. package/dist/svelte/source/components/Form3D.svelte +1 -1
  712. package/dist/svelte/source/components/FractalNoise.svelte +1 -1
  713. package/dist/svelte/source/components/Frost.svelte +1 -1
  714. package/dist/svelte/source/components/GaborNoise.svelte +1 -1
  715. package/dist/svelte/source/components/Glass.svelte +1 -1
  716. package/dist/svelte/source/components/GlassTiles.svelte +1 -1
  717. package/dist/svelte/source/components/Glitch.svelte +1 -1
  718. package/dist/svelte/source/components/Glow.svelte +1 -1
  719. package/dist/svelte/source/components/Godrays.svelte +1 -1
  720. package/dist/svelte/source/components/Goo.svelte +1 -1
  721. package/dist/svelte/source/components/GradientMap.svelte +1 -1
  722. package/dist/svelte/source/components/Grayscale.svelte +1 -1
  723. package/dist/svelte/source/components/Grid.svelte +1 -1
  724. package/dist/svelte/source/components/GridDistortion.svelte +1 -1
  725. package/dist/svelte/source/components/Group.svelte +1 -1
  726. package/dist/svelte/source/components/HTMLInCanvas.svelte +339 -0
  727. package/dist/svelte/source/components/Halftone.svelte +1 -1
  728. package/dist/svelte/source/components/Heart.svelte +1 -1
  729. package/dist/svelte/source/components/Heatmap.svelte +1 -1
  730. package/dist/svelte/source/components/HexGrid.svelte +1 -1
  731. package/dist/svelte/source/components/Hologram.svelte +1 -1
  732. package/dist/svelte/source/components/Holographic.svelte +1 -1
  733. package/dist/svelte/source/components/HueShift.svelte +1 -1
  734. package/dist/svelte/source/components/ImageTexture.svelte +1 -1
  735. package/dist/svelte/source/components/InkFlow.svelte +339 -0
  736. package/dist/svelte/source/components/Invert.svelte +1 -1
  737. package/dist/svelte/source/components/IrisWipe.svelte +342 -0
  738. package/dist/svelte/source/components/IsometricCubes.svelte +1 -1
  739. package/dist/svelte/source/components/Kaleidoscope.svelte +1 -1
  740. package/dist/svelte/source/components/KeyFrames.svelte +1 -1
  741. package/dist/svelte/source/components/LensFlare.svelte +1 -1
  742. package/dist/svelte/source/components/LightEdge.svelte +1 -1
  743. package/dist/svelte/source/components/LightLeak.svelte +1 -1
  744. package/dist/svelte/source/components/LinearBlur.svelte +1 -1
  745. package/dist/svelte/source/components/LinearGradient.svelte +1 -1
  746. package/dist/svelte/source/components/LinearWipe.svelte +342 -0
  747. package/dist/svelte/source/components/LiquidMetal.svelte +1 -1
  748. package/dist/svelte/source/components/Liquify.svelte +1 -1
  749. package/dist/svelte/source/components/MagneticFilings.svelte +339 -0
  750. package/dist/svelte/source/components/Marble.svelte +1 -1
  751. package/dist/svelte/source/components/Mirror.svelte +1 -1
  752. package/dist/svelte/source/components/MultiPointGradient.svelte +1 -1
  753. package/dist/svelte/source/components/Neon.svelte +1 -1
  754. package/dist/svelte/source/components/NoiseDissolve.svelte +343 -0
  755. package/dist/svelte/source/components/ObjectTracker.svelte +1 -1
  756. package/dist/svelte/source/components/PagePeel.svelte +1 -1
  757. package/dist/svelte/source/components/Paper.svelte +1 -1
  758. package/dist/svelte/source/components/Parallelogram.svelte +1 -1
  759. package/dist/svelte/source/components/ParticleField.svelte +348 -0
  760. package/dist/svelte/source/components/ParticleFlow.svelte +339 -0
  761. package/dist/svelte/source/components/Particles.svelte +1 -1
  762. package/dist/svelte/source/components/PerlinNoise.svelte +1 -1
  763. package/dist/svelte/source/components/Perspective.svelte +1 -1
  764. package/dist/svelte/source/components/PixelSort.svelte +1 -1
  765. package/dist/svelte/source/components/PixelThrow.svelte +1 -1
  766. package/dist/svelte/source/components/Pixelate.svelte +1 -1
  767. package/dist/svelte/source/components/Plasma.svelte +1 -1
  768. package/dist/svelte/source/components/Plastic.svelte +1 -1
  769. package/dist/svelte/source/components/PolarCoordinates.svelte +1 -1
  770. package/dist/svelte/source/components/Polygon.svelte +1 -1
  771. package/dist/svelte/source/components/Posterize.svelte +1 -1
  772. package/dist/svelte/source/components/Prism.svelte +1 -1
  773. package/dist/svelte/source/components/ProgressiveBlur.svelte +1 -1
  774. package/dist/svelte/source/components/RadialGradient.svelte +1 -1
  775. package/dist/svelte/source/components/RadialWipe.svelte +343 -0
  776. package/dist/svelte/source/components/RandomBars.svelte +343 -0
  777. package/dist/svelte/source/components/ReactionDiffusion.svelte +1 -1
  778. package/dist/svelte/source/components/RectangularCoordinates.svelte +1 -1
  779. package/dist/svelte/source/components/ReflectivePlane.svelte +1 -1
  780. package/dist/svelte/source/components/Repeater.svelte +1 -1
  781. package/dist/svelte/source/components/Ring.svelte +1 -1
  782. package/dist/svelte/source/components/RippleWipe.svelte +343 -0
  783. package/dist/svelte/source/components/Ripples.svelte +1 -1
  784. package/dist/svelte/source/components/RoundedRect.svelte +1 -1
  785. package/dist/svelte/source/components/Saturation.svelte +1 -1
  786. package/dist/svelte/source/components/Scratches.svelte +1 -1
  787. package/dist/svelte/source/components/Sharpness.svelte +1 -1
  788. package/dist/svelte/source/components/Shatter.svelte +1 -1
  789. package/dist/svelte/source/components/SimplexNoise.svelte +1 -1
  790. package/dist/svelte/source/components/SineWave.svelte +1 -1
  791. package/dist/svelte/source/components/SliceWipe.svelte +342 -0
  792. package/dist/svelte/source/components/Smoke.svelte +1 -1
  793. package/dist/svelte/source/components/SmokeFill.svelte +1 -1
  794. package/dist/svelte/source/components/SmokeFlow.svelte +1 -1
  795. package/dist/svelte/source/components/Solarize.svelte +1 -1
  796. package/dist/svelte/source/components/SolidColor.svelte +1 -1
  797. package/dist/svelte/source/components/Spherize.svelte +1 -1
  798. package/dist/svelte/source/components/Spiral.svelte +1 -1
  799. package/dist/svelte/source/components/Star.svelte +1 -1
  800. package/dist/svelte/source/components/Stone.svelte +1 -1
  801. package/dist/svelte/source/components/Strands.svelte +1 -1
  802. package/dist/svelte/source/components/Stretch.svelte +1 -1
  803. package/dist/svelte/source/components/Stripes.svelte +1 -1
  804. package/dist/svelte/source/components/StudioBackground.svelte +1 -1
  805. package/dist/svelte/source/components/SunBurst.svelte +1 -1
  806. package/dist/svelte/source/components/Surface3D.svelte +1 -1
  807. package/dist/svelte/source/components/Swirl.svelte +1 -1
  808. package/dist/svelte/source/components/Teardrop.svelte +1 -1
  809. package/dist/svelte/source/components/Text.svelte +1 -1
  810. package/dist/svelte/source/components/ThinFilm.svelte +1 -1
  811. package/dist/svelte/source/components/TiltShift.svelte +1 -1
  812. package/dist/svelte/source/components/TimeTrail.svelte +346 -0
  813. package/dist/svelte/source/components/Tint.svelte +1 -1
  814. package/dist/svelte/source/components/Trapezoid.svelte +1 -1
  815. package/dist/svelte/source/components/TriangularGrid.svelte +1 -1
  816. package/dist/svelte/source/components/Tritone.svelte +1 -1
  817. package/dist/svelte/source/components/Truchet.svelte +1 -1
  818. package/dist/svelte/source/components/Twirl.svelte +1 -1
  819. package/dist/svelte/source/components/VHS.svelte +1 -1
  820. package/dist/svelte/source/components/VenetianBlinds.svelte +343 -0
  821. package/dist/svelte/source/components/Vesica.svelte +1 -1
  822. package/dist/svelte/source/components/Vibrance.svelte +1 -1
  823. package/dist/svelte/source/components/VideoTexture.svelte +1 -1
  824. package/dist/svelte/source/components/Vignette.svelte +1 -1
  825. package/dist/svelte/source/components/Voronoi.svelte +1 -1
  826. package/dist/svelte/source/components/Water.svelte +1 -1
  827. package/dist/svelte/source/components/Watercolor.svelte +1 -1
  828. package/dist/svelte/source/components/WaveDistortion.svelte +1 -1
  829. package/dist/svelte/source/components/WaveletNoise.svelte +1 -1
  830. package/dist/svelte/source/components/Weave.svelte +1 -1
  831. package/dist/svelte/source/components/WebcamTexture.svelte +1 -1
  832. package/dist/svelte/source/components/Wool.svelte +1 -1
  833. package/dist/svelte/source/components/WorleyNoise.svelte +1 -1
  834. package/dist/svelte/source/components/ZoomBlur.svelte +1 -1
  835. package/dist/svelte/source/engine/Preview.svelte +47 -2
  836. package/dist/svelte/source/index.js +25 -1
  837. package/dist/svelte/utils/generatePresetCode.js +285 -12
  838. package/dist/vue/BarnDoors.js +3 -0
  839. package/dist/vue/BarnDoors.vue_vue_type_script_setup_true_lang.js +221 -0
  840. package/dist/vue/Bend.js +3 -0
  841. package/dist/vue/Bend.vue_vue_type_script_setup_true_lang.js +221 -0
  842. package/dist/vue/BlockDissolve.js +3 -0
  843. package/dist/vue/BlockDissolve.vue_vue_type_script_setup_true_lang.js +221 -0
  844. package/dist/vue/Boids.js +3 -0
  845. package/dist/vue/Boids.vue_vue_type_script_setup_true_lang.js +232 -0
  846. package/dist/vue/BokehBlur.js +3 -0
  847. package/dist/vue/BokehBlur.vue_vue_type_script_setup_true_lang.js +224 -0
  848. package/dist/vue/CheckerWipe.js +3 -0
  849. package/dist/vue/CheckerWipe.vue_vue_type_script_setup_true_lang.js +221 -0
  850. package/dist/vue/DiamondWipe.js +3 -0
  851. package/dist/vue/DiamondWipe.vue_vue_type_script_setup_true_lang.js +221 -0
  852. package/dist/vue/DisplacementMap.js +3 -0
  853. package/dist/vue/DisplacementMap.vue_vue_type_script_setup_true_lang.js +222 -0
  854. package/dist/vue/FilmStock.js +3 -0
  855. package/dist/vue/FilmStock.vue_vue_type_script_setup_true_lang.js +222 -0
  856. package/dist/vue/FloatingParticles.vue_vue_type_script_setup_true_lang.js +6 -5
  857. package/dist/vue/HTMLInCanvas.js +3 -0
  858. package/dist/vue/{DOMTexture.vue_vue_type_script_setup_true_lang.js → HTMLInCanvas.vue_vue_type_script_setup_true_lang.js} +4 -4
  859. package/dist/vue/InkFlow.js +3 -0
  860. package/dist/vue/InkFlow.vue_vue_type_script_setup_true_lang.js +229 -0
  861. package/dist/vue/IrisWipe.js +3 -0
  862. package/dist/vue/IrisWipe.vue_vue_type_script_setup_true_lang.js +221 -0
  863. package/dist/vue/LinearWipe.js +3 -0
  864. package/dist/vue/LinearWipe.vue_vue_type_script_setup_true_lang.js +221 -0
  865. package/dist/vue/MagneticFilings.js +3 -0
  866. package/dist/vue/MagneticFilings.vue_vue_type_script_setup_true_lang.js +228 -0
  867. package/dist/vue/NoiseDissolve.js +3 -0
  868. package/dist/vue/NoiseDissolve.vue_vue_type_script_setup_true_lang.js +222 -0
  869. package/dist/vue/ParticleField.js +3 -0
  870. package/dist/vue/ParticleField.vue_vue_type_script_setup_true_lang.js +233 -0
  871. package/dist/vue/ParticleFlow.js +3 -0
  872. package/dist/vue/ParticleFlow.vue_vue_type_script_setup_true_lang.js +229 -0
  873. package/dist/vue/Particles.vue_vue_type_script_setup_true_lang.js +1 -0
  874. package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +47 -2
  875. package/dist/vue/RadialWipe.js +3 -0
  876. package/dist/vue/RadialWipe.vue_vue_type_script_setup_true_lang.js +223 -0
  877. package/dist/vue/RandomBars.js +3 -0
  878. package/dist/vue/RandomBars.vue_vue_type_script_setup_true_lang.js +222 -0
  879. package/dist/vue/RippleWipe.js +3 -0
  880. package/dist/vue/RippleWipe.vue_vue_type_script_setup_true_lang.js +222 -0
  881. package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
  882. package/dist/vue/SliceWipe.js +3 -0
  883. package/dist/vue/SliceWipe.vue_vue_type_script_setup_true_lang.js +220 -0
  884. package/dist/vue/TimeTrail.js +3 -0
  885. package/dist/vue/TimeTrail.vue_vue_type_script_setup_true_lang.js +229 -0
  886. package/dist/vue/VenetianBlinds.js +3 -0
  887. package/dist/vue/VenetianBlinds.vue_vue_type_script_setup_true_lang.js +222 -0
  888. package/dist/vue/components/BarnDoors.vue.d.ts +58 -0
  889. package/dist/vue/components/BarnDoors.vue.d.ts.map +1 -0
  890. package/dist/vue/components/Bend.vue.d.ts +58 -0
  891. package/dist/vue/components/Bend.vue.d.ts.map +1 -0
  892. package/dist/vue/components/BlockDissolve.vue.d.ts +58 -0
  893. package/dist/vue/components/BlockDissolve.vue.d.ts.map +1 -0
  894. package/dist/vue/components/{DOMTexture.vue.d.ts → Boids.vue.d.ts} +2 -2
  895. package/dist/vue/components/Boids.vue.d.ts.map +1 -0
  896. package/dist/vue/components/BokehBlur.vue.d.ts +60 -0
  897. package/dist/vue/components/BokehBlur.vue.d.ts.map +1 -0
  898. package/dist/vue/components/CheckerWipe.vue.d.ts +58 -0
  899. package/dist/vue/components/CheckerWipe.vue.d.ts.map +1 -0
  900. package/dist/vue/components/DiamondWipe.vue.d.ts +58 -0
  901. package/dist/vue/components/DiamondWipe.vue.d.ts.map +1 -0
  902. package/dist/vue/components/DisplacementMap.vue.d.ts +57 -0
  903. package/dist/vue/components/DisplacementMap.vue.d.ts.map +1 -0
  904. package/dist/vue/components/FilmStock.vue.d.ts +58 -0
  905. package/dist/vue/components/FilmStock.vue.d.ts.map +1 -0
  906. package/dist/vue/components/FloatingParticles.vue.d.ts +2 -2
  907. package/dist/vue/components/FloatingParticles.vue.d.ts.map +1 -1
  908. package/dist/vue/components/HTMLInCanvas.vue.d.ts +55 -0
  909. package/dist/vue/components/HTMLInCanvas.vue.d.ts.map +1 -0
  910. package/dist/vue/components/InkFlow.vue.d.ts +55 -0
  911. package/dist/vue/components/InkFlow.vue.d.ts.map +1 -0
  912. package/dist/vue/components/IrisWipe.vue.d.ts +58 -0
  913. package/dist/vue/components/IrisWipe.vue.d.ts.map +1 -0
  914. package/dist/vue/components/LinearWipe.vue.d.ts +58 -0
  915. package/dist/vue/components/LinearWipe.vue.d.ts.map +1 -0
  916. package/dist/vue/components/MagneticFilings.vue.d.ts +55 -0
  917. package/dist/vue/components/MagneticFilings.vue.d.ts.map +1 -0
  918. package/dist/vue/components/NoiseDissolve.vue.d.ts +59 -0
  919. package/dist/vue/components/NoiseDissolve.vue.d.ts.map +1 -0
  920. package/dist/vue/components/ParticleField.vue.d.ts +64 -0
  921. package/dist/vue/components/ParticleField.vue.d.ts.map +1 -0
  922. package/dist/vue/components/ParticleFlow.vue.d.ts +55 -0
  923. package/dist/vue/components/ParticleFlow.vue.d.ts.map +1 -0
  924. package/dist/vue/components/RadialWipe.vue.d.ts +59 -0
  925. package/dist/vue/components/RadialWipe.vue.d.ts.map +1 -0
  926. package/dist/vue/components/RandomBars.vue.d.ts +59 -0
  927. package/dist/vue/components/RandomBars.vue.d.ts.map +1 -0
  928. package/dist/vue/components/RippleWipe.vue.d.ts +59 -0
  929. package/dist/vue/components/RippleWipe.vue.d.ts.map +1 -0
  930. package/dist/vue/components/SliceWipe.vue.d.ts +58 -0
  931. package/dist/vue/components/SliceWipe.vue.d.ts.map +1 -0
  932. package/dist/vue/components/TimeTrail.vue.d.ts +62 -0
  933. package/dist/vue/components/TimeTrail.vue.d.ts.map +1 -0
  934. package/dist/vue/components/VenetianBlinds.vue.d.ts +59 -0
  935. package/dist/vue/components/VenetianBlinds.vue.d.ts.map +1 -0
  936. package/dist/vue/index.d.ts +25 -1
  937. package/dist/vue/index.d.ts.map +1 -1
  938. package/dist/vue/index.js +24 -2
  939. package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
  940. package/dist/vue/utils/generatePresetCode.js +286 -13
  941. package/package.json +198 -12
  942. package/dist/core/FloatingParticles-Qh0dQBmA.js +0 -2582
  943. package/dist/core/shaderRegistry-Gsachoy8.js +0 -372
  944. package/dist/core/shaders/DOMTexture/index.d.ts.map +0 -1
  945. package/dist/core/shaders/DOMTexture/index.js +0 -5
  946. package/dist/react/components/DOMTexture.d.ts.map +0 -1
  947. package/dist/solid/components/DOMTexture.d.ts.map +0 -1
  948. package/dist/vue/DOMTexture.js +0 -3
  949. package/dist/vue/components/DOMTexture.vue.d.ts.map +0 -1
  950. /package/dist/core/{SolidColor-8aFR9Ecl.js → SolidColor-16e4q89i.js} +0 -0
  951. /package/dist/core/{fonts-3F3pIODs.js → fonts-BLmvxkGd.js} +0 -0
  952. /package/dist/core/{noiseStylize-BMnwulEm.js → noiseStylize-4za6Obes.js} +0 -0
  953. /package/dist/core/shaders/{DOMTexture → HTMLInCanvas}/index.d.ts +0 -0
@@ -0,0 +1,3118 @@
1
+ import { J as std, Rt as ZERO, X as createGuardedCompute, Z as createStateBuffer, bn as d, c as orientedShapeOptions, ct as hash22, dn as mixColorsVariants, n as tgpu, ot as hash11, pt as noise_exports, r as AGENT_SHAPES, s as makeAgentWeightFn, u as resolveAgentShape, un as mixColorsLinear } from "./coords-0A7CojvN.js";
2
+ import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-P50Uo_Ju.js";
3
+ var MAX_FILINGS = 12288;
4
+ var RES = 1024;
5
+ var INV_RES = 1 / RES;
6
+ var STATE_FORMAT = "rgba16float";
7
+ var SPLAT_R = 14;
8
+ var SPLAT_WIN = 29;
9
+ var AA_W = .75 * INV_RES;
10
+ var PI = 3.141592653589793;
11
+ var HALF_PI = 1.5707963267948966;
12
+ var ALIGN_BASE = 45;
13
+ var REST_K = 6;
14
+ var DAMP_MIN = 3;
15
+ var DAMP_SPAN = 9;
16
+ var OMEGA_REF = 6;
17
+ var AGIT_COOL = 1;
18
+ var HOME_K = 2.5;
19
+ var PULL_K = .25;
20
+ var MAX_OFFSET = .12;
21
+ var OVERSCAN = .14;
22
+ var HARD_GAIN = 637;
23
+ var SOFT_GAIN = 255;
24
+ var SimParams = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(d.struct({
25
+ colA: d.vec4f,
26
+ colB: d.vec4f,
27
+ count: d.f32,
28
+ dt: d.f32,
29
+ aspect: d.f32,
30
+ domainX: d.f32,
31
+ cursorX: d.f32,
32
+ cursorY: d.f32,
33
+ axisX: d.f32,
34
+ axisY: d.f32,
35
+ fieldType: d.f32,
36
+ restMode: d.f32,
37
+ strength: d.f32,
38
+ reachSq: d.f32,
39
+ alignK: d.f32,
40
+ damping: d.f32,
41
+ restK: d.f32,
42
+ pullK: d.f32,
43
+ homeK: d.f32,
44
+ omegaRef: d.f32,
45
+ agitCool: d.f32,
46
+ gridCols: d.f32,
47
+ cellW: d.f32,
48
+ cellH: d.f32,
49
+ jitter: d.f32,
50
+ bodyR: d.f32
51
+ }), "SimParams");
52
+ var simLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(tgpu.bindGroupLayout({
53
+ filings: {
54
+ storage: d.arrayOf(d.vec4f, MAX_FILINGS),
55
+ access: "mutable"
56
+ },
57
+ agit: {
58
+ storage: d.arrayOf(d.f32, MAX_FILINGS),
59
+ access: "mutable"
60
+ },
61
+ accumE: {
62
+ storage: d.arrayOf(d.atomic(d.u32), RES * RES),
63
+ access: "mutable"
64
+ },
65
+ accumS: {
66
+ storage: d.arrayOf(d.atomic(d.u32), RES * RES),
67
+ access: "mutable"
68
+ },
69
+ params: { uniform: SimParams },
70
+ outTex: { storageTexture: d.textureStorage2d(STATE_FORMAT, "write-only") }
71
+ }), "simLayout");
72
+ var homeFn = tgpu.fn([
73
+ d.f32,
74
+ d.f32,
75
+ d.f32,
76
+ d.f32,
77
+ d.f32
78
+ ], d.vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((fi, cols, cellW, cellH, jitter) => {
79
+ "use gpu";
80
+ const row = std.floor(__tsover_div(fi, std.max(cols, 1)));
81
+ const col = __tsover_sub(fi, __tsover_mul(row, std.max(cols, 1)));
82
+ const h = hash22(d.vec2f(__tsover_add(__tsover_mul(fi, .7548), .11), __tsover_add(__tsover_mul(fi, 1.3236), 5.31)));
83
+ const jx = __tsover_mul(__tsover_sub(h.x, .5), jitter);
84
+ const jy = __tsover_mul(__tsover_sub(h.y, .5), jitter);
85
+ return d.vec2f(__tsover_sub(__tsover_mul(__tsover_add(__tsover_add(col, .5), jx), cellW), OVERSCAN), __tsover_sub(__tsover_mul(__tsover_add(__tsover_add(row, .5), jy), cellH), OVERSCAN));
86
+ }), {
87
+ v: 1,
88
+ name: void 0,
89
+ ast: {
90
+ "params": [
91
+ {
92
+ "type": "i",
93
+ "name": "fi"
94
+ },
95
+ {
96
+ "type": "i",
97
+ "name": "cols"
98
+ },
99
+ {
100
+ "type": "i",
101
+ "name": "cellW"
102
+ },
103
+ {
104
+ "type": "i",
105
+ "name": "cellH"
106
+ },
107
+ {
108
+ "type": "i",
109
+ "name": "jitter"
110
+ }
111
+ ],
112
+ "body": [0, [
113
+ [
114
+ 13,
115
+ "row",
116
+ [
117
+ 6,
118
+ [
119
+ 7,
120
+ "std",
121
+ "floor"
122
+ ],
123
+ [[
124
+ 1,
125
+ "fi",
126
+ "/",
127
+ [
128
+ 6,
129
+ [
130
+ 7,
131
+ "std",
132
+ "max"
133
+ ],
134
+ ["cols", [5, "1"]]
135
+ ]
136
+ ]]
137
+ ]
138
+ ],
139
+ [
140
+ 13,
141
+ "col",
142
+ [
143
+ 1,
144
+ "fi",
145
+ "-",
146
+ [
147
+ 1,
148
+ "row",
149
+ "*",
150
+ [
151
+ 6,
152
+ [
153
+ 7,
154
+ "std",
155
+ "max"
156
+ ],
157
+ ["cols", [5, "1"]]
158
+ ]
159
+ ]
160
+ ]
161
+ ],
162
+ [
163
+ 13,
164
+ "h",
165
+ [
166
+ 6,
167
+ [
168
+ 7,
169
+ "noise",
170
+ "hash22"
171
+ ],
172
+ [[
173
+ 6,
174
+ [
175
+ 7,
176
+ "d",
177
+ "vec2f"
178
+ ],
179
+ [[
180
+ 1,
181
+ [
182
+ 1,
183
+ "fi",
184
+ "*",
185
+ [5, "0.7548"]
186
+ ],
187
+ "+",
188
+ [5, "0.11"]
189
+ ], [
190
+ 1,
191
+ [
192
+ 1,
193
+ "fi",
194
+ "*",
195
+ [5, "1.3236"]
196
+ ],
197
+ "+",
198
+ [5, "5.31"]
199
+ ]]
200
+ ]]
201
+ ]
202
+ ],
203
+ [
204
+ 13,
205
+ "jx",
206
+ [
207
+ 1,
208
+ [
209
+ 1,
210
+ [
211
+ 7,
212
+ "h",
213
+ "x"
214
+ ],
215
+ "-",
216
+ [5, "0.5"]
217
+ ],
218
+ "*",
219
+ "jitter"
220
+ ]
221
+ ],
222
+ [
223
+ 13,
224
+ "jy",
225
+ [
226
+ 1,
227
+ [
228
+ 1,
229
+ [
230
+ 7,
231
+ "h",
232
+ "y"
233
+ ],
234
+ "-",
235
+ [5, "0.5"]
236
+ ],
237
+ "*",
238
+ "jitter"
239
+ ]
240
+ ],
241
+ [10, [
242
+ 6,
243
+ [
244
+ 7,
245
+ "d",
246
+ "vec2f"
247
+ ],
248
+ [[
249
+ 1,
250
+ [
251
+ 1,
252
+ [
253
+ 1,
254
+ [
255
+ 1,
256
+ "col",
257
+ "+",
258
+ [5, "0.5"]
259
+ ],
260
+ "+",
261
+ "jx"
262
+ ],
263
+ "*",
264
+ "cellW"
265
+ ],
266
+ "-",
267
+ "OVERSCAN"
268
+ ], [
269
+ 1,
270
+ [
271
+ 1,
272
+ [
273
+ 1,
274
+ [
275
+ 1,
276
+ "row",
277
+ "+",
278
+ [5, "0.5"]
279
+ ],
280
+ "+",
281
+ "jy"
282
+ ],
283
+ "*",
284
+ "cellH"
285
+ ],
286
+ "-",
287
+ "OVERSCAN"
288
+ ]]
289
+ ]]
290
+ ]],
291
+ "externalNames": [
292
+ "std",
293
+ "noise",
294
+ "d",
295
+ "OVERSCAN"
296
+ ]
297
+ },
298
+ externals: () => ({
299
+ std,
300
+ noise: noise_exports,
301
+ d,
302
+ OVERSCAN
303
+ })
304
+ }) && $.f)({})).$name("filingsHome");
305
+ var restAngleFn = tgpu.fn([d.f32, d.f32], d.f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((fi, restMode) => {
306
+ "use gpu";
307
+ const randAng = __tsover_mul(hash11(__tsover_add(__tsover_mul(fi, 2.3987), .517)), PI);
308
+ const a = std.select(randAng, d.f32(0), restMode > .5);
309
+ return std.select(a, HALF_PI, restMode > 1.5);
310
+ }), {
311
+ v: 1,
312
+ name: void 0,
313
+ ast: {
314
+ "params": [{
315
+ "type": "i",
316
+ "name": "fi"
317
+ }, {
318
+ "type": "i",
319
+ "name": "restMode"
320
+ }],
321
+ "body": [0, [
322
+ [
323
+ 13,
324
+ "randAng",
325
+ [
326
+ 1,
327
+ [
328
+ 6,
329
+ [
330
+ 7,
331
+ "noise",
332
+ "hash11"
333
+ ],
334
+ [[
335
+ 1,
336
+ [
337
+ 1,
338
+ "fi",
339
+ "*",
340
+ [5, "2.3987"]
341
+ ],
342
+ "+",
343
+ [5, "0.517"]
344
+ ]]
345
+ ],
346
+ "*",
347
+ "PI"
348
+ ]
349
+ ],
350
+ [
351
+ 13,
352
+ "a",
353
+ [
354
+ 6,
355
+ [
356
+ 7,
357
+ "std",
358
+ "select"
359
+ ],
360
+ [
361
+ "randAng",
362
+ [
363
+ 6,
364
+ [
365
+ 7,
366
+ "d",
367
+ "f32"
368
+ ],
369
+ [[5, "0"]]
370
+ ],
371
+ [
372
+ 1,
373
+ "restMode",
374
+ ">",
375
+ [5, "0.5"]
376
+ ]
377
+ ]
378
+ ]
379
+ ],
380
+ [10, [
381
+ 6,
382
+ [
383
+ 7,
384
+ "std",
385
+ "select"
386
+ ],
387
+ [
388
+ "a",
389
+ "HALF_PI",
390
+ [
391
+ 1,
392
+ "restMode",
393
+ ">",
394
+ [5, "1.5"]
395
+ ]
396
+ ]
397
+ ]]
398
+ ]],
399
+ "externalNames": [
400
+ "noise",
401
+ "PI",
402
+ "std",
403
+ "d",
404
+ "HALF_PI"
405
+ ]
406
+ },
407
+ externals: () => ({
408
+ noise: noise_exports,
409
+ PI,
410
+ std,
411
+ d,
412
+ HALF_PI
413
+ })
414
+ }) && $.f)({})).$name("filingsRestAngle");
415
+ const filingsInitKernel = tgpu.fn([d.u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
416
+ "use gpu";
417
+ const fi = d.f32(i);
418
+ const theta0 = __tsover_mul(hash11(__tsover_add(__tsover_mul(fi, 1.618034), .31)), PI);
419
+ simLayout.$.filings[i] = d.vec4f(d.f32(0), d.f32(0), theta0, d.f32(0));
420
+ simLayout.$.agit[i] = d.f32(0);
421
+ }), {
422
+ v: 1,
423
+ name: void 0,
424
+ ast: {
425
+ "params": [{
426
+ "type": "i",
427
+ "name": "i"
428
+ }],
429
+ "body": [0, [
430
+ [
431
+ 13,
432
+ "fi",
433
+ [
434
+ 6,
435
+ [
436
+ 7,
437
+ "d",
438
+ "f32"
439
+ ],
440
+ ["i"]
441
+ ]
442
+ ],
443
+ [
444
+ 13,
445
+ "theta0",
446
+ [
447
+ 1,
448
+ [
449
+ 6,
450
+ [
451
+ 7,
452
+ "noise",
453
+ "hash11"
454
+ ],
455
+ [[
456
+ 1,
457
+ [
458
+ 1,
459
+ "fi",
460
+ "*",
461
+ [5, "1.618034"]
462
+ ],
463
+ "+",
464
+ [5, "0.31"]
465
+ ]]
466
+ ],
467
+ "*",
468
+ "PI"
469
+ ]
470
+ ],
471
+ [
472
+ 2,
473
+ [
474
+ 8,
475
+ [
476
+ 7,
477
+ [
478
+ 7,
479
+ "simLayout",
480
+ "$"
481
+ ],
482
+ "filings"
483
+ ],
484
+ "i"
485
+ ],
486
+ "=",
487
+ [
488
+ 6,
489
+ [
490
+ 7,
491
+ "d",
492
+ "vec4f"
493
+ ],
494
+ [
495
+ [
496
+ 6,
497
+ [
498
+ 7,
499
+ "d",
500
+ "f32"
501
+ ],
502
+ [[5, "0"]]
503
+ ],
504
+ [
505
+ 6,
506
+ [
507
+ 7,
508
+ "d",
509
+ "f32"
510
+ ],
511
+ [[5, "0"]]
512
+ ],
513
+ "theta0",
514
+ [
515
+ 6,
516
+ [
517
+ 7,
518
+ "d",
519
+ "f32"
520
+ ],
521
+ [[5, "0"]]
522
+ ]
523
+ ]
524
+ ]
525
+ ],
526
+ [
527
+ 2,
528
+ [
529
+ 8,
530
+ [
531
+ 7,
532
+ [
533
+ 7,
534
+ "simLayout",
535
+ "$"
536
+ ],
537
+ "agit"
538
+ ],
539
+ "i"
540
+ ],
541
+ "=",
542
+ [
543
+ 6,
544
+ [
545
+ 7,
546
+ "d",
547
+ "f32"
548
+ ],
549
+ [[5, "0"]]
550
+ ]
551
+ ]
552
+ ]],
553
+ "externalNames": [
554
+ "d",
555
+ "noise",
556
+ "PI",
557
+ "simLayout"
558
+ ]
559
+ },
560
+ externals: () => ({
561
+ d,
562
+ noise: noise_exports,
563
+ PI,
564
+ simLayout
565
+ })
566
+ }) && $.f)({})).$name("filingsInit");
567
+ const filingsClearAccumKernel = tgpu.fn([d.u32, d.u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((x, y) => {
568
+ "use gpu";
569
+ const idx = __tsover_add(__tsover_mul(y, d.u32(RES)), x);
570
+ std.atomicStore(simLayout.$.accumE[idx], d.u32(0));
571
+ std.atomicStore(simLayout.$.accumS[idx], d.u32(0));
572
+ }), {
573
+ v: 1,
574
+ name: void 0,
575
+ ast: {
576
+ "params": [{
577
+ "type": "i",
578
+ "name": "x"
579
+ }, {
580
+ "type": "i",
581
+ "name": "y"
582
+ }],
583
+ "body": [0, [
584
+ [
585
+ 13,
586
+ "idx",
587
+ [
588
+ 1,
589
+ [
590
+ 1,
591
+ "y",
592
+ "*",
593
+ [
594
+ 6,
595
+ [
596
+ 7,
597
+ "d",
598
+ "u32"
599
+ ],
600
+ ["RES"]
601
+ ]
602
+ ],
603
+ "+",
604
+ "x"
605
+ ]
606
+ ],
607
+ [
608
+ 6,
609
+ [
610
+ 7,
611
+ "std",
612
+ "atomicStore"
613
+ ],
614
+ [[
615
+ 8,
616
+ [
617
+ 7,
618
+ [
619
+ 7,
620
+ "simLayout",
621
+ "$"
622
+ ],
623
+ "accumE"
624
+ ],
625
+ "idx"
626
+ ], [
627
+ 6,
628
+ [
629
+ 7,
630
+ "d",
631
+ "u32"
632
+ ],
633
+ [[5, "0"]]
634
+ ]]
635
+ ],
636
+ [
637
+ 6,
638
+ [
639
+ 7,
640
+ "std",
641
+ "atomicStore"
642
+ ],
643
+ [[
644
+ 8,
645
+ [
646
+ 7,
647
+ [
648
+ 7,
649
+ "simLayout",
650
+ "$"
651
+ ],
652
+ "accumS"
653
+ ],
654
+ "idx"
655
+ ], [
656
+ 6,
657
+ [
658
+ 7,
659
+ "d",
660
+ "u32"
661
+ ],
662
+ [[5, "0"]]
663
+ ]]
664
+ ]
665
+ ]],
666
+ "externalNames": [
667
+ "d",
668
+ "RES",
669
+ "std",
670
+ "simLayout"
671
+ ]
672
+ },
673
+ externals: () => ({
674
+ d,
675
+ RES,
676
+ std,
677
+ simLayout
678
+ })
679
+ }) && $.f)({})).$name("filingsClearAccum");
680
+ function makeFilingsSplatKernel(shape) {
681
+ const name = resolveAgentShape(shape, "streak");
682
+ const s = AGENT_SHAPES[name];
683
+ const weightFn = makeAgentWeightFn(name);
684
+ const SOFT = s.soft;
685
+ const EXT = s.ext;
686
+ const GAIN = s.soft ? SOFT_GAIN : HARD_GAIN;
687
+ return tgpu.fn([d.u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
688
+ "use gpu";
689
+ const prm = simLayout.$.params;
690
+ const st = simLayout.$.filings[i];
691
+ const home = homeFn(d.f32(i), prm.gridCols, prm.cellW, prm.cellH, prm.jitter);
692
+ const pos = d.vec2f(__tsover_add(home.x, st.x), __tsover_add(home.y, st.y));
693
+ const theta = st.z;
694
+ const dir = d.vec2f(std.cos(theta), std.sin(theta));
695
+ const agitI = std.clamp(simLayout.$.agit[i], 0, 1);
696
+ const bodyR = std.max(prm.bodyR, 1e-6);
697
+ const extSq = __tsover_mul(__tsover_add(__tsover_mul(bodyR, EXT), __tsover_mul(AA_W, 2)), __tsover_add(__tsover_mul(bodyR, EXT), __tsover_mul(AA_W, 2)));
698
+ const txf = __tsover_mul(__tsover_div(pos.x, std.max(prm.aspect, 1e-5)), d.f32(RES));
699
+ const tyf = __tsover_mul(pos.y, d.f32(RES));
700
+ const cxi = d.i32(std.floor(txf));
701
+ const cyi = d.i32(std.floor(tyf));
702
+ for (let ky = 0; ky < SPLAT_WIN; ky++) for (let kx = 0; kx < SPLAT_WIN; kx++) {
703
+ const px = __tsover_sub(__tsover_add(cxi, kx), SPLAT_R);
704
+ const py = __tsover_sub(__tsover_add(cyi, ky), SPLAT_R);
705
+ if (px >= 0 && px < RES && py >= 0 && py < RES) {
706
+ const offX = __tsover_sub(__tsover_mul(__tsover_mul(__tsover_add(d.f32(px), .5), INV_RES), prm.aspect), pos.x);
707
+ const offY = __tsover_sub(__tsover_mul(__tsover_add(d.f32(py), .5), INV_RES), pos.y);
708
+ if (__tsover_add(__tsover_mul(offX, offX), __tsover_mul(offY, offY)) < extSq) {
709
+ const w = weightFn(__tsover_add(__tsover_mul(offX, dir.x), __tsover_mul(offY, dir.y)), __tsover_add(__tsover_mul(offX, -dir.y), __tsover_mul(offY, dir.x)), bodyR, AA_W, d.f32(SOFT));
710
+ const e = d.u32(__tsover_mul(w, d.f32(GAIN)));
711
+ if (e > d.u32(0)) {
712
+ const idx = d.u32(__tsover_add(__tsover_mul(py, RES), px));
713
+ std.atomicAdd(simLayout.$.accumE[idx], e);
714
+ std.atomicAdd(simLayout.$.accumS[idx], d.u32(__tsover_mul(__tsover_mul(w, agitI), d.f32(GAIN))));
715
+ }
716
+ }
717
+ }
718
+ }
719
+ }), {
720
+ v: 1,
721
+ name: void 0,
722
+ ast: {
723
+ "params": [{
724
+ "type": "i",
725
+ "name": "i"
726
+ }],
727
+ "body": [0, [
728
+ [
729
+ 13,
730
+ "prm",
731
+ [
732
+ 7,
733
+ [
734
+ 7,
735
+ "simLayout",
736
+ "$"
737
+ ],
738
+ "params"
739
+ ]
740
+ ],
741
+ [
742
+ 13,
743
+ "st",
744
+ [
745
+ 8,
746
+ [
747
+ 7,
748
+ [
749
+ 7,
750
+ "simLayout",
751
+ "$"
752
+ ],
753
+ "filings"
754
+ ],
755
+ "i"
756
+ ]
757
+ ],
758
+ [
759
+ 13,
760
+ "home",
761
+ [
762
+ 6,
763
+ "homeFn",
764
+ [
765
+ [
766
+ 6,
767
+ [
768
+ 7,
769
+ "d",
770
+ "f32"
771
+ ],
772
+ ["i"]
773
+ ],
774
+ [
775
+ 7,
776
+ "prm",
777
+ "gridCols"
778
+ ],
779
+ [
780
+ 7,
781
+ "prm",
782
+ "cellW"
783
+ ],
784
+ [
785
+ 7,
786
+ "prm",
787
+ "cellH"
788
+ ],
789
+ [
790
+ 7,
791
+ "prm",
792
+ "jitter"
793
+ ]
794
+ ]
795
+ ]
796
+ ],
797
+ [
798
+ 13,
799
+ "pos",
800
+ [
801
+ 6,
802
+ [
803
+ 7,
804
+ "d",
805
+ "vec2f"
806
+ ],
807
+ [[
808
+ 1,
809
+ [
810
+ 7,
811
+ "home",
812
+ "x"
813
+ ],
814
+ "+",
815
+ [
816
+ 7,
817
+ "st",
818
+ "x"
819
+ ]
820
+ ], [
821
+ 1,
822
+ [
823
+ 7,
824
+ "home",
825
+ "y"
826
+ ],
827
+ "+",
828
+ [
829
+ 7,
830
+ "st",
831
+ "y"
832
+ ]
833
+ ]]
834
+ ]
835
+ ],
836
+ [
837
+ 13,
838
+ "theta",
839
+ [
840
+ 7,
841
+ "st",
842
+ "z"
843
+ ]
844
+ ],
845
+ [
846
+ 13,
847
+ "dir",
848
+ [
849
+ 6,
850
+ [
851
+ 7,
852
+ "d",
853
+ "vec2f"
854
+ ],
855
+ [[
856
+ 6,
857
+ [
858
+ 7,
859
+ "std",
860
+ "cos"
861
+ ],
862
+ ["theta"]
863
+ ], [
864
+ 6,
865
+ [
866
+ 7,
867
+ "std",
868
+ "sin"
869
+ ],
870
+ ["theta"]
871
+ ]]
872
+ ]
873
+ ],
874
+ [
875
+ 13,
876
+ "agitI",
877
+ [
878
+ 6,
879
+ [
880
+ 7,
881
+ "std",
882
+ "clamp"
883
+ ],
884
+ [
885
+ [
886
+ 8,
887
+ [
888
+ 7,
889
+ [
890
+ 7,
891
+ "simLayout",
892
+ "$"
893
+ ],
894
+ "agit"
895
+ ],
896
+ "i"
897
+ ],
898
+ [5, "0"],
899
+ [5, "1"]
900
+ ]
901
+ ]
902
+ ],
903
+ [
904
+ 13,
905
+ "bodyR",
906
+ [
907
+ 6,
908
+ [
909
+ 7,
910
+ "std",
911
+ "max"
912
+ ],
913
+ [[
914
+ 7,
915
+ "prm",
916
+ "bodyR"
917
+ ], [5, "0.000001"]]
918
+ ]
919
+ ],
920
+ [
921
+ 13,
922
+ "extSq",
923
+ [
924
+ 1,
925
+ [
926
+ 1,
927
+ [
928
+ 1,
929
+ "bodyR",
930
+ "*",
931
+ "EXT"
932
+ ],
933
+ "+",
934
+ [
935
+ 1,
936
+ "AA_W",
937
+ "*",
938
+ [5, "2"]
939
+ ]
940
+ ],
941
+ "*",
942
+ [
943
+ 1,
944
+ [
945
+ 1,
946
+ "bodyR",
947
+ "*",
948
+ "EXT"
949
+ ],
950
+ "+",
951
+ [
952
+ 1,
953
+ "AA_W",
954
+ "*",
955
+ [5, "2"]
956
+ ]
957
+ ]
958
+ ]
959
+ ],
960
+ [
961
+ 13,
962
+ "txf",
963
+ [
964
+ 1,
965
+ [
966
+ 1,
967
+ [
968
+ 7,
969
+ "pos",
970
+ "x"
971
+ ],
972
+ "/",
973
+ [
974
+ 6,
975
+ [
976
+ 7,
977
+ "std",
978
+ "max"
979
+ ],
980
+ [[
981
+ 7,
982
+ "prm",
983
+ "aspect"
984
+ ], [5, "0.00001"]]
985
+ ]
986
+ ],
987
+ "*",
988
+ [
989
+ 6,
990
+ [
991
+ 7,
992
+ "d",
993
+ "f32"
994
+ ],
995
+ ["RES"]
996
+ ]
997
+ ]
998
+ ],
999
+ [
1000
+ 13,
1001
+ "tyf",
1002
+ [
1003
+ 1,
1004
+ [
1005
+ 7,
1006
+ "pos",
1007
+ "y"
1008
+ ],
1009
+ "*",
1010
+ [
1011
+ 6,
1012
+ [
1013
+ 7,
1014
+ "d",
1015
+ "f32"
1016
+ ],
1017
+ ["RES"]
1018
+ ]
1019
+ ]
1020
+ ],
1021
+ [
1022
+ 13,
1023
+ "cxi",
1024
+ [
1025
+ 6,
1026
+ [
1027
+ 7,
1028
+ "d",
1029
+ "i32"
1030
+ ],
1031
+ [[
1032
+ 6,
1033
+ [
1034
+ 7,
1035
+ "std",
1036
+ "floor"
1037
+ ],
1038
+ ["txf"]
1039
+ ]]
1040
+ ]
1041
+ ],
1042
+ [
1043
+ 13,
1044
+ "cyi",
1045
+ [
1046
+ 6,
1047
+ [
1048
+ 7,
1049
+ "d",
1050
+ "i32"
1051
+ ],
1052
+ [[
1053
+ 6,
1054
+ [
1055
+ 7,
1056
+ "std",
1057
+ "floor"
1058
+ ],
1059
+ ["tyf"]
1060
+ ]]
1061
+ ]
1062
+ ],
1063
+ [
1064
+ 14,
1065
+ [
1066
+ 12,
1067
+ "ky",
1068
+ [5, "0"]
1069
+ ],
1070
+ [
1071
+ 1,
1072
+ "ky",
1073
+ "<",
1074
+ "SPLAT_WIN"
1075
+ ],
1076
+ [
1077
+ 102,
1078
+ "++",
1079
+ "ky"
1080
+ ],
1081
+ [0, [[
1082
+ 14,
1083
+ [
1084
+ 12,
1085
+ "kx",
1086
+ [5, "0"]
1087
+ ],
1088
+ [
1089
+ 1,
1090
+ "kx",
1091
+ "<",
1092
+ "SPLAT_WIN"
1093
+ ],
1094
+ [
1095
+ 102,
1096
+ "++",
1097
+ "kx"
1098
+ ],
1099
+ [0, [
1100
+ [
1101
+ 13,
1102
+ "px",
1103
+ [
1104
+ 1,
1105
+ [
1106
+ 1,
1107
+ "cxi",
1108
+ "+",
1109
+ "kx"
1110
+ ],
1111
+ "-",
1112
+ "SPLAT_R"
1113
+ ]
1114
+ ],
1115
+ [
1116
+ 13,
1117
+ "py",
1118
+ [
1119
+ 1,
1120
+ [
1121
+ 1,
1122
+ "cyi",
1123
+ "+",
1124
+ "ky"
1125
+ ],
1126
+ "-",
1127
+ "SPLAT_R"
1128
+ ]
1129
+ ],
1130
+ [
1131
+ 11,
1132
+ [
1133
+ 3,
1134
+ [
1135
+ 3,
1136
+ [
1137
+ 3,
1138
+ [
1139
+ 1,
1140
+ "px",
1141
+ ">=",
1142
+ [5, "0"]
1143
+ ],
1144
+ "&&",
1145
+ [
1146
+ 1,
1147
+ "px",
1148
+ "<",
1149
+ "RES"
1150
+ ]
1151
+ ],
1152
+ "&&",
1153
+ [
1154
+ 1,
1155
+ "py",
1156
+ ">=",
1157
+ [5, "0"]
1158
+ ]
1159
+ ],
1160
+ "&&",
1161
+ [
1162
+ 1,
1163
+ "py",
1164
+ "<",
1165
+ "RES"
1166
+ ]
1167
+ ],
1168
+ [0, [
1169
+ [
1170
+ 13,
1171
+ "offX",
1172
+ [
1173
+ 1,
1174
+ [
1175
+ 1,
1176
+ [
1177
+ 1,
1178
+ [
1179
+ 1,
1180
+ [
1181
+ 6,
1182
+ [
1183
+ 7,
1184
+ "d",
1185
+ "f32"
1186
+ ],
1187
+ ["px"]
1188
+ ],
1189
+ "+",
1190
+ [5, "0.5"]
1191
+ ],
1192
+ "*",
1193
+ "INV_RES"
1194
+ ],
1195
+ "*",
1196
+ [
1197
+ 7,
1198
+ "prm",
1199
+ "aspect"
1200
+ ]
1201
+ ],
1202
+ "-",
1203
+ [
1204
+ 7,
1205
+ "pos",
1206
+ "x"
1207
+ ]
1208
+ ]
1209
+ ],
1210
+ [
1211
+ 13,
1212
+ "offY",
1213
+ [
1214
+ 1,
1215
+ [
1216
+ 1,
1217
+ [
1218
+ 1,
1219
+ [
1220
+ 6,
1221
+ [
1222
+ 7,
1223
+ "d",
1224
+ "f32"
1225
+ ],
1226
+ ["py"]
1227
+ ],
1228
+ "+",
1229
+ [5, "0.5"]
1230
+ ],
1231
+ "*",
1232
+ "INV_RES"
1233
+ ],
1234
+ "-",
1235
+ [
1236
+ 7,
1237
+ "pos",
1238
+ "y"
1239
+ ]
1240
+ ]
1241
+ ],
1242
+ [
1243
+ 11,
1244
+ [
1245
+ 1,
1246
+ [
1247
+ 1,
1248
+ [
1249
+ 1,
1250
+ "offX",
1251
+ "*",
1252
+ "offX"
1253
+ ],
1254
+ "+",
1255
+ [
1256
+ 1,
1257
+ "offY",
1258
+ "*",
1259
+ "offY"
1260
+ ]
1261
+ ],
1262
+ "<",
1263
+ "extSq"
1264
+ ],
1265
+ [0, [
1266
+ [
1267
+ 13,
1268
+ "t",
1269
+ [
1270
+ 1,
1271
+ [
1272
+ 1,
1273
+ "offX",
1274
+ "*",
1275
+ [
1276
+ 7,
1277
+ "dir",
1278
+ "x"
1279
+ ]
1280
+ ],
1281
+ "+",
1282
+ [
1283
+ 1,
1284
+ "offY",
1285
+ "*",
1286
+ [
1287
+ 7,
1288
+ "dir",
1289
+ "y"
1290
+ ]
1291
+ ]
1292
+ ]
1293
+ ],
1294
+ [
1295
+ 13,
1296
+ "n",
1297
+ [
1298
+ 1,
1299
+ [
1300
+ 1,
1301
+ "offX",
1302
+ "*",
1303
+ [
1304
+ 4,
1305
+ "-",
1306
+ [
1307
+ 7,
1308
+ "dir",
1309
+ "y"
1310
+ ]
1311
+ ]
1312
+ ],
1313
+ "+",
1314
+ [
1315
+ 1,
1316
+ "offY",
1317
+ "*",
1318
+ [
1319
+ 7,
1320
+ "dir",
1321
+ "x"
1322
+ ]
1323
+ ]
1324
+ ]
1325
+ ],
1326
+ [
1327
+ 13,
1328
+ "w",
1329
+ [
1330
+ 6,
1331
+ "weightFn",
1332
+ [
1333
+ "t",
1334
+ "n",
1335
+ "bodyR",
1336
+ "AA_W",
1337
+ [
1338
+ 6,
1339
+ [
1340
+ 7,
1341
+ "d",
1342
+ "f32"
1343
+ ],
1344
+ ["SOFT"]
1345
+ ]
1346
+ ]
1347
+ ]
1348
+ ],
1349
+ [
1350
+ 13,
1351
+ "e",
1352
+ [
1353
+ 6,
1354
+ [
1355
+ 7,
1356
+ "d",
1357
+ "u32"
1358
+ ],
1359
+ [[
1360
+ 1,
1361
+ "w",
1362
+ "*",
1363
+ [
1364
+ 6,
1365
+ [
1366
+ 7,
1367
+ "d",
1368
+ "f32"
1369
+ ],
1370
+ ["GAIN"]
1371
+ ]
1372
+ ]]
1373
+ ]
1374
+ ],
1375
+ [
1376
+ 11,
1377
+ [
1378
+ 1,
1379
+ "e",
1380
+ ">",
1381
+ [
1382
+ 6,
1383
+ [
1384
+ 7,
1385
+ "d",
1386
+ "u32"
1387
+ ],
1388
+ [[5, "0"]]
1389
+ ]
1390
+ ],
1391
+ [0, [
1392
+ [
1393
+ 13,
1394
+ "idx",
1395
+ [
1396
+ 6,
1397
+ [
1398
+ 7,
1399
+ "d",
1400
+ "u32"
1401
+ ],
1402
+ [[
1403
+ 1,
1404
+ [
1405
+ 1,
1406
+ "py",
1407
+ "*",
1408
+ "RES"
1409
+ ],
1410
+ "+",
1411
+ "px"
1412
+ ]]
1413
+ ]
1414
+ ],
1415
+ [
1416
+ 6,
1417
+ [
1418
+ 7,
1419
+ "std",
1420
+ "atomicAdd"
1421
+ ],
1422
+ [[
1423
+ 8,
1424
+ [
1425
+ 7,
1426
+ [
1427
+ 7,
1428
+ "simLayout",
1429
+ "$"
1430
+ ],
1431
+ "accumE"
1432
+ ],
1433
+ "idx"
1434
+ ], "e"]
1435
+ ],
1436
+ [
1437
+ 6,
1438
+ [
1439
+ 7,
1440
+ "std",
1441
+ "atomicAdd"
1442
+ ],
1443
+ [[
1444
+ 8,
1445
+ [
1446
+ 7,
1447
+ [
1448
+ 7,
1449
+ "simLayout",
1450
+ "$"
1451
+ ],
1452
+ "accumS"
1453
+ ],
1454
+ "idx"
1455
+ ], [
1456
+ 6,
1457
+ [
1458
+ 7,
1459
+ "d",
1460
+ "u32"
1461
+ ],
1462
+ [[
1463
+ 1,
1464
+ [
1465
+ 1,
1466
+ "w",
1467
+ "*",
1468
+ "agitI"
1469
+ ],
1470
+ "*",
1471
+ [
1472
+ 6,
1473
+ [
1474
+ 7,
1475
+ "d",
1476
+ "f32"
1477
+ ],
1478
+ ["GAIN"]
1479
+ ]
1480
+ ]]
1481
+ ]]
1482
+ ]
1483
+ ]]
1484
+ ]
1485
+ ]]
1486
+ ]
1487
+ ]]
1488
+ ]
1489
+ ]]
1490
+ ]]]
1491
+ ]
1492
+ ]],
1493
+ "externalNames": [
1494
+ "simLayout",
1495
+ "homeFn",
1496
+ "d",
1497
+ "std",
1498
+ "EXT",
1499
+ "AA_W",
1500
+ "RES",
1501
+ "SPLAT_WIN",
1502
+ "SPLAT_R",
1503
+ "INV_RES",
1504
+ "weightFn",
1505
+ "SOFT",
1506
+ "GAIN"
1507
+ ]
1508
+ },
1509
+ externals: () => ({
1510
+ simLayout,
1511
+ homeFn,
1512
+ d,
1513
+ std,
1514
+ EXT,
1515
+ AA_W,
1516
+ RES,
1517
+ SPLAT_WIN,
1518
+ SPLAT_R,
1519
+ INV_RES,
1520
+ weightFn,
1521
+ SOFT,
1522
+ GAIN
1523
+ })
1524
+ }) && $.f)({})).$name("filingsSplat");
1525
+ }
1526
+ const filingsSplatKernel = makeFilingsSplatKernel("streak");
1527
+ function makeFilingsResolveKernel(colorSpaceMode) {
1528
+ const mixFn = mixColorsVariants[colorSpaceMode] ?? mixColorsLinear;
1529
+ return tgpu.fn([d.u32, d.u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((x, y) => {
1530
+ "use gpu";
1531
+ const prm = simLayout.$.params;
1532
+ const idx = __tsover_add(__tsover_mul(y, d.u32(RES)), x);
1533
+ const eRaw = d.f32(std.atomicLoad(simLayout.$.accumE[idx]));
1534
+ const sRaw = d.f32(std.atomicLoad(simLayout.$.accumS[idx]));
1535
+ const energy = __tsover_mul(eRaw, __tsover_div(1, 255));
1536
+ const agitAvg = __tsover_div(sRaw, std.max(eRaw, 1));
1537
+ const col = mixFn(prm.colA, prm.colB, std.clamp(agitAvg, 0, 1));
1538
+ const a = __tsover_mul(__tsover_sub(1, std.exp(__tsover_mul(energy, -1.6))), col.w);
1539
+ std.textureStore(simLayout.$.outTex, d.vec2u(x, y), d.vec4f(col.x, col.y, col.z, a));
1540
+ }), {
1541
+ v: 1,
1542
+ name: void 0,
1543
+ ast: {
1544
+ "params": [{
1545
+ "type": "i",
1546
+ "name": "x"
1547
+ }, {
1548
+ "type": "i",
1549
+ "name": "y"
1550
+ }],
1551
+ "body": [0, [
1552
+ [
1553
+ 13,
1554
+ "prm",
1555
+ [
1556
+ 7,
1557
+ [
1558
+ 7,
1559
+ "simLayout",
1560
+ "$"
1561
+ ],
1562
+ "params"
1563
+ ]
1564
+ ],
1565
+ [
1566
+ 13,
1567
+ "idx",
1568
+ [
1569
+ 1,
1570
+ [
1571
+ 1,
1572
+ "y",
1573
+ "*",
1574
+ [
1575
+ 6,
1576
+ [
1577
+ 7,
1578
+ "d",
1579
+ "u32"
1580
+ ],
1581
+ ["RES"]
1582
+ ]
1583
+ ],
1584
+ "+",
1585
+ "x"
1586
+ ]
1587
+ ],
1588
+ [
1589
+ 13,
1590
+ "eRaw",
1591
+ [
1592
+ 6,
1593
+ [
1594
+ 7,
1595
+ "d",
1596
+ "f32"
1597
+ ],
1598
+ [[
1599
+ 6,
1600
+ [
1601
+ 7,
1602
+ "std",
1603
+ "atomicLoad"
1604
+ ],
1605
+ [[
1606
+ 8,
1607
+ [
1608
+ 7,
1609
+ [
1610
+ 7,
1611
+ "simLayout",
1612
+ "$"
1613
+ ],
1614
+ "accumE"
1615
+ ],
1616
+ "idx"
1617
+ ]]
1618
+ ]]
1619
+ ]
1620
+ ],
1621
+ [
1622
+ 13,
1623
+ "sRaw",
1624
+ [
1625
+ 6,
1626
+ [
1627
+ 7,
1628
+ "d",
1629
+ "f32"
1630
+ ],
1631
+ [[
1632
+ 6,
1633
+ [
1634
+ 7,
1635
+ "std",
1636
+ "atomicLoad"
1637
+ ],
1638
+ [[
1639
+ 8,
1640
+ [
1641
+ 7,
1642
+ [
1643
+ 7,
1644
+ "simLayout",
1645
+ "$"
1646
+ ],
1647
+ "accumS"
1648
+ ],
1649
+ "idx"
1650
+ ]]
1651
+ ]]
1652
+ ]
1653
+ ],
1654
+ [
1655
+ 13,
1656
+ "energy",
1657
+ [
1658
+ 1,
1659
+ "eRaw",
1660
+ "*",
1661
+ [
1662
+ 1,
1663
+ [5, "1"],
1664
+ "/",
1665
+ [5, "255"]
1666
+ ]
1667
+ ]
1668
+ ],
1669
+ [
1670
+ 13,
1671
+ "agitAvg",
1672
+ [
1673
+ 1,
1674
+ "sRaw",
1675
+ "/",
1676
+ [
1677
+ 6,
1678
+ [
1679
+ 7,
1680
+ "std",
1681
+ "max"
1682
+ ],
1683
+ ["eRaw", [5, "1"]]
1684
+ ]
1685
+ ]
1686
+ ],
1687
+ [
1688
+ 13,
1689
+ "col",
1690
+ [
1691
+ 6,
1692
+ "mixFn",
1693
+ [
1694
+ [
1695
+ 7,
1696
+ "prm",
1697
+ "colA"
1698
+ ],
1699
+ [
1700
+ 7,
1701
+ "prm",
1702
+ "colB"
1703
+ ],
1704
+ [
1705
+ 6,
1706
+ [
1707
+ 7,
1708
+ "std",
1709
+ "clamp"
1710
+ ],
1711
+ [
1712
+ "agitAvg",
1713
+ [5, "0"],
1714
+ [5, "1"]
1715
+ ]
1716
+ ]
1717
+ ]
1718
+ ]
1719
+ ],
1720
+ [
1721
+ 13,
1722
+ "a",
1723
+ [
1724
+ 1,
1725
+ [
1726
+ 1,
1727
+ [5, "1"],
1728
+ "-",
1729
+ [
1730
+ 6,
1731
+ [
1732
+ 7,
1733
+ "std",
1734
+ "exp"
1735
+ ],
1736
+ [[
1737
+ 1,
1738
+ "energy",
1739
+ "*",
1740
+ [
1741
+ 4,
1742
+ "-",
1743
+ [5, "1.6"]
1744
+ ]
1745
+ ]]
1746
+ ]
1747
+ ],
1748
+ "*",
1749
+ [
1750
+ 7,
1751
+ "col",
1752
+ "w"
1753
+ ]
1754
+ ]
1755
+ ],
1756
+ [
1757
+ 6,
1758
+ [
1759
+ 7,
1760
+ "std",
1761
+ "textureStore"
1762
+ ],
1763
+ [
1764
+ [
1765
+ 7,
1766
+ [
1767
+ 7,
1768
+ "simLayout",
1769
+ "$"
1770
+ ],
1771
+ "outTex"
1772
+ ],
1773
+ [
1774
+ 6,
1775
+ [
1776
+ 7,
1777
+ "d",
1778
+ "vec2u"
1779
+ ],
1780
+ ["x", "y"]
1781
+ ],
1782
+ [
1783
+ 6,
1784
+ [
1785
+ 7,
1786
+ "d",
1787
+ "vec4f"
1788
+ ],
1789
+ [
1790
+ [
1791
+ 7,
1792
+ "col",
1793
+ "x"
1794
+ ],
1795
+ [
1796
+ 7,
1797
+ "col",
1798
+ "y"
1799
+ ],
1800
+ [
1801
+ 7,
1802
+ "col",
1803
+ "z"
1804
+ ],
1805
+ "a"
1806
+ ]
1807
+ ]
1808
+ ]
1809
+ ]
1810
+ ]],
1811
+ "externalNames": [
1812
+ "simLayout",
1813
+ "d",
1814
+ "RES",
1815
+ "std",
1816
+ "mixFn"
1817
+ ]
1818
+ },
1819
+ externals: () => ({
1820
+ simLayout,
1821
+ d,
1822
+ RES,
1823
+ std,
1824
+ mixFn
1825
+ })
1826
+ }) && $.f)({})).$name("filingsResolve");
1827
+ }
1828
+ const filingsResolveKernel = makeFilingsResolveKernel(2);
1829
+ const filingsUpdateKernel = tgpu.fn([d.u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
1830
+ "use gpu";
1831
+ const prm = simLayout.$.params;
1832
+ const st = simLayout.$.filings[i];
1833
+ let off = d.vec2f(st.x, st.y);
1834
+ let theta = st.z;
1835
+ let omega = st.w;
1836
+ const dt = prm.dt;
1837
+ const fi = d.f32(i);
1838
+ const home = homeFn(fi, prm.gridCols, prm.cellW, prm.cellH, prm.jitter);
1839
+ const pos = d.vec2f(__tsover_add(home.x, off.x), __tsover_add(home.y, off.y));
1840
+ const cursor = d.vec2f(prm.cursorX, prm.cursorY);
1841
+ const delta = pos.sub(cursor);
1842
+ const r = std.max(std.length(delta), 1e-4);
1843
+ const rhat = delta.div(r);
1844
+ const axis = d.vec2f(prm.axisX, prm.axisY);
1845
+ const mdotr = std.dot(axis, rhat);
1846
+ const dipoleB = rhat.mul(__tsover_mul(2, mdotr)).sub(axis);
1847
+ const B = std.select(dipoleB, rhat, prm.fieldType > .5);
1848
+ const fieldStr = __tsover_mul(prm.strength, std.exp(__tsover_mul(__tsover_div(__tsover_mul(r, r), std.max(prm.reachSq, 1e-6)), -1)));
1849
+ const phiField = std.atan2(B.y, B.x);
1850
+ const restAngle = restAngleFn(fi, prm.restMode);
1851
+ const torqueField = __tsover_mul(__tsover_mul(prm.alignK, fieldStr), std.sin(__tsover_mul(2, __tsover_sub(phiField, theta))));
1852
+ const torqueRest = __tsover_mul(prm.restK, std.sin(__tsover_mul(2, __tsover_sub(restAngle, theta))));
1853
+ omega = __tsover_add(omega, __tsover_mul(__tsover_add(torqueField, torqueRest), dt));
1854
+ omega = __tsover_mul(omega, std.exp(__tsover_mul(__tsover_mul(prm.damping, dt), -1)));
1855
+ theta = __tsover_add(theta, __tsover_mul(omega, dt));
1856
+ const raw = std.clamp(__tsover_div(std.abs(omega), std.max(prm.omegaRef, 1e-5)), 0, 1);
1857
+ const cooled = __tsover_mul(simLayout.$.agit[i], std.exp(__tsover_mul(dt, -prm.agitCool)));
1858
+ simLayout.$.agit[i] = std.max(raw, cooled);
1859
+ const pull = rhat.mul(__tsover_mul(__tsover_mul(prm.pullK, fieldStr), -1));
1860
+ off = off.add(pull.mul(dt));
1861
+ off = off.mul(std.exp(__tsover_mul(__tsover_mul(prm.homeK, dt), -1)));
1862
+ const offLen = std.length(off);
1863
+ off = std.select(off, off.div(std.max(offLen, 1e-5)).mul(MAX_OFFSET), offLen > MAX_OFFSET);
1864
+ simLayout.$.filings[i] = d.vec4f(off.x, off.y, theta, omega);
1865
+ }), {
1866
+ v: 1,
1867
+ name: void 0,
1868
+ ast: {
1869
+ "params": [{
1870
+ "type": "i",
1871
+ "name": "i"
1872
+ }],
1873
+ "body": [0, [
1874
+ [
1875
+ 13,
1876
+ "prm",
1877
+ [
1878
+ 7,
1879
+ [
1880
+ 7,
1881
+ "simLayout",
1882
+ "$"
1883
+ ],
1884
+ "params"
1885
+ ]
1886
+ ],
1887
+ [
1888
+ 13,
1889
+ "st",
1890
+ [
1891
+ 8,
1892
+ [
1893
+ 7,
1894
+ [
1895
+ 7,
1896
+ "simLayout",
1897
+ "$"
1898
+ ],
1899
+ "filings"
1900
+ ],
1901
+ "i"
1902
+ ]
1903
+ ],
1904
+ [
1905
+ 12,
1906
+ "off",
1907
+ [
1908
+ 6,
1909
+ [
1910
+ 7,
1911
+ "d",
1912
+ "vec2f"
1913
+ ],
1914
+ [[
1915
+ 7,
1916
+ "st",
1917
+ "x"
1918
+ ], [
1919
+ 7,
1920
+ "st",
1921
+ "y"
1922
+ ]]
1923
+ ]
1924
+ ],
1925
+ [
1926
+ 12,
1927
+ "theta",
1928
+ [
1929
+ 7,
1930
+ "st",
1931
+ "z"
1932
+ ]
1933
+ ],
1934
+ [
1935
+ 12,
1936
+ "omega",
1937
+ [
1938
+ 7,
1939
+ "st",
1940
+ "w"
1941
+ ]
1942
+ ],
1943
+ [
1944
+ 13,
1945
+ "dt",
1946
+ [
1947
+ 7,
1948
+ "prm",
1949
+ "dt"
1950
+ ]
1951
+ ],
1952
+ [
1953
+ 13,
1954
+ "fi",
1955
+ [
1956
+ 6,
1957
+ [
1958
+ 7,
1959
+ "d",
1960
+ "f32"
1961
+ ],
1962
+ ["i"]
1963
+ ]
1964
+ ],
1965
+ [
1966
+ 13,
1967
+ "home",
1968
+ [
1969
+ 6,
1970
+ "homeFn",
1971
+ [
1972
+ "fi",
1973
+ [
1974
+ 7,
1975
+ "prm",
1976
+ "gridCols"
1977
+ ],
1978
+ [
1979
+ 7,
1980
+ "prm",
1981
+ "cellW"
1982
+ ],
1983
+ [
1984
+ 7,
1985
+ "prm",
1986
+ "cellH"
1987
+ ],
1988
+ [
1989
+ 7,
1990
+ "prm",
1991
+ "jitter"
1992
+ ]
1993
+ ]
1994
+ ]
1995
+ ],
1996
+ [
1997
+ 13,
1998
+ "pos",
1999
+ [
2000
+ 6,
2001
+ [
2002
+ 7,
2003
+ "d",
2004
+ "vec2f"
2005
+ ],
2006
+ [[
2007
+ 1,
2008
+ [
2009
+ 7,
2010
+ "home",
2011
+ "x"
2012
+ ],
2013
+ "+",
2014
+ [
2015
+ 7,
2016
+ "off",
2017
+ "x"
2018
+ ]
2019
+ ], [
2020
+ 1,
2021
+ [
2022
+ 7,
2023
+ "home",
2024
+ "y"
2025
+ ],
2026
+ "+",
2027
+ [
2028
+ 7,
2029
+ "off",
2030
+ "y"
2031
+ ]
2032
+ ]]
2033
+ ]
2034
+ ],
2035
+ [
2036
+ 13,
2037
+ "cursor",
2038
+ [
2039
+ 6,
2040
+ [
2041
+ 7,
2042
+ "d",
2043
+ "vec2f"
2044
+ ],
2045
+ [[
2046
+ 7,
2047
+ "prm",
2048
+ "cursorX"
2049
+ ], [
2050
+ 7,
2051
+ "prm",
2052
+ "cursorY"
2053
+ ]]
2054
+ ]
2055
+ ],
2056
+ [
2057
+ 13,
2058
+ "delta",
2059
+ [
2060
+ 6,
2061
+ [
2062
+ 7,
2063
+ "pos",
2064
+ "sub"
2065
+ ],
2066
+ ["cursor"]
2067
+ ]
2068
+ ],
2069
+ [
2070
+ 13,
2071
+ "r",
2072
+ [
2073
+ 6,
2074
+ [
2075
+ 7,
2076
+ "std",
2077
+ "max"
2078
+ ],
2079
+ [[
2080
+ 6,
2081
+ [
2082
+ 7,
2083
+ "std",
2084
+ "length"
2085
+ ],
2086
+ ["delta"]
2087
+ ], [5, "0.0001"]]
2088
+ ]
2089
+ ],
2090
+ [
2091
+ 13,
2092
+ "rhat",
2093
+ [
2094
+ 6,
2095
+ [
2096
+ 7,
2097
+ "delta",
2098
+ "div"
2099
+ ],
2100
+ ["r"]
2101
+ ]
2102
+ ],
2103
+ [
2104
+ 13,
2105
+ "axis",
2106
+ [
2107
+ 6,
2108
+ [
2109
+ 7,
2110
+ "d",
2111
+ "vec2f"
2112
+ ],
2113
+ [[
2114
+ 7,
2115
+ "prm",
2116
+ "axisX"
2117
+ ], [
2118
+ 7,
2119
+ "prm",
2120
+ "axisY"
2121
+ ]]
2122
+ ]
2123
+ ],
2124
+ [
2125
+ 13,
2126
+ "mdotr",
2127
+ [
2128
+ 6,
2129
+ [
2130
+ 7,
2131
+ "std",
2132
+ "dot"
2133
+ ],
2134
+ ["axis", "rhat"]
2135
+ ]
2136
+ ],
2137
+ [
2138
+ 13,
2139
+ "dipoleB",
2140
+ [
2141
+ 6,
2142
+ [
2143
+ 7,
2144
+ [
2145
+ 6,
2146
+ [
2147
+ 7,
2148
+ "rhat",
2149
+ "mul"
2150
+ ],
2151
+ [[
2152
+ 1,
2153
+ [5, "2"],
2154
+ "*",
2155
+ "mdotr"
2156
+ ]]
2157
+ ],
2158
+ "sub"
2159
+ ],
2160
+ ["axis"]
2161
+ ]
2162
+ ],
2163
+ [
2164
+ 13,
2165
+ "B",
2166
+ [
2167
+ 6,
2168
+ [
2169
+ 7,
2170
+ "std",
2171
+ "select"
2172
+ ],
2173
+ [
2174
+ "dipoleB",
2175
+ "rhat",
2176
+ [
2177
+ 1,
2178
+ [
2179
+ 7,
2180
+ "prm",
2181
+ "fieldType"
2182
+ ],
2183
+ ">",
2184
+ [5, "0.5"]
2185
+ ]
2186
+ ]
2187
+ ]
2188
+ ],
2189
+ [
2190
+ 13,
2191
+ "fieldStr",
2192
+ [
2193
+ 1,
2194
+ [
2195
+ 7,
2196
+ "prm",
2197
+ "strength"
2198
+ ],
2199
+ "*",
2200
+ [
2201
+ 6,
2202
+ [
2203
+ 7,
2204
+ "std",
2205
+ "exp"
2206
+ ],
2207
+ [[
2208
+ 1,
2209
+ [
2210
+ 1,
2211
+ [
2212
+ 1,
2213
+ "r",
2214
+ "*",
2215
+ "r"
2216
+ ],
2217
+ "/",
2218
+ [
2219
+ 6,
2220
+ [
2221
+ 7,
2222
+ "std",
2223
+ "max"
2224
+ ],
2225
+ [[
2226
+ 7,
2227
+ "prm",
2228
+ "reachSq"
2229
+ ], [5, "0.000001"]]
2230
+ ]
2231
+ ],
2232
+ "*",
2233
+ [
2234
+ 4,
2235
+ "-",
2236
+ [5, "1"]
2237
+ ]
2238
+ ]]
2239
+ ]
2240
+ ]
2241
+ ],
2242
+ [
2243
+ 13,
2244
+ "phiField",
2245
+ [
2246
+ 6,
2247
+ [
2248
+ 7,
2249
+ "std",
2250
+ "atan2"
2251
+ ],
2252
+ [[
2253
+ 7,
2254
+ "B",
2255
+ "y"
2256
+ ], [
2257
+ 7,
2258
+ "B",
2259
+ "x"
2260
+ ]]
2261
+ ]
2262
+ ],
2263
+ [
2264
+ 13,
2265
+ "restAngle",
2266
+ [
2267
+ 6,
2268
+ "restAngleFn",
2269
+ ["fi", [
2270
+ 7,
2271
+ "prm",
2272
+ "restMode"
2273
+ ]]
2274
+ ]
2275
+ ],
2276
+ [
2277
+ 13,
2278
+ "torqueField",
2279
+ [
2280
+ 1,
2281
+ [
2282
+ 1,
2283
+ [
2284
+ 7,
2285
+ "prm",
2286
+ "alignK"
2287
+ ],
2288
+ "*",
2289
+ "fieldStr"
2290
+ ],
2291
+ "*",
2292
+ [
2293
+ 6,
2294
+ [
2295
+ 7,
2296
+ "std",
2297
+ "sin"
2298
+ ],
2299
+ [[
2300
+ 1,
2301
+ [5, "2"],
2302
+ "*",
2303
+ [
2304
+ 1,
2305
+ "phiField",
2306
+ "-",
2307
+ "theta"
2308
+ ]
2309
+ ]]
2310
+ ]
2311
+ ]
2312
+ ],
2313
+ [
2314
+ 13,
2315
+ "torqueRest",
2316
+ [
2317
+ 1,
2318
+ [
2319
+ 7,
2320
+ "prm",
2321
+ "restK"
2322
+ ],
2323
+ "*",
2324
+ [
2325
+ 6,
2326
+ [
2327
+ 7,
2328
+ "std",
2329
+ "sin"
2330
+ ],
2331
+ [[
2332
+ 1,
2333
+ [5, "2"],
2334
+ "*",
2335
+ [
2336
+ 1,
2337
+ "restAngle",
2338
+ "-",
2339
+ "theta"
2340
+ ]
2341
+ ]]
2342
+ ]
2343
+ ]
2344
+ ],
2345
+ [
2346
+ 2,
2347
+ "omega",
2348
+ "=",
2349
+ [
2350
+ 1,
2351
+ "omega",
2352
+ "+",
2353
+ [
2354
+ 1,
2355
+ [
2356
+ 1,
2357
+ "torqueField",
2358
+ "+",
2359
+ "torqueRest"
2360
+ ],
2361
+ "*",
2362
+ "dt"
2363
+ ]
2364
+ ]
2365
+ ],
2366
+ [
2367
+ 2,
2368
+ "omega",
2369
+ "=",
2370
+ [
2371
+ 1,
2372
+ "omega",
2373
+ "*",
2374
+ [
2375
+ 6,
2376
+ [
2377
+ 7,
2378
+ "std",
2379
+ "exp"
2380
+ ],
2381
+ [[
2382
+ 1,
2383
+ [
2384
+ 1,
2385
+ [
2386
+ 7,
2387
+ "prm",
2388
+ "damping"
2389
+ ],
2390
+ "*",
2391
+ "dt"
2392
+ ],
2393
+ "*",
2394
+ [
2395
+ 4,
2396
+ "-",
2397
+ [5, "1"]
2398
+ ]
2399
+ ]]
2400
+ ]
2401
+ ]
2402
+ ],
2403
+ [
2404
+ 2,
2405
+ "theta",
2406
+ "=",
2407
+ [
2408
+ 1,
2409
+ "theta",
2410
+ "+",
2411
+ [
2412
+ 1,
2413
+ "omega",
2414
+ "*",
2415
+ "dt"
2416
+ ]
2417
+ ]
2418
+ ],
2419
+ [
2420
+ 13,
2421
+ "raw",
2422
+ [
2423
+ 6,
2424
+ [
2425
+ 7,
2426
+ "std",
2427
+ "clamp"
2428
+ ],
2429
+ [
2430
+ [
2431
+ 1,
2432
+ [
2433
+ 6,
2434
+ [
2435
+ 7,
2436
+ "std",
2437
+ "abs"
2438
+ ],
2439
+ ["omega"]
2440
+ ],
2441
+ "/",
2442
+ [
2443
+ 6,
2444
+ [
2445
+ 7,
2446
+ "std",
2447
+ "max"
2448
+ ],
2449
+ [[
2450
+ 7,
2451
+ "prm",
2452
+ "omegaRef"
2453
+ ], [5, "0.00001"]]
2454
+ ]
2455
+ ],
2456
+ [5, "0"],
2457
+ [5, "1"]
2458
+ ]
2459
+ ]
2460
+ ],
2461
+ [
2462
+ 13,
2463
+ "cooled",
2464
+ [
2465
+ 1,
2466
+ [
2467
+ 8,
2468
+ [
2469
+ 7,
2470
+ [
2471
+ 7,
2472
+ "simLayout",
2473
+ "$"
2474
+ ],
2475
+ "agit"
2476
+ ],
2477
+ "i"
2478
+ ],
2479
+ "*",
2480
+ [
2481
+ 6,
2482
+ [
2483
+ 7,
2484
+ "std",
2485
+ "exp"
2486
+ ],
2487
+ [[
2488
+ 1,
2489
+ "dt",
2490
+ "*",
2491
+ [
2492
+ 4,
2493
+ "-",
2494
+ [
2495
+ 7,
2496
+ "prm",
2497
+ "agitCool"
2498
+ ]
2499
+ ]
2500
+ ]]
2501
+ ]
2502
+ ]
2503
+ ],
2504
+ [
2505
+ 2,
2506
+ [
2507
+ 8,
2508
+ [
2509
+ 7,
2510
+ [
2511
+ 7,
2512
+ "simLayout",
2513
+ "$"
2514
+ ],
2515
+ "agit"
2516
+ ],
2517
+ "i"
2518
+ ],
2519
+ "=",
2520
+ [
2521
+ 6,
2522
+ [
2523
+ 7,
2524
+ "std",
2525
+ "max"
2526
+ ],
2527
+ ["raw", "cooled"]
2528
+ ]
2529
+ ],
2530
+ [
2531
+ 13,
2532
+ "pull",
2533
+ [
2534
+ 6,
2535
+ [
2536
+ 7,
2537
+ "rhat",
2538
+ "mul"
2539
+ ],
2540
+ [[
2541
+ 1,
2542
+ [
2543
+ 1,
2544
+ [
2545
+ 7,
2546
+ "prm",
2547
+ "pullK"
2548
+ ],
2549
+ "*",
2550
+ "fieldStr"
2551
+ ],
2552
+ "*",
2553
+ [
2554
+ 4,
2555
+ "-",
2556
+ [5, "1"]
2557
+ ]
2558
+ ]]
2559
+ ]
2560
+ ],
2561
+ [
2562
+ 2,
2563
+ "off",
2564
+ "=",
2565
+ [
2566
+ 6,
2567
+ [
2568
+ 7,
2569
+ "off",
2570
+ "add"
2571
+ ],
2572
+ [[
2573
+ 6,
2574
+ [
2575
+ 7,
2576
+ "pull",
2577
+ "mul"
2578
+ ],
2579
+ ["dt"]
2580
+ ]]
2581
+ ]
2582
+ ],
2583
+ [
2584
+ 2,
2585
+ "off",
2586
+ "=",
2587
+ [
2588
+ 6,
2589
+ [
2590
+ 7,
2591
+ "off",
2592
+ "mul"
2593
+ ],
2594
+ [[
2595
+ 6,
2596
+ [
2597
+ 7,
2598
+ "std",
2599
+ "exp"
2600
+ ],
2601
+ [[
2602
+ 1,
2603
+ [
2604
+ 1,
2605
+ [
2606
+ 7,
2607
+ "prm",
2608
+ "homeK"
2609
+ ],
2610
+ "*",
2611
+ "dt"
2612
+ ],
2613
+ "*",
2614
+ [
2615
+ 4,
2616
+ "-",
2617
+ [5, "1"]
2618
+ ]
2619
+ ]]
2620
+ ]]
2621
+ ]
2622
+ ],
2623
+ [
2624
+ 13,
2625
+ "offLen",
2626
+ [
2627
+ 6,
2628
+ [
2629
+ 7,
2630
+ "std",
2631
+ "length"
2632
+ ],
2633
+ ["off"]
2634
+ ]
2635
+ ],
2636
+ [
2637
+ 2,
2638
+ "off",
2639
+ "=",
2640
+ [
2641
+ 6,
2642
+ [
2643
+ 7,
2644
+ "std",
2645
+ "select"
2646
+ ],
2647
+ [
2648
+ "off",
2649
+ [
2650
+ 6,
2651
+ [
2652
+ 7,
2653
+ [
2654
+ 6,
2655
+ [
2656
+ 7,
2657
+ "off",
2658
+ "div"
2659
+ ],
2660
+ [[
2661
+ 6,
2662
+ [
2663
+ 7,
2664
+ "std",
2665
+ "max"
2666
+ ],
2667
+ ["offLen", [5, "0.00001"]]
2668
+ ]]
2669
+ ],
2670
+ "mul"
2671
+ ],
2672
+ ["MAX_OFFSET"]
2673
+ ],
2674
+ [
2675
+ 1,
2676
+ "offLen",
2677
+ ">",
2678
+ "MAX_OFFSET"
2679
+ ]
2680
+ ]
2681
+ ]
2682
+ ],
2683
+ [
2684
+ 2,
2685
+ [
2686
+ 8,
2687
+ [
2688
+ 7,
2689
+ [
2690
+ 7,
2691
+ "simLayout",
2692
+ "$"
2693
+ ],
2694
+ "filings"
2695
+ ],
2696
+ "i"
2697
+ ],
2698
+ "=",
2699
+ [
2700
+ 6,
2701
+ [
2702
+ 7,
2703
+ "d",
2704
+ "vec4f"
2705
+ ],
2706
+ [
2707
+ [
2708
+ 7,
2709
+ "off",
2710
+ "x"
2711
+ ],
2712
+ [
2713
+ 7,
2714
+ "off",
2715
+ "y"
2716
+ ],
2717
+ "theta",
2718
+ "omega"
2719
+ ]
2720
+ ]
2721
+ ]
2722
+ ]],
2723
+ "externalNames": [
2724
+ "simLayout",
2725
+ "d",
2726
+ "homeFn",
2727
+ "std",
2728
+ "restAngleFn",
2729
+ "MAX_OFFSET"
2730
+ ]
2731
+ },
2732
+ externals: () => ({
2733
+ simLayout,
2734
+ d,
2735
+ homeFn,
2736
+ std,
2737
+ restAngleFn,
2738
+ MAX_OFFSET
2739
+ })
2740
+ }) && $.f)({})).$name("filingsUpdate");
2741
+ const componentDefinition = {
2742
+ name: "MagneticFilings",
2743
+ boundingBoxDeclaration: { aspectRatio: null },
2744
+ category: "Interactive",
2745
+ description: "Thousands of tiny iron filings scattered on paper that swing to align with a magnetic field around the cursor, tracing out the field lines — a dipole whose axis follows the cursor's motion draws the classic two-lobed swirl, and every sweep of the magnet sends a glowing wave of filings flipping and settling",
2746
+ requiresRTT: false,
2747
+ requiresChild: false,
2748
+ usesPointer: true,
2749
+ props: {
2750
+ colorA: {
2751
+ default: "#be1ef9",
2752
+ transform: transformColor,
2753
+ description: "Color of filings resting quietly, aligned and still",
2754
+ ui: {
2755
+ type: "color",
2756
+ label: "Rest Color",
2757
+ group: "Colors"
2758
+ }
2759
+ },
2760
+ colorB: {
2761
+ default: "#6326ff",
2762
+ transform: transformColor,
2763
+ description: "Color filings flash toward as they swing and settle — a wave of it follows the moving magnet",
2764
+ ui: {
2765
+ type: "color",
2766
+ label: "Excited Color",
2767
+ group: "Colors"
2768
+ }
2769
+ },
2770
+ colorSpace: {
2771
+ default: "oklab",
2772
+ transform: transformColorSpace,
2773
+ compileTime: true,
2774
+ description: "Color space for the rest→excited color ramp",
2775
+ ui: {
2776
+ type: "select",
2777
+ options: colorSpaceOptions,
2778
+ label: "Color Space",
2779
+ group: "Colors"
2780
+ }
2781
+ },
2782
+ shape: {
2783
+ default: "dot",
2784
+ compileTime: true,
2785
+ description: "How each filing is drawn — a slim streak or arrow reads as a compass needle, a box as a chunky filing, a dot or soft glow for a finer grain",
2786
+ ui: {
2787
+ type: "select",
2788
+ options: orientedShapeOptions,
2789
+ label: "Shape",
2790
+ group: "Filings"
2791
+ }
2792
+ },
2793
+ count: {
2794
+ default: 8e3,
2795
+ description: "Number of iron filings",
2796
+ ui: {
2797
+ type: "range",
2798
+ min: 500,
2799
+ max: 12e3,
2800
+ step: 500,
2801
+ label: "Count",
2802
+ group: "Filings"
2803
+ }
2804
+ },
2805
+ size: {
2806
+ default: 1,
2807
+ description: "Size of each filing",
2808
+ ui: {
2809
+ type: "range",
2810
+ min: .5,
2811
+ max: 3,
2812
+ step: .05,
2813
+ label: "Size",
2814
+ group: "Filings"
2815
+ }
2816
+ },
2817
+ restOrientation: {
2818
+ default: "random",
2819
+ description: "Which way filings point where the field can't reach them — randomly, all horizontal, or all vertical",
2820
+ ui: {
2821
+ type: "select",
2822
+ options: [
2823
+ {
2824
+ label: "Random",
2825
+ value: "random"
2826
+ },
2827
+ {
2828
+ label: "Horizontal",
2829
+ value: "horizontal"
2830
+ },
2831
+ {
2832
+ label: "Vertical",
2833
+ value: "vertical"
2834
+ }
2835
+ ],
2836
+ label: "Rest Orientation",
2837
+ group: "Filings"
2838
+ }
2839
+ },
2840
+ fieldType: {
2841
+ default: "dipole",
2842
+ description: "The magnetic field the filings reveal — a dipole (bar-magnet lobes that follow the cursor's motion) or a radial monopole (spokes out from the cursor)",
2843
+ ui: {
2844
+ type: "select",
2845
+ options: [{
2846
+ label: "Dipole",
2847
+ value: "dipole"
2848
+ }, {
2849
+ label: "Radial",
2850
+ value: "radial"
2851
+ }],
2852
+ label: "Field Type",
2853
+ group: "Field"
2854
+ }
2855
+ },
2856
+ strength: {
2857
+ default: 1.7,
2858
+ description: "How strongly the magnet grips the filings — higher snaps more of them into sharp alignment",
2859
+ ui: {
2860
+ type: "range",
2861
+ min: 0,
2862
+ max: 3,
2863
+ step: .01,
2864
+ label: "Strength",
2865
+ group: "Field"
2866
+ }
2867
+ },
2868
+ reach: {
2869
+ default: .6,
2870
+ description: "How far the magnet's influence spreads (in screen heights) — larger reveals more of the field at once",
2871
+ ui: {
2872
+ type: "range",
2873
+ min: .1,
2874
+ max: 1,
2875
+ step: .01,
2876
+ label: "Reach",
2877
+ group: "Field"
2878
+ }
2879
+ },
2880
+ response: {
2881
+ default: .5,
2882
+ description: "How briskly filings swing and settle — low is loose and floppy with a long wobble, high snaps into place quickly",
2883
+ ui: {
2884
+ type: "range",
2885
+ min: 0,
2886
+ max: 1,
2887
+ step: .01,
2888
+ label: "Response",
2889
+ group: "Field"
2890
+ }
2891
+ }
2892
+ },
2893
+ compute: (params) => {
2894
+ const { gpu, getCpuValue, registerComputeTexture, onCleanup } = params;
2895
+ const root = gpu?.root;
2896
+ if (!root) return null;
2897
+ const filings = createStateBuffer(root, d.vec4f, MAX_FILINGS);
2898
+ const agitBuf = createStateBuffer(root, d.f32, MAX_FILINGS);
2899
+ const accumE = createStateBuffer(root, d.atomic(d.u32), RES * RES);
2900
+ const accumS = createStateBuffer(root, d.atomic(d.u32), RES * RES);
2901
+ const outTex = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(root.createTexture({
2902
+ size: [RES, RES],
2903
+ format: STATE_FORMAT
2904
+ }).$usage("storage", "sampled"), "outTex");
2905
+ onCleanup(() => outTex.destroy());
2906
+ const filingsTexture = registerComputeTexture(outTex);
2907
+ const paramsU = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(root.createUniform(SimParams), "paramsU");
2908
+ const simBg = root.createBindGroup(simLayout, {
2909
+ filings,
2910
+ agit: agitBuf,
2911
+ accumE,
2912
+ accumS,
2913
+ params: paramsU.buffer,
2914
+ outTex
2915
+ });
2916
+ const splatKernel = makeFilingsSplatKernel(getCpuValue("shape") || "streak");
2917
+ const resolveKernel = makeFilingsResolveKernel(getCpuValue("colorSpace") ?? 2);
2918
+ const init = createGuardedCompute(root, /* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
2919
+ "use gpu";
2920
+ filingsInitKernel(i);
2921
+ }), {
2922
+ v: 1,
2923
+ name: void 0,
2924
+ ast: {
2925
+ "params": [{
2926
+ "type": "i",
2927
+ "name": "i"
2928
+ }],
2929
+ "body": [0, [[
2930
+ 6,
2931
+ "filingsInitKernel",
2932
+ ["i"]
2933
+ ]]],
2934
+ "externalNames": ["filingsInitKernel"]
2935
+ },
2936
+ externals: () => ({ filingsInitKernel })
2937
+ }) && $.f)({})).with(simBg);
2938
+ const clearAccum = createGuardedCompute(root, /* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((x, y) => {
2939
+ "use gpu";
2940
+ filingsClearAccumKernel(x, y);
2941
+ }), {
2942
+ v: 1,
2943
+ name: void 0,
2944
+ ast: {
2945
+ "params": [{
2946
+ "type": "i",
2947
+ "name": "x"
2948
+ }, {
2949
+ "type": "i",
2950
+ "name": "y"
2951
+ }],
2952
+ "body": [0, [[
2953
+ 6,
2954
+ "filingsClearAccumKernel",
2955
+ ["x", "y"]
2956
+ ]]],
2957
+ "externalNames": ["filingsClearAccumKernel"]
2958
+ },
2959
+ externals: () => ({ filingsClearAccumKernel })
2960
+ }) && $.f)({}), { size: [RES, RES] }).with(simBg);
2961
+ const update = createGuardedCompute(root, /* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
2962
+ "use gpu";
2963
+ filingsUpdateKernel(i);
2964
+ }), {
2965
+ v: 1,
2966
+ name: void 0,
2967
+ ast: {
2968
+ "params": [{
2969
+ "type": "i",
2970
+ "name": "i"
2971
+ }],
2972
+ "body": [0, [[
2973
+ 6,
2974
+ "filingsUpdateKernel",
2975
+ ["i"]
2976
+ ]]],
2977
+ "externalNames": ["filingsUpdateKernel"]
2978
+ },
2979
+ externals: () => ({ filingsUpdateKernel })
2980
+ }) && $.f)({})).with(simBg);
2981
+ const splat = createGuardedCompute(root, /* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((i) => {
2982
+ "use gpu";
2983
+ splatKernel(i);
2984
+ }), {
2985
+ v: 1,
2986
+ name: void 0,
2987
+ ast: {
2988
+ "params": [{
2989
+ "type": "i",
2990
+ "name": "i"
2991
+ }],
2992
+ "body": [0, [[
2993
+ 6,
2994
+ "splatKernel",
2995
+ ["i"]
2996
+ ]]],
2997
+ "externalNames": ["splatKernel"]
2998
+ },
2999
+ externals: () => ({ splatKernel })
3000
+ }) && $.f)({})).with(simBg);
3001
+ const resolve = createGuardedCompute(root, /* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((x, y) => {
3002
+ "use gpu";
3003
+ resolveKernel(x, y);
3004
+ }), {
3005
+ v: 1,
3006
+ name: void 0,
3007
+ ast: {
3008
+ "params": [{
3009
+ "type": "i",
3010
+ "name": "x"
3011
+ }, {
3012
+ "type": "i",
3013
+ "name": "y"
3014
+ }],
3015
+ "body": [0, [[
3016
+ 6,
3017
+ "resolveKernel",
3018
+ ["x", "y"]
3019
+ ]]],
3020
+ "externalNames": ["resolveKernel"]
3021
+ },
3022
+ externals: () => ({ resolveKernel })
3023
+ }) && $.f)({}), { size: [RES, RES] }).with(simBg);
3024
+ let initialized = false;
3025
+ let lastCx = .5;
3026
+ let lastCy = .5;
3027
+ let axisX = 1;
3028
+ let axisY = 0;
3029
+ return {
3030
+ outputs: { filingsTexture },
3031
+ getComputeNodes: (frameParams) => {
3032
+ const fp = frameParams;
3033
+ const dt = Math.min(Math.max(fp.deltaTime ?? .016, .001), .033);
3034
+ const h = fp.dimensions?.height ?? 0;
3035
+ const aspect = h > 0 ? (fp.dimensions?.width ?? 0) / h : 16 / 9;
3036
+ const domainX = Math.max(aspect, .01);
3037
+ const g = (key, fallback) => {
3038
+ const v = getCpuValue(key);
3039
+ return typeof v === "number" ? v : fallback;
3040
+ };
3041
+ const count = Math.min(Math.max(Math.round(g("count", 5e3)), 16), MAX_FILINGS);
3042
+ const spanX = domainX + 2 * OVERSCAN;
3043
+ const spanY = 1 + 2 * OVERSCAN;
3044
+ const cols = Math.max(1, Math.round(Math.sqrt(count * (spanX / spanY))));
3045
+ const rows = Math.max(1, Math.ceil(count / cols));
3046
+ const cellW = spanX / cols;
3047
+ const cellH = spanY / rows;
3048
+ const cursorX = (fp.pointer?.x ?? .5) * aspect;
3049
+ const cursorY = fp.pointer?.y ?? .5;
3050
+ const mvx = cursorX - lastCx;
3051
+ const mvy = cursorY - lastCy;
3052
+ const mvLen = Math.hypot(mvx, mvy);
3053
+ if (mvLen > .001) {
3054
+ const nx = mvx / mvLen;
3055
+ const ny = mvy / mvLen;
3056
+ axisX += (nx - axisX) * .1;
3057
+ axisY += (ny - axisY) * .1;
3058
+ const al = Math.hypot(axisX, axisY) || 1;
3059
+ axisX /= al;
3060
+ axisY /= al;
3061
+ }
3062
+ lastCx = cursorX;
3063
+ lastCy = cursorY;
3064
+ const fieldType = (getCpuValue("fieldType") ?? "dipole") === "radial" ? 1 : 0;
3065
+ const restStr = getCpuValue("restOrientation") ?? "random";
3066
+ const restMode = restStr === "horizontal" ? 1 : restStr === "vertical" ? 2 : 0;
3067
+ const strength = g("strength", 1);
3068
+ const reach = g("reach", .35);
3069
+ const response = Math.min(Math.max(g("response", .5), 0), 1);
3070
+ const colA = getCpuValue("colorA");
3071
+ const colB = getCpuValue("colorB");
3072
+ const bodyR = Math.min(Math.max(g("size", 1), .5), 3) * 1.7 * INV_RES;
3073
+ paramsU.write({
3074
+ colA: d.vec4f(colA?.x ?? .522, colA?.y ?? .573, colA?.z ?? .639, colA?.w ?? 1),
3075
+ colB: d.vec4f(colB?.x ?? 1, colB?.y ?? .616, colB?.z ?? .361, colB?.w ?? 1),
3076
+ count,
3077
+ dt,
3078
+ aspect,
3079
+ domainX,
3080
+ cursorX,
3081
+ cursorY,
3082
+ axisX,
3083
+ axisY,
3084
+ fieldType,
3085
+ restMode,
3086
+ strength,
3087
+ reachSq: reach * reach,
3088
+ alignK: ALIGN_BASE,
3089
+ damping: DAMP_MIN + response * DAMP_SPAN,
3090
+ restK: REST_K,
3091
+ pullK: PULL_K,
3092
+ homeK: HOME_K,
3093
+ omegaRef: OMEGA_REF,
3094
+ agitCool: AGIT_COOL,
3095
+ gridCols: cols,
3096
+ cellW,
3097
+ cellH,
3098
+ jitter: .85,
3099
+ bodyR
3100
+ });
3101
+ const nodes = [];
3102
+ if (!initialized) {
3103
+ initialized = true;
3104
+ nodes.push(() => init.dispatchThreads(MAX_FILINGS));
3105
+ }
3106
+ nodes.push(clearAccum, () => update.dispatchThreads(count), () => splat.dispatchThreads(count), resolve);
3107
+ return nodes;
3108
+ }
3109
+ };
3110
+ },
3111
+ fragment: ({ ctx, computeOutputs }) => {
3112
+ const filingsField = computeOutputs?.filingsTexture;
3113
+ if (!filingsField) return ZERO;
3114
+ return filingsField.sample(ctx.uv, "linearClamp");
3115
+ }
3116
+ };
3117
+ var MagneticFilings_default = componentDefinition;
3118
+ export { filingsResolveKernel as a, makeFilingsResolveKernel as c, filingsInitKernel as i, makeFilingsSplatKernel as l, componentDefinition as n, filingsSplatKernel as o, filingsClearAccumKernel as r, filingsUpdateKernel as s, MagneticFilings_default as t };