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
|
@@ -11,12 +11,7 @@ import { DirectionFrame } from '../frames';
|
|
|
11
11
|
* branch would otherwise be block-scoped and unreachable afterwards).
|
|
12
12
|
*/
|
|
13
13
|
export declare function guarded(cond: Expr, inner: Expr, fallback: Expr, hint?: string, deps?: Expr[]): Expr;
|
|
14
|
-
|
|
15
|
-
export declare function reflect(i: Expr, n: Expr): Expr;
|
|
16
|
-
/** WGSL `refract(i, n, eta)`. */
|
|
17
|
-
export declare function refract(i: Expr, n: Expr, eta: Expr): Expr;
|
|
18
|
-
/** WGSL `exp2(x)`. */
|
|
19
|
-
export declare function exp2(x: Expr): Expr;
|
|
14
|
+
export { reflect, refract, exp2 } from '../math';
|
|
20
15
|
/** The material-body early-exit condition as vocabulary: NOT outside the shape by > 2 device
|
|
21
16
|
* pixels (the exact complement of the kit's `outsideShape` early-exit test). */
|
|
22
17
|
export declare function insideShape(sdf: Expr, pxH: Expr): Expr;
|
|
@@ -59,6 +54,14 @@ export interface ShapedSurfaceSpec {
|
|
|
59
54
|
kind: 'forward' | 'central';
|
|
60
55
|
eps: number;
|
|
61
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* Which sampler takes the CENTRE tap (default 'quality' — bicubic on the volumetric path).
|
|
59
|
+
* 'fast' takes the cheap bilinear neighbour sampler instead: for a material whose open-canvas
|
|
60
|
+
* pixels only gate on the centre value (coverage, an outside branch) and that takes its own
|
|
61
|
+
* quality tap inside the branches that need one — the metals' bicubic-per-pixel is 16 texel
|
|
62
|
+
* loads at every canvas pixel on a 3D shape.
|
|
63
|
+
*/
|
|
64
|
+
centreTap?: 'quality' | 'fast';
|
|
62
65
|
/** Displace the screen UV before placement (returns the UV fed to `sdfSpaceUV`). */
|
|
63
66
|
placeUV?: (params: GpuFragmentParams) => Expr;
|
|
64
67
|
/** Resolve the child RTT into the frame; without a child the fragment returns transparent. */
|
|
@@ -238,6 +241,13 @@ export declare function fdSlope(sampleAt: (p: Expr) => Expr, p: Expr, eps: numbe
|
|
|
238
241
|
};
|
|
239
242
|
/** Unsigned white-noise hash of a 2D point (film grain, flicker, per-pixel jitter). */
|
|
240
243
|
export declare function hashNoise(x: Expr | number, y: Expr | number): Expr;
|
|
244
|
+
/**
|
|
245
|
+
* Interleaved gradient noise over device pixels: a [0,1) pattern whose neighbouring pixels are
|
|
246
|
+
* maximally different (Jimenez 2014) — the low-discrepancy cousin of {@link hashNoise} for
|
|
247
|
+
* jittering samples, where white noise clumps into visible grain. `clock` advances the pattern
|
|
248
|
+
* by the golden ratio per unit so successive frames decorrelate.
|
|
249
|
+
*/
|
|
250
|
+
export declare function interleavedNoise(pixel: Expr, clock?: Expr | number): Expr;
|
|
241
251
|
/** Unsigned smooth value noise at a surface point (the [0,1] cousin of {@link surfaceNoise}). */
|
|
242
252
|
export declare function valueNoise(x: Expr | number, y: Expr | number): Expr;
|
|
243
253
|
/**
|
|
@@ -312,6 +322,74 @@ export declare function pointStars(p: Expr, opts: {
|
|
|
312
322
|
variation: Expr;
|
|
313
323
|
rgb?: Expr;
|
|
314
324
|
};
|
|
325
|
+
/**
|
|
326
|
+
* A `transformPosition` prop mapped into the shape's placement (sdfUV) space — the same
|
|
327
|
+
* aspect/rotation/scale placement the field is sampled in, so a light, anchor or pointer position
|
|
328
|
+
* can be compared against field coordinates directly. Placement-space distances are the field's
|
|
329
|
+
* units (the shape's own scale), not screen units.
|
|
330
|
+
*/
|
|
331
|
+
export declare function placementPoint(params: GpuFragmentParams, position: Expr, hint?: string): Expr;
|
|
332
|
+
/**
|
|
333
|
+
* The field continued beyond its texture. The flat SVG sampler clamps to its 0–1 square, so a
|
|
334
|
+
* far-reaching effect (a glow, a cast shadow) would see a plateau past it. The continuation is a
|
|
335
|
+
* sphere-trace-safe LOWER bound — `max(beyond, border − beyond)`, the shape being inside the
|
|
336
|
+
* square — not `border + beyond`, which is an upper bound that a march overshoots through
|
|
337
|
+
* (analytic fields need nothing). Returns the continued distance at the pixel, the outward push vector (zero within the square) to add to any
|
|
338
|
+
* gradient taken from the clamped taps, and `at(uv)` — the continued distance anywhere (fast
|
|
339
|
+
* neighbour-quality taps, flow-safe: the sampler for ray marches and shadow rays). Expects an
|
|
340
|
+
* unscaled {@link surfaceField}.
|
|
341
|
+
*/
|
|
342
|
+
export declare function continuedField(frame: SurfaceFrame, field: SurfaceField, params: GpuFragmentParams): {
|
|
343
|
+
sdf: Expr;
|
|
344
|
+
outward: Expr;
|
|
345
|
+
at: (uv: Expr) => Expr;
|
|
346
|
+
};
|
|
347
|
+
/**
|
|
348
|
+
* The nearest point of the shape boundary to this pixel and the outward unit normal there — where
|
|
349
|
+
* a rim glow, contact shadow or edge light originates for pixels outside the shape. `slope` is
|
|
350
|
+
* the in-plane field gradient (see {@link fieldSlope}); its length is guarded.
|
|
351
|
+
*/
|
|
352
|
+
export declare function nearestEdge(sdfUV: Expr, sdf: Expr, slope: Expr, hint?: string): {
|
|
353
|
+
point: Expr;
|
|
354
|
+
normal: Expr;
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* A point light in placement space as seen from `at` (a 2D placement point on the shape plane):
|
|
358
|
+
* the unit 3D light vector in the material convention (z negative = toward the viewer, matching
|
|
359
|
+
* {@link lightVec3}), the in-plane unit direction toward the light, and the in-plane distance.
|
|
360
|
+
*/
|
|
361
|
+
export declare function pointLightFrom(light: {
|
|
362
|
+
position: Expr;
|
|
363
|
+
height: Expr | number;
|
|
364
|
+
}, at: Expr, hint?: string): {
|
|
365
|
+
L: Expr;
|
|
366
|
+
toLight: Expr;
|
|
367
|
+
distance: Expr;
|
|
368
|
+
};
|
|
369
|
+
/**
|
|
370
|
+
* Diffuse (Lambert) response of a normal to a unit light vector (2D or 3D pairs alike), with
|
|
371
|
+
* optional wrap lighting: `wrap` 0 = strict hemisphere, 1 = the light reaches all the way round.
|
|
372
|
+
*/
|
|
373
|
+
export declare function lambert(normal: Expr, light: Expr, opts?: {
|
|
374
|
+
wrap?: Expr | number;
|
|
375
|
+
}): Expr;
|
|
376
|
+
/** Inverse-square attenuation of a point light: 1 at the source, half strength at `range`. */
|
|
377
|
+
export declare function inverseSquare(distance: Expr, range: Expr | number): Expr;
|
|
378
|
+
/**
|
|
379
|
+
* Photographic exposure response `1 − e^(−rgb)`: light piles up toward white the way a bright
|
|
380
|
+
* emitter burns out on film, instead of clipping per channel (the HDR → display step of any
|
|
381
|
+
* emissive look; {@link neutralTone} is the graded-image cousin).
|
|
382
|
+
*/
|
|
383
|
+
export declare function exposureTone(rgb: Expr): Expr;
|
|
384
|
+
/**
|
|
385
|
+
* Multiplicative sensor grain `rgb · (1 + (hash − 0.5) · amount)`, keyed per device pixel and
|
|
386
|
+
* re-rolled by `clock` — the photon-noise floor that makes rendered light read as photographed.
|
|
387
|
+
*/
|
|
388
|
+
export declare function sensorGrain(rgb: Expr, opts: {
|
|
389
|
+
amount: Expr | number;
|
|
390
|
+
pixel: Expr;
|
|
391
|
+
clock: Expr | number;
|
|
392
|
+
}): Expr;
|
|
315
393
|
/**
|
|
316
394
|
* Two-lobe specular glint — a tight hot core plus a wide dim halo. `softness` widens or
|
|
317
395
|
* tightens both lobes around the authored exponents (0.5 is neutral: the exponents as
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"materials.d.ts","sourceRoot":"","sources":["../../../src/std/paint/materials.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAC,MAAM,oBAAoB,CAAA;AAClG,OAAO,EAAC,IAAI,EAAC,MAAM,oBAAoB,CAAA;AAQvC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAA;AAiB7C;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,SAAY,EAAE,IAAI,GAAE,IAAI,EAAO,GAAG,IAAI,CAqB1G;AAKD,4BAA4B;AAC5B,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI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O,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,IAAI,CAAA;CAAC,CAM1C;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAE;IAAC,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;CAAM,GAAG,IAAI,CAI1F;AAED,8FAA8F;AAC9F,wBAAgB,aAAa,CAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAGxE;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,IAAI,GAAG,IAAI,CAE5C;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE;IAAC,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC;IAAC,KAAK,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,IAAI,GAAG,MAAM,CAAA;CAAC,GAAG,IAAI,CAG7G;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE;IAC3C,6CAA6C;IAC7C,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACtB,8CAA8C;IAC9C,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACtB,QAAQ,CAAC,EAAE,IAAI,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;CACb,GAAG,IAAI,CAOP"}
|
|
@@ -2,6 +2,72 @@ import { Expr, GpuFragmentParams } from '../../gpu/contract';
|
|
|
2
2
|
import { Field, Paint, Palette } from './fields';
|
|
3
3
|
import { PropRef } from '../values';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* One wave: coefficients on the named axes (frequency along x/y, drift speed along t) plus
|
|
7
|
+
* an optional phase. Every field is serializable data — a wave is `{x: 3.2, t: 0.8}`:
|
|
8
|
+
* "a wave across x at frequency 3.2, drifting at speed 0.8". Negative coefficients reverse
|
|
9
|
+
* direction. Coefficient `1` emits the bare axis (no `× 1`).
|
|
10
|
+
*/
|
|
11
|
+
export interface Wave {
|
|
12
|
+
x?: number;
|
|
13
|
+
y?: number;
|
|
14
|
+
t?: number;
|
|
15
|
+
/** Radians, or a `hashPhase(...)` Expr for seeded decorrelation. */
|
|
16
|
+
phase?: Expr | number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* One term of a schedule: a single wave, or a product of waves (the "organic" move — an
|
|
20
|
+
* x-wave × a y-wave interferes instead of striping). `weight` scales the term (default 1,
|
|
21
|
+
* emitted only when ≠ 1).
|
|
22
|
+
*/
|
|
23
|
+
export interface WaveTerm {
|
|
24
|
+
waves: Wave[];
|
|
25
|
+
weight?: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* `waves` — overlapping traveling sine waves, schedule as data. The engine under every
|
|
29
|
+
* "organic wobble": evaluates `Σ weightᵢ · Π sin(x·kx + y·ky + t·kt + phase)` over the
|
|
30
|
+
* named axes, SIGNED output (tone words shape it; `warped` coords warp it — both stay
|
|
31
|
+
* outside, deliberately). Emission is deterministic — terms sum in schedule order, waves
|
|
32
|
+
* multiply in wave order, axes emit x → y → t → phase — so a ported schedule reproduces
|
|
33
|
+
* its original arithmetic. Schedules are the caller's look; `organicWaves` generates one
|
|
34
|
+
* from intent when nobody has hand-tuned constants to preserve.
|
|
35
|
+
*/
|
|
36
|
+
export declare function waves(axes: {
|
|
37
|
+
x: Expr | number;
|
|
38
|
+
y?: Expr | number;
|
|
39
|
+
t?: Expr | number;
|
|
40
|
+
}, schedule: WaveTerm[]): Expr;
|
|
41
|
+
/**
|
|
42
|
+
* `wavyLine` — an animated organic curve: the offset of a line at coordinate `along`, as a
|
|
43
|
+
* weighted stack of traveling sines. Sugar over {@link waves} on one axis; give each wave a
|
|
44
|
+
* `hashPhase` to decorrelate a family of lines. Curtain paths, water horizons, wavy
|
|
45
|
+
* baselines, cloth edges.
|
|
46
|
+
*/
|
|
47
|
+
export declare function wavyLine(opts: {
|
|
48
|
+
along: Expr | number;
|
|
49
|
+
time: Expr | number;
|
|
50
|
+
waves: {
|
|
51
|
+
freq: number;
|
|
52
|
+
speed: number;
|
|
53
|
+
amount: number;
|
|
54
|
+
phase?: Expr | number;
|
|
55
|
+
}[];
|
|
56
|
+
}): Expr;
|
|
57
|
+
/**
|
|
58
|
+
* `organicWaves` — generate a {@link waves} schedule from intent, for authors (human or AI)
|
|
59
|
+
* who don't have hand-tuned constants to preserve. Three knobs + seed, deliberately
|
|
60
|
+
* (knobs grow under pressure from real use, never speculatively): `frequency` sets the base
|
|
61
|
+
* scale, `detail` the number of product-pair layers (each ~1.8× finer, half the weight),
|
|
62
|
+
* `drift` the animation speed. Deterministic per seed. TUNING CANDIDATE — constants pending
|
|
63
|
+
* an eye pass; treat the output as a starting point, not a spec.
|
|
64
|
+
*/
|
|
65
|
+
export declare function organicWaves(opts: {
|
|
66
|
+
frequency: number;
|
|
67
|
+
detail?: number;
|
|
68
|
+
drift?: number;
|
|
69
|
+
seed?: number;
|
|
70
|
+
}): WaveTerm[];
|
|
5
71
|
/**
|
|
6
72
|
* The exponential-scale noise framing: aspect-correct the UV, scale by `exp(scale)` (each +1
|
|
7
73
|
* on the slider doubles-ish the frequency), offset by `seed`. Hands the inner field a vec2
|
|
@@ -123,35 +189,6 @@ export declare function worleyNoise(slots: {
|
|
|
123
189
|
octaves: PropRef;
|
|
124
190
|
space: PropRef;
|
|
125
191
|
}): Paint;
|
|
126
|
-
/**
|
|
127
|
-
* The marble turbulence field: three hand-tuned MaterialX octaves over the plane position,
|
|
128
|
-
* drifting on the node's clock — the bend amount for {@link veinWave}.
|
|
129
|
-
*/
|
|
130
|
-
export declare function marbleTurbulence(slots: {
|
|
131
|
-
seed: PropRef;
|
|
132
|
-
}): Field;
|
|
133
|
-
/**
|
|
134
|
-
* The sine vein wave over the plane's x axis, bent by the `turbulence` field scaled by the
|
|
135
|
-
* `turbulence` slot. Unit range.
|
|
136
|
-
*/
|
|
137
|
-
export declare function veinWave(turbulence: Field, slots: {
|
|
138
|
-
turbulence: PropRef;
|
|
139
|
-
}): Field;
|
|
140
|
-
/**
|
|
141
|
-
* The two-band vein ladder: smoothsteps the vein parameter into `vec2(band1, band2)`, the
|
|
142
|
-
* deep band modulated by a slow cross-axis depth noise seeded by `seed`.
|
|
143
|
-
*/
|
|
144
|
-
export declare function veinLadder(vein: Field, slots: {
|
|
145
|
-
seed: PropRef;
|
|
146
|
-
}): Field;
|
|
147
|
-
/**
|
|
148
|
-
* Three-colour ladder paint over a two-band field: A → B by band `.x`, then → C by band `.y`,
|
|
149
|
-
* both mixes in the compile-time `space`. The bands bind as a local: both mixes read them.
|
|
150
|
-
*/
|
|
151
|
-
export declare function colorLadder(field: Field, slots: {
|
|
152
|
-
colors: [PropRef, PropRef, PropRef];
|
|
153
|
-
space?: PropRef;
|
|
154
|
-
}): Paint;
|
|
155
192
|
/**
|
|
156
193
|
* Nearest-two cellular distances `vec2(d1, d2)` over the aspect plane at `scale`, the cell
|
|
157
194
|
* points drifting on the node's clock. Wrap in `share` when a fill and a border mask read
|
|
@@ -191,13 +228,14 @@ export declare function backToP3(slots: {
|
|
|
191
228
|
/** The `pow(rgb, 0.85)` tone lift. */
|
|
192
229
|
export declare function tonePow(): RgbStage;
|
|
193
230
|
/**
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
231
|
+
* `ribbons` — flowing, gradient-colored ribbons between two anchors (the ribbons genre
|
|
232
|
+
* primitive): an ATOMIC runtime-count reduce — each ribbon's working-space gradient lookup
|
|
233
|
+
* lives inside the loop — returning working-space rgba. Close it with {@link backToP3} (and
|
|
234
|
+
* {@link tonePow}) via {@link overRgb}. Reads BOTH of the definition's clocks: the main one
|
|
235
|
+
* drives the wave motion, the `color` extra clock
|
|
198
236
|
* (`extraAnimatedTimes: {color: ...}` stays declared on the definition) scrolls the colours.
|
|
199
237
|
*/
|
|
200
|
-
export declare function
|
|
238
|
+
export declare function ribbons(slots: {
|
|
201
239
|
from: PropRef;
|
|
202
240
|
to: PropRef;
|
|
203
241
|
count: PropRef;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"noise.d.ts","sourceRoot":"","sources":["../../../src/std/paint/noise.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAC,IAAI,EAAE,iBAAiB,EAAC,MAAM,oBAAoB,CAAA;AAI/D,OAAO,EAAoC,KAAK,KAAK,EAAE,KAAK,KAAK,EAAE,KAAK,OAAO,EAAC,MAAM,UAAU,CAAA;AAChG,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"noise.d.ts","sourceRoot":"","sources":["../../../src/std/paint/noise.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAC,IAAI,EAAE,iBAAiB,EAAC,MAAM,oBAAoB,CAAA;AAI/D,OAAO,EAAoC,KAAK,KAAK,EAAE,KAAK,KAAK,EAAE,KAAK,OAAO,EAAC,MAAM,UAAU,CAAA;AAChG,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AAMtC;;;;;GAKG;AACH,MAAM,WAAW,IAAI;IACjB,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,oEAAoE;IACpE,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;CACxB;AAED;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;;;;;;GAQG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE;IAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAA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AM,CAAA;CACxB;AAED,qDAAqD;AACrD,eAAO,MAAM,WAAW;IACpB,kCAAkC;;;;;IAElC,8CAA8C;;;;;CAEF,CAAA;AAEhD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAEnF;AAED,8FAA8F;AAC9F,eAAO,MAAM,mBAAmB,2BAAkC,CAAA;AAClE,eAAO,MAAM,uBAAuB,2BAAsC,CAAA;AAC1E,eAAO,MAAM,UAAU,6FAAyB,CAAA"}
|
|
@@ -171,9 +171,10 @@ export declare function triangleLines(slots: {
|
|
|
171
171
|
/**
|
|
172
172
|
* Brick courses: staggered rows with mortar gaps, optional rotation, static offset, and per-row
|
|
173
173
|
* animated drift (the node's accumulated time). `bricks` is the brick coverage mask, `shade`
|
|
174
|
-
* the per-brick variation factor.
|
|
175
|
-
*
|
|
176
|
-
*
|
|
174
|
+
* the per-brick variation factor. Brick keeps its OWN frame part (`patternPaints.brickFrame`)
|
|
175
|
+
* rather than the shared {@link cellFrame} slot — its raw-UV, non-uniform-cell framing is not
|
|
176
|
+
* byte-equivalent to any lattice frame convention (Gate-C candidate; see the note on
|
|
177
|
+
* `brickFrame`). Requires `animatedTime: {speed}` on the definition.
|
|
177
178
|
*/
|
|
178
179
|
export declare function brickCourses(slots: {
|
|
179
180
|
cellsX: PropRef;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patterns.d.ts","sourceRoot":"","sources":["../../../src/std/paint/patterns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAC,IAAI,EAAE,iBAAiB,EAAE,eAAe,EAAC,MAAM,oBAAoB,CAAA;AAGhF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAA;AAClE,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,UAAU,CAAA;AAE1C,OAAO,KAAK,EAAC,OAAO,EAAC,MA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|
3
|
+
export interface GatherSpec {
|
|
4
|
+
/** The pixel, in the field's coordinates (vec2). */
|
|
5
|
+
origin: Expr;
|
|
6
|
+
/** Signed distance at any point of the field's coordinates. */
|
|
7
|
+
field: (at: Expr) => Expr;
|
|
8
|
+
/** Number of cones tiling the circle (compile-time: the fan is a WGSL loop of this count). */
|
|
9
|
+
cones: number;
|
|
10
|
+
/** Maximum sphere-trace steps per cone. */
|
|
11
|
+
steps: number;
|
|
12
|
+
/** Distance beyond which a cone has escaped. */
|
|
13
|
+
reach: Expr | number;
|
|
14
|
+
/** Where along each cone the trace begins (the pixel's own distance is the natural start). */
|
|
15
|
+
start: Expr | number;
|
|
16
|
+
/** Hit threshold and minimum step — about one device pixel in field units. */
|
|
17
|
+
surfaceEps: Expr | number;
|
|
18
|
+
/** Per-pixel [0, 1) rotation of the fan, in cones. */
|
|
19
|
+
jitter: Expr | number;
|
|
20
|
+
/** Radiance leaving the boundary toward the pixel at a cone's closest boundary point (scalar). */
|
|
21
|
+
emission: (hit: {
|
|
22
|
+
point: Expr;
|
|
23
|
+
normal: Expr;
|
|
24
|
+
distance: Expr;
|
|
25
|
+
coverage: Expr;
|
|
26
|
+
}) => Expr;
|
|
27
|
+
/** Locals the emission shares with the enclosing recipe — emitted before the loop. */
|
|
28
|
+
deps?: Expr[];
|
|
29
|
+
hint?: string;
|
|
30
|
+
}
|
|
31
|
+
/** Irradiance at a pixel from an emitting, occluding boundary — the coverage-weighted mean over the cone fan. */
|
|
32
|
+
export declare function gatherIrradiance(spec: GatherSpec): Expr;
|
|
33
|
+
export interface ShadowSpec {
|
|
34
|
+
/** The lit point, already stepped off the surface along its normal. */
|
|
35
|
+
from: Expr;
|
|
36
|
+
/** The light position. */
|
|
37
|
+
toward: Expr;
|
|
38
|
+
field: (at: Expr) => Expr;
|
|
39
|
+
steps: number;
|
|
40
|
+
surfaceEps: Expr | number;
|
|
41
|
+
/** Penumbra width: how much a near-miss dims the light (0 = hard shadow). */
|
|
42
|
+
softness?: Expr | number;
|
|
43
|
+
hint?: string;
|
|
44
|
+
}
|
|
45
|
+
/** Fraction of the light at `toward` that reaches `from` through the field (1 = unblocked). */
|
|
46
|
+
export declare function shadowVisibility(spec: ShadowSpec): Expr;
|
|
47
|
+
export interface IrradianceFieldSpec {
|
|
48
|
+
/**
|
|
49
|
+
* The per-frame ray budget (stratified rays per texel): `burst` on the first frame after a
|
|
50
|
+
* change (what a nudge or a still shows), `motion` while changes keep coming (motion masks the
|
|
51
|
+
* noise), `refine` for each of `refineFrames` extra gathers folded into the running mean once
|
|
52
|
+
* the scene is still — then the node idles.
|
|
53
|
+
*/
|
|
54
|
+
rays: {
|
|
55
|
+
burst: number;
|
|
56
|
+
motion: number;
|
|
57
|
+
refine: number;
|
|
58
|
+
refineFrames: number;
|
|
59
|
+
};
|
|
60
|
+
/** Sphere-trace step cap per ray (default 32). */
|
|
61
|
+
steps?: number;
|
|
62
|
+
/** Shadow-ray step cap; 0 compiles the shadow rays out (default 12). */
|
|
63
|
+
shadowSteps?: number;
|
|
64
|
+
/** Texels per side of the square irradiance texture. */
|
|
65
|
+
resolution: number;
|
|
66
|
+
/**
|
|
67
|
+
* The light LIST prop (`listPropConfig`, `getCpuValue`-resolved so per-light mouse drivers work)
|
|
68
|
+
* and its item field names: a `position`, a `color`, and a `number` intensity.
|
|
69
|
+
*/
|
|
70
|
+
lights: {
|
|
71
|
+
prop: string;
|
|
72
|
+
position: string;
|
|
73
|
+
color: string;
|
|
74
|
+
intensity: string;
|
|
75
|
+
};
|
|
76
|
+
/** Prop names the gather reads (all `getCpuValue`-resolved). */
|
|
77
|
+
reach: string;
|
|
78
|
+
wrap: string;
|
|
79
|
+
lightRange: string;
|
|
80
|
+
shadowSoftness: string;
|
|
81
|
+
/** Key the texture is published under in `computeOutputs` (default 'irradianceTexture'). */
|
|
82
|
+
outputKey?: string;
|
|
83
|
+
namePrefix?: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The irradiance-field compute node. Returns the `compute` half for the definition and `sample`,
|
|
87
|
+
* the fragment's bilinear read of the gathered field at the composed UV (undefined when no compute
|
|
88
|
+
* ran — GPU-free resolve — so the recipe can fall back).
|
|
89
|
+
*/
|
|
90
|
+
export declare function irradianceField(spec: IrradianceFieldSpec): {
|
|
91
|
+
compute: GpuComputeNode;
|
|
92
|
+
sample: (params: GpuFragmentParams) => Expr | undefined;
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=radiance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radiance.d.ts","sourceRoot":"","sources":["../../../src/std/paint/radiance.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAC,IAAI,EAAC,MAAM,oBAAoB,CAAA;AAsBvC,MAAM,WAAW,UAAU;IACvB,oDAAoD;IACpD,MAAM,EAAE,IAAI,CAAA;IACZ,+DAA+D;IAC/D,KAAK,EAAE,CAAC,EAAE,EAAE,IAAI,KAAK,IAAI,CAAA;IACzB,8FAA8F;IAC9F,KAAK,EAAE,MAAM,CAAA;IACb,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;IACb,gDAAgD;IAChD,KAAK,EAAE,IAAI,GAAG,MAAM,CAAA;IACpB,8FAA8F;IAC9F,KAAK,EAAE,IAAI,GAAG,MAAM,CAAA;IACpB,8EAA8E;IAC9E,UAAU,EAAE,IAAI,GAAG,MAAM,CAAA;IACzB,sDAAsD;IACtD,MAAM,EAAE,IAAI,GAAG,MAAM,CAAA;IACrB,kGAAkG;IAClG,QAAQ,EAAE,CAAC,GAAG,EAAE;QAAC,KAAK,EAAE,IAAI,CAAC;QAAC,MAAM,EAAE,IAAI,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAC,KAAK,IAAI,CAAA;IACpF,sFAAsF;IACtF,IAAI,CAAC,EAAE,IAAI,EAAE,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,iHAAiH;A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AAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG;IACxD,OAAO,EAAE,cAAc,CAAA;IACvB,MAAM,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,GAAG,SAAS,CAAA;CAC1D,CA6MA"}
|
|
@@ -20,4 +20,29 @@ export interface PointerSpeedSignal {
|
|
|
20
20
|
export declare function pointerSpeed(opts?: {
|
|
21
21
|
max?: number;
|
|
22
22
|
}): PointerSpeedSignal;
|
|
23
|
+
/**
|
|
24
|
+
* Drive three extraFields with the CPU-normalized unit vector of three scalar props, refreshed
|
|
25
|
+
* each frame — the standard way a direction prop reaches the GPU pre-normalized (saves a
|
|
26
|
+
* per-fragment `normalize()`). Declare the fields on the definition's `extraFields`; a
|
|
27
|
+
* zero-length input writes the zero vector.
|
|
28
|
+
*/
|
|
29
|
+
export declare function driveUnitDirection(params: {
|
|
30
|
+
onBeforeRender(cb: () => void): void;
|
|
31
|
+
getCpuValue(name: string): unknown;
|
|
32
|
+
setExtraField(name: string, value: number): void;
|
|
33
|
+
}, props: {
|
|
34
|
+
x: string;
|
|
35
|
+
y: string;
|
|
36
|
+
z: string;
|
|
37
|
+
}, fields: {
|
|
38
|
+
x: string;
|
|
39
|
+
y: string;
|
|
40
|
+
z: string;
|
|
41
|
+
}): void;
|
|
42
|
+
/**
|
|
43
|
+
* CPU mirror of the classic in-shader `hash01` (`fract(sin(x·12.9898)·43758.5453)`) — for
|
|
44
|
+
* pixel-invariant per-seed constants computed off the GPU (JS Math.sin at these argument
|
|
45
|
+
* magnitudes is exact where GPU sin is driver-approximate).
|
|
46
|
+
*/
|
|
47
|
+
export declare function cpuHash01(x: number): number;
|
|
23
48
|
//# sourceMappingURL=signal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signal.d.ts","sourceRoot":"","sources":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,EAAE,MAAM,IAAI,GAAG,IAAI,CAAA;IACpC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;IAClC,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACnD,EACD,KAAK,EAAE;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAC,EACxC,MAAM,EAAE;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAC,GAC1C,IAAI,CAgBN;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAG3C"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { $n as
|
|
2
|
-
import {
|
|
3
|
-
import { n as gather } from "./filter-Bw8Ogi4T.js";
|
|
1
|
+
import { $n as clamp, An as DEG_TO_RAD, Br as f32, En as value12, Et as unpremultiplyAlpha, Jn as select, Nr as struct, Pn as TAU, Tr as vec4f, Yn as abs, Zn as atan2, _r as smoothstep, ar as floor, at as asLocal, cr as max, er as cos, fr as pow, ft as vec4, gr as sin, lr as min, lt as expr, mn as hash12, nr as dot, o as uniformOf, or as fract, ot as call, rt as ZERO, sr as length, ur as mix, ut as floatE, vn as mxNoiseFloat2, vr as sqrt, wr as vec3f, xr as vec2f, yr as step, zn as typegpu_default } from "./lower-DSk_KxOY.js";
|
|
2
|
+
import { n as gather } from "./filter-VJlLs3Zs.js";
|
|
4
3
|
const watercolorUvBase = typegpu_default.fn([
|
|
5
4
|
vec2f,
|
|
6
5
|
vec2f,
|