shaders 3.0.447 → 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 (416) 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/gpu/index.d.ts.map +1 -1
  199. package/dist/core/index.js +320 -229
  200. package/dist/core/media-B9BNeMPu.js +757 -0
  201. package/dist/core/noise-wTSHXgFz.js +12033 -0
  202. package/dist/core/noiseColor-CPakiKNF.js +103 -0
  203. package/dist/core/{noiseColor-CRpf22bk.js → noiseColor-DscZM9CO.js} +2 -2
  204. package/dist/core/noiseStylize-BXpflWPW.js +359 -0
  205. package/dist/core/porters-DBK1Aipq.js +991 -0
  206. package/dist/core/presetRenderer.d.ts.map +1 -1
  207. package/dist/core/registry.js +208 -199
  208. package/dist/core/sdf-R0EN3EvS.js +5174 -0
  209. package/dist/core/shaderRegistry-CcvE7wN0.js +425 -0
  210. package/dist/core/shaders/AngularBlur/index.js +5 -4
  211. package/dist/core/shaders/Arc/index.js +7 -4
  212. package/dist/core/shaders/Ascii/index.js +5 -4
  213. package/dist/core/shaders/Aurora/index.js +6 -4
  214. package/dist/core/shaders/BarShift/index.js +5 -4
  215. package/dist/core/shaders/BarnDoors/index.js +5 -4
  216. package/dist/core/shaders/Beam/index.js +5 -4
  217. package/dist/core/shaders/Bend/index.js +5 -4
  218. package/dist/core/shaders/Blob/index.js +5 -4
  219. package/dist/core/shaders/BlockDissolve/index.js +6 -4
  220. package/dist/core/shaders/BlockNoise/index.js +8 -5
  221. package/dist/core/shaders/BlueNoise/index.js +8 -5
  222. package/dist/core/shaders/Blur/index.js +6 -4
  223. package/dist/core/shaders/Boids/index.js +7 -4
  224. package/dist/core/shaders/BokehBlur/index.js +6 -4
  225. package/dist/core/shaders/BrickPattern/index.js +5 -4
  226. package/dist/core/shaders/BrightnessContrast/index.js +5 -4
  227. package/dist/core/shaders/BrushedMetal/index.js +11 -6
  228. package/dist/core/shaders/Bulge/index.js +5 -4
  229. package/dist/core/shaders/CRTScreen/index.js +5 -4
  230. package/dist/core/shaders/CarbonFiber/index.js +11 -6
  231. package/dist/core/shaders/Chalkboard/index.js +5 -4
  232. package/dist/core/shaders/ChannelBlur/index.js +6 -4
  233. package/dist/core/shaders/CheckerWipe/index.js +5 -4
  234. package/dist/core/shaders/Checkerboard/index.js +5 -4
  235. package/dist/core/shaders/Chevron/index.js +5 -4
  236. package/dist/core/shaders/ChromaFlow/index.js +6 -4
  237. package/dist/core/shaders/ChromaticAberration/index.js +5 -4
  238. package/dist/core/shaders/Circle/index.js +7 -4
  239. package/dist/core/shaders/ColorWheel/index.js +5 -4
  240. package/dist/core/shaders/CompressionArtifacts/index.js +5 -4
  241. package/dist/core/shaders/ConcentricSpin/index.js +5 -4
  242. package/dist/core/shaders/ConicGradient/index.js +5 -4
  243. package/dist/core/shaders/ContourLines/index.js +5 -4
  244. package/dist/core/shaders/CornerPin/index.js +5 -4
  245. package/dist/core/shaders/Crescent/index.js +7 -4
  246. package/dist/core/shaders/Cross/index.js +7 -4
  247. package/dist/core/shaders/Crystal/index.js +11 -6
  248. package/dist/core/shaders/CurlNoise/index.js +8 -5
  249. package/dist/core/shaders/CursorRipples/index.js +5 -4
  250. package/dist/core/shaders/CursorTrail/index.js +5 -4
  251. package/dist/core/shaders/DataMosh/index.js +5 -4
  252. package/dist/core/shaders/DiamondGradient/index.js +5 -4
  253. package/dist/core/shaders/DiamondWipe/index.js +5 -4
  254. package/dist/core/shaders/DiffuseBlur/index.js +5 -4
  255. package/dist/core/shaders/DisplacementMap/index.js +5 -4
  256. package/dist/core/shaders/Dither/index.js +5 -4
  257. package/dist/core/shaders/DotGrid/index.js +5 -4
  258. package/dist/core/shaders/DropShadow/index.js +5 -4
  259. package/dist/core/shaders/Duotone/index.js +5 -4
  260. package/dist/core/shaders/Ellipse/index.js +7 -4
  261. package/dist/core/shaders/Emboss/index.js +10 -6
  262. package/dist/core/shaders/Engraving/index.js +6 -4
  263. package/dist/core/shaders/ErosionNoise/index.js +8 -5
  264. package/dist/core/shaders/Exposure/index.js +5 -4
  265. package/dist/core/shaders/FallingLines/index.js +5 -4
  266. package/dist/core/shaders/FilmGrain/index.js +5 -4
  267. package/dist/core/shaders/FilmStock/index.js +6 -4
  268. package/dist/core/shaders/Flip/index.js +5 -4
  269. package/dist/core/shaders/FloatingParticles/index.js +7 -4
  270. package/dist/core/shaders/FlowField/index.js +6 -4
  271. package/dist/core/shaders/Flower/index.js +7 -4
  272. package/dist/core/shaders/FlowingGradient/index.js +6 -4
  273. package/dist/core/shaders/FlutedGlass/index.js +5 -4
  274. package/dist/core/shaders/Fog/index.js +5 -4
  275. package/dist/core/shaders/Form3D/index.js +5 -4
  276. package/dist/core/shaders/FractalNoise/index.js +7 -4
  277. package/dist/core/shaders/Frost/index.js +11 -6
  278. package/dist/core/shaders/GaborNoise/index.js +8 -5
  279. package/dist/core/shaders/Glass/index.js +11 -6
  280. package/dist/core/shaders/GlassTiles/index.js +5 -4
  281. package/dist/core/shaders/Glitch/index.js +5 -4
  282. package/dist/core/shaders/Glow/index.js +6 -4
  283. package/dist/core/shaders/Godrays/index.js +5 -4
  284. package/dist/core/shaders/Goo/index.js +10 -6
  285. package/dist/core/shaders/GradientMap/index.js +5 -4
  286. package/dist/core/shaders/Grayscale/index.js +5 -4
  287. package/dist/core/shaders/Grid/index.js +5 -4
  288. package/dist/core/shaders/GridDistortion/index.js +5 -4
  289. package/dist/core/shaders/Group/index.js +5 -4
  290. package/dist/core/shaders/HTMLInCanvas/index.js +5 -4
  291. package/dist/core/shaders/Halftone/index.js +5 -4
  292. package/dist/core/shaders/Heart/index.js +7 -4
  293. package/dist/core/shaders/Heatmap/index.js +11 -6
  294. package/dist/core/shaders/HexGrid/index.js +5 -4
  295. package/dist/core/shaders/Hologram/index.js +11 -6
  296. package/dist/core/shaders/Holographic/index.js +11 -6
  297. package/dist/core/shaders/HueShift/index.js +5 -4
  298. package/dist/core/shaders/ImageTexture/index.js +7 -5
  299. package/dist/core/shaders/InkFlow/index.js +5 -4
  300. package/dist/core/shaders/Invert/index.js +5 -4
  301. package/dist/core/shaders/IrisWipe/index.js +5 -4
  302. package/dist/core/shaders/IsometricCubes/index.js +5 -4
  303. package/dist/core/shaders/Kaleidoscope/index.js +5 -4
  304. package/dist/core/shaders/KeyFrames/index.js +5 -4
  305. package/dist/core/shaders/LensFlare/index.js +5 -4
  306. package/dist/core/shaders/LightEdge/index.js +11 -6
  307. package/dist/core/shaders/LightLeak/index.js +6 -4
  308. package/dist/core/shaders/LinearBlur/index.js +5 -4
  309. package/dist/core/shaders/LinearGradient/index.js +5 -4
  310. package/dist/core/shaders/LinearWipe/index.js +5 -4
  311. package/dist/core/shaders/LiquidMetal/index.js +11 -6
  312. package/dist/core/shaders/Liquify/index.js +5 -4
  313. package/dist/core/shaders/MagneticFilings/index.js +7 -4
  314. package/dist/core/shaders/Marble/index.js +6 -4
  315. package/dist/core/shaders/Mirror/index.js +5 -4
  316. package/dist/core/shaders/MultiPointGradient/index.js +5 -4
  317. package/dist/core/shaders/Neon/index.js +9 -5
  318. package/dist/core/shaders/NoiseDissolve/index.js +6 -4
  319. package/dist/core/shaders/ObjectTracker/index.js +6 -5
  320. package/dist/core/shaders/PagePeel/index.js +5 -4
  321. package/dist/core/shaders/Paper/index.js +6 -4
  322. package/dist/core/shaders/Parallelogram/index.js +7 -4
  323. package/dist/core/shaders/ParticleField/index.js +8 -4
  324. package/dist/core/shaders/ParticleFlow/index.js +7 -4
  325. package/dist/core/shaders/Particles/index.js +11 -5
  326. package/dist/core/shaders/PerlinNoise/index.js +8 -5
  327. package/dist/core/shaders/Perspective/index.js +5 -4
  328. package/dist/core/shaders/PixelSort/index.js +5 -4
  329. package/dist/core/shaders/PixelThrow/index.js +6 -4
  330. package/dist/core/shaders/Pixelate/index.js +5 -4
  331. package/dist/core/shaders/Plasma/index.js +6 -4
  332. package/dist/core/shaders/Plastic/index.js +11 -6
  333. package/dist/core/shaders/PolarCoordinates/index.js +5 -4
  334. package/dist/core/shaders/Polygon/index.js +7 -4
  335. package/dist/core/shaders/Posterize/index.js +5 -4
  336. package/dist/core/shaders/Prism/index.js +5 -4
  337. package/dist/core/shaders/ProgressiveBlur/index.js +6 -4
  338. package/dist/core/shaders/RadialGradient/index.js +5 -4
  339. package/dist/core/shaders/RadialWipe/index.js +5 -4
  340. package/dist/core/shaders/RandomBars/index.js +6 -4
  341. package/dist/core/shaders/ReactionDiffusion/index.js +5 -4
  342. package/dist/core/shaders/RectangularCoordinates/index.js +5 -4
  343. package/dist/core/shaders/ReflectivePlane/index.js +6 -4
  344. package/dist/core/shaders/Repeater/index.js +5 -4
  345. package/dist/core/shaders/Ring/index.js +7 -4
  346. package/dist/core/shaders/RippleWipe/index.js +5 -4
  347. package/dist/core/shaders/Ripples/index.js +5 -4
  348. package/dist/core/shaders/RoundedRect/index.js +7 -4
  349. package/dist/core/shaders/Saturation/index.js +5 -4
  350. package/dist/core/shaders/Scratches/index.js +8 -5
  351. package/dist/core/shaders/Sharpness/index.js +5 -4
  352. package/dist/core/shaders/Shatter/index.js +6 -4
  353. package/dist/core/shaders/SimplexNoise/index.js +7 -4
  354. package/dist/core/shaders/SineWave/index.js +5 -4
  355. package/dist/core/shaders/SliceWipe/index.js +5 -4
  356. package/dist/core/shaders/Smoke/index.js +5 -4
  357. package/dist/core/shaders/SmokeFill/index.js +10 -6
  358. package/dist/core/shaders/SmokeFlow/index.js +5 -4
  359. package/dist/core/shaders/Solarize/index.js +5 -4
  360. package/dist/core/shaders/SolidColor/index.js +2 -2
  361. package/dist/core/shaders/Spherize/index.js +5 -4
  362. package/dist/core/shaders/Spiral/index.js +5 -4
  363. package/dist/core/shaders/Star/index.js +7 -4
  364. package/dist/core/shaders/Stone/index.js +4 -3
  365. package/dist/core/shaders/Strands/index.js +5 -4
  366. package/dist/core/shaders/Stretch/index.js +5 -4
  367. package/dist/core/shaders/Stripes/index.js +5 -4
  368. package/dist/core/shaders/StudioBackground/index.js +5 -4
  369. package/dist/core/shaders/SunBurst/index.js +5 -4
  370. package/dist/core/shaders/Surface3D/index.js +6 -4
  371. package/dist/core/shaders/Swirl/index.js +5 -4
  372. package/dist/core/shaders/Teardrop/index.js +7 -4
  373. package/dist/core/shaders/Text/index.js +6 -5
  374. package/dist/core/shaders/ThinFilm/index.js +9 -5
  375. package/dist/core/shaders/TiltShift/index.js +6 -4
  376. package/dist/core/shaders/TimeTrail/index.js +5 -4
  377. package/dist/core/shaders/Tint/index.js +5 -4
  378. package/dist/core/shaders/Trapezoid/index.js +7 -4
  379. package/dist/core/shaders/TriangularGrid/index.js +5 -4
  380. package/dist/core/shaders/Tritone/index.js +5 -4
  381. package/dist/core/shaders/Truchet/index.js +5 -4
  382. package/dist/core/shaders/Twirl/index.js +5 -4
  383. package/dist/core/shaders/VHS/index.js +5 -4
  384. package/dist/core/shaders/VenetianBlinds/index.js +5 -4
  385. package/dist/core/shaders/Vesica/index.js +7 -4
  386. package/dist/core/shaders/Vibrance/index.js +5 -4
  387. package/dist/core/shaders/VideoTexture/index.js +6 -5
  388. package/dist/core/shaders/Vignette/index.js +5 -4
  389. package/dist/core/shaders/Voronoi/index.js +5 -4
  390. package/dist/core/shaders/Water/index.js +11 -6
  391. package/dist/core/shaders/Watercolor/index.js +5 -4
  392. package/dist/core/shaders/WaveDistortion/index.js +5 -4
  393. package/dist/core/shaders/WaveletNoise/index.js +8 -5
  394. package/dist/core/shaders/Weave/index.js +5 -4
  395. package/dist/core/shaders/WebcamTexture/index.js +7 -5
  396. package/dist/core/shaders/Wool/index.js +4 -3
  397. package/dist/core/shaders/WorleyNoise/index.js +5 -4
  398. package/dist/core/shaders/ZoomBlur/index.js +5 -4
  399. package/dist/core/shapeEffectBounds-CtKwBX8c.js +19213 -0
  400. package/dist/core/utilities/transformations/index.js +1 -1
  401. package/dist/js/bundle.js +188 -184
  402. package/dist/js/createShader.js +1 -1
  403. package/dist/react/Shader.js +1 -1
  404. package/dist/react/bundle.js +197 -193
  405. package/dist/solid/engine/Shader.js +1 -1
  406. package/dist/svelte/index.js +1 -1
  407. package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
  408. package/package.json +1 -1
  409. package/dist/core/coords-BkIjixe_.js +0 -55724
  410. package/dist/core/noiseStylize-J6sFKoTh.js +0 -65
  411. package/dist/core/porters-BmU6G9TR.js +0 -321
  412. package/dist/core/shaderRegistry-D75z2sND.js +0 -425
  413. package/dist/core/shapeEffectBounds-PQqKLQXO.js +0 -406
  414. /package/dist/core/{fonts-DwhbVe2B.js → fonts-v_F1SFl9.js} +0 -0
  415. /package/dist/core/{naturalSize-Caz3-kRv.js → naturalSize-B679wTgN.js} +0 -0
  416. /package/dist/core/{transformations-t0d2-uSX.js → transformations-CsPUHppB.js} +0 -0
@@ -1,6 +1,6 @@
1
- import { Ht as call, J as std, Jt as vec4, Rt as sampleCatmullRomExpr, Tn as d, n as tgpu } from "./coords-BkIjixe_.js";
2
- import { a as transformColor, c as transformPosition } from "./transformations-t0d2-uSX.js";
3
- import { n as loadGoogleFont, t as isFontAvailable } from "./fonts-DwhbVe2B.js";
1
+ import { $t as vec2f, It as sin, Vt as data_exports, an as f32, et as src_default, l as sampleCatmullRomExpr, nn as vec3f, nt as std_exports, p as call, vt as cos, y as vec4, zt as step } from "./edges-BXNBKxSN.js";
2
+ import { a as transformColor, c as transformPosition } from "./transformations-CsPUHppB.js";
3
+ import { n as loadGoogleFont, t as isFontAvailable } from "./fonts-v_F1SFl9.js";
4
4
  function applyTextTransform(text, mode) {
5
5
  switch (mode) {
6
6
  case "uppercase": return text.toUpperCase();
@@ -139,28 +139,27 @@ var fontSizePxOf = (v, canvasHeight) => {
139
139
  if (v && typeof v === "object" && typeof v.value === "number") return v.unit === "px" ? v.value : v.value * canvasHeight;
140
140
  return (typeof v === "number" ? v : .1) * canvasHeight;
141
141
  };
142
- const textField = tgpu.fn([
143
- d.vec2f,
144
- d.f32,
145
- d.vec2f,
146
- d.f32,
147
- d.f32,
148
- d.f32
149
- ], d.vec3f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, aspect, center, rotationDeg, halfW, halfH) => {
142
+ const textField = src_default.fn([
143
+ vec2f,
144
+ f32,
145
+ vec2f,
146
+ f32,
147
+ f32,
148
+ f32
149
+ ], vec3f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, aspect, center, rotationDeg, halfW, halfH) => {
150
150
  "use gpu";
151
- const aspectUV = d.vec2f(__tsover_mul(uv.x, aspect), uv.y);
152
- const centerPos = d.vec2f(__tsover_mul(center.x, aspect), __tsover_sub(1, center.y));
151
+ const aspectUV = vec2f(__tsover_mul(uv.x, aspect), uv.y);
152
+ const centerPos = vec2f(__tsover_mul(center.x, aspect), __tsover_sub(1, center.y));
153
153
  const dx = __tsover_sub(aspectUV.x, centerPos.x);
154
154
  const dy = __tsover_sub(aspectUV.y, centerPos.y);
155
155
  const rotRad = __tsover_mul(rotationDeg, DEG_TO_RAD);
156
- const cosR = std.cos(rotRad);
157
- const sinR = std.sin(rotRad);
156
+ const cosR = cos(rotRad);
157
+ const sinR = sin(rotRad);
158
158
  const rdx = __tsover_add(__tsover_mul(dx, cosR), __tsover_mul(dy, sinR));
159
159
  const rdy = __tsover_sub(__tsover_mul(dy, cosR), __tsover_mul(dx, sinR));
160
160
  const localU = __tsover_add(__tsover_div(rdx, __tsover_mul(halfW, 2)), .5);
161
161
  const localV = __tsover_add(__tsover_div(rdy, __tsover_mul(halfH, 2)), .5);
162
- const insideMask = __tsover_mul(__tsover_mul(__tsover_mul(std.step(0, localU), std.step(localU, 1)), std.step(0, localV)), std.step(localV, 1));
163
- return d.vec3f(localU, localV, insideMask);
162
+ return vec3f(localU, localV, __tsover_mul(__tsover_mul(__tsover_mul(step(0, localU), step(localU, 1)), step(0, localV)), step(localV, 1)));
164
163
  }), {
165
164
  v: 1,
166
165
  name: void 0,
@@ -474,9 +473,9 @@ const textField = tgpu.fn([
474
473
  ]
475
474
  },
476
475
  externals: () => ({
477
- d,
476
+ d: data_exports,
478
477
  DEG_TO_RAD,
479
- std
478
+ std: std_exports
480
479
  })
481
480
  }) && $.f)({}));
482
481
  const componentDefinition = {
@@ -486,11 +485,11 @@ const componentDefinition = {
486
485
  acceptsUVContext: true,
487
486
  extraFields: {
488
487
  halfW: {
489
- schema: d.f32,
488
+ schema: f32,
490
489
  initial: .001
491
490
  },
492
491
  halfH: {
493
- schema: d.f32,
492
+ schema: f32,
494
493
  initial: .001
495
494
  }
496
495
  },
@@ -1,7 +1,8 @@
1
- import { Dn as __export, F as sdf_exports, Ht as call, J as std, Kt as floatE, Tn as d, gn as mixColorsVariants, hn as mixColorsLinear, n as tgpu, qt as mixExpr, y as sdf3d_exports } from "./coords-BkIjixe_.js";
2
- import { i as sdfSpaceUV, r as offsetUV, t as glassGradient } from "./glass-sOqjtPJD.js";
3
- import { a as transformColor, c as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-t0d2-uSX.js";
4
- import { n as shapeEffectBoundingBoxDeclaration, t as resolveShapeType } from "./shapeEffectBounds-PQqKLQXO.js";
1
+ import { $t as vec2f, At as pow, Ct as floor, Et as max, H as mixColorsLinear, It as sin, Ot as mix, Rt as sqrt, U as mixColorsVariants, Vt as data_exports, _ as floatE, _t as clamp, an as f32, cn as __export, et as src_default, in as vec4f, nn as vec3f, nt as std_exports, p as call, pt as select, v as mixExpr, vt as cos, wt as fract } from "./edges-BXNBKxSN.js";
2
+ import { h as sdf_exports } from "./sdf-R0EN3EvS.js";
3
+ import { f as sdf3d_exports, n as shapeEffectBoundingBoxDeclaration, t as resolveShapeType } from "./shapeEffectBounds-CtKwBX8c.js";
4
+ import { i as sdfSpaceUV, r as offsetUV, t as glassGradient } from "./glass-IfoQ8Prf.js";
5
+ import { a as transformColor, c as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
5
6
  var thinFilm_exports = /* @__PURE__ */ __export({
6
7
  applyThinFilmEffect: () => applyThinFilmEffect$1,
7
8
  thinFilmCompose: () => thinFilmCompose,
@@ -11,45 +12,42 @@ var thinFilm_exports = /* @__PURE__ */ __export({
11
12
  });
12
13
  var DEG_TO_RAD = .017453292519943295;
13
14
  var TWO_PI = 6.283185307179586;
14
- const thinFilmShade = tgpu.fn([
15
- d.f32,
16
- d.f32,
17
- d.f32,
18
- d.f32,
19
- d.f32,
20
- d.f32,
21
- d.f32,
22
- d.f32,
23
- d.f32,
24
- d.f32,
25
- d.f32,
26
- d.f32
27
- ], d.vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((sdfRaw, scale, gradX, gradY, edgeSoftness, rimWidthUniform, thickness, dispersion, hueShift, lightAngle, animTime, volumetric) => {
15
+ const thinFilmShade = src_default.fn([
16
+ f32,
17
+ f32,
18
+ f32,
19
+ f32,
20
+ f32,
21
+ f32,
22
+ f32,
23
+ f32,
24
+ f32,
25
+ f32,
26
+ f32,
27
+ f32
28
+ ], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((sdfRaw, scale, gradX, gradY, edgeSoftness, rimWidthUniform, thickness, dispersion, hueShift, lightAngle, animTime, volumetric) => {
28
29
  "use gpu";
29
30
  const sdf = __tsover_div(sdfRaw, scale);
30
- const sharp = std.max(__tsover_mul(edgeSoftness, .5), .001);
31
- const gLen = std.max(std.sqrt(__tsover_add(__tsover_mul(gradX, gradX), __tsover_mul(gradY, gradY))), 1e-4);
31
+ const sharp = max(__tsover_mul(edgeSoftness, .5), .001);
32
+ const gLen = max(sqrt(__tsover_add(__tsover_mul(gradX, gradX), __tsover_mul(gradY, gradY))), 1e-4);
32
33
  const nx = __tsover_div(gradX, gLen);
33
34
  const ny = __tsover_div(gradY, gLen);
34
- const rb1 = std.clamp(__tsover_mul(__tsover_div(__tsover_mul(sdf, -1), sharp), 32), 0, 1);
35
- const rimWidth = std.max(__tsover_mul(rimWidthUniform, .1), .001);
36
- const depth = std.clamp(__tsover_div(__tsover_mul(sdf, -1), rimWidth), 0, 1);
37
- const cosView = __tsover_div(1, std.sqrt(__tsover_add(__tsover_mul(gLen, gLen), 1)));
38
- const exponent = std.mix(7, 1.5, std.clamp(rimWidthUniform, 0, 1));
39
- const volRim = __tsover_mul(std.pow(__tsover_sub(1, cosView), exponent), rb1);
40
- const flatRim = __tsover_mul(__tsover_mul(__tsover_sub(1, depth), __tsover_sub(1, depth)), rb1);
41
- const rim = std.select(flatRim, volRim, volumetric > .5);
42
- const lx = std.cos(__tsover_mul(lightAngle, DEG_TO_RAD));
43
- const ly = std.sin(__tsover_mul(lightAngle, DEG_TO_RAD));
35
+ const rb1 = clamp(__tsover_mul(__tsover_div(__tsover_mul(sdf, -1), sharp), 32), 0, 1);
36
+ const rimWidth = max(__tsover_mul(rimWidthUniform, .1), .001);
37
+ const depth = clamp(__tsover_div(__tsover_mul(sdf, -1), rimWidth), 0, 1);
38
+ const cosView = __tsover_div(1, sqrt(__tsover_add(__tsover_mul(gLen, gLen), 1)));
39
+ const exponent = mix(7, 1.5, clamp(rimWidthUniform, 0, 1));
40
+ const volRim = __tsover_mul(pow(__tsover_sub(1, cosView), exponent), rb1);
41
+ const rim = select(__tsover_mul(__tsover_mul(__tsover_sub(1, depth), __tsover_sub(1, depth)), rb1), volRim, volumetric > .5);
42
+ const lx = cos(__tsover_mul(lightAngle, DEG_TO_RAD));
43
+ const ly = sin(__tsover_mul(lightAngle, DEG_TO_RAD));
44
44
  const baseCos = __tsover_add(__tsover_mul(nx, lx), __tsover_mul(ny, ly));
45
45
  const baseSin = __tsover_sub(__tsover_mul(ny, lx), __tsover_mul(nx, ly));
46
46
  const theta = __tsover_mul(animTime, TWO_PI);
47
- const rotatedDot = __tsover_add(__tsover_mul(baseCos, std.cos(theta)), __tsover_mul(baseSin, std.sin(theta)));
48
- const thickVol = __tsover_mul(__tsover_mul(thickness, std.max(__tsover_mul(sdf, -1), 0)), 10);
49
- const thickFlat = __tsover_mul(__tsover_mul(thickness, depth), 2);
50
- const thicknessTerm = std.select(thickFlat, thickVol, volumetric > .5);
51
- const phase = __tsover_add(__tsover_add(hueShift, __tsover_mul(dispersion, rotatedDot)), thicknessTerm);
52
- return d.vec2f(phase, rim);
47
+ const rotatedDot = __tsover_add(__tsover_mul(baseCos, cos(theta)), __tsover_mul(baseSin, sin(theta)));
48
+ const thickVol = __tsover_mul(__tsover_mul(thickness, max(__tsover_mul(sdf, -1), 0)), 10);
49
+ const thicknessTerm = select(__tsover_mul(__tsover_mul(thickness, depth), 2), thickVol, volumetric > .5);
50
+ return vec2f(__tsover_add(__tsover_add(hueShift, __tsover_mul(dispersion, rotatedDot)), thicknessTerm), rim);
53
51
  }), {
54
52
  v: 1,
55
53
  name: void 0,
@@ -630,19 +628,16 @@ const thinFilmShade = tgpu.fn([
630
628
  ]
631
629
  },
632
630
  externals: () => ({
633
- std,
631
+ std: std_exports,
634
632
  DEG_TO_RAD,
635
633
  TWO_PI,
636
- d
634
+ d: data_exports
637
635
  })
638
636
  }) && $.f)({}));
639
- const thinFilmRainbow = tgpu.fn([d.f32], d.vec3f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((phase) => {
637
+ const thinFilmRainbow = src_default.fn([f32], vec3f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((phase) => {
640
638
  "use gpu";
641
- const r = std.cos(__tsover_mul(__tsover_add(phase, 0), TWO_PI));
642
- const g = std.cos(__tsover_mul(__tsover_add(phase, .3333), TWO_PI));
643
- const b = std.cos(__tsover_mul(__tsover_add(phase, .6667), TWO_PI));
644
- const half = d.vec3f(r, g, b).mul(.5);
645
- return d.vec3f(__tsover_add(half.x, .5), __tsover_add(half.y, .5), __tsover_add(half.z, .5));
639
+ const half = vec3f(cos(__tsover_mul(__tsover_add(phase, 0), TWO_PI)), cos(__tsover_mul(__tsover_add(phase, .3333), TWO_PI)), cos(__tsover_mul(__tsover_add(phase, .6667), TWO_PI))).mul(.5);
640
+ return vec3f(__tsover_add(half.x, .5), __tsover_add(half.y, .5), __tsover_add(half.z, .5));
646
641
  }), {
647
642
  v: 1,
648
643
  name: void 0,
@@ -794,20 +789,18 @@ const thinFilmRainbow = tgpu.fn([d.f32], d.vec3f)(/* @__PURE__ */ (($) => (globa
794
789
  ]
795
790
  },
796
791
  externals: () => ({
797
- std,
792
+ std: std_exports,
798
793
  TWO_PI,
799
- d
794
+ d: data_exports
800
795
  })
801
796
  }) && $.f)({}));
802
- const thinFilmCustomParams = tgpu.fn([d.f32], d.vec3f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((phase) => {
797
+ const thinFilmCustomParams = src_default.fn([f32], vec3f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((phase) => {
803
798
  "use gpu";
804
- const t = std.fract(phase);
799
+ const t = fract(phase);
805
800
  const t3 = __tsover_mul(t, 3);
806
- const si = std.fract(t3);
807
- const floorT3 = std.floor(t3);
808
- const gate12 = std.select(d.f32(0), d.f32(1), floorT3 <= 1.5);
809
- const gate01 = std.select(d.f32(0), d.f32(1), floorT3 <= .5);
810
- return d.vec3f(si, gate12, gate01);
801
+ const si = fract(t3);
802
+ const floorT3 = floor(t3);
803
+ return vec3f(si, select(f32(0), f32(1), floorT3 <= 1.5), select(f32(0), f32(1), floorT3 <= .5));
811
804
  }), {
812
805
  v: 1,
813
806
  name: void 0,
@@ -959,21 +952,20 @@ const thinFilmCustomParams = tgpu.fn([d.f32], d.vec3f)(/* @__PURE__ */ (($) => (
959
952
  "externalNames": ["std", "d"]
960
953
  },
961
954
  externals: () => ({
962
- std,
963
- d
955
+ std: std_exports,
956
+ d: data_exports
964
957
  })
965
958
  }) && $.f)({}));
966
- const thinFilmCompose = tgpu.fn([
967
- d.vec3f,
968
- d.f32,
969
- d.f32,
970
- d.f32
971
- ], d.vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((baseColor, rim, intensity, saturation) => {
959
+ const thinFilmCompose = src_default.fn([
960
+ vec3f,
961
+ f32,
962
+ f32,
963
+ f32
964
+ ], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((baseColor, rim, intensity, saturation) => {
972
965
  "use gpu";
973
- const white = d.vec3f(1, 1, 1);
974
- const rgb = std.mix(white, baseColor, saturation).mul(rim).mul(intensity);
975
- const alpha = std.clamp(rim, 0, 1);
976
- return d.vec4f(rgb.x, rgb.y, rgb.z, alpha);
966
+ const rgb = mix(vec3f(1, 1, 1), baseColor, saturation).mul(rim).mul(intensity);
967
+ const alpha = clamp(rim, 0, 1);
968
+ return vec4f(rgb.x, rgb.y, rgb.z, alpha);
977
969
  }), {
978
970
  v: 1,
979
971
  name: void 0,
@@ -1099,8 +1091,8 @@ const thinFilmCompose = tgpu.fn([
1099
1091
  "externalNames": ["d", "std"]
1100
1092
  },
1101
1093
  externals: () => ({
1102
- d,
1103
- std
1094
+ d: data_exports,
1095
+ std: std_exports
1104
1096
  })
1105
1097
  }) && $.f)({}));
1106
1098
  function applyThinFilmEffect$1(params, sdfSampler, options) {
@@ -1,25 +1,26 @@
1
- import { Bt as ZERO, Ht as call, J as std, Tn as d, U as BLUR_MAP_FORMAT, X as createGuardedCompute, cn as unpremultiplyAlpha, n as tgpu, q as createVariableGaussianBlurCompute, qt as mixExpr } from "./coords-BkIjixe_.js";
2
- import { c as transformPosition, r as transformAngle } from "./transformations-t0d2-uSX.js";
1
+ import { $t as vec2f, At as pow, Et as max, Gt as textureStorage2d, It as sin, Lt as smoothstep, N as unpremultiplyAlpha, Ot as mix, Pt as round, Vt as data_exports, Wt as texture2d, Xt as struct, _t as clamp, an as f32, at as textureStore, bt as dot, d as ZERO, et as src_default, in as vec4f, it as textureLoad, mt as abs, nn as vec3f, nt as std_exports, on as i32, p as call, sn as u32, tn as vec2u, v as mixExpr, vt as cos } from "./edges-BXNBKxSN.js";
2
+ import { n as createGuardedCompute } from "./compute-BjeJ0sIA.js";
3
+ import { a as createVariableGaussianBlurCompute, t as BLUR_MAP_FORMAT } from "./blur-tvWOoxKt.js";
4
+ import { c as transformPosition, r as transformAngle } from "./transformations-CsPUHppB.js";
3
5
  var DEG_TO_RAD = Math.PI / 180;
4
6
  const INTENSITY_TO_RADIUS = .36;
5
7
  const intensityToRadius = (intensity) => intensity * INTENSITY_TO_RADIUS;
6
- const tiltShiftBlurAmount = tgpu.fn([
7
- d.f32,
8
- d.vec2f,
9
- d.f32,
10
- d.f32,
11
- d.vec2f,
12
- d.f32
13
- ], d.f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((angleDeg, center, width, falloff, uv, aspect) => {
8
+ const tiltShiftBlurAmount = src_default.fn([
9
+ f32,
10
+ vec2f,
11
+ f32,
12
+ f32,
13
+ vec2f,
14
+ f32
15
+ ], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((angleDeg, center, width, falloff, uv, aspect) => {
14
16
  "use gpu";
15
17
  const angleRad = __tsover_mul(angleDeg, DEG_TO_RAD);
16
- const perpVector = d.vec2f(__tsover_mul(std.sin(angleRad), -1), std.cos(angleRad));
17
- const centerPos = d.vec2f(center.x, __tsover_sub(1, center.y));
18
+ const perpVector = vec2f(__tsover_mul(sin(angleRad), -1), cos(angleRad));
19
+ const centerPos = vec2f(center.x, __tsover_sub(1, center.y));
18
20
  const centeredUV = uv.sub(centerPos);
19
- const aspectCorrectedUV = d.vec2f(__tsover_mul(centeredUV.x, aspect), centeredUV.y);
20
- const distFromLine = std.abs(std.dot(aspectCorrectedUV, perpVector));
21
+ const distFromLine = abs(dot(vec2f(__tsover_mul(centeredUV.x, aspect), centeredUV.y), perpVector));
21
22
  const focusWidth = __tsover_mul(width, .5);
22
- return std.smoothstep(focusWidth, __tsover_add(focusWidth, falloff), distFromLine);
23
+ return smoothstep(focusWidth, __tsover_add(focusWidth, falloff), distFromLine);
23
24
  }), {
24
25
  v: 1,
25
26
  name: void 0,
@@ -222,54 +223,54 @@ const tiltShiftBlurAmount = tgpu.fn([
222
223
  },
223
224
  externals: () => ({
224
225
  DEG_TO_RAD,
225
- d,
226
- std
226
+ d: data_exports,
227
+ std: std_exports
227
228
  })
228
229
  }) && $.f)({})).$name("tiltShiftBlurAmount");
229
230
  function tiltShiftFillParams() {
230
- return d.struct({
231
- angle: d.f32,
232
- centerX: d.f32,
233
- centerY: d.f32,
234
- width: d.f32,
235
- falloff: d.f32,
236
- aspect: d.f32,
237
- maxRadius: d.f32
231
+ return struct({
232
+ angle: f32,
233
+ centerX: f32,
234
+ centerY: f32,
235
+ width: f32,
236
+ falloff: f32,
237
+ aspect: f32,
238
+ maxRadius: f32
238
239
  });
239
240
  }
240
241
  function tiltShiftFillMapParams() {
241
- return d.struct({
242
- angle: d.f32,
243
- centerX: d.f32,
244
- centerY: d.f32,
245
- width: d.f32,
246
- falloff: d.f32,
247
- aspect: d.f32,
248
- inputWidth: d.f32,
249
- inputHeight: d.f32,
250
- inputMin: d.f32,
251
- inputMax: d.f32,
252
- outputMin: d.f32,
253
- outputMax: d.f32,
254
- curve: d.f32
242
+ return struct({
243
+ angle: f32,
244
+ centerX: f32,
245
+ centerY: f32,
246
+ width: f32,
247
+ falloff: f32,
248
+ aspect: f32,
249
+ inputWidth: f32,
250
+ inputHeight: f32,
251
+ inputMin: f32,
252
+ inputMax: f32,
253
+ outputMin: f32,
254
+ outputMax: f32,
255
+ curve: f32
255
256
  });
256
257
  }
257
258
  function buildTiltShiftFillGraph(computeWidth, computeHeight) {
258
259
  const Params = tiltShiftFillParams();
259
- const layout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(tgpu.bindGroupLayout({
260
- blurMap: { storageTexture: d.textureStorage2d(BLUR_MAP_FORMAT, "write-only") },
260
+ const layout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(src_default.bindGroupLayout({
261
+ blurMap: { storageTexture: textureStorage2d(BLUR_MAP_FORMAT, "write-only") },
261
262
  params: { uniform: Params }
262
263
  }), "layout");
263
264
  return {
264
265
  layout,
265
- kernel: tgpu.fn([d.u32, d.u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
266
+ kernel: src_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
266
267
  "use gpu";
267
268
  const p = layout.$.params;
268
- const u = __tsover_div(__tsover_add(d.f32(cx), .5), computeWidth);
269
- const v = __tsover_div(__tsover_add(d.f32(cy), .5), computeHeight);
270
- const blurAmount = tiltShiftBlurAmount(p.angle, d.vec2f(p.centerX, p.centerY), p.width, p.falloff, d.vec2f(u, v), p.aspect);
269
+ const u = __tsover_div(__tsover_add(f32(cx), .5), computeWidth);
270
+ const v = __tsover_div(__tsover_add(f32(cy), .5), computeHeight);
271
+ const blurAmount = tiltShiftBlurAmount(p.angle, vec2f(p.centerX, p.centerY), p.width, p.falloff, vec2f(u, v), p.aspect);
271
272
  const radius = __tsover_mul(blurAmount, p.maxRadius);
272
- std.textureStore(layout.$.blurMap, d.vec2u(cx, cy), d.vec4f(radius, 0, 0, 1));
273
+ textureStore(layout.$.blurMap, vec2u(cx, cy), vec4f(radius, 0, 0, 1));
273
274
  }), {
274
275
  v: 1,
275
276
  name: void 0,
@@ -465,11 +466,11 @@ function buildTiltShiftFillGraph(computeWidth, computeHeight) {
465
466
  },
466
467
  externals: () => ({
467
468
  layout,
468
- d,
469
+ d: data_exports,
469
470
  computeWidth,
470
471
  computeHeight,
471
472
  tiltShiftBlurAmount,
472
- std
473
+ std: std_exports
473
474
  })
474
475
  }) && $.f)({})).$name("tiltShiftFillBlurMap"),
475
476
  Params
@@ -477,30 +478,28 @@ function buildTiltShiftFillGraph(computeWidth, computeHeight) {
477
478
  }
478
479
  function buildTiltShiftFillMapGraph(computeWidth, computeHeight, channel) {
479
480
  const Params = tiltShiftFillMapParams();
480
- const layout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(tgpu.bindGroupLayout({
481
- source: { texture: d.texture2d(d.f32) },
482
- blurMap: { storageTexture: d.textureStorage2d(BLUR_MAP_FORMAT, "write-only") },
481
+ const layout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(src_default.bindGroupLayout({
482
+ source: { texture: texture2d(f32) },
483
+ blurMap: { storageTexture: textureStorage2d(BLUR_MAP_FORMAT, "write-only") },
483
484
  params: { uniform: Params }
484
485
  }), "layout");
485
486
  return {
486
487
  layout,
487
- kernel: tgpu.fn([d.u32, d.u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
488
+ kernel: src_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
488
489
  "use gpu";
489
490
  const p = layout.$.params;
490
- const u = __tsover_div(__tsover_add(d.f32(cx), .5), computeWidth);
491
- const v = __tsover_div(__tsover_add(d.f32(cy), .5), computeHeight);
492
- const blurAmount = tiltShiftBlurAmount(p.angle, d.vec2f(p.centerX, p.centerY), p.width, p.falloff, d.vec2f(u, v), p.aspect);
493
- const srcX = std.clamp(d.i32(std.round(__tsover_mul(u, p.inputWidth))), 0, d.i32(__tsover_sub(p.inputWidth, 1)));
494
- const srcY = std.clamp(d.i32(std.round(__tsover_mul(v, p.inputHeight))), 0, d.i32(__tsover_sub(p.inputHeight, 1)));
495
- const sample = std.textureLoad(layout.$.source, d.vec2u(d.u32(srcX), d.u32(srcY)), 0);
496
- const raw = channel === "alpha" ? sample.w : channel === "alphaInverted" ? __tsover_sub(1, sample.w) : channel === "luminanceInverted" ? __tsover_sub(1, std.dot(sample.xyz, d.vec3f(.2126, .7152, .0722))) : std.dot(sample.xyz, d.vec3f(.2126, .7152, .0722));
497
- const inputRange = std.max(__tsover_sub(p.inputMax, p.inputMin), 1e-4);
498
- const normalised = std.clamp(__tsover_div(__tsover_sub(raw, p.inputMin), inputRange), 0, 1);
499
- const exponent = std.pow(2, __tsover_mul(-p.curve, 2));
500
- const eased = std.pow(normalised, exponent);
501
- const maxRadius = __tsover_mul(std.mix(p.outputMin, p.outputMax, eased), .36);
491
+ const u = __tsover_div(__tsover_add(f32(cx), .5), computeWidth);
492
+ const v = __tsover_div(__tsover_add(f32(cy), .5), computeHeight);
493
+ const blurAmount = tiltShiftBlurAmount(p.angle, vec2f(p.centerX, p.centerY), p.width, p.falloff, vec2f(u, v), p.aspect);
494
+ const srcX = clamp(i32(round(__tsover_mul(u, p.inputWidth))), 0, i32(__tsover_sub(p.inputWidth, 1)));
495
+ const srcY = clamp(i32(round(__tsover_mul(v, p.inputHeight))), 0, i32(__tsover_sub(p.inputHeight, 1)));
496
+ const sample = textureLoad(layout.$.source, vec2u(u32(srcX), u32(srcY)), 0);
497
+ const raw = channel === "alpha" ? sample.w : channel === "alphaInverted" ? __tsover_sub(1, sample.w) : channel === "luminanceInverted" ? __tsover_sub(1, dot(sample.xyz, vec3f(.2126, .7152, .0722))) : dot(sample.xyz, vec3f(.2126, .7152, .0722));
498
+ const inputRange = max(__tsover_sub(p.inputMax, p.inputMin), 1e-4);
499
+ const eased = pow(clamp(__tsover_div(__tsover_sub(raw, p.inputMin), inputRange), 0, 1), pow(2, __tsover_mul(-p.curve, 2)));
500
+ const maxRadius = __tsover_mul(mix(p.outputMin, p.outputMax, eased), .36);
502
501
  const radius = __tsover_mul(blurAmount, maxRadius);
503
- std.textureStore(layout.$.blurMap, d.vec2u(cx, cy), d.vec4f(radius, 0, 0, 1));
502
+ textureStore(layout.$.blurMap, vec2u(cx, cy), vec4f(radius, 0, 0, 1));
504
503
  }), {
505
504
  v: 1,
506
505
  name: void 0,
@@ -1088,11 +1087,11 @@ function buildTiltShiftFillMapGraph(computeWidth, computeHeight, channel) {
1088
1087
  },
1089
1088
  externals: () => ({
1090
1089
  layout,
1091
- d,
1090
+ d: data_exports,
1092
1091
  computeWidth,
1093
1092
  computeHeight,
1094
1093
  tiltShiftBlurAmount,
1095
- std,
1094
+ std: std_exports,
1096
1095
  channel,
1097
1096
  INTENSITY_TO_RADIUS: .36
1098
1097
  })