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
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Ct as exp, Gt as arrayOf, N as unpremultiplyAlpha, Ot as max, Qt as struct, Tt as floor, Ut as data_exports, c as sampleRemappedExpr, d as ZERO, et as src_default, g as expr, ht as abs, ln as u32, mt as select, n as composeEdgeRemapExpr, nt as std_exports, on as vec4f, ot as textureStore, p as call, qt as textureStorage2d, rn as vec2u, sn as f32, tn as vec2f, yt as clamp } from "./edges-BZUKQxSE.js";
|
|
2
|
+
import { n as createGuardedCompute, r as createStateBuffer } from "./compute-BoeIXi0l.js";
|
|
3
|
+
import { s as transformEdges } from "./transformations-CsPUHppB.js";
|
|
3
4
|
var DEFAULT_GRID_SIZE = 20;
|
|
4
5
|
var MIN_GRID = 8;
|
|
5
6
|
var MAX_GRID = 128;
|
|
6
7
|
var MAX_CELLS = MAX_GRID * MAX_GRID;
|
|
7
8
|
var STATE_FORMAT = "rgba16float";
|
|
8
9
|
var clampGrid = (v) => Math.max(MIN_GRID, Math.min(MAX_GRID, Math.floor(v)));
|
|
9
|
-
var updateLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(
|
|
10
|
+
var updateLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(src_default.bindGroupLayout({
|
|
10
11
|
buffer: {
|
|
11
|
-
storage:
|
|
12
|
+
storage: arrayOf(vec4f, MAX_CELLS),
|
|
12
13
|
access: "mutable"
|
|
13
14
|
},
|
|
14
|
-
params: { uniform: /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(
|
|
15
|
-
cursorX:
|
|
16
|
-
cursorY:
|
|
17
|
-
mouseVelX:
|
|
18
|
-
mouseVelY:
|
|
19
|
-
dt:
|
|
20
|
-
decay:
|
|
21
|
-
intensity:
|
|
22
|
-
radius:
|
|
23
|
-
aspect:
|
|
15
|
+
params: { uniform: /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(struct({
|
|
16
|
+
cursorX: f32,
|
|
17
|
+
cursorY: f32,
|
|
18
|
+
mouseVelX: f32,
|
|
19
|
+
mouseVelY: f32,
|
|
20
|
+
dt: f32,
|
|
21
|
+
decay: f32,
|
|
22
|
+
intensity: f32,
|
|
23
|
+
radius: f32,
|
|
24
|
+
aspect: f32
|
|
24
25
|
}), "uniform") }
|
|
25
26
|
}), "updateLayout");
|
|
26
|
-
var outputLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(
|
|
27
|
+
var outputLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(src_default.bindGroupLayout({
|
|
27
28
|
buffer: {
|
|
28
|
-
storage:
|
|
29
|
+
storage: arrayOf(vec4f, MAX_CELLS),
|
|
29
30
|
access: "readonly"
|
|
30
31
|
},
|
|
31
|
-
dispTex: { storageTexture:
|
|
32
|
+
dispTex: { storageTexture: textureStorage2d(STATE_FORMAT, "write-only") }
|
|
32
33
|
}), "outputLayout");
|
|
33
34
|
function makeUpdateKernel(gridSize) {
|
|
34
|
-
return
|
|
35
|
+
return src_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
|
|
35
36
|
"use gpu";
|
|
36
37
|
const p = updateLayout.$.params;
|
|
37
|
-
const idx = __tsover_add(__tsover_mul(cy,
|
|
38
|
+
const idx = __tsover_add(__tsover_mul(cy, u32(gridSize)), cx);
|
|
38
39
|
const cell = updateLayout.$.buffer[idx];
|
|
39
40
|
let dx = __tsover_mul(cell.x, __tsover_sub(1, __tsover_mul(p.decay, p.dt)));
|
|
40
41
|
let dy = __tsover_mul(cell.y, __tsover_sub(1, __tsover_mul(p.decay, p.dt)));
|
|
41
|
-
const cellX = __tsover_div(__tsover_add(
|
|
42
|
-
const cellY = __tsover_div(__tsover_add(
|
|
43
|
-
const ddx =
|
|
44
|
-
const ddy =
|
|
42
|
+
const cellX = __tsover_div(__tsover_add(f32(cx), .5), f32(gridSize));
|
|
43
|
+
const cellY = __tsover_div(__tsover_add(f32(cy), .5), f32(gridSize));
|
|
44
|
+
const ddx = select(__tsover_sub(cellX, p.cursorX), __tsover_mul(__tsover_sub(cellX, p.cursorX), p.aspect), p.aspect >= 1);
|
|
45
|
+
const ddy = select(__tsover_div(__tsover_sub(cellY, p.cursorY), p.aspect), __tsover_sub(cellY, p.cursorY), p.aspect >= 1);
|
|
45
46
|
const distSq = __tsover_add(__tsover_mul(ddx, ddx), __tsover_mul(ddy, ddy));
|
|
46
47
|
const radius2 = __tsover_mul(p.radius, 2);
|
|
47
|
-
if (distSq < __tsover_mul(radius2, radius2) && __tsover_add(
|
|
48
|
-
const influence =
|
|
48
|
+
if (distSq < __tsover_mul(radius2, radius2) && __tsover_add(abs(p.mouseVelX), abs(p.mouseVelY)) > .01) {
|
|
49
|
+
const influence = exp(__tsover_mul(__tsover_div(distSq, __tsover_mul(p.radius, p.radius)), -1));
|
|
49
50
|
dx = __tsover_add(dx, __tsover_mul(__tsover_mul(__tsover_mul(__tsover_mul(p.mouseVelX, influence), p.intensity), p.dt), .5));
|
|
50
51
|
dy = __tsover_add(dy, __tsover_mul(__tsover_mul(__tsover_mul(__tsover_mul(p.mouseVelY, influence), p.intensity), p.dt), .5));
|
|
51
52
|
}
|
|
52
|
-
dx =
|
|
53
|
-
dy =
|
|
54
|
-
updateLayout.$.buffer[idx] =
|
|
53
|
+
dx = clamp(dx, -1, 1);
|
|
54
|
+
dy = clamp(dy, -1, 1);
|
|
55
|
+
updateLayout.$.buffer[idx] = vec4f(dx, dy, 0, 0);
|
|
55
56
|
}), {
|
|
56
57
|
v: 1,
|
|
57
58
|
name: void 0,
|
|
@@ -649,18 +650,18 @@ function makeUpdateKernel(gridSize) {
|
|
|
649
650
|
},
|
|
650
651
|
externals: () => ({
|
|
651
652
|
updateLayout,
|
|
652
|
-
d,
|
|
653
|
+
d: data_exports,
|
|
653
654
|
gridSize,
|
|
654
|
-
std
|
|
655
|
+
std: std_exports
|
|
655
656
|
})
|
|
656
657
|
}) && $.f)({})).$name("gridDistortionUpdate");
|
|
657
658
|
}
|
|
658
659
|
function makeOutputKernel(gridSize) {
|
|
659
|
-
return
|
|
660
|
+
return src_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
|
|
660
661
|
"use gpu";
|
|
661
|
-
const idx = __tsover_add(__tsover_mul(cy,
|
|
662
|
+
const idx = __tsover_add(__tsover_mul(cy, u32(gridSize)), cx);
|
|
662
663
|
const cell = outputLayout.$.buffer[idx];
|
|
663
|
-
|
|
664
|
+
textureStore(outputLayout.$.dispTex, vec2u(cx, cy), vec4f(cell.x, cell.y, 0, 1));
|
|
664
665
|
}), {
|
|
665
666
|
v: 1,
|
|
666
667
|
name: void 0,
|
|
@@ -772,25 +773,25 @@ function makeOutputKernel(gridSize) {
|
|
|
772
773
|
]
|
|
773
774
|
},
|
|
774
775
|
externals: () => ({
|
|
775
|
-
d,
|
|
776
|
+
d: data_exports,
|
|
776
777
|
gridSize,
|
|
777
778
|
outputLayout,
|
|
778
|
-
std
|
|
779
|
+
std: std_exports
|
|
779
780
|
})
|
|
780
781
|
}) && $.f)({})).$name("gridDistortionOutput");
|
|
781
782
|
}
|
|
782
|
-
const gridCellSnap =
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
],
|
|
783
|
+
const gridCellSnap = src_default.fn([
|
|
784
|
+
vec2f,
|
|
785
|
+
f32,
|
|
786
|
+
f32
|
|
787
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, gridSize, aspect) => {
|
|
787
788
|
"use gpu";
|
|
788
789
|
const isWide = aspect > 1;
|
|
789
|
-
const cellsX =
|
|
790
|
-
const cellsY =
|
|
791
|
-
const cellIndexX =
|
|
792
|
-
const cellIndexY =
|
|
793
|
-
return
|
|
790
|
+
const cellsX = max(select(__tsover_mul(gridSize, aspect), gridSize, isWide), 1);
|
|
791
|
+
const cellsY = max(select(gridSize, __tsover_div(gridSize, aspect), isWide), 1);
|
|
792
|
+
const cellIndexX = floor(__tsover_mul(uv.x, cellsX));
|
|
793
|
+
const cellIndexY = floor(__tsover_mul(uv.y, cellsY));
|
|
794
|
+
return vec2f(__tsover_div(__tsover_add(cellIndexX, .5), cellsX), __tsover_div(__tsover_add(cellIndexY, .5), cellsY));
|
|
794
795
|
}), {
|
|
795
796
|
v: 1,
|
|
796
797
|
name: void 0,
|
|
@@ -957,14 +958,14 @@ const gridCellSnap = tgpu.fn([
|
|
|
957
958
|
"externalNames": ["std", "d"]
|
|
958
959
|
},
|
|
959
960
|
externals: () => ({
|
|
960
|
-
std,
|
|
961
|
-
d
|
|
961
|
+
std: std_exports,
|
|
962
|
+
d: data_exports
|
|
962
963
|
})
|
|
963
964
|
}) && $.f)({}));
|
|
964
|
-
const gridDistortOffsetUV =
|
|
965
|
+
const gridDistortOffsetUV = src_default.fn([vec2f, vec2f], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, disp) => {
|
|
965
966
|
"use gpu";
|
|
966
967
|
const maxDisp = .1;
|
|
967
|
-
const clamped =
|
|
968
|
+
const clamped = clamp(disp, vec2f(-maxDisp, -maxDisp), vec2f(maxDisp, maxDisp));
|
|
968
969
|
return uv.sub(clamped);
|
|
969
970
|
}), {
|
|
970
971
|
v: 1,
|
|
@@ -1037,8 +1038,8 @@ const gridDistortOffsetUV = tgpu.fn([d.vec2f, d.vec2f], d.vec2f)(/* @__PURE__ */
|
|
|
1037
1038
|
"externalNames": ["std", "d"]
|
|
1038
1039
|
},
|
|
1039
1040
|
externals: () => ({
|
|
1040
|
-
std,
|
|
1041
|
-
d
|
|
1041
|
+
std: std_exports,
|
|
1042
|
+
d: data_exports
|
|
1042
1043
|
})
|
|
1043
1044
|
}) && $.f)({}));
|
|
1044
1045
|
const componentDefinition = {
|
|
@@ -1134,23 +1135,23 @@ const componentDefinition = {
|
|
|
1134
1135
|
const root = gpu?.root;
|
|
1135
1136
|
if (!root) return null;
|
|
1136
1137
|
const gridSize = clampGrid(getCpuValue("gridSize") ?? DEFAULT_GRID_SIZE);
|
|
1137
|
-
const buffer = createStateBuffer(root,
|
|
1138
|
+
const buffer = createStateBuffer(root, vec4f, MAX_CELLS);
|
|
1138
1139
|
const dispTex = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(root.createTexture({
|
|
1139
1140
|
size: [gridSize, gridSize],
|
|
1140
1141
|
format: STATE_FORMAT
|
|
1141
1142
|
}).$usage("storage", "sampled"), "dispTex");
|
|
1142
1143
|
onCleanup(() => dispTex.destroy());
|
|
1143
1144
|
const displacement = registerComputeTexture(dispTex);
|
|
1144
|
-
const updateParams = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(root.createUniform(
|
|
1145
|
-
cursorX:
|
|
1146
|
-
cursorY:
|
|
1147
|
-
mouseVelX:
|
|
1148
|
-
mouseVelY:
|
|
1149
|
-
dt:
|
|
1150
|
-
decay:
|
|
1151
|
-
intensity:
|
|
1152
|
-
radius:
|
|
1153
|
-
aspect:
|
|
1145
|
+
const updateParams = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(root.createUniform(struct({
|
|
1146
|
+
cursorX: f32,
|
|
1147
|
+
cursorY: f32,
|
|
1148
|
+
mouseVelX: f32,
|
|
1149
|
+
mouseVelY: f32,
|
|
1150
|
+
dt: f32,
|
|
1151
|
+
decay: f32,
|
|
1152
|
+
intensity: f32,
|
|
1153
|
+
radius: f32,
|
|
1154
|
+
aspect: f32
|
|
1154
1155
|
})), "updateParams");
|
|
1155
1156
|
let curW = Math.max(1, Math.round(dimensions.width));
|
|
1156
1157
|
let curH = Math.max(1, Math.round(dimensions.height));
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as transformColor, r as transformAngle } from "./transformations-
|
|
1
|
+
import { At as mix, Dt as length, Et as fract, N as unpremultiplyAlpha, Ot as max, Rt as sin, St as dot, Ut as data_exports, _ as floatE, bt as cos, d as ZERO, et as src_default, in as vec3f, nt as std_exports, on as vec4f, p as call, sn as f32, tn as vec2f, y as vec4, zt as smoothstep } from "./edges-BZUKQxSE.js";
|
|
2
|
+
import { a as transformColor, r as transformAngle } from "./transformations-CsPUHppB.js";
|
|
3
3
|
var SMOOTHNESS = .1;
|
|
4
4
|
var DEG_TO_RAD = Math.PI / 180;
|
|
5
5
|
var transformStyle = (value) => value === "cmyk" ? 1 : 0;
|
|
6
6
|
var styleModeOf = (raw) => typeof raw === "number" ? raw : raw === "cmyk" ? 1 : 0;
|
|
7
|
-
const halftoneClassic =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
],
|
|
7
|
+
const halftoneClassic = src_default.fn([
|
|
8
|
+
vec4f,
|
|
9
|
+
vec2f,
|
|
10
|
+
f32,
|
|
11
|
+
f32,
|
|
12
|
+
f32
|
|
13
|
+
], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((childColor, uv, aspect, angleDeg, frequency) => {
|
|
14
14
|
"use gpu";
|
|
15
|
-
const aspectUV =
|
|
15
|
+
const aspectUV = vec2f(__tsover_mul(uv.x, aspect), uv.y);
|
|
16
16
|
const angleRad = __tsover_mul(angleDeg, DEG_TO_RAD);
|
|
17
|
-
const c =
|
|
18
|
-
const s =
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const brightness = std.dot(d.vec3f(childColor.x, childColor.y, childColor.z), d.vec3f(.299, .587, .114));
|
|
17
|
+
const c = cos(angleRad);
|
|
18
|
+
const s = sin(angleRad);
|
|
19
|
+
const gridUV = fract(vec2f(dot(aspectUV, vec2f(c, __tsover_mul(s, -1))), dot(aspectUV, vec2f(s, c))).mul(frequency)).sub(vec2f(.5, .5));
|
|
20
|
+
const brightness = dot(vec3f(childColor.x, childColor.y, childColor.z), vec3f(.299, .587, .114));
|
|
22
21
|
const dotSize = __tsover_add(__tsover_mul(brightness, .7), .15);
|
|
23
|
-
const dist =
|
|
24
|
-
const dotPattern = __tsover_sub(1,
|
|
25
|
-
return
|
|
22
|
+
const dist = length(gridUV);
|
|
23
|
+
const dotPattern = __tsover_sub(1, smoothstep(__tsover_sub(dotSize, SMOOTHNESS), __tsover_add(dotSize, SMOOTHNESS), dist));
|
|
24
|
+
return vec4f(__tsover_mul(childColor.x, dotPattern), __tsover_mul(childColor.y, dotPattern), __tsover_mul(childColor.z, dotPattern), __tsover_mul(childColor.w, dotPattern));
|
|
26
25
|
}), {
|
|
27
26
|
v: 1,
|
|
28
27
|
name: void 0,
|
|
@@ -371,22 +370,22 @@ const halftoneClassic = tgpu.fn([
|
|
|
371
370
|
]
|
|
372
371
|
},
|
|
373
372
|
externals: () => ({
|
|
374
|
-
d,
|
|
373
|
+
d: data_exports,
|
|
375
374
|
DEG_TO_RAD,
|
|
376
|
-
std,
|
|
375
|
+
std: std_exports,
|
|
377
376
|
SMOOTHNESS
|
|
378
377
|
})
|
|
379
378
|
}) && $.f)({}));
|
|
380
|
-
const halftonePlateUV =
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
],
|
|
379
|
+
const halftonePlateUV = src_default.fn([
|
|
380
|
+
vec2f,
|
|
381
|
+
f32,
|
|
382
|
+
f32,
|
|
383
|
+
f32,
|
|
384
|
+
f32
|
|
385
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, misprintAngleDeg, plateIndexDeg, misprint, aspect) => {
|
|
387
386
|
"use gpu";
|
|
388
387
|
const angleRad = __tsover_mul(__tsover_add(misprintAngleDeg, plateIndexDeg), DEG_TO_RAD);
|
|
389
|
-
return
|
|
388
|
+
return vec2f(__tsover_add(uv.x, __tsover_mul(cos(angleRad), misprint)), __tsover_add(uv.y, __tsover_div(__tsover_mul(sin(angleRad), misprint), aspect)));
|
|
390
389
|
}), {
|
|
391
390
|
v: 1,
|
|
392
391
|
name: void 0,
|
|
@@ -493,13 +492,13 @@ const halftonePlateUV = tgpu.fn([
|
|
|
493
492
|
},
|
|
494
493
|
externals: () => ({
|
|
495
494
|
DEG_TO_RAD,
|
|
496
|
-
d,
|
|
497
|
-
std
|
|
495
|
+
d: data_exports,
|
|
496
|
+
std: std_exports
|
|
498
497
|
})
|
|
499
498
|
}) && $.f)({}));
|
|
500
|
-
const halftoneChannelK =
|
|
499
|
+
const halftoneChannelK = src_default.fn([vec4f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((s) => {
|
|
501
500
|
"use gpu";
|
|
502
|
-
return __tsover_sub(1,
|
|
501
|
+
return __tsover_sub(1, max(max(s.x, s.y), s.z));
|
|
503
502
|
}), {
|
|
504
503
|
v: 1,
|
|
505
504
|
name: void 0,
|
|
@@ -544,12 +543,12 @@ const halftoneChannelK = tgpu.fn([d.vec4f], d.f32)(/* @__PURE__ */ (($) => (glob
|
|
|
544
543
|
]]]],
|
|
545
544
|
"externalNames": ["std"]
|
|
546
545
|
},
|
|
547
|
-
externals: () => ({ std })
|
|
546
|
+
externals: () => ({ std: std_exports })
|
|
548
547
|
}) && $.f)({}));
|
|
549
|
-
const halftoneChannelC =
|
|
548
|
+
const halftoneChannelC = src_default.fn([vec4f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((s) => {
|
|
550
549
|
"use gpu";
|
|
551
550
|
const k = halftoneChannelK(s);
|
|
552
|
-
const invK =
|
|
551
|
+
const invK = max(__tsover_sub(1, k), 1e-4);
|
|
553
552
|
return __tsover_div(__tsover_sub(__tsover_sub(1, s.x), k), invK);
|
|
554
553
|
}), {
|
|
555
554
|
v: 1,
|
|
@@ -612,13 +611,13 @@ const halftoneChannelC = tgpu.fn([d.vec4f], d.f32)(/* @__PURE__ */ (($) => (glob
|
|
|
612
611
|
},
|
|
613
612
|
externals: () => ({
|
|
614
613
|
halftoneChannelK,
|
|
615
|
-
std
|
|
614
|
+
std: std_exports
|
|
616
615
|
})
|
|
617
616
|
}) && $.f)({}));
|
|
618
|
-
const halftoneChannelM =
|
|
617
|
+
const halftoneChannelM = src_default.fn([vec4f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((s) => {
|
|
619
618
|
"use gpu";
|
|
620
619
|
const k = halftoneChannelK(s);
|
|
621
|
-
const invK =
|
|
620
|
+
const invK = max(__tsover_sub(1, k), 1e-4);
|
|
622
621
|
return __tsover_div(__tsover_sub(__tsover_sub(1, s.y), k), invK);
|
|
623
622
|
}), {
|
|
624
623
|
v: 1,
|
|
@@ -681,13 +680,13 @@ const halftoneChannelM = tgpu.fn([d.vec4f], d.f32)(/* @__PURE__ */ (($) => (glob
|
|
|
681
680
|
},
|
|
682
681
|
externals: () => ({
|
|
683
682
|
halftoneChannelK,
|
|
684
|
-
std
|
|
683
|
+
std: std_exports
|
|
685
684
|
})
|
|
686
685
|
}) && $.f)({}));
|
|
687
|
-
const halftoneChannelY =
|
|
686
|
+
const halftoneChannelY = src_default.fn([vec4f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((s) => {
|
|
688
687
|
"use gpu";
|
|
689
688
|
const k = halftoneChannelK(s);
|
|
690
|
-
const invK =
|
|
689
|
+
const invK = max(__tsover_sub(1, k), 1e-4);
|
|
691
690
|
return __tsover_div(__tsover_sub(__tsover_sub(1, s.z), k), invK);
|
|
692
691
|
}), {
|
|
693
692
|
v: 1,
|
|
@@ -750,26 +749,24 @@ const halftoneChannelY = tgpu.fn([d.vec4f], d.f32)(/* @__PURE__ */ (($) => (glob
|
|
|
750
749
|
},
|
|
751
750
|
externals: () => ({
|
|
752
751
|
halftoneChannelK,
|
|
753
|
-
std
|
|
752
|
+
std: std_exports
|
|
754
753
|
})
|
|
755
754
|
}) && $.f)({}));
|
|
756
|
-
const halftonePlateGrid =
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
],
|
|
755
|
+
const halftonePlateGrid = src_default.fn([
|
|
756
|
+
vec2f,
|
|
757
|
+
f32,
|
|
758
|
+
f32,
|
|
759
|
+
f32,
|
|
760
|
+
f32
|
|
761
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, aspect, angleDeg, intensity, frequency) => {
|
|
763
762
|
"use gpu";
|
|
764
|
-
const aspectUV =
|
|
763
|
+
const aspectUV = vec2f(__tsover_mul(uv.x, aspect), uv.y);
|
|
765
764
|
const angleRad = __tsover_mul(angleDeg, DEG_TO_RAD);
|
|
766
|
-
const c =
|
|
767
|
-
const s =
|
|
768
|
-
const
|
|
769
|
-
const grid = std.fract(rotatedUV.mul(frequency)).sub(d.vec2f(.5, .5));
|
|
770
|
-
const dist = std.length(grid);
|
|
765
|
+
const c = cos(angleRad);
|
|
766
|
+
const s = sin(angleRad);
|
|
767
|
+
const dist = length(fract(vec2f(dot(aspectUV, vec2f(c, __tsover_mul(s, -1))), dot(aspectUV, vec2f(s, c))).mul(frequency)).sub(vec2f(.5, .5)));
|
|
771
768
|
const size = __tsover_sub(__tsover_mul(intensity, .75), SMOOTHNESS);
|
|
772
|
-
return __tsover_sub(1,
|
|
769
|
+
return __tsover_sub(1, smoothstep(__tsover_sub(size, SMOOTHNESS), __tsover_add(size, SMOOTHNESS), dist));
|
|
773
770
|
}), {
|
|
774
771
|
v: 1,
|
|
775
772
|
name: void 0,
|
|
@@ -1015,15 +1012,15 @@ const halftonePlateGrid = tgpu.fn([
|
|
|
1015
1012
|
]
|
|
1016
1013
|
},
|
|
1017
1014
|
externals: () => ({
|
|
1018
|
-
d,
|
|
1015
|
+
d: data_exports,
|
|
1019
1016
|
DEG_TO_RAD,
|
|
1020
|
-
std,
|
|
1017
|
+
std: std_exports,
|
|
1021
1018
|
SMOOTHNESS
|
|
1022
1019
|
})
|
|
1023
1020
|
}) && $.f)({}));
|
|
1024
|
-
const halftoneTransmission =
|
|
1021
|
+
const halftoneTransmission = src_default.fn([vec4f, f32], vec3f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((inkColor, inkMask) => {
|
|
1025
1022
|
"use gpu";
|
|
1026
|
-
return
|
|
1023
|
+
return mix(vec3f(1, 1, 1), vec3f(inkColor.x, inkColor.y, inkColor.z), vec3f(__tsover_mul(inkMask, inkColor.w)));
|
|
1027
1024
|
}), {
|
|
1028
1025
|
v: 1,
|
|
1029
1026
|
name: void 0,
|
|
@@ -1104,8 +1101,8 @@ const halftoneTransmission = tgpu.fn([d.vec4f, d.f32], d.vec3f)(/* @__PURE__ */
|
|
|
1104
1101
|
"externalNames": ["std", "d"]
|
|
1105
1102
|
},
|
|
1106
1103
|
externals: () => ({
|
|
1107
|
-
std,
|
|
1108
|
-
d
|
|
1104
|
+
std: std_exports,
|
|
1105
|
+
d: data_exports
|
|
1109
1106
|
})
|
|
1110
1107
|
}) && $.f)({}));
|
|
1111
1108
|
const componentDefinition = {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { H as mixColorsLinear, U as mixColorsVariants, et as src_default, p as call, sn as f32, tn as vec2f, y as vec4 } from "./edges-BZUKQxSE.js";
|
|
2
|
+
import { g as shapeLocalCoords, h as sdf_exports, n as ShapeMask, u as heartSdf, v as strokeMaskFromSdf } from "./sdf-o99ONcMJ.js";
|
|
3
|
+
import { a as transformColor, c as transformPosition, l as transformStrokePosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
4
|
+
const heartShape = src_default.fn([
|
|
5
|
+
vec2f,
|
|
6
|
+
f32,
|
|
7
|
+
f32,
|
|
8
|
+
f32,
|
|
9
|
+
f32,
|
|
10
|
+
f32,
|
|
11
|
+
vec2f,
|
|
12
|
+
f32
|
|
12
13
|
], ShapeMask)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((center, radius, rotation, softness, strokeThickness, strokePosition, uv, aspect) => {
|
|
13
14
|
"use gpu";
|
|
14
15
|
const local = shapeLocalCoords(center, rotation, uv, aspect);
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { h as
|
|
5
|
-
import { n as shapeEffectBoundingBoxDeclaration, t as resolveShapeType } from "./shapeEffectBounds-
|
|
1
|
+
import { At as mix, Ct as exp, Et as fract, H as mixColorsLinear, Mt as pow, Ot as max, Rt as sin, U as mixColorsVariants, Ut as data_exports, bt as cos, et as src_default, ht as abs, in as vec3f, kt as min, nt as std_exports, on as vec4f, p as call, sn as f32, tn as vec2f, y as vec4, yt as clamp, zt as smoothstep } from "./edges-BZUKQxSE.js";
|
|
2
|
+
import { S as mixColorStopsRuntime, h as colorStopsPropConfig, t as animatedTime } from "./porters-DogLzpKT.js";
|
|
3
|
+
import { p as noise_exports, s as hash12, y as value12 } from "./noise-Cq0KUOSC.js";
|
|
4
|
+
import { h as sdf_exports } from "./sdf-o99ONcMJ.js";
|
|
5
|
+
import { f as sdf3d_exports, n as shapeEffectBoundingBoxDeclaration, t as resolveShapeType } from "./shapeEffectBounds-Dg4GQ5vW.js";
|
|
6
|
+
import { n as glass_exports } from "./glass-BVqgjSPg.js";
|
|
7
|
+
import { a as transformColor, c as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
6
8
|
var { sdfSpaceUV } = glass_exports;
|
|
7
9
|
var { createSvgSdfSampler, createAnalyticSdfSampler, driveAnalyticSubProps, ANALYTIC_SDF_EXTRA_FIELDS } = sdf_exports;
|
|
8
10
|
var { createVolumetricFieldComputeNode, buildVolumetricFieldSampler, VOLUMETRIC_FIELD_EXTRA_FIELDS } = sdf3d_exports;
|
|
@@ -37,19 +39,19 @@ var DEFAULT_STOPS = [
|
|
|
37
39
|
position: 1
|
|
38
40
|
}
|
|
39
41
|
];
|
|
40
|
-
const heatmapShadow =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
],
|
|
42
|
+
const heatmapShadow = src_default.fn([
|
|
43
|
+
f32,
|
|
44
|
+
f32,
|
|
45
|
+
f32,
|
|
46
|
+
f32
|
|
47
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((a, b, tk, phase) => {
|
|
46
48
|
"use gpu";
|
|
47
|
-
const posS =
|
|
48
|
-
const wob = __tsover_sub(value12(
|
|
49
|
+
const posS = mix(-.6, .6, tk);
|
|
50
|
+
const wob = __tsover_sub(value12(vec2f(__tsover_add(__tsover_mul(b, 4), __tsover_mul(phase, 13.7)), __tsover_add(__tsover_mul(tk, 3), __tsover_mul(phase, 7.1)))), .5);
|
|
49
51
|
const aEff = __tsover_add(__tsover_sub(a, posS), __tsover_mul(wob, .12));
|
|
50
|
-
const band =
|
|
51
|
-
const gate = __tsover_mul(
|
|
52
|
-
return
|
|
52
|
+
const band = exp(__tsover_div(__tsover_mul(__tsover_mul(aEff, aEff), -1), __tsover_mul(.16, .16)));
|
|
53
|
+
const gate = __tsover_mul(smoothstep(0, .15, tk), __tsover_sub(1, smoothstep(.85, 1, tk)));
|
|
54
|
+
return clamp(__tsover_mul(band, gate), 0, 1);
|
|
53
55
|
}), {
|
|
54
56
|
v: 1,
|
|
55
57
|
name: void 0,
|
|
@@ -272,55 +274,55 @@ const heatmapShadow = tgpu.fn([
|
|
|
272
274
|
]
|
|
273
275
|
},
|
|
274
276
|
externals: () => ({
|
|
275
|
-
std,
|
|
277
|
+
std: std_exports,
|
|
276
278
|
noise: noise_exports,
|
|
277
|
-
d
|
|
279
|
+
d: data_exports
|
|
278
280
|
})
|
|
279
281
|
}) && $.f)({}));
|
|
280
|
-
const heatmapHeatField =
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
],
|
|
282
|
+
const heatmapHeatField = src_default.fn([
|
|
283
|
+
f32,
|
|
284
|
+
vec2f,
|
|
285
|
+
f32,
|
|
286
|
+
vec4f,
|
|
287
|
+
f32
|
|
288
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((fieldRaw, sdfUV, animTime, p0, scale) => {
|
|
287
289
|
"use gpu";
|
|
288
290
|
const innerGlow = p0.x;
|
|
289
291
|
const outerGlow = p0.y;
|
|
290
292
|
const contour = p0.z;
|
|
291
293
|
const angleDeg = p0.w;
|
|
292
|
-
const scl =
|
|
294
|
+
const scl = max(scale, .001);
|
|
293
295
|
const f = __tsover_div(fieldRaw, scl);
|
|
294
|
-
const inside = __tsover_sub(1,
|
|
296
|
+
const inside = __tsover_sub(1, smoothstep(-.003, .003, f));
|
|
295
297
|
const angleRad = __tsover_mul(angleDeg, DEG_TO_RAD);
|
|
296
|
-
const dirX =
|
|
297
|
-
const dirY =
|
|
298
|
+
const dirX = cos(angleRad);
|
|
299
|
+
const dirY = sin(angleRad);
|
|
298
300
|
const a = __tsover_add(__tsover_mul(dirX, __tsover_sub(sdfUV.x, .5)), __tsover_mul(dirY, __tsover_sub(sdfUV.y, .5)));
|
|
299
301
|
const b = __tsover_sub(__tsover_mul(dirY, __tsover_sub(sdfUV.x, .5)), __tsover_mul(dirX, __tsover_sub(sdfUV.y, .5)));
|
|
300
302
|
const tBase = __tsover_sub(__tsover_mul(.1, animTime), .3);
|
|
301
|
-
const t0 =
|
|
302
|
-
const t1 =
|
|
303
|
-
const t2 =
|
|
304
|
-
const innerBlur =
|
|
303
|
+
const t0 = fract(tBase);
|
|
304
|
+
const t1 = fract(__tsover_add(tBase, __tsover_div(1, 3)));
|
|
305
|
+
const t2 = fract(__tsover_add(tBase, __tsover_div(2, 3)));
|
|
306
|
+
const innerBlur = exp(__tsover_div(__tsover_mul(max(__tsover_mul(f, -1), 0), -1), .12));
|
|
305
307
|
let inner = __tsover_add(.8, __tsover_mul(.8, innerBlur));
|
|
306
|
-
inner =
|
|
307
|
-
inner =
|
|
308
|
-
inner =
|
|
308
|
+
inner = mix(inner, 0, heatmapShadow(a, b, t0, 1));
|
|
309
|
+
inner = mix(inner, 0, heatmapShadow(a, b, t1, 2));
|
|
310
|
+
inner = mix(inner, 0, heatmapShadow(a, b, t2, 3));
|
|
309
311
|
inner = __tsover_mul(inner, __tsover_mul(2, innerGlow));
|
|
310
|
-
inner = __tsover_add(inner, __tsover_mul(__tsover_mul(contour, 2),
|
|
311
|
-
inner = __tsover_mul(
|
|
312
|
-
inner =
|
|
313
|
-
const outerBlur =
|
|
314
|
-
const t3 =
|
|
315
|
-
const yy =
|
|
316
|
-
const animatedMask = __tsover_add(.5, __tsover_mul(
|
|
317
|
-
const outer = __tsover_mul(__tsover_mul(__tsover_mul(__tsover_mul(__tsover_mul(__tsover_mul(.9,
|
|
318
|
-
let heat =
|
|
319
|
-
const frame = __tsover_mul(__tsover_mul(__tsover_mul(
|
|
312
|
+
inner = __tsover_add(inner, __tsover_mul(__tsover_mul(contour, 2), exp(__tsover_div(__tsover_mul(abs(f), -1), .03))));
|
|
313
|
+
inner = __tsover_mul(min(inner, 1), inside);
|
|
314
|
+
inner = pow(max(inner, 0), 1.2);
|
|
315
|
+
const outerBlur = exp(__tsover_div(__tsover_mul(max(f, 0), -1), __tsover_add(.05, __tsover_mul(.15, outerGlow))));
|
|
316
|
+
const t3 = fract(__tsover_sub(__tsover_mul(tBase, 3), .1));
|
|
317
|
+
const yy = fract(__tsover_sub(__tsover_mul(a, 1.2), t3));
|
|
318
|
+
const animatedMask = __tsover_add(.5, __tsover_mul(smoothstep(.3, .65, yy), __tsover_sub(1, smoothstep(.65, 1, yy))));
|
|
319
|
+
const outer = __tsover_mul(__tsover_mul(__tsover_mul(__tsover_mul(__tsover_mul(__tsover_mul(.9, pow(outerBlur, .8)), animatedMask), 5), outerGlow), outerGlow), __tsover_sub(1, inside));
|
|
320
|
+
let heat = clamp(__tsover_add(inner, outer), 0, 1);
|
|
321
|
+
const frame = __tsover_mul(__tsover_mul(__tsover_mul(smoothstep(-.06, .1, sdfUV.x), __tsover_sub(1, smoothstep(.9, 1.06, sdfUV.x))), smoothstep(-.06, .1, sdfUV.y)), __tsover_sub(1, smoothstep(.9, 1.06, sdfUV.y)));
|
|
320
322
|
heat = __tsover_mul(heat, frame);
|
|
321
|
-
heat = __tsover_add(heat, __tsover_mul(.005, __tsover_sub(hash12(
|
|
322
|
-
const coverage = __tsover_mul(
|
|
323
|
-
return
|
|
323
|
+
heat = __tsover_add(heat, __tsover_mul(.005, __tsover_sub(hash12(vec2f(__tsover_mul(sdfUV.x, 991.3), __tsover_mul(sdfUV.y, 787.7))), .5)));
|
|
324
|
+
const coverage = __tsover_mul(clamp(__tsover_add(inside, outer), 0, 1), frame);
|
|
325
|
+
return vec2f(clamp(heat, 0, 1), coverage);
|
|
324
326
|
}), {
|
|
325
327
|
v: 1,
|
|
326
328
|
name: void 0,
|
|
@@ -1298,16 +1300,16 @@ const heatmapHeatField = tgpu.fn([
|
|
|
1298
1300
|
]
|
|
1299
1301
|
},
|
|
1300
1302
|
externals: () => ({
|
|
1301
|
-
std,
|
|
1303
|
+
std: std_exports,
|
|
1302
1304
|
DEG_TO_RAD,
|
|
1303
1305
|
heatmapShadow,
|
|
1304
1306
|
noise: noise_exports,
|
|
1305
|
-
d
|
|
1307
|
+
d: data_exports
|
|
1306
1308
|
})
|
|
1307
1309
|
}) && $.f)({}));
|
|
1308
|
-
const heatmapCompose =
|
|
1310
|
+
const heatmapCompose = src_default.fn([f32, vec4f], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((coverage, ramp) => {
|
|
1309
1311
|
"use gpu";
|
|
1310
|
-
return
|
|
1312
|
+
return vec4f(clamp(ramp.xyz, vec3f(0), vec3f(1)), __tsover_mul(ramp.w, coverage));
|
|
1311
1313
|
}), {
|
|
1312
1314
|
v: 1,
|
|
1313
1315
|
name: void 0,
|
|
@@ -1372,8 +1374,8 @@ const heatmapCompose = tgpu.fn([d.f32, d.vec4f], d.vec4f)(/* @__PURE__ */ (($) =
|
|
|
1372
1374
|
"externalNames": ["d", "std"]
|
|
1373
1375
|
},
|
|
1374
1376
|
externals: () => ({
|
|
1375
|
-
d,
|
|
1376
|
-
std
|
|
1377
|
+
d: data_exports,
|
|
1378
|
+
std: std_exports
|
|
1377
1379
|
})
|
|
1378
1380
|
}) && $.f)({}));
|
|
1379
1381
|
const componentDefinition = {
|