shaders 4.0.1 → 4.0.3
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-BEBs-lRR.js → AngularBlur-CadOY7zB.js} +1 -1
- package/dist/core/{Arc-D-WnjM7T.js → Arc-B5grj-p3.js} +1 -1
- package/dist/core/{Ascii-BGPIwMc3.js → Ascii-Chul_q9B.js} +1 -1
- package/dist/core/{Aurora-DqJBPdMQ.js → Aurora-COjCTZzM.js} +1 -1
- package/dist/core/{BarShift-BcCOweUh.js → BarShift-CmMkOiz1.js} +1 -1
- package/dist/core/{BarnDoors-B9B-AmCV.js → BarnDoors-B_Tfvd5_.js} +1 -1
- package/dist/core/{Beam-QG_9OS8I.js → Beam-DqUZIoO-.js} +1 -1
- package/dist/core/{Bend-Cy9VAowL.js → Bend-CzoMkg0C.js} +1 -1
- package/dist/core/{Blob-C3txJeW0.js → Blob-D-FcfCk_.js} +1 -1
- package/dist/core/{BlockDissolve-C1SFUys7.js → BlockDissolve-Cfg38mph.js} +1 -1
- package/dist/core/{BlockNoise-Cm3y8hce.js → BlockNoise-AOm3USwt.js} +2 -2
- package/dist/core/{BlueNoise-BCLObOMm.js → BlueNoise-B1goUO9x.js} +2 -2
- package/dist/core/{Blur-Dg29SnXd.js → Blur-orV6Zo0Q.js} +1 -1
- package/dist/core/{Boids-rsGsPN5h.js → Boids-CaGoO9l6.js} +1 -1
- package/dist/core/{BokehBlur-rFSFEnb0.js → BokehBlur-Bak9qlJC.js} +1 -1
- package/dist/core/{BrickPattern-DqN6JKEN.js → BrickPattern-57nSncIU.js} +1 -1
- package/dist/core/{BrightnessContrast-J9fCSBiC.js → BrightnessContrast-CT-FMH50.js} +1 -1
- package/dist/core/{BrushedMetal-74wSZKjG.js → BrushedMetal-CsOf111o.js} +1 -1
- package/dist/core/{Bulge-BIk0oq8j.js → Bulge-BENQmcJz.js} +1 -1
- package/dist/core/{CRTScreen-hEH-JNRd.js → CRTScreen-DRg0NNys.js} +1 -1
- package/dist/core/{CarbonFiber-CZdUDvRU.js → CarbonFiber-CP8sfZpO.js} +1 -1
- package/dist/core/{Chalkboard-CClJHqvs.js → Chalkboard-DIKb88fc.js} +1 -1
- package/dist/core/{ChannelBlur-BEuEwQOC.js → ChannelBlur-hR8wijV7.js} +1 -1
- package/dist/core/{CheckerWipe-KuAWj2qg.js → CheckerWipe-BiWuSCaB.js} +1 -1
- package/dist/core/{Checkerboard-Rq9ze1W3.js → Checkerboard-CI7mErmL.js} +1 -1
- package/dist/core/{Chevron-C1j6X2Ye.js → Chevron-B8Vhf4mu.js} +1 -1
- package/dist/core/{ChromaFlow-BgsCUYIl.js → ChromaFlow-BA40CkCT.js} +1 -1
- package/dist/core/{ChromaticAberration-2_4tjQ0u.js → ChromaticAberration-Co8JMSWY.js} +1 -1
- package/dist/core/{Chrome-Be3z6C5i.js → Chrome-1t9oTBIF.js} +1 -1
- package/dist/core/{Circle-e_qQI3tU.js → Circle-BQq87Fzk.js} +1 -1
- package/dist/core/{ColorWheel-s5ep1H7d.js → ColorWheel-X5JCwd6p.js} +1 -1
- package/dist/core/{CompressionArtifacts-OE9U9Qrq.js → CompressionArtifacts-CfZMsMVi.js} +1 -1
- package/dist/core/{ConcentricSpin-CLE_5yCJ.js → ConcentricSpin-D8srFQgv.js} +1 -1
- package/dist/core/{ConicGradient-Cji2SgVO.js → ConicGradient-zgpOve2I.js} +1 -1
- package/dist/core/{ContourLines-wpPK00cF.js → ContourLines-CIPNR5U6.js} +1 -1
- package/dist/core/{CornerPin-gYU0Uf2m.js → CornerPin-DDatnonj.js} +1 -1
- package/dist/core/{Crescent-viNc7Unp.js → Crescent-2VNndYEF.js} +1 -1
- package/dist/core/{Cross-DyQSsw_k.js → Cross--RtTa2r5.js} +1 -1
- package/dist/core/{Crystal-Vjj8azWg.js → Crystal-RuFWVxDw.js} +1 -1
- package/dist/core/{CurlNoise-C7PHjDht.js → CurlNoise-Dz7E3WIq.js} +2 -2
- package/dist/core/{CursorRipples-BzPPNkA3.js → CursorRipples-DWwT4wnN.js} +1 -1
- package/dist/core/{CursorTrail-cBj0AuQA.js → CursorTrail-DtEejGeY.js} +1 -1
- package/dist/core/{DataMosh-5Yr9TyVx.js → DataMosh-DHklBXQy.js} +1 -1
- package/dist/core/{DiamondGradient-DZM7HwF5.js → DiamondGradient-j3Af00XM.js} +1 -1
- package/dist/core/{DiamondWipe-CqeT7lCt.js → DiamondWipe-BwzZIEYX.js} +1 -1
- package/dist/core/{DiffuseBlur-Y5hSDTZF.js → DiffuseBlur-CztumKI8.js} +1 -1
- package/dist/core/{DisplacementMap-FobRx5Ie.js → DisplacementMap-_R0XWmDv.js} +1 -1
- package/dist/core/{Dither-50rqHpt9.js → Dither-BMtSn0ET.js} +1 -1
- package/dist/core/{DotGrid-B6AGLUbR.js → DotGrid-5pz59elN.js} +1 -1
- package/dist/core/{DropShadow-CEPpgatB.js → DropShadow-Afbu-AM5.js} +1 -1
- package/dist/core/{Duotone-D76Kp7Pb.js → Duotone-CPNAyquB.js} +1 -1
- package/dist/core/{Ellipse-BGod1LeG.js → Ellipse-CIdAfmRX.js} +1 -1
- package/dist/core/{Emboss-DMNFb_ww.js → Emboss-B0ZaXWSG.js} +1 -1
- package/dist/core/{Engraving-Dj7bCATQ.js → Engraving-C6DmtOdA.js} +1 -1
- package/dist/core/{ErosionNoise-4O68wJQZ.js → ErosionNoise-3QrqYZy6.js} +2 -2
- package/dist/core/{Exposure-h-vapOpj.js → Exposure-CQ6luJ-4.js} +1 -1
- package/dist/core/{FallingLines-Dzop_89k.js → FallingLines-y-XE0joI.js} +1 -1
- package/dist/core/{FilmGrain-Bs8PCfdf.js → FilmGrain-Bxz_2Za0.js} +1 -1
- package/dist/core/{FilmStock-DBjVo6rL.js → FilmStock-BsPw-b6W.js} +1 -1
- package/dist/core/{Flip-CfrS4KfZ.js → Flip-CML4rm2V.js} +1 -1
- package/dist/core/{FloatingParticles-D1R2tD2J.js → FloatingParticles-CDQaOt3i.js} +1 -1
- package/dist/core/{FlowField-Slirm5AI.js → FlowField-CEhUrnv4.js} +1 -1
- package/dist/core/{Flower-Ddlut7QZ.js → Flower-Bp75dXJa.js} +1 -1
- package/dist/core/{FlowingGradient-CwIgTtbj.js → FlowingGradient-CGBB_tvE.js} +1 -1
- package/dist/core/{FlutedGlass-CMMy2GJ5.js → FlutedGlass-CkwFDUxi.js} +1 -1
- package/dist/core/{Fog-DjjUkcTZ.js → Fog-Dhy6FKme.js} +1 -1
- package/dist/core/{Form3D-DQDOHWpC.js → Form3D-CFaxdFCN.js} +1 -1
- package/dist/core/{FractalNoise-BjI3IOIj.js → FractalNoise-DMLBHVU1.js} +1 -1
- package/dist/core/{Frost-CK12HnL1.js → Frost-CvCAXumf.js} +1 -1
- package/dist/core/{GaborNoise-DKEIvvRJ.js → GaborNoise-pBwEWsvq.js} +2 -2
- package/dist/core/{Glass-CzcOVD5Y.js → Glass--gVUc74k.js} +1 -1
- package/dist/core/{GlassTiles-gjhc563g.js → GlassTiles-C7iGBDOu.js} +1 -1
- package/dist/core/{Glitch-C_XAWltC.js → Glitch-DdIqzf1U.js} +1 -1
- package/dist/core/{Glow-CrYCanBI.js → Glow-Be0YEdsy.js} +1 -1
- package/dist/core/{Godrays-BBTMOVLP.js → Godrays-BkR81S_6.js} +1 -1
- package/dist/core/{Goo-Brhjk8aS.js → Goo-BuQBpLC1.js} +1 -1
- package/dist/core/{GradientMap-C5325QWw.js → GradientMap-BhzXbIUo.js} +1 -1
- package/dist/core/{Grayscale-dPjs-wvf.js → Grayscale-CgPfjxpC.js} +1 -1
- package/dist/core/{Grid-UjEd3O76.js → Grid-Bf4drnEK.js} +1 -1
- package/dist/core/{GridDistortion-vVgYya1U.js → GridDistortion-OKWF9BkP.js} +1 -1
- package/dist/core/{Group-KVdmAi5g.js → Group-CmvLWhtc.js} +1 -1
- package/dist/core/{HTMLInCanvas-CKr2u76R.js → HTMLInCanvas-t9ohcHFo.js} +1 -1
- package/dist/core/{Halftone-pRV3TRUW.js → Halftone-CL2X2QB3.js} +1 -1
- package/dist/core/{Heart-CX7MvvHZ.js → Heart-B0VJdilk.js} +1 -1
- package/dist/core/{Heatmap-Dn6qyd2e.js → Heatmap-CmoQKw_9.js} +1 -1
- package/dist/core/{HexGrid-BIfYhkfV.js → HexGrid-qzOUXxGp.js} +1 -1
- package/dist/core/{Hologram-ou27baPQ.js → Hologram-DoxZwBsb.js} +1 -1
- package/dist/core/{Holographic-CiHdBSMg.js → Holographic-DOx95C7o.js} +1 -1
- package/dist/core/{HueShift-CG7pcXfg.js → HueShift-DJsP1low.js} +1 -1
- package/dist/core/{ImageTexture-BiZuU58C.js → ImageTexture-GyknRQS4.js} +1 -1
- package/dist/core/{InkFlow-D9_L7opB.js → InkFlow-zlXRbwHy.js} +1 -1
- package/dist/core/{Invert-CHEaiQZO.js → Invert-3ZoLoQJH.js} +1 -1
- package/dist/core/{IrisWipe-x22vOQHm.js → IrisWipe-BuX7mBHl.js} +1 -1
- package/dist/core/{Irradiance-7yq2K87_.js → Irradiance-DAx-vIdy.js} +1 -1
- package/dist/core/{IsometricCubes-CkPGWr7M.js → IsometricCubes-7sbQ2VJA.js} +1 -1
- package/dist/core/{Kaleidoscope-CEC5m1Ww.js → Kaleidoscope-CsLdv8Az.js} +1 -1
- package/dist/core/{KeyFrames-BMGEZsAZ.js → KeyFrames-BzO618Dz.js} +1 -1
- package/dist/core/{LensDistortion-DKo8PiO5.js → LensDistortion-BLR3_sbS.js} +1 -1
- package/dist/core/{LensFlare-DMS-NUtK.js → LensFlare-DTM_QH_n.js} +1 -1
- package/dist/core/{LightEdge-DxmnCRls.js → LightEdge-D9XK4MVu.js} +1 -1
- package/dist/core/{LightLeak-yoEsZtYg.js → LightLeak-Cle2_fM9.js} +1 -1
- package/dist/core/{Line-D17XDUjO.js → Line-DHya7Oc3.js} +1 -1
- package/dist/core/{LinearBlur-CiyjPTUH.js → LinearBlur-DgJP8TuW.js} +1 -1
- package/dist/core/{LinearGradient-DfjKG70q.js → LinearGradient-DQmjBptA.js} +1 -1
- package/dist/core/{LinearWipe-D9CtBg6S.js → LinearWipe-CQlYqf9e.js} +1 -1
- package/dist/core/{LiquidMetal-8EG6DwV6.js → LiquidMetal-BYDcC5TU.js} +1 -1
- package/dist/core/{Liquify-BySXF1OB.js → Liquify-zEXo6xUV.js} +1 -1
- package/dist/core/{MagneticFilings-DNESH3Zs.js → MagneticFilings-D7kyi6PI.js} +1 -1
- package/dist/core/{Marble-C9WvdxrP.js → Marble-DMBDSQC1.js} +1 -1
- package/dist/core/{MeshGradient-d9--RXOU.js → MeshGradient-ByUJxHX0.js} +1 -1
- package/dist/core/{Mirror-1V2FF2kD.js → Mirror-Bjfbugbi.js} +1 -1
- package/dist/core/{MultiPointGradient-cRA9ytgL.js → MultiPointGradient-BJMQ5JbT.js} +1 -1
- package/dist/core/{Nebula-BRV-q74y.js → Nebula-c7wMpb9v.js} +1 -1
- package/dist/core/{Neon-4PemK9Rj.js → Neon-xm7nkRIp.js} +1 -1
- package/dist/core/{NoiseDissolve-B7LgD46G.js → NoiseDissolve-DTSS-5J7.js} +1 -1
- package/dist/core/{ObjectTracker-CdzDxhpy.js → ObjectTracker-CeiMs5_g.js} +1 -1
- package/dist/core/{Obsidian-2J1eX9kT.js → Obsidian-CEzCs0lZ.js} +1 -1
- package/dist/core/{PagePeel-D-ziraOm.js → PagePeel-D8-jVFVt.js} +1 -1
- package/dist/core/{Paper-BxzCLyzB.js → Paper-o3JcSJga.js} +1 -1
- package/dist/core/{Parallelogram-D4OflTwn.js → Parallelogram-DZdZTiv_.js} +1 -1
- package/dist/core/{ParticleField-tWNicEDO.js → ParticleField-mb50mtLl.js} +1 -1
- package/dist/core/{ParticleFlow-BiEYFyWR.js → ParticleFlow-NxmRBFxq.js} +1 -1
- package/dist/core/{Particles-B7W4yWgo.js → Particles-ynCeKlnk.js} +1 -1
- package/dist/core/{PerlinNoise-C-irUxp9.js → PerlinNoise-B43AbgNy.js} +2 -2
- package/dist/core/{Perspective-DlnAW-pe.js → Perspective-Bdr4mrFK.js} +1 -1
- package/dist/core/{PixelSort-BBOTYuOE.js → PixelSort-y1sMZn8T.js} +1 -1
- package/dist/core/{PixelThrow-DCJb9Lxd.js → PixelThrow-MoKF4eJQ.js} +1 -1
- package/dist/core/{Pixelate-CZdwB--K.js → Pixelate-Dt3Dvyye.js} +1 -1
- package/dist/core/{Plasma-CTOQJeqy.js → Plasma-BHPsAkrx.js} +1 -1
- package/dist/core/{Plastic-DvyH9x-4.js → Plastic-8Al38_Uo.js} +1 -1
- package/dist/core/{PolarCoordinates-XhdDAOD0.js → PolarCoordinates-BuiRt8Ae.js} +1 -1
- package/dist/core/{Polygon-CLohB-Ly.js → Polygon-CElChfL_.js} +1 -1
- package/dist/core/{Posterize-BAQfnvmK.js → Posterize-CkX1ySem.js} +1 -1
- package/dist/core/{Prism-DJVCVAXX.js → Prism-B_8r_ACa.js} +1 -1
- package/dist/core/{ProgressiveBlur-Dirva1on.js → ProgressiveBlur-BY9XCK4l.js} +1 -1
- package/dist/core/{RadialGradient-DuSKR8Ds.js → RadialGradient-D4ELylxQ.js} +1 -1
- package/dist/core/{RadialWipe-n8tON7x2.js → RadialWipe-DNvkJb42.js} +1 -1
- package/dist/core/{RandomBars-BYouiIgQ.js → RandomBars-5D9oIVCD.js} +1 -1
- package/dist/core/{ReactionDiffusion-CHDd3y2q.js → ReactionDiffusion-BGmksqeC.js} +1 -1
- package/dist/core/{RectangularCoordinates-CYFfCawa.js → RectangularCoordinates-0l5t-2No.js} +1 -1
- package/dist/core/{ReflectivePlane-DFTl5U9q.js → ReflectivePlane-BqefdbHK.js} +1 -1
- package/dist/core/{Repeater-CnbzXuAe.js → Repeater-CJj0PHTv.js} +1 -1
- package/dist/core/{Ring-CGkHVSVd.js → Ring-Czf6zylA.js} +1 -1
- package/dist/core/{RippleWipe-DLjPzY6u.js → RippleWipe-gk_KAy9N.js} +1 -1
- package/dist/core/{Ripples-C2tITU62.js → Ripples-DSmJplDh.js} +1 -1
- package/dist/core/{RoundedRect-sfNTUaCY.js → RoundedRect-DCFq3bhP.js} +1 -1
- package/dist/core/Satin-BEbTbcTD.js +372 -0
- package/dist/core/{Saturation-BRkifYWj.js → Saturation-D0hjM6vJ.js} +1 -1
- package/dist/core/{Scratches-D87O5C2K.js → Scratches-CBbSvaL9.js} +2 -2
- package/dist/core/{Sharpness-BGv613Zw.js → Sharpness-CxNkUCd4.js} +1 -1
- package/dist/core/{Shatter-DuyCFU1f.js → Shatter-OGsXkOO8.js} +1 -1
- package/dist/core/{SimplexNoise-CQJvmqd-.js → SimplexNoise-EZ9qyUZl.js} +2 -2
- package/dist/core/{SineWave-BfOgSGMP.js → SineWave-jv-D2nek.js} +1 -1
- package/dist/core/{SliceWipe-CD_D99sl.js → SliceWipe-CyQ8KwJe.js} +1 -1
- package/dist/core/{Smoke-BDQYKRP1.js → Smoke-D5t3guA6.js} +1 -1
- package/dist/core/{SmokeFill-CPnzQtQv.js → SmokeFill-DDqH7q9k.js} +1 -1
- package/dist/core/{SmokeFlow-BkPMjZq8.js → SmokeFlow-dqFWC3nR.js} +1 -1
- package/dist/core/{Solarize-DSiS32QS.js → Solarize-DQKm8tad.js} +1 -1
- package/dist/core/{SolidColor-DEKpgy1c.js → SolidColor-AuMQ8wsV.js} +1 -1
- package/dist/core/{Sparkle-BZur6gPW.js → Sparkle-DB3i_Vm0.js} +1 -1
- package/dist/core/{Spherize-D9Yg4n6O.js → Spherize-BvO_quYf.js} +1 -1
- package/dist/core/{Spiral-BCacfEpT.js → Spiral-A7K8dyqa.js} +1 -1
- package/dist/core/{Star-Dnw1ihk7.js → Star-Bhjof1Aq.js} +1 -1
- package/dist/core/{Stone-Cje-_vAg.js → Stone-BqVeG7vJ.js} +1 -1
- package/dist/core/{Strands-CFRxS1G_.js → Strands-B_yNFviv.js} +1 -1
- package/dist/core/{Stretch-DXVhfIqO.js → Stretch-CoJ0ZxXU.js} +1 -1
- package/dist/core/{Stripes-CCADWwyq.js → Stripes-DnVSZwzX.js} +1 -1
- package/dist/core/{StudioBackground-BlzYNAsu.js → StudioBackground-WLPZVlBE.js} +1 -1
- package/dist/core/{SunBurst-CmWbI18r.js → SunBurst-V0H9L8IC.js} +1 -1
- package/dist/core/{Surface3D-Dmh98-0V.js → Surface3D-CYrJo3xx.js} +1 -1
- package/dist/core/{Swirl-CzI1qSVc.js → Swirl-C5du-FPv.js} +1 -1
- package/dist/core/{Teardrop-D24uulL0.js → Teardrop-BmMSpSnv.js} +1 -1
- package/dist/core/{Text-CrZKvBw6.js → Text-BI5tmkPX.js} +1 -1
- package/dist/core/{ThinFilm-D7R2dt1O.js → ThinFilm-Ce-bUUyq.js} +1 -1
- package/dist/core/{TiltShift-AMMDZBvf.js → TiltShift-DnjqzNPb.js} +1 -1
- package/dist/core/{TimeTrail-BCYDP2ep.js → TimeTrail-CZBKfdhv.js} +1 -1
- package/dist/core/{Tint-DHb5wBN5.js → Tint-CiaVTPnf.js} +1 -1
- package/dist/core/{Trapezoid-CL5Fxvq7.js → Trapezoid-C5uh_TK4.js} +1 -1
- package/dist/core/{TriangularGrid-Bp-SJS-H.js → TriangularGrid-B1E1yy5Y.js} +1 -1
- package/dist/core/{Tritone-C0nx7OdC.js → Tritone-VDEMnDwQ.js} +1 -1
- package/dist/core/{Truchet-DCetyDaq.js → Truchet-Bl6ASWtj.js} +1 -1
- package/dist/core/{Twirl-D_mv9KEi.js → Twirl-BzLRq2-1.js} +1 -1
- package/dist/core/{VHS-Cp9aDjti.js → VHS-BjOXkojN.js} +1 -1
- package/dist/core/{VenetianBlinds-DUyvaT5w.js → VenetianBlinds-D6S_TOHF.js} +1 -1
- package/dist/core/{Vesica-BpzrTPTA.js → Vesica-Br6UVZt3.js} +1 -1
- package/dist/core/{Vibrance-DW3J-pvW.js → Vibrance-D5x8kNPO.js} +1 -1
- package/dist/core/{VideoTexture-zoKsSrex.js → VideoTexture-CJIi00YZ.js} +1 -1
- package/dist/core/{Vignette-KKbP3qdZ.js → Vignette-BgPDqyZY.js} +1 -1
- package/dist/core/{Voronoi-Bp2-U6lm.js → Voronoi-C_0qmF5M.js} +1 -1
- package/dist/core/{Voxels-B3e3LHH5.js → Voxels-Cr2nX-J2.js} +1 -1
- package/dist/core/{Water-CoYwvqKx.js → Water-C1hpWaDG.js} +1 -1
- package/dist/core/{Watercolor-DUNjSIN1.js → Watercolor-DcHvJiR0.js} +1 -1
- package/dist/core/{WaveDistortion-Dp8ws0z1.js → WaveDistortion-Dh79dGBr.js} +1 -1
- package/dist/core/{Waveform-DDBLB6zu.js → Waveform-WaNoseGL.js} +1 -1
- package/dist/core/{WaveletNoise-CpBkzfRT.js → WaveletNoise-B7BbHyRe.js} +2 -2
- package/dist/core/{Weave-cWkvSEAy.js → Weave-ltmDeQ91.js} +1 -1
- package/dist/core/{WebcamTexture-D484SXSE.js → WebcamTexture-CxehSVcP.js} +1 -1
- package/dist/core/{Wool-C9L7O9fD.js → Wool-BGpl5MnC.js} +1 -1
- package/dist/core/{WorleyNoise-B5j5lDQZ.js → WorleyNoise-COzM7yGf.js} +1 -1
- package/dist/core/{ZoomBlur-bPC1dBu2.js → ZoomBlur-jsmAeX03.js} +1 -1
- package/dist/core/docs-manifest.json +373 -75
- package/dist/core/gpu/frame.d.ts +14 -7
- package/dist/core/gpu/frame.d.ts.map +1 -1
- package/dist/core/gpu/index.d.ts +9 -0
- package/dist/core/gpu/index.d.ts.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +255 -214
- package/dist/core/llms.txt +21 -3
- package/dist/core/{noiseColor-D_bPhJ4m.js → noiseColor-oUufQir9.js} +1 -1
- package/dist/core/presetRenderer.d.ts +17 -3
- package/dist/core/presetRenderer.d.ts.map +1 -1
- package/dist/core/registry.js +203 -202
- package/dist/core/shaderRegistry-jxUBiD5N.js +447 -0
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/AngularBlur/index.js +2 -2
- package/dist/core/shaders/Arc/index.js +2 -2
- package/dist/core/shaders/Ascii/index.js +2 -2
- package/dist/core/shaders/Aurora/index.js +2 -2
- package/dist/core/shaders/BarShift/index.js +2 -2
- package/dist/core/shaders/BarnDoors/index.js +2 -2
- package/dist/core/shaders/Beam/index.js +2 -2
- package/dist/core/shaders/Bend/index.js +2 -2
- package/dist/core/shaders/Blob/index.js +2 -2
- package/dist/core/shaders/BlockDissolve/index.js +2 -2
- package/dist/core/shaders/BlockNoise/index.js +3 -3
- package/dist/core/shaders/BlueNoise/index.js +3 -3
- package/dist/core/shaders/Blur/index.js +2 -2
- package/dist/core/shaders/Boids/index.js +2 -2
- package/dist/core/shaders/BokehBlur/index.js +2 -2
- package/dist/core/shaders/BrickPattern/index.js +2 -2
- package/dist/core/shaders/BrightnessContrast/index.js +2 -2
- package/dist/core/shaders/BrushedMetal/index.js +2 -2
- package/dist/core/shaders/Bulge/index.js +2 -2
- package/dist/core/shaders/CRTScreen/index.js +2 -2
- package/dist/core/shaders/CarbonFiber/index.js +2 -2
- package/dist/core/shaders/Chalkboard/index.js +2 -2
- package/dist/core/shaders/ChannelBlur/index.js +2 -2
- package/dist/core/shaders/CheckerWipe/index.js +2 -2
- package/dist/core/shaders/Checkerboard/index.js +2 -2
- package/dist/core/shaders/Chevron/index.js +2 -2
- package/dist/core/shaders/ChromaFlow/index.js +2 -2
- package/dist/core/shaders/ChromaticAberration/index.js +2 -2
- package/dist/core/shaders/Chrome/index.js +2 -2
- package/dist/core/shaders/Circle/index.js +2 -2
- package/dist/core/shaders/ColorWheel/index.js +2 -2
- package/dist/core/shaders/CompressionArtifacts/index.js +2 -2
- package/dist/core/shaders/ConcentricSpin/index.js +2 -2
- package/dist/core/shaders/ConicGradient/index.js +2 -2
- package/dist/core/shaders/ContourLines/index.js +2 -2
- package/dist/core/shaders/CornerPin/index.js +2 -2
- package/dist/core/shaders/Crescent/index.js +2 -2
- package/dist/core/shaders/Cross/index.js +2 -2
- package/dist/core/shaders/Crystal/index.js +2 -2
- package/dist/core/shaders/CurlNoise/index.js +3 -3
- package/dist/core/shaders/CursorRipples/index.js +2 -2
- package/dist/core/shaders/CursorTrail/index.js +2 -2
- package/dist/core/shaders/DataMosh/index.js +2 -2
- package/dist/core/shaders/DiamondGradient/index.js +2 -2
- package/dist/core/shaders/DiamondWipe/index.js +2 -2
- package/dist/core/shaders/DiffuseBlur/index.js +2 -2
- package/dist/core/shaders/DisplacementMap/index.js +2 -2
- package/dist/core/shaders/Dither/index.js +2 -2
- package/dist/core/shaders/DotGrid/index.js +2 -2
- package/dist/core/shaders/DropShadow/index.js +2 -2
- package/dist/core/shaders/Duotone/index.js +2 -2
- package/dist/core/shaders/Ellipse/index.js +2 -2
- package/dist/core/shaders/Emboss/index.js +2 -2
- package/dist/core/shaders/Engraving/index.js +2 -2
- package/dist/core/shaders/ErosionNoise/index.js +3 -3
- package/dist/core/shaders/Exposure/index.js +2 -2
- package/dist/core/shaders/FallingLines/index.js +2 -2
- package/dist/core/shaders/FilmGrain/index.js +2 -2
- package/dist/core/shaders/FilmStock/index.js +2 -2
- package/dist/core/shaders/Flip/index.js +2 -2
- package/dist/core/shaders/FloatingParticles/index.js +2 -2
- package/dist/core/shaders/FlowField/index.js +2 -2
- package/dist/core/shaders/Flower/index.js +2 -2
- package/dist/core/shaders/FlowingGradient/index.js +2 -2
- package/dist/core/shaders/FlutedGlass/index.js +2 -2
- package/dist/core/shaders/Fog/index.js +2 -2
- package/dist/core/shaders/Form3D/index.js +2 -2
- package/dist/core/shaders/FractalNoise/index.js +2 -2
- package/dist/core/shaders/Frost/index.js +2 -2
- package/dist/core/shaders/GaborNoise/index.js +3 -3
- package/dist/core/shaders/Glass/index.js +2 -2
- package/dist/core/shaders/GlassTiles/index.js +2 -2
- package/dist/core/shaders/Glitch/index.js +2 -2
- package/dist/core/shaders/Glow/index.js +2 -2
- package/dist/core/shaders/Godrays/index.js +2 -2
- package/dist/core/shaders/Goo/index.js +2 -2
- package/dist/core/shaders/GradientMap/index.js +2 -2
- package/dist/core/shaders/Grayscale/index.js +2 -2
- package/dist/core/shaders/Grid/index.js +2 -2
- package/dist/core/shaders/GridDistortion/index.js +2 -2
- package/dist/core/shaders/Group/index.js +2 -2
- package/dist/core/shaders/HTMLInCanvas/index.js +2 -2
- package/dist/core/shaders/Halftone/index.js +2 -2
- package/dist/core/shaders/Heart/index.js +2 -2
- package/dist/core/shaders/Heatmap/index.js +2 -2
- package/dist/core/shaders/HexGrid/index.js +2 -2
- package/dist/core/shaders/Hologram/index.js +2 -2
- package/dist/core/shaders/Holographic/index.js +2 -2
- package/dist/core/shaders/HueShift/index.js +2 -2
- package/dist/core/shaders/ImageTexture/index.js +2 -2
- package/dist/core/shaders/InkFlow/index.js +2 -2
- package/dist/core/shaders/Invert/index.js +2 -2
- package/dist/core/shaders/IrisWipe/index.js +2 -2
- package/dist/core/shaders/Irradiance/index.js +2 -2
- package/dist/core/shaders/IsometricCubes/index.js +2 -2
- package/dist/core/shaders/Kaleidoscope/index.js +2 -2
- package/dist/core/shaders/KeyFrames/index.js +2 -2
- package/dist/core/shaders/LensDistortion/index.js +2 -2
- package/dist/core/shaders/LensFlare/index.js +2 -2
- package/dist/core/shaders/LightEdge/index.js +2 -2
- package/dist/core/shaders/LightLeak/index.js +2 -2
- package/dist/core/shaders/Line/index.js +2 -2
- package/dist/core/shaders/LinearBlur/index.js +2 -2
- package/dist/core/shaders/LinearGradient/index.js +2 -2
- package/dist/core/shaders/LinearWipe/index.js +2 -2
- package/dist/core/shaders/LiquidMetal/index.js +2 -2
- package/dist/core/shaders/Liquify/index.js +2 -2
- package/dist/core/shaders/MagneticFilings/index.js +2 -2
- package/dist/core/shaders/Marble/index.js +2 -2
- package/dist/core/shaders/MeshGradient/index.js +2 -2
- package/dist/core/shaders/Mirror/index.js +2 -2
- package/dist/core/shaders/MultiPointGradient/index.js +2 -2
- package/dist/core/shaders/Nebula/index.js +2 -2
- package/dist/core/shaders/Neon/index.js +2 -2
- package/dist/core/shaders/NoiseDissolve/index.js +2 -2
- package/dist/core/shaders/ObjectTracker/index.js +2 -2
- package/dist/core/shaders/Obsidian/index.js +2 -2
- package/dist/core/shaders/PagePeel/index.js +2 -2
- package/dist/core/shaders/Paper/index.js +2 -2
- package/dist/core/shaders/Parallelogram/index.js +2 -2
- package/dist/core/shaders/ParticleField/index.js +2 -2
- package/dist/core/shaders/ParticleFlow/index.js +2 -2
- package/dist/core/shaders/Particles/index.js +2 -2
- package/dist/core/shaders/PerlinNoise/index.js +3 -3
- package/dist/core/shaders/Perspective/index.js +2 -2
- package/dist/core/shaders/PixelSort/index.js +2 -2
- package/dist/core/shaders/PixelThrow/index.js +2 -2
- package/dist/core/shaders/Pixelate/index.js +2 -2
- package/dist/core/shaders/Plasma/index.js +2 -2
- package/dist/core/shaders/Plastic/index.js +2 -2
- package/dist/core/shaders/PolarCoordinates/index.js +2 -2
- package/dist/core/shaders/Polygon/index.js +2 -2
- package/dist/core/shaders/Posterize/index.js +2 -2
- package/dist/core/shaders/Prism/index.js +2 -2
- package/dist/core/shaders/ProgressiveBlur/index.js +2 -2
- package/dist/core/shaders/RadialGradient/index.js +2 -2
- package/dist/core/shaders/RadialWipe/index.js +2 -2
- package/dist/core/shaders/RandomBars/index.js +2 -2
- package/dist/core/shaders/ReactionDiffusion/index.js +2 -2
- package/dist/core/shaders/RectangularCoordinates/index.js +2 -2
- package/dist/core/shaders/ReflectivePlane/index.js +2 -2
- package/dist/core/shaders/Repeater/index.js +2 -2
- package/dist/core/shaders/Ring/index.js +2 -2
- package/dist/core/shaders/RippleWipe/index.js +2 -2
- package/dist/core/shaders/Ripples/index.js +2 -2
- package/dist/core/shaders/RoundedRect/index.js +2 -2
- package/dist/core/shaders/Satin/index.d.ts +120 -0
- package/dist/core/shaders/Satin/index.d.ts.map +1 -0
- package/dist/core/shaders/Satin/index.js +5 -0
- package/dist/core/shaders/Saturation/index.js +2 -2
- package/dist/core/shaders/Scratches/index.js +3 -3
- package/dist/core/shaders/Sharpness/index.js +2 -2
- package/dist/core/shaders/Shatter/index.js +2 -2
- package/dist/core/shaders/SimplexNoise/index.js +3 -3
- package/dist/core/shaders/SineWave/index.js +2 -2
- package/dist/core/shaders/SliceWipe/index.js +2 -2
- package/dist/core/shaders/Smoke/index.js +2 -2
- package/dist/core/shaders/SmokeFill/index.js +2 -2
- package/dist/core/shaders/SmokeFlow/index.js +2 -2
- package/dist/core/shaders/Solarize/index.js +2 -2
- package/dist/core/shaders/SolidColor/index.js +2 -2
- package/dist/core/shaders/Sparkle/index.js +2 -2
- package/dist/core/shaders/Spherize/index.js +2 -2
- package/dist/core/shaders/Spiral/index.js +2 -2
- package/dist/core/shaders/Star/index.js +2 -2
- package/dist/core/shaders/Stone/index.js +2 -2
- package/dist/core/shaders/Strands/index.js +2 -2
- package/dist/core/shaders/Stretch/index.js +2 -2
- package/dist/core/shaders/Stripes/index.js +2 -2
- package/dist/core/shaders/StudioBackground/index.js +2 -2
- package/dist/core/shaders/SunBurst/index.js +2 -2
- package/dist/core/shaders/Surface3D/index.js +2 -2
- package/dist/core/shaders/Swirl/index.js +2 -2
- package/dist/core/shaders/Teardrop/index.js +2 -2
- package/dist/core/shaders/Text/index.js +2 -2
- package/dist/core/shaders/ThinFilm/index.js +2 -2
- package/dist/core/shaders/TiltShift/index.js +2 -2
- package/dist/core/shaders/TimeTrail/index.js +2 -2
- package/dist/core/shaders/Tint/index.js +2 -2
- package/dist/core/shaders/Trapezoid/index.js +2 -2
- package/dist/core/shaders/TriangularGrid/index.js +2 -2
- package/dist/core/shaders/Tritone/index.js +2 -2
- package/dist/core/shaders/Truchet/index.js +2 -2
- package/dist/core/shaders/Twirl/index.js +2 -2
- package/dist/core/shaders/VHS/index.js +2 -2
- package/dist/core/shaders/VenetianBlinds/index.js +2 -2
- package/dist/core/shaders/Vesica/index.js +2 -2
- package/dist/core/shaders/Vibrance/index.js +2 -2
- package/dist/core/shaders/VideoTexture/index.js +2 -2
- package/dist/core/shaders/Vignette/index.js +2 -2
- package/dist/core/shaders/Voronoi/index.js +2 -2
- package/dist/core/shaders/Voxels/index.js +2 -2
- package/dist/core/shaders/Water/index.js +2 -2
- package/dist/core/shaders/Watercolor/index.js +2 -2
- package/dist/core/shaders/WaveDistortion/index.js +2 -2
- package/dist/core/shaders/Waveform/index.js +2 -2
- package/dist/core/shaders/WaveletNoise/index.js +3 -3
- package/dist/core/shaders/Weave/index.js +2 -2
- package/dist/core/shaders/WebcamTexture/index.js +2 -2
- package/dist/core/shaders/Wool/index.js +2 -2
- package/dist/core/shaders/WorleyNoise/index.js +2 -2
- package/dist/core/shaders/ZoomBlur/index.js +2 -2
- package/dist/core/std/index.js +1 -1
- package/dist/core/std/paint/materials.d.ts +48 -2
- package/dist/core/std/paint/materials.d.ts.map +1 -1
- package/dist/core/std/paint/noise.d.ts +120 -0
- package/dist/core/std/paint/noise.d.ts.map +1 -1
- package/dist/core/{std-ClftfWpF.js → std-ebybEx3c.js} +114 -19
- package/dist/js/bundle.js +101 -101
- package/dist/js/createShader.js +1 -1
- package/dist/js/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/js/utils/generatePresetCode.js +23 -0
- package/dist/react/Preview.js +1 -0
- package/dist/react/Satin.js +226 -0
- package/dist/react/Shader.js +1 -1
- package/dist/react/bundle.js +168 -168
- package/dist/react/components/Satin.d.ts +49 -0
- package/dist/react/components/Satin.d.ts.map +1 -0
- package/dist/react/engine/Preview.d.ts.map +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +2 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +23 -0
- package/dist/registry.js +528 -0
- package/dist/solid/components/Satin.d.ts +46 -0
- package/dist/solid/components/Satin.d.ts.map +1 -0
- package/dist/solid/components/Satin.js +232 -0
- package/dist/solid/engine/Preview.d.ts.map +1 -1
- package/dist/solid/engine/Preview.js +295 -293
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +114 -112
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +23 -0
- package/dist/svelte/components/Satin.svelte.d.ts +36 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +2500 -2293
- package/dist/svelte/source/components/Satin.svelte +360 -0
- package/dist/svelte/source/engine/Preview.svelte +2 -0
- package/dist/svelte/source/index.js +1 -0
- package/dist/svelte/utils/generatePresetCode.js +23 -0
- package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/vue/Satin.js +3 -0
- package/dist/vue/Satin.vue_vue_type_script_setup_true_lang.js +243 -0
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/vue/components/Satin.vue.d.ts +71 -0
- package/dist/vue/components/Satin.vue.d.ts.map +1 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +2 -1
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +23 -0
- package/package.json +9 -1
- package/dist/core/shaderRegistry-BaozBFyh.js +0 -445
package/dist/core/index.js
CHANGED
|
@@ -1,207 +1,208 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $l as setColorSpaceModeGpu, $u as applySpring, Cf as FieldHandle, Dd as registerNaturalSize, Df as vertexFn, Ed as onNaturalSizeChange, Ef as typegpu_default, Gl as boxHalfExtentsUV, Gu as SHAPE3D_TYPES, Hc as rootPassthrough, Jd as collectStructuralHashInputs, Jl as isDimensionalProp, Ju as is3dShapeType, Kl as buildDimensionalPlan, Ku as SVG3D_DEFAULTS, Ld as createComputeDispatcher, Md as packConvertedStops, Nd as packStops, Ol as createGpuUniformsMap, Ql as colorToRGBA, Qu as applyEasing, Sf as ArrayFieldHandle, Td as getNaturalSize, Tf as updateFieldValue, Ud as SHARED_SAMPLER_LAYOUT, Wl as bindingSizePx, Wu as SHAPE3D_DEFAULTS, Xf as builtin, Xl as resolveDimensionalProp, Xu as isVolumetricShapeType, Yd as composeNodeTree, Yl as isDimensionalValue, Yu as isSvg3dShapeType, Zl as setShaderCanvasDimensions, Zu as shape3dBoundingRadius, a as unregisterShader, ad as runFrameSequence, af as screenUVToBoxLocal$1, cu as parseListDriverPath, ed as awaitGpuIdle, ef as DEFAULT_BOUNDING_BOX, eu as isPositionDriver, fu as colorStopsTransform, i as registerShader, id as frameGate, if as needsTransformation, ip as f32, iu as listHasDrivers, lu as resolveListItems, mu as sortStops, n as getRegisteredShaders, nd as createFrameLoop, nf as resolveBoundingBox, np as mul, nu as listDriverPath, od as getSdfContentBounds, op as warn, ou as listPropTransform, pu as resolveStops, qf as vec2f$1, ql as buildExtraSizeProps, qu as SVG3D_TYPES, r as onShaderRegistered, rd as deriveElapsedTime, rf as boundingBoxToUVParams, rp as vec2f, ru as listFieldName, sd as isSdfContentBoundsScanned, su as packList, t as getRegisteredShader, td as clampToTextureCap, tf as isIdentityBoundingBox, tp as struct, tu as listCountName, uu as MAX_COLOR_STOPS, vd as maxPixelRatioForDevice, wf as createUniformStore } from "./std-ebybEx3c.js";
|
|
2
2
|
import { a as getGpuUnusableReason, c as isGpuUnavailableError, f as markGpuUnusable, i as debugWarn, l as isShadersDebug, n as authorError, o as getWebGPUSupport, p as setShadersDebug, r as debugError, s as hasCustomWgsl, t as GpuUnavailableError, u as isWebGPUSupported } from "./support-D3W86vgR.js";
|
|
3
|
-
import "./Neon-
|
|
4
|
-
import "./Emboss-
|
|
5
|
-
import "./Form3D-
|
|
6
|
-
import "./ThinFilm-
|
|
3
|
+
import "./Neon-xm7nkRIp.js";
|
|
4
|
+
import "./Emboss-B0ZaXWSG.js";
|
|
5
|
+
import "./Form3D-CFaxdFCN.js";
|
|
6
|
+
import "./ThinFilm-Ce-bUUyq.js";
|
|
7
7
|
import { o as transformColorSpace } from "./transformations-P50Uo_Ju.js";
|
|
8
|
-
import "./AngularBlur-
|
|
9
|
-
import "./Arc-
|
|
10
|
-
import "./Ascii-
|
|
11
|
-
import "./Aurora-
|
|
12
|
-
import "./BarnDoors-
|
|
13
|
-
import "./BarShift-
|
|
14
|
-
import "./Beam-
|
|
15
|
-
import "./Bend-
|
|
16
|
-
import "./Blob-
|
|
17
|
-
import "./BlockDissolve-
|
|
18
|
-
import "./noiseColor-
|
|
19
|
-
import "./BlockNoise-
|
|
20
|
-
import "./BlueNoise-
|
|
21
|
-
import "./Blur-
|
|
22
|
-
import "./Boids-
|
|
23
|
-
import "./BokehBlur-
|
|
24
|
-
import "./BrickPattern-
|
|
25
|
-
import "./BrightnessContrast-
|
|
26
|
-
import "./BrushedMetal-
|
|
27
|
-
import "./Bulge-
|
|
28
|
-
import "./CarbonFiber-
|
|
29
|
-
import "./Chalkboard-
|
|
30
|
-
import "./ChannelBlur-
|
|
31
|
-
import "./Checkerboard-
|
|
32
|
-
import "./CheckerWipe-
|
|
33
|
-
import "./Chevron-
|
|
34
|
-
import "./ChromaFlow-
|
|
35
|
-
import "./ChromaticAberration-
|
|
36
|
-
import "./Chrome-
|
|
37
|
-
import "./Circle-
|
|
38
|
-
import "./ColorWheel-
|
|
39
|
-
import "./CompressionArtifacts-
|
|
40
|
-
import "./ConcentricSpin-
|
|
41
|
-
import "./ConicGradient-
|
|
42
|
-
import "./ContourLines-
|
|
43
|
-
import "./CornerPin-
|
|
44
|
-
import "./Crescent-
|
|
45
|
-
import "./Cross
|
|
46
|
-
import "./CRTScreen-
|
|
47
|
-
import "./Crystal-
|
|
48
|
-
import "./CurlNoise-
|
|
49
|
-
import "./CursorRipples-
|
|
50
|
-
import "./CursorTrail-
|
|
51
|
-
import "./DataMosh-
|
|
52
|
-
import "./DiamondGradient-
|
|
53
|
-
import "./DiamondWipe-
|
|
54
|
-
import "./DiffuseBlur-
|
|
55
|
-
import "./DisplacementMap-
|
|
56
|
-
import "./Dither-
|
|
57
|
-
import "./DotGrid-
|
|
58
|
-
import "./DropShadow-
|
|
59
|
-
import "./Duotone-
|
|
60
|
-
import "./Ellipse-
|
|
61
|
-
import "./Engraving-
|
|
62
|
-
import "./ErosionNoise-
|
|
63
|
-
import "./Exposure-
|
|
64
|
-
import "./FallingLines-
|
|
65
|
-
import "./FilmGrain-
|
|
66
|
-
import "./FilmStock-
|
|
67
|
-
import "./Flip-
|
|
68
|
-
import "./FloatingParticles-
|
|
69
|
-
import "./Flower-
|
|
70
|
-
import "./FlowField-
|
|
71
|
-
import "./FlowingGradient-
|
|
72
|
-
import "./FlutedGlass-
|
|
73
|
-
import "./Fog-
|
|
74
|
-
import "./FractalNoise-
|
|
75
|
-
import "./Frost-
|
|
76
|
-
import "./GaborNoise-
|
|
77
|
-
import "./Glass
|
|
78
|
-
import "./GlassTiles-
|
|
79
|
-
import "./Glitch-
|
|
80
|
-
import "./Glow-
|
|
81
|
-
import "./Godrays-
|
|
82
|
-
import "./Goo-
|
|
83
|
-
import "./GradientMap-
|
|
84
|
-
import "./Grayscale-
|
|
85
|
-
import "./Grid-
|
|
86
|
-
import "./GridDistortion-
|
|
87
|
-
import "./Group-
|
|
88
|
-
import "./Halftone-
|
|
89
|
-
import "./Heart-
|
|
90
|
-
import "./Heatmap-
|
|
91
|
-
import "./HexGrid-
|
|
92
|
-
import "./Hologram-
|
|
93
|
-
import "./Holographic-
|
|
94
|
-
import "./HTMLInCanvas-
|
|
95
|
-
import "./HueShift-
|
|
96
|
-
import "./ImageTexture-
|
|
97
|
-
import "./InkFlow-
|
|
98
|
-
import "./Invert-
|
|
99
|
-
import "./IrisWipe-
|
|
100
|
-
import "./Irradiance-
|
|
101
|
-
import "./IsometricCubes-
|
|
102
|
-
import "./Kaleidoscope-
|
|
103
|
-
import "./KeyFrames-
|
|
104
|
-
import "./LensDistortion-
|
|
105
|
-
import "./LensFlare-
|
|
106
|
-
import "./LightEdge-
|
|
107
|
-
import "./LightLeak-
|
|
108
|
-
import "./Line-
|
|
109
|
-
import "./LinearBlur-
|
|
110
|
-
import "./LinearGradient-
|
|
111
|
-
import "./LinearWipe-
|
|
112
|
-
import "./LiquidMetal-
|
|
113
|
-
import "./Liquify-
|
|
114
|
-
import "./MagneticFilings-
|
|
115
|
-
import "./Marble-
|
|
116
|
-
import "./MeshGradient-
|
|
117
|
-
import "./Mirror-
|
|
118
|
-
import "./MultiPointGradient-
|
|
119
|
-
import "./Nebula-
|
|
120
|
-
import "./NoiseDissolve-
|
|
121
|
-
import "./ObjectTracker-
|
|
122
|
-
import "./Obsidian-
|
|
123
|
-
import "./PagePeel-
|
|
124
|
-
import "./Paper-
|
|
125
|
-
import "./Parallelogram-
|
|
126
|
-
import "./ParticleField-
|
|
127
|
-
import "./ParticleFlow-
|
|
128
|
-
import "./Particles-
|
|
129
|
-
import "./PerlinNoise-
|
|
130
|
-
import "./Perspective-
|
|
131
|
-
import "./Pixelate-
|
|
132
|
-
import "./PixelSort-
|
|
133
|
-
import "./PixelThrow-
|
|
134
|
-
import "./Plasma-
|
|
135
|
-
import "./Plastic-
|
|
136
|
-
import "./PolarCoordinates-
|
|
137
|
-
import "./Polygon-
|
|
138
|
-
import "./Posterize-
|
|
139
|
-
import "./Prism-
|
|
140
|
-
import "./ProgressiveBlur-
|
|
141
|
-
import "./RadialGradient-
|
|
142
|
-
import "./RadialWipe-
|
|
143
|
-
import "./RandomBars-
|
|
144
|
-
import "./ReactionDiffusion-
|
|
145
|
-
import "./RectangularCoordinates-
|
|
146
|
-
import "./ReflectivePlane-
|
|
147
|
-
import "./Repeater-
|
|
148
|
-
import "./Ring-
|
|
149
|
-
import "./Ripples-
|
|
150
|
-
import "./RippleWipe-
|
|
151
|
-
import "./RoundedRect-
|
|
152
|
-
import "./
|
|
153
|
-
import "./
|
|
154
|
-
import "./
|
|
155
|
-
import "./
|
|
156
|
-
import "./
|
|
157
|
-
import "./
|
|
158
|
-
import "./
|
|
159
|
-
import "./
|
|
160
|
-
import "./
|
|
161
|
-
import "./
|
|
162
|
-
import "./
|
|
163
|
-
import "./
|
|
164
|
-
import "./
|
|
165
|
-
import "./
|
|
166
|
-
import "./
|
|
167
|
-
import "./
|
|
168
|
-
import "./
|
|
169
|
-
import "./
|
|
170
|
-
import "./
|
|
171
|
-
import "./
|
|
172
|
-
import "./
|
|
173
|
-
import "./
|
|
174
|
-
import "./
|
|
175
|
-
import "./
|
|
176
|
-
import "./
|
|
177
|
-
import
|
|
178
|
-
import "./
|
|
179
|
-
import "./
|
|
180
|
-
import "./
|
|
181
|
-
import "./
|
|
182
|
-
import "./
|
|
183
|
-
import "./
|
|
184
|
-
import "./
|
|
185
|
-
import "./
|
|
186
|
-
import "./
|
|
187
|
-
import "./
|
|
188
|
-
import "./
|
|
189
|
-
import "./
|
|
190
|
-
import "./
|
|
191
|
-
import "./
|
|
192
|
-
import "./
|
|
193
|
-
import "./
|
|
194
|
-
import "./
|
|
195
|
-
import "./
|
|
196
|
-
import "./
|
|
197
|
-
import "./
|
|
198
|
-
import "./
|
|
199
|
-
import "./
|
|
200
|
-
import "./
|
|
201
|
-
import "./
|
|
202
|
-
import "./
|
|
203
|
-
import "./
|
|
204
|
-
import
|
|
8
|
+
import "./AngularBlur-CadOY7zB.js";
|
|
9
|
+
import "./Arc-B5grj-p3.js";
|
|
10
|
+
import "./Ascii-Chul_q9B.js";
|
|
11
|
+
import "./Aurora-COjCTZzM.js";
|
|
12
|
+
import "./BarnDoors-B_Tfvd5_.js";
|
|
13
|
+
import "./BarShift-CmMkOiz1.js";
|
|
14
|
+
import "./Beam-DqUZIoO-.js";
|
|
15
|
+
import "./Bend-CzoMkg0C.js";
|
|
16
|
+
import "./Blob-D-FcfCk_.js";
|
|
17
|
+
import "./BlockDissolve-Cfg38mph.js";
|
|
18
|
+
import "./noiseColor-oUufQir9.js";
|
|
19
|
+
import "./BlockNoise-AOm3USwt.js";
|
|
20
|
+
import "./BlueNoise-B1goUO9x.js";
|
|
21
|
+
import "./Blur-orV6Zo0Q.js";
|
|
22
|
+
import "./Boids-CaGoO9l6.js";
|
|
23
|
+
import "./BokehBlur-Bak9qlJC.js";
|
|
24
|
+
import "./BrickPattern-57nSncIU.js";
|
|
25
|
+
import "./BrightnessContrast-CT-FMH50.js";
|
|
26
|
+
import "./BrushedMetal-CsOf111o.js";
|
|
27
|
+
import "./Bulge-BENQmcJz.js";
|
|
28
|
+
import "./CarbonFiber-CP8sfZpO.js";
|
|
29
|
+
import "./Chalkboard-DIKb88fc.js";
|
|
30
|
+
import "./ChannelBlur-hR8wijV7.js";
|
|
31
|
+
import "./Checkerboard-CI7mErmL.js";
|
|
32
|
+
import "./CheckerWipe-BiWuSCaB.js";
|
|
33
|
+
import "./Chevron-B8Vhf4mu.js";
|
|
34
|
+
import "./ChromaFlow-BA40CkCT.js";
|
|
35
|
+
import "./ChromaticAberration-Co8JMSWY.js";
|
|
36
|
+
import "./Chrome-1t9oTBIF.js";
|
|
37
|
+
import "./Circle-BQq87Fzk.js";
|
|
38
|
+
import "./ColorWheel-X5JCwd6p.js";
|
|
39
|
+
import "./CompressionArtifacts-CfZMsMVi.js";
|
|
40
|
+
import "./ConcentricSpin-D8srFQgv.js";
|
|
41
|
+
import "./ConicGradient-zgpOve2I.js";
|
|
42
|
+
import "./ContourLines-CIPNR5U6.js";
|
|
43
|
+
import "./CornerPin-DDatnonj.js";
|
|
44
|
+
import "./Crescent-2VNndYEF.js";
|
|
45
|
+
import "./Cross--RtTa2r5.js";
|
|
46
|
+
import "./CRTScreen-DRg0NNys.js";
|
|
47
|
+
import "./Crystal-RuFWVxDw.js";
|
|
48
|
+
import "./CurlNoise-Dz7E3WIq.js";
|
|
49
|
+
import "./CursorRipples-DWwT4wnN.js";
|
|
50
|
+
import "./CursorTrail-DtEejGeY.js";
|
|
51
|
+
import "./DataMosh-DHklBXQy.js";
|
|
52
|
+
import "./DiamondGradient-j3Af00XM.js";
|
|
53
|
+
import "./DiamondWipe-BwzZIEYX.js";
|
|
54
|
+
import "./DiffuseBlur-CztumKI8.js";
|
|
55
|
+
import "./DisplacementMap-_R0XWmDv.js";
|
|
56
|
+
import "./Dither-BMtSn0ET.js";
|
|
57
|
+
import "./DotGrid-5pz59elN.js";
|
|
58
|
+
import "./DropShadow-Afbu-AM5.js";
|
|
59
|
+
import "./Duotone-CPNAyquB.js";
|
|
60
|
+
import "./Ellipse-CIdAfmRX.js";
|
|
61
|
+
import "./Engraving-C6DmtOdA.js";
|
|
62
|
+
import "./ErosionNoise-3QrqYZy6.js";
|
|
63
|
+
import "./Exposure-CQ6luJ-4.js";
|
|
64
|
+
import "./FallingLines-y-XE0joI.js";
|
|
65
|
+
import "./FilmGrain-Bxz_2Za0.js";
|
|
66
|
+
import "./FilmStock-BsPw-b6W.js";
|
|
67
|
+
import "./Flip-CML4rm2V.js";
|
|
68
|
+
import "./FloatingParticles-CDQaOt3i.js";
|
|
69
|
+
import "./Flower-Bp75dXJa.js";
|
|
70
|
+
import "./FlowField-CEhUrnv4.js";
|
|
71
|
+
import "./FlowingGradient-CGBB_tvE.js";
|
|
72
|
+
import "./FlutedGlass-CkwFDUxi.js";
|
|
73
|
+
import "./Fog-Dhy6FKme.js";
|
|
74
|
+
import "./FractalNoise-DMLBHVU1.js";
|
|
75
|
+
import "./Frost-CvCAXumf.js";
|
|
76
|
+
import "./GaborNoise-pBwEWsvq.js";
|
|
77
|
+
import "./Glass--gVUc74k.js";
|
|
78
|
+
import "./GlassTiles-C7iGBDOu.js";
|
|
79
|
+
import "./Glitch-DdIqzf1U.js";
|
|
80
|
+
import "./Glow-Be0YEdsy.js";
|
|
81
|
+
import "./Godrays-BkR81S_6.js";
|
|
82
|
+
import "./Goo-BuQBpLC1.js";
|
|
83
|
+
import "./GradientMap-BhzXbIUo.js";
|
|
84
|
+
import "./Grayscale-CgPfjxpC.js";
|
|
85
|
+
import "./Grid-Bf4drnEK.js";
|
|
86
|
+
import "./GridDistortion-OKWF9BkP.js";
|
|
87
|
+
import "./Group-CmvLWhtc.js";
|
|
88
|
+
import "./Halftone-CL2X2QB3.js";
|
|
89
|
+
import "./Heart-B0VJdilk.js";
|
|
90
|
+
import "./Heatmap-CmoQKw_9.js";
|
|
91
|
+
import "./HexGrid-qzOUXxGp.js";
|
|
92
|
+
import "./Hologram-DoxZwBsb.js";
|
|
93
|
+
import "./Holographic-DOx95C7o.js";
|
|
94
|
+
import "./HTMLInCanvas-t9ohcHFo.js";
|
|
95
|
+
import "./HueShift-DJsP1low.js";
|
|
96
|
+
import "./ImageTexture-GyknRQS4.js";
|
|
97
|
+
import "./InkFlow-zlXRbwHy.js";
|
|
98
|
+
import "./Invert-3ZoLoQJH.js";
|
|
99
|
+
import "./IrisWipe-BuX7mBHl.js";
|
|
100
|
+
import "./Irradiance-DAx-vIdy.js";
|
|
101
|
+
import "./IsometricCubes-7sbQ2VJA.js";
|
|
102
|
+
import "./Kaleidoscope-CsLdv8Az.js";
|
|
103
|
+
import "./KeyFrames-BzO618Dz.js";
|
|
104
|
+
import "./LensDistortion-BLR3_sbS.js";
|
|
105
|
+
import "./LensFlare-DTM_QH_n.js";
|
|
106
|
+
import "./LightEdge-D9XK4MVu.js";
|
|
107
|
+
import "./LightLeak-Cle2_fM9.js";
|
|
108
|
+
import "./Line-DHya7Oc3.js";
|
|
109
|
+
import "./LinearBlur-DgJP8TuW.js";
|
|
110
|
+
import "./LinearGradient-DQmjBptA.js";
|
|
111
|
+
import "./LinearWipe-CQlYqf9e.js";
|
|
112
|
+
import "./LiquidMetal-BYDcC5TU.js";
|
|
113
|
+
import "./Liquify-zEXo6xUV.js";
|
|
114
|
+
import "./MagneticFilings-D7kyi6PI.js";
|
|
115
|
+
import "./Marble-DMBDSQC1.js";
|
|
116
|
+
import "./MeshGradient-ByUJxHX0.js";
|
|
117
|
+
import "./Mirror-Bjfbugbi.js";
|
|
118
|
+
import "./MultiPointGradient-BJMQ5JbT.js";
|
|
119
|
+
import "./Nebula-c7wMpb9v.js";
|
|
120
|
+
import "./NoiseDissolve-DTSS-5J7.js";
|
|
121
|
+
import "./ObjectTracker-CeiMs5_g.js";
|
|
122
|
+
import "./Obsidian-CEzCs0lZ.js";
|
|
123
|
+
import "./PagePeel-D8-jVFVt.js";
|
|
124
|
+
import "./Paper-o3JcSJga.js";
|
|
125
|
+
import "./Parallelogram-DZdZTiv_.js";
|
|
126
|
+
import "./ParticleField-mb50mtLl.js";
|
|
127
|
+
import "./ParticleFlow-NxmRBFxq.js";
|
|
128
|
+
import "./Particles-ynCeKlnk.js";
|
|
129
|
+
import "./PerlinNoise-B43AbgNy.js";
|
|
130
|
+
import "./Perspective-Bdr4mrFK.js";
|
|
131
|
+
import "./Pixelate-Dt3Dvyye.js";
|
|
132
|
+
import "./PixelSort-y1sMZn8T.js";
|
|
133
|
+
import "./PixelThrow-MoKF4eJQ.js";
|
|
134
|
+
import "./Plasma-BHPsAkrx.js";
|
|
135
|
+
import "./Plastic-8Al38_Uo.js";
|
|
136
|
+
import "./PolarCoordinates-BuiRt8Ae.js";
|
|
137
|
+
import "./Polygon-CElChfL_.js";
|
|
138
|
+
import "./Posterize-CkX1ySem.js";
|
|
139
|
+
import "./Prism-B_8r_ACa.js";
|
|
140
|
+
import "./ProgressiveBlur-BY9XCK4l.js";
|
|
141
|
+
import "./RadialGradient-D4ELylxQ.js";
|
|
142
|
+
import "./RadialWipe-DNvkJb42.js";
|
|
143
|
+
import "./RandomBars-5D9oIVCD.js";
|
|
144
|
+
import "./ReactionDiffusion-BGmksqeC.js";
|
|
145
|
+
import "./RectangularCoordinates-0l5t-2No.js";
|
|
146
|
+
import "./ReflectivePlane-BqefdbHK.js";
|
|
147
|
+
import "./Repeater-CJj0PHTv.js";
|
|
148
|
+
import "./Ring-Czf6zylA.js";
|
|
149
|
+
import "./Ripples-DSmJplDh.js";
|
|
150
|
+
import "./RippleWipe-gk_KAy9N.js";
|
|
151
|
+
import "./RoundedRect-DCFq3bhP.js";
|
|
152
|
+
import "./Satin-BEbTbcTD.js";
|
|
153
|
+
import "./Saturation-D0hjM6vJ.js";
|
|
154
|
+
import "./Scratches-CBbSvaL9.js";
|
|
155
|
+
import "./Sharpness-CxNkUCd4.js";
|
|
156
|
+
import "./Shatter-OGsXkOO8.js";
|
|
157
|
+
import "./SimplexNoise-EZ9qyUZl.js";
|
|
158
|
+
import "./SineWave-jv-D2nek.js";
|
|
159
|
+
import "./SliceWipe-CyQ8KwJe.js";
|
|
160
|
+
import "./Smoke-D5t3guA6.js";
|
|
161
|
+
import "./SmokeFill-DDqH7q9k.js";
|
|
162
|
+
import "./SmokeFlow-dqFWC3nR.js";
|
|
163
|
+
import "./Solarize-DQKm8tad.js";
|
|
164
|
+
import "./SolidColor-AuMQ8wsV.js";
|
|
165
|
+
import "./Sparkle-DB3i_Vm0.js";
|
|
166
|
+
import "./Spherize-BvO_quYf.js";
|
|
167
|
+
import "./Spiral-A7K8dyqa.js";
|
|
168
|
+
import "./Star-Bhjof1Aq.js";
|
|
169
|
+
import "./Stone-BqVeG7vJ.js";
|
|
170
|
+
import "./Strands-B_yNFviv.js";
|
|
171
|
+
import "./Stretch-CoJ0ZxXU.js";
|
|
172
|
+
import "./Stripes-DnVSZwzX.js";
|
|
173
|
+
import "./StudioBackground-WLPZVlBE.js";
|
|
174
|
+
import "./SunBurst-V0H9L8IC.js";
|
|
175
|
+
import "./Surface3D-CYrJo3xx.js";
|
|
176
|
+
import "./Swirl-C5du-FPv.js";
|
|
177
|
+
import "./Teardrop-BmMSpSnv.js";
|
|
178
|
+
import { a as wrapLines, i as measureTextBlock, r as measureText } from "./Text-BI5tmkPX.js";
|
|
179
|
+
import "./TiltShift-DnjqzNPb.js";
|
|
180
|
+
import "./TimeTrail-CZBKfdhv.js";
|
|
181
|
+
import "./Tint-CiaVTPnf.js";
|
|
182
|
+
import "./Trapezoid-C5uh_TK4.js";
|
|
183
|
+
import "./TriangularGrid-B1E1yy5Y.js";
|
|
184
|
+
import "./Tritone-VDEMnDwQ.js";
|
|
185
|
+
import "./Truchet-Bl6ASWtj.js";
|
|
186
|
+
import "./Twirl-BzLRq2-1.js";
|
|
187
|
+
import "./VenetianBlinds-D6S_TOHF.js";
|
|
188
|
+
import "./Vesica-Br6UVZt3.js";
|
|
189
|
+
import "./VHS-BjOXkojN.js";
|
|
190
|
+
import "./Vibrance-D5x8kNPO.js";
|
|
191
|
+
import "./VideoTexture-CJIi00YZ.js";
|
|
192
|
+
import "./Vignette-BgPDqyZY.js";
|
|
193
|
+
import "./Voronoi-C_0qmF5M.js";
|
|
194
|
+
import "./Voxels-Cr2nX-J2.js";
|
|
195
|
+
import "./Water-C1hpWaDG.js";
|
|
196
|
+
import "./Watercolor-DcHvJiR0.js";
|
|
197
|
+
import "./WaveDistortion-Dh79dGBr.js";
|
|
198
|
+
import "./Waveform-WaNoseGL.js";
|
|
199
|
+
import "./WaveletNoise-B7BbHyRe.js";
|
|
200
|
+
import "./Weave-ltmDeQ91.js";
|
|
201
|
+
import "./WebcamTexture-CxehSVcP.js";
|
|
202
|
+
import "./Wool-BGpl5MnC.js";
|
|
203
|
+
import "./WorleyNoise-COzM7yGf.js";
|
|
204
|
+
import "./ZoomBlur-jsmAeX03.js";
|
|
205
|
+
import { n as getShaderByName, t as getAllShaders } from "./shaderRegistry-jxUBiD5N.js";
|
|
205
206
|
const fullScreenTriangle = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(vertexFn({
|
|
206
207
|
in: { vertexIndex: builtin.vertexIndex },
|
|
207
208
|
out: {
|
|
@@ -1510,6 +1511,7 @@ function shaderRendererGPU() {
|
|
|
1510
1511
|
let globalElapsedTime = 0;
|
|
1511
1512
|
let sharedTimeOrigin = null;
|
|
1512
1513
|
let pendingRenderRAF = null;
|
|
1514
|
+
let frameLocked = false;
|
|
1513
1515
|
let pointerX = -10;
|
|
1514
1516
|
let pointerY = -10;
|
|
1515
1517
|
let pointerActive = false;
|
|
@@ -1553,7 +1555,7 @@ function shaderRendererGPU() {
|
|
|
1553
1555
|
height: 0
|
|
1554
1556
|
}
|
|
1555
1557
|
};
|
|
1556
|
-
const frameLoop = createFrameLoop(() => renderFrame());
|
|
1558
|
+
const frameLoop = createFrameLoop((frameTime) => renderFrame(frameTime));
|
|
1557
1559
|
const sanitizeId = (id) => id.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
1558
1560
|
const findChildNodes = (parentId) => {
|
|
1559
1561
|
const childIds = parentToChildren.get(parentId);
|
|
@@ -2332,13 +2334,13 @@ function shaderRendererGPU() {
|
|
|
2332
2334
|
requestRender();
|
|
2333
2335
|
};
|
|
2334
2336
|
const requestRender = () => {
|
|
2335
|
-
if (failureReason) return;
|
|
2337
|
+
if (failureReason || frameLocked) return;
|
|
2336
2338
|
if (frameLoop.running) return;
|
|
2337
2339
|
if (pendingRenderRAF !== null) return;
|
|
2338
2340
|
if (typeof requestAnimationFrame !== "function") return;
|
|
2339
|
-
pendingRenderRAF = requestAnimationFrame(() => {
|
|
2341
|
+
pendingRenderRAF = requestAnimationFrame((frameTime) => {
|
|
2340
2342
|
pendingRenderRAF = null;
|
|
2341
|
-
renderFrame();
|
|
2343
|
+
renderFrame(frameTime);
|
|
2342
2344
|
});
|
|
2343
2345
|
};
|
|
2344
2346
|
const registerNode = (id, fragmentNodeFunc, parentId, metadata, uniforms = {}, componentDefinition, domCanvas) => {
|
|
@@ -2665,7 +2667,7 @@ function shaderRendererGPU() {
|
|
|
2665
2667
|
};
|
|
2666
2668
|
const updateMouseDrivers = () => {
|
|
2667
2669
|
const deltaTime = frameParams.deltaTime;
|
|
2668
|
-
globalElapsedTime = deriveElapsedTime(sharedTimeOrigin, globalElapsedTime, deltaTime, performance.now());
|
|
2670
|
+
globalElapsedTime = frameLocked ? globalElapsedTime + deltaTime : deriveElapsedTime(sharedTimeOrigin, globalElapsedTime, deltaTime, performance.now());
|
|
2669
2671
|
for (const node of nodes.values()) {
|
|
2670
2672
|
const maps = node.metadata.maps ?? {};
|
|
2671
2673
|
for (const propName in node.mouseDriverState) {
|
|
@@ -2856,6 +2858,7 @@ function shaderRendererGPU() {
|
|
|
2856
2858
|
c.store.flush();
|
|
2857
2859
|
c.passManager.repaintRtt();
|
|
2858
2860
|
}
|
|
2861
|
+
if (frameLocked) return;
|
|
2859
2862
|
lastRenderTime = 0;
|
|
2860
2863
|
renderFrame();
|
|
2861
2864
|
};
|
|
@@ -2928,9 +2931,10 @@ function shaderRendererGPU() {
|
|
|
2928
2931
|
debugError("[gpu] render callback error:", e);
|
|
2929
2932
|
}
|
|
2930
2933
|
};
|
|
2931
|
-
const renderFrameInternal = (overrideDeltaTime) => {
|
|
2934
|
+
const renderFrameInternal = (overrideDeltaTime, frameTime) => {
|
|
2932
2935
|
if (failureReason || !canRender()) return;
|
|
2933
|
-
const
|
|
2936
|
+
const cpuStart = performance.now();
|
|
2937
|
+
const now = frameTime ?? cpuStart;
|
|
2934
2938
|
let delta;
|
|
2935
2939
|
if (overrideDeltaTime !== void 0) delta = overrideDeltaTime;
|
|
2936
2940
|
else {
|
|
@@ -3033,25 +3037,26 @@ function shaderRendererGPU() {
|
|
|
3033
3037
|
performance.clearMeasures("shader-cpu-time");
|
|
3034
3038
|
} catch {}
|
|
3035
3039
|
}
|
|
3036
|
-
performanceTracker.recordFrame(performance.now() -
|
|
3040
|
+
performanceTracker.recordFrame(performance.now() - cpuStart);
|
|
3037
3041
|
};
|
|
3038
|
-
const renderFrame = () => renderFrameInternal(void 0);
|
|
3042
|
+
const renderFrame = (frameTime) => renderFrameInternal(void 0, frameTime);
|
|
3039
3043
|
const renderAndWait = async (options) => {
|
|
3040
3044
|
if (failureReason) return;
|
|
3041
3045
|
if (!canRender()) throw new Error("Renderer is not ready");
|
|
3042
3046
|
const wasAnimating = frameLoop.running;
|
|
3043
3047
|
if (wasAnimating) stopAnimation();
|
|
3044
3048
|
lastRenderTime = 0;
|
|
3045
|
-
|
|
3049
|
+
renderFrameInternal(frameLocked ? 0 : void 0);
|
|
3046
3050
|
if (root && options?.waitForGpu !== false) await awaitGpuIdle(root);
|
|
3047
3051
|
if (wasAnimating) startAnimation();
|
|
3048
3052
|
};
|
|
3049
3053
|
const renderSyntheticFrame = async (deltaSeconds, options) => {
|
|
3054
|
+
if (!Number.isFinite(deltaSeconds)) throw new TypeError(`[gpu] renderSyntheticFrame: deltaSeconds must be a finite number, got ${deltaSeconds}`);
|
|
3050
3055
|
renderFrameInternal(deltaSeconds);
|
|
3051
3056
|
if (root && options?.waitForGpu !== false) await awaitGpuIdle(root);
|
|
3052
3057
|
};
|
|
3053
3058
|
const startAnimation = () => {
|
|
3054
|
-
if (failureReason || frameLoop.running || !shouldAnimate) return;
|
|
3059
|
+
if (failureReason || frameLocked || frameLoop.running || !shouldAnimate) return;
|
|
3055
3060
|
performanceTracker.setRendering(true);
|
|
3056
3061
|
frameLoop.start();
|
|
3057
3062
|
};
|
|
@@ -3422,6 +3427,7 @@ function shaderRendererGPU() {
|
|
|
3422
3427
|
structuralDirty = true;
|
|
3423
3428
|
isVisible = false;
|
|
3424
3429
|
shouldAnimate = true;
|
|
3430
|
+
frameLocked = false;
|
|
3425
3431
|
pointerX = -10;
|
|
3426
3432
|
pointerY = -10;
|
|
3427
3433
|
pointerActive = false;
|
|
@@ -3532,6 +3538,28 @@ function shaderRendererGPU() {
|
|
|
3532
3538
|
setTimeOrigin: (origin) => {
|
|
3533
3539
|
sharedTimeOrigin = origin;
|
|
3534
3540
|
},
|
|
3541
|
+
setFrameLocked: (locked) => {
|
|
3542
|
+
const wasLocked = frameLocked;
|
|
3543
|
+
frameLocked = locked;
|
|
3544
|
+
if (!locked || wasLocked) return;
|
|
3545
|
+
stopAnimation();
|
|
3546
|
+
if (pendingRenderRAF !== null && typeof cancelAnimationFrame === "function") {
|
|
3547
|
+
cancelAnimationFrame(pendingRenderRAF);
|
|
3548
|
+
pendingRenderRAF = null;
|
|
3549
|
+
}
|
|
3550
|
+
globalElapsedTime = 0;
|
|
3551
|
+
for (const node of nodes.values()) {
|
|
3552
|
+
if (node.definition.animatedTime) {
|
|
3553
|
+
getAnimatedTimeState(animatedTimeKey(node)).value = 0;
|
|
3554
|
+
writeSyntheticScalar(node, "_animTime", 0);
|
|
3555
|
+
}
|
|
3556
|
+
const extras = node.definition.extraAnimatedTimes;
|
|
3557
|
+
if (extras) for (const [key, speedProp] of Object.entries(extras)) {
|
|
3558
|
+
getAnimatedTimeState(extraAnimatedTimeKey(node, speedProp)).value = 0;
|
|
3559
|
+
writeSyntheticScalar(node, `_animTime_${key}`, 0);
|
|
3560
|
+
}
|
|
3561
|
+
}
|
|
3562
|
+
},
|
|
3535
3563
|
setOnReady: (callback) => {
|
|
3536
3564
|
onReadyCallback = callback;
|
|
3537
3565
|
if (callback && hasEmittedReady) queueMicrotask(callback);
|
|
@@ -3631,6 +3659,7 @@ function createRendererFromJSON(preset, options) {
|
|
|
3631
3659
|
const componentRegistry = /* @__PURE__ */ new Map();
|
|
3632
3660
|
const nodeIdMap = /* @__PURE__ */ new Map();
|
|
3633
3661
|
let presetCanvas = null;
|
|
3662
|
+
let frameLocked = false;
|
|
3634
3663
|
getAllShaders().forEach((shader) => {
|
|
3635
3664
|
componentRegistry.set(shader.definition.name, shader.definition);
|
|
3636
3665
|
});
|
|
@@ -3647,11 +3676,22 @@ function createRendererFromJSON(preset, options) {
|
|
|
3647
3676
|
coreRenderer.stopAnimation();
|
|
3648
3677
|
}
|
|
3649
3678
|
async function renderFrame(options$1) {
|
|
3679
|
+
const delta = options$1?.deltaSeconds;
|
|
3680
|
+
if (delta !== void 0 && !Number.isFinite(delta)) throw new TypeError(`[presetRenderer] renderFrame: deltaSeconds must be a finite number, got ${delta}`);
|
|
3650
3681
|
if (!coreRenderer.isInitialized()) {
|
|
3651
3682
|
debugWarn("[presetRenderer] Renderer not yet initialized, skipping frame");
|
|
3652
3683
|
return;
|
|
3653
3684
|
}
|
|
3654
|
-
|
|
3685
|
+
if (delta === void 0) {
|
|
3686
|
+
if (frameLocked) throw new Error("[presetRenderer] renderFrame: this renderer is frame-locked (a previous call passed deltaSeconds); pass deltaSeconds on every call, or {deltaSeconds: 0} to repaint without advancing time");
|
|
3687
|
+
await coreRenderer.renderAndWait(options$1);
|
|
3688
|
+
return;
|
|
3689
|
+
}
|
|
3690
|
+
if (!frameLocked) {
|
|
3691
|
+
frameLocked = true;
|
|
3692
|
+
coreRenderer.setFrameLocked(true);
|
|
3693
|
+
}
|
|
3694
|
+
await coreRenderer.renderSyntheticFrame(delta, { waitForGpu: options$1?.waitForGpu });
|
|
3655
3695
|
}
|
|
3656
3696
|
function updatePreset(newPreset) {
|
|
3657
3697
|
nodeIdMap.forEach((_, nodeId) => {
|
|
@@ -3672,6 +3712,7 @@ function createRendererFromJSON(preset, options) {
|
|
|
3672
3712
|
}
|
|
3673
3713
|
function dispose() {
|
|
3674
3714
|
coreRenderer.cleanup();
|
|
3715
|
+
frameLocked = false;
|
|
3675
3716
|
}
|
|
3676
3717
|
function registerPresetNodes() {
|
|
3677
3718
|
const rootId = "preset-root";
|
package/dist/core/llms.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Shaders std vocabulary (engine 4.0.
|
|
1
|
+
# Shaders std vocabulary (engine 4.0.3)
|
|
2
2
|
|
|
3
3
|
Compose shaders from these words with `defineShader` from `shaders/std`. Every word is a plain TypeScript
|
|
4
4
|
function; the engine lowers the composition to WGSL at runtime. A `wgsl` body is the escape hatch.
|
|
@@ -436,6 +436,16 @@ one, or `unitized` to convert first. A **ramp** closes it: `rampOver` with `stop
|
|
|
436
436
|
- `backToP3(slots: {space?: PropRef}): RgbStage` — Brings `ribbons` color from its working color space back to display color.
|
|
437
437
|
- `tonePow(): RgbStage` — A gentle lift of the mid-tones (rgb to the power 0.85), as an `overRgb` step.
|
|
438
438
|
- `noiseRelief(basis: ReliefBasis): (params: GpuFragmentParams) => Expr` — Embosses the layer inside with a textured surface: the child is slightly distorted, then lit by a height field so it reads as carved stone or woven cloth.
|
|
439
|
+
- `clothCoords(coords: {along: Expr | number; across: Expr | number}, folds: Fold[], opts: DrapeOptions & {foreshorten?: number}): {along: Expr; across: Expr}` — Where on the unfolded cloth a point lands: the material coordinates to draw a pattern in, so it follows the folds instead of floating over them.
|
|
440
|
+
- `drapedFolds(coords: {along: Expr | number; across: Expr | number}, folds: Fold[], opts: DrapeOptions): Expr` — The height of a draped cloth at a point: rounded ridges running along one direction, each rippling and swaying along its length, gathered where the cloth is pinned.
|
|
441
|
+
- `foldSet(opts: {
|
|
442
|
+
count: number
|
|
443
|
+
seed: Expr | number
|
|
444
|
+
spread: Expr | number
|
|
445
|
+
width: Expr | number
|
|
446
|
+
height: Expr | number
|
|
447
|
+
jitter?: number
|
|
448
|
+
}): Fold[]` — Lays out the ridges of a draped cloth: `count` folds spread evenly across `spread`, each nudged sideways, widened and raised by a seeded amount so no two are alike.
|
|
439
449
|
- `reliefBases.stone: { readonly fn: TgpuFn<(p: Vec2f) => F32>; readonly hint: "stone12"; }` — Marbled stone height field.
|
|
440
450
|
- `reliefBases.wool: { readonly fn: TgpuFn<(p: Vec2f) => F32>; readonly hint: "wool12"; }` — Interwoven fibrous fabric height field.
|
|
441
451
|
|
|
@@ -554,8 +564,8 @@ it: the signed distance, the pixel size, the neighbour taps.
|
|
|
554
564
|
alphas: {along: Expr; across: Expr}
|
|
555
565
|
gain?: Expr | number
|
|
556
566
|
}): Expr` — A highlight stretched along a grain, as on brushed metal or carbon fibre.
|
|
557
|
-
- `wardAlphas(roughness: Expr, anisotropy: Expr): {along: Expr; across: Expr}` — Turns roughness and anisotropy sliders (0–1 each) into the two lobe widths `anisoSpecular` takes.
|
|
558
|
-
- `viewRay(params: GpuFragmentParams, field: SurfaceField, fov: number = 0.6): Expr` — The direction the viewer looks along at this pixel, for reflections that sweep across a face.
|
|
567
|
+
- `wardAlphas(roughness: Expr | number, anisotropy: Expr | number): {along: Expr; across: Expr}` — Turns roughness and anisotropy sliders (0–1 each) into the two lobe widths `anisoSpecular` takes.
|
|
568
|
+
- `viewRay(params: GpuFragmentParams, field: Pick<SurfaceField, 'aspect'>, fov: number = 0.6): Expr` — The direction the viewer looks along at this pixel, for reflections that sweep across a face.
|
|
559
569
|
- `grazingOf(n: Expr, view: Expr): Expr` — How edge-on the surface is to the viewer: 0 face-on, 1 grazing.
|
|
560
570
|
- `grazingFlat(n: Expr): Expr` — How edge-on the surface is to a straight-on viewer: 0 face-on, 1 grazing.
|
|
561
571
|
- `fresnelBoost(grazing: Expr, opts: {power?: number; amount: Expr | number}): Expr` — A multiplier that brightens grazing edges: 1 face-on, up to `1 + amount` at the rim.
|
|
@@ -614,6 +624,14 @@ it: the signed distance, the pixel size, the neighbour taps.
|
|
|
614
624
|
- `rotationSensor(frame: SurfaceFrame): {x: Expr; y: Expr}` — How far a 3D shape has rotated, as a 2D pan you can move content by.
|
|
615
625
|
- `nearestEdge(sdfUV: Expr, sdf: Expr, slope: Expr, hint: string = 'edge'): {point: Expr; normal: Expr}` — The closest point on the shape's edge to this pixel, and the outward normal there.
|
|
616
626
|
- `continuedField(frame: SurfaceFrame, field: SurfaceField, params: GpuFragmentParams): {sdf: Expr; outward: Expr; at: (uv: Expr) => Expr}` — The distance field extended past the edge of an SVG shape's texture.
|
|
627
|
+
- `fdCurvature(sampleAt: (p: Expr) => Expr, p: Expr, eps: number, hint: string = 'fd'): {value: Expr; dx: Expr; dy: Expr; curvature: Expr}` — The value, slope and curvature of any field at a point: `value`, `dx`, `dy` and `curvature`.
|
|
628
|
+
- `sheenLobe(opts: {
|
|
629
|
+
normal: Expr
|
|
630
|
+
light: Expr
|
|
631
|
+
view: Expr
|
|
632
|
+
roughness: Expr | number
|
|
633
|
+
gain?: Expr | number
|
|
634
|
+
}): Expr` — The soft glow of light scattered off fibres where a surface turns edge-on to the viewer: the velvet sheen on the flanks of satin, velour and wool.
|
|
617
635
|
|
|
618
636
|
### Volumes (`import {volume} from 'shaders/std'`) — https://shaders.com/docs/primitives/volume
|
|
619
637
|
|