shaders 4.0.2 → 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.map +1 -1
- package/dist/core/index.js +211 -209
- 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.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 +90 -90
- 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/gpu/frame.d.ts
CHANGED
|
@@ -45,11 +45,12 @@ export declare const OFF_SCREEN_FPS_INTERVAL = 1000;
|
|
|
45
45
|
/**
|
|
46
46
|
* On-screen minimum frame interval — a 60 FPS cap with 1ms jitter tolerance so a 60Hz
|
|
47
47
|
* display hits a true 60fps without the aliasing that a cap exactly equal to the refresh
|
|
48
|
-
* interval produces.
|
|
48
|
+
* interval produces. The tolerance holds because the live loop gates on the RAF frame
|
|
49
|
+
* timestamp, which follows the display's refresh to well under a millisecond.
|
|
49
50
|
*/
|
|
50
51
|
export declare const MIN_FRAME_INTERVAL: number;
|
|
51
52
|
export interface FrameGateState {
|
|
52
|
-
/**
|
|
53
|
+
/** Frame timestamp (ms, `performance.now()` timeline) of the last rendered frame, or 0 if none yet. */
|
|
53
54
|
lastRenderTime: number;
|
|
54
55
|
/** IntersectionObserver visibility — false throttles to 1 FPS. */
|
|
55
56
|
isVisible: boolean;
|
|
@@ -75,6 +76,12 @@ export interface FrameGateResult {
|
|
|
75
76
|
* frame rate: 1 FPS off-screen, up to 60 FPS on-screen (with the jitter-tolerant cap), delta
|
|
76
77
|
* clamped to 0.1s. The synthetic-frame path bypasses this entirely (see {@link syntheticDelta});
|
|
77
78
|
* it is only used by the RAF-driven live loop.
|
|
79
|
+
*
|
|
80
|
+
* `now` is the RAF callback's timestamp. Don't pass `performance.now()` read inside the
|
|
81
|
+
* callback: it shifts with whatever ran earlier in the frame, often by more than the cap's 1ms
|
|
82
|
+
* tolerance. An on-time 60Hz frame then measures 15.5ms and is skipped, a visible hitch in
|
|
83
|
+
* anything that moves. Browsers that round `performance.now()` to about a millisecond make it
|
|
84
|
+
* worse.
|
|
78
85
|
*/
|
|
79
86
|
export declare function frameGate(now: number, state: FrameGateState): FrameGateResult;
|
|
80
87
|
/**
|
|
@@ -123,10 +130,10 @@ export interface FrameLoop {
|
|
|
123
130
|
readonly running: boolean;
|
|
124
131
|
}
|
|
125
132
|
/**
|
|
126
|
-
* A minimal `requestAnimationFrame` loop that invokes `tick` once per frame
|
|
127
|
-
* decision lives in `tick` itself (via {@link frameGate}); this factory
|
|
128
|
-
* scheduling + teardown. SSR-safe: `requestAnimationFrame` is resolved lazily
|
|
129
|
-
* never at import.
|
|
133
|
+
* A minimal `requestAnimationFrame` loop that invokes `tick` once per frame with the frame's
|
|
134
|
+
* timestamp. The throttle decision lives in `tick` itself (via {@link frameGate}); this factory
|
|
135
|
+
* only owns the RAF scheduling + teardown. SSR-safe: `requestAnimationFrame` is resolved lazily
|
|
136
|
+
* at `start()`, never at import.
|
|
130
137
|
*/
|
|
131
|
-
export declare function createFrameLoop(tick: () => void): FrameLoop;
|
|
138
|
+
export declare function createFrameLoop(tick: (frameTime: number) => void): FrameLoop;
|
|
132
139
|
//# sourceMappingURL=frame.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3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AM,KAAG,IAAI;QAI3C,sFAAsF;sCACxD,MAAM,KAAG,IAAI;mCAIhB,MAAM,KAAG,MAAM,GAAG,IAAI;8BAO3B,MAAM,QAAQ,MAAM,SAAS,MAAM,GAAG,MAAM,EAAE,KAAG,IAAI;6BAItD,MAAM,QAAQ,MAAM,KAAG,OAAO;;;;;;;;QAOnD,gFAAgF;;;;;;;;;;;;;;qCAl7DtD,MAAM,GAAG,IAAI;;;QAq8DvC,sFAAsF;8BAChE;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAC,KAAG,IAAI;;EAcvE"}
|
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: {
|
|
@@ -1554,7 +1555,7 @@ function shaderRendererGPU() {
|
|
|
1554
1555
|
height: 0
|
|
1555
1556
|
}
|
|
1556
1557
|
};
|
|
1557
|
-
const frameLoop = createFrameLoop(() => renderFrame());
|
|
1558
|
+
const frameLoop = createFrameLoop((frameTime) => renderFrame(frameTime));
|
|
1558
1559
|
const sanitizeId = (id) => id.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
1559
1560
|
const findChildNodes = (parentId) => {
|
|
1560
1561
|
const childIds = parentToChildren.get(parentId);
|
|
@@ -2337,9 +2338,9 @@ function shaderRendererGPU() {
|
|
|
2337
2338
|
if (frameLoop.running) return;
|
|
2338
2339
|
if (pendingRenderRAF !== null) return;
|
|
2339
2340
|
if (typeof requestAnimationFrame !== "function") return;
|
|
2340
|
-
pendingRenderRAF = requestAnimationFrame(() => {
|
|
2341
|
+
pendingRenderRAF = requestAnimationFrame((frameTime) => {
|
|
2341
2342
|
pendingRenderRAF = null;
|
|
2342
|
-
renderFrame();
|
|
2343
|
+
renderFrame(frameTime);
|
|
2343
2344
|
});
|
|
2344
2345
|
};
|
|
2345
2346
|
const registerNode = (id, fragmentNodeFunc, parentId, metadata, uniforms = {}, componentDefinition, domCanvas) => {
|
|
@@ -2930,9 +2931,10 @@ function shaderRendererGPU() {
|
|
|
2930
2931
|
debugError("[gpu] render callback error:", e);
|
|
2931
2932
|
}
|
|
2932
2933
|
};
|
|
2933
|
-
const renderFrameInternal = (overrideDeltaTime) => {
|
|
2934
|
+
const renderFrameInternal = (overrideDeltaTime, frameTime) => {
|
|
2934
2935
|
if (failureReason || !canRender()) return;
|
|
2935
|
-
const
|
|
2936
|
+
const cpuStart = performance.now();
|
|
2937
|
+
const now = frameTime ?? cpuStart;
|
|
2936
2938
|
let delta;
|
|
2937
2939
|
if (overrideDeltaTime !== void 0) delta = overrideDeltaTime;
|
|
2938
2940
|
else {
|
|
@@ -3035,9 +3037,9 @@ function shaderRendererGPU() {
|
|
|
3035
3037
|
performance.clearMeasures("shader-cpu-time");
|
|
3036
3038
|
} catch {}
|
|
3037
3039
|
}
|
|
3038
|
-
performanceTracker.recordFrame(performance.now() -
|
|
3040
|
+
performanceTracker.recordFrame(performance.now() - cpuStart);
|
|
3039
3041
|
};
|
|
3040
|
-
const renderFrame = () => renderFrameInternal(void 0);
|
|
3042
|
+
const renderFrame = (frameTime) => renderFrameInternal(void 0, frameTime);
|
|
3041
3043
|
const renderAndWait = async (options) => {
|
|
3042
3044
|
if (failureReason) return;
|
|
3043
3045
|
if (!canRender()) throw new Error("Renderer is not ready");
|
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
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { du as colorStopsPropConfig } from "./std-ebybEx3c.js";
|
|
2
2
|
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-P50Uo_Ju.js";
|
|
3
3
|
function noiseColorProps() {
|
|
4
4
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presetRenderer.d.ts","sourceRoot":"","sources":["../src/presetRenderer.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAIzD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAA;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,eAAe,EAAE,CAAA;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,yBAAyB,CAAC,EAAE,OAAO,CAAA;IACnC,4FAA4F;IAC5F,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAElC,GAAG,CAAC,EAAE;QACJ,MAAM,EAAE,SAAS,CAAA;QACjB,OAAO,EAAE,UAAU,CAAA;KACpB,CAAA;IACD,OAAO,CAAC,EAAE,qBAAqB,GAAG,sBAAsB,CAAA;IAExD,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED;;GAEG;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