shaders 3.2.464 → 3.2.465
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-BwCxKNcQ.js → AngularBlur-DIuqsh_g.js} +3 -3
- package/dist/core/{Arc-BdSzj8aT.js → Arc-Bj71OeVa.js} +3 -3
- package/dist/core/{Ascii-3XAIw2Bb.js → Ascii-B5Zg8nLu.js} +5 -5
- package/dist/core/Aurora-Bj7ZG2AI.js +304 -0
- package/dist/core/{BarShift-BfLFLroO.js → BarShift-DPThLZs_.js} +3 -3
- package/dist/core/{BarnDoors-Do1MN34d.js → BarnDoors-BRBbwW_m.js} +3 -3
- package/dist/core/{Beam-Crszqjl5.js → Beam-Hb_ert_g.js} +3 -3
- package/dist/core/{Bend-XAqsg_xj.js → Bend-DXsmc81z.js} +2 -2
- package/dist/core/{Blob-Sr5tPikb.js → Blob-BigqrVZv.js} +129 -23
- package/dist/core/{BlockDissolve-CtvDicJt.js → BlockDissolve-CdFU8h6C.js} +3 -3
- package/dist/core/{BlockNoise-BYCW1y2-.js → BlockNoise-CqPy-Ugl.js} +4 -4
- package/dist/core/{BlueNoise-DqZFPThf.js → BlueNoise-BAo4Aauw.js} +4 -4
- package/dist/core/{Blur-CbnGAsl9.js → Blur-DWRebKhd.js} +2 -2
- package/dist/core/{Boids-CnXob_HY.js → Boids-DmJhzUCH.js} +5 -5
- package/dist/core/{BokehBlur-DN1DMnaB.js → BokehBlur-CV3_ON_U.js} +3 -3
- package/dist/core/{BrickPattern-DxfaxjHT.js → BrickPattern-vu5nVCWG.js} +3 -3
- package/dist/core/{BrightnessContrast-DRSwp0yp.js → BrightnessContrast-CY9XAi43.js} +3 -3
- package/dist/core/{BrushedMetal-BlwYqKiC.js → BrushedMetal-DS2r5KNw.js} +7 -7
- package/dist/core/{Bulge-CWtv1aVG.js → Bulge-Deev-nna.js} +2 -2
- package/dist/core/{CRTScreen-CKNOV6IF.js → CRTScreen-UtLgwP9x.js} +2 -2
- package/dist/core/{CarbonFiber-0PowYOyE.js → CarbonFiber-DyjbFQoK.js} +6 -6
- package/dist/core/{Chalkboard-DNfYEUQN.js → Chalkboard-BmeKO6iA.js} +3 -3
- package/dist/core/{ChannelBlur-Bl5Slnhm.js → ChannelBlur-BCQbhip0.js} +2 -2
- package/dist/core/{CheckerWipe-D1Pn4tq3.js → CheckerWipe-B0AHd80A.js} +3 -3
- package/dist/core/{Checkerboard-DYNjSdWz.js → Checkerboard-BxPmaPzN.js} +3 -3
- package/dist/core/{Chevron-By9YDPlg.js → Chevron-DRRnVJv8.js} +3 -3
- package/dist/core/{ChromaFlow-BHgHfSHB.js → ChromaFlow-DvHs9Afa.js} +5 -5
- package/dist/core/{ChromaticAberration-CsekFO9W.js → ChromaticAberration-qZmFsW-9.js} +4 -4
- package/dist/core/{Chrome-wfGdzbP1.js → Chrome-CCiXGEIK.js} +6 -7
- package/dist/core/{Circle-CBP-iZmQ.js → Circle-C8oVlMm5.js} +3 -3
- package/dist/core/{ColorWheel-Bt8Yats6.js → ColorWheel-UiKMjGmo.js} +3 -3
- package/dist/core/{CompressionArtifacts-CN-aj4Cz.js → CompressionArtifacts-Bcy_oi6I.js} +3 -3
- package/dist/core/{ConcentricSpin-CyCJxLJL.js → ConcentricSpin-ChsvpM4g.js} +2 -2
- package/dist/core/{ConicGradient-ucJPMdRd.js → ConicGradient-biAKBzTF.js} +4 -4
- package/dist/core/{ContourLines-B_CtL8Vu.js → ContourLines-DSVY48D3.js} +3 -3
- package/dist/core/{CornerPin-C76LSuH_.js → CornerPin-Dlk-j8yj.js} +3 -3
- package/dist/core/{Crescent-D-gZU6vD.js → Crescent-CW1Jtj3p.js} +2 -2
- package/dist/core/{Cross-CPbK6WLW.js → Cross-BZJwBhka.js} +2 -2
- package/dist/core/{Crystal-BAVRri0F.js → Crystal-B9bRXJr3.js} +6 -6
- package/dist/core/{CurlNoise-B8V3FalE.js → CurlNoise-ChVPqfJM.js} +4 -4
- package/dist/core/{CursorRipples-Ce_kWhe1.js → CursorRipples-uyzFiPfj.js} +6 -18
- package/dist/core/{CursorTrail-Dza0OORy.js → CursorTrail-BljiaEok.js} +4 -4
- package/dist/core/{DataMosh-DrJYG80o.js → DataMosh-CrqYJIlZ.js} +3 -3
- package/dist/core/{DiamondGradient-Dq0DpQpR.js → DiamondGradient-DsJORW4q.js} +4 -4
- package/dist/core/{DiamondWipe-CcgeiQ3X.js → DiamondWipe-CZCAIz29.js} +3 -3
- package/dist/core/{DiffuseBlur-DUecWEvv.js → DiffuseBlur-D-ps8_Uv.js} +3 -3
- package/dist/core/{DisplacementMap-B-yc-a_8.js → DisplacementMap-BdTvPZ5i.js} +3 -3
- package/dist/core/{Dither-CFxqATIY.js → Dither-DZH2vlNW.js} +3 -3
- package/dist/core/{DotGrid-Br5gKbrO.js → DotGrid-DBBt-OS1.js} +3 -3
- package/dist/core/{DropShadow-CRe0s6MQ.js → DropShadow-CUzoBD7j.js} +3 -3
- package/dist/core/{Duotone-M-wa5I6y.js → Duotone-Bn5yWY27.js} +3 -3
- package/dist/core/{Ellipse-B8SC59iU.js → Ellipse-BtgtCRPq.js} +2 -2
- package/dist/core/{Emboss-Df9dLMp4.js → Emboss-DZ6Je6il.js} +5 -5
- package/dist/core/{Engraving-BCfdEBr_.js → Engraving-DzCC1mKj.js} +3 -3
- package/dist/core/{ErosionNoise-cwJc4FgN.js → ErosionNoise-Buor7ogt.js} +4 -4
- package/dist/core/{Exposure-ILGY3UKH.js → Exposure-CcM7JTiR.js} +3 -3
- package/dist/core/{FallingLines-wUWAGXtD.js → FallingLines-Cu1_3RSE.js} +3 -3
- package/dist/core/{FilmGrain-ablIumMy.js → FilmGrain-CDvRV776.js} +3 -3
- package/dist/core/{FilmStock-CmpGCyGm.js → FilmStock-CVEZ0MMq.js} +4 -4
- package/dist/core/{Flip-tLanxfrx.js → Flip-D4aYsHii.js} +3 -3
- package/dist/core/{FloatingParticles-Bi1Llmwz.js → FloatingParticles-DxG2b7KL.js} +5 -5
- package/dist/core/{FlowField-DDFjV4AF.js → FlowField-CBZ6AJjI.js} +3 -3
- package/dist/core/{Flower-CQgB1K5v.js → Flower-DQIHZ-bK.js} +2 -2
- package/dist/core/FlowingGradient-Dp7p0Z0-.js +201 -0
- package/dist/core/{FlutedGlass-B3Talps5.js → FlutedGlass-D0Eij6P1.js} +4 -4
- package/dist/core/{Fog-zIXi81Mr.js → Fog-CRkLRU9L.js} +4 -4
- package/dist/core/{Form3D-JvT_i-8s.js → Form3D-DPKVw7Uz.js} +4 -4
- package/dist/core/{FractalNoise-BclR0vM-.js → FractalNoise-CKerAjEP.js} +4 -4
- package/dist/core/{Frost-r3Cn37X0.js → Frost-BT2y1-78.js} +7 -8
- package/dist/core/{GaborNoise-DCcdB69a.js → GaborNoise-CBl3ObUD.js} +4 -4
- package/dist/core/{Glass-U4NJVg8d.js → Glass-DujSDEC3.js} +7 -7
- package/dist/core/{GlassTiles-CF1FpanH.js → GlassTiles-BrFjg8_U.js} +2 -2
- package/dist/core/{Glitch-DOnrgMPv.js → Glitch-BEj5IcEk.js} +2 -2
- package/dist/core/{Glow-C5Xwf4jz.js → Glow-BrLQEgGG.js} +3 -3
- package/dist/core/{Godrays-DFD0-QUO.js → Godrays-C-nFhT7J.js} +3 -3
- package/dist/core/{Goo-CXruf3Bc.js → Goo-BHDDGalk.js} +7 -7
- package/dist/core/{GradientMap-0btW-vE7.js → GradientMap-o2MPg2ow.js} +4 -4
- package/dist/core/{Grayscale-CQVfbvqS.js → Grayscale-C-la_L2j.js} +2 -2
- package/dist/core/{Grid-OAYnOEA9.js → Grid-B1VcFuc7.js} +3 -3
- package/dist/core/{GridDistortion-DeLoOUlh.js → GridDistortion-CCHiCvEG.js} +5 -5
- package/dist/core/{Group-UfbFIE6i.js → Group-AnGFDE0L.js} +1 -1
- package/dist/core/{HTMLInCanvas-DFZW7XjR.js → HTMLInCanvas-C_rqrYa1.js} +2 -2
- package/dist/core/{Halftone-BK7mr9rb.js → Halftone-CU42fH-5.js} +3 -3
- package/dist/core/{Heart-BdD0KoOX.js → Heart-07cEG1xh.js} +2 -2
- package/dist/core/{Heatmap-BubYsW6_.js → Heatmap-xBYZaTxw.js} +7 -7
- package/dist/core/{HexGrid-BVK5rrwR.js → HexGrid-3qTBLwQu.js} +3 -3
- package/dist/core/{Hologram-DE3lGk0F.js → Hologram-BMUHKIhP.js} +6 -6
- package/dist/core/{Holographic-DJqswtrS.js → Holographic-XrdyIsQ7.js} +6 -6
- package/dist/core/{HueShift-BfopB_hn.js → HueShift-DizW-T84.js} +3 -3
- package/dist/core/{ImageTexture-B5gNePC8.js → ImageTexture-C3Cn7rtL.js} +2 -2
- package/dist/core/{InkFlow-9Dy9cgIR.js → InkFlow-hFBLw4IG.js} +5 -5
- package/dist/core/{Invert-B5uKr4Bw.js → Invert-BFpiH_Fe.js} +2 -2
- package/dist/core/{IrisWipe-BunsTSPx.js → IrisWipe-DSr8gRmW.js} +3 -3
- package/dist/core/Irradiance-DT3bdyrR.js +4191 -0
- package/dist/core/{IsometricCubes-COoLKav-.js → IsometricCubes-BCRJuLb8.js} +3 -3
- package/dist/core/{Kaleidoscope-D2zB6f60.js → Kaleidoscope-BpOMiquv.js} +2 -2
- package/dist/core/{KeyFrames-QLmC6Sdn.js → KeyFrames-wKMZnI5V.js} +3 -3
- package/dist/core/{LensDistortion-CxLTKe5L.js → LensDistortion-DPn9dipa.js} +3 -3
- package/dist/core/{LensFlare-P1Cc_7_5.js → LensFlare-BrSUeEER.js} +3 -3
- package/dist/core/{LightEdge-B3HMbUyU.js → LightEdge-DMKtLk_r.js} +5 -6
- package/dist/core/{LightLeak-oEDfnsq5.js → LightLeak-D1d75-LU.js} +4 -4
- package/dist/core/{Line-BzGomKXR.js → Line-CJ1nmMq5.js} +3 -3
- package/dist/core/{LinearBlur-yhxdvssU.js → LinearBlur-1kNx5NeX.js} +3 -3
- package/dist/core/{LinearGradient-C15kSqLN.js → LinearGradient-BIg2PR9v.js} +4 -4
- package/dist/core/{LinearWipe-DHxvpnNg.js → LinearWipe-CfGDpMW3.js} +3 -3
- package/dist/core/{LiquidMetal-Cu2WeYH7.js → LiquidMetal-CnkraENV.js} +7 -7
- package/dist/core/{Liquify-DY1EfFNf.js → Liquify-2zml8B9N.js} +4 -4
- package/dist/core/{MagneticFilings-Bd6Pe_E0.js → MagneticFilings-Ddl4BEe7.js} +5 -5
- package/dist/core/{Marble-Bdc_FHzu.js → Marble-yskR3VxY.js} +26 -11
- package/dist/core/{MeshGradient-DRRMmZHE.js → MeshGradient-DzcW4S3J.js} +43 -13
- package/dist/core/{Mirror-5UQjt2Tf.js → Mirror-PoO2nzkL.js} +2 -2
- package/dist/core/{MultiPointGradient-DqdcS8e0.js → MultiPointGradient-b0b1o2Zp.js} +3 -3
- package/dist/core/{Nebula-BQuiaN-z.js → Nebula-yfdqoP2y.js} +8 -19
- package/dist/core/{Neon-BicLpgbo.js → Neon-BAsvBcVb.js} +5 -5
- package/dist/core/{NoiseDissolve-DGbFYpRH.js → NoiseDissolve-CFofypUT.js} +3 -3
- package/dist/core/{ObjectTracker-T8FCXWre.js → ObjectTracker-A8bkVn0T.js} +3 -3
- package/dist/core/Obsidian-ug1e4cqX.js +305 -0
- package/dist/core/{PagePeel-DilPJ9RZ.js → PagePeel-0gUH5Q-F.js} +2 -2
- package/dist/core/{Paper-l6RxJWBc.js → Paper-Cv-ENEnt.js} +2 -2
- package/dist/core/{Parallelogram-C95JWNsU.js → Parallelogram-CKri4Oxr.js} +2 -2
- package/dist/core/{ParticleField-aw2g8IBO.js → ParticleField-ImA96tiR.js} +4 -4
- package/dist/core/{ParticleFlow-DTrnGnOB.js → ParticleFlow-CvOwCV9k.js} +6 -6
- package/dist/core/{Particles-Jhwjq6OU.js → Particles-HiSrLK4u.js} +6 -6
- package/dist/core/{PerlinNoise-D6xOjr7j.js → PerlinNoise-DWzWZnfd.js} +4 -4
- package/dist/core/{Perspective-Bb-9hqX5.js → Perspective-CZsUpoMX.js} +3 -3
- package/dist/core/{PixelSort-INY2qe01.js → PixelSort-sFDbi0pD.js} +4 -4
- package/dist/core/{PixelThrow-BWWz7QQi.js → PixelThrow-jqMlr2Be.js} +4 -4
- package/dist/core/{Pixelate-C3aJ40yf.js → Pixelate-BM5zL6Ss.js} +2 -2
- package/dist/core/{Plasma-evU7RvjN.js → Plasma--XCLN3eI.js} +4 -4
- package/dist/core/{Plastic-CdenJzHE.js → Plastic-COIZ00DY.js} +7 -7
- package/dist/core/{PolarCoordinates-CgSPmcVa.js → PolarCoordinates-DvrVbOAL.js} +2 -2
- package/dist/core/{Polygon-CP182yxM.js → Polygon-C9joRqmN.js} +3 -3
- package/dist/core/{Posterize-g1VAiALB.js → Posterize-Ctj5u3WL.js} +2 -2
- package/dist/core/{Prism-ZUtkRwyw.js → Prism-DDbB5dVW.js} +6 -6
- package/dist/core/{ProgressiveBlur-wUfFxLuq.js → ProgressiveBlur-DtsGEfjw.js} +3 -3
- package/dist/core/{RadialGradient-BVplFboK.js → RadialGradient-X-zZCLXw.js} +4 -4
- package/dist/core/{RadialWipe-CEvgkBtN.js → RadialWipe-_fAAAe7h.js} +3 -3
- package/dist/core/{RandomBars-DznYc1cK.js → RandomBars-HijtROxW.js} +3 -3
- package/dist/core/{ReactionDiffusion-hEARMWb4.js → ReactionDiffusion-CS7NfQ4C.js} +5 -5
- package/dist/core/{RectangularCoordinates-BKOR8UVl.js → RectangularCoordinates-BqG9R6nC.js} +2 -2
- package/dist/core/{ReflectivePlane-DrJ1pxMa.js → ReflectivePlane-Cgxar0Vg.js} +3 -3
- package/dist/core/{Repeater-DTpCf9Lm.js → Repeater-Bja_7hpl.js} +3 -3
- package/dist/core/{Ring-DINywbbr.js → Ring-CjXxnr67.js} +2 -2
- package/dist/core/{RippleWipe-CwenaRYy.js → RippleWipe-pFLRAiMP.js} +3 -3
- package/dist/core/{Ripples-FuYdWcQW.js → Ripples-f1uD5ZHV.js} +3 -3
- package/dist/core/{RoundedRect-h_UJqq2W.js → RoundedRect-Nocfrish.js} +2 -2
- package/dist/core/{Saturation-DitLgecu.js → Saturation-Bk2_CdAM.js} +3 -3
- package/dist/core/{Scratches-4So8YZag.js → Scratches-BGjPBk-E.js} +4 -4
- package/dist/core/{Sharpness-CZ7h17-W.js → Sharpness-nMDZWmUh.js} +3 -3
- package/dist/core/{Shatter-DQ1i7GCD.js → Shatter-CNqHaYVM.js} +2 -2
- package/dist/core/{SimplexNoise-Cbhm8yTV.js → SimplexNoise-HdsHuat_.js} +4 -4
- package/dist/core/{SineWave-BULHKSth.js → SineWave-DtfHg2hB.js} +3 -3
- package/dist/core/{SliceWipe-CrxHLUSK.js → SliceWipe-Bp_riBms.js} +2 -2
- package/dist/core/{Smoke-C-0NUtDU.js → Smoke-C-lb8En_.js} +4 -4
- package/dist/core/{SmokeFill-D81FhHmB.js → SmokeFill-ChR8Pe8m.js} +7 -7
- package/dist/core/{SmokeFlow-DirP_Xti.js → SmokeFlow-Dx6_BTmh.js} +4 -4
- package/dist/core/{Solarize-DZP3UJ85.js → Solarize-CjleKYpq.js} +3 -3
- package/dist/core/{SolidColor-DvatFKwG.js → SolidColor-BgxBiv00.js} +3 -3
- package/dist/core/{Spherize-sLICbjrn.js → Spherize-B8aaXFYF.js} +3 -3
- package/dist/core/{Spiral-irgoeG4p.js → Spiral-CMHZAfrE.js} +3 -3
- package/dist/core/{Star-CKLN8zIt.js → Star-CCs7sc0U.js} +2 -2
- package/dist/core/{Stone-D5-LyXDX.js → Stone-DGW4Z0fk.js} +2 -2
- package/dist/core/{Strands-DhHb1DvF.js → Strands-CRqZn5yd.js} +5 -5
- package/dist/core/{Stretch-T57H17vt.js → Stretch-CcVH3bEx.js} +2 -2
- package/dist/core/{Stripes-DxWGkOif.js → Stripes-BZieDTLM.js} +3 -3
- package/dist/core/StudioBackground-Ba3yr_rk.js +399 -0
- package/dist/core/{SunBurst-DR13HThp.js → SunBurst-DcgLv7MO.js} +3 -3
- package/dist/core/{Surface3D-CpOF-rTd.js → Surface3D-CJCdvt2D.js} +6 -6
- package/dist/core/{Swirl-Cn9B5BXA.js → Swirl-DWcoxaOQ.js} +4 -4
- package/dist/core/{Teardrop-xVB2Rryt.js → Teardrop-CKptpnfu.js} +2 -2
- package/dist/core/{Text-Bzitt0Bc.js → Text-Cdu-4DM4.js} +6 -6
- package/dist/core/{ThinFilm-CrslR7Dx.js → ThinFilm-CEgkS1Gh.js} +5 -5
- package/dist/core/{TiltShift-DxfHWzYk.js → TiltShift-sU_nwYUs.js} +3 -3
- package/dist/core/{TimeTrail-CSy6Y7hh.js → TimeTrail-BPpKtbwU.js} +6 -6
- package/dist/core/{Tint-DOCp2b8s.js → Tint-DLMwqDc-.js} +3 -3
- package/dist/core/{Trapezoid-CtfXCYGA.js → Trapezoid-HmlCtO5F.js} +2 -2
- package/dist/core/{TriangularGrid-BmumLNDo.js → TriangularGrid-CyN-Xlpp.js} +3 -3
- package/dist/core/{Tritone-B93mcT36.js → Tritone-TxR-2WxY.js} +3 -3
- package/dist/core/{Truchet-CH6G5ozn.js → Truchet-Dz0_Wb6a.js} +3 -3
- package/dist/core/{Twirl-B9Z9dST8.js → Twirl-C2ZZbEqD.js} +2 -2
- package/dist/core/{VHS-BqFaXkMd.js → VHS-AzcydKoR.js} +2 -2
- package/dist/core/{VenetianBlinds-DAGlgwNE.js → VenetianBlinds-ByLVp-bI.js} +3 -3
- package/dist/core/{Vesica-D-8FK4C2.js → Vesica--m1hCd0S.js} +2 -2
- package/dist/core/{Vibrance-bJAZ4iks.js → Vibrance-C3W42RTW.js} +3 -3
- package/dist/core/{VideoTexture-LRpjvr-E.js → VideoTexture-CiONs3rJ.js} +2 -2
- package/dist/core/{Vignette-QPr1Cal2.js → Vignette-YXS49Qyf.js} +5 -12
- package/dist/core/{Voronoi-c4jiH9Rs.js → Voronoi-BwSw2fv2.js} +5 -5
- package/dist/core/{Water-D9HuYCj8.js → Water-Bsh_h3mJ.js} +7 -7
- package/dist/core/{Watercolor-DQUk4Fp6.js → Watercolor-CE1O6HQG.js} +4 -4
- package/dist/core/{WaveDistortion-7a_HwjyD.js → WaveDistortion-Bjr4PG5Q.js} +2 -2
- package/dist/core/Waveform-VAxURycO.js +427 -0
- package/dist/core/{WaveletNoise-B87y08nU.js → WaveletNoise-dNJGloeP.js} +4 -4
- package/dist/core/{Weave-BYnUiQAe.js → Weave-3Esy_ShT.js} +3 -3
- package/dist/core/{WebcamTexture-B7ldvLMJ.js → WebcamTexture-BPuazZWW.js} +2 -2
- package/dist/core/{Wool-BIVLEFAo.js → Wool-Crs8DCcs.js} +2 -2
- package/dist/core/{WorleyNoise-BzruBvh3.js → WorleyNoise-DHH2D7Mj.js} +3 -3
- package/dist/core/{ZoomBlur-Cg6vOxUb.js → ZoomBlur-EltMxju3.js} +3 -3
- package/dist/core/{agents-Ccxns43k.js → agents-CR8K0nq1.js} +4 -5
- package/dist/core/{agents-DbHmHbkU.js → agents-DcHmaB0C.js} +1 -2
- package/dist/core/{blur-CpGmUq81.js → blur-BwjlF0Uk.js} +1 -1
- package/dist/core/{blurs-O1YbZEVw.js → blurs-D1HfQTGP.js} +5 -5
- package/dist/core/{color-C9iR6boM.js → color-dbYyVLqf.js} +2 -3
- package/dist/core/compose-prsdG9f_.js +46 -0
- package/dist/core/{feedback-ZMsR_fKB.js → feedback-DvKOD0Oo.js} +1 -1
- package/dist/core/{fields-Cg5kOBDV.js → fields-Cv-wBDLP.js} +155 -7
- package/dist/core/figures-DdZ6A2i8.js +48 -0
- package/dist/core/{fluids-D76EnTFg.js → fluids-BPs3cdPe.js} +2 -2
- package/dist/core/{frames-BWC4dNMQ.js → frames-DIS73FmL.js} +23 -3
- package/dist/core/{glass-DxE2Cy6_.js → glass-CtWl8jzT.js} +1 -1
- package/dist/core/gpu/index.d.ts +4 -0
- package/dist/core/gpu/index.d.ts.map +1 -1
- package/dist/core/gpu/kit/colorStops.d.ts +6 -0
- package/dist/core/gpu/kit/colorStops.d.ts.map +1 -1
- package/dist/core/gpu/kit/fields.d.ts +29 -0
- package/dist/core/gpu/kit/fields.d.ts.map +1 -1
- package/dist/core/gpu/kit/gradientPaints.d.ts +9 -0
- package/dist/core/gpu/kit/gradientPaints.d.ts.map +1 -1
- package/dist/core/gpu/kit/index.d.ts +0 -1
- package/dist/core/gpu/kit/index.d.ts.map +1 -1
- package/dist/core/gpu/kit/noisePaints.d.ts +12 -22
- package/dist/core/gpu/kit/noisePaints.d.ts.map +1 -1
- package/dist/core/gpu/kit/patternPaints.d.ts +5 -0
- package/dist/core/gpu/kit/patternPaints.d.ts.map +1 -1
- package/dist/core/gpu/kit/sdf.d.ts +15 -0
- package/dist/core/gpu/kit/sdf.d.ts.map +1 -1
- package/dist/core/gpu/kit/shapePaints.d.ts +8 -21
- package/dist/core/gpu/kit/shapePaints.d.ts.map +1 -1
- package/dist/core/gpu/kit/tone.d.ts +5 -0
- package/dist/core/gpu/kit/tone.d.ts.map +1 -1
- package/dist/core/gpu/scaffolds/radiance.d.ts +347 -0
- package/dist/core/gpu/scaffolds/radiance.d.ts.map +1 -0
- package/dist/core/gpu/transforms.d.ts +2 -1
- package/dist/core/gpu/transforms.d.ts.map +1 -1
- package/dist/core/gpu/uniformBridge.d.ts +6 -0
- package/dist/core/gpu/uniformBridge.d.ts.map +1 -1
- package/dist/core/{gradientPaints-B6-PoDoK.js → gradientPaints-Du0XCNHB.js} +1287 -301
- package/dist/core/{gradients-CVEWcxw9.js → gradients-DT6nJTmW.js} +4 -4
- package/dist/core/index.js +300 -248
- package/dist/core/{lens-ChZyqXRf.js → lens-Dh_a0mZH.js} +2 -2
- package/dist/core/{light-CJ3dY0iH.js → light-CROZ7Zf1.js} +39 -6
- package/dist/core/{lightfields-BjzpZvFy.js → lightfields-D5lW4WSp.js} +2 -2
- package/dist/core/{lower-z2vuXP8M.js → lower-DSk_KxOY.js} +12186 -958
- package/dist/core/mask-AFtVwMNo.js +28 -0
- package/dist/core/{materials-D7QX3H4h.js → materials-Dhq8lDKb.js} +77 -28
- package/dist/core/{math-BF-GBlb4.js → math-DCQU6EQz.js} +9 -2
- package/dist/core/{media-By6o6a83.js → media-Bh5c_fVF.js} +2 -2
- package/dist/core/{mediaLifecycle-DQg13y-f.js → mediaLifecycle-BTPb5i1-.js} +1 -1
- package/dist/core/{motionBlur-BnthNfqm.js → motionBlur-CiNghKu6.js} +2 -3
- package/dist/core/{noise-DQWgxDEf.js → noise-DrbAbu3H.js} +54 -76
- package/dist/core/{noiseColor-XppoAmXi.js → noiseColor-DKo-P8T0.js} +2 -2
- package/dist/core/{noisePaints-Cs2Q1Xk9.js → noisePaints-DV5jKo1A.js} +464 -735
- package/dist/core/{overlay-Sye7-I6D.js → overlay-Dc6bKqEd.js} +5 -5
- package/dist/core/{patterns-CUWhLDh0.js → patterns-BAu9g0yn.js} +729 -433
- package/dist/core/{pointerFields-CaaXhvvu.js → pointerFields-yUe8811b.js} +2 -2
- package/dist/core/{porters-B1UjrM1y.js → porters-j4QbEOqj.js} +148 -7
- package/dist/core/presetRenderer.d.ts.map +1 -1
- package/dist/core/registry.js +246 -244
- package/dist/core/{reveal-xpOj9hSs.js → reveal-s6xWR757.js} +1 -2
- package/dist/core/{sdf3d-BD5m6HR6.js → sdf3d-DQ55w9nI.js} +3 -3
- package/dist/core/shaderRegistry-D6mNFoD5.js +441 -0
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/AngularBlur/index.js +10 -11
- package/dist/core/shaders/Arc/index.js +6 -6
- package/dist/core/shaders/Ascii/index.js +11 -12
- package/dist/core/shaders/Aurora/index.d.ts.map +1 -1
- package/dist/core/shaders/Aurora/index.js +21 -12
- package/dist/core/shaders/BarShift/index.js +8 -9
- package/dist/core/shaders/BarnDoors/index.js +7 -8
- package/dist/core/shaders/Beam/index.js +11 -12
- package/dist/core/shaders/Bend/index.js +8 -9
- package/dist/core/shaders/Blob/index.d.ts.map +1 -1
- package/dist/core/shaders/Blob/index.js +18 -12
- package/dist/core/shaders/BlockDissolve/index.js +7 -8
- package/dist/core/shaders/BlockNoise/index.js +14 -16
- package/dist/core/shaders/BlueNoise/index.js +14 -16
- package/dist/core/shaders/Blur/index.js +10 -11
- package/dist/core/shaders/Boids/index.js +9 -10
- package/dist/core/shaders/BokehBlur/index.js +10 -11
- package/dist/core/shaders/BrickPattern/index.js +13 -15
- package/dist/core/shaders/BrightnessContrast/index.js +7 -8
- package/dist/core/shaders/BrushedMetal/index.js +11 -12
- package/dist/core/shaders/Bulge/index.js +8 -9
- package/dist/core/shaders/CRTScreen/index.js +10 -11
- package/dist/core/shaders/CarbonFiber/index.js +11 -12
- package/dist/core/shaders/Chalkboard/index.js +9 -10
- package/dist/core/shaders/ChannelBlur/index.js +10 -11
- package/dist/core/shaders/CheckerWipe/index.js +7 -8
- package/dist/core/shaders/Checkerboard/index.js +13 -15
- package/dist/core/shaders/Chevron/index.js +13 -15
- package/dist/core/shaders/ChromaFlow/index.js +8 -9
- package/dist/core/shaders/ChromaticAberration/index.js +11 -12
- package/dist/core/shaders/Chrome/index.js +10 -11
- package/dist/core/shaders/Circle/index.js +6 -6
- package/dist/core/shaders/ColorWheel/index.js +11 -12
- package/dist/core/shaders/CompressionArtifacts/index.js +7 -8
- package/dist/core/shaders/ConcentricSpin/index.js +8 -9
- package/dist/core/shaders/ConicGradient/index.js +11 -12
- package/dist/core/shaders/ContourLines/index.js +6 -7
- package/dist/core/shaders/CornerPin/index.js +8 -9
- package/dist/core/shaders/Crescent/index.js +5 -5
- package/dist/core/shaders/Cross/index.js +5 -5
- package/dist/core/shaders/Crystal/index.js +11 -12
- package/dist/core/shaders/CurlNoise/index.js +14 -16
- package/dist/core/shaders/CursorRipples/index.js +7 -6
- package/dist/core/shaders/CursorTrail/index.js +7 -8
- package/dist/core/shaders/DataMosh/index.js +7 -8
- package/dist/core/shaders/DiamondGradient/index.js +11 -12
- package/dist/core/shaders/DiamondWipe/index.js +7 -8
- package/dist/core/shaders/DiffuseBlur/index.js +10 -11
- package/dist/core/shaders/DisplacementMap/index.js +8 -9
- package/dist/core/shaders/Dither/index.js +13 -15
- package/dist/core/shaders/DotGrid/index.js +13 -15
- package/dist/core/shaders/DropShadow/index.js +10 -11
- package/dist/core/shaders/Duotone/index.js +6 -7
- package/dist/core/shaders/Ellipse/index.js +5 -5
- package/dist/core/shaders/Emboss/index.js +9 -10
- package/dist/core/shaders/Engraving/index.js +9 -10
- package/dist/core/shaders/ErosionNoise/index.js +14 -16
- package/dist/core/shaders/Exposure/index.js +7 -8
- package/dist/core/shaders/FallingLines/index.js +13 -15
- package/dist/core/shaders/FilmGrain/index.js +7 -8
- package/dist/core/shaders/FilmStock/index.js +13 -14
- package/dist/core/shaders/Flip/index.js +8 -9
- package/dist/core/shaders/FloatingParticles/index.js +9 -10
- package/dist/core/shaders/FlowField/index.js +8 -9
- package/dist/core/shaders/Flower/index.js +5 -5
- package/dist/core/shaders/FlowingGradient/index.d.ts.map +1 -1
- package/dist/core/shaders/FlowingGradient/index.js +15 -12
- package/dist/core/shaders/FlutedGlass/index.js +11 -12
- package/dist/core/shaders/Fog/index.js +7 -8
- package/dist/core/shaders/Form3D/index.js +7 -8
- package/dist/core/shaders/FractalNoise/index.js +13 -15
- package/dist/core/shaders/Frost/index.js +11 -12
- package/dist/core/shaders/GaborNoise/index.js +14 -16
- package/dist/core/shaders/Glass/index.js +11 -12
- package/dist/core/shaders/GlassTiles/index.js +8 -9
- package/dist/core/shaders/Glitch/index.js +10 -11
- package/dist/core/shaders/Glow/index.js +11 -12
- package/dist/core/shaders/Godrays/index.js +12 -12
- package/dist/core/shaders/Goo/index.js +11 -12
- package/dist/core/shaders/GradientMap/index.js +7 -8
- package/dist/core/shaders/Grayscale/index.js +6 -7
- package/dist/core/shaders/Grid/index.js +13 -15
- package/dist/core/shaders/GridDistortion/index.js +11 -12
- package/dist/core/shaders/Group/index.js +6 -7
- package/dist/core/shaders/HTMLInCanvas/index.js +7 -8
- package/dist/core/shaders/Halftone/index.js +13 -15
- package/dist/core/shaders/Heart/index.js +5 -5
- package/dist/core/shaders/Heatmap/index.js +11 -12
- package/dist/core/shaders/HexGrid/index.js +13 -15
- package/dist/core/shaders/Hologram/index.js +10 -11
- package/dist/core/shaders/Holographic/index.js +10 -11
- package/dist/core/shaders/HueShift/index.js +7 -8
- package/dist/core/shaders/ImageTexture/index.js +6 -6
- package/dist/core/shaders/InkFlow/index.js +8 -9
- package/dist/core/shaders/Invert/index.js +6 -7
- package/dist/core/shaders/IrisWipe/index.js +7 -8
- package/dist/core/shaders/Irradiance/index.d.ts +127 -0
- package/dist/core/shaders/Irradiance/index.d.ts.map +1 -0
- package/dist/core/shaders/Irradiance/index.js +14 -0
- package/dist/core/shaders/IsometricCubes/index.js +13 -15
- package/dist/core/shaders/Kaleidoscope/index.js +8 -9
- package/dist/core/shaders/KeyFrames/index.js +10 -11
- package/dist/core/shaders/LensDistortion/index.js +6 -6
- package/dist/core/shaders/LensFlare/index.js +12 -12
- package/dist/core/shaders/LightEdge/index.js +10 -11
- package/dist/core/shaders/LightLeak/index.js +12 -12
- package/dist/core/shaders/Line/index.js +10 -12
- package/dist/core/shaders/LinearBlur/index.js +10 -11
- package/dist/core/shaders/LinearGradient/index.js +11 -12
- package/dist/core/shaders/LinearWipe/index.js +7 -8
- package/dist/core/shaders/LiquidMetal/index.js +11 -12
- package/dist/core/shaders/Liquify/index.js +10 -11
- package/dist/core/shaders/MagneticFilings/index.js +9 -10
- package/dist/core/shaders/Marble/index.d.ts +1 -1
- package/dist/core/shaders/Marble/index.d.ts.map +1 -1
- package/dist/core/shaders/Marble/index.js +15 -15
- package/dist/core/shaders/MeshGradient/index.d.ts.map +1 -1
- package/dist/core/shaders/MeshGradient/index.js +16 -12
- package/dist/core/shaders/Mirror/index.js +8 -9
- package/dist/core/shaders/MultiPointGradient/index.js +11 -12
- package/dist/core/shaders/Nebula/index.js +13 -12
- package/dist/core/shaders/Neon/index.js +9 -10
- package/dist/core/shaders/NoiseDissolve/index.js +7 -8
- package/dist/core/shaders/ObjectTracker/index.js +10 -11
- package/dist/core/shaders/Obsidian/index.d.ts +142 -0
- package/dist/core/shaders/Obsidian/index.d.ts.map +1 -0
- package/dist/core/shaders/Obsidian/index.js +16 -0
- package/dist/core/shaders/PagePeel/index.js +10 -11
- package/dist/core/shaders/Paper/index.js +8 -9
- package/dist/core/shaders/Parallelogram/index.js +5 -5
- package/dist/core/shaders/ParticleField/index.js +9 -10
- package/dist/core/shaders/ParticleFlow/index.js +10 -11
- package/dist/core/shaders/Particles/index.js +9 -10
- package/dist/core/shaders/PerlinNoise/index.js +14 -16
- package/dist/core/shaders/Perspective/index.js +8 -9
- package/dist/core/shaders/PixelSort/index.js +8 -9
- package/dist/core/shaders/PixelThrow/index.js +8 -9
- package/dist/core/shaders/Pixelate/index.js +10 -11
- package/dist/core/shaders/Plasma/index.js +11 -12
- package/dist/core/shaders/Plastic/index.js +11 -12
- package/dist/core/shaders/PolarCoordinates/index.js +8 -9
- package/dist/core/shaders/Polygon/index.js +6 -6
- package/dist/core/shaders/Posterize/index.js +6 -7
- package/dist/core/shaders/Prism/index.js +12 -13
- package/dist/core/shaders/ProgressiveBlur/index.js +10 -11
- package/dist/core/shaders/RadialGradient/index.js +11 -12
- package/dist/core/shaders/RadialWipe/index.js +7 -8
- package/dist/core/shaders/RandomBars/index.js +7 -8
- package/dist/core/shaders/ReactionDiffusion/index.js +8 -9
- package/dist/core/shaders/RectangularCoordinates/index.js +8 -9
- package/dist/core/shaders/ReflectivePlane/index.js +10 -11
- package/dist/core/shaders/Repeater/index.js +5 -5
- package/dist/core/shaders/Ring/index.js +5 -5
- package/dist/core/shaders/RippleWipe/index.js +7 -8
- package/dist/core/shaders/Ripples/index.js +13 -15
- package/dist/core/shaders/RoundedRect/index.js +5 -5
- package/dist/core/shaders/Saturation/index.js +7 -8
- package/dist/core/shaders/Scratches/index.js +14 -16
- package/dist/core/shaders/Sharpness/index.js +11 -12
- package/dist/core/shaders/Shatter/index.js +6 -7
- package/dist/core/shaders/SimplexNoise/index.js +14 -16
- package/dist/core/shaders/SineWave/index.js +10 -12
- package/dist/core/shaders/SliceWipe/index.js +8 -9
- package/dist/core/shaders/Smoke/index.js +7 -8
- package/dist/core/shaders/SmokeFill/index.js +10 -11
- package/dist/core/shaders/SmokeFlow/index.js +7 -8
- package/dist/core/shaders/Solarize/index.js +7 -8
- package/dist/core/shaders/SolidColor/index.js +11 -12
- package/dist/core/shaders/Spherize/index.js +10 -11
- package/dist/core/shaders/Spiral/index.js +11 -12
- package/dist/core/shaders/Star/index.js +5 -5
- package/dist/core/shaders/Stone/index.js +13 -15
- package/dist/core/shaders/Strands/index.js +13 -15
- package/dist/core/shaders/Stretch/index.js +8 -9
- package/dist/core/shaders/Stripes/index.js +13 -15
- package/dist/core/shaders/StudioBackground/index.d.ts.map +1 -1
- package/dist/core/shaders/StudioBackground/index.js +14 -15
- package/dist/core/shaders/SunBurst/index.js +12 -12
- package/dist/core/shaders/Surface3D/index.js +8 -9
- package/dist/core/shaders/Swirl/index.js +11 -12
- package/dist/core/shaders/Teardrop/index.js +5 -5
- package/dist/core/shaders/Text/index.js +12 -13
- package/dist/core/shaders/ThinFilm/index.js +9 -10
- package/dist/core/shaders/TiltShift/index.js +10 -11
- package/dist/core/shaders/TimeTrail/index.js +8 -9
- package/dist/core/shaders/Tint/index.js +6 -7
- package/dist/core/shaders/Trapezoid/index.js +5 -5
- package/dist/core/shaders/TriangularGrid/index.js +13 -15
- package/dist/core/shaders/Tritone/index.js +6 -7
- package/dist/core/shaders/Truchet/index.js +13 -15
- package/dist/core/shaders/Twirl/index.js +8 -9
- package/dist/core/shaders/VHS/index.js +10 -11
- package/dist/core/shaders/VenetianBlinds/index.js +7 -8
- package/dist/core/shaders/Vesica/index.js +5 -5
- package/dist/core/shaders/Vibrance/index.js +7 -8
- package/dist/core/shaders/VideoTexture/index.js +6 -6
- package/dist/core/shaders/Vignette/index.js +8 -7
- package/dist/core/shaders/Voronoi/index.js +13 -15
- package/dist/core/shaders/Water/index.js +11 -12
- package/dist/core/shaders/Watercolor/index.js +10 -11
- package/dist/core/shaders/WaveDistortion/index.js +8 -9
- package/dist/core/shaders/Waveform/index.d.ts +131 -0
- package/dist/core/shaders/Waveform/index.d.ts.map +1 -0
- package/dist/core/shaders/Waveform/index.js +17 -0
- package/dist/core/shaders/WaveletNoise/index.js +14 -16
- package/dist/core/shaders/Weave/index.js +13 -15
- package/dist/core/shaders/WebcamTexture/index.js +6 -6
- package/dist/core/shaders/Wool/index.js +13 -15
- package/dist/core/shaders/WorleyNoise/index.js +13 -15
- package/dist/core/shaders/ZoomBlur/index.js +10 -11
- package/dist/core/{shape-BMO1cLTt.js → shape-Dfa7_eQh.js} +1 -1
- package/dist/core/{shapePaints-G_Ap8xID.js → shapePaints-CRpPT5Z5.js} +792 -2038
- package/dist/core/signal-DuaxoxK4.js +34 -0
- package/dist/core/std/frames.d.ts +27 -0
- package/dist/core/std/frames.d.ts.map +1 -1
- package/dist/core/std/invoke.d.ts +9 -1
- package/dist/core/std/invoke.d.ts.map +1 -1
- package/dist/core/std/lists.d.ts +32 -0
- package/dist/core/std/lists.d.ts.map +1 -0
- package/dist/core/std/mask.d.ts +52 -0
- package/dist/core/std/mask.d.ts.map +1 -1
- package/dist/core/std/math.d.ts +14 -0
- package/dist/core/std/math.d.ts.map +1 -1
- package/dist/core/std/paint/compose.d.ts +29 -1
- package/dist/core/std/paint/compose.d.ts.map +1 -1
- package/dist/core/std/paint/fields.d.ts +91 -0
- package/dist/core/std/paint/fields.d.ts.map +1 -1
- package/dist/core/std/paint/figures.d.ts +0 -36
- package/dist/core/std/paint/figures.d.ts.map +1 -1
- package/dist/core/std/paint/light.d.ts +61 -0
- package/dist/core/std/paint/light.d.ts.map +1 -1
- package/dist/core/std/paint/materials.d.ts +84 -6
- package/dist/core/std/paint/materials.d.ts.map +1 -1
- package/dist/core/std/paint/noise.d.ts +72 -34
- package/dist/core/std/paint/noise.d.ts.map +1 -1
- package/dist/core/std/paint/patterns.d.ts +4 -3
- package/dist/core/std/paint/patterns.d.ts.map +1 -1
- package/dist/core/std/paint/radiance.d.ts +94 -0
- package/dist/core/std/paint/radiance.d.ts.map +1 -0
- package/dist/core/std/signal.d.ts +25 -0
- package/dist/core/std/signal.d.ts.map +1 -1
- package/dist/core/{stylize-DuY5wWZo.js → stylize-AZmEMszr.js} +2 -3
- package/dist/core/telemetry/index.js +1 -1
- package/dist/core/{tone-BA0D_veZ.js → tone-Ax72n2WU.js} +130 -2
- package/dist/core/types.d.ts +26 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/utilities/listProps.d.ts +68 -0
- package/dist/core/utilities/listProps.d.ts.map +1 -0
- package/dist/core/utilities/transformations/index.js +1 -1
- package/dist/core/{warpMaps-CPjWFW4W.js → warpMaps-051QhmeG.js} +2 -3
- package/dist/core/{warps-B_sbWWsN.js → warps-B5j8H1vX.js} +3 -3
- package/dist/js/bundle.js +182 -180
- package/dist/js/createShader.js +1 -1
- package/dist/js/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/js/utils/generatePresetCode.js +119 -0
- package/dist/react/Irradiance.js +226 -0
- package/dist/react/Obsidian.js +226 -0
- package/dist/react/Preview.js +3 -0
- package/dist/react/Shader.js +1 -1
- package/dist/react/Waveform.js +226 -0
- package/dist/react/bundle.js +167 -165
- package/dist/react/components/Irradiance.d.ts +45 -0
- package/dist/react/components/Irradiance.d.ts.map +1 -0
- package/dist/react/components/Obsidian.d.ts +44 -0
- package/dist/react/components/Obsidian.d.ts.map +1 -0
- package/dist/react/components/Waveform.d.ts +46 -0
- package/dist/react/components/Waveform.d.ts.map +1 -0
- package/dist/react/engine/Preview.d.ts.map +1 -1
- package/dist/react/index.d.ts +3 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +4 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +119 -0
- package/dist/registry.js +2549 -554
- package/dist/solid/components/Irradiance.d.ts +42 -0
- package/dist/solid/components/Irradiance.d.ts.map +1 -0
- package/dist/solid/components/Irradiance.js +232 -0
- package/dist/solid/components/Obsidian.d.ts +41 -0
- package/dist/solid/components/Obsidian.d.ts.map +1 -0
- package/dist/solid/components/Obsidian.js +232 -0
- package/dist/solid/components/Waveform.d.ts +43 -0
- package/dist/solid/components/Waveform.d.ts.map +1 -0
- package/dist/solid/components/Waveform.js +232 -0
- package/dist/solid/engine/Preview.d.ts.map +1 -1
- package/dist/solid/engine/Preview.js +383 -377
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/solid/index.d.ts +3 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +212 -206
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +122 -0
- package/dist/svelte/components/Irradiance.svelte.d.ts +32 -0
- package/dist/svelte/components/Obsidian.svelte.d.ts +31 -0
- package/dist/svelte/components/Waveform.svelte.d.ts +33 -0
- package/dist/svelte/index.d.ts +3 -0
- package/dist/svelte/index.js +1698 -1077
- package/dist/svelte/source/components/Irradiance.svelte +356 -0
- package/dist/svelte/source/components/Obsidian.svelte +355 -0
- package/dist/svelte/source/components/Waveform.svelte +357 -0
- package/dist/svelte/source/engine/Preview.svelte +6 -0
- package/dist/svelte/source/index.js +3 -0
- package/dist/svelte/utils/generatePresetCode.js +119 -0
- package/dist/vue/Irradiance.js +3 -0
- package/dist/vue/Irradiance.vue_vue_type_script_setup_true_lang.js +244 -0
- package/dist/vue/Obsidian.js +3 -0
- package/dist/vue/Obsidian.vue_vue_type_script_setup_true_lang.js +248 -0
- package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +6 -0
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/vue/Waveform.js +3 -0
- package/dist/vue/Waveform.vue_vue_type_script_setup_true_lang.js +244 -0
- package/dist/vue/components/Irradiance.vue.d.ts +67 -0
- package/dist/vue/components/Irradiance.vue.d.ts.map +1 -0
- package/dist/vue/components/Obsidian.vue.d.ts +66 -0
- package/dist/vue/components/Obsidian.vue.d.ts.map +1 -0
- package/dist/vue/components/Waveform.vue.d.ts +68 -0
- package/dist/vue/components/Waveform.vue.d.ts.map +1 -0
- package/dist/vue/index.d.ts +3 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +4 -1
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +119 -0
- package/package.json +25 -1
- package/dist/core/Aurora-aZQ7Sgpi.js +0 -189
- package/dist/core/FlowingGradient-DExZwWd-.js +0 -154
- package/dist/core/StudioBackground-CyNdOTtR.js +0 -294
- package/dist/core/aa-BfXCHL6-.js +0 -915
- package/dist/core/figures-Ca2qPDh7.js +0 -116
- package/dist/core/gpu/kit/scenicPaints.d.ts +0 -18
- package/dist/core/gpu/kit/scenicPaints.d.ts.map +0 -1
- package/dist/core/noise-B3Oq1k3_.js +0 -10320
- package/dist/core/noiseColor-CMKVWP1J.js +0 -20
- package/dist/core/scenic-CJSExiX2.js +0 -5738
- package/dist/core/shaderRegistry-Ch1r8XbD.js +0 -435
- package/dist/core/std/paint/scenic.d.ts +0 -111
- package/dist/core/std/paint/scenic.d.ts.map +0 -1
- /package/dist/core/{canvasRaster-Clio8jcl.js → canvasRaster-DDBkrdY8.js} +0 -0
- /package/dist/core/{device-DLKcFOd2.js → device-m0ud8-Fn.js} +0 -0
- /package/dist/core/{filter-Bw8Ogi4T.js → filter-VJlLs3Zs.js} +0 -0
- /package/dist/core/{fonts-Dyp7nl7T.js → fonts-BUXTd9qb.js} +0 -0
- /package/dist/core/{grids-BqY3o2yc.js → grids-C6sTUox5.js} +0 -0
- /package/dist/core/{slots-BqeQDVxy.js → slots-BuIG6s6W.js} +0 -0
- /package/dist/core/{support-ULZQgbko.js → support-GJphyuEe.js} +0 -0
- /package/dist/core/{transformations-CoIwF5JU.js → transformations-COlfAEsk.js} +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { s as Scalar } from "./lower-DSk_KxOY.js";
|
|
2
|
+
import { C as mul, E as pow, L as sub, M as smoothstep, n as add, t as abs, w as neg } from "./math-DCQU6EQz.js";
|
|
3
|
+
function softBand(opts) {
|
|
4
|
+
return mul(smoothstep(opts.below.from, opts.below.to, opts.distance), sub(1, smoothstep(opts.above.from ?? 0, opts.above.to, opts.distance)));
|
|
5
|
+
}
|
|
6
|
+
function softDisc(opts) {
|
|
7
|
+
const { width, curve } = opts.softness;
|
|
8
|
+
return pow(sub(1, smoothstep(sub(opts.radius, width), add(opts.radius, width), opts.dist)), curve);
|
|
9
|
+
}
|
|
10
|
+
function crispFill(opts) {
|
|
11
|
+
const half = mul(opts.footprint, .5);
|
|
12
|
+
return sub(1, smoothstep(neg(half), half, opts.distance));
|
|
13
|
+
}
|
|
14
|
+
function crispStroke(opts) {
|
|
15
|
+
return crispFill({
|
|
16
|
+
distance: sub(abs(opts.distance), mul(opts.width, .5)),
|
|
17
|
+
footprint: opts.footprint
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function radialMask(slots) {
|
|
21
|
+
return new Scalar({
|
|
22
|
+
kind: "radialMask",
|
|
23
|
+
center: slots.center,
|
|
24
|
+
radius: slots.radius,
|
|
25
|
+
falloff: slots.falloff
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
export { softDisc as a, softBand as i, crispStroke as n, radialMask as r, crispFill as t };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { $n as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as
|
|
5
|
-
import { C as normalize, D as smoothstep, E as sin, M as vec2, N as vec3, S as neg, _ as local, b as mix, i as clamp, j as sub, k as splat3, l as float, n as add, o as div, s as dot, v as max, w as pow, x as mul } from "./math-BF-GBlb4.js";
|
|
1
|
+
import { $n as clamp$1, Br as f32, En as value12, Fn as TWO_PI, Jn as select, Jr as __export, Nr as struct, P as sdf_exports, Sn as perlin12d, St as neutral, Tr as vec4f, Yn as abs, _r as smoothstep$1, bn as mxWorleyNoiseFloat2Pub, cr as max$1, dr as normalize$1, er as cos, fr as pow$1, gr as sin$1, lr as min, mn as hash12, nr as dot$1, ot as call, pt as Expr, rr as exp$1, rt as ZERO, sr as length$1, ur as mix$1, ut as floatE, vn as mxNoiseFloat2, vr as sqrt, wr as vec3f, xr as vec2f, yn as mxNoiseFloat3, zn as typegpu_default, zr as bool } from "./lower-DSk_KxOY.js";
|
|
2
|
+
import { m as sdf3d_exports } from "./sdf3d-DQ55w9nI.js";
|
|
3
|
+
import { n as glass_exports } from "./glass-CtWl8jzT.js";
|
|
4
|
+
import { C as mul, E as pow, L as sub, M as smoothstep, P as splat3, R as vec2, S as mix, T as normalize, b as max, c as exp, i as clamp, j as sin, l as exp2, n as add, o as div, s as dot, u as float, v as length, w as neg, y as local, z as vec3 } from "./math-DCQU6EQz.js";
|
|
6
5
|
var lighting_exports = /* @__PURE__ */ __export({
|
|
7
6
|
TangentFrame: () => TangentFrame,
|
|
8
7
|
WardSpecularInput: () => WardSpecularInput,
|
|
@@ -234,7 +233,7 @@ const volumetricNormal = typegpu_default.fn([
|
|
|
234
233
|
}) && $.f)({}));
|
|
235
234
|
const bevelledFlatNormal = typegpu_default.fn([vec2f, f32], vec3f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((grad, sinTilt) => {
|
|
236
235
|
"use gpu";
|
|
237
|
-
const glen = max$1(length(grad), 1e-4);
|
|
236
|
+
const glen = max$1(length$1(grad), 1e-4);
|
|
238
237
|
const sB = min(sinTilt, .9995);
|
|
239
238
|
return vec3f(__tsover_mul(__tsover_div(grad.x, glen), sB), __tsover_mul(__tsover_div(grad.y, glen), sB), __tsover_mul(sqrt(__tsover_sub(1, __tsover_mul(sB, sB))), -1));
|
|
240
239
|
}), {
|
|
@@ -335,7 +334,7 @@ const bevelledFlatNormal = typegpu_default.fn([vec2f, f32], vec3f)(/* @__PURE__
|
|
|
335
334
|
},
|
|
336
335
|
externals: {
|
|
337
336
|
"std.max": () => max$1,
|
|
338
|
-
"std.length": () => length,
|
|
337
|
+
"std.length": () => length$1,
|
|
339
338
|
"std.min": () => min,
|
|
340
339
|
"d.vec3f": () => vec3f,
|
|
341
340
|
"std.sqrt": () => sqrt
|
|
@@ -805,7 +804,7 @@ const wardAnisotropicSpecular = typegpu_default.fn([WardSpecularInput], f32)(/*
|
|
|
805
804
|
const aT = max$1(p.alphaAlong, 1e-4);
|
|
806
805
|
const aB = max$1(p.alphaAcross, 1e-4);
|
|
807
806
|
const expo = __tsover_div(__tsover_add(__tsover_mul(__tsover_div(hT, aT), __tsover_div(hT, aT)), __tsover_mul(__tsover_div(hB, aB), __tsover_div(hB, aB))), __tsover_mul(__tsover_add(hN, 1), .5));
|
|
808
|
-
return exp(__tsover_mul(expo, -1));
|
|
807
|
+
return exp$1(__tsover_mul(expo, -1));
|
|
809
808
|
}), {
|
|
810
809
|
v: 2,
|
|
811
810
|
name: void 0,
|
|
@@ -1012,7 +1011,7 @@ const wardAnisotropicSpecular = typegpu_default.fn([WardSpecularInput], f32)(/*
|
|
|
1012
1011
|
"std.clamp": () => clamp$1,
|
|
1013
1012
|
"std.abs": () => abs,
|
|
1014
1013
|
"std.max": () => max$1,
|
|
1015
|
-
"std.exp": () => exp
|
|
1014
|
+
"std.exp": () => exp$1
|
|
1016
1015
|
}
|
|
1017
1016
|
}) && $.f)({}));
|
|
1018
1017
|
const cosinePalette = typegpu_default.fn([
|
|
@@ -1666,7 +1665,7 @@ const opticalThickness$1 = typegpu_default.fn([f32, f32], f32)(/* @__PURE__ */ (
|
|
|
1666
1665
|
}) && $.f)({}));
|
|
1667
1666
|
const beerLambert$1 = typegpu_default.fn([f32, vec3f], vec3f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((thickness, absorb) => {
|
|
1668
1667
|
"use gpu";
|
|
1669
|
-
return vec3f(exp(__tsover_mul(__tsover_mul(thickness, absorb.x), -1)), exp(__tsover_mul(__tsover_mul(thickness, absorb.y), -1)), exp(__tsover_mul(__tsover_mul(thickness, absorb.z), -1)));
|
|
1668
|
+
return vec3f(exp$1(__tsover_mul(__tsover_mul(thickness, absorb.x), -1)), exp$1(__tsover_mul(__tsover_mul(thickness, absorb.y), -1)), exp$1(__tsover_mul(__tsover_mul(thickness, absorb.z), -1)));
|
|
1670
1669
|
}), {
|
|
1671
1670
|
v: 2,
|
|
1672
1671
|
name: void 0,
|
|
@@ -1756,7 +1755,7 @@ const beerLambert$1 = typegpu_default.fn([f32, vec3f], vec3f)(/* @__PURE__ */ ((
|
|
|
1756
1755
|
},
|
|
1757
1756
|
externals: {
|
|
1758
1757
|
"d.vec3f": () => vec3f,
|
|
1759
|
-
"std.exp": () => exp
|
|
1758
|
+
"std.exp": () => exp$1
|
|
1760
1759
|
}
|
|
1761
1760
|
}) && $.f)({}));
|
|
1762
1761
|
const flowWarpOffset = typegpu_default.fn([vec2f, f32], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((warpInput, flowT) => {
|
|
@@ -1936,15 +1935,15 @@ const studio5Softbox = typegpu_default.fn([
|
|
|
1936
1935
|
const sky = smoothstep$1(-.7, .85, ey);
|
|
1937
1936
|
let lum = __tsover_mul(__tsover_mul(sky, sky), skyGain);
|
|
1938
1937
|
const r0 = __tsover_mul(keyRad, 1);
|
|
1939
|
-
lum = __tsover_add(lum, __tsover_mul(__tsover_mul(smoothstep$1(r0, __tsover_mul(r0, .2), length(p.sub(vec2f(__tsover_add(0, drift), .55)))), 1.7), envStr));
|
|
1938
|
+
lum = __tsover_add(lum, __tsover_mul(__tsover_mul(smoothstep$1(r0, __tsover_mul(r0, .2), length$1(p.sub(vec2f(__tsover_add(0, drift), .55)))), 1.7), envStr));
|
|
1940
1939
|
const r1 = __tsover_mul(keyRad, 1.15);
|
|
1941
|
-
lum = __tsover_add(lum, __tsover_mul(__tsover_mul(smoothstep$1(r1, __tsover_mul(r1, .2), length(p.sub(vec2f(__tsover_add(-.55, drift), .18)))), 1.05), envStr));
|
|
1940
|
+
lum = __tsover_add(lum, __tsover_mul(__tsover_mul(smoothstep$1(r1, __tsover_mul(r1, .2), length$1(p.sub(vec2f(__tsover_add(-.55, drift), .18)))), 1.05), envStr));
|
|
1942
1941
|
const r2 = __tsover_mul(keyRad, 1);
|
|
1943
|
-
lum = __tsover_add(lum, __tsover_mul(__tsover_mul(smoothstep$1(r2, __tsover_mul(r2, .2), length(p.sub(vec2f(__tsover_add(.55, drift), .1)))), 1), envStr));
|
|
1942
|
+
lum = __tsover_add(lum, __tsover_mul(__tsover_mul(smoothstep$1(r2, __tsover_mul(r2, .2), length$1(p.sub(vec2f(__tsover_add(.55, drift), .1)))), 1), envStr));
|
|
1944
1943
|
const r3 = __tsover_mul(keyRad, 1.3);
|
|
1945
|
-
lum = __tsover_add(lum, __tsover_mul(__tsover_mul(smoothstep$1(r3, __tsover_mul(r3, .2), length(p.sub(vec2f(__tsover_add(.2, drift), -.5)))), .7), envStr));
|
|
1944
|
+
lum = __tsover_add(lum, __tsover_mul(__tsover_mul(smoothstep$1(r3, __tsover_mul(r3, .2), length$1(p.sub(vec2f(__tsover_add(.2, drift), -.5)))), .7), envStr));
|
|
1946
1945
|
const r4 = __tsover_mul(keyRad, 1.1);
|
|
1947
|
-
lum = __tsover_add(lum, __tsover_mul(__tsover_mul(smoothstep$1(r4, __tsover_mul(r4, .2), length(p.sub(vec2f(__tsover_add(-.35, drift), -.25)))), .85), envStr));
|
|
1946
|
+
lum = __tsover_add(lum, __tsover_mul(__tsover_mul(smoothstep$1(r4, __tsover_mul(r4, .2), length$1(p.sub(vec2f(__tsover_add(-.35, drift), -.25)))), .85), envStr));
|
|
1948
1947
|
return lum;
|
|
1949
1948
|
}), {
|
|
1950
1949
|
v: 2,
|
|
@@ -2413,7 +2412,7 @@ const studio5Softbox = typegpu_default.fn([
|
|
|
2413
2412
|
externals: {
|
|
2414
2413
|
"d.vec2f": () => vec2f,
|
|
2415
2414
|
"std.smoothstep": () => smoothstep$1,
|
|
2416
|
-
"std.length": () => length
|
|
2415
|
+
"std.length": () => length$1
|
|
2417
2416
|
}
|
|
2418
2417
|
}) && $.f)({}));
|
|
2419
2418
|
var bevel_exports = /* @__PURE__ */ __export({ bevelSin: () => bevelSin });
|
|
@@ -2538,15 +2537,6 @@ function guarded(cond, inner, fallback, hint = "guarded", deps = []) {
|
|
|
2538
2537
|
return name;
|
|
2539
2538
|
}));
|
|
2540
2539
|
}
|
|
2541
|
-
function reflect(i, n) {
|
|
2542
|
-
return new Expr((ctx) => `reflect(${i._emit(ctx)}, ${n._emit(ctx)})`);
|
|
2543
|
-
}
|
|
2544
|
-
function refract(i, n, eta) {
|
|
2545
|
-
return new Expr((ctx) => `refract(${i._emit(ctx)}, ${n._emit(ctx)}, ${eta._emit(ctx)})`);
|
|
2546
|
-
}
|
|
2547
|
-
function exp2(x) {
|
|
2548
|
-
return new Expr((ctx) => `exp2(${x._emit(ctx)})`);
|
|
2549
|
-
}
|
|
2550
2540
|
function insideShape(sdf, pxH) {
|
|
2551
2541
|
const outside = call(outsideShape, "outsideShape", [sdf, pxH]);
|
|
2552
2542
|
return new Expr((ctx) => `(!(${outside._emit(ctx)}))`);
|
|
@@ -2588,7 +2578,7 @@ function shapedSurface(spec) {
|
|
|
2588
2578
|
screenUV,
|
|
2589
2579
|
ctx.aspect
|
|
2590
2580
|
]), "sdfUV");
|
|
2591
|
-
frame.surf0 = sampler(frame.sdfUV);
|
|
2581
|
+
frame.surf0 = (spec.centreTap === "fast" ? gradSampler : sampler)(frame.sdfUV);
|
|
2592
2582
|
if (stencil !== "centre") {
|
|
2593
2583
|
const { kind, eps } = stencil;
|
|
2594
2584
|
frame.surfX = gradSampler(call(offsetUV, "offsetUV", [
|
|
@@ -2886,9 +2876,68 @@ function pointStars(p, opts) {
|
|
|
2886
2876
|
rgb: opts.tint ? mul(mix(vec3(...opts.tint.from), vec3(...opts.tint.to), splat3(variation)), splat3(mul(glint, opts.tint.gain))) : void 0
|
|
2887
2877
|
};
|
|
2888
2878
|
}
|
|
2879
|
+
function placementPoint(params, position, hint = "placed") {
|
|
2880
|
+
const { uniforms, ctx } = params;
|
|
2881
|
+
const screenUV = vec2(position.member("x"), sub(1, position.member("y")));
|
|
2882
|
+
return local(call(sdfSpaceUV, "sdfSpaceUV", [
|
|
2883
|
+
uniforms.center,
|
|
2884
|
+
uniforms.scale,
|
|
2885
|
+
uniforms.rotation,
|
|
2886
|
+
screenUV,
|
|
2887
|
+
ctx.aspect
|
|
2888
|
+
]), hint);
|
|
2889
|
+
}
|
|
2890
|
+
function continuedField(frame, field, params) {
|
|
2891
|
+
if (!(!frame.volumetric && Boolean(params.propValues.shapeSdfUrl))) return {
|
|
2892
|
+
sdf: field.sdf,
|
|
2893
|
+
outward: vec2(0, 0),
|
|
2894
|
+
at: (uv$1) => frame.gradSampler(uv$1).member("x")
|
|
2895
|
+
};
|
|
2896
|
+
const uv = frame.sdfUV;
|
|
2897
|
+
const beyond = (p) => sub(p, clamp(p, vec2(0, 0), vec2(1, 1)));
|
|
2898
|
+
const outward = local(beyond(uv), "outward");
|
|
2899
|
+
const continued = (border, dist) => max(border, max(dist, sub(border, dist)));
|
|
2900
|
+
return {
|
|
2901
|
+
sdf: local(continued(field.sdf, length(outward)), "sdfFar"),
|
|
2902
|
+
outward,
|
|
2903
|
+
at: (p) => {
|
|
2904
|
+
const dist = length(beyond(p));
|
|
2905
|
+
return continued(frame.gradSampler(p).member("x"), dist);
|
|
2906
|
+
}
|
|
2907
|
+
};
|
|
2908
|
+
}
|
|
2909
|
+
function nearestEdge(sdfUV, sdf, slope, hint = "edge") {
|
|
2910
|
+
const normal = local(div(slope, max(length(slope), 1e-4)), `${hint}N`);
|
|
2911
|
+
return {
|
|
2912
|
+
point: local(sub(sdfUV, mul(normal, max(sdf, 0))), `${hint}P`),
|
|
2913
|
+
normal
|
|
2914
|
+
};
|
|
2915
|
+
}
|
|
2916
|
+
function pointLightFrom(light, at, hint = "pl") {
|
|
2917
|
+
const delta = local(sub(light.position, at), `${hint}D`);
|
|
2918
|
+
const distance = local(length(delta), `${hint}Dist`);
|
|
2919
|
+
const toLight = local(div(delta, max(distance, 1e-4)), `${hint}Dir`);
|
|
2920
|
+
return {
|
|
2921
|
+
L: local(normalize(vec3(delta.member("x"), delta.member("y"), neg(light.height))), `${hint}L`),
|
|
2922
|
+
toLight,
|
|
2923
|
+
distance
|
|
2924
|
+
};
|
|
2925
|
+
}
|
|
2926
|
+
function lambert(normal, light, opts = {}) {
|
|
2927
|
+
const ndl = dot(normal, light);
|
|
2928
|
+
if (opts.wrap === void 0) return max(ndl, 0);
|
|
2929
|
+
return clamp(div(add(ndl, opts.wrap), add(1, opts.wrap)), 0, 1);
|
|
2930
|
+
}
|
|
2931
|
+
function inverseSquare(distance, range) {
|
|
2932
|
+
const r = div(distance, range);
|
|
2933
|
+
return div(1, add(1, mul(r, r)));
|
|
2934
|
+
}
|
|
2935
|
+
function exposureTone(rgb) {
|
|
2936
|
+
return sub(1, exp(neg(rgb)));
|
|
2937
|
+
}
|
|
2889
2938
|
function dualLobeGlint(ndh, opts) {
|
|
2890
2939
|
const widen = opts.softness ? local(exp2(mix(2, -2, opts.softness)), "lobeWiden") : void 0;
|
|
2891
2940
|
const exponent = (e) => widen ? mul(e, widen) : float(e);
|
|
2892
2941
|
return mul(add(mul(pow(ndh, exponent(opts.core[0])), opts.core[1]), mul(pow(ndh, exponent(opts.halo[0])), opts.halo[1])), opts.gain);
|
|
2893
2942
|
}
|
|
2894
|
-
export {
|
|
2943
|
+
export { bevel_exports as $, placementPoint as A, studioSoftboxes as B, lightVec3 as C, nudgeNormal as D, neutralTone as E, shapedSurface as F, tiltAlong as G, surfaceNoise as H, sharpGlint as I, twinkle as J, tiltNormal as K, shellRefract as L, pointStars as M, rotationSensor as N, opticalThickness as O, schlickFresnel as P, wardAlphas as Q, silhouette as R, lambert as S, nearestEdge as T, surfaceNoiseAt as U, surfaceField as V, surfacePattern as W, viewRay as X, valueNoise as Y, volumeNoiseAt as Z, hashNoise as _, cosineRainbow as a, keyLightAt as b, fdSlope as c, fresnelBoost as d, cosinePalette as et, geometricNormal as f, guarded as g, grazingOf as h, continuedField as i, pointLightFrom as j, perlinSlope as k, fieldSlope as l, grazingFlat as m, beerLambert as n, dualLobeGlint as o, grainNoise as p, tintRamp as q, cellNoiseAt as r, exposureTone as s, anisoSpecular as t, lighting_exports as tt, flowWarp as u, insideShape as v, marchedNormal as w, keyLightXY as x, inverseSquare as y, smearAlong as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { at as asLocal, dt as mixExpr, ft as vec4, pt as Expr, ut as floatE } from "./lower-DSk_KxOY.js";
|
|
2
2
|
var toE = (v) => typeof v === "number" ? floatE(v) : v;
|
|
3
3
|
var emit = (v, ctx) => typeof v === "number" ? floatE(v)._emit(ctx) : v._emit(ctx);
|
|
4
4
|
function callB(name, ...args) {
|
|
@@ -25,10 +25,17 @@ const min = (a, b) => callB("min", a, b);
|
|
|
25
25
|
const max = (a, b) => callB("max", a, b);
|
|
26
26
|
const clamp = (x, lo, hi) => callB("clamp", x, lo, hi);
|
|
27
27
|
const mix = (a, b, t) => mixExpr(toE(a), toE(b), typeof t === "number" ? t : t);
|
|
28
|
+
const step = (edge, x) => callB("step", edge, x);
|
|
28
29
|
const smoothstep = (e0, e1, x) => callB("smoothstep", e0, e1, x);
|
|
29
30
|
const length = (v) => callB("length", v);
|
|
30
31
|
const dot = (a, b) => callB("dot", a, b);
|
|
31
32
|
const normalize = (v) => callB("normalize", v);
|
|
33
|
+
const rotate2 = (p, cosA, sinA) => vec2(sub(mul(member2(p, "x"), cosA), mul(member2(p, "y"), sinA)), add(mul(member2(p, "x"), sinA), mul(member2(p, "y"), cosA)));
|
|
34
|
+
var member2 = (v, m) => typeof v === "number" ? v : v.member(m);
|
|
35
|
+
const reflect = (i, n) => callB("reflect", i, n);
|
|
36
|
+
const refract = (i, n, eta) => callB("refract", i, n, eta);
|
|
37
|
+
const exp2 = (x) => callB("exp2", x);
|
|
38
|
+
const hashPhase = (seed, salt) => mul(fract(mul(sin(mul(seed, salt.k)), salt.big)), 6.283185307179586);
|
|
32
39
|
const le = (a, b) => binary("<=", a, b);
|
|
33
40
|
const gt = (a, b) => binary(">", a, b);
|
|
34
41
|
const ge = (a, b) => binary(">=", a, b);
|
|
@@ -44,4 +51,4 @@ const softPlus = (x, k) => {
|
|
|
44
51
|
return mul(add(xe, sqrt(add(mul(xe, xe), mul(k, k)))), .5);
|
|
45
52
|
};
|
|
46
53
|
const gaussBell = (x, k) => exp(neg(mul(mul(x, x), k)));
|
|
47
|
-
export {
|
|
54
|
+
export { select as A, vec4$1 as B, mul as C, reflect as D, pow as E, sqrt as F, step as I, sub as L, smoothstep as M, softPlus as N, refract as O, splat3 as P, vec2 as R, mix as S, normalize as T, le as _, cos as a, max as b, exp as c, floor as d, fract as f, hashPhase as g, gt as h, clamp as i, sin as j, rotate2 as k, exp2 as l, ge as m, add as n, div as o, gaussBell as p, atan2 as r, dot as s, abs as t, float as u, length as v, neg as w, min as x, local as y, vec3 as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as decodeImageSource, n as createUrlSourceLoader, r as createVideoElementSource, s as registerNaturalSize, t as createSwappableMediaTexture } from "./mediaLifecycle-
|
|
1
|
+
import { Br as f32, Ct as srgbToLinear, Jn as select, Tr as vec4f, cr as max, lr as min, ot as call, wr as vec3f, xr as vec2f, zn as typegpu_default } from "./lower-DSk_KxOY.js";
|
|
2
|
+
import { i as decodeImageSource, n as createUrlSourceLoader, r as createVideoElementSource, s as registerNaturalSize, t as createSwappableMediaTexture } from "./mediaLifecycle-BTPb5i1-.js";
|
|
3
3
|
const scaleCover = typegpu_default.fn([vec2f, vec2f], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((dims, vp) => {
|
|
4
4
|
"use gpu";
|
|
5
5
|
const aspect = __tsover_div(dims.x, dims.y);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { $n as
|
|
2
|
-
import {
|
|
3
|
-
import { E as unrolledTapGather, b as gaussianTapWeights } from "./blur-CpGmUq81.js";
|
|
1
|
+
import { $n as clamp, An as DEG_TO_RAD$1, Br as f32, Et as unpremultiplyAlpha, J as applyEdgeHandlingExpr, Jn as select, Nr as struct, Pr as mod, Tr as vec4f, Y as edgeClampUV, Yn as abs, _r as smoothstep, ar as floor, cr as max, er as cos, ft as vec4, gn as hash22, gr as sin, mn as hash12, nr as dot, or as fract, ot as call, pn as hash11$1, sr as length, tt as sampleCatmullRomExpr, ur as mix, ut as floatE, wr as vec3f, xr as vec2f, yr as step, zn as typegpu_default } from "./lower-DSk_KxOY.js";
|
|
2
|
+
import { E as unrolledTapGather, b as gaussianTapWeights } from "./blur-BwjlF0Uk.js";
|
|
4
3
|
var DEG_TO_RAD = DEG_TO_RAD$1;
|
|
5
4
|
const MOTION_BLUR_WEIGHTS = gaussianTapWeights(32, .8);
|
|
6
5
|
const linearBlurTapCoord = typegpu_default.fn([
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import { c as rampOver, p as stops, t as colorSpaceModeOf } from "./fields-Cg5kOBDV.js";
|
|
1
|
+
import { $n as clamp, Br as f32, Et as unpremultiplyAlpha, On as wavelet12, Pt as mixColorsLinear, Sn as perlin12d, Tn as stone12, Ut as aspectScaledDomain, Yt as timeAxisDomain, at as asLocal, cn as blue12, dn as erosion12, dt as mixExpr, fn as gabor12, ft as vec4, kn as wool12, n as paintFrame, o as uniformOf, ot as call, qt as pixelGridDomain, rt as ZERO, ut as floatE, wn as scratches12, xr as vec2f, zn as typegpu_default } from "./lower-DSk_KxOY.js";
|
|
2
|
+
import { i as signedToUnit, o as toneSignedInverted } from "./tone-Ax72n2WU.js";
|
|
3
|
+
import { _ as worleyHash$1, a as fbmNormalize, b as worleyNormalize, c as rawAspectScaledDomain, d as toneLift, f as transformWorleyDistance$1, g as worleyDistNum, h as worleyCells, i as curlMagnitude, l as ribbonsField, m as voronoiCells, n as cellBorders$1, o as fractalSum, p as transformWorleyMode$1, r as cellFill$1, t as aspectPlane, u as rotatedCenteredDomain, v as worleyModeNum, x as worleyTone, y as worleyModeScale } from "./noisePaints-DV5jKo1A.js";
|
|
4
|
+
import { Tt as backConvertToP3, t as animatedTime } from "./porters-j4QbEOqj.js";
|
|
5
|
+
import { D as noiseToneKColor, f as rampOver, n as colorSpaceModeOf, y as stops } from "./fields-Cv-wBDLP.js";
|
|
6
|
+
import { C as mul, j as sin, n as add } from "./math-DCQU6EQz.js";
|
|
8
7
|
const reliefPos = typegpu_default.fn([
|
|
9
8
|
vec2f,
|
|
10
9
|
f32,
|
|
@@ -282,15 +281,46 @@ function applyNoiseReliefExpr(params, heightFn, heightHint) {
|
|
|
282
281
|
]);
|
|
283
282
|
return vec4(straight.member("rgb").mul(brightness), straight.member("a"));
|
|
284
283
|
}
|
|
285
|
-
function
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
284
|
+
function waves(axes, schedule) {
|
|
285
|
+
const axisTerm = (axis, k, name) => {
|
|
286
|
+
if (k === void 0) return void 0;
|
|
287
|
+
if (axis === void 0) throw new Error(`std: waves() schedule uses axis '${name}' but the axes object doesn't provide it`);
|
|
288
|
+
return k === 1 ? axis : mul(axis, k);
|
|
289
289
|
};
|
|
290
|
+
const waveExpr = (w) => {
|
|
291
|
+
const parts = [
|
|
292
|
+
axisTerm(axes.x, w.x, "x"),
|
|
293
|
+
axisTerm(axes.y, w.y, "y"),
|
|
294
|
+
axisTerm(axes.t, w.t, "t"),
|
|
295
|
+
w.phase
|
|
296
|
+
].filter((part) => part !== void 0);
|
|
297
|
+
if (parts.length === 0) throw new Error("std: a wave needs at least one axis coefficient or phase");
|
|
298
|
+
return sin(parts.reduce((a, b) => add(a, b)));
|
|
299
|
+
};
|
|
300
|
+
const terms = schedule.map((term) => {
|
|
301
|
+
if (term.waves.length === 0) throw new Error("std: a waves() term needs at least one wave");
|
|
302
|
+
const product = term.waves.map(waveExpr).reduce((a, b) => mul(a, b));
|
|
303
|
+
return term.weight === void 0 || term.weight === 1 ? product : mul(product, term.weight);
|
|
304
|
+
});
|
|
305
|
+
if (terms.length === 0) throw new Error("std: waves() needs at least one term");
|
|
306
|
+
return terms.reduce((a, b) => add(a, b));
|
|
307
|
+
}
|
|
308
|
+
function wavyLine(opts) {
|
|
309
|
+
return waves({
|
|
310
|
+
x: opts.along,
|
|
311
|
+
t: opts.time
|
|
312
|
+
}, opts.waves.map((w) => ({
|
|
313
|
+
waves: [{
|
|
314
|
+
x: w.freq,
|
|
315
|
+
t: w.speed,
|
|
316
|
+
phase: w.phase
|
|
317
|
+
}],
|
|
318
|
+
weight: w.amount
|
|
319
|
+
})));
|
|
290
320
|
}
|
|
291
321
|
function seededPlane(field, slots) {
|
|
292
322
|
return (params, uv) => {
|
|
293
|
-
const { viewport } =
|
|
323
|
+
const { viewport } = paintFrame(params);
|
|
294
324
|
return field(params, call(aspectScaledDomain, "aspectScaledDomain", [
|
|
295
325
|
uv,
|
|
296
326
|
viewport,
|
|
@@ -301,7 +331,7 @@ function seededPlane(field, slots) {
|
|
|
301
331
|
}
|
|
302
332
|
function rawPlane(field, slots) {
|
|
303
333
|
return (params, uv) => {
|
|
304
|
-
const { viewport } =
|
|
334
|
+
const { viewport } = paintFrame(params);
|
|
305
335
|
return field(params, call(rawAspectScaledDomain, "rawAspectScaledDomain", [
|
|
306
336
|
uv,
|
|
307
337
|
viewport,
|
|
@@ -312,7 +342,7 @@ function rawPlane(field, slots) {
|
|
|
312
342
|
}
|
|
313
343
|
function pixelGrid(field, slots) {
|
|
314
344
|
return (params, uv) => {
|
|
315
|
-
const { viewport } =
|
|
345
|
+
const { viewport } = paintFrame(params);
|
|
316
346
|
return field(params, call(pixelGridDomain, "pixelGridDomain", [
|
|
317
347
|
uv,
|
|
318
348
|
viewport,
|
|
@@ -321,12 +351,6 @@ function pixelGrid(field, slots) {
|
|
|
321
351
|
]));
|
|
322
352
|
};
|
|
323
353
|
}
|
|
324
|
-
function scaledPlane(field, slots) {
|
|
325
|
-
return (params, uv) => {
|
|
326
|
-
const { viewport } = frame(params);
|
|
327
|
-
return field(params, asLocal(call(aspectPlane, "aspectPlane", [uv, viewport]).mul(uniformOf(slots.scale, params)), "plane"));
|
|
328
|
-
};
|
|
329
|
-
}
|
|
330
354
|
function evolving(field, opts) {
|
|
331
355
|
return (params, coord) => field(params, call(timeAxisDomain, "timeAxisDomain", [
|
|
332
356
|
coord,
|
|
@@ -395,12 +419,9 @@ function linearPair(a, b) {
|
|
|
395
419
|
t
|
|
396
420
|
]);
|
|
397
421
|
}
|
|
398
|
-
function mixColorsIn(space, params) {
|
|
399
|
-
return mixColorsVariants[space ? colorSpaceModeOf(params.propValues[space.name]) : 0] ?? mixColorsLinear;
|
|
400
|
-
}
|
|
401
422
|
function fractalNoise(slots) {
|
|
402
423
|
const ridges = (params, uv) => {
|
|
403
|
-
const { viewport } =
|
|
424
|
+
const { viewport } = paintFrame(params);
|
|
404
425
|
return call(fbmNormalize, "fbmNormalize", [call(fractalSum, "fractalSum", [
|
|
405
426
|
call(rotatedCenteredDomain, "rotatedCenteredDomain", [
|
|
406
427
|
uv,
|
|
@@ -418,7 +439,7 @@ function fractalNoise(slots) {
|
|
|
418
439
|
}
|
|
419
440
|
function worleyNoise(slots) {
|
|
420
441
|
const cells = (params, uv) => {
|
|
421
|
-
const { viewport } =
|
|
442
|
+
const { viewport } = paintFrame(params);
|
|
422
443
|
const modeNum = worleyModeNum(params.propValues[slots.mode.name]);
|
|
423
444
|
const distNum = worleyDistNum(params.propValues[slots.distance.name]);
|
|
424
445
|
const octavesNum = Math.max(1, Math.min(4, Math.round(params.propValues[slots.octaves.name] ?? 1)));
|
|
@@ -440,42 +461,9 @@ function worleyNoise(slots) {
|
|
|
440
461
|
balance: slots.balance
|
|
441
462
|
}), stops(slots.space));
|
|
442
463
|
}
|
|
443
|
-
function marbleTurbulence(slots) {
|
|
444
|
-
return (params, pos) => call(marbleTurbulence$1, "marbleTurbulence", [
|
|
445
|
-
pos,
|
|
446
|
-
uniformOf(slots.seed, params),
|
|
447
|
-
animatedTime(params)
|
|
448
|
-
]);
|
|
449
|
-
}
|
|
450
|
-
function veinWave(turbulence, slots) {
|
|
451
|
-
return (params, pos) => call(veinWave$1, "veinWave", [
|
|
452
|
-
pos.member("x"),
|
|
453
|
-
turbulence(params, pos),
|
|
454
|
-
uniformOf(slots.turbulence, params)
|
|
455
|
-
]);
|
|
456
|
-
}
|
|
457
|
-
function veinLadder(vein, slots) {
|
|
458
|
-
return (params, pos) => call(veinLadder$1, "veinLadder", [vein(params, pos), call(veinDepth, "veinDepth", [pos, uniformOf(slots.seed, params)])]);
|
|
459
|
-
}
|
|
460
|
-
function colorLadder(field, slots) {
|
|
461
|
-
return (params) => {
|
|
462
|
-
const { uv } = frame(params);
|
|
463
|
-
const bands = asLocal(field(params, uv), "bands");
|
|
464
|
-
const variant = mixColorsIn(slots.space, params);
|
|
465
|
-
return call(variant, "mixColors", [
|
|
466
|
-
call(variant, "mixColors", [
|
|
467
|
-
uniformOf(slots.colors[0], params),
|
|
468
|
-
uniformOf(slots.colors[1], params),
|
|
469
|
-
bands.member("x")
|
|
470
|
-
]),
|
|
471
|
-
uniformOf(slots.colors[2], params),
|
|
472
|
-
bands.member("y")
|
|
473
|
-
]);
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
464
|
function cellDistances(slots) {
|
|
477
465
|
return (params, uv) => {
|
|
478
|
-
const { viewport } =
|
|
466
|
+
const { viewport } = paintFrame(params);
|
|
479
467
|
return call(voronoiCells, "voronoiNearest2", [
|
|
480
468
|
call(aspectPlane, "aspectPlane", [uv, viewport]).mul(uniformOf(slots.scale, params)),
|
|
481
469
|
animatedTime(params),
|
|
@@ -495,21 +483,11 @@ function cellBorders(cells, slots) {
|
|
|
495
483
|
}
|
|
496
484
|
function borderOverlay(paint, mask, slots) {
|
|
497
485
|
return (params) => {
|
|
498
|
-
const { uv } =
|
|
486
|
+
const { uv } = paintFrame(params);
|
|
499
487
|
const base = asLocal(paint(params), "base");
|
|
500
488
|
return vec4(mixExpr(uniformOf(slots.color, params).member("rgb"), base.member("rgb"), mask(params, uv)), base.member("a"));
|
|
501
489
|
};
|
|
502
490
|
}
|
|
503
|
-
function backConvert(conv, mode) {
|
|
504
|
-
switch (mode) {
|
|
505
|
-
case 1: return call(sRGBToP3, "sRGBToP3", [call(oklabToRgb, "oklabToRgb", [call(oklchToOklab, "oklchToOklab", [conv])])]);
|
|
506
|
-
case 2: return call(sRGBToP3, "sRGBToP3", [call(oklabToRgb, "oklabToRgb", [conv])]);
|
|
507
|
-
case 3: return call(sRGBToP3, "sRGBToP3", [call(hslToRgb, "hslToRgb", [conv])]);
|
|
508
|
-
case 4: return call(sRGBToP3, "sRGBToP3", [call(hsvToRgb, "hsvToRgb", [conv])]);
|
|
509
|
-
case 5: return call(sRGBToP3, "sRGBToP3", [call(labToRgb, "labToRgb", [call(lchToLab, "lchToLab", [conv])])]);
|
|
510
|
-
default: return conv;
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
491
|
function overRgb(paint, ...stages) {
|
|
514
492
|
return (params) => {
|
|
515
493
|
const base = paint(params);
|
|
@@ -520,22 +498,22 @@ function overRgb(paint, ...stages) {
|
|
|
520
498
|
}
|
|
521
499
|
function backToP3(slots) {
|
|
522
500
|
return (rgb, params) => {
|
|
523
|
-
return
|
|
501
|
+
return backConvertToP3(rgb, slots.space ? colorSpaceModeOf(params.propValues[slots.space.name]) : 0);
|
|
524
502
|
};
|
|
525
503
|
}
|
|
526
504
|
function tonePow() {
|
|
527
|
-
return (rgb) => call(
|
|
505
|
+
return (rgb) => call(toneLift, "toneLift", [rgb]);
|
|
528
506
|
}
|
|
529
|
-
function
|
|
507
|
+
function ribbons(slots) {
|
|
530
508
|
return (params) => {
|
|
531
509
|
const { uniforms } = params;
|
|
532
|
-
const { uv, viewport } =
|
|
510
|
+
const { uv, viewport } = paintFrame(params);
|
|
533
511
|
const waveT = animatedTime(params);
|
|
534
512
|
const colorT = animatedTime(params, void 0, "_animTime_color");
|
|
535
513
|
const packed1 = vec4(uniformOf(slots.amplitude, params), uniformOf(slots.frequency, params), uniformOf(slots.count, params), uniformOf(slots.width, params));
|
|
536
514
|
const packed2 = vec4(uniformOf(slots.softness, params), uniformOf(slots.spread, params), uniformOf(slots.colorScale, params), uniformOf(slots.colorVariance, params));
|
|
537
515
|
const packed3 = vec4(uniformOf(slots.pinEdges, params), waveT, colorT, uniforms.stopCount);
|
|
538
|
-
return call(
|
|
516
|
+
return call(ribbonsField, "ribbonsField", [
|
|
539
517
|
uv,
|
|
540
518
|
viewport,
|
|
541
519
|
uniformOf(slots.from, params),
|
|
@@ -565,4 +543,4 @@ function noiseRelief(basis) {
|
|
|
565
543
|
const transformWorleyMode = transformWorleyMode$1;
|
|
566
544
|
const transformWorleyDistance = transformWorleyDistance$1;
|
|
567
545
|
const worleyHash = worleyHash$1;
|
|
568
|
-
export {
|
|
546
|
+
export { worleyHash as A, tonePow as C, waveletBands as D, unitized as E, waves as O, signedTone as S, transformWorleyMode as T, rawPlane as _, cellDistances as a, scratchStreaks as b, erosionRidges as c, gaborGrains as d, linearPair as f, pixelGrid as g, overRgb as h, cellBorders as i, worleyNoise as j, wavyLine as k, evolving as l, noiseTone as m, blueSpeckle as n, cellFill as o, noiseRelief as p, borderOverlay as r, curlSpeed as s, backToP3 as t, fractalNoise as u, reliefBases as v, transformWorleyDistance as w, seededPlane as x, ribbons as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-
|
|
1
|
+
import { vt as colorStopsPropConfig } from "./porters-j4QbEOqj.js";
|
|
2
|
+
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-COlfAEsk.js";
|
|
3
3
|
function noiseColorProps() {
|
|
4
4
|
return {
|
|
5
5
|
colorA: {
|