shaders 3.0.448 → 3.0.449

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 (414) hide show
  1. package/dist/cli.js +2 -2
  2. package/dist/core/{AngularBlur-xU811GPM.js → AngularBlur-DU1WmNHt.js} +15 -15
  3. package/dist/core/{Arc-DYvFxtGy.js → Arc-C8QmYsiZ.js} +13 -12
  4. package/dist/core/{Ascii-ChE4BP7J.js → Ascii-BaQ6MZTc.js} +51 -53
  5. package/dist/core/{Aurora-BThE6pbb.js → Aurora-B6lOg6M4.js} +63 -68
  6. package/dist/core/{BarShift-DdjkPSk3.js → BarShift-CFK-CzF9.js} +31 -32
  7. package/dist/core/{BarnDoors-B_kxVuec.js → BarnDoors-DWs_0xtH.js} +21 -22
  8. package/dist/core/{Beam-C7zPHuIU.js → Beam-Cgc4EYnj.js} +32 -39
  9. package/dist/core/{Bend-CFcEjifF.js → Bend-oof5pE1H.js} +27 -28
  10. package/dist/core/{Blob-CgUolAhz.js → Blob-cfvDCv0i.js} +54 -60
  11. package/dist/core/{BlockDissolve-CLSxXB4e.js → BlockDissolve-C7yJzYGZ.js} +21 -20
  12. package/dist/core/{BlockNoise-BgEJOicU.js → BlockNoise-DaM9YDAH.js} +16 -14
  13. package/dist/core/{BlueNoise-BqMtBLxM.js → BlueNoise-BMMRTsMw.js} +12 -10
  14. package/dist/core/{Blur-Xaa6jVPT.js → Blur-Be7sX4v9.js} +27 -27
  15. package/dist/core/{Boids-B8QUNxRL.js → Boids-C9S69THK.js} +151 -149
  16. package/dist/core/{BokehBlur-B5fql96U.js → BokehBlur-DSkKZ_yy.js} +104 -104
  17. package/dist/core/{BrickPattern-EAD5HD4e.js → BrickPattern-BY7h4hyx.js} +34 -38
  18. package/dist/core/{BrightnessContrast-mbv32DkA.js → BrightnessContrast-DFc0gSUv.js} +9 -10
  19. package/dist/core/{BrushedMetal-B10fDdGt.js → BrushedMetal-B06tUygH.js} +81 -84
  20. package/dist/core/{Bulge-C1Pq4DHk.js → Bulge-BpSOQfH0.js} +19 -19
  21. package/dist/core/{CRTScreen-Ctx0Mxtb.js → CRTScreen-DdGcEvk2.js} +35 -37
  22. package/dist/core/{CarbonFiber-DSSARe6R.js → CarbonFiber-Dy7Osb3V.js} +81 -84
  23. package/dist/core/{Chalkboard-C7srb54u.js → Chalkboard-wRYj23wL.js} +59 -61
  24. package/dist/core/{ChannelBlur-DE3T4-pj.js → ChannelBlur-DKD9GUpc.js} +13 -15
  25. package/dist/core/{CheckerWipe-Dp49-iaT.js → CheckerWipe-D0WmsSKg.js} +23 -23
  26. package/dist/core/{Checkerboard-oVWtS0rz.js → Checkerboard-2sQYJks9.js} +31 -31
  27. package/dist/core/{Chevron-CCD5JTRA.js → Chevron-D3oPw2-i.js} +20 -20
  28. package/dist/core/{ChromaFlow-BiE9Mes0.js → ChromaFlow-px9KG_h6.js} +32 -33
  29. package/dist/core/{ChromaticAberration-XEasUrD3.js → ChromaticAberration-DLFROPJV.js} +13 -13
  30. package/dist/core/{Circle-CvQ9duDU.js → Circle-0CqIPN3a.js} +14 -13
  31. package/dist/core/{ColorWheel-CXvfWAjN.js → ColorWheel-CMtn8slz.js} +30 -34
  32. package/dist/core/{CompressionArtifacts-BDaP7XI6.js → CompressionArtifacts-D7dpVg47.js} +64 -66
  33. package/dist/core/{ConcentricSpin-D06hFXEb.js → ConcentricSpin-BPk-_egF.js} +39 -41
  34. package/dist/core/{ConicGradient-Cg6vy3gl.js → ConicGradient-B-tEhmfR.js} +17 -18
  35. package/dist/core/{ContourLines-Cg2Dlmcr.js → ContourLines-BlgCWFSy.js} +29 -30
  36. package/dist/core/{CornerPin-wtqiMUCa.js → CornerPin-DB3G2i_y.js} +55 -57
  37. package/dist/core/{Crescent-Co__JqEE.js → Crescent-CFzPQKll.js} +14 -13
  38. package/dist/core/{Cross-CFytbdrZ.js → Cross-Cstl9nDg.js} +14 -13
  39. package/dist/core/{Crystal-U7VqhbHy.js → Crystal-CEeqF1Xa.js} +143 -152
  40. package/dist/core/{CurlNoise-BXWYh1Qi.js → CurlNoise-uvTKk4Wa.js} +16 -14
  41. package/dist/core/{CursorRipples-APbH7SVR.js → CursorRipples-B46VApbY.js} +59 -58
  42. package/dist/core/{CursorTrail-D5Fj0wGp.js → CursorTrail-DzYRTzzA.js} +72 -71
  43. package/dist/core/{DataMosh-CWRLpjU3.js → DataMosh-Ysev5-c_.js} +71 -73
  44. package/dist/core/{DiamondGradient-C_2VoEiQ.js → DiamondGradient-pTOwPuAl.js} +23 -25
  45. package/dist/core/{DiamondWipe-BkdNODD1.js → DiamondWipe-D6u1P2xH.js} +22 -22
  46. package/dist/core/{DiffuseBlur-Dl7S4KBW.js → DiffuseBlur-BX0cfwyh.js} +11 -12
  47. package/dist/core/{DisplacementMap-lv-qoLem.js → DisplacementMap-DMNivtcV.js} +26 -26
  48. package/dist/core/{Dither-B33J_gJU.js → Dither-Cxu-hSc_.js} +116 -119
  49. package/dist/core/{DotGrid-DaOhiRaL.js → DotGrid-CbNHebie.js} +37 -39
  50. package/dist/core/{DropShadow-C5Z2Rs2C.js → DropShadow-DFyuEA17.js} +37 -37
  51. package/dist/core/{Duotone-x4cywJbU.js → Duotone-CgueO-jZ.js} +7 -7
  52. package/dist/core/{Ellipse-CrQ1XYjx.js → Ellipse-DxRnSw__.js} +13 -12
  53. package/dist/core/{Emboss-DNwO5JcE.js → Emboss-BJxzjZmZ.js} +76 -78
  54. package/dist/core/{Engraving-FsaRQiyI.js → Engraving-DmQCj8vU.js} +57 -59
  55. package/dist/core/{ErosionNoise-CloHpdFT.js → ErosionNoise-7ekcAfBb.js} +13 -11
  56. package/dist/core/{Exposure-mO6KjYvc.js → Exposure-avEereLn.js} +4 -5
  57. package/dist/core/{FallingLines-D_1wHUkx.js → FallingLines-BINyHi3N.js} +40 -42
  58. package/dist/core/{FilmGrain-DDhrsw94.js → FilmGrain-B-pZBxiK.js} +17 -18
  59. package/dist/core/{FilmStock-BaP2aTLu.js → FilmStock-BJfso8f3.js} +74 -74
  60. package/dist/core/{Flip-DYuqyJva.js → Flip-Dbwe0zh8.js} +10 -12
  61. package/dist/core/{FloatingParticles-DJwNpHtZ.js → FloatingParticles-CoQ01il5.js} +97 -94
  62. package/dist/core/{FlowField-D4iGiDic.js → FlowField-CU6S3Jar.js} +24 -23
  63. package/dist/core/{Flower-D0MqoayS.js → Flower-R7HIopNH.js} +14 -13
  64. package/dist/core/{FlowingGradient-9Zu0Pu4a.js → FlowingGradient-D66Y9Wgq.js} +38 -39
  65. package/dist/core/{FlutedGlass-C_clmShu.js → FlutedGlass-WAaeW92l.js} +43 -43
  66. package/dist/core/{Fog-C_kY5pWB.js → Fog-BChoF6fi.js} +172 -171
  67. package/dist/core/{Form3D-D4aXZGoJ.js → Form3D-DajWNpAi.js} +259 -267
  68. package/dist/core/{FractalNoise-mMVLGmIv.js → FractalNoise-DIrQ3eQj.js} +30 -28
  69. package/dist/core/{Frost-M53tZlcf.js → Frost-B_3JSI2H.js} +70 -73
  70. package/dist/core/{GaborNoise-BhXywN1d.js → GaborNoise-4FWeA9yr.js} +16 -14
  71. package/dist/core/{Glass-B9D_52op.js → Glass-wOhmSf3v.js} +6 -4
  72. package/dist/core/{GlassTiles-DIkGYgVE.js → GlassTiles-DgdAiEuy.js} +23 -26
  73. package/dist/core/{Glitch-CUOJt5VX.js → Glitch-BOiywFUR.js} +60 -65
  74. package/dist/core/{Glow-D5AdnLvU.js → Glow-C2cEWdNE.js} +76 -77
  75. package/dist/core/{Godrays-BeQCWVw7.js → Godrays-DAZB2GSn.js} +52 -56
  76. package/dist/core/{Goo-C0_0QYne.js → Goo-B_WAqWYW.js} +64 -65
  77. package/dist/core/{GradientMap-DOVK05_a.js → GradientMap-DxsOInED.js} +47 -50
  78. package/dist/core/{Grayscale-Uv_6LYA9.js → Grayscale-DSHs9mZd.js} +6 -6
  79. package/dist/core/{Grid-Dbp4DoXZ.js → Grid-aO3wzf4X.js} +46 -48
  80. package/dist/core/{GridDistortion-D_21zIrm.js → GridDistortion-DsHsHda7.js} +63 -62
  81. package/dist/core/{Group-DXiB5Qrx.js → Group-CCcDbysC.js} +1 -1
  82. package/dist/core/{HTMLInCanvas-xXPLTYIv.js → HTMLInCanvas-B2OooKKr.js} +1 -1
  83. package/dist/core/{Halftone-DszIQsyx.js → Halftone-3a3rz4ln.js} +59 -62
  84. package/dist/core/{Heart-COpnSJPD.js → Heart-CzO0_GoB.js} +12 -11
  85. package/dist/core/{Heatmap-CMm8SD-P.js → Heatmap-DPtUc8YG.js} +57 -55
  86. package/dist/core/{HexGrid-B6wNW-45.js → HexGrid-CN5A0m5j.js} +32 -35
  87. package/dist/core/{Hologram-XejRN51V.js → Hologram-DoKRhChe.js} +62 -66
  88. package/dist/core/{Holographic-D1G_Ou1y.js → Holographic-BWyW5z_h.js} +58 -61
  89. package/dist/core/{HueShift-BCDgYfJs.js → HueShift-C0p8EGk-.js} +7 -10
  90. package/dist/core/{ImageTexture-BE2Jlkg6.js → ImageTexture-BnwkbXAW.js} +3 -2
  91. package/dist/core/{InkFlow-DJaJqula.js → InkFlow-BH86usRX.js} +156 -156
  92. package/dist/core/{Invert-DDmITZjt.js → Invert-BIjy9ddK.js} +4 -4
  93. package/dist/core/{IrisWipe-BFs5DDSa.js → IrisWipe-lpU7lucQ.js} +20 -23
  94. package/dist/core/{IsometricCubes-ChKqYTIw.js → IsometricCubes-CIieztxI.js} +37 -42
  95. package/dist/core/{Kaleidoscope-C8_-tC6T.js → Kaleidoscope-CUMvqmfN.js} +21 -21
  96. package/dist/core/{KeyFrames-xR9ZzHKj.js → KeyFrames-mI1J02zX.js} +130 -129
  97. package/dist/core/{LensFlare-DHGNEDIX.js → LensFlare-ChQK_hJN.js} +82 -84
  98. package/dist/core/{LightEdge-DYfhB3-7.js → LightEdge-Rg-zMpGb.js} +106 -107
  99. package/dist/core/{LightLeak-CYjuMURe.js → LightLeak-D1CxVo9A.js} +58 -59
  100. package/dist/core/{LinearBlur-CV7gKYHV.js → LinearBlur-DJBkHfs8.js} +14 -14
  101. package/dist/core/{LinearGradient-DAzw65UB.js → LinearGradient-DCRYBS4Q.js} +36 -37
  102. package/dist/core/{LinearWipe-DoDZF7y0.js → LinearWipe-Cxfs1tIO.js} +20 -21
  103. package/dist/core/{LiquidMetal-C9OxRyE4.js → LiquidMetal-oscNnbsr.js} +70 -73
  104. package/dist/core/{Liquify-gNsuR7aA.js → Liquify-CJwl6Wef.js} +67 -66
  105. package/dist/core/{MagneticFilings-CQ7zHEow.js → MagneticFilings-DAOFLjAQ.js} +125 -125
  106. package/dist/core/{Marble-BSSMSrv8.js → Marble-Cr4Iaq38.js} +22 -21
  107. package/dist/core/{Mirror-BZAUA2jk.js → Mirror-BwOuv3TP.js} +18 -18
  108. package/dist/core/{MultiPointGradient-HSfAYB-u.js → MultiPointGradient-CSowH0-7.js} +30 -31
  109. package/dist/core/{Neon-D9d6Osal.js → Neon-CPIvbGSB.js} +102 -113
  110. package/dist/core/{NoiseDissolve-CnELvUG_.js → NoiseDissolve-ByahROgQ.js} +23 -22
  111. package/dist/core/{ObjectTracker-COh35yTh.js → ObjectTracker-DMCr6kHz.js} +3 -3
  112. package/dist/core/{PagePeel-B6sjmvZ1.js → PagePeel-Coq0hc8R.js} +54 -58
  113. package/dist/core/{Paper-LfukraJk.js → Paper-CLlhc3fn.js} +16 -15
  114. package/dist/core/{Parallelogram-DBi0yAG3.js → Parallelogram-Be8RQBV7.js} +14 -13
  115. package/dist/core/{ParticleField-q7COY9YT.js → ParticleField-DDO-Tk9X.js} +154 -150
  116. package/dist/core/{ParticleFlow-DiHWbIon.js → ParticleFlow-B89PWVem.js} +210 -208
  117. package/dist/core/{Particles-BFsKUAPx.js → Particles-D8rP46SB.js} +207 -209
  118. package/dist/core/{PerlinNoise-KV2GG0ts.js → PerlinNoise-_whB3Y3m.js} +16 -14
  119. package/dist/core/{Perspective-CJSrtEy5.js → Perspective-BJuQWHOr.js} +23 -25
  120. package/dist/core/{PixelSort-WD-Y6ZFu.js → PixelSort-CJfXD6g0.js} +109 -109
  121. package/dist/core/{PixelThrow-CnOXm7Hv.js → PixelThrow-BaTI5PzH.js} +35 -35
  122. package/dist/core/{Pixelate-XJI9f1oT.js → Pixelate-D7Dto_8I.js} +19 -19
  123. package/dist/core/{Plasma-C0dnSaw1.js → Plasma-DWIDcCnn.js} +33 -32
  124. package/dist/core/{Plastic-DBv_6A7q.js → Plastic-CWAOd2i9.js} +82 -84
  125. package/dist/core/{PolarCoordinates-B8Cq2bzT.js → PolarCoordinates-DQM3dLK3.js} +16 -18
  126. package/dist/core/{Polygon-ORM35JKg.js → Polygon-CFmLohBu.js} +16 -17
  127. package/dist/core/{Posterize-Dn-Vv2S1.js → Posterize-B8PHXwhy.js} +5 -8
  128. package/dist/core/{Prism-CYLsGJHY.js → Prism-C5VS4TLU.js} +36 -40
  129. package/dist/core/{ProgressiveBlur-BXUumCm5.js → ProgressiveBlur-BcGcteLH.js} +63 -65
  130. package/dist/core/{RadialGradient-j6T56q1W.js → RadialGradient-D3UoKiGu.js} +22 -23
  131. package/dist/core/{RadialWipe-Bz19qvls.js → RadialWipe-DXfAH0Ug.js} +25 -25
  132. package/dist/core/{RandomBars-3RlhwDYG.js → RandomBars-BVsp1Q7v.js} +23 -23
  133. package/dist/core/{ReactionDiffusion-DdXavIVw.js → ReactionDiffusion-DknxOF-o.js} +173 -175
  134. package/dist/core/{RectangularCoordinates-p3250IKV.js → RectangularCoordinates-DFQm4y6H.js} +14 -14
  135. package/dist/core/{ReflectivePlane-BOl9AEoO.js → ReflectivePlane-BDlGBzo1.js} +35 -37
  136. package/dist/core/{Repeater-BMXmN95R.js → Repeater-DHW6eDAm.js} +2 -2
  137. package/dist/core/{Ring-DKcROHDs.js → Ring-3brC5en8.js} +15 -14
  138. package/dist/core/{RippleWipe-QH8D0Y-2.js → RippleWipe-DQfXGjRv.js} +24 -27
  139. package/dist/core/{Ripples-8fFdo6aq.js → Ripples-DajR3Cl5.js} +18 -21
  140. package/dist/core/{RoundedRect-Cr76tP9o.js → RoundedRect-CfkYNmkV.js} +14 -13
  141. package/dist/core/{Saturation-Dqifs1x7.js → Saturation-BPTssGSs.js} +8 -9
  142. package/dist/core/{Scratches-sa8JU4Eb.js → Scratches-A-AyASZm.js} +16 -14
  143. package/dist/core/{Sharpness-IRuPd9nn.js → Sharpness-Di39DpCB.js} +21 -22
  144. package/dist/core/{Shatter-BYaxMvyd.js → Shatter-CWf3HtjN.js} +73 -72
  145. package/dist/core/{SimplexNoise-C2vmRzgy.js → SimplexNoise-DpZ2jtdk.js} +19 -17
  146. package/dist/core/{SineWave-BGAJyGFr.js → SineWave-CZuksvHn.js} +20 -20
  147. package/dist/core/{SliceWipe-BOcCk5Se.js → SliceWipe-BwL2D3HR.js} +19 -19
  148. package/dist/core/{Smoke-B1twbhQ4.js → Smoke-BsUkbTI1.js} +156 -155
  149. package/dist/core/{SmokeFill-CAayneM2.js → SmokeFill-CaDMgNW-.js} +233 -231
  150. package/dist/core/{SmokeFlow-Ug8difAz.js → SmokeFlow-CLfsAbPS.js} +143 -142
  151. package/dist/core/{Solarize-205KKROH.js → Solarize-ALjXXAf0.js} +12 -14
  152. package/dist/core/{SolidColor-B4pj8onb.js → SolidColor-Cu_9b_my.js} +1 -1
  153. package/dist/core/{Spherize-DUQxwwCL.js → Spherize-SBfCc9Wk.js} +31 -37
  154. package/dist/core/{Spiral-DY1c-N4F.js → Spiral-iRrT222n.js} +36 -36
  155. package/dist/core/{Star-DRxNaHHo.js → Star-DL3d_HqY.js} +14 -13
  156. package/dist/core/{Stone-CUdcvOWd.js → Stone-OTsCM-rr.js} +2 -2
  157. package/dist/core/{Strands-CFxYJMFu.js → Strands-DjoQgGnd.js} +47 -49
  158. package/dist/core/{Stretch-DYrVdt8A.js → Stretch-CdzhxnbM.js} +19 -19
  159. package/dist/core/{Stripes-BvnoWdwn.js → Stripes-CsBgKYdp.js} +39 -39
  160. package/dist/core/{StudioBackground-srQGUpfZ.js → StudioBackground-D8EdrLg5.js} +67 -68
  161. package/dist/core/{SunBurst-COsVDZ4e.js → SunBurst-ErBFL-nF.js} +18 -20
  162. package/dist/core/{Surface3D-TsGPzdGm.js → Surface3D-CLjX61TZ.js} +144 -144
  163. package/dist/core/{Swirl-nXMWVY2X.js → Swirl-DDQif_lC.js} +18 -21
  164. package/dist/core/{Teardrop-Bjtkigk4.js → Teardrop-CvpdElTs.js} +13 -12
  165. package/dist/core/{Text-BGdsqRl5.js → Text-vyzeMvhl.js} +20 -21
  166. package/dist/core/{ThinFilm-DhMKI5e2.js → ThinFilm-CbkMTbD2.js} +59 -67
  167. package/dist/core/{TiltShift-BwuYyXB6.js → TiltShift-BVMyB8lF.js} +66 -67
  168. package/dist/core/{TimeTrail-CE2XumxR.js → TimeTrail-CuFGvzFi.js} +91 -94
  169. package/dist/core/{Tint-BTmcGjEl.js → Tint-C6zMMsYH.js} +25 -26
  170. package/dist/core/{Trapezoid-CiZCh8QS.js → Trapezoid-kFuxWONU.js} +14 -13
  171. package/dist/core/{TriangularGrid-BnQOEljy.js → TriangularGrid-FIrpI_qE.js} +34 -36
  172. package/dist/core/{Tritone-Ta084wlF.js → Tritone-DyLGtOug.js} +7 -10
  173. package/dist/core/{Truchet-BxCh_IIp.js → Truchet-B4NI56Zz.js} +31 -33
  174. package/dist/core/{Twirl-Cw4jm59Q.js → Twirl-CuzhWXfj.js} +16 -16
  175. package/dist/core/{VHS-Nwk0E-tf.js → VHS-DYbzndAZ.js} +68 -69
  176. package/dist/core/{VenetianBlinds-BZ0sS97G.js → VenetianBlinds-DVopy3xp.js} +22 -23
  177. package/dist/core/{Vesica-Cf1KiSzK.js → Vesica-Cd-XyG3F.js} +13 -12
  178. package/dist/core/{Vibrance-qWGvLkrW.js → Vibrance-CvXatkfO.js} +7 -8
  179. package/dist/core/{VideoTexture-48ylVDvN.js → VideoTexture-C5PS6Vly.js} +34 -39
  180. package/dist/core/{Vignette-CK_Li7v2.js → Vignette-DtBpWWxW.js} +20 -22
  181. package/dist/core/{Voronoi-DMYFDwIS.js → Voronoi-CRH2cGlR.js} +33 -37
  182. package/dist/core/{Water-D74wbHmn.js → Water-CneenzRZ.js} +101 -108
  183. package/dist/core/{Watercolor-zo8-4Vqx.js → Watercolor-B343pgM-.js} +63 -64
  184. package/dist/core/{WaveDistortion-BLrvGOzF.js → WaveDistortion-DHz1FxLT.js} +80 -82
  185. package/dist/core/{WaveletNoise-a5OpO8-D.js → WaveletNoise-CsLE9gbM.js} +16 -14
  186. package/dist/core/{Weave-D1D3kuUg.js → Weave-CQEF71nr.js} +28 -31
  187. package/dist/core/{WebcamTexture-pBETyQYG.js → WebcamTexture-BcsYFM_g.js} +7 -7
  188. package/dist/core/{Wool-CMnWPdy9.js → Wool-BFSicimy.js} +2 -2
  189. package/dist/core/{WorleyNoise-BAEo0duh.js → WorleyNoise-BKq3es5v.js} +69 -70
  190. package/dist/core/{ZoomBlur-CnBNmcfx.js → ZoomBlur-Bu1SlmS2.js} +12 -12
  191. package/dist/core/agents-Bv3--qPL.js +997 -0
  192. package/dist/core/blur-tvWOoxKt.js +2247 -0
  193. package/dist/core/compute-BjeJ0sIA.js +31 -0
  194. package/dist/core/dataEncoding-CEmpiitu.js +24 -0
  195. package/dist/core/device-BODv_4aH.js +10 -0
  196. package/dist/core/edges-BXNBKxSN.js +29857 -0
  197. package/dist/core/{glass-sOqjtPJD.js → glass-IfoQ8Prf.js} +164 -172
  198. package/dist/core/index.js +310 -221
  199. package/dist/core/media-B9BNeMPu.js +757 -0
  200. package/dist/core/noise-wTSHXgFz.js +12033 -0
  201. package/dist/core/noiseColor-CPakiKNF.js +103 -0
  202. package/dist/core/{noiseColor-CRpf22bk.js → noiseColor-DscZM9CO.js} +2 -2
  203. package/dist/core/noiseStylize-BXpflWPW.js +359 -0
  204. package/dist/core/porters-DBK1Aipq.js +991 -0
  205. package/dist/core/registry.js +208 -199
  206. package/dist/core/sdf-R0EN3EvS.js +5174 -0
  207. package/dist/core/shaderRegistry-CcvE7wN0.js +425 -0
  208. package/dist/core/shaders/AngularBlur/index.js +5 -4
  209. package/dist/core/shaders/Arc/index.js +7 -4
  210. package/dist/core/shaders/Ascii/index.js +5 -4
  211. package/dist/core/shaders/Aurora/index.js +6 -4
  212. package/dist/core/shaders/BarShift/index.js +5 -4
  213. package/dist/core/shaders/BarnDoors/index.js +5 -4
  214. package/dist/core/shaders/Beam/index.js +5 -4
  215. package/dist/core/shaders/Bend/index.js +5 -4
  216. package/dist/core/shaders/Blob/index.js +5 -4
  217. package/dist/core/shaders/BlockDissolve/index.js +6 -4
  218. package/dist/core/shaders/BlockNoise/index.js +8 -5
  219. package/dist/core/shaders/BlueNoise/index.js +8 -5
  220. package/dist/core/shaders/Blur/index.js +6 -4
  221. package/dist/core/shaders/Boids/index.js +7 -4
  222. package/dist/core/shaders/BokehBlur/index.js +6 -4
  223. package/dist/core/shaders/BrickPattern/index.js +5 -4
  224. package/dist/core/shaders/BrightnessContrast/index.js +5 -4
  225. package/dist/core/shaders/BrushedMetal/index.js +11 -6
  226. package/dist/core/shaders/Bulge/index.js +5 -4
  227. package/dist/core/shaders/CRTScreen/index.js +5 -4
  228. package/dist/core/shaders/CarbonFiber/index.js +11 -6
  229. package/dist/core/shaders/Chalkboard/index.js +5 -4
  230. package/dist/core/shaders/ChannelBlur/index.js +6 -4
  231. package/dist/core/shaders/CheckerWipe/index.js +5 -4
  232. package/dist/core/shaders/Checkerboard/index.js +5 -4
  233. package/dist/core/shaders/Chevron/index.js +5 -4
  234. package/dist/core/shaders/ChromaFlow/index.js +6 -4
  235. package/dist/core/shaders/ChromaticAberration/index.js +5 -4
  236. package/dist/core/shaders/Circle/index.js +7 -4
  237. package/dist/core/shaders/ColorWheel/index.js +5 -4
  238. package/dist/core/shaders/CompressionArtifacts/index.js +5 -4
  239. package/dist/core/shaders/ConcentricSpin/index.js +5 -4
  240. package/dist/core/shaders/ConicGradient/index.js +5 -4
  241. package/dist/core/shaders/ContourLines/index.js +5 -4
  242. package/dist/core/shaders/CornerPin/index.js +5 -4
  243. package/dist/core/shaders/Crescent/index.js +7 -4
  244. package/dist/core/shaders/Cross/index.js +7 -4
  245. package/dist/core/shaders/Crystal/index.js +11 -6
  246. package/dist/core/shaders/CurlNoise/index.js +8 -5
  247. package/dist/core/shaders/CursorRipples/index.js +5 -4
  248. package/dist/core/shaders/CursorTrail/index.js +5 -4
  249. package/dist/core/shaders/DataMosh/index.js +5 -4
  250. package/dist/core/shaders/DiamondGradient/index.js +5 -4
  251. package/dist/core/shaders/DiamondWipe/index.js +5 -4
  252. package/dist/core/shaders/DiffuseBlur/index.js +5 -4
  253. package/dist/core/shaders/DisplacementMap/index.js +5 -4
  254. package/dist/core/shaders/Dither/index.js +5 -4
  255. package/dist/core/shaders/DotGrid/index.js +5 -4
  256. package/dist/core/shaders/DropShadow/index.js +5 -4
  257. package/dist/core/shaders/Duotone/index.js +5 -4
  258. package/dist/core/shaders/Ellipse/index.js +7 -4
  259. package/dist/core/shaders/Emboss/index.js +10 -6
  260. package/dist/core/shaders/Engraving/index.js +6 -4
  261. package/dist/core/shaders/ErosionNoise/index.js +8 -5
  262. package/dist/core/shaders/Exposure/index.js +5 -4
  263. package/dist/core/shaders/FallingLines/index.js +5 -4
  264. package/dist/core/shaders/FilmGrain/index.js +5 -4
  265. package/dist/core/shaders/FilmStock/index.js +6 -4
  266. package/dist/core/shaders/Flip/index.js +5 -4
  267. package/dist/core/shaders/FloatingParticles/index.js +7 -4
  268. package/dist/core/shaders/FlowField/index.js +6 -4
  269. package/dist/core/shaders/Flower/index.js +7 -4
  270. package/dist/core/shaders/FlowingGradient/index.js +6 -4
  271. package/dist/core/shaders/FlutedGlass/index.js +5 -4
  272. package/dist/core/shaders/Fog/index.js +5 -4
  273. package/dist/core/shaders/Form3D/index.js +5 -4
  274. package/dist/core/shaders/FractalNoise/index.js +7 -4
  275. package/dist/core/shaders/Frost/index.js +11 -6
  276. package/dist/core/shaders/GaborNoise/index.js +8 -5
  277. package/dist/core/shaders/Glass/index.js +11 -6
  278. package/dist/core/shaders/GlassTiles/index.js +5 -4
  279. package/dist/core/shaders/Glitch/index.js +5 -4
  280. package/dist/core/shaders/Glow/index.js +6 -4
  281. package/dist/core/shaders/Godrays/index.js +5 -4
  282. package/dist/core/shaders/Goo/index.js +10 -6
  283. package/dist/core/shaders/GradientMap/index.js +5 -4
  284. package/dist/core/shaders/Grayscale/index.js +5 -4
  285. package/dist/core/shaders/Grid/index.js +5 -4
  286. package/dist/core/shaders/GridDistortion/index.js +5 -4
  287. package/dist/core/shaders/Group/index.js +5 -4
  288. package/dist/core/shaders/HTMLInCanvas/index.js +5 -4
  289. package/dist/core/shaders/Halftone/index.js +5 -4
  290. package/dist/core/shaders/Heart/index.js +7 -4
  291. package/dist/core/shaders/Heatmap/index.js +11 -6
  292. package/dist/core/shaders/HexGrid/index.js +5 -4
  293. package/dist/core/shaders/Hologram/index.js +11 -6
  294. package/dist/core/shaders/Holographic/index.js +11 -6
  295. package/dist/core/shaders/HueShift/index.js +5 -4
  296. package/dist/core/shaders/ImageTexture/index.js +7 -5
  297. package/dist/core/shaders/InkFlow/index.js +5 -4
  298. package/dist/core/shaders/Invert/index.js +5 -4
  299. package/dist/core/shaders/IrisWipe/index.js +5 -4
  300. package/dist/core/shaders/IsometricCubes/index.js +5 -4
  301. package/dist/core/shaders/Kaleidoscope/index.js +5 -4
  302. package/dist/core/shaders/KeyFrames/index.js +5 -4
  303. package/dist/core/shaders/LensFlare/index.js +5 -4
  304. package/dist/core/shaders/LightEdge/index.js +11 -6
  305. package/dist/core/shaders/LightLeak/index.js +6 -4
  306. package/dist/core/shaders/LinearBlur/index.js +5 -4
  307. package/dist/core/shaders/LinearGradient/index.js +5 -4
  308. package/dist/core/shaders/LinearWipe/index.js +5 -4
  309. package/dist/core/shaders/LiquidMetal/index.js +11 -6
  310. package/dist/core/shaders/Liquify/index.js +5 -4
  311. package/dist/core/shaders/MagneticFilings/index.js +7 -4
  312. package/dist/core/shaders/Marble/index.js +6 -4
  313. package/dist/core/shaders/Mirror/index.js +5 -4
  314. package/dist/core/shaders/MultiPointGradient/index.js +5 -4
  315. package/dist/core/shaders/Neon/index.js +9 -5
  316. package/dist/core/shaders/NoiseDissolve/index.js +6 -4
  317. package/dist/core/shaders/ObjectTracker/index.js +6 -5
  318. package/dist/core/shaders/PagePeel/index.js +5 -4
  319. package/dist/core/shaders/Paper/index.js +6 -4
  320. package/dist/core/shaders/Parallelogram/index.js +7 -4
  321. package/dist/core/shaders/ParticleField/index.js +8 -4
  322. package/dist/core/shaders/ParticleFlow/index.js +7 -4
  323. package/dist/core/shaders/Particles/index.js +11 -5
  324. package/dist/core/shaders/PerlinNoise/index.js +8 -5
  325. package/dist/core/shaders/Perspective/index.js +5 -4
  326. package/dist/core/shaders/PixelSort/index.js +5 -4
  327. package/dist/core/shaders/PixelThrow/index.js +6 -4
  328. package/dist/core/shaders/Pixelate/index.js +5 -4
  329. package/dist/core/shaders/Plasma/index.js +6 -4
  330. package/dist/core/shaders/Plastic/index.js +11 -6
  331. package/dist/core/shaders/PolarCoordinates/index.js +5 -4
  332. package/dist/core/shaders/Polygon/index.js +7 -4
  333. package/dist/core/shaders/Posterize/index.js +5 -4
  334. package/dist/core/shaders/Prism/index.js +5 -4
  335. package/dist/core/shaders/ProgressiveBlur/index.js +6 -4
  336. package/dist/core/shaders/RadialGradient/index.js +5 -4
  337. package/dist/core/shaders/RadialWipe/index.js +5 -4
  338. package/dist/core/shaders/RandomBars/index.js +6 -4
  339. package/dist/core/shaders/ReactionDiffusion/index.js +5 -4
  340. package/dist/core/shaders/RectangularCoordinates/index.js +5 -4
  341. package/dist/core/shaders/ReflectivePlane/index.js +6 -4
  342. package/dist/core/shaders/Repeater/index.js +5 -4
  343. package/dist/core/shaders/Ring/index.js +7 -4
  344. package/dist/core/shaders/RippleWipe/index.js +5 -4
  345. package/dist/core/shaders/Ripples/index.js +5 -4
  346. package/dist/core/shaders/RoundedRect/index.js +7 -4
  347. package/dist/core/shaders/Saturation/index.js +5 -4
  348. package/dist/core/shaders/Scratches/index.js +8 -5
  349. package/dist/core/shaders/Sharpness/index.js +5 -4
  350. package/dist/core/shaders/Shatter/index.js +6 -4
  351. package/dist/core/shaders/SimplexNoise/index.js +7 -4
  352. package/dist/core/shaders/SineWave/index.js +5 -4
  353. package/dist/core/shaders/SliceWipe/index.js +5 -4
  354. package/dist/core/shaders/Smoke/index.js +5 -4
  355. package/dist/core/shaders/SmokeFill/index.js +10 -6
  356. package/dist/core/shaders/SmokeFlow/index.js +5 -4
  357. package/dist/core/shaders/Solarize/index.js +5 -4
  358. package/dist/core/shaders/SolidColor/index.js +2 -2
  359. package/dist/core/shaders/Spherize/index.js +5 -4
  360. package/dist/core/shaders/Spiral/index.js +5 -4
  361. package/dist/core/shaders/Star/index.js +7 -4
  362. package/dist/core/shaders/Stone/index.js +4 -3
  363. package/dist/core/shaders/Strands/index.js +5 -4
  364. package/dist/core/shaders/Stretch/index.js +5 -4
  365. package/dist/core/shaders/Stripes/index.js +5 -4
  366. package/dist/core/shaders/StudioBackground/index.js +5 -4
  367. package/dist/core/shaders/SunBurst/index.js +5 -4
  368. package/dist/core/shaders/Surface3D/index.js +6 -4
  369. package/dist/core/shaders/Swirl/index.js +5 -4
  370. package/dist/core/shaders/Teardrop/index.js +7 -4
  371. package/dist/core/shaders/Text/index.js +6 -5
  372. package/dist/core/shaders/ThinFilm/index.js +9 -5
  373. package/dist/core/shaders/TiltShift/index.js +6 -4
  374. package/dist/core/shaders/TimeTrail/index.js +5 -4
  375. package/dist/core/shaders/Tint/index.js +5 -4
  376. package/dist/core/shaders/Trapezoid/index.js +7 -4
  377. package/dist/core/shaders/TriangularGrid/index.js +5 -4
  378. package/dist/core/shaders/Tritone/index.js +5 -4
  379. package/dist/core/shaders/Truchet/index.js +5 -4
  380. package/dist/core/shaders/Twirl/index.js +5 -4
  381. package/dist/core/shaders/VHS/index.js +5 -4
  382. package/dist/core/shaders/VenetianBlinds/index.js +5 -4
  383. package/dist/core/shaders/Vesica/index.js +7 -4
  384. package/dist/core/shaders/Vibrance/index.js +5 -4
  385. package/dist/core/shaders/VideoTexture/index.js +6 -5
  386. package/dist/core/shaders/Vignette/index.js +5 -4
  387. package/dist/core/shaders/Voronoi/index.js +5 -4
  388. package/dist/core/shaders/Water/index.js +11 -6
  389. package/dist/core/shaders/Watercolor/index.js +5 -4
  390. package/dist/core/shaders/WaveDistortion/index.js +5 -4
  391. package/dist/core/shaders/WaveletNoise/index.js +8 -5
  392. package/dist/core/shaders/Weave/index.js +5 -4
  393. package/dist/core/shaders/WebcamTexture/index.js +7 -5
  394. package/dist/core/shaders/Wool/index.js +4 -3
  395. package/dist/core/shaders/WorleyNoise/index.js +5 -4
  396. package/dist/core/shaders/ZoomBlur/index.js +5 -4
  397. package/dist/core/shapeEffectBounds-CtKwBX8c.js +19213 -0
  398. package/dist/core/utilities/transformations/index.js +1 -1
  399. package/dist/js/bundle.js +188 -184
  400. package/dist/js/createShader.js +1 -1
  401. package/dist/react/Shader.js +1 -1
  402. package/dist/react/bundle.js +197 -193
  403. package/dist/solid/engine/Shader.js +1 -1
  404. package/dist/svelte/index.js +1 -1
  405. package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
  406. package/package.json +1 -1
  407. package/dist/core/coords-BkIjixe_.js +0 -55724
  408. package/dist/core/noiseStylize-J6sFKoTh.js +0 -65
  409. package/dist/core/porters-BmU6G9TR.js +0 -321
  410. package/dist/core/shaderRegistry-D75z2sND.js +0 -425
  411. package/dist/core/shapeEffectBounds-PQqKLQXO.js +0 -406
  412. /package/dist/core/{fonts-DwhbVe2B.js → fonts-v_F1SFl9.js} +0 -0
  413. /package/dist/core/{naturalSize-Caz3-kRv.js → naturalSize-B679wTgN.js} +0 -0
  414. /package/dist/core/{transformations-t0d2-uSX.js → transformations-CsPUHppB.js} +0 -0
@@ -1,12 +1,12 @@
1
- import { Bt as ZERO, Ht as call, J as std, Jt as vec4, Kt as floatE, Tn as d, cn as unpremultiplyAlpha, n as tgpu } from "./coords-BkIjixe_.js";
2
- import { a as transformColor } from "./transformations-t0d2-uSX.js";
1
+ import { $t as vec2f, Ct as floor, Et as max, It as sin, Lt as smoothstep, N as unpremultiplyAlpha, Ot as mix, Rt as sqrt, Vt as data_exports, _ as floatE, _t as clamp, an as f32, bt as dot, d as ZERO, et as src_default, in as vec4f, mt as abs, nn as vec3f, nt as std_exports, p as call, wt as fract, y as vec4, zt as step } from "./edges-BXNBKxSN.js";
2
+ import { a as transformColor } from "./transformations-CsPUHppB.js";
3
3
  var SIN_045 = Math.sin(.785);
4
4
  var COS_045 = Math.cos(.785);
5
5
  var SIN_N45 = Math.sin(-.785);
6
6
  var COS_N45 = Math.cos(-.785);
7
- var chalkHash21 = tgpu.fn([d.vec2f], d.f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p) => {
7
+ var chalkHash21 = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p) => {
8
8
  "use gpu";
9
- return std.fract(__tsover_mul(std.sin(std.dot(p, d.vec2f(12.9898, 78.233))), 43758.5453));
9
+ return fract(__tsover_mul(sin(dot(p, vec2f(12.9898, 78.233))), 43758.5453));
10
10
  }), {
11
11
  v: 1,
12
12
  name: void 0,
@@ -56,20 +56,20 @@ var chalkHash21 = tgpu.fn([d.vec2f], d.f32)(/* @__PURE__ */ (($) => (globalThis.
56
56
  "externalNames": ["std", "d"]
57
57
  },
58
58
  externals: () => ({
59
- std,
60
- d
59
+ std: std_exports,
60
+ d: data_exports
61
61
  })
62
62
  }) && $.f)({}));
63
- var chalkVnoise = tgpu.fn([d.vec2f], d.f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p) => {
63
+ var chalkVnoise = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p) => {
64
64
  "use gpu";
65
- const i = std.floor(p);
66
- const f = std.fract(p);
65
+ const i = floor(p);
66
+ const f = fract(p);
67
67
  const u = f.mul(f).mul(f.mul(-2).add(3));
68
68
  const a = chalkHash21(i);
69
- const b = chalkHash21(d.vec2f(__tsover_add(i.x, 1), i.y));
70
- const c = chalkHash21(d.vec2f(i.x, __tsover_add(i.y, 1)));
71
- const dd = chalkHash21(d.vec2f(__tsover_add(i.x, 1), __tsover_add(i.y, 1)));
72
- return std.mix(std.mix(a, b, u.x), std.mix(c, dd, u.x), u.y);
69
+ const b = chalkHash21(vec2f(__tsover_add(i.x, 1), i.y));
70
+ const c = chalkHash21(vec2f(i.x, __tsover_add(i.y, 1)));
71
+ const dd = chalkHash21(vec2f(__tsover_add(i.x, 1), __tsover_add(i.y, 1)));
72
+ return mix(mix(a, b, u.x), mix(c, dd, u.x), u.y);
73
73
  }), {
74
74
  v: 1,
75
75
  name: void 0,
@@ -307,14 +307,14 @@ var chalkVnoise = tgpu.fn([d.vec2f], d.f32)(/* @__PURE__ */ (($) => (globalThis.
307
307
  ]
308
308
  },
309
309
  externals: () => ({
310
- std,
310
+ std: std_exports,
311
311
  chalkHash21,
312
- d
312
+ d: data_exports
313
313
  })
314
314
  }) && $.f)({}));
315
- var chalkLuma = tgpu.fn([d.vec4f], d.f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((color) => {
315
+ var chalkLuma = src_default.fn([vec4f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((color) => {
316
316
  "use gpu";
317
- return std.dot(d.vec3f(color.x, color.y, color.z), d.vec3f(.299, .587, .114));
317
+ return dot(vec3f(color.x, color.y, color.z), vec3f(.299, .587, .114));
318
318
  }), {
319
319
  v: 1,
320
320
  name: void 0,
@@ -371,21 +371,21 @@ var chalkLuma = tgpu.fn([d.vec4f], d.f32)(/* @__PURE__ */ (($) => (globalThis.__
371
371
  "externalNames": ["std", "d"]
372
372
  },
373
373
  externals: () => ({
374
- std,
375
- d
374
+ std: std_exports,
375
+ d: data_exports
376
376
  })
377
377
  }) && $.f)({}));
378
- const chalkOffsetUV = tgpu.fn([
379
- d.vec2f,
380
- d.vec2f,
381
- d.f32,
382
- d.f32,
383
- d.f32
384
- ], d.vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewport, edgeThickness, ox, oy) => {
378
+ const chalkOffsetUV = src_default.fn([
379
+ vec2f,
380
+ vec2f,
381
+ f32,
382
+ f32,
383
+ f32
384
+ ], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewport, edgeThickness, ox, oy) => {
385
385
  "use gpu";
386
386
  const texelX = __tsover_div(1, viewport.x);
387
387
  const texelY = __tsover_div(1, viewport.y);
388
- return d.vec2f(__tsover_add(uv.x, __tsover_mul(__tsover_mul(texelX, edgeThickness), ox)), __tsover_add(uv.y, __tsover_mul(__tsover_mul(texelY, edgeThickness), oy)));
388
+ return vec2f(__tsover_add(uv.x, __tsover_mul(__tsover_mul(texelX, edgeThickness), ox)), __tsover_add(uv.y, __tsover_mul(__tsover_mul(texelY, edgeThickness), oy)));
389
389
  }), {
390
390
  v: 1,
391
391
  name: void 0,
@@ -491,21 +491,21 @@ const chalkOffsetUV = tgpu.fn([
491
491
  ]],
492
492
  "externalNames": ["d"]
493
493
  },
494
- externals: () => ({ d })
494
+ externals: () => ({ d: data_exports })
495
495
  }) && $.f)({}));
496
- var chalkHatchLine = tgpu.fn([
497
- d.vec2f,
498
- d.f32,
499
- d.f32,
500
- d.f32,
501
- d.f32,
502
- d.f32
503
- ], d.f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((P, hatchScale, shade, sa, ca, thr) => {
496
+ var chalkHatchLine = src_default.fn([
497
+ vec2f,
498
+ f32,
499
+ f32,
500
+ f32,
501
+ f32,
502
+ f32
503
+ ], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((P, hatchScale, shade, sa, ca, thr) => {
504
504
  "use gpu";
505
505
  const ry = __tsover_add(__tsover_mul(P.x, sa), __tsover_mul(P.y, ca));
506
- const hl = __tsover_mul(std.abs(__tsover_sub(std.fract(__tsover_div(ry, hatchScale)), .5)), 2);
507
- const line = __tsover_sub(1, std.smoothstep(0, .35, hl));
508
- return __tsover_mul(line, std.step(thr, shade));
506
+ const hl = __tsover_mul(abs(__tsover_sub(fract(__tsover_div(ry, hatchScale)), .5)), 2);
507
+ const line = __tsover_sub(1, smoothstep(0, .35, hl));
508
+ return __tsover_mul(line, step(thr, shade));
509
509
  }), {
510
510
  v: 1,
511
511
  name: void 0,
@@ -640,18 +640,18 @@ var chalkHatchLine = tgpu.fn([
640
640
  ]],
641
641
  "externalNames": ["std"]
642
642
  },
643
- externals: () => ({ std })
643
+ externals: () => ({ std: std_exports })
644
644
  }) && $.f)({}));
645
- const chalkboardCompose = tgpu.fn([
646
- d.vec4f,
647
- d.vec4f,
648
- d.vec2f,
649
- d.vec2f,
650
- d.vec4f,
651
- d.vec4f,
652
- d.vec4f,
653
- d.vec4f
654
- ], d.vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((sobelA, sobelB, uv, viewport, misc, params, boardColor, chalkColor) => {
645
+ const chalkboardCompose = src_default.fn([
646
+ vec4f,
647
+ vec4f,
648
+ vec2f,
649
+ vec2f,
650
+ vec4f,
651
+ vec4f,
652
+ vec4f,
653
+ vec4f
654
+ ], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((sobelA, sobelB, uv, viewport, misc, params, boardColor, chalkColor) => {
655
655
  "use gpu";
656
656
  const tl = sobelA.x;
657
657
  const t = sobelA.y;
@@ -669,18 +669,16 @@ const chalkboardCompose = tgpu.fn([
669
669
  const grain = params.w;
670
670
  const gx = __tsover_add(__tsover_add(__tsover_add(__tsover_sub(__tsover_sub(-tl, __tsover_mul(l, 2)), bl), tr), __tsover_mul(r, 2)), br);
671
671
  const gy = __tsover_add(__tsover_add(__tsover_add(__tsover_sub(__tsover_sub(-tl, __tsover_mul(t, 2)), tr), bl), __tsover_mul(bo, 2)), br);
672
- const edgeMag = std.sqrt(__tsover_add(__tsover_mul(gx, gx), __tsover_mul(gy, gy)));
673
- const edgeHigh = std.mix(d.f32(1), .08, edgeSensitivity);
674
- const edge = std.smoothstep(__tsover_mul(edgeHigh, .4), edgeHigh, edgeMag);
672
+ const edgeMag = sqrt(__tsover_add(__tsover_mul(gx, gx), __tsover_mul(gy, gy)));
673
+ const edgeHigh = mix(f32(1), .08, edgeSensitivity);
674
+ const edge = smoothstep(__tsover_mul(edgeHigh, .4), edgeHigh, edgeMag);
675
675
  const shade = __tsover_sub(1, centerLum);
676
676
  const P = uv.mul(viewport);
677
- const hatch = __tsover_mul(std.max(std.max(chalkHatchLine(P, hatchScale, shade, SIN_045, COS_045, .22), chalkHatchLine(P, hatchScale, shade, SIN_N45, COS_N45, .5)), chalkHatchLine(P, hatchScale, shade, 0, 1, .78)), shading);
678
- const dust = std.mix(__tsover_sub(1, grain), d.f32(1), chalkVnoise(P.mul(.5)));
679
- const chalkMask = std.clamp(__tsover_mul(std.max(edge, hatch), dust), 0, 1);
677
+ const hatch = __tsover_mul(max(max(chalkHatchLine(P, hatchScale, shade, SIN_045, COS_045, .22), chalkHatchLine(P, hatchScale, shade, SIN_N45, COS_N45, .5)), chalkHatchLine(P, hatchScale, shade, 0, 1, .78)), shading);
678
+ const dust = mix(__tsover_sub(1, grain), f32(1), chalkVnoise(P.mul(.5)));
679
+ const chalkMask = clamp(__tsover_mul(max(edge, hatch), dust), 0, 1);
680
680
  const boardGrain = __tsover_mul(__tsover_sub(chalkVnoise(P.mul(.9)), .5), .04);
681
- const boardRGB = boardColor.xyz.add(boardGrain);
682
- const col = std.mix(boardRGB, chalkColor.xyz, d.vec3f(chalkMask));
683
- return d.vec4f(col, centerAlpha);
681
+ return vec4f(mix(boardColor.xyz.add(boardGrain), chalkColor.xyz, vec3f(chalkMask)), centerAlpha);
684
682
  }), {
685
683
  v: 1,
686
684
  name: void 0,
@@ -1258,8 +1256,8 @@ const chalkboardCompose = tgpu.fn([
1258
1256
  ]
1259
1257
  },
1260
1258
  externals: () => ({
1261
- std,
1262
- d,
1259
+ std: std_exports,
1260
+ d: data_exports,
1263
1261
  chalkHatchLine,
1264
1262
  SIN_045,
1265
1263
  COS_045,
@@ -1,25 +1,23 @@
1
- import { Bt as ZERO, Ht as call, J as std, K as createGaussianBlurCompute, Tn as d, cn as unpremultiplyAlpha, n as tgpu } from "./coords-BkIjixe_.js";
1
+ import { Et as max, N as unpremultiplyAlpha, Ot as mix, Vt as data_exports, an as f32, d as ZERO, et as src_default, in as vec4f, nt as std_exports, p as call } from "./edges-BXNBKxSN.js";
2
+ import { i as createGaussianBlurCompute } from "./blur-tvWOoxKt.js";
2
3
  const INTENSITY_TO_RADIUS = .1;
3
4
  const channelIntensityToRadius = (intensity) => intensity * INTENSITY_TO_RADIUS;
4
- const channelBlurCompose = tgpu.fn([
5
- d.vec4f,
6
- d.vec4f,
7
- d.f32,
8
- d.f32,
9
- d.f32
10
- ], d.vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((sharp, blurred, redIntensity, greenIntensity, blueIntensity) => {
5
+ const channelBlurCompose = src_default.fn([
6
+ vec4f,
7
+ vec4f,
8
+ f32,
9
+ f32,
10
+ f32
11
+ ], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((sharp, blurred, redIntensity, greenIntensity, blueIntensity) => {
11
12
  "use gpu";
12
13
  const redRadius = __tsover_mul(redIntensity, .1);
13
14
  const greenRadius = __tsover_mul(greenIntensity, .1);
14
15
  const blueRadius = __tsover_mul(blueIntensity, .1);
15
- const maxRadius = std.max(std.max(std.max(redRadius, greenRadius), blueRadius), .01);
16
+ const maxRadius = max(max(max(redRadius, greenRadius), blueRadius), .01);
16
17
  const rMix = __tsover_div(redRadius, maxRadius);
17
18
  const gMix = __tsover_div(greenRadius, maxRadius);
18
19
  const bMix = __tsover_div(blueRadius, maxRadius);
19
- const finalR = std.mix(sharp.x, blurred.x, rMix);
20
- const finalG = std.mix(sharp.y, blurred.y, gMix);
21
- const finalB = std.mix(sharp.z, blurred.z, bMix);
22
- return d.vec4f(finalR, finalG, finalB, sharp.w);
20
+ return vec4f(mix(sharp.x, blurred.x, rMix), mix(sharp.y, blurred.y, gMix), mix(sharp.z, blurred.z, bMix), sharp.w);
23
21
  }), {
24
22
  v: 1,
25
23
  name: void 0,
@@ -233,8 +231,8 @@ const channelBlurCompose = tgpu.fn([
233
231
  "externalNames": ["std", "d"]
234
232
  },
235
233
  externals: () => ({
236
- std,
237
- d
234
+ std: std_exports,
235
+ d: data_exports
238
236
  })
239
237
  }) && $.f)({})).$name("channelBlurCompose");
240
238
  const componentDefinition = {
@@ -1,27 +1,27 @@
1
- import { Bt as ZERO, Ht as call, J as std, Tn as d, n as tgpu } from "./coords-BkIjixe_.js";
2
- import { i as transformBoolean } from "./transformations-t0d2-uSX.js";
3
- const checkerWipeMask = tgpu.fn([
4
- d.vec4f,
5
- d.vec2f,
6
- d.f32,
7
- d.f32,
8
- d.f32,
9
- d.f32,
10
- d.f32
11
- ], d.vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((color, uv, aspect, blockSize, softness, progress, invert) => {
1
+ import { $t as vec2f, Ct as floor, Et as max, Lt as smoothstep, Vt as data_exports, _t as clamp, an as f32, d as ZERO, et as src_default, in as vec4f, nt as std_exports, p as call, pt as select, wt as fract } from "./edges-BXNBKxSN.js";
2
+ import { i as transformBoolean } from "./transformations-CsPUHppB.js";
3
+ const checkerWipeMask = src_default.fn([
4
+ vec4f,
5
+ vec2f,
6
+ f32,
7
+ f32,
8
+ f32,
9
+ f32,
10
+ f32
11
+ ], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((color, uv, aspect, blockSize, softness, progress, invert) => {
12
12
  "use gpu";
13
- const gridX = __tsover_div(1, std.max(blockSize, .001));
14
- const gridY = std.max(__tsover_div(gridX, aspect), 1);
15
- const cx = std.floor(__tsover_mul(uv.x, gridX));
16
- const cy = std.floor(__tsover_mul(uv.y, gridY));
17
- const parity = __tsover_mul(std.fract(__tsover_mul(__tsover_add(cx, cy), .5)), 2);
13
+ const gridX = __tsover_div(1, max(blockSize, .001));
14
+ const gridY = max(__tsover_div(gridX, aspect), 1);
15
+ const cx = floor(__tsover_mul(uv.x, gridX));
16
+ const cy = floor(__tsover_mul(uv.y, gridY));
17
+ const parity = __tsover_mul(fract(__tsover_mul(__tsover_add(cx, cy), .5)), 2);
18
18
  const diag = __tsover_mul(__tsover_add(__tsover_div(cx, gridX), __tsover_div(cy, gridY)), .5);
19
- let r = std.clamp(__tsover_add(__tsover_mul(.5, parity), __tsover_mul(.5, diag)), 0, 1);
20
- r = std.select(r, __tsover_sub(1, r), invert > 0);
21
- const f = std.max(softness, 1e-4);
19
+ let r = clamp(__tsover_add(__tsover_mul(.5, parity), __tsover_mul(.5, diag)), 0, 1);
20
+ r = select(r, __tsover_sub(1, r), invert > 0);
21
+ const f = max(softness, 1e-4);
22
22
  const front = __tsover_sub(__tsover_mul(progress, __tsover_add(1, __tsover_mul(2, f))), f);
23
- const reveal = std.smoothstep(__tsover_sub(front, f), __tsover_add(front, f), r);
24
- return d.vec4f(color.x, color.y, color.z, __tsover_mul(color.w, reveal));
23
+ const reveal = smoothstep(__tsover_sub(front, f), __tsover_add(front, f), r);
24
+ return vec4f(color.x, color.y, color.z, __tsover_mul(color.w, reveal));
25
25
  }), {
26
26
  v: 1,
27
27
  name: void 0,
@@ -354,8 +354,8 @@ const checkerWipeMask = tgpu.fn([
354
354
  "externalNames": ["std", "d"]
355
355
  },
356
356
  externals: () => ({
357
- std,
358
- d
357
+ std: std_exports,
358
+ d: data_exports
359
359
  })
360
360
  }) && $.f)({}));
361
361
  const componentDefinition = {
@@ -1,12 +1,12 @@
1
- import { Ht as call, J as std, Tn as d, gn as mixColorsVariants, hn as mixColorsLinear, n as tgpu } from "./coords-BkIjixe_.js";
2
- import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-t0d2-uSX.js";
3
- const checkerCoord = tgpu.fn([
4
- d.vec2f,
5
- d.f32,
6
- d.f32
7
- ], d.vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, aspect, cells) => {
1
+ import { $t as vec2f, Et as max, H as mixColorsLinear, U as mixColorsVariants, Vt as data_exports, _t as clamp, an as f32, et as src_default, mt as abs, nt as std_exports, ot as dpdx, p as call, st as dpdy, wt as fract } from "./edges-BXNBKxSN.js";
2
+ import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
3
+ const checkerCoord = src_default.fn([
4
+ vec2f,
5
+ f32,
6
+ f32
7
+ ], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, aspect, cells) => {
8
8
  "use gpu";
9
- return d.vec2f(__tsover_mul(__tsover_mul(uv.x, aspect), cells), __tsover_mul(__tsover_sub(1, uv.y), cells));
9
+ return vec2f(__tsover_mul(__tsover_mul(uv.x, aspect), cells), __tsover_mul(__tsover_sub(1, uv.y), cells));
10
10
  }), {
11
11
  v: 1,
12
12
  name: void 0,
@@ -64,18 +64,18 @@ const checkerCoord = tgpu.fn([
64
64
  ]]]],
65
65
  "externalNames": ["d"]
66
66
  },
67
- externals: () => ({ d })
67
+ externals: () => ({ d: data_exports })
68
68
  }) && $.f)({}));
69
- const checkerFilterValue = tgpu.fn([d.vec2f, d.vec2f], d.f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p, w) => {
69
+ const checkerFilterValue = src_default.fn([vec2f, vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p, w) => {
70
70
  "use gpu";
71
- const aHalf = d.vec2f(__tsover_mul(w.x, .5), __tsover_mul(w.y, .5));
72
- const minusSideX = std.abs(__tsover_sub(std.fract(__tsover_mul(__tsover_sub(p.x, aHalf.x), .5)), .5));
73
- const minusSideY = std.abs(__tsover_sub(std.fract(__tsover_mul(__tsover_sub(p.y, aHalf.y), .5)), .5));
74
- const plusSideX = std.abs(__tsover_sub(std.fract(__tsover_mul(__tsover_add(p.x, aHalf.x), .5)), .5));
75
- const plusSideY = std.abs(__tsover_sub(std.fract(__tsover_mul(__tsover_add(p.y, aHalf.y), .5)), .5));
71
+ const aHalf = vec2f(__tsover_mul(w.x, .5), __tsover_mul(w.y, .5));
72
+ const minusSideX = abs(__tsover_sub(fract(__tsover_mul(__tsover_sub(p.x, aHalf.x), .5)), .5));
73
+ const minusSideY = abs(__tsover_sub(fract(__tsover_mul(__tsover_sub(p.y, aHalf.y), .5)), .5));
74
+ const plusSideX = abs(__tsover_sub(fract(__tsover_mul(__tsover_add(p.x, aHalf.x), .5)), .5));
75
+ const plusSideY = abs(__tsover_sub(fract(__tsover_mul(__tsover_add(p.y, aHalf.y), .5)), .5));
76
76
  const iX = __tsover_div(__tsover_mul(__tsover_sub(minusSideX, plusSideX), 2), w.x);
77
77
  const iY = __tsover_div(__tsover_mul(__tsover_sub(minusSideY, plusSideY), 2), w.y);
78
- return std.clamp(__tsover_sub(.5, __tsover_mul(__tsover_mul(iX, iY), .5)), 0, 1);
78
+ return clamp(__tsover_sub(.5, __tsover_mul(__tsover_mul(iX, iY), .5)), 0, 1);
79
79
  }), {
80
80
  v: 1,
81
81
  name: void 0,
@@ -375,22 +375,22 @@ const checkerFilterValue = tgpu.fn([d.vec2f, d.vec2f], d.f32)(/* @__PURE__ */ ((
375
375
  "externalNames": ["d", "std"]
376
376
  },
377
377
  externals: () => ({
378
- d,
379
- std
378
+ d: data_exports,
379
+ std: std_exports
380
380
  })
381
381
  }) && $.f)({}));
382
- const checkerBlend = tgpu.fn([
383
- d.vec2f,
384
- d.vec2f,
385
- d.f32,
386
- d.f32
387
- ], d.f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewport, cells, softness) => {
382
+ const checkerBlend = src_default.fn([
383
+ vec2f,
384
+ vec2f,
385
+ f32,
386
+ f32
387
+ ], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewport, cells, softness) => {
388
388
  "use gpu";
389
- const p = checkerCoord(uv, __tsover_div(viewport.x, std.max(viewport.y, 1e-6)), cells);
390
- const dpx = std.dpdx(p);
391
- const dpy = std.dpdy(p);
392
- const baseW = d.vec2f(std.max(std.abs(dpx.x), std.abs(dpy.x)), std.max(std.abs(dpx.y), std.abs(dpy.y)));
393
- return checkerFilterValue(p, d.vec2f(std.max(__tsover_add(baseW.x, softness), 1e-5), std.max(__tsover_add(baseW.y, softness), 1e-5)));
389
+ const p = checkerCoord(uv, __tsover_div(viewport.x, max(viewport.y, 1e-6)), cells);
390
+ const dpx = dpdx(p);
391
+ const dpy = dpdy(p);
392
+ const baseW = vec2f(max(abs(dpx.x), abs(dpy.x)), max(abs(dpx.y), abs(dpy.y)));
393
+ return checkerFilterValue(p, vec2f(max(__tsover_add(baseW.x, softness), 1e-5), max(__tsover_add(baseW.y, softness), 1e-5)));
394
394
  }), {
395
395
  v: 1,
396
396
  name: void 0,
@@ -617,9 +617,9 @@ const checkerBlend = tgpu.fn([
617
617
  ]
618
618
  },
619
619
  externals: () => ({
620
- std,
620
+ std: std_exports,
621
621
  checkerCoord,
622
- d,
622
+ d: data_exports,
623
623
  checkerFilterValue
624
624
  })
625
625
  }) && $.f)({}));
@@ -1,33 +1,33 @@
1
- import { Ht as call, J as std, Jt as vec4, Tn as d, gn as mixColorsVariants, hn as mixColorsLinear, n as tgpu, qt as mixExpr } from "./coords-BkIjixe_.js";
2
- import { a as transformColor, o as transformColorSpace, r as transformAngle, t as colorSpaceOptions } from "./transformations-t0d2-uSX.js";
3
- import { t as animatedTime } from "./porters-BmU6G9TR.js";
1
+ import { $t as vec2f, H as mixColorsLinear, It as sin, Lt as smoothstep, U as mixColorsVariants, an as f32, ct as fwidth, et as src_default, mt as abs, nt as std_exports, p as call, v as mixExpr, vt as cos, wt as fract, y as vec4 } from "./edges-BXNBKxSN.js";
2
+ import { t as animatedTime } from "./porters-DBK1Aipq.js";
3
+ import { a as transformColor, o as transformColorSpace, r as transformAngle, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
4
4
  var DEG_TO_RAD = .0174533;
5
- const chevronMask = tgpu.fn([
6
- d.vec2f,
7
- d.vec2f,
8
- d.f32,
9
- d.f32,
10
- d.f32,
11
- d.f32,
12
- d.f32,
13
- d.f32
14
- ], d.f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewport, count, angle, balance, softness, offset, animTime) => {
5
+ const chevronMask = src_default.fn([
6
+ vec2f,
7
+ vec2f,
8
+ f32,
9
+ f32,
10
+ f32,
11
+ f32,
12
+ f32,
13
+ f32
14
+ ], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewport, count, angle, balance, softness, offset, animTime) => {
15
15
  "use gpu";
16
16
  const aspect = __tsover_div(viewport.x, viewport.y);
17
17
  const au = __tsover_mul(uv.x, aspect);
18
18
  const av = uv.y;
19
19
  const angleRad = __tsover_mul(angle, DEG_TO_RAD);
20
- const cosA = std.cos(angleRad);
21
- const sinA = std.sin(angleRad);
20
+ const cosA = cos(angleRad);
21
+ const sinA = sin(angleRad);
22
22
  const cu = __tsover_sub(au, __tsover_mul(aspect, .5));
23
23
  const cv = __tsover_sub(av, .5);
24
24
  const rotU = __tsover_add(__tsover_mul(cu, cosA), __tsover_mul(cv, sinA));
25
25
  const rotV = __tsover_add(-__tsover_mul(cu, sinA), __tsover_mul(cv, cosA));
26
- const zigzag = __tsover_mul(std.abs(__tsover_sub(std.fract(__tsover_mul(rotV, count)), .5)), 2);
26
+ const zigzag = __tsover_mul(abs(__tsover_sub(fract(__tsover_mul(rotV, count)), .5)), 2);
27
27
  const stripeCoord = __tsover_add(__tsover_add(__tsover_add(__tsover_mul(rotU, count), __tsover_mul(zigzag, .5)), animTime), offset);
28
- const pattern = std.fract(stripeCoord);
29
- const fw = std.fwidth(stripeCoord);
30
- return std.smoothstep(__tsover_sub(__tsover_sub(balance, softness), fw), __tsover_add(__tsover_add(balance, softness), fw), pattern);
28
+ const pattern = fract(stripeCoord);
29
+ const fw = fwidth(stripeCoord);
30
+ return smoothstep(__tsover_sub(__tsover_sub(balance, softness), fw), __tsover_add(__tsover_add(balance, softness), fw), pattern);
31
31
  }), {
32
32
  v: 1,
33
33
  name: void 0,
@@ -343,7 +343,7 @@ const chevronMask = tgpu.fn([
343
343
  },
344
344
  externals: () => ({
345
345
  DEG_TO_RAD,
346
- std
346
+ std: std_exports
347
347
  })
348
348
  }) && $.f)({}));
349
349
  const componentDefinition = {
@@ -1,14 +1,15 @@
1
- import { H as toHalfFloat, Ht as call, J as std, Kt as floatE, Tn as d, n as tgpu } from "./coords-BkIjixe_.js";
2
- import { a as transformColor } from "./transformations-t0d2-uSX.js";
1
+ import { $t as vec2f, Et as max, Lt as smoothstep, Ot as mix, Tt as length, Vt as data_exports, _ as floatE, an as f32, et as src_default, in as vec4f, nt as std_exports, p as call } from "./edges-BXNBKxSN.js";
2
+ import { t as toHalfFloat } from "./dataEncoding-CEmpiitu.js";
3
+ import { a as transformColor } from "./transformations-CsPUHppB.js";
3
4
  var GRID_SIZE = 128;
4
5
  var num = (v, f) => typeof v === "number" ? v : f;
5
- const chromaFlowTapUV = tgpu.fn([
6
- d.vec2f,
7
- d.f32,
8
- d.f32
9
- ], d.vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, dx, dy) => {
6
+ const chromaFlowTapUV = src_default.fn([
7
+ vec2f,
8
+ f32,
9
+ f32
10
+ ], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, dx, dy) => {
10
11
  "use gpu";
11
- return d.vec2f(__tsover_add(uv.x, dx), __tsover_add(uv.y, dy));
12
+ return vec2f(__tsover_add(uv.x, dx), __tsover_add(uv.y, dy));
12
13
  }), {
13
14
  v: 1,
14
15
  name: void 0,
@@ -56,39 +57,37 @@ const chromaFlowTapUV = tgpu.fn([
56
57
  ]]]],
57
58
  "externalNames": ["d"]
58
59
  },
59
- externals: () => ({ d })
60
+ externals: () => ({ d: data_exports })
60
61
  }) && $.f)({})).$name("chromaFlowTapUV");
61
- const chromaFlowColor = tgpu.fn([
62
- d.vec4f,
63
- d.vec4f,
64
- d.vec4f,
65
- d.vec4f,
66
- d.vec4f,
67
- d.vec4f,
68
- d.vec4f,
69
- d.vec4f,
70
- d.vec4f,
71
- d.vec4f
72
- ], d.vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((s0, s1, s2, s3, s4, base, up, down, left, right) => {
62
+ const chromaFlowColor = src_default.fn([
63
+ vec4f,
64
+ vec4f,
65
+ vec4f,
66
+ vec4f,
67
+ vec4f,
68
+ vec4f,
69
+ vec4f,
70
+ vec4f,
71
+ vec4f,
72
+ vec4f
73
+ ], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((s0, s1, s2, s3, s4, base, up, down, left, right) => {
73
74
  "use gpu";
74
- const smoothedLiquid = __tsover_mul(__tsover_add(__tsover_add(__tsover_add(__tsover_add(s0.z, s1.z), s2.z), s3.z), s4.z), .2);
75
- const liquidIntensity = std.smoothstep(0, .1, smoothedLiquid);
75
+ const liquidIntensity = smoothstep(0, .1, __tsover_mul(__tsover_add(__tsover_add(__tsover_add(__tsover_add(s0.z, s1.z), s2.z), s3.z), s4.z), .2));
76
76
  const flow = s0.xy.add(s1.xy).add(s2.xy).add(s3.xy).add(s4.xy).mul(.2);
77
- const flowMagnitude = std.length(flow);
78
- const hasFlow = std.smoothstep(.01, .1, flowMagnitude);
77
+ const flowMagnitude = length(flow);
78
+ const hasFlow = smoothstep(.01, .1, flowMagnitude);
79
79
  const normalizedX = __tsover_div(flow.x, __tsover_add(flowMagnitude, .001));
80
80
  const normalizedY = __tsover_div(flow.y, __tsover_add(flowMagnitude, .001));
81
- const rightAmount = std.smoothstep(0, .7, std.max(normalizedX, 0));
82
- const leftAmount = std.smoothstep(0, .7, std.max(__tsover_mul(normalizedX, -1), 0));
83
- const upAmount = std.smoothstep(0, .7, std.max(normalizedY, 0));
84
- const downAmount = std.smoothstep(0, .7, std.max(__tsover_mul(normalizedY, -1), 0));
81
+ const rightAmount = smoothstep(0, .7, max(normalizedX, 0));
82
+ const leftAmount = smoothstep(0, .7, max(__tsover_mul(normalizedX, -1), 0));
83
+ const upAmount = smoothstep(0, .7, max(normalizedY, 0));
84
+ const downAmount = smoothstep(0, .7, max(__tsover_mul(normalizedY, -1), 0));
85
85
  const horizontalColor = left.mul(leftAmount).add(right.mul(rightAmount));
86
86
  const verticalColor = down.mul(downAmount).add(up.mul(upAmount));
87
87
  const horizontalWeight = __tsover_add(leftAmount, rightAmount);
88
88
  const verticalWeight = __tsover_add(upAmount, downAmount);
89
89
  const totalWeight = __tsover_add(__tsover_add(horizontalWeight, verticalWeight), .001);
90
- const directionalColor = horizontalColor.mul(__tsover_div(horizontalWeight, totalWeight)).add(verticalColor.mul(__tsover_div(verticalWeight, totalWeight)));
91
- return std.mix(base, directionalColor, d.vec4f(hasFlow)).mul(liquidIntensity);
90
+ return mix(base, horizontalColor.mul(__tsover_div(horizontalWeight, totalWeight)).add(verticalColor.mul(__tsover_div(verticalWeight, totalWeight))), vec4f(hasFlow)).mul(liquidIntensity);
92
91
  }), {
93
92
  v: 1,
94
93
  name: void 0,
@@ -624,8 +623,8 @@ const chromaFlowColor = tgpu.fn([
624
623
  "externalNames": ["std", "d"]
625
624
  },
626
625
  externals: () => ({
627
- std,
628
- d
626
+ std: std_exports,
627
+ d: data_exports
629
628
  })
630
629
  }) && $.f)({})).$name("chromaFlowColor");
631
630
  const componentDefinition = {
@@ -1,15 +1,15 @@
1
- import { Bt as ZERO, Ht as call, J as std, Jt as vec4, Tn as d, cn as unpremultiplyAlpha, n as tgpu } from "./coords-BkIjixe_.js";
2
- import { r as transformAngle } from "./transformations-t0d2-uSX.js";
3
- const chromaticOffsetUV = tgpu.fn([
4
- d.vec2f,
5
- d.f32,
6
- d.f32,
7
- d.f32,
8
- d.f32
9
- ], d.vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, angle, strength, aspect, channelOffset) => {
1
+ import { $t as vec2f, It as sin, N as unpremultiplyAlpha, Vt as data_exports, an as f32, d as ZERO, et as src_default, jt as radians, nt as std_exports, p as call, vt as cos, y as vec4 } from "./edges-BXNBKxSN.js";
2
+ import { r as transformAngle } from "./transformations-CsPUHppB.js";
3
+ const chromaticOffsetUV = src_default.fn([
4
+ vec2f,
5
+ f32,
6
+ f32,
7
+ f32,
8
+ f32
9
+ ], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, angle, strength, aspect, channelOffset) => {
10
10
  "use gpu";
11
- const angleRad = std.radians(angle);
12
- const direction = d.vec2f(__tsover_div(std.cos(angleRad), aspect), std.sin(angleRad));
11
+ const angleRad = radians(angle);
12
+ const direction = vec2f(__tsover_div(cos(angleRad), aspect), sin(angleRad));
13
13
  const scaledStrength = __tsover_mul(strength, .1);
14
14
  const offsetBase = direction.mul(scaledStrength);
15
15
  return uv.add(offsetBase.mul(channelOffset));
@@ -131,8 +131,8 @@ const chromaticOffsetUV = tgpu.fn([
131
131
  "externalNames": ["std", "d"]
132
132
  },
133
133
  externals: () => ({
134
- std,
135
- d
134
+ std: std_exports,
135
+ d: data_exports
136
136
  })
137
137
  }) && $.f)({}));
138
138
  const componentDefinition = {
@@ -1,17 +1,18 @@
1
- import { C as ShapeMask, F as sdf_exports, Ht as call, Jt as vec4, R as strokeMaskFromSdf, T as circleSdf, Tn as d, gn as mixColorsVariants, hn as mixColorsLinear, n as tgpu } from "./coords-BkIjixe_.js";
2
- import { a as transformColor, c as transformPosition, l as transformStrokePosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-t0d2-uSX.js";
3
- const circleShape = tgpu.fn([
4
- d.vec2f,
5
- d.f32,
6
- d.f32,
7
- d.f32,
8
- d.f32,
9
- d.vec2f,
10
- d.f32
1
+ import { $t as vec2f, H as mixColorsLinear, U as mixColorsVariants, Vt as data_exports, an as f32, et as src_default, p as call, y as vec4 } from "./edges-BXNBKxSN.js";
2
+ import { h as sdf_exports, i as circleSdf, n as ShapeMask, v as strokeMaskFromSdf } from "./sdf-R0EN3EvS.js";
3
+ import { a as transformColor, c as transformPosition, l as transformStrokePosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
4
+ const circleShape = src_default.fn([
5
+ vec2f,
6
+ f32,
7
+ f32,
8
+ f32,
9
+ f32,
10
+ vec2f,
11
+ f32
11
12
  ], ShapeMask)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((center, radius, softness, strokeThickness, strokePosition, uv, aspect) => {
12
13
  "use gpu";
13
- const aspectUV = d.vec2f(__tsover_mul(uv.x, aspect), uv.y);
14
- const centerPos = d.vec2f(__tsover_mul(center.x, aspect), __tsover_sub(1, center.y));
14
+ const aspectUV = vec2f(__tsover_mul(uv.x, aspect), uv.y);
15
+ const centerPos = vec2f(__tsover_mul(center.x, aspect), __tsover_sub(1, center.y));
15
16
  return strokeMaskFromSdf(circleSdf(__tsover_sub(aspectUV.x, centerPos.x), __tsover_sub(aspectUV.y, centerPos.y), __tsover_mul(radius, .5)), softness, strokeThickness, strokePosition);
16
17
  }), {
17
18
  v: 1,
@@ -186,7 +187,7 @@ const circleShape = tgpu.fn([
186
187
  "externalNames": ["d", "sdf"]
187
188
  },
188
189
  externals: () => ({
189
- d,
190
+ d: data_exports,
190
191
  sdf: sdf_exports
191
192
  })
192
193
  }) && $.f)({}));