shaders 3.0.448 → 3.0.450
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-xU811GPM.js → AngularBlur-4jt7bNoF.js} +15 -15
- package/dist/core/{Arc-DYvFxtGy.js → Arc-DXIfbBgd.js} +13 -12
- package/dist/core/{Ascii-ChE4BP7J.js → Ascii-GDof03Ca.js} +51 -53
- package/dist/core/{Aurora-BThE6pbb.js → Aurora-CS4vewUW.js} +63 -68
- package/dist/core/{BarShift-DdjkPSk3.js → BarShift-BtnYLQ0B.js} +31 -32
- package/dist/core/{BarnDoors-B_kxVuec.js → BarnDoors-Dw9K-amf.js} +21 -22
- package/dist/core/{Beam-C7zPHuIU.js → Beam-D_cyaMjJ.js} +32 -39
- package/dist/core/{Bend-CFcEjifF.js → Bend-CSs5UIh8.js} +27 -28
- package/dist/core/{Blob-CgUolAhz.js → Blob-h25zA5WH.js} +54 -60
- package/dist/core/{BlockDissolve-CLSxXB4e.js → BlockDissolve-CKN_KvLP.js} +21 -20
- package/dist/core/{BlockNoise-BgEJOicU.js → BlockNoise-DhKyd_F7.js} +16 -14
- package/dist/core/{BlueNoise-BqMtBLxM.js → BlueNoise-Auhzq4x5.js} +12 -10
- package/dist/core/{Blur-Xaa6jVPT.js → Blur-CcxMqYsu.js} +27 -27
- package/dist/core/{Boids-B8QUNxRL.js → Boids-D51U46GF.js} +916 -787
- package/dist/core/{BokehBlur-B5fql96U.js → BokehBlur-Cfaqbh3I.js} +104 -104
- package/dist/core/{BrickPattern-EAD5HD4e.js → BrickPattern-tASwilX0.js} +34 -38
- package/dist/core/{BrightnessContrast-mbv32DkA.js → BrightnessContrast-ZCKqJW7i.js} +9 -10
- package/dist/core/{BrushedMetal-B10fDdGt.js → BrushedMetal-B6gSVB28.js} +81 -84
- package/dist/core/{Bulge-C1Pq4DHk.js → Bulge-dCYtWP4S.js} +19 -19
- package/dist/core/{CRTScreen-Ctx0Mxtb.js → CRTScreen-CVY1lOGL.js} +35 -37
- package/dist/core/{CarbonFiber-DSSARe6R.js → CarbonFiber-Do9EONKv.js} +81 -84
- package/dist/core/{Chalkboard-C7srb54u.js → Chalkboard-0hyyGnYl.js} +59 -61
- package/dist/core/{ChannelBlur-DE3T4-pj.js → ChannelBlur-DcZKCKXi.js} +13 -15
- package/dist/core/{CheckerWipe-Dp49-iaT.js → CheckerWipe-BIE62tJ1.js} +23 -23
- package/dist/core/{Checkerboard-oVWtS0rz.js → Checkerboard-CRnfu63u.js} +31 -31
- package/dist/core/{Chevron-CCD5JTRA.js → Chevron-Ld_v4z9T.js} +20 -20
- package/dist/core/{ChromaFlow-BiE9Mes0.js → ChromaFlow-CTWeauIr.js} +32 -33
- package/dist/core/{ChromaticAberration-XEasUrD3.js → ChromaticAberration-CxuOb68m.js} +13 -13
- package/dist/core/{Circle-CvQ9duDU.js → Circle-XP1B5rsN.js} +14 -13
- package/dist/core/{ColorWheel-CXvfWAjN.js → ColorWheel-CFU_OmOW.js} +30 -34
- package/dist/core/{CompressionArtifacts-BDaP7XI6.js → CompressionArtifacts-Bc9xTdQP.js} +64 -66
- package/dist/core/{ConcentricSpin-D06hFXEb.js → ConcentricSpin-DTJytpAk.js} +39 -41
- package/dist/core/{ConicGradient-Cg6vy3gl.js → ConicGradient-C-4uDmQj.js} +17 -18
- package/dist/core/{ContourLines-Cg2Dlmcr.js → ContourLines-C8p6f-1y.js} +29 -30
- package/dist/core/{CornerPin-wtqiMUCa.js → CornerPin-CB92kX10.js} +55 -57
- package/dist/core/{Crescent-Co__JqEE.js → Crescent-Dk4nlG8T.js} +14 -13
- package/dist/core/{Cross-CFytbdrZ.js → Cross-DsnI1U8g.js} +14 -13
- package/dist/core/{Crystal-U7VqhbHy.js → Crystal-CR_sG2y7.js} +143 -152
- package/dist/core/{CurlNoise-BXWYh1Qi.js → CurlNoise-DJ27ih0F.js} +16 -14
- package/dist/core/{CursorRipples-APbH7SVR.js → CursorRipples-CuO3sZga.js} +59 -58
- package/dist/core/{CursorTrail-D5Fj0wGp.js → CursorTrail-d4xx4QpM.js} +72 -71
- package/dist/core/{DataMosh-CWRLpjU3.js → DataMosh-BhvE-2yC.js} +71 -73
- package/dist/core/{DiamondGradient-C_2VoEiQ.js → DiamondGradient-CtOVKrYf.js} +23 -25
- package/dist/core/{DiamondWipe-BkdNODD1.js → DiamondWipe-D-yiQBVj.js} +22 -22
- package/dist/core/{DiffuseBlur-Dl7S4KBW.js → DiffuseBlur-BDf-Czxz.js} +11 -12
- package/dist/core/{DisplacementMap-lv-qoLem.js → DisplacementMap-B_jf_2lj.js} +26 -26
- package/dist/core/{Dither-B33J_gJU.js → Dither-D3P6EJU8.js} +116 -119
- package/dist/core/{DotGrid-DaOhiRaL.js → DotGrid-BnSVhJlh.js} +37 -39
- package/dist/core/{DropShadow-C5Z2Rs2C.js → DropShadow-BSKVH3n3.js} +37 -37
- package/dist/core/{Duotone-x4cywJbU.js → Duotone-DfjYuK2u.js} +7 -7
- package/dist/core/{Ellipse-CrQ1XYjx.js → Ellipse-D7_1QKaa.js} +13 -12
- package/dist/core/{Emboss-DNwO5JcE.js → Emboss-ZiPslqzl.js} +76 -78
- package/dist/core/{Engraving-FsaRQiyI.js → Engraving-DsfkKajz.js} +57 -59
- package/dist/core/{ErosionNoise-CloHpdFT.js → ErosionNoise-SELArv9H.js} +13 -11
- package/dist/core/{Exposure-mO6KjYvc.js → Exposure-A7WlTOti.js} +4 -5
- package/dist/core/{FallingLines-D_1wHUkx.js → FallingLines-9PRMb_Ou.js} +40 -42
- package/dist/core/{FilmGrain-DDhrsw94.js → FilmGrain-SXzVDesw.js} +17 -18
- package/dist/core/{FilmStock-BaP2aTLu.js → FilmStock-RK4fk4m0.js} +74 -74
- package/dist/core/{Flip-DYuqyJva.js → Flip-DjoNWG4v.js} +10 -12
- package/dist/core/{FloatingParticles-DJwNpHtZ.js → FloatingParticles-D7vUF5g7.js} +637 -451
- package/dist/core/{FlowField-D4iGiDic.js → FlowField-tHrXhd1b.js} +24 -23
- package/dist/core/{Flower-D0MqoayS.js → Flower-BfehbmmG.js} +14 -13
- package/dist/core/{FlowingGradient-9Zu0Pu4a.js → FlowingGradient-BTKjkx5F.js} +38 -39
- package/dist/core/{FlutedGlass-C_clmShu.js → FlutedGlass-uFT7iy_9.js} +43 -43
- package/dist/core/{Fog-C_kY5pWB.js → Fog-Cu1CMATa.js} +172 -171
- package/dist/core/{Form3D-D4aXZGoJ.js → Form3D-D0ji-MeC.js} +259 -267
- package/dist/core/{FractalNoise-mMVLGmIv.js → FractalNoise-D9HYiOdr.js} +30 -28
- package/dist/core/{Frost-M53tZlcf.js → Frost-DQZZxdTk.js} +70 -73
- package/dist/core/{GaborNoise-BhXywN1d.js → GaborNoise-D7BP0K4g.js} +16 -14
- package/dist/core/{Glass-B9D_52op.js → Glass-CzCVnGn-.js} +6 -4
- package/dist/core/{GlassTiles-DIkGYgVE.js → GlassTiles-DJzPPqwz.js} +23 -26
- package/dist/core/{Glitch-CUOJt5VX.js → Glitch-D1Dx8__X.js} +84 -72
- package/dist/core/{Glow-D5AdnLvU.js → Glow-Bd9_o_Kv.js} +76 -77
- package/dist/core/{Godrays-BeQCWVw7.js → Godrays-DRPRWGPm.js} +52 -56
- package/dist/core/{Goo-C0_0QYne.js → Goo-28A_pNBg.js} +64 -65
- package/dist/core/{GradientMap-DOVK05_a.js → GradientMap-D8dv-1AX.js} +47 -50
- package/dist/core/{Grayscale-Uv_6LYA9.js → Grayscale-BlVXBVwW.js} +6 -6
- package/dist/core/{Grid-Dbp4DoXZ.js → Grid-D9vlHvs1.js} +46 -48
- package/dist/core/{GridDistortion-D_21zIrm.js → GridDistortion-BpqDvqj6.js} +63 -62
- package/dist/core/{Group-DXiB5Qrx.js → Group-bwQnJRec.js} +1 -1
- package/dist/core/{HTMLInCanvas-xXPLTYIv.js → HTMLInCanvas-gCf64ozE.js} +1 -1
- package/dist/core/{Halftone-DszIQsyx.js → Halftone-B_WouxiP.js} +59 -62
- package/dist/core/{Heart-COpnSJPD.js → Heart-Bmt2TLNz.js} +12 -11
- package/dist/core/{Heatmap-CMm8SD-P.js → Heatmap-Ruef741_.js} +57 -55
- package/dist/core/{HexGrid-B6wNW-45.js → HexGrid-By9k0YuI.js} +32 -35
- package/dist/core/{Hologram-XejRN51V.js → Hologram-Cf25ONOE.js} +62 -66
- package/dist/core/{Holographic-D1G_Ou1y.js → Holographic-C9RzYykt.js} +58 -61
- package/dist/core/{HueShift-BCDgYfJs.js → HueShift-V3gQVuIo.js} +7 -10
- package/dist/core/{ImageTexture-BE2Jlkg6.js → ImageTexture-DAUR2N5Q.js} +3 -2
- package/dist/core/{InkFlow-DJaJqula.js → InkFlow-DlP1gmr4.js} +156 -156
- package/dist/core/{Invert-DDmITZjt.js → Invert-K648khvD.js} +4 -4
- package/dist/core/{IrisWipe-BFs5DDSa.js → IrisWipe-Clkd_5CA.js} +20 -23
- package/dist/core/{IsometricCubes-ChKqYTIw.js → IsometricCubes-CzfAwpQ5.js} +37 -42
- package/dist/core/{Kaleidoscope-C8_-tC6T.js → Kaleidoscope-B9k6HkNn.js} +21 -21
- package/dist/core/{KeyFrames-xR9ZzHKj.js → KeyFrames-DX6JFhsy.js} +130 -129
- package/dist/core/{LensFlare-DHGNEDIX.js → LensFlare-G73cvrIG.js} +82 -84
- package/dist/core/{LightEdge-DYfhB3-7.js → LightEdge-D3i7HUR9.js} +106 -107
- package/dist/core/{LightLeak-CYjuMURe.js → LightLeak-B8yGreP-.js} +58 -59
- package/dist/core/{LinearBlur-CV7gKYHV.js → LinearBlur-BEzNPe0e.js} +14 -14
- package/dist/core/{LinearGradient-DAzw65UB.js → LinearGradient-XjXyaoii.js} +36 -37
- package/dist/core/{LinearWipe-DoDZF7y0.js → LinearWipe-Doj9aS5n.js} +20 -21
- package/dist/core/{LiquidMetal-C9OxRyE4.js → LiquidMetal-CWV_RQip.js} +70 -73
- package/dist/core/{Liquify-gNsuR7aA.js → Liquify-DWrgFruC.js} +67 -66
- package/dist/core/{MagneticFilings-CQ7zHEow.js → MagneticFilings-Co0V07-1.js} +996 -756
- package/dist/core/{Marble-BSSMSrv8.js → Marble-D13mDBvL.js} +22 -21
- package/dist/core/{Mirror-BZAUA2jk.js → Mirror-DvukM_eG.js} +18 -18
- package/dist/core/{MultiPointGradient-HSfAYB-u.js → MultiPointGradient-CyK_Ty9a.js} +30 -31
- package/dist/core/{Neon-D9d6Osal.js → Neon-DD8qY6H9.js} +102 -113
- package/dist/core/{NoiseDissolve-CnELvUG_.js → NoiseDissolve-CeX3VO8J.js} +23 -22
- package/dist/core/{ObjectTracker-COh35yTh.js → ObjectTracker-BWo8H1kh.js} +3 -3
- package/dist/core/{PagePeel-B6sjmvZ1.js → PagePeel-BL5IeBeD.js} +54 -58
- package/dist/core/{Paper-LfukraJk.js → Paper-BAq9MqtG.js} +16 -15
- package/dist/core/{Parallelogram-DBi0yAG3.js → Parallelogram-DYzFG9ci.js} +14 -13
- package/dist/core/{ParticleField-q7COY9YT.js → ParticleField-Bl4uztO7.js} +1489 -1340
- package/dist/core/{ParticleFlow-DiHWbIon.js → ParticleFlow-RPxLP8HC.js} +1422 -1149
- package/dist/core/{Particles-BFsKUAPx.js → Particles-BDEX4Fw2.js} +866 -656
- package/dist/core/{PerlinNoise-KV2GG0ts.js → PerlinNoise-BtXlaEd8.js} +16 -14
- package/dist/core/{Perspective-CJSrtEy5.js → Perspective-CdU5nAEn.js} +23 -25
- package/dist/core/{PixelSort-WD-Y6ZFu.js → PixelSort-C7TX1ClH.js} +109 -109
- package/dist/core/{PixelThrow-CnOXm7Hv.js → PixelThrow-DpKEZPMK.js} +35 -35
- package/dist/core/{Pixelate-XJI9f1oT.js → Pixelate-C2OQUtqr.js} +19 -19
- package/dist/core/{Plasma-C0dnSaw1.js → Plasma-DLq9HroF.js} +33 -32
- package/dist/core/{Plastic-DBv_6A7q.js → Plastic-C2hiOaXw.js} +82 -84
- package/dist/core/{PolarCoordinates-B8Cq2bzT.js → PolarCoordinates-Bumv-Hi3.js} +16 -18
- package/dist/core/{Polygon-ORM35JKg.js → Polygon-DOpR58g4.js} +16 -17
- package/dist/core/{Posterize-Dn-Vv2S1.js → Posterize-CVNOkDme.js} +5 -8
- package/dist/core/{Prism-CYLsGJHY.js → Prism-CCQ1BsBL.js} +36 -40
- package/dist/core/{ProgressiveBlur-BXUumCm5.js → ProgressiveBlur-Cprr1XSE.js} +63 -65
- package/dist/core/{RadialGradient-j6T56q1W.js → RadialGradient-CsmCSySC.js} +22 -23
- package/dist/core/{RadialWipe-Bz19qvls.js → RadialWipe-BAnsqol4.js} +25 -25
- package/dist/core/{RandomBars-3RlhwDYG.js → RandomBars-DdhtxO8o.js} +23 -23
- package/dist/core/{ReactionDiffusion-DdXavIVw.js → ReactionDiffusion-Bih4xEtV.js} +173 -175
- package/dist/core/{RectangularCoordinates-p3250IKV.js → RectangularCoordinates-CKKA2oY1.js} +14 -14
- package/dist/core/{ReflectivePlane-BOl9AEoO.js → ReflectivePlane-u3Tje37M.js} +35 -37
- package/dist/core/{Repeater-BMXmN95R.js → Repeater-C-agsqBS.js} +2 -2
- package/dist/core/{Ring-DKcROHDs.js → Ring-Cj7bR89h.js} +15 -14
- package/dist/core/{RippleWipe-QH8D0Y-2.js → RippleWipe-VL1MMd5o.js} +24 -27
- package/dist/core/{Ripples-8fFdo6aq.js → Ripples-B88TeopS.js} +18 -21
- package/dist/core/{RoundedRect-Cr76tP9o.js → RoundedRect-jn8_QLrT.js} +14 -13
- package/dist/core/{Saturation-Dqifs1x7.js → Saturation-dCNIhHq2.js} +8 -9
- package/dist/core/{Scratches-sa8JU4Eb.js → Scratches-Dz_1Ptk0.js} +16 -14
- package/dist/core/{Sharpness-IRuPd9nn.js → Sharpness-Bxq4YiRL.js} +21 -22
- package/dist/core/{Shatter-BYaxMvyd.js → Shatter-DsuYUr-1.js} +73 -72
- package/dist/core/{SimplexNoise-C2vmRzgy.js → SimplexNoise-CvalBPNF.js} +19 -17
- package/dist/core/{SineWave-BGAJyGFr.js → SineWave-XPK5BsPB.js} +20 -20
- package/dist/core/{SliceWipe-BOcCk5Se.js → SliceWipe-gSs_VRwf.js} +19 -19
- package/dist/core/{Smoke-B1twbhQ4.js → Smoke-kzRXFLW9.js} +156 -155
- package/dist/core/{SmokeFill-CAayneM2.js → SmokeFill-DQZeqiwX.js} +233 -231
- package/dist/core/{SmokeFlow-Ug8difAz.js → SmokeFlow-n23YvKoI.js} +143 -142
- package/dist/core/{Solarize-205KKROH.js → Solarize-DINiQSz1.js} +12 -14
- package/dist/core/{SolidColor-B4pj8onb.js → SolidColor-Cu_9b_my.js} +1 -1
- package/dist/core/{Spherize-DUQxwwCL.js → Spherize-BLY2eqBV.js} +31 -37
- package/dist/core/{Spiral-DY1c-N4F.js → Spiral-CWCmvI3m.js} +36 -36
- package/dist/core/{Star-DRxNaHHo.js → Star-9WSeF-vW.js} +14 -13
- package/dist/core/{Stone-CUdcvOWd.js → Stone-CVO2Ey8i.js} +2 -2
- package/dist/core/{Strands-CFxYJMFu.js → Strands-D9Sz1vX9.js} +47 -49
- package/dist/core/{Stretch-DYrVdt8A.js → Stretch-DMT2Y6kN.js} +19 -19
- package/dist/core/{Stripes-BvnoWdwn.js → Stripes-DPVbOQkX.js} +39 -39
- package/dist/core/{StudioBackground-srQGUpfZ.js → StudioBackground-5JgYClrr.js} +67 -68
- package/dist/core/{SunBurst-COsVDZ4e.js → SunBurst-Din5CIAU.js} +18 -20
- package/dist/core/{Surface3D-TsGPzdGm.js → Surface3D-CW2ApEgt.js} +1934 -1528
- package/dist/core/{Swirl-nXMWVY2X.js → Swirl-DrchXPfh.js} +18 -21
- package/dist/core/{Teardrop-Bjtkigk4.js → Teardrop-CDt_XA4d.js} +13 -12
- package/dist/core/{Text-BGdsqRl5.js → Text-o_dubJeo.js} +20 -21
- package/dist/core/{ThinFilm-DhMKI5e2.js → ThinFilm-d7IlUY62.js} +59 -67
- package/dist/core/{TiltShift-BwuYyXB6.js → TiltShift-DJVcMb_M.js} +66 -67
- package/dist/core/{TimeTrail-CE2XumxR.js → TimeTrail-D1Gir7BK.js} +1003 -1647
- package/dist/core/{Tint-BTmcGjEl.js → Tint-Cak_PyOJ.js} +25 -26
- package/dist/core/{Trapezoid-CiZCh8QS.js → Trapezoid-DnFhlKCD.js} +14 -13
- package/dist/core/{TriangularGrid-BnQOEljy.js → TriangularGrid-BE9CgVlb.js} +34 -36
- package/dist/core/{Tritone-Ta084wlF.js → Tritone-mqU9b4YZ.js} +7 -10
- package/dist/core/{Truchet-BxCh_IIp.js → Truchet-yLdaw6z4.js} +31 -33
- package/dist/core/{Twirl-Cw4jm59Q.js → Twirl-SA6uh8pI.js} +16 -16
- package/dist/core/{VHS-Nwk0E-tf.js → VHS-Ch-bVeit.js} +68 -69
- package/dist/core/{VenetianBlinds-BZ0sS97G.js → VenetianBlinds-CboEoPIZ.js} +22 -23
- package/dist/core/{Vesica-Cf1KiSzK.js → Vesica-DmJWzk7E.js} +13 -12
- package/dist/core/{Vibrance-qWGvLkrW.js → Vibrance-7rW_G3qT.js} +7 -8
- package/dist/core/{VideoTexture-48ylVDvN.js → VideoTexture-Ctk5_1F8.js} +34 -39
- package/dist/core/{Vignette-CK_Li7v2.js → Vignette-DXtlR5LT.js} +20 -22
- package/dist/core/{Voronoi-DMYFDwIS.js → Voronoi-B0ZrQ6QO.js} +33 -37
- package/dist/core/{Water-D74wbHmn.js → Water-DfwGqSnM.js} +101 -108
- package/dist/core/{Watercolor-zo8-4Vqx.js → Watercolor-BAShYSu7.js} +305 -389
- package/dist/core/{WaveDistortion-BLrvGOzF.js → WaveDistortion-Cj4QBBKm.js} +80 -82
- package/dist/core/{WaveletNoise-a5OpO8-D.js → WaveletNoise-DYiU_ziD.js} +16 -14
- package/dist/core/{Weave-D1D3kuUg.js → Weave-DVefdB9i.js} +28 -31
- package/dist/core/{WebcamTexture-pBETyQYG.js → WebcamTexture-BO9jNxcP.js} +7 -7
- package/dist/core/{Wool-CMnWPdy9.js → Wool-D304TmpD.js} +2 -2
- package/dist/core/{WorleyNoise-BAEo0duh.js → WorleyNoise-B5FBTklZ.js} +69 -70
- package/dist/core/{ZoomBlur-CnBNmcfx.js → ZoomBlur-DxySopLs.js} +12 -12
- package/dist/core/agents-c-JjGH1b.js +1440 -0
- package/dist/core/blur-DKmdsW6d.js +2247 -0
- package/dist/core/compute-BoeIXi0l.js +31 -0
- package/dist/core/dataEncoding-CEmpiitu.js +24 -0
- package/dist/core/device-BODv_4aH.js +10 -0
- package/dist/core/edges-BZUKQxSE.js +29857 -0
- package/dist/core/{glass-sOqjtPJD.js → glass-BVqgjSPg.js} +164 -172
- package/dist/core/gpu/index.d.ts.map +1 -1
- package/dist/core/gpu/kit/agents.d.ts +17 -1
- package/dist/core/gpu/kit/agents.d.ts.map +1 -1
- package/dist/core/gpu/passManager.d.ts +6 -2
- package/dist/core/gpu/passManager.d.ts.map +1 -1
- package/dist/core/gpu/textures.d.ts +2 -2
- package/dist/core/gpu/textures.d.ts.map +1 -1
- package/dist/core/index.js +324 -226
- package/dist/core/media-Ds6MRfGR.js +757 -0
- package/dist/core/noise-Cq0KUOSC.js +12033 -0
- package/dist/core/noiseColor-CQyzqpVZ.js +103 -0
- package/dist/core/{noiseColor-CRpf22bk.js → noiseColor-DjCUZ_8u.js} +2 -2
- package/dist/core/noiseStylize-fKVcJbGK.js +359 -0
- package/dist/core/porters-DogLzpKT.js +991 -0
- package/dist/core/presetRenderer.d.ts.map +1 -1
- package/dist/core/registry.js +208 -199
- package/dist/core/sdf-o99ONcMJ.js +5174 -0
- package/dist/core/shaderRegistry-BSrnuqx-.js +425 -0
- package/dist/core/shaders/AngularBlur/index.js +5 -4
- package/dist/core/shaders/Arc/index.js +7 -4
- package/dist/core/shaders/Ascii/index.js +5 -4
- package/dist/core/shaders/Aurora/index.js +6 -4
- package/dist/core/shaders/BarShift/index.js +5 -4
- package/dist/core/shaders/BarnDoors/index.js +5 -4
- package/dist/core/shaders/Beam/index.js +5 -4
- package/dist/core/shaders/Bend/index.js +5 -4
- package/dist/core/shaders/Blob/index.js +5 -4
- package/dist/core/shaders/BlockDissolve/index.js +6 -4
- package/dist/core/shaders/BlockNoise/index.js +8 -5
- package/dist/core/shaders/BlueNoise/index.js +8 -5
- package/dist/core/shaders/Blur/index.js +6 -4
- package/dist/core/shaders/Boids/index.d.ts +3 -3
- package/dist/core/shaders/Boids/index.d.ts.map +1 -1
- package/dist/core/shaders/Boids/index.js +9 -5
- package/dist/core/shaders/BokehBlur/index.js +6 -4
- package/dist/core/shaders/BrickPattern/index.js +5 -4
- package/dist/core/shaders/BrightnessContrast/index.js +5 -4
- package/dist/core/shaders/BrushedMetal/index.js +11 -6
- package/dist/core/shaders/Bulge/index.js +5 -4
- package/dist/core/shaders/CRTScreen/index.js +5 -4
- package/dist/core/shaders/CarbonFiber/index.js +11 -6
- package/dist/core/shaders/Chalkboard/index.js +5 -4
- package/dist/core/shaders/ChannelBlur/index.js +6 -4
- package/dist/core/shaders/CheckerWipe/index.js +5 -4
- package/dist/core/shaders/Checkerboard/index.js +5 -4
- package/dist/core/shaders/Chevron/index.js +5 -4
- package/dist/core/shaders/ChromaFlow/index.js +6 -4
- package/dist/core/shaders/ChromaticAberration/index.js +5 -4
- package/dist/core/shaders/Circle/index.js +7 -4
- package/dist/core/shaders/ColorWheel/index.js +5 -4
- package/dist/core/shaders/CompressionArtifacts/index.js +5 -4
- package/dist/core/shaders/ConcentricSpin/index.js +5 -4
- package/dist/core/shaders/ConicGradient/index.js +5 -4
- package/dist/core/shaders/ContourLines/index.js +5 -4
- package/dist/core/shaders/CornerPin/index.js +5 -4
- package/dist/core/shaders/Crescent/index.js +7 -4
- package/dist/core/shaders/Cross/index.js +7 -4
- package/dist/core/shaders/Crystal/index.js +11 -6
- package/dist/core/shaders/CurlNoise/index.js +8 -5
- package/dist/core/shaders/CursorRipples/index.js +5 -4
- package/dist/core/shaders/CursorTrail/index.js +5 -4
- package/dist/core/shaders/DataMosh/index.js +5 -4
- package/dist/core/shaders/DiamondGradient/index.js +5 -4
- package/dist/core/shaders/DiamondWipe/index.js +5 -4
- package/dist/core/shaders/DiffuseBlur/index.js +5 -4
- package/dist/core/shaders/DisplacementMap/index.js +5 -4
- package/dist/core/shaders/Dither/index.js +5 -4
- package/dist/core/shaders/DotGrid/index.js +5 -4
- package/dist/core/shaders/DropShadow/index.js +5 -4
- package/dist/core/shaders/Duotone/index.js +5 -4
- package/dist/core/shaders/Ellipse/index.js +7 -4
- package/dist/core/shaders/Emboss/index.js +10 -6
- package/dist/core/shaders/Engraving/index.js +6 -4
- package/dist/core/shaders/ErosionNoise/index.js +8 -5
- package/dist/core/shaders/Exposure/index.js +5 -4
- package/dist/core/shaders/FallingLines/index.js +5 -4
- package/dist/core/shaders/FilmGrain/index.js +5 -4
- package/dist/core/shaders/FilmStock/index.js +6 -4
- package/dist/core/shaders/Flip/index.js +5 -4
- package/dist/core/shaders/FloatingParticles/index.d.ts +9 -4
- package/dist/core/shaders/FloatingParticles/index.d.ts.map +1 -1
- package/dist/core/shaders/FloatingParticles/index.js +9 -5
- package/dist/core/shaders/FlowField/index.js +6 -4
- package/dist/core/shaders/Flower/index.js +7 -4
- package/dist/core/shaders/FlowingGradient/index.js +6 -4
- package/dist/core/shaders/FlutedGlass/index.js +5 -4
- package/dist/core/shaders/Fog/index.js +5 -4
- package/dist/core/shaders/Form3D/index.js +5 -4
- package/dist/core/shaders/FractalNoise/index.js +7 -4
- package/dist/core/shaders/Frost/index.js +11 -6
- package/dist/core/shaders/GaborNoise/index.js +8 -5
- package/dist/core/shaders/Glass/index.js +11 -6
- package/dist/core/shaders/GlassTiles/index.js +5 -4
- package/dist/core/shaders/Glitch/index.d.ts +1 -1
- package/dist/core/shaders/Glitch/index.d.ts.map +1 -1
- package/dist/core/shaders/Glitch/index.js +5 -4
- package/dist/core/shaders/Glow/index.js +6 -4
- package/dist/core/shaders/Godrays/index.js +5 -4
- package/dist/core/shaders/Goo/index.js +10 -6
- package/dist/core/shaders/GradientMap/index.js +5 -4
- package/dist/core/shaders/Grayscale/index.js +5 -4
- package/dist/core/shaders/Grid/index.js +5 -4
- package/dist/core/shaders/GridDistortion/index.js +5 -4
- package/dist/core/shaders/Group/index.js +5 -4
- package/dist/core/shaders/HTMLInCanvas/index.js +5 -4
- package/dist/core/shaders/Halftone/index.js +5 -4
- package/dist/core/shaders/Heart/index.js +7 -4
- package/dist/core/shaders/Heatmap/index.js +11 -6
- package/dist/core/shaders/HexGrid/index.js +5 -4
- package/dist/core/shaders/Hologram/index.js +11 -6
- package/dist/core/shaders/Holographic/index.js +11 -6
- package/dist/core/shaders/HueShift/index.js +5 -4
- package/dist/core/shaders/ImageTexture/index.js +7 -5
- package/dist/core/shaders/InkFlow/index.js +5 -4
- package/dist/core/shaders/Invert/index.js +5 -4
- package/dist/core/shaders/IrisWipe/index.js +5 -4
- package/dist/core/shaders/IsometricCubes/index.js +5 -4
- package/dist/core/shaders/Kaleidoscope/index.js +5 -4
- package/dist/core/shaders/KeyFrames/index.js +5 -4
- package/dist/core/shaders/LensFlare/index.js +5 -4
- package/dist/core/shaders/LightEdge/index.js +11 -6
- package/dist/core/shaders/LightLeak/index.js +6 -4
- package/dist/core/shaders/LinearBlur/index.js +5 -4
- package/dist/core/shaders/LinearGradient/index.js +5 -4
- package/dist/core/shaders/LinearWipe/index.js +5 -4
- package/dist/core/shaders/LiquidMetal/index.js +11 -6
- package/dist/core/shaders/Liquify/index.js +5 -4
- package/dist/core/shaders/MagneticFilings/index.d.ts +0 -2
- package/dist/core/shaders/MagneticFilings/index.d.ts.map +1 -1
- package/dist/core/shaders/MagneticFilings/index.js +9 -5
- package/dist/core/shaders/Marble/index.js +6 -4
- package/dist/core/shaders/Mirror/index.js +5 -4
- package/dist/core/shaders/MultiPointGradient/index.js +5 -4
- package/dist/core/shaders/Neon/index.js +9 -5
- package/dist/core/shaders/NoiseDissolve/index.js +6 -4
- package/dist/core/shaders/ObjectTracker/index.js +6 -5
- package/dist/core/shaders/PagePeel/index.js +5 -4
- package/dist/core/shaders/Paper/index.js +6 -4
- package/dist/core/shaders/Parallelogram/index.js +7 -4
- package/dist/core/shaders/ParticleField/index.d.ts +10 -5
- package/dist/core/shaders/ParticleField/index.d.ts.map +1 -1
- package/dist/core/shaders/ParticleField/index.js +9 -5
- package/dist/core/shaders/ParticleFlow/index.d.ts +10 -4
- package/dist/core/shaders/ParticleFlow/index.d.ts.map +1 -1
- package/dist/core/shaders/ParticleFlow/index.js +9 -5
- package/dist/core/shaders/Particles/index.d.ts +4 -3
- package/dist/core/shaders/Particles/index.d.ts.map +1 -1
- package/dist/core/shaders/Particles/index.js +12 -6
- package/dist/core/shaders/PerlinNoise/index.js +8 -5
- package/dist/core/shaders/Perspective/index.js +5 -4
- package/dist/core/shaders/PixelSort/index.js +5 -4
- package/dist/core/shaders/PixelThrow/index.js +6 -4
- package/dist/core/shaders/Pixelate/index.js +5 -4
- package/dist/core/shaders/Plasma/index.js +6 -4
- package/dist/core/shaders/Plastic/index.js +11 -6
- package/dist/core/shaders/PolarCoordinates/index.js +5 -4
- package/dist/core/shaders/Polygon/index.js +7 -4
- package/dist/core/shaders/Posterize/index.js +5 -4
- package/dist/core/shaders/Prism/index.js +5 -4
- package/dist/core/shaders/ProgressiveBlur/index.js +6 -4
- package/dist/core/shaders/RadialGradient/index.js +5 -4
- package/dist/core/shaders/RadialWipe/index.js +5 -4
- package/dist/core/shaders/RandomBars/index.js +6 -4
- package/dist/core/shaders/ReactionDiffusion/index.js +5 -4
- package/dist/core/shaders/RectangularCoordinates/index.js +5 -4
- package/dist/core/shaders/ReflectivePlane/index.js +6 -4
- package/dist/core/shaders/Repeater/index.js +5 -4
- package/dist/core/shaders/Ring/index.js +7 -4
- package/dist/core/shaders/RippleWipe/index.js +5 -4
- package/dist/core/shaders/Ripples/index.js +5 -4
- package/dist/core/shaders/RoundedRect/index.js +7 -4
- package/dist/core/shaders/Saturation/index.js +5 -4
- package/dist/core/shaders/Scratches/index.js +8 -5
- package/dist/core/shaders/Sharpness/index.js +5 -4
- package/dist/core/shaders/Shatter/index.js +6 -4
- package/dist/core/shaders/SimplexNoise/index.js +7 -4
- package/dist/core/shaders/SineWave/index.js +5 -4
- package/dist/core/shaders/SliceWipe/index.js +5 -4
- package/dist/core/shaders/Smoke/index.js +5 -4
- package/dist/core/shaders/SmokeFill/index.js +10 -6
- package/dist/core/shaders/SmokeFlow/index.js +5 -4
- package/dist/core/shaders/Solarize/index.js +5 -4
- package/dist/core/shaders/SolidColor/index.js +2 -2
- package/dist/core/shaders/Spherize/index.js +5 -4
- package/dist/core/shaders/Spiral/index.js +5 -4
- package/dist/core/shaders/Star/index.js +7 -4
- package/dist/core/shaders/Stone/index.js +4 -3
- package/dist/core/shaders/Strands/index.js +5 -4
- package/dist/core/shaders/Stretch/index.js +5 -4
- package/dist/core/shaders/Stripes/index.js +5 -4
- package/dist/core/shaders/StudioBackground/index.js +5 -4
- package/dist/core/shaders/SunBurst/index.js +5 -4
- package/dist/core/shaders/Surface3D/index.d.ts +4 -2
- package/dist/core/shaders/Surface3D/index.d.ts.map +1 -1
- package/dist/core/shaders/Surface3D/index.js +7 -4
- package/dist/core/shaders/Swirl/index.js +5 -4
- package/dist/core/shaders/Teardrop/index.js +7 -4
- package/dist/core/shaders/Text/index.js +6 -5
- package/dist/core/shaders/ThinFilm/index.js +9 -5
- package/dist/core/shaders/TiltShift/index.js +6 -4
- package/dist/core/shaders/TimeTrail/index.d.ts +47 -1
- package/dist/core/shaders/TimeTrail/index.d.ts.map +1 -1
- package/dist/core/shaders/TimeTrail/index.js +7 -5
- package/dist/core/shaders/Tint/index.js +5 -4
- package/dist/core/shaders/Trapezoid/index.js +7 -4
- package/dist/core/shaders/TriangularGrid/index.js +5 -4
- package/dist/core/shaders/Tritone/index.js +5 -4
- package/dist/core/shaders/Truchet/index.js +5 -4
- package/dist/core/shaders/Twirl/index.js +5 -4
- package/dist/core/shaders/VHS/index.js +5 -4
- package/dist/core/shaders/VenetianBlinds/index.js +5 -4
- package/dist/core/shaders/Vesica/index.js +7 -4
- package/dist/core/shaders/Vibrance/index.js +5 -4
- package/dist/core/shaders/VideoTexture/index.js +6 -5
- package/dist/core/shaders/Vignette/index.js +5 -4
- package/dist/core/shaders/Voronoi/index.js +5 -4
- package/dist/core/shaders/Water/index.js +11 -6
- package/dist/core/shaders/Watercolor/index.d.ts +1 -1
- package/dist/core/shaders/Watercolor/index.d.ts.map +1 -1
- package/dist/core/shaders/Watercolor/index.js +6 -4
- package/dist/core/shaders/WaveDistortion/index.js +5 -4
- package/dist/core/shaders/WaveletNoise/index.js +8 -5
- package/dist/core/shaders/Weave/index.js +5 -4
- package/dist/core/shaders/WebcamTexture/index.js +7 -5
- package/dist/core/shaders/Wool/index.js +4 -3
- package/dist/core/shaders/WorleyNoise/index.js +5 -4
- package/dist/core/shaders/ZoomBlur/index.js +5 -4
- package/dist/core/shapeEffectBounds-Dg4GQ5vW.js +19213 -0
- package/dist/core/utilities/transformations/index.js +1 -1
- package/dist/js/bundle.js +188 -184
- package/dist/js/createShader.js +1 -1
- package/dist/react/Shader.js +1 -1
- package/dist/react/bundle.js +197 -193
- package/dist/registry.js +0 -1
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/svelte/index.js +1 -1
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/package.json +1 -1
- package/dist/core/coords-BkIjixe_.js +0 -55724
- package/dist/core/noiseStylize-J6sFKoTh.js +0 -65
- package/dist/core/porters-BmU6G9TR.js +0 -321
- package/dist/core/shaderRegistry-D75z2sND.js +0 -425
- package/dist/core/shapeEffectBounds-PQqKLQXO.js +0 -406
- /package/dist/core/{fonts-DwhbVe2B.js → fonts-v_F1SFl9.js} +0 -0
- /package/dist/core/{naturalSize-Caz3-kRv.js → naturalSize-B679wTgN.js} +0 -0
- /package/dist/core/{transformations-t0d2-uSX.js → transformations-CsPUHppB.js} +0 -0
package/dist/core/index.js
CHANGED
|
@@ -1,205 +1,212 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $ as updateFieldValue, C as isIdentityBoundingBox, D as screenUVToBoxLocal$1, E as needsTransformation, Q as createUniformStore, Qt as struct, S as DEFAULT_BOUNDING_BOX, T as boundingBoxToUVParams, Xt as mul, Z as FieldHandle, et as src_default, h as composeNodeTree, m as collectStructuralHashInputs, nt as std_exports, sn as f32, tn as vec2f, tt as common_exports, u as SHARED_SAMPLER_LAYOUT, w as resolveBoundingBox } from "./edges-BZUKQxSE.js";
|
|
2
2
|
import { a as getWebGPUSupport, c as isWebGPUSupported, i as getGpuUnusableReason, l as markGpuUnusable, n as debugError, o as isGpuUnavailableError, r as debugWarn, s as isShadersDebug, t as GpuUnavailableError, u as setShadersDebug } from "./support-6QRFK3xB.js";
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
13
|
-
import "./
|
|
14
|
-
import "./
|
|
15
|
-
import "./
|
|
16
|
-
import "./
|
|
17
|
-
import "./
|
|
18
|
-
import "./
|
|
19
|
-
import "./
|
|
20
|
-
import "./
|
|
21
|
-
import "./
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import "./
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
28
|
-
import "./
|
|
29
|
-
import
|
|
30
|
-
import "./
|
|
31
|
-
import "./
|
|
32
|
-
import "./
|
|
33
|
-
import "./
|
|
34
|
-
import "./
|
|
35
|
-
import "./
|
|
36
|
-
import "./
|
|
37
|
-
import "./
|
|
38
|
-
import "./
|
|
39
|
-
import "./
|
|
40
|
-
import "./
|
|
41
|
-
import "./
|
|
42
|
-
import "./
|
|
43
|
-
import "./
|
|
44
|
-
import "./
|
|
45
|
-
import "./
|
|
46
|
-
import "./
|
|
47
|
-
import "./
|
|
48
|
-
import "./
|
|
49
|
-
import "./
|
|
50
|
-
import "./
|
|
51
|
-
import "./
|
|
52
|
-
import "./
|
|
53
|
-
import "./
|
|
54
|
-
import "./
|
|
55
|
-
import "./
|
|
56
|
-
import "./
|
|
57
|
-
import "./
|
|
58
|
-
import "./
|
|
59
|
-
import "./
|
|
60
|
-
import "./
|
|
61
|
-
import "./
|
|
62
|
-
import "./
|
|
63
|
-
import "./
|
|
64
|
-
import "./
|
|
65
|
-
import "./
|
|
66
|
-
import "./
|
|
67
|
-
import "./
|
|
68
|
-
import "./
|
|
69
|
-
import "./
|
|
70
|
-
import "./
|
|
71
|
-
import "./
|
|
72
|
-
import "./
|
|
73
|
-
import "./
|
|
74
|
-
import "./
|
|
75
|
-
import "./
|
|
76
|
-
import "./
|
|
77
|
-
import "./
|
|
78
|
-
import "./
|
|
79
|
-
import "./
|
|
80
|
-
import "./
|
|
81
|
-
import "./
|
|
82
|
-
import "./
|
|
83
|
-
import "./
|
|
84
|
-
import "./
|
|
85
|
-
import "./
|
|
86
|
-
import "./
|
|
87
|
-
import "./
|
|
88
|
-
import "./
|
|
89
|
-
import "./
|
|
90
|
-
import "./
|
|
91
|
-
import "./
|
|
92
|
-
import "./
|
|
93
|
-
import "./
|
|
94
|
-
import "./
|
|
95
|
-
import "./
|
|
96
|
-
import "./
|
|
97
|
-
import "./
|
|
98
|
-
import "./
|
|
99
|
-
import "./
|
|
100
|
-
import "./
|
|
101
|
-
import "./
|
|
102
|
-
import "./
|
|
103
|
-
import "./
|
|
104
|
-
import "./
|
|
105
|
-
import "./
|
|
106
|
-
import "./
|
|
107
|
-
import "./
|
|
108
|
-
import "./
|
|
109
|
-
import "./
|
|
110
|
-
import "./
|
|
111
|
-
import "./
|
|
112
|
-
import "./
|
|
113
|
-
import "./
|
|
114
|
-
import "./
|
|
115
|
-
import "./
|
|
116
|
-
import "./
|
|
117
|
-
import "./
|
|
118
|
-
import "./
|
|
119
|
-
import "./
|
|
120
|
-
import "./
|
|
121
|
-
import "./
|
|
122
|
-
import "./
|
|
123
|
-
import "./
|
|
124
|
-
import "./
|
|
125
|
-
import "./
|
|
126
|
-
import "./
|
|
127
|
-
import "./
|
|
128
|
-
import "./
|
|
129
|
-
import "./
|
|
130
|
-
import "./
|
|
131
|
-
import "./
|
|
132
|
-
import "./
|
|
133
|
-
import "./
|
|
134
|
-
import "./
|
|
135
|
-
import "./
|
|
136
|
-
import "./
|
|
137
|
-
import "./
|
|
138
|
-
import "./
|
|
139
|
-
import "./
|
|
140
|
-
import "./
|
|
141
|
-
import "./
|
|
142
|
-
import "./
|
|
143
|
-
import "./
|
|
144
|
-
import "./
|
|
145
|
-
import "./
|
|
146
|
-
import "./
|
|
147
|
-
import "./
|
|
148
|
-
import "./
|
|
149
|
-
import "./
|
|
150
|
-
import "./
|
|
151
|
-
import "./
|
|
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
|
|
3
|
+
import { C as packConvertedStops, _ as resolveStops, a as boxHalfExtentsUV, c as isDimensionalProp, d as setShaderCanvasDimensions, f as colorToRGBA, g as colorStopsTransform, i as bindingSizePx, l as isDimensionalValue, m as MAX_COLOR_STOPS, n as rootPassthrough, o as buildDimensionalPlan, p as setColorSpaceModeGpu, r as createGpuUniformsMap, s as buildExtraSizeProps, u as resolveDimensionalProp, v as sortStops, w as packStops } from "./porters-DogLzpKT.js";
|
|
4
|
+
import "./noise-Cq0KUOSC.js";
|
|
5
|
+
import "./noiseColor-CQyzqpVZ.js";
|
|
6
|
+
import "./noiseStylize-fKVcJbGK.js";
|
|
7
|
+
import { t as createComputeDispatcher } from "./compute-BoeIXi0l.js";
|
|
8
|
+
import "./blur-DKmdsW6d.js";
|
|
9
|
+
import "./dataEncoding-CEmpiitu.js";
|
|
10
|
+
import "./sdf-o99ONcMJ.js";
|
|
11
|
+
import { n as maxPixelRatioForDevice } from "./device-BODv_4aH.js";
|
|
12
|
+
import { a as SVG3D_DEFAULTS, c as isSvg3dShapeType, i as SHAPE3D_TYPES, l as isVolumetricShapeType, o as SVG3D_TYPES, r as SHAPE3D_DEFAULTS, s as is3dShapeType, u as shape3dBoundingRadius } from "./shapeEffectBounds-Dg4GQ5vW.js";
|
|
13
|
+
import "./glass-BVqgjSPg.js";
|
|
14
|
+
import "./Neon-DD8qY6H9.js";
|
|
15
|
+
import "./Emboss-ZiPslqzl.js";
|
|
16
|
+
import "./Form3D-D0ji-MeC.js";
|
|
17
|
+
import "./ThinFilm-d7IlUY62.js";
|
|
18
|
+
import "./media-Ds6MRfGR.js";
|
|
19
|
+
import "./agents-c-JjGH1b.js";
|
|
20
|
+
import { o as transformColorSpace } from "./transformations-CsPUHppB.js";
|
|
21
|
+
import { n as onNaturalSizeChange, r as registerNaturalSize, t as getNaturalSize } from "./naturalSize-B679wTgN.js";
|
|
22
|
+
import "./AngularBlur-4jt7bNoF.js";
|
|
23
|
+
import "./Arc-DXIfbBgd.js";
|
|
24
|
+
import "./Ascii-GDof03Ca.js";
|
|
25
|
+
import "./Aurora-CS4vewUW.js";
|
|
26
|
+
import "./BarnDoors-Dw9K-amf.js";
|
|
27
|
+
import "./BarShift-BtnYLQ0B.js";
|
|
28
|
+
import "./Beam-D_cyaMjJ.js";
|
|
29
|
+
import "./Bend-CSs5UIh8.js";
|
|
30
|
+
import "./Blob-h25zA5WH.js";
|
|
31
|
+
import "./BlockDissolve-CKN_KvLP.js";
|
|
32
|
+
import "./noiseColor-DjCUZ_8u.js";
|
|
33
|
+
import "./BlockNoise-DhKyd_F7.js";
|
|
34
|
+
import "./BlueNoise-Auhzq4x5.js";
|
|
35
|
+
import "./Blur-CcxMqYsu.js";
|
|
36
|
+
import "./Boids-D51U46GF.js";
|
|
37
|
+
import "./BokehBlur-Cfaqbh3I.js";
|
|
38
|
+
import "./BrickPattern-tASwilX0.js";
|
|
39
|
+
import "./BrightnessContrast-ZCKqJW7i.js";
|
|
40
|
+
import "./BrushedMetal-B6gSVB28.js";
|
|
41
|
+
import "./Bulge-dCYtWP4S.js";
|
|
42
|
+
import "./CarbonFiber-Do9EONKv.js";
|
|
43
|
+
import "./Chalkboard-0hyyGnYl.js";
|
|
44
|
+
import "./ChannelBlur-DcZKCKXi.js";
|
|
45
|
+
import "./Checkerboard-CRnfu63u.js";
|
|
46
|
+
import "./CheckerWipe-BIE62tJ1.js";
|
|
47
|
+
import "./Chevron-Ld_v4z9T.js";
|
|
48
|
+
import "./ChromaFlow-CTWeauIr.js";
|
|
49
|
+
import "./ChromaticAberration-CxuOb68m.js";
|
|
50
|
+
import "./Circle-XP1B5rsN.js";
|
|
51
|
+
import "./ColorWheel-CFU_OmOW.js";
|
|
52
|
+
import "./CompressionArtifacts-Bc9xTdQP.js";
|
|
53
|
+
import "./ConcentricSpin-DTJytpAk.js";
|
|
54
|
+
import "./ConicGradient-C-4uDmQj.js";
|
|
55
|
+
import "./ContourLines-C8p6f-1y.js";
|
|
56
|
+
import "./CornerPin-CB92kX10.js";
|
|
57
|
+
import "./Crescent-Dk4nlG8T.js";
|
|
58
|
+
import "./Cross-DsnI1U8g.js";
|
|
59
|
+
import "./CRTScreen-CVY1lOGL.js";
|
|
60
|
+
import "./Crystal-CR_sG2y7.js";
|
|
61
|
+
import "./CurlNoise-DJ27ih0F.js";
|
|
62
|
+
import "./CursorRipples-CuO3sZga.js";
|
|
63
|
+
import "./CursorTrail-d4xx4QpM.js";
|
|
64
|
+
import "./DataMosh-BhvE-2yC.js";
|
|
65
|
+
import "./DiamondGradient-CtOVKrYf.js";
|
|
66
|
+
import "./DiamondWipe-D-yiQBVj.js";
|
|
67
|
+
import "./DiffuseBlur-BDf-Czxz.js";
|
|
68
|
+
import "./DisplacementMap-B_jf_2lj.js";
|
|
69
|
+
import "./Dither-D3P6EJU8.js";
|
|
70
|
+
import "./DotGrid-BnSVhJlh.js";
|
|
71
|
+
import "./DropShadow-BSKVH3n3.js";
|
|
72
|
+
import "./Duotone-DfjYuK2u.js";
|
|
73
|
+
import "./Ellipse-D7_1QKaa.js";
|
|
74
|
+
import "./Engraving-DsfkKajz.js";
|
|
75
|
+
import "./ErosionNoise-SELArv9H.js";
|
|
76
|
+
import "./Exposure-A7WlTOti.js";
|
|
77
|
+
import "./FallingLines-9PRMb_Ou.js";
|
|
78
|
+
import "./FilmGrain-SXzVDesw.js";
|
|
79
|
+
import "./FilmStock-RK4fk4m0.js";
|
|
80
|
+
import "./Flip-DjoNWG4v.js";
|
|
81
|
+
import "./FloatingParticles-D7vUF5g7.js";
|
|
82
|
+
import "./Flower-BfehbmmG.js";
|
|
83
|
+
import "./FlowField-tHrXhd1b.js";
|
|
84
|
+
import "./FlowingGradient-BTKjkx5F.js";
|
|
85
|
+
import "./FlutedGlass-uFT7iy_9.js";
|
|
86
|
+
import "./Fog-Cu1CMATa.js";
|
|
87
|
+
import "./FractalNoise-D9HYiOdr.js";
|
|
88
|
+
import "./Frost-DQZZxdTk.js";
|
|
89
|
+
import "./GaborNoise-D7BP0K4g.js";
|
|
90
|
+
import "./Glass-CzCVnGn-.js";
|
|
91
|
+
import "./GlassTiles-DJzPPqwz.js";
|
|
92
|
+
import "./Glitch-D1Dx8__X.js";
|
|
93
|
+
import "./Glow-Bd9_o_Kv.js";
|
|
94
|
+
import "./Godrays-DRPRWGPm.js";
|
|
95
|
+
import "./Goo-28A_pNBg.js";
|
|
96
|
+
import "./GradientMap-D8dv-1AX.js";
|
|
97
|
+
import "./Grayscale-BlVXBVwW.js";
|
|
98
|
+
import "./Grid-D9vlHvs1.js";
|
|
99
|
+
import "./GridDistortion-BpqDvqj6.js";
|
|
100
|
+
import "./Group-bwQnJRec.js";
|
|
101
|
+
import "./Halftone-B_WouxiP.js";
|
|
102
|
+
import "./Heart-Bmt2TLNz.js";
|
|
103
|
+
import "./Heatmap-Ruef741_.js";
|
|
104
|
+
import "./HexGrid-By9k0YuI.js";
|
|
105
|
+
import "./Hologram-Cf25ONOE.js";
|
|
106
|
+
import "./Holographic-C9RzYykt.js";
|
|
107
|
+
import "./HTMLInCanvas-gCf64ozE.js";
|
|
108
|
+
import "./HueShift-V3gQVuIo.js";
|
|
109
|
+
import "./ImageTexture-DAUR2N5Q.js";
|
|
110
|
+
import "./InkFlow-DlP1gmr4.js";
|
|
111
|
+
import "./Invert-K648khvD.js";
|
|
112
|
+
import "./IrisWipe-Clkd_5CA.js";
|
|
113
|
+
import "./IsometricCubes-CzfAwpQ5.js";
|
|
114
|
+
import "./Kaleidoscope-B9k6HkNn.js";
|
|
115
|
+
import "./KeyFrames-DX6JFhsy.js";
|
|
116
|
+
import "./LensFlare-G73cvrIG.js";
|
|
117
|
+
import "./LightEdge-D3i7HUR9.js";
|
|
118
|
+
import "./LightLeak-B8yGreP-.js";
|
|
119
|
+
import "./LinearBlur-BEzNPe0e.js";
|
|
120
|
+
import "./LinearGradient-XjXyaoii.js";
|
|
121
|
+
import "./LinearWipe-Doj9aS5n.js";
|
|
122
|
+
import "./LiquidMetal-CWV_RQip.js";
|
|
123
|
+
import "./Liquify-DWrgFruC.js";
|
|
124
|
+
import "./MagneticFilings-Co0V07-1.js";
|
|
125
|
+
import "./Marble-D13mDBvL.js";
|
|
126
|
+
import "./Mirror-DvukM_eG.js";
|
|
127
|
+
import "./MultiPointGradient-CyK_Ty9a.js";
|
|
128
|
+
import "./NoiseDissolve-CeX3VO8J.js";
|
|
129
|
+
import "./fonts-v_F1SFl9.js";
|
|
130
|
+
import "./ObjectTracker-BWo8H1kh.js";
|
|
131
|
+
import "./PagePeel-BL5IeBeD.js";
|
|
132
|
+
import "./Paper-BAq9MqtG.js";
|
|
133
|
+
import "./Parallelogram-DYzFG9ci.js";
|
|
134
|
+
import "./ParticleField-Bl4uztO7.js";
|
|
135
|
+
import "./ParticleFlow-RPxLP8HC.js";
|
|
136
|
+
import "./Particles-BDEX4Fw2.js";
|
|
137
|
+
import "./PerlinNoise-BtXlaEd8.js";
|
|
138
|
+
import "./Perspective-CdU5nAEn.js";
|
|
139
|
+
import "./Pixelate-C2OQUtqr.js";
|
|
140
|
+
import "./PixelSort-C7TX1ClH.js";
|
|
141
|
+
import "./PixelThrow-DpKEZPMK.js";
|
|
142
|
+
import "./Plasma-DLq9HroF.js";
|
|
143
|
+
import "./Plastic-C2hiOaXw.js";
|
|
144
|
+
import "./PolarCoordinates-Bumv-Hi3.js";
|
|
145
|
+
import "./Polygon-DOpR58g4.js";
|
|
146
|
+
import "./Posterize-CVNOkDme.js";
|
|
147
|
+
import "./Prism-CCQ1BsBL.js";
|
|
148
|
+
import "./ProgressiveBlur-Cprr1XSE.js";
|
|
149
|
+
import "./RadialGradient-CsmCSySC.js";
|
|
150
|
+
import "./RadialWipe-BAnsqol4.js";
|
|
151
|
+
import "./RandomBars-DdhtxO8o.js";
|
|
152
|
+
import "./ReactionDiffusion-Bih4xEtV.js";
|
|
153
|
+
import "./RectangularCoordinates-CKKA2oY1.js";
|
|
154
|
+
import "./ReflectivePlane-u3Tje37M.js";
|
|
155
|
+
import "./Repeater-C-agsqBS.js";
|
|
156
|
+
import "./Ring-Cj7bR89h.js";
|
|
157
|
+
import "./Ripples-B88TeopS.js";
|
|
158
|
+
import "./RippleWipe-VL1MMd5o.js";
|
|
159
|
+
import "./RoundedRect-jn8_QLrT.js";
|
|
160
|
+
import "./Saturation-dCNIhHq2.js";
|
|
161
|
+
import "./Scratches-Dz_1Ptk0.js";
|
|
162
|
+
import "./Sharpness-Bxq4YiRL.js";
|
|
163
|
+
import "./Shatter-DsuYUr-1.js";
|
|
164
|
+
import "./SimplexNoise-CvalBPNF.js";
|
|
165
|
+
import "./SineWave-XPK5BsPB.js";
|
|
166
|
+
import "./SliceWipe-gSs_VRwf.js";
|
|
167
|
+
import "./Smoke-kzRXFLW9.js";
|
|
168
|
+
import "./SmokeFill-DQZeqiwX.js";
|
|
169
|
+
import "./SmokeFlow-n23YvKoI.js";
|
|
170
|
+
import "./Solarize-DINiQSz1.js";
|
|
171
|
+
import "./SolidColor-Cu_9b_my.js";
|
|
172
|
+
import "./Spherize-BLY2eqBV.js";
|
|
173
|
+
import "./Spiral-CWCmvI3m.js";
|
|
174
|
+
import "./Star-9WSeF-vW.js";
|
|
175
|
+
import "./Stone-CVO2Ey8i.js";
|
|
176
|
+
import "./Strands-D9Sz1vX9.js";
|
|
177
|
+
import "./Stretch-DMT2Y6kN.js";
|
|
178
|
+
import "./Stripes-DPVbOQkX.js";
|
|
179
|
+
import "./StudioBackground-5JgYClrr.js";
|
|
180
|
+
import "./SunBurst-Din5CIAU.js";
|
|
181
|
+
import "./Surface3D-CW2ApEgt.js";
|
|
182
|
+
import "./Swirl-DrchXPfh.js";
|
|
183
|
+
import "./Teardrop-CDt_XA4d.js";
|
|
184
|
+
import { a as measureTextBlock, i as measureText, o as wrapLines } from "./Text-o_dubJeo.js";
|
|
185
|
+
import "./TiltShift-DJVcMb_M.js";
|
|
186
|
+
import "./TimeTrail-D1Gir7BK.js";
|
|
187
|
+
import "./Tint-Cak_PyOJ.js";
|
|
188
|
+
import "./Trapezoid-DnFhlKCD.js";
|
|
189
|
+
import "./TriangularGrid-BE9CgVlb.js";
|
|
190
|
+
import "./Tritone-mqU9b4YZ.js";
|
|
191
|
+
import "./Truchet-yLdaw6z4.js";
|
|
192
|
+
import "./Twirl-SA6uh8pI.js";
|
|
193
|
+
import "./VenetianBlinds-CboEoPIZ.js";
|
|
194
|
+
import "./Vesica-DmJWzk7E.js";
|
|
195
|
+
import "./VHS-Ch-bVeit.js";
|
|
196
|
+
import "./Vibrance-7rW_G3qT.js";
|
|
197
|
+
import "./VideoTexture-Ctk5_1F8.js";
|
|
198
|
+
import "./Vignette-DXtlR5LT.js";
|
|
199
|
+
import "./Voronoi-B0ZrQ6QO.js";
|
|
200
|
+
import "./Water-DfwGqSnM.js";
|
|
201
|
+
import "./Watercolor-BAShYSu7.js";
|
|
202
|
+
import "./WaveDistortion-Cj4QBBKm.js";
|
|
203
|
+
import "./WaveletNoise-DYiU_ziD.js";
|
|
204
|
+
import "./Weave-DVefdB9i.js";
|
|
205
|
+
import "./WebcamTexture-BO9jNxcP.js";
|
|
206
|
+
import "./Wool-D304TmpD.js";
|
|
207
|
+
import "./WorleyNoise-B5FBTklZ.js";
|
|
208
|
+
import "./ZoomBlur-DxySopLs.js";
|
|
209
|
+
import { t as getAllShaders } from "./shaderRegistry-BSrnuqx-.js";
|
|
203
210
|
var OPTIONAL_FEATURES = ["float32-filterable", "timestamp-query"];
|
|
204
211
|
var rootsByDevice = /* @__PURE__ */ new WeakMap();
|
|
205
212
|
var lostCallbacks = /* @__PURE__ */ new WeakMap();
|
|
@@ -211,7 +218,7 @@ async function acquireRoot(options = {}) {
|
|
|
211
218
|
const device = options.device;
|
|
212
219
|
let root = rootsByDevice.get(device);
|
|
213
220
|
if (!root) {
|
|
214
|
-
root =
|
|
221
|
+
root = src_default.initFromDevice({ device });
|
|
215
222
|
rootsByDevice.set(device, root);
|
|
216
223
|
}
|
|
217
224
|
const release$1 = wireDeviceLost(root, options.onDeviceLost);
|
|
@@ -267,7 +274,7 @@ async function createOwnRoot() {
|
|
|
267
274
|
if (typeof navigator === "undefined" || !navigator.gpu) throw new GpuUnavailableError("unsupported", "[gpu] WebGPU is not available in this environment (navigator.gpu is undefined).");
|
|
268
275
|
let root;
|
|
269
276
|
try {
|
|
270
|
-
root = await
|
|
277
|
+
root = await src_default.init({
|
|
271
278
|
adapter: { powerPreference: "high-performance" },
|
|
272
279
|
device: { optionalFeatures: OPTIONAL_FEATURES }
|
|
273
280
|
});
|
|
@@ -307,6 +314,88 @@ function wireDeviceLost(root, onDeviceLost) {
|
|
|
307
314
|
set.add(onDeviceLost);
|
|
308
315
|
return () => set.delete(onDeviceLost);
|
|
309
316
|
}
|
|
317
|
+
function createAnimatedTimeState() {
|
|
318
|
+
const state = {
|
|
319
|
+
value: 0,
|
|
320
|
+
advance(deltaTime, speed) {
|
|
321
|
+
state.value += deltaTime * speed;
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
return state;
|
|
325
|
+
}
|
|
326
|
+
var accumulatedTimeCache = /* @__PURE__ */ new WeakMap();
|
|
327
|
+
function getAnimatedTimeState(key) {
|
|
328
|
+
let state = accumulatedTimeCache.get(key);
|
|
329
|
+
if (!state) {
|
|
330
|
+
state = createAnimatedTimeState();
|
|
331
|
+
accumulatedTimeCache.set(key, state);
|
|
332
|
+
}
|
|
333
|
+
return state;
|
|
334
|
+
}
|
|
335
|
+
const SystemUniforms = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(struct({
|
|
336
|
+
time: f32,
|
|
337
|
+
viewportSize: vec2f,
|
|
338
|
+
logicalViewportSize: vec2f,
|
|
339
|
+
aspect: f32,
|
|
340
|
+
pointer: vec2f,
|
|
341
|
+
pointerActive: f32
|
|
342
|
+
}), "SystemUniforms");
|
|
343
|
+
src_default.fn([vec2f, vec2f], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewportSize) => {
|
|
344
|
+
"use gpu";
|
|
345
|
+
return mul(uv, viewportSize);
|
|
346
|
+
}), {
|
|
347
|
+
v: 1,
|
|
348
|
+
name: void 0,
|
|
349
|
+
ast: {
|
|
350
|
+
"params": [{
|
|
351
|
+
"type": "i",
|
|
352
|
+
"name": "uv"
|
|
353
|
+
}, {
|
|
354
|
+
"type": "i",
|
|
355
|
+
"name": "viewportSize"
|
|
356
|
+
}],
|
|
357
|
+
"body": [0, [[10, [
|
|
358
|
+
6,
|
|
359
|
+
[
|
|
360
|
+
7,
|
|
361
|
+
"std",
|
|
362
|
+
"mul"
|
|
363
|
+
],
|
|
364
|
+
["uv", "viewportSize"]
|
|
365
|
+
]]]],
|
|
366
|
+
"externalNames": ["std"]
|
|
367
|
+
},
|
|
368
|
+
externals: () => ({ std: std_exports })
|
|
369
|
+
}) && $.f)({}));
|
|
370
|
+
src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((viewportSize) => {
|
|
371
|
+
"use gpu";
|
|
372
|
+
return __tsover_div(viewportSize.x, viewportSize.y);
|
|
373
|
+
}), {
|
|
374
|
+
v: 1,
|
|
375
|
+
name: void 0,
|
|
376
|
+
ast: {
|
|
377
|
+
"params": [{
|
|
378
|
+
"type": "i",
|
|
379
|
+
"name": "viewportSize"
|
|
380
|
+
}],
|
|
381
|
+
"body": [0, [[10, [
|
|
382
|
+
1,
|
|
383
|
+
[
|
|
384
|
+
7,
|
|
385
|
+
"viewportSize",
|
|
386
|
+
"x"
|
|
387
|
+
],
|
|
388
|
+
"/",
|
|
389
|
+
[
|
|
390
|
+
7,
|
|
391
|
+
"viewportSize",
|
|
392
|
+
"y"
|
|
393
|
+
]
|
|
394
|
+
]]]],
|
|
395
|
+
"externalNames": []
|
|
396
|
+
},
|
|
397
|
+
externals: () => ({})
|
|
398
|
+
}) && $.f)({}));
|
|
310
399
|
function structuralHash(inputs) {
|
|
311
400
|
let h = 2166136261;
|
|
312
401
|
const joined = inputs.join("");
|
|
@@ -409,7 +498,7 @@ function createPassManager(root, options) {
|
|
|
409
498
|
const rttFormat = options.rttFormat ?? "rgba16float";
|
|
410
499
|
const deviceMaxSampled = root.device?.limits?.maxSampledTexturesPerShaderStage;
|
|
411
500
|
const maxSampled = options.maxSampledTextures ?? (typeof deviceMaxSampled === "number" && deviceMaxSampled > 0 ? deviceMaxSampled : 16);
|
|
412
|
-
const vertex = options.fullScreenTriangle ??
|
|
501
|
+
const vertex = options.fullScreenTriangle ?? common_exports.fullScreenTriangle;
|
|
413
502
|
const rttTextures = /* @__PURE__ */ new Map();
|
|
414
503
|
const liveTextures = /* @__PURE__ */ new Set();
|
|
415
504
|
let current = null;
|
|
@@ -608,15 +697,18 @@ function createPassManager(root, options) {
|
|
|
608
697
|
if (pass.mediaReads && pass.mediaSnapshot && current?.mediaResources) for (const key of pass.mediaReads) pass.mediaSnapshot.set(key, current.mediaResources[key].texture);
|
|
609
698
|
}
|
|
610
699
|
function resize(width, height) {
|
|
611
|
-
|
|
612
|
-
if (
|
|
700
|
+
let recreated = false;
|
|
701
|
+
for (const rt of rttTextures.values()) if (rt.resize(width, height)) recreated = true;
|
|
702
|
+
if (!current) return recreated;
|
|
613
703
|
current.size = {
|
|
614
704
|
width,
|
|
615
705
|
height
|
|
616
706
|
};
|
|
707
|
+
if (!recreated) return false;
|
|
617
708
|
for (const spec of current.computeSteps) spec.bindInputs?.((key) => rttTextures.get(key) ?? current.mediaResources?.[key]);
|
|
618
709
|
for (const pass of current.rttPasses) rebindPassTextures(pass);
|
|
619
710
|
rebindPassTextures(current.finalPass);
|
|
711
|
+
return true;
|
|
620
712
|
}
|
|
621
713
|
return {
|
|
622
714
|
setComposition,
|
|
@@ -773,11 +865,12 @@ function createTextureManager(root) {
|
|
|
773
865
|
inner.generateMipmaps();
|
|
774
866
|
},
|
|
775
867
|
resize(w, h) {
|
|
776
|
-
if (w === width && h === height) return;
|
|
868
|
+
if (w === width && h === height) return false;
|
|
777
869
|
inner.destroy();
|
|
778
870
|
width = w;
|
|
779
871
|
height = h;
|
|
780
872
|
inner = build(w, h);
|
|
873
|
+
return true;
|
|
781
874
|
},
|
|
782
875
|
destroy() {
|
|
783
876
|
inner.destroy();
|
|
@@ -951,9 +1044,9 @@ function mediaKey(type, props) {
|
|
|
951
1044
|
}
|
|
952
1045
|
function explicitBoxSize(bbox, cw, ch) {
|
|
953
1046
|
if (!bbox || typeof bbox !== "object") return null;
|
|
954
|
-
const dimPx = (d
|
|
955
|
-
if (!d
|
|
956
|
-
return d
|
|
1047
|
+
const dimPx = (d, dim) => {
|
|
1048
|
+
if (!d || typeof d !== "object" || typeof d.value !== "number") return null;
|
|
1049
|
+
return d.unit === "px" ? d.value : d.value * dim;
|
|
957
1050
|
};
|
|
958
1051
|
const w = dimPx(bbox.width, cw);
|
|
959
1052
|
const h = dimPx(bbox.height, ch);
|
|
@@ -1875,17 +1968,17 @@ function shaderRendererGPU() {
|
|
|
1875
1968
|
});
|
|
1876
1969
|
inits.push({
|
|
1877
1970
|
name: "_opacity",
|
|
1878
|
-
schema:
|
|
1971
|
+
schema: f32,
|
|
1879
1972
|
initial: node.metadata.opacity ?? 1
|
|
1880
1973
|
});
|
|
1881
1974
|
if (node.definition.animatedTime) inits.push({
|
|
1882
1975
|
name: "_animTime",
|
|
1883
|
-
schema:
|
|
1976
|
+
schema: f32,
|
|
1884
1977
|
initial: getAnimatedTimeState(animatedTimeKey(node)).value
|
|
1885
1978
|
});
|
|
1886
1979
|
if (node.definition.extraAnimatedTimes) for (const [key, speedProp] of Object.entries(node.definition.extraAnimatedTimes)) inits.push({
|
|
1887
1980
|
name: `_animTime_${key}`,
|
|
1888
|
-
schema:
|
|
1981
|
+
schema: f32,
|
|
1889
1982
|
initial: getAnimatedTimeState(extraAnimatedTimeKey(node, speedProp)).value
|
|
1890
1983
|
});
|
|
1891
1984
|
const extraFields = node.definition.extraFields;
|
|
@@ -1898,7 +1991,7 @@ function shaderRendererGPU() {
|
|
|
1898
1991
|
const tf = transformFieldValues(node);
|
|
1899
1992
|
for (const [k, v] of Object.entries(tf)) inits.push({
|
|
1900
1993
|
name: `_xform_${k}`,
|
|
1901
|
-
schema:
|
|
1994
|
+
schema: f32,
|
|
1902
1995
|
initial: v
|
|
1903
1996
|
});
|
|
1904
1997
|
}
|
|
@@ -1906,7 +1999,7 @@ function shaderRendererGPU() {
|
|
|
1906
1999
|
const bb = bboxFieldValues(node);
|
|
1907
2000
|
if (bb) for (const [k, v] of Object.entries(bb)) inits.push({
|
|
1908
2001
|
name: `_bbox_${k}`,
|
|
1909
|
-
schema:
|
|
2002
|
+
schema: f32,
|
|
1910
2003
|
initial: v
|
|
1911
2004
|
});
|
|
1912
2005
|
}
|
|
@@ -1919,7 +2012,7 @@ function shaderRendererGPU() {
|
|
|
1919
2012
|
};
|
|
1920
2013
|
for (const [k, v] of Object.entries(cb)) inits.push({
|
|
1921
2014
|
name: `_childBounds_${k}`,
|
|
1922
|
-
schema:
|
|
2015
|
+
schema: f32,
|
|
1923
2016
|
initial: v
|
|
1924
2017
|
});
|
|
1925
2018
|
}
|
|
@@ -1932,48 +2025,48 @@ function shaderRendererGPU() {
|
|
|
1932
2025
|
const mv = node.mapValues[prop];
|
|
1933
2026
|
inits.push({
|
|
1934
2027
|
name: `_map_${prop}_inputMin`,
|
|
1935
|
-
schema:
|
|
2028
|
+
schema: f32,
|
|
1936
2029
|
initial: mv.inputMin
|
|
1937
2030
|
});
|
|
1938
2031
|
inits.push({
|
|
1939
2032
|
name: `_map_${prop}_inputMax`,
|
|
1940
|
-
schema:
|
|
2033
|
+
schema: f32,
|
|
1941
2034
|
initial: mv.inputMax
|
|
1942
2035
|
});
|
|
1943
2036
|
inits.push({
|
|
1944
2037
|
name: `_map_${prop}_outputMin`,
|
|
1945
|
-
schema:
|
|
2038
|
+
schema: f32,
|
|
1946
2039
|
initial: mv.outputMin
|
|
1947
2040
|
});
|
|
1948
2041
|
inits.push({
|
|
1949
2042
|
name: `_map_${prop}_outputMax`,
|
|
1950
|
-
schema:
|
|
2043
|
+
schema: f32,
|
|
1951
2044
|
initial: mv.outputMax
|
|
1952
2045
|
});
|
|
1953
2046
|
inits.push({
|
|
1954
2047
|
name: `_map_${prop}_curve`,
|
|
1955
|
-
schema:
|
|
2048
|
+
schema: f32,
|
|
1956
2049
|
initial: mv.curve
|
|
1957
2050
|
});
|
|
1958
2051
|
} else if (driver.type === "mouse-position") {
|
|
1959
2052
|
const s = node.mouseDriverState[prop];
|
|
1960
2053
|
inits.push({
|
|
1961
2054
|
name: `_smoothed_${prop}`,
|
|
1962
|
-
schema:
|
|
2055
|
+
schema: vec2f,
|
|
1963
2056
|
initial: [s.currentX, 1 - s.currentY]
|
|
1964
2057
|
});
|
|
1965
2058
|
} else if (driver.type === "mouse") {
|
|
1966
2059
|
const mv = node.mapValues[prop];
|
|
1967
2060
|
inits.push({
|
|
1968
2061
|
name: `_smoothed_${prop}`,
|
|
1969
|
-
schema:
|
|
2062
|
+
schema: f32,
|
|
1970
2063
|
initial: mv.outputMin
|
|
1971
2064
|
});
|
|
1972
2065
|
} else if (driver.type === "auto-animate") {
|
|
1973
2066
|
const mv = node.mapValues[prop];
|
|
1974
2067
|
inits.push({
|
|
1975
2068
|
name: `_smoothed_${prop}`,
|
|
1976
|
-
schema:
|
|
2069
|
+
schema: f32,
|
|
1977
2070
|
initial: mv.outputMin
|
|
1978
2071
|
});
|
|
1979
2072
|
}
|
|
@@ -2714,6 +2807,10 @@ function shaderRendererGPU() {
|
|
|
2714
2807
|
return Math.min(deviceRatio, maxPixelRatioForDevice());
|
|
2715
2808
|
};
|
|
2716
2809
|
const applyRendererDimensions = (width, height, rawWidth, rawHeight) => {
|
|
2810
|
+
if (hasInitialDimensions && width === currentWidth && height === currentHeight && rawWidth === logicalWidth && rawHeight === logicalHeight) {
|
|
2811
|
+
const { width: curBufW, height: curBufH } = bufferSize();
|
|
2812
|
+
if (!canvasElement || canvasElement.width === curBufW && canvasElement.height === curBufH) return;
|
|
2813
|
+
}
|
|
2717
2814
|
currentWidth = width;
|
|
2718
2815
|
currentHeight = height;
|
|
2719
2816
|
logicalWidth = rawWidth;
|
|
@@ -2728,7 +2825,8 @@ function shaderRendererGPU() {
|
|
|
2728
2825
|
canvasElement.width = bufW;
|
|
2729
2826
|
canvasElement.height = bufH;
|
|
2730
2827
|
}
|
|
2731
|
-
|
|
2828
|
+
let anyTextureRecreated = false;
|
|
2829
|
+
for (const c of liveCompositions) if (c.passManager.resize(bufW, bufH)) anyTextureRecreated = true;
|
|
2732
2830
|
for (const c of liveCompositions) for (const cb of c.ir.onResize) try {
|
|
2733
2831
|
cb({
|
|
2734
2832
|
width: bufW,
|
|
@@ -2746,7 +2844,7 @@ function shaderRendererGPU() {
|
|
|
2746
2844
|
reresolveDimensionalUniforms(node);
|
|
2747
2845
|
}
|
|
2748
2846
|
runLayoutPass();
|
|
2749
|
-
for (const c of liveCompositions) {
|
|
2847
|
+
if (anyTextureRecreated) for (const c of liveCompositions) {
|
|
2750
2848
|
writeSystemUniforms(c.store);
|
|
2751
2849
|
c.store.flush();
|
|
2752
2850
|
c.passManager.repaintRtt();
|