shaders 3.2.467 → 3.2.468
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.
- package/dist/cli.js +2 -2
- package/dist/core/{AngularBlur-CQvQuy5c.js → AngularBlur-g4-fDx1N.js} +3 -3
- package/dist/core/{Arc-lEiEQxrQ.js → Arc-B4VGPOtO.js} +3 -3
- package/dist/core/{Ascii-DFpPCO5J.js → Ascii-DxiduEzP.js} +3 -3
- package/dist/core/{Aurora-CrvHBSoD.js → Aurora-C0J5do9Y.js} +11 -11
- package/dist/core/{BarShift-BqUErdh0.js → BarShift-BukEd3jr.js} +3 -3
- package/dist/core/{BarnDoors-YMRdmthB.js → BarnDoors-BC0LM0aD.js} +3 -3
- package/dist/core/{Beam-DI0mV-q5.js → Beam-CxAXVlAf.js} +3 -3
- package/dist/core/{Bend-DScnRt1y.js → Bend-BfVVIo2C.js} +2 -2
- package/dist/core/{Blob-CPpcDFgo.js → Blob-D_IbcUCc.js} +10 -10
- package/dist/core/{BlockDissolve-PCAJIJXN.js → BlockDissolve-C9nsgIz9.js} +3 -3
- package/dist/core/{BlockNoise-BCS8754P.js → BlockNoise-BgwbD0rx.js} +4 -4
- package/dist/core/{BlueNoise-DEo9iRoc.js → BlueNoise-BdwOaq4G.js} +4 -4
- package/dist/core/{Blur-B6DN_qRU.js → Blur-ceuv7ZTm.js} +2 -2
- package/dist/core/{Boids-CW5JGliU.js → Boids-C3r8YaQb.js} +5 -5
- package/dist/core/{BokehBlur-BOFm1eDD.js → BokehBlur-C8xJ0xA8.js} +3 -3
- package/dist/core/{BrickPattern-C1OBaO3l.js → BrickPattern-C-6QFzp6.js} +3 -3
- package/dist/core/{BrightnessContrast-Z7G6XSBo.js → BrightnessContrast-CMUaNvo0.js} +3 -3
- package/dist/core/{BrushedMetal-BgWBEHQq.js → BrushedMetal-De_VRtOm.js} +7 -7
- package/dist/core/{Bulge-tVWg8fjj.js → Bulge-CgO7_0fe.js} +2 -2
- package/dist/core/{CRTScreen-D24U5svV.js → CRTScreen-DNqe2klB.js} +2 -2
- package/dist/core/{CarbonFiber-DZZlkKmq.js → CarbonFiber-CGl2FK3J.js} +6 -6
- package/dist/core/{Chalkboard-K7HncaXZ.js → Chalkboard-CDUJz_Ae.js} +3 -3
- package/dist/core/{ChannelBlur-BrcqNPW-.js → ChannelBlur-Z8ZvN6W3.js} +2 -2
- package/dist/core/{CheckerWipe-BAGyhUEe.js → CheckerWipe-DXm9kDaS.js} +3 -3
- package/dist/core/{Checkerboard-BoiF0KRB.js → Checkerboard-DZAABNKo.js} +3 -3
- package/dist/core/{Chevron-B35wgDaf.js → Chevron-Dn1iHSiS.js} +3 -3
- package/dist/core/{ChromaFlow-IVB9mRBn.js → ChromaFlow-lnaJ4o1Y.js} +5 -5
- package/dist/core/{ChromaticAberration-BzJYAhEr.js → ChromaticAberration-CGOQe4Pp.js} +4 -4
- package/dist/core/{Chrome-otQdzXhv.js → Chrome-BFQsMQii.js} +6 -6
- package/dist/core/{Circle-vyUl9mGk.js → Circle-DVPhvXdr.js} +3 -3
- package/dist/core/{ColorWheel-C6C6c1MV.js → ColorWheel-DXkVOQl2.js} +3 -3
- package/dist/core/{CompressionArtifacts-B3dpSMOs.js → CompressionArtifacts-CEw9gfTu.js} +3 -3
- package/dist/core/{ConcentricSpin-DVI4NG8s.js → ConcentricSpin-GtNEq1T1.js} +2 -2
- package/dist/core/{ConicGradient-Df_0Cn05.js → ConicGradient-DYPNJAOg.js} +4 -4
- package/dist/core/{ContourLines-DhQZc2ym.js → ContourLines-DEmEepvT.js} +3 -3
- package/dist/core/{CornerPin-Ba8-5_Z1.js → CornerPin-CJJeGyVf.js} +3 -3
- package/dist/core/{Crescent-mDzJ5lao.js → Crescent-C7yy9-xf.js} +2 -2
- package/dist/core/{Cross-DA3WL1iH.js → Cross-DyYrdTVw.js} +2 -2
- package/dist/core/{Crystal-BXJ9uJkG.js → Crystal-DsO60tef.js} +6 -6
- package/dist/core/{CurlNoise-cND7fk3c.js → CurlNoise-Bjc6hhjR.js} +4 -4
- package/dist/core/{CursorRipples-4l0iH_f-.js → CursorRipples-C1PNyYcB.js} +4 -4
- package/dist/core/{CursorTrail-DxmsKvrL.js → CursorTrail-C6v97bId.js} +4 -4
- package/dist/core/{DataMosh-DWBICx1H.js → DataMosh-AX4kIi4R.js} +3 -3
- package/dist/core/{DiamondGradient-CFJUELEN.js → DiamondGradient-Bj6mUxOy.js} +4 -4
- package/dist/core/{DiamondWipe-DP5q0TuR.js → DiamondWipe-BNSkpUn9.js} +3 -3
- package/dist/core/{DiffuseBlur-Bq-3bnk2.js → DiffuseBlur-C7l-5Dw3.js} +3 -3
- package/dist/core/{DisplacementMap-D1LaKMKS.js → DisplacementMap-DGpLSlxs.js} +3 -3
- package/dist/core/{Dither-BVK_vhKC.js → Dither-C9KDpqgP.js} +3 -3
- package/dist/core/{DotGrid-DijYECQs.js → DotGrid-CkAtf-j_.js} +3 -3
- package/dist/core/{DropShadow-CLyzZolu.js → DropShadow-BxI_a7dC.js} +3 -3
- package/dist/core/{Duotone-BHn_E3Cb.js → Duotone-CrJ0P0SL.js} +3 -3
- package/dist/core/{Ellipse-bcu_5HzO.js → Ellipse-C2Tie_19.js} +2 -2
- package/dist/core/{Emboss-0HHAVI0a.js → Emboss-iwNwt1-u.js} +5 -5
- package/dist/core/{Engraving-EBpxrHN1.js → Engraving-RpxXPqQq.js} +3 -3
- package/dist/core/{ErosionNoise-J-tn3Qhb.js → ErosionNoise-D0qefxhq.js} +4 -4
- package/dist/core/{Exposure-1C9bPYgo.js → Exposure-B7W7AVbY.js} +3 -3
- package/dist/core/{FallingLines-BlRoROV4.js → FallingLines-Cxhmtqf4.js} +3 -3
- package/dist/core/{FilmGrain-h4lqzn0Q.js → FilmGrain-CghUJIeK.js} +3 -3
- package/dist/core/{FilmStock-DT3jMQ7O.js → FilmStock-DmOaROtC.js} +4 -4
- package/dist/core/{Flip-H-WTq1FO.js → Flip-BuOdbWjK.js} +3 -3
- package/dist/core/{FloatingParticles-BjISxOOQ.js → FloatingParticles-BVRlM_zv.js} +5 -5
- package/dist/core/{FlowField-tGwdL8On.js → FlowField-A2njOtGx.js} +3 -3
- package/dist/core/{Flower-JFpGE34W.js → Flower-CwdJOVR1.js} +2 -2
- package/dist/core/{FlowingGradient-B0i3C4e5.js → FlowingGradient-BEu60rLu.js} +7 -7
- package/dist/core/{FlutedGlass-mxQcpxaW.js → FlutedGlass-BWlTrLF-.js} +4 -4
- package/dist/core/{Fog-CLZgV5nG.js → Fog-CpmIyRtJ.js} +4 -4
- package/dist/core/{Form3D-DYF3ldCD.js → Form3D-C03PdKOa.js} +4 -4
- package/dist/core/{FractalNoise-BBXFgUIX.js → FractalNoise-DsESU8cP.js} +4 -4
- package/dist/core/{Frost-DkUvGNIv.js → Frost-D4aH-OM_.js} +7 -7
- package/dist/core/{GaborNoise-BTNOgRm_.js → GaborNoise-D3U1iz9E.js} +4 -4
- package/dist/core/{Glass-B_EqU-v5.js → Glass-tS9J3fue.js} +7 -7
- package/dist/core/{GlassTiles-bA0TIrvm.js → GlassTiles-BxdT6Ee8.js} +2 -2
- package/dist/core/{Glitch-Bj8GXrVb.js → Glitch-DQeLaNdU.js} +2 -2
- package/dist/core/{Glow-ooqHPQMB.js → Glow-DksG7wdu.js} +3 -3
- package/dist/core/{Godrays-DjBxwYp8.js → Godrays-D2Pzd9K9.js} +3 -3
- package/dist/core/{Goo-Cinhub2C.js → Goo-C7n1aFSC.js} +7 -7
- package/dist/core/{GradientMap-mL8oPgDL.js → GradientMap-B-5yUYjX.js} +4 -4
- package/dist/core/{Grayscale-C8rjUf0G.js → Grayscale-g7jQsxgi.js} +2 -2
- package/dist/core/{Grid-AhuLjwUC.js → Grid-DAglpJFP.js} +3 -3
- package/dist/core/{GridDistortion-lFFZbafM.js → GridDistortion-CNlIESbs.js} +5 -5
- package/dist/core/{Group-C35YSJ7Z.js → Group-CeOfFv2K.js} +1 -1
- package/dist/core/{HTMLInCanvas-ClqHJAGU.js → HTMLInCanvas-BgwCnbYn.js} +1 -1
- package/dist/core/{Halftone-DDAqOqfT.js → Halftone-DCiP4EDq.js} +3 -3
- package/dist/core/{Heart-DDSGYyVz.js → Heart-CQhtzwFu.js} +2 -2
- package/dist/core/{Heatmap-BFovwSkZ.js → Heatmap-Wy_0SxOF.js} +7 -7
- package/dist/core/{HexGrid-B9tqR1Af.js → HexGrid-BY_BPH8J.js} +3 -3
- package/dist/core/{Hologram-DEASuul6.js → Hologram-C3sww1q_.js} +6 -6
- package/dist/core/{Holographic-BwsjJQ7Y.js → Holographic-B9PvU6cz.js} +6 -6
- package/dist/core/{HueShift-6-v3zikX.js → HueShift-BnwOshrg.js} +3 -3
- package/dist/core/{ImageTexture-BYXbHUv2.js → ImageTexture-Cd6vH2Z0.js} +2 -2
- package/dist/core/{InkFlow-CZHkXWkH.js → InkFlow-B7F9i3Kd.js} +5 -5
- package/dist/core/{Invert-Cz4tJjEO.js → Invert-6Q5kX8vd.js} +2 -2
- package/dist/core/{IrisWipe-DDrBhIbD.js → IrisWipe-Cl5yYdEi.js} +3 -3
- package/dist/core/{Irradiance-BoQdvR3u.js → Irradiance-CQ12Hyf9.js} +9 -9
- package/dist/core/{IsometricCubes-nyl3EOPv.js → IsometricCubes-BhK9MhCy.js} +3 -3
- package/dist/core/{Kaleidoscope-B2MjqaGV.js → Kaleidoscope-D4X5N_qk.js} +2 -2
- package/dist/core/{KeyFrames-CLUicJvf.js → KeyFrames-Dv1vFfMa.js} +3 -3
- package/dist/core/{LensDistortion-CU-9_SE4.js → LensDistortion-BqVp5WBS.js} +3 -3
- package/dist/core/{LensFlare-2ryGFXKI.js → LensFlare-z0k68uJ1.js} +3 -3
- package/dist/core/{LightEdge-DGbH5L-M.js → LightEdge-DGkuJl9I.js} +5 -5
- package/dist/core/{LightLeak-3ITuDZK-.js → LightLeak-BgFq4bLG.js} +4 -4
- package/dist/core/{Line-BDM4dydm.js → Line--Ur3CJp1.js} +3 -3
- package/dist/core/{LinearBlur-5h4InJGI.js → LinearBlur-BkHF6lVm.js} +3 -3
- package/dist/core/{LinearGradient-dSFqjTHb.js → LinearGradient-DIdq_fiw.js} +4 -4
- package/dist/core/{LinearWipe-DmGnubMp.js → LinearWipe-DuCB9oV_.js} +3 -3
- package/dist/core/{LiquidMetal-B3oC7dhE.js → LiquidMetal-BPvuHdsf.js} +7 -7
- package/dist/core/{Liquify-DrYyNp7F.js → Liquify-CvPn1ze-.js} +4 -4
- package/dist/core/{MagneticFilings-CfwWa5rG.js → MagneticFilings-DPNRCKVe.js} +5 -5
- package/dist/core/{Marble-0x9sSzqp.js → Marble-DyGenjAa.js} +7 -7
- package/dist/core/{MeshGradient-BSMwLPdn.js → MeshGradient-CEVDVK8_.js} +9 -9
- package/dist/core/{Mirror-B-m-3EqI.js → Mirror-Ck8qk1Km.js} +2 -2
- package/dist/core/{MultiPointGradient-CuZH8Och.js → MultiPointGradient-DwO6snxn.js} +3 -3
- package/dist/core/{Nebula-DvTkD6oN.js → Nebula-Bn7VT1xx.js} +8 -8
- package/dist/core/{Neon-Ceenufle.js → Neon-CXuFhmfD.js} +5 -5
- package/dist/core/{NoiseDissolve-CYsK6nQF.js → NoiseDissolve-DgvzEFOD.js} +3 -3
- package/dist/core/{ObjectTracker-F6JJAYl8.js → ObjectTracker-IopW8Jvf.js} +3 -3
- package/dist/core/{Obsidian-B9YePNMS.js → Obsidian-Dph7T7YI.js} +8 -8
- package/dist/core/{PagePeel-DHTppmS-.js → PagePeel-BeAr_n0U.js} +2 -2
- package/dist/core/{Paper-_BWVjHRg.js → Paper-BDEsyIPI.js} +2 -2
- package/dist/core/{Parallelogram-ecidpiHm.js → Parallelogram-Duj-0MLr.js} +2 -2
- package/dist/core/{ParticleField-C5d_RwGB.js → ParticleField-BaG_4DLj.js} +4 -4
- package/dist/core/{ParticleFlow-DRiGbNSd.js → ParticleFlow-Aocbr_mH.js} +6 -6
- package/dist/core/{Particles-C69tGhbg.js → Particles-CGFjT2p5.js} +6 -6
- package/dist/core/{PerlinNoise-6UAvUwYC.js → PerlinNoise-BHQ318g4.js} +4 -4
- package/dist/core/{Perspective-8vfiuMBF.js → Perspective-xBfd9BSE.js} +3 -3
- package/dist/core/{PixelSort-MUSofhmo.js → PixelSort-Bx9sUnGm.js} +4 -4
- package/dist/core/{PixelThrow-C2tO5Muz.js → PixelThrow-0nJiGsmZ.js} +4 -4
- package/dist/core/{Pixelate-BqFdl3HK.js → Pixelate-CvCzoA0h.js} +2 -2
- package/dist/core/{Plasma-BnqTRurI.js → Plasma-Be1yxNcP.js} +4 -4
- package/dist/core/{Plastic-6wwFqodQ.js → Plastic-C-N31O7u.js} +7 -7
- package/dist/core/{PolarCoordinates-cblLmfFr.js → PolarCoordinates-BGwTZ6NO.js} +2 -2
- package/dist/core/{Polygon-DhpbYIjp.js → Polygon-Byw5C7Qy.js} +3 -3
- package/dist/core/{Posterize-JtYCiavu.js → Posterize-BHOstvyj.js} +2 -2
- package/dist/core/{Prism-CgL09-0n.js → Prism-pNsLhW8w.js} +6 -6
- package/dist/core/{ProgressiveBlur-DdFTxI5G.js → ProgressiveBlur-CR1IbvKQ.js} +3 -3
- package/dist/core/{RadialGradient-Bb6O8ZU2.js → RadialGradient-BFOrMAK1.js} +4 -4
- package/dist/core/{RadialWipe-C37NUMlQ.js → RadialWipe-BYnlbrNm.js} +3 -3
- package/dist/core/{RandomBars-n0GZtwtb.js → RandomBars-B7erRRHx.js} +3 -3
- package/dist/core/{ReactionDiffusion-CIjBuzSZ.js → ReactionDiffusion-BnY40jHs.js} +5 -5
- package/dist/core/{RectangularCoordinates-RrJynboy.js → RectangularCoordinates-D9-3PQAz.js} +2 -2
- package/dist/core/{ReflectivePlane-DJs7L0jE.js → ReflectivePlane-BI-LIR2c.js} +3 -3
- package/dist/core/{Repeater-DNDOS02l.js → Repeater-C5LILb_Y.js} +3 -3
- package/dist/core/{Ring-CGNzWRTF.js → Ring-CvvtJYAf.js} +2 -2
- package/dist/core/{RippleWipe-Xru9_G-5.js → RippleWipe-kAzZWsjR.js} +3 -3
- package/dist/core/{Ripples-D6DtbpFm.js → Ripples-BFLep1r1.js} +3 -3
- package/dist/core/{RoundedRect-Bx9Qv5sI.js → RoundedRect-DirNijIY.js} +2 -2
- package/dist/core/{Saturation-D-22L-Ba.js → Saturation-CfkRhJpe.js} +3 -3
- package/dist/core/{Scratches-BT5puRjC.js → Scratches-Dchfw1_5.js} +4 -4
- package/dist/core/{Sharpness-DS3wAWPI.js → Sharpness-DZzAnlsl.js} +3 -3
- package/dist/core/{Shatter-BavlIUpF.js → Shatter-Dz3sH2ON.js} +2 -2
- package/dist/core/{SimplexNoise-DuVEfYS1.js → SimplexNoise-CmV42gYT.js} +4 -4
- package/dist/core/{SineWave-BjlS8KL3.js → SineWave-TqnpIKO4.js} +3 -3
- package/dist/core/{SliceWipe-Bq1nKIay.js → SliceWipe-Dz8vj6bi.js} +2 -2
- package/dist/core/{Smoke-Cgk0FuqF.js → Smoke-B1TnZnG6.js} +4 -4
- package/dist/core/{SmokeFill-BrVy_T4u.js → SmokeFill-C4yVAkT9.js} +7 -7
- package/dist/core/{SmokeFlow-BhJKXBM2.js → SmokeFlow-dd5uLztm.js} +4 -4
- package/dist/core/{Solarize-Bw6eWMy4.js → Solarize-CIQa9pKw.js} +3 -3
- package/dist/core/{SolidColor-CApT6KFF.js → SolidColor-DuoQVKGk.js} +3 -3
- package/dist/core/{Spherize-BZafM2nt.js → Spherize-FWwWEUyE.js} +3 -3
- package/dist/core/{Spiral-BljWgHZ1.js → Spiral-DI1eG0E3.js} +3 -3
- package/dist/core/{Star--zFAw9gn.js → Star-DT-hnlIJ.js} +2 -2
- package/dist/core/{Stone-DZ175SYU.js → Stone-oW35zD22.js} +3 -3
- package/dist/core/{Strands-Bk7Lpdz8.js → Strands-asB3fUr9.js} +4 -4
- package/dist/core/{Stretch-BfhZj5Sp.js → Stretch-Cm_B4WGY.js} +2 -2
- package/dist/core/{Stripes-B4bB8P9T.js → Stripes-BnJiniJY.js} +3 -3
- package/dist/core/{StudioBackground-DDfcbZp6.js → StudioBackground-DwSO5KNV.js} +6 -6
- package/dist/core/{SunBurst-UBhsjpxT.js → SunBurst-BL-BryZO.js} +3 -3
- package/dist/core/{Surface3D-6z6uoD2B.js → Surface3D-DSvh7Zof.js} +5 -5
- package/dist/core/{Swirl-D1OsV-AI.js → Swirl-BVPy039a.js} +4 -4
- package/dist/core/{Teardrop-udnTi4uM.js → Teardrop-CR1UqYaF.js} +2 -2
- package/dist/core/{Text-i-Z-04Lp.js → Text-fP5temat.js} +3 -3
- package/dist/core/{ThinFilm-DVSVAKLU.js → ThinFilm--MFVM9D5.js} +5 -5
- package/dist/core/{TiltShift-CmBd6IuT.js → TiltShift-BvYpYELk.js} +3 -3
- package/dist/core/{TimeTrail-DpULnhS7.js → TimeTrail-DqdYuHn7.js} +5 -5
- package/dist/core/{Tint-COD0pAFC.js → Tint-BXJMHYvg.js} +3 -3
- package/dist/core/{Trapezoid-BuwD5Hsa.js → Trapezoid--AgyKOWQ.js} +2 -2
- package/dist/core/{TriangularGrid-CY9623Jt.js → TriangularGrid-CmDApxz9.js} +3 -3
- package/dist/core/{Tritone-IJ7zzb6E.js → Tritone-DCd_IRp7.js} +3 -3
- package/dist/core/{Truchet-KSh5e6zB.js → Truchet-g1_jcoZ4.js} +3 -3
- package/dist/core/{Twirl-OTBF-EFA.js → Twirl-JY-PXDS2.js} +2 -2
- package/dist/core/{VHS-DIaTkhf_.js → VHS-ZWR6D4Da.js} +2 -2
- package/dist/core/{VenetianBlinds-whh21nCE.js → VenetianBlinds-B7laTyPO.js} +3 -3
- package/dist/core/{Vesica-B6G0T7zJ.js → Vesica-BTNW2p5u.js} +2 -2
- package/dist/core/{Vibrance-CZlaCRRi.js → Vibrance-DmhtRT2D.js} +3 -3
- package/dist/core/{VideoTexture-Dws9jyoh.js → VideoTexture-DK3EaAHY.js} +2 -2
- package/dist/core/{Vignette-CkY7ZLwU.js → Vignette-hyFfUS20.js} +5 -5
- package/dist/core/{Voronoi-BeLaSW8f.js → Voronoi-DhexPwNM.js} +5 -5
- package/dist/core/Voxels-CIfWtuUp.js +8547 -0
- package/dist/core/{Water-5WdvreCU.js → Water-CnzSPBJI.js} +7 -7
- package/dist/core/{Watercolor-3pu15_tU.js → Watercolor-C1HipGGO.js} +4 -4
- package/dist/core/{WaveDistortion-BCpSjnD_.js → WaveDistortion-VXyHFcJ3.js} +2 -2
- package/dist/core/{Waveform-DsDMEp9s.js → Waveform-CSP_4nZF.js} +9 -9
- package/dist/core/{WaveletNoise-Du386LZ4.js → WaveletNoise-CQqAufyv.js} +4 -4
- package/dist/core/{Weave-HFybZ8zD.js → Weave-DwX8T4_Q.js} +3 -3
- package/dist/core/{WebcamTexture-BXyrzb1X.js → WebcamTexture-B4SLwIP1.js} +2 -2
- package/dist/core/{Wool-BbrWlSA1.js → Wool-qg-z_TFC.js} +3 -3
- package/dist/core/{WorleyNoise-D4WEqlUn.js → WorleyNoise-CjVw20Fl.js} +3 -3
- package/dist/core/{ZoomBlur-vR6SbHT_.js → ZoomBlur-Lm_pVpMf.js} +3 -3
- package/dist/core/{agents-mCXmuOM8.js → agents-B0ZiK3le.js} +4 -4
- package/dist/core/{agents-o-Vn5L0g.js → agents-DXoEcto0.js} +1 -1
- package/dist/core/{blur-EIlP7crr.js → blur-7yjVyMvI.js} +1 -1
- package/dist/core/{blurs-clhkrRkE.js → blurs-d4B9aUyx.js} +5 -5
- package/dist/core/{color-BPEKNc5G.js → color-Do6tU0ry.js} +2 -2
- package/dist/core/{compose-BARHZTzx.js → compose-Dkf3v-xS.js} +4 -4
- package/dist/core/{feedback-CclkvWMf.js → feedback-Dro_hxd4.js} +1 -1
- package/dist/core/{fields-CjLd6eM_.js → fields-DgADOKsP.js} +6 -6
- package/dist/core/{figures-By-qe2Oe.js → figures-B3lUGP8u.js} +3 -3
- package/dist/core/{fluids-5_eJeyn7.js → fluids-umEWgdvj.js} +2 -2
- package/dist/core/{frames-ETCJnyc8.js → frames-BLqt7oaW.js} +2 -2
- package/dist/core/{glass-D21uxDa3.js → glass-ABppDbYG.js} +1 -1
- package/dist/core/gpu/kit/index.d.ts +1 -0
- package/dist/core/gpu/kit/index.d.ts.map +1 -1
- package/dist/core/gpu/kit/sdf3d.d.ts +39 -2
- package/dist/core/gpu/kit/sdf3d.d.ts.map +1 -1
- package/dist/core/gpu/kit/voxels.d.ts +229 -0
- package/dist/core/gpu/kit/voxels.d.ts.map +1 -0
- package/dist/core/{gradientPaints-BgsQLnMg.js → gradientPaints-5HpJVNfb.js} +3 -3
- package/dist/core/{gradients-BQStdO7I.js → gradients-CIxKrfME.js} +4 -4
- package/dist/core/index.js +243 -242
- package/dist/core/{lens-cEB9ytw-.js → lens-DJQNJKCW.js} +1 -1
- package/dist/core/{light-Co_kazz0.js → light-D3BIVkxy.js} +6 -6
- package/dist/core/{lightfields-7J9mq-m8.js → lightfields-DvrUaH_6.js} +2 -2
- package/dist/core/{lower-BHIbBZvG.js → lower-Bd2jez_2.js} +3 -3
- package/dist/core/{mask-DEVvDnXy.js → mask-CeSwL79Q.js} +2 -2
- package/dist/core/{materials-DIX1dR_L.js → materials-9wjBrzQO.js} +6 -5
- package/dist/core/{math-CeI5l-C7.js → math-D864seEs.js} +4 -2
- package/dist/core/{media-SJiqn7ve.js → media-DXUY3ltG.js} +1 -1
- package/dist/core/{motionBlur-BZopqi6I.js → motionBlur-g_WSi2iq.js} +2 -2
- package/dist/core/{noise-l6iAMDOU.js → noise-d7rmP9yc.js} +6 -6
- package/dist/core/{noiseColor-CMHuDcQY.js → noiseColor-DuWjYRmO.js} +2 -2
- package/dist/core/{noisePaints-B5n4XOiV.js → noisePaints-CfHcXL02.js} +3 -3
- package/dist/core/{overlay-C91yjA3U.js → overlay-D5w0585O.js} +2 -2
- package/dist/core/{patterns-Cc6E2ZZl.js → patterns-Bg8lSdqH.js} +6 -6
- package/dist/core/{pointerFields-CSMPkugZ.js → pointerFields-CRecZwuZ.js} +2 -2
- package/dist/core/{porters-CMOlMI6m.js → porters-OTkIMOyl.js} +2 -2
- package/dist/core/registry.js +243 -242
- package/dist/core/{reveal-Bqouy173.js → reveal-CfaAg-rg.js} +1 -1
- package/dist/core/{sdf3d-D8apqgo2.js → sdf3d-sya0j8F2.js} +1906 -1200
- package/dist/core/shaderRegistry-DG3mjxb3.js +443 -0
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/AngularBlur/index.js +8 -8
- package/dist/core/shaders/Arc/index.js +5 -5
- package/dist/core/shaders/Ascii/index.js +7 -7
- package/dist/core/shaders/Aurora/index.js +19 -19
- package/dist/core/shaders/BarShift/index.js +6 -6
- package/dist/core/shaders/BarnDoors/index.js +5 -5
- package/dist/core/shaders/Beam/index.js +9 -9
- package/dist/core/shaders/Bend/index.js +6 -6
- package/dist/core/shaders/Blob/index.js +16 -16
- package/dist/core/shaders/BlockDissolve/index.js +5 -5
- package/dist/core/shaders/BlockNoise/index.js +12 -12
- package/dist/core/shaders/BlueNoise/index.js +12 -12
- package/dist/core/shaders/Blur/index.js +8 -8
- package/dist/core/shaders/Boids/index.js +7 -7
- package/dist/core/shaders/BokehBlur/index.js +8 -8
- package/dist/core/shaders/BrickPattern/index.js +11 -11
- package/dist/core/shaders/BrightnessContrast/index.js +6 -6
- package/dist/core/shaders/BrushedMetal/index.js +9 -9
- package/dist/core/shaders/Bulge/index.js +6 -6
- package/dist/core/shaders/CRTScreen/index.js +8 -8
- package/dist/core/shaders/CarbonFiber/index.js +9 -9
- package/dist/core/shaders/Chalkboard/index.js +7 -7
- package/dist/core/shaders/ChannelBlur/index.js +8 -8
- package/dist/core/shaders/CheckerWipe/index.js +5 -5
- package/dist/core/shaders/Checkerboard/index.js +11 -11
- package/dist/core/shaders/Chevron/index.js +11 -11
- package/dist/core/shaders/ChromaFlow/index.js +6 -6
- package/dist/core/shaders/ChromaticAberration/index.js +9 -9
- package/dist/core/shaders/Chrome/index.js +8 -8
- package/dist/core/shaders/Circle/index.js +5 -5
- package/dist/core/shaders/ColorWheel/index.js +9 -9
- package/dist/core/shaders/CompressionArtifacts/index.js +5 -5
- package/dist/core/shaders/ConcentricSpin/index.js +6 -6
- package/dist/core/shaders/ConicGradient/index.js +9 -9
- package/dist/core/shaders/ContourLines/index.js +5 -5
- package/dist/core/shaders/CornerPin/index.js +6 -6
- package/dist/core/shaders/Crescent/index.js +4 -4
- package/dist/core/shaders/Cross/index.js +4 -4
- package/dist/core/shaders/Crystal/index.js +9 -9
- package/dist/core/shaders/CurlNoise/index.js +12 -12
- package/dist/core/shaders/CursorRipples/index.js +6 -6
- package/dist/core/shaders/CursorTrail/index.js +5 -5
- package/dist/core/shaders/DataMosh/index.js +5 -5
- package/dist/core/shaders/DiamondGradient/index.js +9 -9
- package/dist/core/shaders/DiamondWipe/index.js +5 -5
- package/dist/core/shaders/DiffuseBlur/index.js +8 -8
- package/dist/core/shaders/DisplacementMap/index.js +6 -6
- package/dist/core/shaders/Dither/index.js +11 -11
- package/dist/core/shaders/DotGrid/index.js +11 -11
- package/dist/core/shaders/DropShadow/index.js +8 -8
- package/dist/core/shaders/Duotone/index.js +5 -5
- package/dist/core/shaders/Ellipse/index.js +4 -4
- package/dist/core/shaders/Emboss/index.js +7 -7
- package/dist/core/shaders/Engraving/index.js +7 -7
- package/dist/core/shaders/ErosionNoise/index.js +12 -12
- package/dist/core/shaders/Exposure/index.js +6 -6
- package/dist/core/shaders/FallingLines/index.js +11 -11
- package/dist/core/shaders/FilmGrain/index.js +6 -6
- package/dist/core/shaders/FilmStock/index.js +11 -11
- package/dist/core/shaders/Flip/index.js +6 -6
- package/dist/core/shaders/FloatingParticles/index.js +7 -7
- package/dist/core/shaders/FlowField/index.js +6 -6
- package/dist/core/shaders/Flower/index.js +4 -4
- package/dist/core/shaders/FlowingGradient/index.js +13 -13
- package/dist/core/shaders/FlutedGlass/index.js +9 -9
- package/dist/core/shaders/Fog/index.js +5 -5
- package/dist/core/shaders/Form3D/index.js +5 -5
- package/dist/core/shaders/FractalNoise/index.js +11 -11
- package/dist/core/shaders/Frost/index.js +9 -9
- package/dist/core/shaders/GaborNoise/index.js +12 -12
- package/dist/core/shaders/Glass/index.js +9 -9
- package/dist/core/shaders/GlassTiles/index.js +6 -6
- package/dist/core/shaders/Glitch/index.js +8 -8
- package/dist/core/shaders/Glow/index.js +9 -9
- package/dist/core/shaders/Godrays/index.js +10 -10
- package/dist/core/shaders/Goo/index.js +9 -9
- package/dist/core/shaders/GradientMap/index.js +6 -6
- package/dist/core/shaders/Grayscale/index.js +5 -5
- package/dist/core/shaders/Grid/index.js +11 -11
- package/dist/core/shaders/GridDistortion/index.js +9 -9
- package/dist/core/shaders/Group/index.js +4 -4
- package/dist/core/shaders/HTMLInCanvas/index.js +4 -4
- package/dist/core/shaders/Halftone/index.js +11 -11
- package/dist/core/shaders/Heart/index.js +4 -4
- package/dist/core/shaders/Heatmap/index.js +9 -9
- package/dist/core/shaders/HexGrid/index.js +11 -11
- package/dist/core/shaders/Hologram/index.js +8 -8
- package/dist/core/shaders/Holographic/index.js +8 -8
- package/dist/core/shaders/HueShift/index.js +6 -6
- package/dist/core/shaders/ImageTexture/index.js +4 -4
- package/dist/core/shaders/InkFlow/index.js +6 -6
- package/dist/core/shaders/Invert/index.js +5 -5
- package/dist/core/shaders/IrisWipe/index.js +5 -5
- package/dist/core/shaders/Irradiance/index.js +11 -11
- package/dist/core/shaders/IsometricCubes/index.js +11 -11
- package/dist/core/shaders/Kaleidoscope/index.js +6 -6
- package/dist/core/shaders/KeyFrames/index.js +5 -5
- package/dist/core/shaders/LensDistortion/index.js +4 -4
- package/dist/core/shaders/LensFlare/index.js +10 -10
- package/dist/core/shaders/LightEdge/index.js +8 -8
- package/dist/core/shaders/LightLeak/index.js +10 -10
- package/dist/core/shaders/Line/index.js +8 -8
- package/dist/core/shaders/LinearBlur/index.js +8 -8
- package/dist/core/shaders/LinearGradient/index.js +9 -9
- package/dist/core/shaders/LinearWipe/index.js +5 -5
- package/dist/core/shaders/LiquidMetal/index.js +9 -9
- package/dist/core/shaders/Liquify/index.js +8 -8
- package/dist/core/shaders/MagneticFilings/index.js +7 -7
- package/dist/core/shaders/Marble/index.js +13 -13
- package/dist/core/shaders/MeshGradient/index.js +15 -15
- package/dist/core/shaders/Mirror/index.js +6 -6
- package/dist/core/shaders/MultiPointGradient/index.js +9 -9
- package/dist/core/shaders/Nebula/index.js +11 -11
- package/dist/core/shaders/Neon/index.js +7 -7
- package/dist/core/shaders/NoiseDissolve/index.js +5 -5
- package/dist/core/shaders/ObjectTracker/index.js +5 -5
- package/dist/core/shaders/Obsidian/index.js +13 -13
- package/dist/core/shaders/PagePeel/index.js +8 -8
- package/dist/core/shaders/Paper/index.js +6 -6
- package/dist/core/shaders/Parallelogram/index.js +4 -4
- package/dist/core/shaders/ParticleField/index.js +7 -7
- package/dist/core/shaders/ParticleFlow/index.js +8 -8
- package/dist/core/shaders/Particles/index.js +7 -7
- package/dist/core/shaders/PerlinNoise/index.js +12 -12
- package/dist/core/shaders/Perspective/index.js +6 -6
- package/dist/core/shaders/PixelSort/index.js +6 -6
- package/dist/core/shaders/PixelThrow/index.js +6 -6
- package/dist/core/shaders/Pixelate/index.js +8 -8
- package/dist/core/shaders/Plasma/index.js +9 -9
- package/dist/core/shaders/Plastic/index.js +9 -9
- package/dist/core/shaders/PolarCoordinates/index.js +6 -6
- package/dist/core/shaders/Polygon/index.js +5 -5
- package/dist/core/shaders/Posterize/index.js +5 -5
- package/dist/core/shaders/Prism/index.js +10 -10
- package/dist/core/shaders/ProgressiveBlur/index.js +8 -8
- package/dist/core/shaders/RadialGradient/index.js +9 -9
- package/dist/core/shaders/RadialWipe/index.js +5 -5
- package/dist/core/shaders/RandomBars/index.js +5 -5
- package/dist/core/shaders/ReactionDiffusion/index.js +6 -6
- package/dist/core/shaders/RectangularCoordinates/index.js +6 -6
- package/dist/core/shaders/ReflectivePlane/index.js +8 -8
- package/dist/core/shaders/Repeater/index.js +4 -4
- package/dist/core/shaders/Ring/index.js +4 -4
- package/dist/core/shaders/RippleWipe/index.js +5 -5
- package/dist/core/shaders/Ripples/index.js +11 -11
- package/dist/core/shaders/RoundedRect/index.js +4 -4
- package/dist/core/shaders/Saturation/index.js +6 -6
- package/dist/core/shaders/Scratches/index.js +12 -12
- package/dist/core/shaders/Sharpness/index.js +9 -9
- package/dist/core/shaders/Shatter/index.js +4 -4
- package/dist/core/shaders/SimplexNoise/index.js +12 -12
- package/dist/core/shaders/SineWave/index.js +8 -8
- package/dist/core/shaders/SliceWipe/index.js +6 -6
- package/dist/core/shaders/Smoke/index.js +5 -5
- package/dist/core/shaders/SmokeFill/index.js +8 -8
- package/dist/core/shaders/SmokeFlow/index.js +5 -5
- package/dist/core/shaders/Solarize/index.js +6 -6
- package/dist/core/shaders/SolidColor/index.js +9 -9
- package/dist/core/shaders/Spherize/index.js +8 -8
- package/dist/core/shaders/Spiral/index.js +9 -9
- package/dist/core/shaders/Star/index.js +4 -4
- package/dist/core/shaders/Stone/index.js +12 -12
- package/dist/core/shaders/Strands/index.js +11 -11
- package/dist/core/shaders/Stretch/index.js +6 -6
- package/dist/core/shaders/Stripes/index.js +11 -11
- package/dist/core/shaders/StudioBackground/index.js +12 -12
- package/dist/core/shaders/SunBurst/index.js +10 -10
- package/dist/core/shaders/Surface3D/index.js +6 -6
- package/dist/core/shaders/Swirl/index.js +9 -9
- package/dist/core/shaders/Teardrop/index.js +4 -4
- package/dist/core/shaders/Text/index.js +7 -7
- package/dist/core/shaders/ThinFilm/index.js +7 -7
- package/dist/core/shaders/TiltShift/index.js +8 -8
- package/dist/core/shaders/TimeTrail/index.js +6 -6
- package/dist/core/shaders/Tint/index.js +5 -5
- package/dist/core/shaders/Trapezoid/index.js +4 -4
- package/dist/core/shaders/TriangularGrid/index.js +11 -11
- package/dist/core/shaders/Tritone/index.js +5 -5
- package/dist/core/shaders/Truchet/index.js +11 -11
- package/dist/core/shaders/Twirl/index.js +6 -6
- package/dist/core/shaders/VHS/index.js +8 -8
- package/dist/core/shaders/VenetianBlinds/index.js +5 -5
- package/dist/core/shaders/Vesica/index.js +4 -4
- package/dist/core/shaders/Vibrance/index.js +6 -6
- package/dist/core/shaders/VideoTexture/index.js +4 -4
- package/dist/core/shaders/Vignette/index.js +7 -7
- package/dist/core/shaders/Voronoi/index.js +11 -11
- package/dist/core/shaders/Voxels/index.d.ts +211 -0
- package/dist/core/shaders/Voxels/index.d.ts.map +1 -0
- package/dist/core/shaders/Voxels/index.js +15 -0
- package/dist/core/shaders/Water/index.js +9 -9
- package/dist/core/shaders/Watercolor/index.js +8 -8
- package/dist/core/shaders/WaveDistortion/index.js +6 -6
- package/dist/core/shaders/Waveform/index.js +14 -14
- package/dist/core/shaders/WaveletNoise/index.js +12 -12
- package/dist/core/shaders/Weave/index.js +11 -11
- package/dist/core/shaders/WebcamTexture/index.js +4 -4
- package/dist/core/shaders/Wool/index.js +12 -12
- package/dist/core/shaders/WorleyNoise/index.js +11 -11
- package/dist/core/shaders/ZoomBlur/index.js +8 -8
- package/dist/core/{shape-CARFmIpC.js → shape-CAkSlCi8.js} +1 -1
- package/dist/core/{shapePaints-BtKy1E6I.js → shapePaints-Bg2UwCZo.js} +3 -3
- package/dist/core/std/paint/materials.d.ts +3 -0
- package/dist/core/std/paint/materials.d.ts.map +1 -1
- package/dist/core/std/paint/voxels.d.ts +65 -0
- package/dist/core/std/paint/voxels.d.ts.map +1 -0
- package/dist/core/{stylize-ailwfD1f.js → stylize-DiuoSq16.js} +2 -2
- package/dist/core/{tone-CShJctzV.js → tone-BKhfiOBn.js} +1 -1
- package/dist/core/utilities/shapeEffectBounds.d.ts +13 -0
- package/dist/core/utilities/shapeEffectBounds.d.ts.map +1 -1
- package/dist/core/utilities/transformations/index.js +1 -1
- package/dist/core/{warpMaps-EGxKq6h8.js → warpMaps-Y8xSo-QJ.js} +2 -2
- package/dist/core/{warps-CjDjbWT0.js → warps-P5O3NWLe.js} +3 -3
- package/dist/js/bundle.js +180 -180
- package/dist/js/createShader.js +1 -1
- package/dist/js/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/js/utils/generatePresetCode.js +37 -0
- package/dist/react/Preview.js +1 -0
- package/dist/react/Shader.js +1 -1
- package/dist/react/Voxels.js +226 -0
- package/dist/react/bundle.js +175 -175
- package/dist/react/components/Voxels.d.ts +47 -0
- package/dist/react/components/Voxels.d.ts.map +1 -0
- package/dist/react/engine/Preview.d.ts.map +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +2 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +37 -0
- package/dist/registry.js +991 -0
- package/dist/solid/components/Voxels.d.ts +44 -0
- package/dist/solid/components/Voxels.d.ts.map +1 -0
- package/dist/solid/components/Voxels.js +232 -0
- package/dist/solid/engine/Preview.d.ts.map +1 -1
- package/dist/solid/engine/Preview.js +377 -375
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +26 -24
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +37 -0
- package/dist/svelte/components/Voxels.svelte.d.ts +34 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +2677 -2470
- package/dist/svelte/source/components/Voxels.svelte +358 -0
- package/dist/svelte/source/engine/Preview.svelte +2 -0
- package/dist/svelte/source/index.js +1 -0
- package/dist/svelte/utils/generatePresetCode.js +37 -0
- package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/vue/Voxels.js +3 -0
- package/dist/vue/Voxels.vue_vue_type_script_setup_true_lang.js +256 -0
- package/dist/vue/components/Voxels.vue.d.ts +69 -0
- package/dist/vue/components/Voxels.vue.d.ts.map +1 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +2 -1
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +37 -0
- package/package.json +9 -1
- package/dist/core/shaderRegistry-CmCS5EwT.js +0 -441
- /package/dist/core/{filter-VJlLs3Zs.js → filter-BrhpSs3Z.js} +0 -0
- /package/dist/core/{grids-B04hYuFv.js → grids-Cv99xcJg.js} +0 -0
- /package/dist/core/{noiseStylize-BfLjdB5R.js → noiseStylize-CUrW_HiC.js} +0 -0
- /package/dist/core/{signal-DuaxoxK4.js → signal-emJuvOI3.js} +0 -0
- /package/dist/core/{slots-BuIG6s6W.js → slots-BqIef2iV.js} +0 -0
- /package/dist/core/{transformations-COlfAEsk.js → transformations-CzFmhZww.js} +0 -0
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { getContext, setContext, onMount, onDestroy } from 'svelte';
|
|
3
|
+
import {
|
|
4
|
+
createGpuUniformsMap,
|
|
5
|
+
resolveBoundingBox,
|
|
6
|
+
type GpuUniformsMap,
|
|
7
|
+
type BlendMode,
|
|
8
|
+
type NodeMetadata,
|
|
9
|
+
type PropConfig,
|
|
10
|
+
type MaskConfig,
|
|
11
|
+
type PropDriver,
|
|
12
|
+
type TransformConfig,
|
|
13
|
+
type BoundingBoxConfig,
|
|
14
|
+
type LayoutConfig
|
|
15
|
+
} from '../../../core/index.js';
|
|
16
|
+
import {setColorSpaceMode} from '../../../core/utilities/transformations/index.js';
|
|
17
|
+
|
|
18
|
+
// @ts-ignore - this import is replaced at build time
|
|
19
|
+
import { componentDefinition, type ComponentProps } from '../../../core/shaders/Voxels/index.js';
|
|
20
|
+
|
|
21
|
+
// Warn once per page load if this is an experimental component
|
|
22
|
+
let _experimentalWarnedOnce = false;
|
|
23
|
+
if ((componentDefinition as any).experimental && !_experimentalWarnedOnce) {
|
|
24
|
+
_experimentalWarnedOnce = true;
|
|
25
|
+
const _e = (componentDefinition as any).experimental;
|
|
26
|
+
console.info(`%c⚠ [Shaders] ${componentDefinition.name} is experimental: ${_e.message}`, 'color: #f59e0b; font-weight: bold');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Define component props including blend mode, opacity, visibility, masking, and transformation
|
|
31
|
+
*/
|
|
32
|
+
interface ExtendedComponentProps extends Partial<ComponentProps> {
|
|
33
|
+
center?: ComponentProps['center'] | PropDriver;
|
|
34
|
+
colorVariation?: ComponentProps['colorVariation'] | PropDriver;
|
|
35
|
+
lightAngle?: ComponentProps['lightAngle'] | PropDriver;
|
|
36
|
+
lightElevation?: ComponentProps['lightElevation'] | PropDriver;
|
|
37
|
+
lightIntensity?: ComponentProps['lightIntensity'] | PropDriver;
|
|
38
|
+
ambient?: ComponentProps['ambient'] | PropDriver;
|
|
39
|
+
shadows?: ComponentProps['shadows'] | PropDriver;
|
|
40
|
+
shadowSoftness?: ComponentProps['shadowSoftness'] | PropDriver;
|
|
41
|
+
ao?: ComponentProps['ao'] | PropDriver;
|
|
42
|
+
glossiness?: ComponentProps['glossiness'] | PropDriver;
|
|
43
|
+
specular?: ComponentProps['specular'] | PropDriver;
|
|
44
|
+
seams?: ComponentProps['seams'] | PropDriver;
|
|
45
|
+
blendMode?: BlendMode;
|
|
46
|
+
opacity?: number;
|
|
47
|
+
visible?: boolean;
|
|
48
|
+
id?: string;
|
|
49
|
+
maskSource?: string;
|
|
50
|
+
maskType?: string;
|
|
51
|
+
renderOrder?: number;
|
|
52
|
+
transform?: Partial<TransformConfig>;
|
|
53
|
+
boundingBox?: Partial<BoundingBoxConfig>;
|
|
54
|
+
flow?: LayoutConfig;
|
|
55
|
+
absolute?: boolean;
|
|
56
|
+
children?: import('svelte').Snippet;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function isPropDriver(value: unknown): value is PropDriver {
|
|
60
|
+
return typeof value === 'object' && value !== null && 'type' in value &&
|
|
61
|
+
((value as any).type === 'map' || (value as any).type === 'mouse' || (value as any).type === 'mouse-position' || (value as any).type === 'auto-animate');
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Default transform configuration (optimized for zero overhead)
|
|
66
|
+
*/
|
|
67
|
+
const DEFAULT_TRANSFORM: TransformConfig = {
|
|
68
|
+
offsetX: 0,
|
|
69
|
+
offsetY: 0,
|
|
70
|
+
rotation: 0,
|
|
71
|
+
scale: 1,
|
|
72
|
+
anchorX: 0.5,
|
|
73
|
+
anchorY: 0.5,
|
|
74
|
+
edges: 'transparent'
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// Define the component props and their default values from the shader definition
|
|
78
|
+
const componentDefaults = {
|
|
79
|
+
blendMode: 'normal' as BlendMode,
|
|
80
|
+
visible: true,
|
|
81
|
+
// opacity intentionally has no default - handled by renderer
|
|
82
|
+
// transform intentionally has no default - handled by effectiveTransform
|
|
83
|
+
...Object.entries(componentDefinition.props).reduce(
|
|
84
|
+
(acc, [key, config]) => {
|
|
85
|
+
acc[key] = (config as unknown as PropConfig<typeof config>).default;
|
|
86
|
+
return acc;
|
|
87
|
+
},
|
|
88
|
+
{} as Record<string, any>
|
|
89
|
+
)
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
// Declare props using Svelte 5's syntax
|
|
93
|
+
const props: ExtendedComponentProps = $props();
|
|
94
|
+
|
|
95
|
+
// Apply defaults manually since Svelte 5 doesn't have withDefaults equivalent
|
|
96
|
+
// Use $derived so the metadata $effect re-runs when any of these change at runtime
|
|
97
|
+
const blendMode = $derived(props.blendMode ?? componentDefaults.blendMode);
|
|
98
|
+
const opacity = $derived(props.opacity); // No default - handled by renderer
|
|
99
|
+
const visible = $derived(props.visible ?? componentDefaults.visible); // Default to true
|
|
100
|
+
const id = $derived(props.id);
|
|
101
|
+
const maskSource = $derived(props.maskSource);
|
|
102
|
+
const maskType = $derived(props.maskType);
|
|
103
|
+
const renderOrder = $derived(props.renderOrder);
|
|
104
|
+
const { children } = props;
|
|
105
|
+
|
|
106
|
+
// Collect PropDriver values from shader props into the maps metadata structure
|
|
107
|
+
const mapsFromProps = $derived.by(() => {
|
|
108
|
+
const maps: Record<string, PropDriver> = {};
|
|
109
|
+
for (const key of Object.keys(componentDefinition.props)) {
|
|
110
|
+
const val = (props as any)[key];
|
|
111
|
+
if (isPropDriver(val)) maps[key] = val as PropDriver;
|
|
112
|
+
}
|
|
113
|
+
return Object.keys(maps).length > 0 ? maps : undefined;
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Computed transform that merges user-provided values with defaults
|
|
118
|
+
*/
|
|
119
|
+
const effectiveTransform = $derived({
|
|
120
|
+
...DEFAULT_TRANSFORM,
|
|
121
|
+
...props.transform
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Effective bounding box — partial configs merge with full-frame defaults,
|
|
126
|
+
* absent stays undefined so the bbox render path is not activated
|
|
127
|
+
*/
|
|
128
|
+
const effectiveBoundingBox = $derived(resolveBoundingBox(props.boundingBox));
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* FIRST: Get the parent ID from context BEFORE setting our own context
|
|
132
|
+
*/
|
|
133
|
+
const parentId = getContext<string>('shaderParentId');
|
|
134
|
+
if (parentId === undefined) {
|
|
135
|
+
throw new Error('Shader components must be used inside an <Shader> component or another shader component');
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Use the provided ID or generate a unique identifier for this component instance
|
|
140
|
+
*/
|
|
141
|
+
const instanceId = (id ? id.replace(/[^a-zA-Z0-9_]/g, '_') : null) || Math.random().toString(36).substring(2, 10);
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* THEN: Provide our unique identifier to child components
|
|
145
|
+
*/
|
|
146
|
+
setContext('shaderParentId', instanceId);
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Creates a non-reactive object containing only props that differ from defaults
|
|
150
|
+
* This optimization prevents unnecessary GPU uniform updates for unchanged values
|
|
151
|
+
* Special props like blendMode and opacity are handled separately
|
|
152
|
+
*/
|
|
153
|
+
const shaderReadyProps = $derived.by(() => {
|
|
154
|
+
let baseProps = { ...componentDefaults };
|
|
155
|
+
|
|
156
|
+
// Only include props that differ from defaults (excluding special props and PropDrivers)
|
|
157
|
+
for (const key in props) {
|
|
158
|
+
if (key !== 'blendMode' && key !== 'opacity' && key !== 'visible' &&
|
|
159
|
+
key !== 'id' && key !== 'maskSource' && key !== 'maskType' && key !== 'renderOrder' &&
|
|
160
|
+
key !== 'transform' && key !== 'boundingBox' && key !== 'flow' && key !== 'absolute' && key !== 'children') {
|
|
161
|
+
const propValue = (props as any)[key];
|
|
162
|
+
if (isPropDriver(propValue)) continue; // PropDrivers go to metadata.maps, not uniforms
|
|
163
|
+
const defaultValue = (componentDefaults as any)[key];
|
|
164
|
+
if (propValue !== undefined && propValue !== defaultValue) {
|
|
165
|
+
(baseProps as any)[key] = propValue;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return baseProps;
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Get the color space from the root Shader component.
|
|
174
|
+
* Used to set the global color space mode before creating uniforms.
|
|
175
|
+
*/
|
|
176
|
+
const shaderColorSpace = getContext<() => 'p3-linear' | 'srgb'>('shaderColorSpace');
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Creates the GPU uniform values map using only the changed props
|
|
180
|
+
* Set the global color space mode before creating uniforms so colors are transformed correctly
|
|
181
|
+
* Note: Intentionally captures initial value - props are immutable after initialization
|
|
182
|
+
*/
|
|
183
|
+
if (shaderColorSpace) {
|
|
184
|
+
setColorSpaceMode(shaderColorSpace());
|
|
185
|
+
}
|
|
186
|
+
// svelte-ignore state_referenced_locally
|
|
187
|
+
const uniforms: GpuUniformsMap = createGpuUniformsMap(componentDefinition, shaderReadyProps, instanceId);
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Get the node registration function from parent context
|
|
191
|
+
*/
|
|
192
|
+
const parentRegister = getContext<(id: string, fragmentNodeFunc: any, parentId: string | null, metadata: NodeMetadata | null, uniforms: GpuUniformsMap | null, componentDefinition: any, domCanvas?: HTMLCanvasElement) => void>('shaderNodeRegister');
|
|
193
|
+
if (parentRegister === undefined) {
|
|
194
|
+
throw new Error('Shader components must be used inside an <Shader> component or another shader component');
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Get the uniform update function from parent context
|
|
199
|
+
*/
|
|
200
|
+
const parentUniformUpdate = getContext<(nodeId: string, uniformName: string, value: any) => void>('shaderUniformUpdate');
|
|
201
|
+
if (parentUniformUpdate === undefined) {
|
|
202
|
+
throw new Error('Shader components require shaderUniformUpdate from parent');
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Get the metadata update function from parent context
|
|
207
|
+
*/
|
|
208
|
+
const parentMetadataUpdate = getContext<(nodeId: string, metadata: NodeMetadata) => void>('shaderMetadataUpdate');
|
|
209
|
+
if (parentMetadataUpdate === undefined) {
|
|
210
|
+
throw new Error('Shader components require shaderMetadataUpdate from parent');
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// capturesDOM — canvas layoutsubtree portal for HTMLInCanvas-style shaders
|
|
214
|
+
const isCapturesDOM = !!(componentDefinition as any).capturesDOM;
|
|
215
|
+
let captureCanvas: HTMLCanvasElement | undefined;
|
|
216
|
+
let captureW = $state(typeof window !== 'undefined' ? Math.round(window.innerWidth * Math.min(window.devicePixelRatio, 2)) : 0);
|
|
217
|
+
let captureH = $state(typeof window !== 'undefined' ? Math.round(window.innerHeight * Math.min(window.devicePixelRatio, 2)) : 0);
|
|
218
|
+
|
|
219
|
+
function teleportToBody(node: HTMLElement) {
|
|
220
|
+
document.body.appendChild(node);
|
|
221
|
+
return { destroy() { node.remove(); } };
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
if (isCapturesDOM) {
|
|
225
|
+
const onWinResize = () => {
|
|
226
|
+
const d = Math.min(window.devicePixelRatio, 2);
|
|
227
|
+
captureW = Math.round(window.innerWidth * d);
|
|
228
|
+
captureH = Math.round(window.innerHeight * d);
|
|
229
|
+
};
|
|
230
|
+
onMount(() => { window.addEventListener('resize', onWinResize); });
|
|
231
|
+
onDestroy(() => { window.removeEventListener('resize', onWinResize); });
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// DOM marker ref for determining render order from template position
|
|
235
|
+
let orderMarker: HTMLSpanElement;
|
|
236
|
+
|
|
237
|
+
// Stores the DOM-detected render order
|
|
238
|
+
let detectedRenderOrder: number | undefined = undefined;
|
|
239
|
+
|
|
240
|
+
// Flag to track when component is registered
|
|
241
|
+
let isRegistered = $state(false);
|
|
242
|
+
|
|
243
|
+
// Setup uniform watchers with registration guard
|
|
244
|
+
Object.entries(uniforms).forEach(([propName, entry]) => {
|
|
245
|
+
$effect(() => {
|
|
246
|
+
// Only run after component is registered
|
|
247
|
+
if (!isRegistered) return;
|
|
248
|
+
|
|
249
|
+
// GPU bridge entries carry `.value` (no v1 `.uniform` node). colorStops expands into
|
|
250
|
+
// extra array fields (colorsArray/…) that aren't component props — their `props[name]`
|
|
251
|
+
// is always undefined, so the guard below skips them.
|
|
252
|
+
if (entry && entry.value !== undefined) {
|
|
253
|
+
const newValue = (props as any)[propName];
|
|
254
|
+
if (newValue !== undefined && !isPropDriver(newValue)) {
|
|
255
|
+
// Send raw value - renderer will handle transformation
|
|
256
|
+
// PropDriver values go to metadata.maps, not uniforms
|
|
257
|
+
parentUniformUpdate(instanceId, propName, newValue);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
// Watch blend mode, opacity, visibility, masking, transformations, and prop maps changes
|
|
264
|
+
$effect(() => {
|
|
265
|
+
// Only run after component is registered
|
|
266
|
+
if (!isRegistered) return;
|
|
267
|
+
|
|
268
|
+
const metadata: NodeMetadata = {
|
|
269
|
+
blendMode,
|
|
270
|
+
opacity,
|
|
271
|
+
visible: visible === false ? false : true,
|
|
272
|
+
id,
|
|
273
|
+
mask: maskSource ? {
|
|
274
|
+
source: maskSource,
|
|
275
|
+
type: (maskType || 'alpha') as MaskConfig['type']
|
|
276
|
+
} : undefined,
|
|
277
|
+
maps: mapsFromProps,
|
|
278
|
+
renderOrder: renderOrder ?? detectedRenderOrder,
|
|
279
|
+
transform: effectiveTransform,
|
|
280
|
+
boundingBox: effectiveBoundingBox,
|
|
281
|
+
flow: props.flow,
|
|
282
|
+
absolute: props.absolute
|
|
283
|
+
};
|
|
284
|
+
parentMetadataUpdate(instanceId, metadata);
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
// Register this component after mount to ensure parent is ready
|
|
288
|
+
onMount(() => {
|
|
289
|
+
// Register this component with safety check
|
|
290
|
+
if (componentDefinition && typeof componentDefinition.fragment === 'function') {
|
|
291
|
+
parentRegister(
|
|
292
|
+
instanceId,
|
|
293
|
+
componentDefinition.fragment,
|
|
294
|
+
parentId,
|
|
295
|
+
{
|
|
296
|
+
blendMode,
|
|
297
|
+
opacity,
|
|
298
|
+
visible: visible !== false ? true : false,
|
|
299
|
+
id,
|
|
300
|
+
mask: maskSource ? {
|
|
301
|
+
source: maskSource,
|
|
302
|
+
type: (maskType || 'alpha') as MaskConfig['type']
|
|
303
|
+
} as MaskConfig : undefined,
|
|
304
|
+
maps: mapsFromProps,
|
|
305
|
+
renderOrder: renderOrder ?? detectedRenderOrder,
|
|
306
|
+
transform: effectiveTransform,
|
|
307
|
+
boundingBox: effectiveBoundingBox,
|
|
308
|
+
flow: props.flow,
|
|
309
|
+
absolute: props.absolute
|
|
310
|
+
},
|
|
311
|
+
uniforms,
|
|
312
|
+
componentDefinition,
|
|
313
|
+
isCapturesDOM ? captureCanvas : undefined
|
|
314
|
+
);
|
|
315
|
+
|
|
316
|
+
// Set flag to enable effects after successful registration
|
|
317
|
+
isRegistered = true;
|
|
318
|
+
|
|
319
|
+
// Detect DOM position for correct render ordering
|
|
320
|
+
if (renderOrder === undefined && orderMarker) {
|
|
321
|
+
const parent = orderMarker.parentElement;
|
|
322
|
+
if (parent) {
|
|
323
|
+
const siblings = parent.querySelectorAll(':scope > [data-shader-id]');
|
|
324
|
+
const position = Array.from(siblings).indexOf(orderMarker);
|
|
325
|
+
if (position >= 0) {
|
|
326
|
+
detectedRenderOrder = position;
|
|
327
|
+
parentMetadataUpdate(instanceId, { renderOrder: position } as NodeMetadata);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
} else {
|
|
332
|
+
console.error('componentDefinition.fragment is not a function:', {
|
|
333
|
+
componentDefinition,
|
|
334
|
+
fragment: componentDefinition?.fragment,
|
|
335
|
+
type: typeof componentDefinition?.fragment
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
|
|
340
|
+
// Clean up node from registry when component is unmounted
|
|
341
|
+
onDestroy(() => {
|
|
342
|
+
isRegistered = false;
|
|
343
|
+
parentRegister(instanceId, null, null, null, null);
|
|
344
|
+
});
|
|
345
|
+
</script>
|
|
346
|
+
|
|
347
|
+
<span bind:this={orderMarker} style="display:contents" data-shader-id={instanceId}>
|
|
348
|
+
{#if !isCapturesDOM}
|
|
349
|
+
{@render children?.()}
|
|
350
|
+
{/if}
|
|
351
|
+
</span>
|
|
352
|
+
{#if isCapturesDOM}
|
|
353
|
+
<canvas use:teleportToBody bind:this={captureCanvas} layoutsubtree
|
|
354
|
+
width={captureW} height={captureH}
|
|
355
|
+
style="position:fixed;inset:0;width:100vw;height:100vh;z-index:-9999">
|
|
356
|
+
{@render children?.()}
|
|
357
|
+
</canvas>
|
|
358
|
+
{/if}
|
|
@@ -192,6 +192,7 @@ import Vibrance from '../components/Vibrance.svelte'
|
|
|
192
192
|
import VideoTexture from '../components/VideoTexture.svelte'
|
|
193
193
|
import Vignette from '../components/Vignette.svelte'
|
|
194
194
|
import Voronoi from '../components/Voronoi.svelte'
|
|
195
|
+
import Voxels from '../components/Voxels.svelte'
|
|
195
196
|
import Water from '../components/Water.svelte'
|
|
196
197
|
import Watercolor from '../components/Watercolor.svelte'
|
|
197
198
|
import WaveDistortion from '../components/WaveDistortion.svelte'
|
|
@@ -394,6 +395,7 @@ const componentMap: Record<string, any> = {
|
|
|
394
395
|
VideoTexture,
|
|
395
396
|
Vignette,
|
|
396
397
|
Voronoi,
|
|
398
|
+
Voxels,
|
|
397
399
|
Water,
|
|
398
400
|
Watercolor,
|
|
399
401
|
WaveDistortion,
|
|
@@ -187,6 +187,7 @@ export { default as Vibrance } from './components/Vibrance.svelte';
|
|
|
187
187
|
export { default as VideoTexture } from './components/VideoTexture.svelte';
|
|
188
188
|
export { default as Vignette } from './components/Vignette.svelte';
|
|
189
189
|
export { default as Voronoi } from './components/Voronoi.svelte';
|
|
190
|
+
export { default as Voxels } from './components/Voxels.svelte';
|
|
190
191
|
export { default as Water } from './components/Water.svelte';
|
|
191
192
|
export { default as Watercolor } from './components/Watercolor.svelte';
|
|
192
193
|
export { default as WaveDistortion } from './components/WaveDistortion.svelte';
|
|
@@ -2858,6 +2858,42 @@ var shaderMetadata = {
|
|
|
2858
2858
|
"edgeSoftness": .05,
|
|
2859
2859
|
"colorSpace": "linear"
|
|
2860
2860
|
},
|
|
2861
|
+
"Voxels": {
|
|
2862
|
+
"opacity": 1,
|
|
2863
|
+
"blendMode": "normal",
|
|
2864
|
+
"origin": "center",
|
|
2865
|
+
"center": {
|
|
2866
|
+
"x": .5,
|
|
2867
|
+
"y": .5
|
|
2868
|
+
},
|
|
2869
|
+
"scale": 1,
|
|
2870
|
+
"rotation": 0,
|
|
2871
|
+
"voxelSize": .035,
|
|
2872
|
+
"voxelShape": "cube",
|
|
2873
|
+
"voxelScale": 1,
|
|
2874
|
+
"fill": 0,
|
|
2875
|
+
"bevel": .08,
|
|
2876
|
+
"depth": .12,
|
|
2877
|
+
"gridSpace": "shape",
|
|
2878
|
+
"colorA": "#6ea8ff",
|
|
2879
|
+
"colorB": "#1d2b4f",
|
|
2880
|
+
"colorMode": "height",
|
|
2881
|
+
"colorVariation": .25,
|
|
2882
|
+
"colorSpace": "oklab",
|
|
2883
|
+
"lightAngle": 225,
|
|
2884
|
+
"lightElevation": 42,
|
|
2885
|
+
"lightColor": "#fff2df",
|
|
2886
|
+
"lightIntensity": 1.1,
|
|
2887
|
+
"ambientColor": "#9fb4d8",
|
|
2888
|
+
"ambient": .55,
|
|
2889
|
+
"shadows": .85,
|
|
2890
|
+
"shadowSoftness": .35,
|
|
2891
|
+
"ao": 1,
|
|
2892
|
+
"glossiness": .35,
|
|
2893
|
+
"specular": .6,
|
|
2894
|
+
"seams": .2,
|
|
2895
|
+
"shape": "{\"type\":\"sphere3D\",\"radius\":0.35}"
|
|
2896
|
+
},
|
|
2861
2897
|
"Water": {
|
|
2862
2898
|
"opacity": 1,
|
|
2863
2899
|
"blendMode": "normal",
|
|
@@ -3341,6 +3377,7 @@ const availableComponents = [
|
|
|
3341
3377
|
"VideoTexture",
|
|
3342
3378
|
"Vignette",
|
|
3343
3379
|
"Voronoi",
|
|
3380
|
+
"Voxels",
|
|
3344
3381
|
"Water",
|
|
3345
3382
|
"Watercolor",
|
|
3346
3383
|
"WaveDistortion",
|
|
@@ -185,6 +185,7 @@ import Vibrance_default from "./Vibrance.js";
|
|
|
185
185
|
import VideoTexture_default from "./VideoTexture.js";
|
|
186
186
|
import Vignette_default from "./Vignette.js";
|
|
187
187
|
import Voronoi_default from "./Voronoi.js";
|
|
188
|
+
import Voxels_default from "./Voxels.js";
|
|
188
189
|
import Water_default from "./Water.js";
|
|
189
190
|
import Watercolor_default from "./Watercolor.js";
|
|
190
191
|
import WaveDistortion_default from "./WaveDistortion.js";
|
|
@@ -440,6 +441,7 @@ var Preview_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
440
441
|
VideoTexture: VideoTexture_default,
|
|
441
442
|
Vignette: Vignette_default,
|
|
442
443
|
Voronoi: Voronoi_default,
|
|
444
|
+
Voxels: Voxels_default,
|
|
443
445
|
Water: Water_default,
|
|
444
446
|
Watercolor: Watercolor_default,
|
|
445
447
|
WaveDistortion: WaveDistortion_default,
|
|
@@ -91,7 +91,7 @@ var Shader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
|
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
if (rendererInstance.value.getPerformanceStats().fps > 0) {
|
|
94
|
-
telemetryCollector = startTelemetry(rendererInstance.value, "3.2.
|
|
94
|
+
telemetryCollector = startTelemetry(rendererInstance.value, "3.2.468", props.disableTelemetry, props.isPreview);
|
|
95
95
|
if (telemetryCollector) telemetryCollector.start();
|
|
96
96
|
telemetryStartTimeout = null;
|
|
97
97
|
} else telemetryStartTimeout = setTimeout(checkRendering, 500);
|