shaders 3.0.443 → 3.0.445

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 (468) hide show
  1. package/dist/cli.js +2 -2
  2. package/dist/core/{AngularBlur-CJsRS1Ri.js → AngularBlur-D33jrcZd.js} +2 -2
  3. package/dist/core/{Arc-CNesL3S9.js → Arc-BG8Bpknl.js} +2 -2
  4. package/dist/core/{Ascii-z7til0PQ.js → Ascii-DE0vAAOX.js} +2 -2
  5. package/dist/core/{Aurora-BAuYUYGc.js → Aurora-Cu4JGjCD.js} +3 -3
  6. package/dist/core/{BarShift-qVwbTMcq.js → BarShift-o_IvV0t_.js} +5 -5
  7. package/dist/core/{BarnDoors-DrOAeSqj.js → BarnDoors-JraHuTwe.js} +2 -2
  8. package/dist/core/{Beam-BW6yblZw.js → Beam-DshQatlM.js} +2 -2
  9. package/dist/core/{Bend-B7PMQ3T5.js → Bend-KJzYWEJV.js} +4 -4
  10. package/dist/core/{Blob-CRJ5N0hK.js → Blob-BJxkqvOO.js} +3 -3
  11. package/dist/core/{BlockDissolve-D-6Wy66g.js → BlockDissolve-CsIQWUpY.js} +2 -2
  12. package/dist/core/{BlockNoise-Ct9Fae_7.js → BlockNoise-DVI-0PnC.js} +3 -3
  13. package/dist/core/{BlueNoise-Cu7rJuP0.js → BlueNoise-CzBN6i38.js} +2 -2
  14. package/dist/core/{Blur-BrdVVSPq.js → Blur-W95k4Lxz.js} +1 -1
  15. package/dist/core/{Boids-DIzUaLGM.js → Boids-BJ6wxFC8.js} +2 -2
  16. package/dist/core/{BokehBlur-yYb03spN.js → BokehBlur-CbOO__cN.js} +2 -2
  17. package/dist/core/{BrickPattern-BL_MOS_A.js → BrickPattern-eQv5DrKE.js} +3 -3
  18. package/dist/core/{BrightnessContrast-CiKimIcA.js → BrightnessContrast-CmH2DvaZ.js} +1 -1
  19. package/dist/core/{BrushedMetal-dvYjizvg.js → BrushedMetal-D-7M7ZuM.js} +5 -5
  20. package/dist/core/{Bulge-CogpoPKe.js → Bulge-KmBnaVMx.js} +4 -4
  21. package/dist/core/{CRTScreen-X64EnHMB.js → CRTScreen-t7dyfO5u.js} +1 -1
  22. package/dist/core/{CarbonFiber-CTy3P-Qk.js → CarbonFiber-D4jap49E.js} +4 -4
  23. package/dist/core/{Chalkboard-CnHUOHtc.js → Chalkboard-H6-0OXC3.js} +2 -2
  24. package/dist/core/{ChannelBlur-MwnpNLSZ.js → ChannelBlur-BKJfnu91.js} +1 -1
  25. package/dist/core/{CheckerWipe-CCNc70ye.js → CheckerWipe-acIaflfK.js} +2 -2
  26. package/dist/core/{Checkerboard-C97ZiLyQ.js → Checkerboard-NwKMLVHe.js} +2 -2
  27. package/dist/core/{Chevron-ABT6D1wM.js → Chevron-eBbFV2ud.js} +3 -3
  28. package/dist/core/{ChromaFlow-7tJQEFm9.js → ChromaFlow-ex7l4tTK.js} +2 -2
  29. package/dist/core/{ChromaticAberration-D7-fxyEd.js → ChromaticAberration-Bbi9vNxS.js} +2 -2
  30. package/dist/core/{Circle-I0DIAypS.js → Circle-DdFWEti1.js} +2 -2
  31. package/dist/core/{ColorWheel-CEqzzrN-.js → ColorWheel-BqcyPqcj.js} +3 -3
  32. package/dist/core/{CompressionArtifacts-C24nRoC3.js → CompressionArtifacts-DqWq-4h8.js} +1 -1
  33. package/dist/core/{ConcentricSpin-CAu-PGNH.js → ConcentricSpin-CtI1hKio.js} +5 -5
  34. package/dist/core/{ConicGradient-n12K5TLj.js → ConicGradient-HmImN4LO.js} +3 -3
  35. package/dist/core/{ContourLines-FOStIWDr.js → ContourLines-BMom2vMu.js} +2 -2
  36. package/dist/core/{CornerPin-DsUVMFcX.js → CornerPin-D_-luriU.js} +3 -3
  37. package/dist/core/{Crescent-9i_5WPA-.js → Crescent-CY6MeN9V.js} +2 -2
  38. package/dist/core/{Cross-HiA69xGL.js → Cross-ClImej9a.js} +2 -2
  39. package/dist/core/{Crystal-BBjEm9m4.js → Crystal-CMrqHLFD.js} +4 -4
  40. package/dist/core/{CurlNoise-1jifziI0.js → CurlNoise-C_QZBT5m.js} +3 -3
  41. package/dist/core/{CursorRipples-D4agAYHK.js → CursorRipples-Bmlex_IF.js} +2 -2
  42. package/dist/core/{CursorTrail-C-FrY0e2.js → CursorTrail-B68x1Cv-.js} +3 -3
  43. package/dist/core/{DataMosh-DXcM1I4Y.js → DataMosh-FZQWg5Ui.js} +1 -1
  44. package/dist/core/{DiamondGradient-CQ5jeKEc.js → DiamondGradient-C0hD1lNN.js} +3 -3
  45. package/dist/core/{DiamondWipe-B1EXgweH.js → DiamondWipe-B8rFSwsV.js} +2 -2
  46. package/dist/core/{DiffuseBlur-CmD97dHb.js → DiffuseBlur--Gn4bDwC.js} +2 -2
  47. package/dist/core/{DisplacementMap-JV_CNJfU.js → DisplacementMap-DQk8S4sK.js} +4 -4
  48. package/dist/core/{Dither-NJDWpGb3.js → Dither-rB9M7FS7.js} +2 -2
  49. package/dist/core/{DotGrid-B2w7RFcv.js → DotGrid-DszAbmy5.js} +3 -3
  50. package/dist/core/{DropShadow-CLWp-bon.js → DropShadow-BS3S178o.js} +2 -2
  51. package/dist/core/{Duotone-Be2jx-jZ.js → Duotone-Cf_ybegD.js} +2 -2
  52. package/dist/core/{Ellipse-BR6qXidK.js → Ellipse-DY8FgSSx.js} +2 -2
  53. package/dist/core/{Emboss-C8ElxLo3.js → Emboss-RxgVyKyU.js} +4 -4
  54. package/dist/core/{Engraving-D67DM--1.js → Engraving-C0OuioUr.js} +2 -2
  55. package/dist/core/{ErosionNoise-FeEMQOkR.js → ErosionNoise-B-I3VFiY.js} +2 -2
  56. package/dist/core/{Exposure-CZ1gfqpf.js → Exposure-360tdOrT.js} +1 -1
  57. package/dist/core/{FallingLines-ifuQ01oA.js → FallingLines-4sVKJMDj.js} +3 -3
  58. package/dist/core/{FilmGrain-p5sawa_f.js → FilmGrain-CgzuRidb.js} +1 -1
  59. package/dist/core/{FilmStock-BD5wv1TV.js → FilmStock-BW9k3EPE.js} +1 -1
  60. package/dist/core/{Flip-MKiLH9jJ.js → Flip-DqdxtYHS.js} +2 -2
  61. package/dist/core/{FloatingParticles-Bn8CmtwG.js → FloatingParticles-BI8Y9Gcv.js} +2 -2
  62. package/dist/core/{FlowField-BdFeRmif.js → FlowField-CV0Is569.js} +5 -5
  63. package/dist/core/{Flower-BwDBwcSk.js → Flower-IaNzANoa.js} +2 -2
  64. package/dist/core/{FlowingGradient-RYOS36eB.js → FlowingGradient-CEAAa11t.js} +3 -3
  65. package/dist/core/{FlutedGlass-Ong8W4Ih.js → FlutedGlass-CF6mZMq4.js} +3 -3
  66. package/dist/core/{Fog-C-X8msRb.js → Fog-D9OYGwhY.js} +2 -2
  67. package/dist/core/{Form3D-BZ_vaLWe.js → Form3D-CJKutcFA.js} +3 -3
  68. package/dist/core/{FractalNoise-BPj8RPkE.js → FractalNoise-DelBWQyb.js} +3 -3
  69. package/dist/core/{Frost-DmxlFu63.js → Frost-Br7b9n4L.js} +5 -5
  70. package/dist/core/{GaborNoise-Boc8ieHd.js → GaborNoise-DViNgIse.js} +3 -3
  71. package/dist/core/{Glass-D5p21MIw.js → Glass-IwPea9h1.js} +4 -4
  72. package/dist/core/{GlassTiles-BP4CzdI3.js → GlassTiles-DpPHPKv7.js} +3 -5
  73. package/dist/core/{Glitch-cJguD7jS.js → Glitch-CKmX-agV.js} +1 -1
  74. package/dist/core/{Glow-BabfcnwS.js → Glow-CVcVetaa.js} +1 -1
  75. package/dist/core/{Godrays-BpiKSlNR.js → Godrays-CNNHJzNz.js} +3 -3
  76. package/dist/core/{Goo-BaQEtOyr.js → Goo-BUXnhwTk.js} +5 -5
  77. package/dist/core/{GradientMap-BtKtW-4M.js → GradientMap-DqGEXRl9.js} +2 -2
  78. package/dist/core/{Grayscale-Bgwugyvv.js → Grayscale-DiJAjdx3.js} +1 -1
  79. package/dist/core/{Grid-5cEDkyWX.js → Grid-utmP7uyR.js} +2 -2
  80. package/dist/core/{GridDistortion-Byf4G720.js → GridDistortion-Bn6D5dfC.js} +3 -3
  81. package/dist/core/{Group-DUEQSUir.js → Group-u-o7qE0Y.js} +1 -1
  82. package/dist/core/{HTMLInCanvas-uW1O3Z-R.js → HTMLInCanvas-sK9HN-gI.js} +1 -1
  83. package/dist/core/{Halftone-BiSLVvGF.js → Halftone-C5La06l6.js} +2 -2
  84. package/dist/core/{Heart-RAGeVEVH.js → Heart-CGLx1F8D.js} +2 -2
  85. package/dist/core/{Heatmap-Ds65scO7.js → Heatmap-CE5DLeJp.js} +5 -5
  86. package/dist/core/{HexGrid-H1N5Y1XD.js → HexGrid-CqB-yMWN.js} +2 -2
  87. package/dist/core/{Hologram-DpDfyeSz.js → Hologram-CctodmpA.js} +5 -5
  88. package/dist/core/{Holographic-Ckubuqn8.js → Holographic-DSz4qfkn.js} +5 -5
  89. package/dist/core/{HueShift-C_a5UVHy.js → HueShift-Cfq-ijQP.js} +1 -1
  90. package/dist/core/{ImageTexture-CM-dPJQ4.js → ImageTexture-DdzAYFTi.js} +1 -1
  91. package/dist/core/{InkFlow-CY7sCKpI.js → InkFlow-CCPfoQXs.js} +2 -2
  92. package/dist/core/{Invert-DhHrtwHQ.js → Invert-CtUHcYmv.js} +1 -1
  93. package/dist/core/{IrisWipe-BnOMUdEV.js → IrisWipe-DWVFMn81.js} +2 -2
  94. package/dist/core/{IsometricCubes-CXPz62PB.js → IsometricCubes-m-mYnbqN.js} +2 -2
  95. package/dist/core/{Kaleidoscope-CSgi0E5B.js → Kaleidoscope-DMNLVgx6.js} +4 -4
  96. package/dist/core/{KeyFrames-C3I4poq8.js → KeyFrames-jgrfR3Hj.js} +2 -2
  97. package/dist/core/{LensFlare-DxvbKXgt.js → LensFlare-CuWJsfwE.js} +3 -3
  98. package/dist/core/{LightEdge-niXz_FAk.js → LightEdge-WMxb-xKB.js} +5 -5
  99. package/dist/core/{LightLeak-B7Pt1tt4.js → LightLeak-DfOngFp7.js} +3 -3
  100. package/dist/core/{LinearBlur-CXNcduWQ.js → LinearBlur-iLXYGof_.js} +2 -2
  101. package/dist/core/{LinearGradient-CYiaWIXd.js → LinearGradient-DLrJban6.js} +3 -3
  102. package/dist/core/{LinearWipe-gwLhEveK.js → LinearWipe-C_fWBl4i.js} +2 -2
  103. package/dist/core/{LiquidMetal-D0sgLjcd.js → LiquidMetal-DHM8kVNr.js} +5 -5
  104. package/dist/core/{Liquify-h08a8S-C.js → Liquify-FQWL8j4t.js} +4 -4
  105. package/dist/core/{MagneticFilings-BlNWPVwS.js → MagneticFilings-BUzSkycD.js} +2 -2
  106. package/dist/core/{Marble-bps2lOWc.js → Marble-BnHffB3C.js} +3 -3
  107. package/dist/core/{Mirror-8miSUAyZ.js → Mirror-B_v4FunG.js} +3 -3
  108. package/dist/core/{MultiPointGradient-C-9_Q6CM.js → MultiPointGradient-5NGBm90u.js} +2 -2
  109. package/dist/core/{Neon-RDh1tAjH.js → Neon-BjBSg2FR.js} +4 -4
  110. package/dist/core/{NoiseDissolve-DjlWGdUc.js → NoiseDissolve-kDP6-h9F.js} +2 -2
  111. package/dist/core/{ObjectTracker-DW4aEBRv.js → ObjectTracker-vU1bVmIJ.js} +3 -3
  112. package/dist/core/{PagePeel-JsbScYi4.js → PagePeel-BgDvgtIV.js} +1 -1
  113. package/dist/core/{Paper-BGTU0GOF.js → Paper-_alN4JdS.js} +1 -1
  114. package/dist/core/{Parallelogram-RC3MxzlN.js → Parallelogram--Cil139y.js} +2 -2
  115. package/dist/core/{ParticleField-XypD7Eru.js → ParticleField-DZ7um7tu.js} +1 -1
  116. package/dist/core/{ParticleFlow-DBw7m9C6.js → ParticleFlow-CmRP2S8W.js} +2 -2
  117. package/dist/core/{Particles-CvpZvfe3.js → Particles-DFw2E9SE.js} +3 -3
  118. package/dist/core/{PerlinNoise-CHVaarmz.js → PerlinNoise-BmNpwJtM.js} +3 -3
  119. package/dist/core/{Perspective-zyCZAb3_.js → Perspective-DVcUW7jR.js} +4 -4
  120. package/dist/core/{PixelSort-B-zefB9S.js → PixelSort-Bz5dIrqH.js} +1 -1
  121. package/dist/core/{PixelThrow-BZ6erf3G.js → PixelThrow-DEMX8VOw.js} +2 -2
  122. package/dist/core/{Pixelate-D1e7buDQ.js → Pixelate-D-eWrHTE.js} +1 -1
  123. package/dist/core/{Plasma-CBrx8Xu-.js → Plasma-C_EIkpQi.js} +3 -3
  124. package/dist/core/{Plastic-CcS4iAJM.js → Plastic-CYeefb91.js} +5 -5
  125. package/dist/core/{PolarCoordinates-B9SuYLgF.js → PolarCoordinates-DmpUBdGX.js} +3 -3
  126. package/dist/core/{Polygon-N0l1KfIO.js → Polygon-DEEUdZd6.js} +2 -2
  127. package/dist/core/{Posterize-u2et79Pv.js → Posterize-B8oVbNZL.js} +1 -1
  128. package/dist/core/{Prism-BnDsPBcD.js → Prism-Btijlm0t.js} +3 -3
  129. package/dist/core/{ProgressiveBlur-D9FiTJQy.js → ProgressiveBlur-BoRFh6Tn.js} +2 -2
  130. package/dist/core/{RadialGradient-C4oB78ya.js → RadialGradient-CNDiMPZM.js} +3 -3
  131. package/dist/core/{RadialWipe-Dzb7i6wy.js → RadialWipe-C213vCrJ.js} +2 -2
  132. package/dist/core/{RandomBars-DO9j43mN.js → RandomBars-hOY9hNS7.js} +2 -2
  133. package/dist/core/{ReactionDiffusion-DG1NSPhM.js → ReactionDiffusion--UjME4_r.js} +2 -2
  134. package/dist/core/{RectangularCoordinates-Ck1gXdGx.js → RectangularCoordinates-DB7rPJ2Z.js} +3 -3
  135. package/dist/core/{ReflectivePlane-DFQDgLYC.js → ReflectivePlane-D92GjNLR.js} +2 -2
  136. package/dist/core/{Repeater-CT35_BhW.js → Repeater-CJjylN6O.js} +2 -2
  137. package/dist/core/{Ring-DywDgKDv.js → Ring-CJYQP2Qm.js} +2 -2
  138. package/dist/core/{RippleWipe-ePWlg-DT.js → RippleWipe-DJlrObO0.js} +2 -2
  139. package/dist/core/{Ripples-fTSMeqiE.js → Ripples-Brj67b7H.js} +3 -3
  140. package/dist/core/{RoundedRect-B0lxuFfM.js → RoundedRect-3vfFsHAl.js} +2 -2
  141. package/dist/core/{Saturation-ClaD54dk.js → Saturation-lx3DV3Up.js} +1 -1
  142. package/dist/core/{Scratches-D8ZIBZ50.js → Scratches-CMFr8AfL.js} +3 -3
  143. package/dist/core/{Sharpness-CsnT4s1o.js → Sharpness-ByZbUAd0.js} +1 -1
  144. package/dist/core/{Shatter-D_V7GBel.js → Shatter-B1_rLacw.js} +2 -2
  145. package/dist/core/{SimplexNoise-tI2G3Wzn.js → SimplexNoise-zItLLG1j.js} +3 -3
  146. package/dist/core/{SineWave-BGsYyEFg.js → SineWave-BvrhRcvv.js} +3 -3
  147. package/dist/core/{SliceWipe-s4pWdINK.js → SliceWipe-9bUWTClo.js} +1 -1
  148. package/dist/core/{Smoke-C3SLe_rD.js → Smoke-YixCTJbh.js} +3 -3
  149. package/dist/core/{SmokeFill-BuKZtbX8.js → SmokeFill-Cccbyi4g.js} +4 -4
  150. package/dist/core/{SmokeFlow-5fnVH2a9.js → SmokeFlow-DJ3sQPH1.js} +3 -3
  151. package/dist/core/{Solarize-TP85IPV7.js → Solarize-CZeTsJG8.js} +1 -1
  152. package/dist/core/{SolidColor-16e4q89i.js → SolidColor-DB8l6xRl.js} +1 -1
  153. package/dist/core/{Spherize-C4qsnql6.js → Spherize-BdYP0Auv.js} +3 -3
  154. package/dist/core/{Spiral-rPHDFACm.js → Spiral-PPqgFMRM.js} +3 -3
  155. package/dist/core/{Star-BDFhZWLo.js → Star-mgLhY4e_.js} +2 -2
  156. package/dist/core/{Stone-CCXo9IgA.js → Stone-CehIcoVu.js} +2 -2
  157. package/dist/core/{Strands-DCzYUsCX.js → Strands-Dzj-5h31.js} +3 -3
  158. package/dist/core/{Stretch-CjhYXAth.js → Stretch-C82iJhQu.js} +4 -4
  159. package/dist/core/{Stripes-CN2TFWGw.js → Stripes-C3XL9mWC.js} +3 -3
  160. package/dist/core/{StudioBackground-I_XxtKjr.js → StudioBackground-CDpLmvMH.js} +3 -3
  161. package/dist/core/{SunBurst-CGQkdsXl.js → SunBurst-fFeTV8O4.js} +3 -3
  162. package/dist/core/{Surface3D-CpCPTs0u.js → Surface3D-BFGuR3YZ.js} +2 -2
  163. package/dist/core/{Swirl-BCnlG3G8.js → Swirl-DGZs_YDx.js} +3 -3
  164. package/dist/core/{Teardrop-DX-YZkNC.js → Teardrop-DN7t-3HU.js} +2 -2
  165. package/dist/core/{Text-oI5d7_UD.js → Text-DuQnSDiW.js} +6 -5
  166. package/dist/core/{ThinFilm-CEYaV4nn.js → ThinFilm-DhQXCGw9.js} +4 -4
  167. package/dist/core/{TiltShift-C8GluqAm.js → TiltShift-CpHBxw5I.js} +2 -2
  168. package/dist/core/{TimeTrail-CPiSo5Of.js → TimeTrail-j89dMqNU.js} +2 -2
  169. package/dist/core/{Tint-NA7BO-Qk.js → Tint-WmBROyUm.js} +2 -2
  170. package/dist/core/{Trapezoid-BOGSQvW5.js → Trapezoid-RrEwHfyH.js} +2 -2
  171. package/dist/core/{TriangularGrid-Zx3I4CqA.js → TriangularGrid-D7r3Nhss.js} +3 -3
  172. package/dist/core/{Tritone-Bl69W4Y4.js → Tritone-BREi33uL.js} +2 -2
  173. package/dist/core/{Truchet-RJI0-v6x.js → Truchet-CTjP4x60.js} +2 -2
  174. package/dist/core/{Twirl-CrIawDs2.js → Twirl-Bvk8-3JT.js} +4 -4
  175. package/dist/core/{VHS-B12KbScc.js → VHS-et86dWDU.js} +1 -1
  176. package/dist/core/{VenetianBlinds-CGfPlhGd.js → VenetianBlinds-Bv0f2lFw.js} +2 -2
  177. package/dist/core/{Vesica-DekjxkHL.js → Vesica-BV2Sz5VV.js} +2 -2
  178. package/dist/core/{Vibrance-DKKduAD8.js → Vibrance-Q9Mrvfs-.js} +1 -1
  179. package/dist/core/{VideoTexture-1xg_a680.js → VideoTexture-BUY69Gqp.js} +1 -1
  180. package/dist/core/{Vignette-CDRCMNb2.js → Vignette-DyScJQWj.js} +2 -2
  181. package/dist/core/{Voronoi-EWj3WFqv.js → Voronoi-DxoT7iRa.js} +3 -3
  182. package/dist/core/{Water-BdGrOEuE.js → Water-CE1rY4LR.js} +5 -5
  183. package/dist/core/{Watercolor-BGIcnGZu.js → Watercolor-Buk5FkKR.js} +2 -2
  184. package/dist/core/{WaveDistortion-BNlrOaur.js → WaveDistortion-Ca6y77xt.js} +5 -5
  185. package/dist/core/{WaveletNoise-Jv-694xX.js → WaveletNoise-Y7LdptK_.js} +3 -3
  186. package/dist/core/{Weave-HNS6xvOs.js → Weave-CTpPvAhK.js} +2 -2
  187. package/dist/core/{WebcamTexture-DVKxGpWI.js → WebcamTexture-85gdzpo_.js} +3 -2
  188. package/dist/core/{Wool-D7uM0JRs.js → Wool-DJJkx7S2.js} +2 -2
  189. package/dist/core/{WorleyNoise-DsDWmRCp.js → WorleyNoise-C_CHhfMF.js} +3 -3
  190. package/dist/core/{ZoomBlur-S2GfQojf.js → ZoomBlur-8tmVWx1n.js} +2 -2
  191. package/dist/core/{coords-0A7CojvN.js → coords-BkIjixe_.js} +717 -44
  192. package/dist/core/{glass-BjUqcmHP.js → glass-sOqjtPJD.js} +1 -1
  193. package/dist/core/gpu/composer.d.ts +7 -0
  194. package/dist/core/gpu/composer.d.ts.map +1 -1
  195. package/dist/core/gpu/index.d.ts +22 -3
  196. package/dist/core/gpu/index.d.ts.map +1 -1
  197. package/dist/core/gpu/kit/edges.d.ts +19 -1
  198. package/dist/core/gpu/kit/edges.d.ts.map +1 -1
  199. package/dist/core/gpu/kit/index.d.ts +1 -0
  200. package/dist/core/gpu/kit/index.d.ts.map +1 -1
  201. package/dist/core/gpu/kit/sampling.d.ts +34 -0
  202. package/dist/core/gpu/kit/sampling.d.ts.map +1 -0
  203. package/dist/core/gpu/kit/sdf.d.ts.map +1 -1
  204. package/dist/core/gpu/kit/uvTransform.d.ts +13 -3
  205. package/dist/core/gpu/kit/uvTransform.d.ts.map +1 -1
  206. package/dist/core/gpu/passManager.d.ts +5 -1
  207. package/dist/core/gpu/passManager.d.ts.map +1 -1
  208. package/dist/core/gpu/porters.d.ts +1 -0
  209. package/dist/core/gpu/porters.d.ts.map +1 -1
  210. package/dist/core/gpu/root.d.ts +26 -4
  211. package/dist/core/gpu/root.d.ts.map +1 -1
  212. package/dist/core/gpu/support.d.ts +119 -0
  213. package/dist/core/gpu/support.d.ts.map +1 -0
  214. package/dist/core/gpu/uniformStore.d.ts.map +1 -1
  215. package/dist/core/index.d.ts +3 -0
  216. package/dist/core/index.d.ts.map +1 -1
  217. package/dist/core/index.js +457 -358
  218. package/dist/core/{noiseColor-w3B94vmT.js → noiseColor-CY6QVFgB.js} +2 -2
  219. package/dist/core/{porters-B1jqpcE3.js → porters-Bl3WB9VW.js} +2 -2
  220. package/dist/core/presetRenderer.d.ts +13 -1
  221. package/dist/core/presetRenderer.d.ts.map +1 -1
  222. package/dist/core/registry.js +199 -198
  223. package/dist/core/shaderRegistry-CSTwovjI.js +425 -0
  224. package/dist/core/shaders/AngularBlur/index.js +5 -4
  225. package/dist/core/shaders/Arc/index.js +5 -4
  226. package/dist/core/shaders/Ascii/index.js +5 -4
  227. package/dist/core/shaders/Aurora/index.js +5 -4
  228. package/dist/core/shaders/BarShift/index.js +5 -4
  229. package/dist/core/shaders/BarnDoors/index.js +5 -4
  230. package/dist/core/shaders/Beam/index.js +5 -4
  231. package/dist/core/shaders/Bend/index.js +5 -4
  232. package/dist/core/shaders/Blob/index.js +5 -4
  233. package/dist/core/shaders/BlockDissolve/index.js +5 -4
  234. package/dist/core/shaders/BlockNoise/index.js +6 -5
  235. package/dist/core/shaders/BlueNoise/index.js +6 -5
  236. package/dist/core/shaders/Blur/index.js +5 -4
  237. package/dist/core/shaders/Boids/index.js +5 -4
  238. package/dist/core/shaders/BokehBlur/index.js +5 -4
  239. package/dist/core/shaders/BrickPattern/index.js +5 -4
  240. package/dist/core/shaders/BrightnessContrast/index.js +5 -4
  241. package/dist/core/shaders/BrushedMetal/index.js +7 -6
  242. package/dist/core/shaders/Bulge/index.js +5 -4
  243. package/dist/core/shaders/CRTScreen/index.js +5 -4
  244. package/dist/core/shaders/CarbonFiber/index.js +7 -6
  245. package/dist/core/shaders/Chalkboard/index.js +5 -4
  246. package/dist/core/shaders/ChannelBlur/index.js +5 -4
  247. package/dist/core/shaders/CheckerWipe/index.js +5 -4
  248. package/dist/core/shaders/Checkerboard/index.js +5 -4
  249. package/dist/core/shaders/Chevron/index.js +5 -4
  250. package/dist/core/shaders/ChromaFlow/index.js +5 -4
  251. package/dist/core/shaders/ChromaticAberration/index.js +5 -4
  252. package/dist/core/shaders/Circle/index.js +5 -4
  253. package/dist/core/shaders/ColorWheel/index.js +5 -4
  254. package/dist/core/shaders/CompressionArtifacts/index.js +5 -4
  255. package/dist/core/shaders/ConcentricSpin/index.js +5 -4
  256. package/dist/core/shaders/ConicGradient/index.js +5 -4
  257. package/dist/core/shaders/ContourLines/index.js +5 -4
  258. package/dist/core/shaders/CornerPin/index.js +5 -4
  259. package/dist/core/shaders/Crescent/index.js +5 -4
  260. package/dist/core/shaders/Cross/index.js +5 -4
  261. package/dist/core/shaders/Crystal/index.js +7 -6
  262. package/dist/core/shaders/CurlNoise/index.js +6 -5
  263. package/dist/core/shaders/CursorRipples/index.js +5 -4
  264. package/dist/core/shaders/CursorTrail/index.js +5 -4
  265. package/dist/core/shaders/DataMosh/index.js +5 -4
  266. package/dist/core/shaders/DiamondGradient/index.js +5 -4
  267. package/dist/core/shaders/DiamondWipe/index.js +5 -4
  268. package/dist/core/shaders/DiffuseBlur/index.js +5 -4
  269. package/dist/core/shaders/DisplacementMap/index.js +5 -4
  270. package/dist/core/shaders/Dither/index.js +5 -4
  271. package/dist/core/shaders/DotGrid/index.js +5 -4
  272. package/dist/core/shaders/DropShadow/index.js +5 -4
  273. package/dist/core/shaders/Duotone/index.js +5 -4
  274. package/dist/core/shaders/Ellipse/index.js +5 -4
  275. package/dist/core/shaders/Emboss/index.js +7 -6
  276. package/dist/core/shaders/Engraving/index.js +5 -4
  277. package/dist/core/shaders/ErosionNoise/index.js +6 -5
  278. package/dist/core/shaders/Exposure/index.js +5 -4
  279. package/dist/core/shaders/FallingLines/index.js +5 -4
  280. package/dist/core/shaders/FilmGrain/index.js +5 -4
  281. package/dist/core/shaders/FilmStock/index.js +5 -4
  282. package/dist/core/shaders/Flip/index.js +5 -4
  283. package/dist/core/shaders/FloatingParticles/index.js +5 -4
  284. package/dist/core/shaders/FlowField/index.js +5 -4
  285. package/dist/core/shaders/Flower/index.js +5 -4
  286. package/dist/core/shaders/FlowingGradient/index.js +5 -4
  287. package/dist/core/shaders/FlutedGlass/index.js +5 -4
  288. package/dist/core/shaders/Fog/index.js +5 -4
  289. package/dist/core/shaders/Form3D/index.js +5 -4
  290. package/dist/core/shaders/FractalNoise/index.js +5 -4
  291. package/dist/core/shaders/Frost/index.js +7 -6
  292. package/dist/core/shaders/GaborNoise/index.js +6 -5
  293. package/dist/core/shaders/Glass/index.js +7 -6
  294. package/dist/core/shaders/GlassTiles/index.d.ts.map +1 -1
  295. package/dist/core/shaders/GlassTiles/index.js +5 -4
  296. package/dist/core/shaders/Glitch/index.js +5 -4
  297. package/dist/core/shaders/Glow/index.js +5 -4
  298. package/dist/core/shaders/Godrays/index.js +5 -4
  299. package/dist/core/shaders/Goo/index.js +7 -6
  300. package/dist/core/shaders/GradientMap/index.js +5 -4
  301. package/dist/core/shaders/Grayscale/index.js +5 -4
  302. package/dist/core/shaders/Grid/index.js +5 -4
  303. package/dist/core/shaders/GridDistortion/index.js +5 -4
  304. package/dist/core/shaders/Group/index.js +5 -4
  305. package/dist/core/shaders/HTMLInCanvas/index.js +5 -4
  306. package/dist/core/shaders/Halftone/index.js +5 -4
  307. package/dist/core/shaders/Heart/index.js +5 -4
  308. package/dist/core/shaders/Heatmap/index.js +7 -6
  309. package/dist/core/shaders/HexGrid/index.js +5 -4
  310. package/dist/core/shaders/Hologram/index.js +7 -6
  311. package/dist/core/shaders/Holographic/index.js +7 -6
  312. package/dist/core/shaders/HueShift/index.js +5 -4
  313. package/dist/core/shaders/ImageTexture/index.js +5 -4
  314. package/dist/core/shaders/InkFlow/index.js +5 -4
  315. package/dist/core/shaders/Invert/index.js +5 -4
  316. package/dist/core/shaders/IrisWipe/index.js +5 -4
  317. package/dist/core/shaders/IsometricCubes/index.js +5 -4
  318. package/dist/core/shaders/Kaleidoscope/index.js +5 -4
  319. package/dist/core/shaders/KeyFrames/index.js +5 -4
  320. package/dist/core/shaders/LensFlare/index.js +5 -4
  321. package/dist/core/shaders/LightEdge/index.js +7 -6
  322. package/dist/core/shaders/LightLeak/index.js +5 -4
  323. package/dist/core/shaders/LinearBlur/index.js +5 -4
  324. package/dist/core/shaders/LinearGradient/index.js +5 -4
  325. package/dist/core/shaders/LinearWipe/index.js +5 -4
  326. package/dist/core/shaders/LiquidMetal/index.js +7 -6
  327. package/dist/core/shaders/Liquify/index.js +5 -4
  328. package/dist/core/shaders/MagneticFilings/index.js +5 -4
  329. package/dist/core/shaders/Marble/index.js +5 -4
  330. package/dist/core/shaders/Mirror/index.js +5 -4
  331. package/dist/core/shaders/MultiPointGradient/index.js +5 -4
  332. package/dist/core/shaders/Neon/index.js +6 -5
  333. package/dist/core/shaders/NoiseDissolve/index.js +5 -4
  334. package/dist/core/shaders/ObjectTracker/index.js +6 -5
  335. package/dist/core/shaders/PagePeel/index.js +5 -4
  336. package/dist/core/shaders/Paper/index.js +5 -4
  337. package/dist/core/shaders/Parallelogram/index.js +5 -4
  338. package/dist/core/shaders/ParticleField/index.js +5 -4
  339. package/dist/core/shaders/ParticleFlow/index.js +5 -4
  340. package/dist/core/shaders/Particles/index.js +6 -5
  341. package/dist/core/shaders/PerlinNoise/index.js +6 -5
  342. package/dist/core/shaders/Perspective/index.js +5 -4
  343. package/dist/core/shaders/PixelSort/index.js +5 -4
  344. package/dist/core/shaders/PixelThrow/index.js +5 -4
  345. package/dist/core/shaders/Pixelate/index.js +5 -4
  346. package/dist/core/shaders/Plasma/index.js +5 -4
  347. package/dist/core/shaders/Plastic/index.js +7 -6
  348. package/dist/core/shaders/PolarCoordinates/index.js +5 -4
  349. package/dist/core/shaders/Polygon/index.js +5 -4
  350. package/dist/core/shaders/Posterize/index.js +5 -4
  351. package/dist/core/shaders/Prism/index.js +5 -4
  352. package/dist/core/shaders/ProgressiveBlur/index.js +5 -4
  353. package/dist/core/shaders/RadialGradient/index.js +5 -4
  354. package/dist/core/shaders/RadialWipe/index.js +5 -4
  355. package/dist/core/shaders/RandomBars/index.js +5 -4
  356. package/dist/core/shaders/ReactionDiffusion/index.js +5 -4
  357. package/dist/core/shaders/RectangularCoordinates/index.js +5 -4
  358. package/dist/core/shaders/ReflectivePlane/index.js +5 -4
  359. package/dist/core/shaders/Repeater/index.js +5 -4
  360. package/dist/core/shaders/Ring/index.js +5 -4
  361. package/dist/core/shaders/RippleWipe/index.js +5 -4
  362. package/dist/core/shaders/Ripples/index.js +5 -4
  363. package/dist/core/shaders/RoundedRect/index.js +5 -4
  364. package/dist/core/shaders/Saturation/index.js +5 -4
  365. package/dist/core/shaders/Scratches/index.js +6 -5
  366. package/dist/core/shaders/Sharpness/index.js +5 -4
  367. package/dist/core/shaders/Shatter/index.js +5 -4
  368. package/dist/core/shaders/SimplexNoise/index.js +5 -4
  369. package/dist/core/shaders/SineWave/index.js +5 -4
  370. package/dist/core/shaders/SliceWipe/index.js +5 -4
  371. package/dist/core/shaders/Smoke/index.js +5 -4
  372. package/dist/core/shaders/SmokeFill/index.js +7 -6
  373. package/dist/core/shaders/SmokeFlow/index.js +5 -4
  374. package/dist/core/shaders/Solarize/index.js +5 -4
  375. package/dist/core/shaders/SolidColor/index.js +2 -2
  376. package/dist/core/shaders/Spherize/index.d.ts.map +1 -1
  377. package/dist/core/shaders/Spherize/index.js +5 -4
  378. package/dist/core/shaders/Spiral/index.js +5 -4
  379. package/dist/core/shaders/Star/index.js +5 -4
  380. package/dist/core/shaders/Stone/index.js +4 -3
  381. package/dist/core/shaders/Strands/index.js +5 -4
  382. package/dist/core/shaders/Stretch/index.js +5 -4
  383. package/dist/core/shaders/Stripes/index.js +5 -4
  384. package/dist/core/shaders/StudioBackground/index.js +5 -4
  385. package/dist/core/shaders/SunBurst/index.js +5 -4
  386. package/dist/core/shaders/Surface3D/index.js +5 -4
  387. package/dist/core/shaders/Swirl/index.js +5 -4
  388. package/dist/core/shaders/Teardrop/index.js +5 -4
  389. package/dist/core/shaders/Text/index.d.ts.map +1 -1
  390. package/dist/core/shaders/Text/index.js +6 -5
  391. package/dist/core/shaders/ThinFilm/index.js +6 -5
  392. package/dist/core/shaders/TiltShift/index.js +5 -4
  393. package/dist/core/shaders/TimeTrail/index.js +5 -4
  394. package/dist/core/shaders/Tint/index.js +5 -4
  395. package/dist/core/shaders/Trapezoid/index.js +5 -4
  396. package/dist/core/shaders/TriangularGrid/index.js +5 -4
  397. package/dist/core/shaders/Tritone/index.js +5 -4
  398. package/dist/core/shaders/Truchet/index.js +5 -4
  399. package/dist/core/shaders/Twirl/index.js +5 -4
  400. package/dist/core/shaders/VHS/index.js +5 -4
  401. package/dist/core/shaders/VenetianBlinds/index.js +5 -4
  402. package/dist/core/shaders/Vesica/index.js +5 -4
  403. package/dist/core/shaders/Vibrance/index.js +5 -4
  404. package/dist/core/shaders/VideoTexture/index.js +5 -4
  405. package/dist/core/shaders/Vignette/index.js +5 -4
  406. package/dist/core/shaders/Voronoi/index.js +5 -4
  407. package/dist/core/shaders/Water/index.js +7 -6
  408. package/dist/core/shaders/Watercolor/index.js +5 -4
  409. package/dist/core/shaders/WaveDistortion/index.js +5 -4
  410. package/dist/core/shaders/WaveletNoise/index.js +6 -5
  411. package/dist/core/shaders/Weave/index.js +5 -4
  412. package/dist/core/shaders/WebcamTexture/index.js +5 -4
  413. package/dist/core/shaders/Wool/index.js +4 -3
  414. package/dist/core/shaders/WorleyNoise/index.js +5 -4
  415. package/dist/core/shaders/ZoomBlur/index.js +5 -4
  416. package/dist/core/{shapeEffectBounds-DRyn6AvG.js → shapeEffectBounds-Cl58vRlg.js} +1 -1
  417. package/dist/core/support-6QRFK3xB.js +74 -0
  418. package/dist/core/telemetry/collector.d.ts.map +1 -1
  419. package/dist/core/telemetry/index.js +6 -5
  420. package/dist/core/utilities/boundingBox.d.ts +14 -0
  421. package/dist/core/utilities/boundingBox.d.ts.map +1 -1
  422. package/dist/core/utilities/transformations/index.js +1 -1
  423. package/dist/js/bundle.js +162 -162
  424. package/dist/js/createShader.d.ts.map +1 -1
  425. package/dist/js/createShader.js +43 -13
  426. package/dist/js/createSharedDevice.d.ts +11 -9
  427. package/dist/js/createSharedDevice.d.ts.map +1 -1
  428. package/dist/js/createSharedDevice.js +2 -1
  429. package/dist/js/index.d.ts +2 -0
  430. package/dist/js/index.d.ts.map +1 -1
  431. package/dist/js/index.js +2 -1
  432. package/dist/js/types.d.ts +40 -10
  433. package/dist/js/types.d.ts.map +1 -1
  434. package/dist/react/Shader.js +27 -11
  435. package/dist/react/bundle.js +159 -159
  436. package/dist/react/engine/Shader.d.ts +7 -0
  437. package/dist/react/engine/Shader.d.ts.map +1 -1
  438. package/dist/react/index.d.ts +2 -0
  439. package/dist/react/index.d.ts.map +1 -1
  440. package/dist/react/index.js +2 -1
  441. package/dist/solid/engine/Preview.js +1 -0
  442. package/dist/solid/engine/Shader.d.ts +7 -0
  443. package/dist/solid/engine/Shader.d.ts.map +1 -1
  444. package/dist/solid/engine/Shader.js +29 -10
  445. package/dist/solid/index.d.ts +2 -0
  446. package/dist/solid/index.d.ts.map +1 -1
  447. package/dist/solid/index.js +6 -1
  448. package/dist/svelte/engine/Shader.svelte.d.ts +7 -0
  449. package/dist/svelte/index.d.ts +2 -0
  450. package/dist/svelte/index.js +27 -11
  451. package/dist/svelte/source/engine/Shader.svelte +49 -13
  452. package/dist/svelte/source/index.js +2 -0
  453. package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +41 -24
  454. package/dist/vue/engine/Shader.vue.d.ts +9 -1
  455. package/dist/vue/engine/Shader.vue.d.ts.map +1 -1
  456. package/dist/vue/index.d.ts +2 -0
  457. package/dist/vue/index.d.ts.map +1 -1
  458. package/dist/vue/index.js +2 -1
  459. package/package.json +1 -13
  460. package/dist/core/shaderRegistry-BrbiIqjD.js +0 -425
  461. package/dist/pixi/createShaderSprite.d.ts +0 -54
  462. package/dist/pixi/createShaderSprite.d.ts.map +0 -1
  463. package/dist/pixi/index.d.ts +0 -20
  464. package/dist/pixi/index.d.ts.map +0 -1
  465. package/dist/pixi/index.js +0 -153
  466. /package/dist/core/{fonts-BLmvxkGd.js → fonts-BtGjHq1w.js} +0 -0
  467. /package/dist/core/{noiseStylize-4za6Obes.js → noiseStylize-BsZQT7ig.js} +0 -0
  468. /package/dist/core/{transformations-P50Uo_Ju.js → transformations-t0d2-uSX.js} +0 -0
@@ -1,425 +0,0 @@
1
- import { n as componentDefinition$107 } from "./Neon-RDh1tAjH.js";
2
- import { n as componentDefinition$51 } from "./Emboss-C8ElxLo3.js";
3
- import { n as componentDefinition$65 } from "./Form3D-BZ_vaLWe.js";
4
- import { n as componentDefinition$164 } from "./ThinFilm-CEYaV4nn.js";
5
- import { a as componentDefinition } from "./AngularBlur-CJsRS1Ri.js";
6
- import { r as componentDefinition$1 } from "./Arc-CNesL3S9.js";
7
- import { a as componentDefinition$2 } from "./Ascii-z7til0PQ.js";
8
- import { a as componentDefinition$3 } from "./Aurora-BAuYUYGc.js";
9
- import { r as componentDefinition$4 } from "./BarnDoors-DrOAeSqj.js";
10
- import { a as componentDefinition$5 } from "./BarShift-qVwbTMcq.js";
11
- import { r as componentDefinition$6 } from "./Beam-BW6yblZw.js";
12
- import { r as componentDefinition$7 } from "./Bend-B7PMQ3T5.js";
13
- import { a as componentDefinition$8 } from "./Blob-CRJ5N0hK.js";
14
- import { r as componentDefinition$9 } from "./BlockDissolve-D-6Wy66g.js";
15
- import { r as componentDefinition$10 } from "./BlockNoise-Ct9Fae_7.js";
16
- import { r as componentDefinition$11 } from "./BlueNoise-Cu7rJuP0.js";
17
- import { i as componentDefinition$12 } from "./Blur-BrdVVSPq.js";
18
- import { s as componentDefinition$13 } from "./Boids-DIzUaLGM.js";
19
- import { c as componentDefinition$14 } from "./BokehBlur-yYb03spN.js";
20
- import { r as componentDefinition$15 } from "./BrickPattern-BL_MOS_A.js";
21
- import { r as componentDefinition$16 } from "./BrightnessContrast-CiKimIcA.js";
22
- import { i as componentDefinition$17 } from "./BrushedMetal-dvYjizvg.js";
23
- import { r as componentDefinition$18 } from "./Bulge-CogpoPKe.js";
24
- import { r as componentDefinition$19 } from "./CarbonFiber-CTy3P-Qk.js";
25
- import { i as componentDefinition$20 } from "./Chalkboard-CnHUOHtc.js";
26
- import { a as componentDefinition$21 } from "./ChannelBlur-MwnpNLSZ.js";
27
- import { a as componentDefinition$22 } from "./Checkerboard-C97ZiLyQ.js";
28
- import { r as componentDefinition$23 } from "./CheckerWipe-CCNc70ye.js";
29
- import { r as componentDefinition$24 } from "./Chevron-ABT6D1wM.js";
30
- import { i as componentDefinition$25 } from "./ChromaFlow-7tJQEFm9.js";
31
- import { r as componentDefinition$26 } from "./ChromaticAberration-D7-fxyEd.js";
32
- import { r as componentDefinition$27 } from "./Circle-I0DIAypS.js";
33
- import { o as componentDefinition$28 } from "./ColorWheel-CEqzzrN-.js";
34
- import { r as componentDefinition$29 } from "./CompressionArtifacts-C24nRoC3.js";
35
- import { n as componentDefinition$30 } from "./ConcentricSpin-CAu-PGNH.js";
36
- import { n as componentDefinition$31 } from "./ConicGradient-n12K5TLj.js";
37
- import { n as componentDefinition$32 } from "./ContourLines-FOStIWDr.js";
38
- import { n as componentDefinition$33 } from "./CornerPin-DsUVMFcX.js";
39
- import { n as componentDefinition$34 } from "./Crescent-9i_5WPA-.js";
40
- import { n as componentDefinition$35 } from "./Cross-HiA69xGL.js";
41
- import { n as componentDefinition$36 } from "./CRTScreen-X64EnHMB.js";
42
- import { r as componentDefinition$37 } from "./Crystal-BBjEm9m4.js";
43
- import { n as componentDefinition$38 } from "./CurlNoise-1jifziI0.js";
44
- import { n as componentDefinition$39 } from "./CursorRipples-D4agAYHK.js";
45
- import { n as componentDefinition$40 } from "./CursorTrail-C-FrY0e2.js";
46
- import { n as componentDefinition$41 } from "./DataMosh-DXcM1I4Y.js";
47
- import { n as componentDefinition$42 } from "./DiamondGradient-CQ5jeKEc.js";
48
- import { n as componentDefinition$43 } from "./DiamondWipe-B1EXgweH.js";
49
- import { n as componentDefinition$44 } from "./DiffuseBlur-CmD97dHb.js";
50
- import { n as componentDefinition$45 } from "./DisplacementMap-JV_CNJfU.js";
51
- import { n as componentDefinition$46 } from "./Dither-NJDWpGb3.js";
52
- import { n as componentDefinition$47 } from "./DotGrid-B2w7RFcv.js";
53
- import { n as componentDefinition$48 } from "./DropShadow-CLWp-bon.js";
54
- import { n as componentDefinition$49 } from "./Duotone-Be2jx-jZ.js";
55
- import { n as componentDefinition$50 } from "./Ellipse-BR6qXidK.js";
56
- import { n as componentDefinition$52 } from "./Engraving-D67DM--1.js";
57
- import { n as componentDefinition$53 } from "./ErosionNoise-FeEMQOkR.js";
58
- import { n as componentDefinition$54 } from "./Exposure-CZ1gfqpf.js";
59
- import { n as componentDefinition$55 } from "./FallingLines-ifuQ01oA.js";
60
- import { n as componentDefinition$56 } from "./FilmGrain-p5sawa_f.js";
61
- import { r as componentDefinition$57 } from "./FilmStock-BD5wv1TV.js";
62
- import { n as componentDefinition$58 } from "./Flip-MKiLH9jJ.js";
63
- import { n as componentDefinition$59 } from "./FloatingParticles-Bn8CmtwG.js";
64
- import { n as componentDefinition$60 } from "./Flower-BwDBwcSk.js";
65
- import { n as componentDefinition$61 } from "./FlowField-BdFeRmif.js";
66
- import { n as componentDefinition$62 } from "./FlowingGradient-RYOS36eB.js";
67
- import { r as componentDefinition$63 } from "./FlutedGlass-Ong8W4Ih.js";
68
- import { a as componentDefinition$64 } from "./Fog-C-X8msRb.js";
69
- import { n as componentDefinition$66 } from "./FractalNoise-BPj8RPkE.js";
70
- import { n as componentDefinition$67 } from "./Frost-DmxlFu63.js";
71
- import { n as componentDefinition$68 } from "./GaborNoise-Boc8ieHd.js";
72
- import { n as componentDefinition$69 } from "./Glass-D5p21MIw.js";
73
- import { n as componentDefinition$70 } from "./GlassTiles-BP4CzdI3.js";
74
- import { r as componentDefinition$71 } from "./Glitch-cJguD7jS.js";
75
- import { i as componentDefinition$72 } from "./Glow-BabfcnwS.js";
76
- import { n as componentDefinition$73 } from "./Godrays-BpiKSlNR.js";
77
- import { n as componentDefinition$74 } from "./Goo-BaQEtOyr.js";
78
- import { n as componentDefinition$75 } from "./GradientMap-BtKtW-4M.js";
79
- import { n as componentDefinition$76 } from "./Grayscale-Bgwugyvv.js";
80
- import { n as componentDefinition$77 } from "./Grid-5cEDkyWX.js";
81
- import { n as componentDefinition$78 } from "./GridDistortion-Byf4G720.js";
82
- import { n as componentDefinition$79 } from "./Group-DUEQSUir.js";
83
- import { n as componentDefinition$80 } from "./Halftone-BiSLVvGF.js";
84
- import { n as componentDefinition$81 } from "./Heart-RAGeVEVH.js";
85
- import { n as componentDefinition$82 } from "./Heatmap-Ds65scO7.js";
86
- import { n as componentDefinition$83 } from "./HexGrid-H1N5Y1XD.js";
87
- import { n as componentDefinition$84 } from "./Hologram-DpDfyeSz.js";
88
- import { n as componentDefinition$85 } from "./Holographic-Ckubuqn8.js";
89
- import { n as componentDefinition$86 } from "./HTMLInCanvas-uW1O3Z-R.js";
90
- import { n as componentDefinition$87 } from "./HueShift-C_a5UVHy.js";
91
- import { n as componentDefinition$88 } from "./ImageTexture-CM-dPJQ4.js";
92
- import { i as componentDefinition$89 } from "./InkFlow-CY7sCKpI.js";
93
- import { n as componentDefinition$90 } from "./Invert-DhHrtwHQ.js";
94
- import { n as componentDefinition$91 } from "./IrisWipe-BnOMUdEV.js";
95
- import { n as componentDefinition$92 } from "./IsometricCubes-CXPz62PB.js";
96
- import { n as componentDefinition$93 } from "./Kaleidoscope-CSgi0E5B.js";
97
- import { r as componentDefinition$94 } from "./KeyFrames-C3I4poq8.js";
98
- import { n as componentDefinition$95 } from "./LensFlare-DxvbKXgt.js";
99
- import { r as componentDefinition$96 } from "./LightEdge-niXz_FAk.js";
100
- import { n as componentDefinition$97 } from "./LightLeak-B7Pt1tt4.js";
101
- import { i as componentDefinition$98 } from "./LinearBlur-CXNcduWQ.js";
102
- import { n as componentDefinition$99 } from "./LinearGradient-CYiaWIXd.js";
103
- import { n as componentDefinition$100 } from "./LinearWipe-gwLhEveK.js";
104
- import { n as componentDefinition$101 } from "./LiquidMetal-D0sgLjcd.js";
105
- import { n as componentDefinition$102 } from "./Liquify-h08a8S-C.js";
106
- import { n as componentDefinition$103 } from "./MagneticFilings-BlNWPVwS.js";
107
- import { n as componentDefinition$104 } from "./Marble-bps2lOWc.js";
108
- import { n as componentDefinition$105 } from "./Mirror-8miSUAyZ.js";
109
- import { n as componentDefinition$106 } from "./MultiPointGradient-C-9_Q6CM.js";
110
- import { n as componentDefinition$108 } from "./NoiseDissolve-DjlWGdUc.js";
111
- import { n as componentDefinition$109 } from "./ObjectTracker-DW4aEBRv.js";
112
- import { r as componentDefinition$110 } from "./PagePeel-JsbScYi4.js";
113
- import { n as componentDefinition$111 } from "./Paper-BGTU0GOF.js";
114
- import { n as componentDefinition$112 } from "./Parallelogram-RC3MxzlN.js";
115
- import { n as componentDefinition$113 } from "./ParticleField-XypD7Eru.js";
116
- import { n as componentDefinition$114 } from "./ParticleFlow-DBw7m9C6.js";
117
- import { n as componentDefinition$115 } from "./Particles-CvpZvfe3.js";
118
- import { n as componentDefinition$116 } from "./PerlinNoise-CHVaarmz.js";
119
- import { n as componentDefinition$117 } from "./Perspective-zyCZAb3_.js";
120
- import { n as componentDefinition$118 } from "./Pixelate-D1e7buDQ.js";
121
- import { i as componentDefinition$119 } from "./PixelSort-B-zefB9S.js";
122
- import { i as componentDefinition$120 } from "./PixelThrow-BZ6erf3G.js";
123
- import { n as componentDefinition$121 } from "./Plasma-CBrx8Xu-.js";
124
- import { n as componentDefinition$122 } from "./Plastic-CcS4iAJM.js";
125
- import { n as componentDefinition$123 } from "./PolarCoordinates-B9SuYLgF.js";
126
- import { n as componentDefinition$124 } from "./Polygon-N0l1KfIO.js";
127
- import { n as componentDefinition$125 } from "./Posterize-u2et79Pv.js";
128
- import { n as componentDefinition$126 } from "./Prism-BnDsPBcD.js";
129
- import { a as componentDefinition$127 } from "./ProgressiveBlur-D9FiTJQy.js";
130
- import { n as componentDefinition$128 } from "./RadialGradient-C4oB78ya.js";
131
- import { n as componentDefinition$129 } from "./RadialWipe-Dzb7i6wy.js";
132
- import { n as componentDefinition$130 } from "./RandomBars-DO9j43mN.js";
133
- import { n as componentDefinition$131 } from "./ReactionDiffusion-DG1NSPhM.js";
134
- import { n as componentDefinition$132 } from "./RectangularCoordinates-Ck1gXdGx.js";
135
- import { r as componentDefinition$133 } from "./ReflectivePlane-DFQDgLYC.js";
136
- import { n as componentDefinition$134 } from "./Repeater-CT35_BhW.js";
137
- import { n as componentDefinition$135 } from "./Ring-DywDgKDv.js";
138
- import { n as componentDefinition$136 } from "./Ripples-fTSMeqiE.js";
139
- import { n as componentDefinition$137 } from "./RippleWipe-ePWlg-DT.js";
140
- import { n as componentDefinition$138 } from "./RoundedRect-B0lxuFfM.js";
141
- import { n as componentDefinition$139 } from "./Saturation-ClaD54dk.js";
142
- import { n as componentDefinition$140 } from "./Scratches-D8ZIBZ50.js";
143
- import { n as componentDefinition$141 } from "./Sharpness-CsnT4s1o.js";
144
- import { i as componentDefinition$142 } from "./Shatter-D_V7GBel.js";
145
- import { n as componentDefinition$143 } from "./SimplexNoise-tI2G3Wzn.js";
146
- import { n as componentDefinition$144 } from "./SineWave-BGsYyEFg.js";
147
- import { n as componentDefinition$145 } from "./SliceWipe-s4pWdINK.js";
148
- import { i as componentDefinition$146 } from "./Smoke-C3SLe_rD.js";
149
- import { i as componentDefinition$147 } from "./SmokeFill-BuKZtbX8.js";
150
- import { i as componentDefinition$148 } from "./SmokeFlow-5fnVH2a9.js";
151
- import { n as componentDefinition$149 } from "./Solarize-TP85IPV7.js";
152
- import { n as componentDefinition$150 } from "./SolidColor-16e4q89i.js";
153
- import { n as componentDefinition$151 } from "./Spherize-C4qsnql6.js";
154
- import { n as componentDefinition$152 } from "./Spiral-rPHDFACm.js";
155
- import { n as componentDefinition$153 } from "./Star-BDFhZWLo.js";
156
- import { n as componentDefinition$154 } from "./Stone-CCXo9IgA.js";
157
- import { n as componentDefinition$155 } from "./Strands-DCzYUsCX.js";
158
- import { n as componentDefinition$156 } from "./Stretch-CjhYXAth.js";
159
- import { n as componentDefinition$157 } from "./Stripes-CN2TFWGw.js";
160
- import { n as componentDefinition$158 } from "./StudioBackground-I_XxtKjr.js";
161
- import { n as componentDefinition$159 } from "./SunBurst-CGQkdsXl.js";
162
- import { n as componentDefinition$160 } from "./Surface3D-CpCPTs0u.js";
163
- import { n as componentDefinition$161 } from "./Swirl-BCnlG3G8.js";
164
- import { n as componentDefinition$162 } from "./Teardrop-DX-YZkNC.js";
165
- import { r as componentDefinition$163 } from "./Text-oI5d7_UD.js";
166
- import { a as componentDefinition$165 } from "./TiltShift-C8GluqAm.js";
167
- import { n as componentDefinition$166 } from "./TimeTrail-CPiSo5Of.js";
168
- import { n as componentDefinition$167 } from "./Tint-NA7BO-Qk.js";
169
- import { n as componentDefinition$168 } from "./Trapezoid-BOGSQvW5.js";
170
- import { n as componentDefinition$169 } from "./TriangularGrid-Zx3I4CqA.js";
171
- import { n as componentDefinition$170 } from "./Tritone-Bl69W4Y4.js";
172
- import { n as componentDefinition$171 } from "./Truchet-RJI0-v6x.js";
173
- import { n as componentDefinition$172 } from "./Twirl-CrIawDs2.js";
174
- import { n as componentDefinition$173 } from "./VenetianBlinds-CGfPlhGd.js";
175
- import { n as componentDefinition$174 } from "./Vesica-DekjxkHL.js";
176
- import { n as componentDefinition$175 } from "./VHS-B12KbScc.js";
177
- import { n as componentDefinition$176 } from "./Vibrance-DKKduAD8.js";
178
- import { n as componentDefinition$177 } from "./VideoTexture-1xg_a680.js";
179
- import { n as componentDefinition$178 } from "./Vignette-CDRCMNb2.js";
180
- import { n as componentDefinition$179 } from "./Voronoi-EWj3WFqv.js";
181
- import { n as componentDefinition$180 } from "./Water-BdGrOEuE.js";
182
- import { n as componentDefinition$181 } from "./Watercolor-BGIcnGZu.js";
183
- import { n as componentDefinition$182 } from "./WaveDistortion-BNlrOaur.js";
184
- import { n as componentDefinition$183 } from "./WaveletNoise-Jv-694xX.js";
185
- import { n as componentDefinition$184 } from "./Weave-HNS6xvOs.js";
186
- import { r as componentDefinition$185 } from "./WebcamTexture-DVKxGpWI.js";
187
- import { n as componentDefinition$186 } from "./Wool-D7uM0JRs.js";
188
- import { n as componentDefinition$187 } from "./WorleyNoise-DsDWmRCp.js";
189
- import { i as componentDefinition$188 } from "./ZoomBlur-S2GfQojf.js";
190
- var createShaderRegistry = () => {
191
- const registry = {};
192
- const shaderDefinitions = {
193
- AngularBlur: componentDefinition,
194
- Arc: componentDefinition$1,
195
- Ascii: componentDefinition$2,
196
- Aurora: componentDefinition$3,
197
- BarnDoors: componentDefinition$4,
198
- BarShift: componentDefinition$5,
199
- Beam: componentDefinition$6,
200
- Bend: componentDefinition$7,
201
- Blob: componentDefinition$8,
202
- BlockDissolve: componentDefinition$9,
203
- BlockNoise: componentDefinition$10,
204
- BlueNoise: componentDefinition$11,
205
- Blur: componentDefinition$12,
206
- Boids: componentDefinition$13,
207
- BokehBlur: componentDefinition$14,
208
- BrickPattern: componentDefinition$15,
209
- BrightnessContrast: componentDefinition$16,
210
- BrushedMetal: componentDefinition$17,
211
- Bulge: componentDefinition$18,
212
- CarbonFiber: componentDefinition$19,
213
- Chalkboard: componentDefinition$20,
214
- ChannelBlur: componentDefinition$21,
215
- Checkerboard: componentDefinition$22,
216
- CheckerWipe: componentDefinition$23,
217
- Chevron: componentDefinition$24,
218
- ChromaFlow: componentDefinition$25,
219
- ChromaticAberration: componentDefinition$26,
220
- Circle: componentDefinition$27,
221
- ColorWheel: componentDefinition$28,
222
- CompressionArtifacts: componentDefinition$29,
223
- ConcentricSpin: componentDefinition$30,
224
- ConicGradient: componentDefinition$31,
225
- ContourLines: componentDefinition$32,
226
- CornerPin: componentDefinition$33,
227
- Crescent: componentDefinition$34,
228
- Cross: componentDefinition$35,
229
- CRTScreen: componentDefinition$36,
230
- Crystal: componentDefinition$37,
231
- CurlNoise: componentDefinition$38,
232
- CursorRipples: componentDefinition$39,
233
- CursorTrail: componentDefinition$40,
234
- DataMosh: componentDefinition$41,
235
- DiamondGradient: componentDefinition$42,
236
- DiamondWipe: componentDefinition$43,
237
- DiffuseBlur: componentDefinition$44,
238
- DisplacementMap: componentDefinition$45,
239
- Dither: componentDefinition$46,
240
- DotGrid: componentDefinition$47,
241
- DropShadow: componentDefinition$48,
242
- Duotone: componentDefinition$49,
243
- Ellipse: componentDefinition$50,
244
- Emboss: componentDefinition$51,
245
- Engraving: componentDefinition$52,
246
- ErosionNoise: componentDefinition$53,
247
- Exposure: componentDefinition$54,
248
- FallingLines: componentDefinition$55,
249
- FilmGrain: componentDefinition$56,
250
- FilmStock: componentDefinition$57,
251
- Flip: componentDefinition$58,
252
- FloatingParticles: componentDefinition$59,
253
- Flower: componentDefinition$60,
254
- FlowField: componentDefinition$61,
255
- FlowingGradient: componentDefinition$62,
256
- FlutedGlass: componentDefinition$63,
257
- Fog: componentDefinition$64,
258
- Form3D: componentDefinition$65,
259
- FractalNoise: componentDefinition$66,
260
- Frost: componentDefinition$67,
261
- GaborNoise: componentDefinition$68,
262
- Glass: componentDefinition$69,
263
- GlassTiles: componentDefinition$70,
264
- Glitch: componentDefinition$71,
265
- Glow: componentDefinition$72,
266
- Godrays: componentDefinition$73,
267
- Goo: componentDefinition$74,
268
- GradientMap: componentDefinition$75,
269
- Grayscale: componentDefinition$76,
270
- Grid: componentDefinition$77,
271
- GridDistortion: componentDefinition$78,
272
- Group: componentDefinition$79,
273
- Halftone: componentDefinition$80,
274
- Heart: componentDefinition$81,
275
- Heatmap: componentDefinition$82,
276
- HexGrid: componentDefinition$83,
277
- Hologram: componentDefinition$84,
278
- Holographic: componentDefinition$85,
279
- HTMLInCanvas: componentDefinition$86,
280
- HueShift: componentDefinition$87,
281
- ImageTexture: componentDefinition$88,
282
- InkFlow: componentDefinition$89,
283
- Invert: componentDefinition$90,
284
- IrisWipe: componentDefinition$91,
285
- IsometricCubes: componentDefinition$92,
286
- Kaleidoscope: componentDefinition$93,
287
- KeyFrames: componentDefinition$94,
288
- LensFlare: componentDefinition$95,
289
- LightEdge: componentDefinition$96,
290
- LightLeak: componentDefinition$97,
291
- LinearBlur: componentDefinition$98,
292
- LinearGradient: componentDefinition$99,
293
- LinearWipe: componentDefinition$100,
294
- LiquidMetal: componentDefinition$101,
295
- Liquify: componentDefinition$102,
296
- MagneticFilings: componentDefinition$103,
297
- Marble: componentDefinition$104,
298
- Mirror: componentDefinition$105,
299
- MultiPointGradient: componentDefinition$106,
300
- Neon: componentDefinition$107,
301
- NoiseDissolve: componentDefinition$108,
302
- ObjectTracker: componentDefinition$109,
303
- PagePeel: componentDefinition$110,
304
- Paper: componentDefinition$111,
305
- Parallelogram: componentDefinition$112,
306
- ParticleField: componentDefinition$113,
307
- ParticleFlow: componentDefinition$114,
308
- Particles: componentDefinition$115,
309
- PerlinNoise: componentDefinition$116,
310
- Perspective: componentDefinition$117,
311
- Pixelate: componentDefinition$118,
312
- PixelSort: componentDefinition$119,
313
- PixelThrow: componentDefinition$120,
314
- Plasma: componentDefinition$121,
315
- Plastic: componentDefinition$122,
316
- PolarCoordinates: componentDefinition$123,
317
- Polygon: componentDefinition$124,
318
- Posterize: componentDefinition$125,
319
- Prism: componentDefinition$126,
320
- ProgressiveBlur: componentDefinition$127,
321
- RadialGradient: componentDefinition$128,
322
- RadialWipe: componentDefinition$129,
323
- RandomBars: componentDefinition$130,
324
- ReactionDiffusion: componentDefinition$131,
325
- RectangularCoordinates: componentDefinition$132,
326
- ReflectivePlane: componentDefinition$133,
327
- Repeater: componentDefinition$134,
328
- Ring: componentDefinition$135,
329
- Ripples: componentDefinition$136,
330
- RippleWipe: componentDefinition$137,
331
- RoundedRect: componentDefinition$138,
332
- Saturation: componentDefinition$139,
333
- Scratches: componentDefinition$140,
334
- Sharpness: componentDefinition$141,
335
- Shatter: componentDefinition$142,
336
- SimplexNoise: componentDefinition$143,
337
- SineWave: componentDefinition$144,
338
- SliceWipe: componentDefinition$145,
339
- Smoke: componentDefinition$146,
340
- SmokeFill: componentDefinition$147,
341
- SmokeFlow: componentDefinition$148,
342
- Solarize: componentDefinition$149,
343
- SolidColor: componentDefinition$150,
344
- Spherize: componentDefinition$151,
345
- Spiral: componentDefinition$152,
346
- Star: componentDefinition$153,
347
- Stone: componentDefinition$154,
348
- Strands: componentDefinition$155,
349
- Stretch: componentDefinition$156,
350
- Stripes: componentDefinition$157,
351
- StudioBackground: componentDefinition$158,
352
- SunBurst: componentDefinition$159,
353
- Surface3D: componentDefinition$160,
354
- Swirl: componentDefinition$161,
355
- Teardrop: componentDefinition$162,
356
- Text: componentDefinition$163,
357
- ThinFilm: componentDefinition$164,
358
- TiltShift: componentDefinition$165,
359
- TimeTrail: componentDefinition$166,
360
- Tint: componentDefinition$167,
361
- Trapezoid: componentDefinition$168,
362
- TriangularGrid: componentDefinition$169,
363
- Tritone: componentDefinition$170,
364
- Truchet: componentDefinition$171,
365
- Twirl: componentDefinition$172,
366
- VenetianBlinds: componentDefinition$173,
367
- Vesica: componentDefinition$174,
368
- VHS: componentDefinition$175,
369
- Vibrance: componentDefinition$176,
370
- VideoTexture: componentDefinition$177,
371
- Vignette: componentDefinition$178,
372
- Voronoi: componentDefinition$179,
373
- Water: componentDefinition$180,
374
- Watercolor: componentDefinition$181,
375
- WaveDistortion: componentDefinition$182,
376
- WaveletNoise: componentDefinition$183,
377
- Weave: componentDefinition$184,
378
- WebcamTexture: componentDefinition$185,
379
- Wool: componentDefinition$186,
380
- WorleyNoise: componentDefinition$187,
381
- ZoomBlur: componentDefinition$188
382
- };
383
- Object.entries(shaderDefinitions).forEach(([fileName, def]) => {
384
- const propsMetadata = {};
385
- if (def.props) Object.entries(def.props).forEach(([propName, propConfig]) => {
386
- if (propConfig.ui) propsMetadata[propName] = {
387
- ui: propConfig.ui,
388
- default: propConfig.default,
389
- description: propConfig.description
390
- };
391
- });
392
- registry[def.name] = {
393
- name: def.name,
394
- fileName,
395
- category: def.category || "Uncategorized",
396
- definition: def,
397
- propsMetadata
398
- };
399
- });
400
- return registry;
401
- };
402
- const shaderRegistry = createShaderRegistry();
403
- const deprecatedShaderNames = (() => {
404
- const map = {};
405
- for (const entry of Object.values(shaderRegistry)) for (const oldName of entry.definition.deprecatedNames ?? []) map[oldName] = entry.name;
406
- return map;
407
- })();
408
- function resolveShaderName(name) {
409
- if (shaderRegistry[name]) return name;
410
- return deprecatedShaderNames[name] ?? name;
411
- }
412
- function getAllShaders() {
413
- return Object.values(shaderRegistry);
414
- }
415
- function getShaderByName(name) {
416
- return shaderRegistry[resolveShaderName(name)];
417
- }
418
- function getShadersByCategory(category) {
419
- return Object.values(shaderRegistry).filter((shader) => shader.category === category);
420
- }
421
- function getShaderCategories() {
422
- const categories = new Set(Object.values(shaderRegistry).map((shader) => shader.category));
423
- return Array.from(categories).sort();
424
- }
425
- export { shaderRegistry as a, getShadersByCategory as i, getShaderByName as n, getShaderCategories as r, getAllShaders as t };
@@ -1,54 +0,0 @@
1
- import { PresetConfig } from '../core';
2
- import { Sprite, Application } from 'pixi.js';
3
- /**
4
- * Options for creating a shader sprite
5
- */
6
- export interface ShaderSpriteOptions {
7
- width?: number;
8
- height?: number;
9
- }
10
- /**
11
- * A shader instance that renders to a PixiJS sprite
12
- */
13
- export interface ShaderSprite {
14
- sprite: Sprite;
15
- update: () => Promise<void>;
16
- updatePreset: (preset: PresetConfig) => void;
17
- resize: (width: number, height: number) => void;
18
- dispose: () => void;
19
- }
20
- /**
21
- * Create a PixiJS sprite that renders a Shaders preset.
22
- *
23
- * This approach:
24
- * 1. Creates a hidden canvas for Three.js/Shaders rendering
25
- * 2. Shares the WebGPU device from PixiJS
26
- * 3. Renders shaders to the canvas
27
- * 4. Wraps the canvas as a PixiJS texture/sprite
28
- *
29
- * @example
30
- * ```typescript
31
- * import { createShaderSprite } from 'shaders-pixi'
32
- *
33
- * const preset = {
34
- * components: [
35
- * { type: 'LinearGradient', props: { colorA: '#ff0000', colorB: '#0000ff' } }
36
- * ]
37
- * }
38
- *
39
- * const shaderSprite = await createShaderSprite(preset, pixiApp, {
40
- * width: 512,
41
- * height: 512
42
- * })
43
- *
44
- * // Position in scene
45
- * shaderSprite.sprite.x = 100
46
- * shaderSprite.sprite.y = 100
47
- * pixiApp.stage.addChild(shaderSprite.sprite)
48
- *
49
- * // In render loop (before PixiJS render)
50
- * await shaderSprite.update()
51
- * ```
52
- */
53
- export declare function createShaderSprite(preset: PresetConfig, pixiApp: Application, options?: ShaderSpriteOptions): Promise<ShaderSprite>;
54
- //# sourceMappingURL=createShaderSprite.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createShaderSprite.d.ts","sourceRoot":"","sources":["../src/createShaderSprite.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,cAAc,CAAA;AACxE,OAAO,EAAyB,MAAM,EAAgB,KAAK,WAAW,EAAE,MAAM,SAAS,CAAA;AAEvF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3B,YAAY,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAA;IAC5C,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,YAAY,CAAC,CAiNvB"}
@@ -1,20 +0,0 @@
1
- /**
2
- * Shaders PixiJS Integration
3
- *
4
- * Render WebGPU shaders as native PixiJS sprites.
5
- *
6
- * @example
7
- * ```typescript
8
- * import { createShaderSprite } from 'shaders-pixi'
9
- *
10
- * const shader = await createShaderSprite(preset, pixiApp, { width: 512, height: 512 })
11
- * pixiApp.stage.addChild(shader.sprite)
12
- *
13
- * pixiApp.ticker.add(async () => {
14
- * await shader.update()
15
- * })
16
- * ```
17
- */
18
- export { createShaderSprite, type ShaderSprite, type ShaderSpriteOptions } from './createShaderSprite';
19
- export type { PresetConfig, ComponentConfig } from '../core';
20
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,kBAAkB,EAClB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACzB,MAAM,sBAAsB,CAAA;AAG7B,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA"}
@@ -1,153 +0,0 @@
1
- import { createRendererFromJSON } from "../core/index.js";
2
- import { RendererType, CanvasSource, Texture, Sprite } from "pixi.js";
3
- async function createShaderSprite(preset, pixiApp, options = {}) {
4
- const width = options.width || 512;
5
- const height = options.height || 512;
6
- const dpr = window.devicePixelRatio || 1;
7
- if (pixiApp.renderer.type !== RendererType.WEBGPU) {
8
- throw new Error('Shaders requires PixiJS to be initialized with WebGPU (preference: "webgpu")');
9
- }
10
- const pixiGpu = pixiApp.renderer.gpu;
11
- const device = pixiGpu.device;
12
- const adapter = pixiGpu.adapter;
13
- if (!device || !adapter) {
14
- throw new Error("Shaders could not access the WebGPU device from the PixiJS renderer");
15
- }
16
- const wrapper = document.createElement("div");
17
- wrapper.style.position = "absolute";
18
- wrapper.style.left = "-9999px";
19
- wrapper.style.top = "-9999px";
20
- wrapper.style.width = `${width}px`;
21
- wrapper.style.height = `${height}px`;
22
- wrapper.style.overflow = "hidden";
23
- wrapper.style.pointerEvents = "none";
24
- document.body.appendChild(wrapper);
25
- const canvas = document.createElement("canvas");
26
- canvas.width = width * dpr;
27
- canvas.height = height * dpr;
28
- canvas.style.width = `${width}px`;
29
- canvas.style.height = `${height}px`;
30
- wrapper.appendChild(canvas);
31
- const gpuContext = canvas.getContext("webgpu");
32
- if (!gpuContext) {
33
- throw new Error("Could not get WebGPU context from canvas");
34
- }
35
- gpuContext.configure({
36
- device,
37
- format: navigator.gpu.getPreferredCanvasFormat(),
38
- alphaMode: "premultiplied",
39
- usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.COPY_SRC | GPUTextureUsage.TEXTURE_BINDING
40
- });
41
- const shadersRenderer = createRendererFromJSON(preset, {
42
- gpu: { device, adapter },
43
- forceFullFrameRate: true
44
- });
45
- await shadersRenderer.initialize(canvas);
46
- let canvasSource = new CanvasSource({
47
- resource: canvas,
48
- resolution: dpr,
49
- antialias: false,
50
- autoDensity: false
51
- });
52
- let texture = new Texture({
53
- source: canvasSource
54
- });
55
- const sprite = new Sprite(texture);
56
- sprite.width = width;
57
- sprite.height = height;
58
- let currentWidth = width;
59
- let currentHeight = height;
60
- let pendingCanvasSource = null;
61
- let pendingTexture = null;
62
- let resizeSeq = 0;
63
- return {
64
- sprite,
65
- /**
66
- * Update shader rendering and sync to PixiJS
67
- * Call this in your render loop BEFORE rendering PixiJS
68
- */
69
- update: async () => {
70
- await shadersRenderer.renderFrame();
71
- if (!pendingCanvasSource) {
72
- canvasSource.update();
73
- }
74
- },
75
- /**
76
- * Update the shader preset dynamically
77
- */
78
- updatePreset: (newPreset) => {
79
- shadersRenderer.updatePreset(newPreset);
80
- },
81
- /**
82
- * Resize the shader to new dimensions
83
- * This updates the offscreen canvas, triggering the renderer's resize logic.
84
- * The texture swap is deferred until after Three.js's resize RAF fires, so the
85
- * sprite continues to show the last good frame instead of flashing blank.
86
- */
87
- resize: (newWidth, newHeight) => {
88
- if (newWidth === currentWidth && newHeight === currentHeight) return;
89
- currentWidth = newWidth;
90
- currentHeight = newHeight;
91
- if (pendingCanvasSource) {
92
- pendingCanvasSource.destroy();
93
- pendingTexture.destroy();
94
- pendingCanvasSource = null;
95
- pendingTexture = null;
96
- }
97
- const seq = ++resizeSeq;
98
- wrapper.style.width = `${newWidth}px`;
99
- wrapper.style.height = `${newHeight}px`;
100
- canvas.width = newWidth * dpr;
101
- canvas.height = newHeight * dpr;
102
- canvas.style.width = `${newWidth}px`;
103
- canvas.style.height = `${newHeight}px`;
104
- gpuContext.configure({
105
- device,
106
- format: navigator.gpu.getPreferredCanvasFormat(),
107
- alphaMode: "premultiplied",
108
- usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.COPY_SRC | GPUTextureUsage.TEXTURE_BINDING
109
- });
110
- pendingCanvasSource = new CanvasSource({
111
- resource: canvas,
112
- resolution: dpr,
113
- antialias: false,
114
- autoDensity: false
115
- });
116
- pendingTexture = new Texture({ source: pendingCanvasSource });
117
- requestAnimationFrame(() => {
118
- requestAnimationFrame(() => {
119
- if (seq !== resizeSeq) return;
120
- if (pendingCanvasSource && pendingTexture) {
121
- pendingCanvasSource.update();
122
- const oldTexture = texture;
123
- const oldCanvasSource = canvasSource;
124
- canvasSource = pendingCanvasSource;
125
- texture = pendingTexture;
126
- sprite.texture = texture;
127
- pendingCanvasSource = null;
128
- pendingTexture = null;
129
- oldTexture.destroy();
130
- oldCanvasSource.destroy();
131
- }
132
- });
133
- });
134
- },
135
- /**
136
- * Clean up resources
137
- */
138
- dispose: () => {
139
- if (pendingCanvasSource) {
140
- pendingCanvasSource.destroy();
141
- pendingTexture == null ? void 0 : pendingTexture.destroy();
142
- pendingCanvasSource = null;
143
- pendingTexture = null;
144
- }
145
- shadersRenderer.dispose();
146
- texture.destroy(true);
147
- wrapper.remove();
148
- }
149
- };
150
- }
151
- export {
152
- createShaderSprite
153
- };