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,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as transformColor } from "./transformations-
|
|
3
|
-
const tintColorPlain =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
],
|
|
1
|
+
import { At as mix, Ot as max, St as dot, Ut as data_exports, d as ZERO, et as src_default, in as vec3f, nt as std_exports, on as vec4f, p as call, sn as f32 } from "./edges-BZUKQxSE.js";
|
|
2
|
+
import { a as transformColor } from "./transformations-CsPUHppB.js";
|
|
3
|
+
const tintColorPlain = src_default.fn([
|
|
4
|
+
vec4f,
|
|
5
|
+
vec4f,
|
|
6
|
+
f32
|
|
7
|
+
], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((color, tintColor, amount) => {
|
|
8
8
|
"use gpu";
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
return d.vec4f(tinted.x, tinted.y, tinted.z, color.w);
|
|
9
|
+
const tinted = mix(vec3f(color.x, color.y, color.z), vec3f(tintColor.x, tintColor.y, tintColor.z), vec3f(amount));
|
|
10
|
+
return vec4f(tinted.x, tinted.y, tinted.z, color.w);
|
|
12
11
|
}), {
|
|
13
12
|
v: 1,
|
|
14
13
|
name: void 0,
|
|
@@ -140,23 +139,23 @@ const tintColorPlain = tgpu.fn([
|
|
|
140
139
|
"externalNames": ["d", "std"]
|
|
141
140
|
},
|
|
142
141
|
externals: () => ({
|
|
143
|
-
d,
|
|
144
|
-
std
|
|
142
|
+
d: data_exports,
|
|
143
|
+
std: std_exports
|
|
145
144
|
})
|
|
146
145
|
}) && $.f)({}));
|
|
147
|
-
const tintColorPreserve =
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
],
|
|
146
|
+
const tintColorPreserve = src_default.fn([
|
|
147
|
+
vec4f,
|
|
148
|
+
vec4f,
|
|
149
|
+
f32
|
|
150
|
+
], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((color, tintColor, amount) => {
|
|
152
151
|
"use gpu";
|
|
153
|
-
const rgb =
|
|
154
|
-
const tinted =
|
|
155
|
-
const luminanceWeights =
|
|
156
|
-
const originalLum =
|
|
157
|
-
const tintedLum =
|
|
158
|
-
const result = tinted.mul(__tsover_div(originalLum,
|
|
159
|
-
return
|
|
152
|
+
const rgb = vec3f(color.x, color.y, color.z);
|
|
153
|
+
const tinted = mix(rgb, vec3f(tintColor.x, tintColor.y, tintColor.z), vec3f(amount));
|
|
154
|
+
const luminanceWeights = vec3f(.299, .587, .114);
|
|
155
|
+
const originalLum = dot(rgb, luminanceWeights);
|
|
156
|
+
const tintedLum = dot(tinted, luminanceWeights);
|
|
157
|
+
const result = tinted.mul(__tsover_div(originalLum, max(tintedLum, 1e-4)));
|
|
158
|
+
return vec4f(result.x, result.y, result.z, color.w);
|
|
160
159
|
}), {
|
|
161
160
|
v: 1,
|
|
162
161
|
name: void 0,
|
|
@@ -357,8 +356,8 @@ const tintColorPreserve = tgpu.fn([
|
|
|
357
356
|
"externalNames": ["d", "std"]
|
|
358
357
|
},
|
|
359
358
|
externals: () => ({
|
|
360
|
-
d,
|
|
361
|
-
std
|
|
359
|
+
d: data_exports,
|
|
360
|
+
std: std_exports
|
|
362
361
|
})
|
|
363
362
|
}) && $.f)({}));
|
|
364
363
|
const componentDefinition = {
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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 { b as trapezoidSdf, g as shapeLocalCoords, h as sdf_exports, n as ShapeMask, 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 trapezoidShape = src_default.fn([
|
|
5
|
+
vec2f,
|
|
6
|
+
f32,
|
|
7
|
+
f32,
|
|
8
|
+
f32,
|
|
9
|
+
f32,
|
|
10
|
+
f32,
|
|
11
|
+
f32,
|
|
12
|
+
f32,
|
|
13
|
+
vec2f,
|
|
14
|
+
f32
|
|
14
15
|
], ShapeMask)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((center, topWidth, bottomWidth, height, rotation, softness, strokeThickness, strokePosition, uv, aspect) => {
|
|
15
16
|
"use gpu";
|
|
16
17
|
const local = shapeLocalCoords(center, rotation, uv, aspect);
|
|
@@ -1,50 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
1
|
+
import { Et as fract, H as mixColorsLinear, Ot as max, Rt as sin, St as dot, Tt as floor, U as mixColorsVariants, Ut as data_exports, Vt as step, bt as cos, et as src_default, ht as abs, kt as min, lt as fwidth, nt as std_exports, p as call, sn as f32, tn as vec2f, y as vec4, zt as smoothstep } from "./edges-BZUKQxSE.js";
|
|
2
|
+
import { t as animatedTime } from "./porters-DogLzpKT.js";
|
|
3
|
+
import { a as transformColor, o as transformColorSpace, r as transformAngle, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
4
4
|
var DEG_TO_RAD = Math.PI / 180;
|
|
5
5
|
var SQRT3 = Math.sqrt(3);
|
|
6
6
|
var TWO_OVER_SQRT3 = 2 / Math.sqrt(3);
|
|
7
|
-
const triangularGridField =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
],
|
|
7
|
+
const triangularGridField = src_default.fn([
|
|
8
|
+
vec2f,
|
|
9
|
+
vec2f,
|
|
10
|
+
f32,
|
|
11
|
+
f32,
|
|
12
|
+
f32,
|
|
13
|
+
f32,
|
|
14
|
+
f32,
|
|
15
|
+
f32,
|
|
16
|
+
f32
|
|
17
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewport, cells, thickness, rotation, softness, variation, speedVariance, animTime) => {
|
|
18
18
|
"use gpu";
|
|
19
19
|
const aspect = __tsover_div(viewport.x, viewport.y);
|
|
20
|
-
const correctedUV =
|
|
20
|
+
const correctedUV = vec2f(__tsover_mul(uv.x, aspect), __tsover_sub(1, uv.y));
|
|
21
21
|
const ang = __tsover_mul(rotation, DEG_TO_RAD);
|
|
22
|
-
const cosR =
|
|
23
|
-
const sinR =
|
|
22
|
+
const cosR = cos(ang);
|
|
23
|
+
const sinR = sin(ang);
|
|
24
24
|
const centerX = __tsover_mul(aspect, .5);
|
|
25
25
|
const centerY = .5;
|
|
26
26
|
const cx = __tsover_sub(correctedUV.x, centerX);
|
|
27
27
|
const cy = __tsover_sub(correctedUV.y, centerY);
|
|
28
|
-
const p =
|
|
29
|
-
const ps =
|
|
30
|
-
const rowIndex =
|
|
31
|
-
const rowHash =
|
|
28
|
+
const p = vec2f(__tsover_add(__tsover_sub(__tsover_mul(cx, cosR), __tsover_mul(cy, sinR)), centerX), __tsover_add(__tsover_add(__tsover_mul(cx, sinR), __tsover_mul(cy, cosR)), centerY)).mul(cells);
|
|
29
|
+
const ps = vec2f(__tsover_sub(p.x, __tsover_div(p.y, SQRT3)), __tsover_mul(p.y, TWO_OVER_SQRT3));
|
|
30
|
+
const rowIndex = floor(ps.y);
|
|
31
|
+
const rowHash = fract(__tsover_mul(sin(__tsover_mul(rowIndex, 127.1)), 43758.5453));
|
|
32
32
|
const speedMod = __tsover_add(1, __tsover_mul(__tsover_mul(__tsover_sub(rowHash, .5), 4), speedVariance));
|
|
33
33
|
const drift = __tsover_mul(animTime, speedMod);
|
|
34
|
-
const psShifted =
|
|
35
|
-
const cell =
|
|
36
|
-
const f =
|
|
37
|
-
const upper =
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const dEdge = std.min(std.min(std.min(f.x, __tsover_sub(1, f.x)), std.min(f.y, __tsover_sub(1, f.y))), std.abs(__tsover_sub(__tsover_add(f.x, f.y), 1)));
|
|
34
|
+
const psShifted = vec2f(__tsover_sub(ps.x, drift), ps.y);
|
|
35
|
+
const cell = floor(psShifted);
|
|
36
|
+
const f = fract(psShifted);
|
|
37
|
+
const upper = step(1, __tsover_add(f.x, f.y));
|
|
38
|
+
const q0 = fract(vec2f(__tsover_add(__tsover_mul(cell.x, 2), upper), cell.y).mul(vec2f(123.34, 345.45)));
|
|
39
|
+
const q1 = q0.add(dot(q0, q0.add(34.345)));
|
|
40
|
+
const rand = fract(__tsover_mul(q1.x, q1.y));
|
|
41
|
+
const variedFactor = max(__tsover_add(1, __tsover_mul(__tsover_mul(__tsover_sub(rand, .5), 2), variation)), 0);
|
|
42
|
+
const dEdge = min(min(min(f.x, __tsover_sub(1, f.x)), min(f.y, __tsover_sub(1, f.y))), abs(__tsover_sub(__tsover_add(f.x, f.y), 1)));
|
|
44
43
|
const lineWidth = __tsover_mul(thickness, .02);
|
|
45
|
-
const aa = __tsover_add(
|
|
46
|
-
|
|
47
|
-
return d.vec2f(lineMask, variedFactor);
|
|
44
|
+
const aa = __tsover_add(max(fwidth(ps.x), fwidth(ps.y)), __tsover_mul(softness, .5));
|
|
45
|
+
return vec2f(__tsover_mul(__tsover_sub(1, smoothstep(__tsover_sub(lineWidth, aa), __tsover_add(lineWidth, aa), dEdge)), step(1e-4, lineWidth)), variedFactor);
|
|
48
46
|
}), {
|
|
49
47
|
v: 1,
|
|
50
48
|
name: void 0,
|
|
@@ -841,9 +839,9 @@ const triangularGridField = tgpu.fn([
|
|
|
841
839
|
]
|
|
842
840
|
},
|
|
843
841
|
externals: () => ({
|
|
844
|
-
d,
|
|
842
|
+
d: data_exports,
|
|
845
843
|
DEG_TO_RAD,
|
|
846
|
-
std,
|
|
844
|
+
std: std_exports,
|
|
847
845
|
SQRT3,
|
|
848
846
|
TWO_OVER_SQRT3
|
|
849
847
|
})
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-
|
|
3
|
-
const tritoneFactors =
|
|
1
|
+
import { H as mixColorsLinear, St as dot, U as mixColorsVariants, Ut as data_exports, d as ZERO, et as src_default, in as vec3f, nt as std_exports, on as vec4f, p as call, sn as f32, y as vec4, zt as smoothstep } from "./edges-BZUKQxSE.js";
|
|
2
|
+
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
3
|
+
const tritoneFactors = src_default.fn([vec4f, f32], vec3f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((color, blendMid) => {
|
|
4
4
|
"use gpu";
|
|
5
|
-
const luminance =
|
|
6
|
-
|
|
7
|
-
const midToHighlight = std.smoothstep(blendMid, __tsover_add(blendMid, .25), luminance);
|
|
8
|
-
const finalT = std.smoothstep(__tsover_sub(blendMid, .1), __tsover_add(blendMid, .1), luminance);
|
|
9
|
-
return d.vec3f(shadowToMid, midToHighlight, finalT);
|
|
5
|
+
const luminance = dot(color.xyz, vec3f(.299, .587, .114));
|
|
6
|
+
return vec3f(smoothstep(__tsover_sub(blendMid, .25), blendMid, luminance), smoothstep(blendMid, __tsover_add(blendMid, .25), luminance), smoothstep(__tsover_sub(blendMid, .1), __tsover_add(blendMid, .1), luminance));
|
|
10
7
|
}), {
|
|
11
8
|
v: 1,
|
|
12
9
|
name: void 0,
|
|
@@ -136,8 +133,8 @@ const tritoneFactors = tgpu.fn([d.vec4f, d.f32], d.vec3f)(/* @__PURE__ */ (($) =
|
|
|
136
133
|
"externalNames": ["std", "d"]
|
|
137
134
|
},
|
|
138
135
|
externals: () => ({
|
|
139
|
-
std,
|
|
140
|
-
d
|
|
136
|
+
std: std_exports,
|
|
137
|
+
d: data_exports
|
|
141
138
|
})
|
|
142
139
|
}) && $.f)({}));
|
|
143
140
|
const componentDefinition = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as transformColor, o as transformColorSpace, r as transformAngle, t as colorSpaceOptions } from "./transformations-
|
|
1
|
+
import { Dt as length, Et as fract, H as mixColorsLinear, Ot as max, Rt as sin, St as dot, Tt as floor, U as mixColorsVariants, Ut as data_exports, Vt as step, bt as cos, et as src_default, ht as abs, kt as min, lt as fwidth, mt as select, nt as std_exports, p as call, sn as f32, tn as vec2f, zt as smoothstep } from "./edges-BZUKQxSE.js";
|
|
2
|
+
import { a as transformColor, o as transformColorSpace, r as transformAngle, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
3
3
|
var DEG_TO_RAD = Math.PI / 180;
|
|
4
|
-
var truchetHash =
|
|
4
|
+
var truchetHash = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p) => {
|
|
5
5
|
"use gpu";
|
|
6
|
-
const h =
|
|
7
|
-
return
|
|
6
|
+
const h = dot(p, vec2f(127.1, 311.7));
|
|
7
|
+
return fract(__tsover_mul(sin(h), 43758.5453));
|
|
8
8
|
}), {
|
|
9
9
|
v: 1,
|
|
10
10
|
name: void 0,
|
|
@@ -58,44 +58,42 @@ var truchetHash = tgpu.fn([d.vec2f], d.f32)(/* @__PURE__ */ (($) => (globalThis.
|
|
|
58
58
|
"externalNames": ["std", "d"]
|
|
59
59
|
},
|
|
60
60
|
externals: () => ({
|
|
61
|
-
std,
|
|
62
|
-
d
|
|
61
|
+
std: std_exports,
|
|
62
|
+
d: data_exports
|
|
63
63
|
})
|
|
64
64
|
}) && $.f)({}));
|
|
65
|
-
const truchetField =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
],
|
|
65
|
+
const truchetField = src_default.fn([
|
|
66
|
+
vec2f,
|
|
67
|
+
vec2f,
|
|
68
|
+
f32,
|
|
69
|
+
f32,
|
|
70
|
+
f32,
|
|
71
|
+
f32,
|
|
72
|
+
f32
|
|
73
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewport, cells, thickness, rotation, softness, seed) => {
|
|
74
74
|
"use gpu";
|
|
75
75
|
const aspect = __tsover_div(viewport.x, viewport.y);
|
|
76
|
-
const correctedUV =
|
|
76
|
+
const correctedUV = vec2f(__tsover_mul(uv.x, aspect), uv.y);
|
|
77
77
|
const ang = -__tsover_mul(rotation, DEG_TO_RAD);
|
|
78
|
-
const cosR =
|
|
79
|
-
const sinR =
|
|
78
|
+
const cosR = cos(ang);
|
|
79
|
+
const sinR = sin(ang);
|
|
80
80
|
const centerX = __tsover_mul(aspect, .5);
|
|
81
81
|
const centerY = .5;
|
|
82
82
|
const cx = __tsover_sub(correctedUV.x, centerX);
|
|
83
83
|
const cy = __tsover_sub(correctedUV.y, centerY);
|
|
84
|
-
const scaledUV =
|
|
85
|
-
const cell =
|
|
86
|
-
const localUV =
|
|
87
|
-
const flip = truchetHash(
|
|
88
|
-
const c1x =
|
|
89
|
-
const c2x =
|
|
90
|
-
const
|
|
91
|
-
const d2 = std.abs(__tsover_sub(std.length(d.vec2f(__tsover_sub(localUV.x, c2x), __tsover_sub(localUV.y, 1))), .5));
|
|
92
|
-
const arcDist = std.min(d1, d2);
|
|
84
|
+
const scaledUV = vec2f(__tsover_add(__tsover_sub(__tsover_mul(cx, cosR), __tsover_mul(cy, sinR)), centerX), __tsover_add(__tsover_add(__tsover_mul(cx, sinR), __tsover_mul(cy, cosR)), centerY)).mul(cells);
|
|
85
|
+
const cell = floor(scaledUV);
|
|
86
|
+
const localUV = fract(scaledUV);
|
|
87
|
+
const flip = truchetHash(vec2f(__tsover_add(cell.x, seed), __tsover_add(cell.y, seed))) > .5;
|
|
88
|
+
const c1x = select(f32(0), f32(1), flip);
|
|
89
|
+
const c2x = select(f32(1), f32(0), flip);
|
|
90
|
+
const arcDist = min(abs(__tsover_sub(length(vec2f(__tsover_sub(localUV.x, c1x), localUV.y)), .5)), abs(__tsover_sub(length(vec2f(__tsover_sub(localUV.x, c2x), __tsover_sub(localUV.y, 1))), .5)));
|
|
93
91
|
const lineWidth = __tsover_mul(thickness, .005);
|
|
94
|
-
const pixel = __tsover_mul(
|
|
92
|
+
const pixel = __tsover_mul(fwidth(scaledUV.x), .5);
|
|
95
93
|
const soft = __tsover_mul(softness, .5);
|
|
96
|
-
const lo =
|
|
94
|
+
const lo = max(__tsover_sub(lineWidth, soft), 0);
|
|
97
95
|
const hi = __tsover_add(__tsover_add(lineWidth, pixel), soft);
|
|
98
|
-
return __tsover_mul(__tsover_sub(1,
|
|
96
|
+
return __tsover_mul(__tsover_sub(1, smoothstep(lo, hi, arcDist)), step(1e-4, lineWidth));
|
|
99
97
|
}), {
|
|
100
98
|
v: 1,
|
|
101
99
|
name: void 0,
|
|
@@ -688,9 +686,9 @@ const truchetField = tgpu.fn([
|
|
|
688
686
|
]
|
|
689
687
|
},
|
|
690
688
|
externals: () => ({
|
|
691
|
-
d,
|
|
689
|
+
d: data_exports,
|
|
692
690
|
DEG_TO_RAD,
|
|
693
|
-
std,
|
|
691
|
+
std: std_exports,
|
|
694
692
|
truchetHash
|
|
695
693
|
})
|
|
696
694
|
}) && $.f)({}));
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as transformPosition, s as transformEdges } from "./transformations-
|
|
3
|
-
const twirlUV =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
],
|
|
1
|
+
import { Dt as length, N as unpremultiplyAlpha, Rt as sin, Ut as data_exports, bt as cos, c as sampleRemappedExpr, d as ZERO, et as src_default, n as composeEdgeRemapExpr, nt as std_exports, p as call, sn as f32, tn as vec2f } from "./edges-BZUKQxSE.js";
|
|
2
|
+
import { c as transformPosition, s as transformEdges } from "./transformations-CsPUHppB.js";
|
|
3
|
+
const twirlUV = src_default.fn([
|
|
4
|
+
vec2f,
|
|
5
|
+
f32,
|
|
6
|
+
vec2f,
|
|
7
|
+
f32
|
|
8
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((center, intensity, uv, aspect) => {
|
|
9
9
|
"use gpu";
|
|
10
|
-
const centerPos =
|
|
10
|
+
const centerPos = vec2f(center.x, __tsover_sub(1, center.y));
|
|
11
11
|
const delta = uv.sub(centerPos);
|
|
12
|
-
const acd =
|
|
13
|
-
const angle = __tsover_mul(intensity,
|
|
14
|
-
const cosA =
|
|
15
|
-
const sinA =
|
|
12
|
+
const acd = vec2f(__tsover_mul(delta.x, aspect), delta.y);
|
|
13
|
+
const angle = __tsover_mul(intensity, length(acd));
|
|
14
|
+
const cosA = cos(angle);
|
|
15
|
+
const sinA = sin(angle);
|
|
16
16
|
const rotatedX = __tsover_sub(__tsover_mul(cosA, acd.x), __tsover_mul(sinA, acd.y));
|
|
17
17
|
const rotatedY = __tsover_add(__tsover_mul(sinA, acd.x), __tsover_mul(cosA, acd.y));
|
|
18
|
-
return
|
|
18
|
+
return vec2f(__tsover_add(__tsover_div(rotatedX, aspect), centerPos.x), __tsover_add(rotatedY, centerPos.y));
|
|
19
19
|
}), {
|
|
20
20
|
v: 1,
|
|
21
21
|
name: void 0,
|
|
@@ -240,8 +240,8 @@ const twirlUV = tgpu.fn([
|
|
|
240
240
|
"externalNames": ["d", "std"]
|
|
241
241
|
},
|
|
242
242
|
externals: () => ({
|
|
243
|
-
d,
|
|
244
|
-
std
|
|
243
|
+
d: data_exports,
|
|
244
|
+
std: std_exports
|
|
245
245
|
})
|
|
246
246
|
}) && $.f)({}));
|
|
247
247
|
const componentDefinition = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as mix, Et as fract, N as unpremultiplyAlpha, Rt as sin, St as dot, Tt as floor, Ut as data_exports, Yt as mod, _ 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, yt as clamp, zt as smoothstep } from "./edges-BZUKQxSE.js";
|
|
2
2
|
var FIELD_LINES = 487;
|
|
3
|
-
var hash2D =
|
|
3
|
+
var hash2D = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p) => {
|
|
4
4
|
"use gpu";
|
|
5
|
-
return
|
|
5
|
+
return fract(__tsover_mul(sin(dot(p, vec2f(12.9898, 78.233))), 43758.5453));
|
|
6
6
|
}), {
|
|
7
7
|
v: 1,
|
|
8
8
|
name: void 0,
|
|
@@ -52,20 +52,20 @@ var hash2D = tgpu.fn([d.vec2f], d.f32)(/* @__PURE__ */ (($) => (globalThis.__TYP
|
|
|
52
52
|
"externalNames": ["std", "d"]
|
|
53
53
|
},
|
|
54
54
|
externals: () => ({
|
|
55
|
-
std,
|
|
56
|
-
d
|
|
55
|
+
std: std_exports,
|
|
56
|
+
d: data_exports
|
|
57
57
|
})
|
|
58
58
|
}) && $.f)({}));
|
|
59
|
-
var smoothNoise2D =
|
|
59
|
+
var smoothNoise2D = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p) => {
|
|
60
60
|
"use gpu";
|
|
61
|
-
const i =
|
|
62
|
-
const f =
|
|
63
|
-
const u = f.mul(f).mul(
|
|
61
|
+
const i = floor(p);
|
|
62
|
+
const f = fract(p);
|
|
63
|
+
const u = f.mul(f).mul(vec2f(3, 3).sub(f.mul(2)));
|
|
64
64
|
const a = hash2D(i);
|
|
65
|
-
const b = hash2D(i.add(
|
|
66
|
-
const c = hash2D(i.add(
|
|
67
|
-
const dd = hash2D(i.add(
|
|
68
|
-
return
|
|
65
|
+
const b = hash2D(i.add(vec2f(1, 0)));
|
|
66
|
+
const c = hash2D(i.add(vec2f(0, 1)));
|
|
67
|
+
const dd = hash2D(i.add(vec2f(1, 1)));
|
|
68
|
+
return mix(mix(a, b, u.x), mix(c, dd, u.x), u.y);
|
|
69
69
|
}), {
|
|
70
70
|
v: 1,
|
|
71
71
|
name: void 0,
|
|
@@ -287,40 +287,40 @@ var smoothNoise2D = tgpu.fn([d.vec2f], d.f32)(/* @__PURE__ */ (($) => (globalThi
|
|
|
287
287
|
]
|
|
288
288
|
},
|
|
289
289
|
externals: () => ({
|
|
290
|
-
std,
|
|
291
|
-
d,
|
|
290
|
+
std: std_exports,
|
|
291
|
+
d: data_exports,
|
|
292
292
|
hash2D
|
|
293
293
|
})
|
|
294
294
|
}) && $.f)({}));
|
|
295
|
-
const vhsSampleUVs =
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
],
|
|
295
|
+
const vhsSampleUVs = src_default.fn([
|
|
296
|
+
vec2f,
|
|
297
|
+
f32,
|
|
298
|
+
f32,
|
|
299
|
+
f32,
|
|
300
|
+
f32
|
|
301
|
+
], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, time, speed, wobble, scanlineNoise) => {
|
|
302
302
|
"use gpu";
|
|
303
303
|
const t = __tsover_mul(time, speed);
|
|
304
|
-
const burst =
|
|
305
|
-
const rowInt =
|
|
306
|
-
const h0 = __tsover_mul(__tsover_sub(
|
|
307
|
-
const h1 = __tsover_mul(__tsover_sub(
|
|
304
|
+
const burst = smoothstep(.45, .8, smoothNoise2D(vec2f(__tsover_mul(t, .4), 0)));
|
|
305
|
+
const rowInt = floor(__tsover_mul(uv.y, FIELD_LINES));
|
|
306
|
+
const h0 = __tsover_mul(__tsover_sub(fract(__tsover_mul(sin(__tsover_add(__tsover_mul(rowInt, 12.9898), __tsover_mul(t, 78.233))), 43758.5453)), .5), 2);
|
|
307
|
+
const h1 = __tsover_mul(__tsover_sub(fract(__tsover_mul(sin(__tsover_add(__tsover_mul(rowInt, 12.9898), __tsover_mul(__tsover_add(t, 69.42), 78.233))), 43758.5453)), .5), 2);
|
|
308
308
|
const fineGate = __tsover_add(.25, __tsover_mul(burst, .75));
|
|
309
309
|
const chromaRowOffset = __tsover_mul(__tsover_mul(__tsover_mul(h0, scanlineNoise), .008), fineGate);
|
|
310
310
|
const lumaRowOffset = __tsover_mul(__tsover_mul(__tsover_mul(h1, scanlineNoise), .004), fineGate);
|
|
311
|
-
const wave1 = __tsover_sub(smoothNoise2D(
|
|
312
|
-
const wave2 = __tsover_sub(smoothNoise2D(
|
|
311
|
+
const wave1 = __tsover_sub(smoothNoise2D(vec2f(__tsover_mul(uv.y, 3), __tsover_mul(t, .8))), .5);
|
|
312
|
+
const wave2 = __tsover_sub(smoothNoise2D(vec2f(__tsover_mul(uv.y, 30), __tsover_mul(t, 6))), .5);
|
|
313
313
|
const tapeWave = __tsover_mul(__tsover_add(__tsover_mul(wave1, .008), __tsover_mul(wave2, .002)), wobble);
|
|
314
|
-
const creasePhase =
|
|
315
|
-
const creaseNoise =
|
|
314
|
+
const creasePhase = smoothstep(.92, .99, sin(__tsover_sub(__tsover_mul(uv.y, 8), __tsover_mul(t, 3.77))));
|
|
315
|
+
const creaseNoise = smoothstep(.3, 1, smoothNoise2D(vec2f(__tsover_mul(uv.y, 4.77), t)));
|
|
316
316
|
const creaseShift = __tsover_mul(__tsover_mul(__tsover_mul(creasePhase, creaseNoise), wobble), -.018);
|
|
317
|
-
const switchPhase = __tsover_sub(1,
|
|
318
|
-
const switchNoise = __tsover_sub(smoothNoise2D(
|
|
317
|
+
const switchPhase = __tsover_sub(1, smoothstep(0, .06, uv.y));
|
|
318
|
+
const switchNoise = __tsover_sub(smoothNoise2D(vec2f(__tsover_mul(uv.y, 60), __tsover_mul(t, 14))), .5);
|
|
319
319
|
const switchX = __tsover_mul(__tsover_mul(__tsover_mul(switchPhase, switchNoise), wobble), .09);
|
|
320
320
|
const switchY = __tsover_mul(__tsover_mul(__tsover_mul(switchPhase, wobble), burst), .02);
|
|
321
321
|
const globalX = __tsover_add(__tsover_add(tapeWave, creaseShift), switchX);
|
|
322
322
|
const sy = __tsover_add(uv.y, switchY);
|
|
323
|
-
return
|
|
323
|
+
return vec4f(__tsover_add(__tsover_add(uv.x, globalX), lumaRowOffset), sy, __tsover_add(__tsover_add(uv.x, globalX), chromaRowOffset), sy);
|
|
324
324
|
}), {
|
|
325
325
|
v: 1,
|
|
326
326
|
name: void 0,
|
|
@@ -961,21 +961,21 @@ const vhsSampleUVs = tgpu.fn([
|
|
|
961
961
|
]
|
|
962
962
|
},
|
|
963
963
|
externals: () => ({
|
|
964
|
-
std,
|
|
964
|
+
std: std_exports,
|
|
965
965
|
smoothNoise2D,
|
|
966
|
-
d,
|
|
966
|
+
d: data_exports,
|
|
967
967
|
FIELD_LINES
|
|
968
968
|
})
|
|
969
969
|
}) && $.f)({}));
|
|
970
|
-
const vhsAcBeat =
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
],
|
|
970
|
+
const vhsAcBeat = src_default.fn([
|
|
971
|
+
vec2f,
|
|
972
|
+
f32,
|
|
973
|
+
f32,
|
|
974
|
+
f32
|
|
975
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, time, speed, wobble) => {
|
|
976
976
|
"use gpu";
|
|
977
977
|
const t = __tsover_mul(time, speed);
|
|
978
|
-
return __tsover_add(1, __tsover_mul(__tsover_mul(
|
|
978
|
+
return __tsover_add(1, __tsover_mul(__tsover_mul(cos(__tsover_add(__tsover_mul(mod(t, 6.2831853), 2), __tsover_mul(uv.y, .5))), .015), wobble));
|
|
979
979
|
}), {
|
|
980
980
|
v: 1,
|
|
981
981
|
name: void 0,
|
|
@@ -1060,15 +1060,15 @@ const vhsAcBeat = tgpu.fn([
|
|
|
1060
1060
|
]]]],
|
|
1061
1061
|
"externalNames": ["std"]
|
|
1062
1062
|
},
|
|
1063
|
-
externals: () => ({ std })
|
|
1063
|
+
externals: () => ({ std: std_exports })
|
|
1064
1064
|
}) && $.f)({}));
|
|
1065
|
-
const vhsChromaTapUV =
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
],
|
|
1065
|
+
const vhsChromaTapUV = src_default.fn([
|
|
1066
|
+
vec2f,
|
|
1067
|
+
f32,
|
|
1068
|
+
f32
|
|
1069
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((chromaUV, smearScale, i) => {
|
|
1070
1070
|
"use gpu";
|
|
1071
|
-
return
|
|
1071
|
+
return vec2f(__tsover_add(chromaUV.x, __tsover_mul(__tsover_mul(i, -1), smearScale)), chromaUV.y);
|
|
1072
1072
|
}), {
|
|
1073
1073
|
v: 1,
|
|
1074
1074
|
name: void 0,
|
|
@@ -1125,26 +1125,25 @@ const vhsChromaTapUV = tgpu.fn([
|
|
|
1125
1125
|
]]]],
|
|
1126
1126
|
"externalNames": ["d"]
|
|
1127
1127
|
},
|
|
1128
|
-
externals: () => ({ d })
|
|
1128
|
+
externals: () => ({ d: data_exports })
|
|
1129
1129
|
}) && $.f)({}));
|
|
1130
|
-
const vhsCompose =
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
],
|
|
1130
|
+
const vhsCompose = src_default.fn([
|
|
1131
|
+
vec4f,
|
|
1132
|
+
vec4f,
|
|
1133
|
+
vec4f,
|
|
1134
|
+
vec4f,
|
|
1135
|
+
vec4f,
|
|
1136
|
+
vec4f,
|
|
1137
|
+
f32
|
|
1138
|
+
], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((luma, c1, c2, c3, c4, c5, acBeat) => {
|
|
1139
1139
|
"use gpu";
|
|
1140
|
-
const sharpY =
|
|
1141
|
-
const iAxis =
|
|
1142
|
-
const qAxis =
|
|
1143
|
-
const accI = __tsover_add(__tsover_add(__tsover_add(__tsover_add(__tsover_mul(
|
|
1144
|
-
const accQ = __tsover_add(__tsover_add(__tsover_add(__tsover_add(__tsover_mul(
|
|
1145
|
-
const
|
|
1146
|
-
|
|
1147
|
-
return d.vec4f(clamped.x, clamped.y, clamped.z, luma.w);
|
|
1140
|
+
const sharpY = dot(luma.xyz, vec3f(.299, .587, .114));
|
|
1141
|
+
const iAxis = vec3f(.596, -.274, -.322);
|
|
1142
|
+
const qAxis = vec3f(.211, -.523, .312);
|
|
1143
|
+
const accI = __tsover_add(__tsover_add(__tsover_add(__tsover_add(__tsover_mul(dot(c1.xyz, iAxis), .06666666666666667), __tsover_mul(dot(c2.xyz, iAxis), .13333333333333333)), __tsover_mul(dot(c3.xyz, iAxis), .2)), __tsover_mul(dot(c4.xyz, iAxis), .26666666666666666)), __tsover_mul(dot(c5.xyz, iAxis), .3333333333333333));
|
|
1144
|
+
const accQ = __tsover_add(__tsover_add(__tsover_add(__tsover_add(__tsover_mul(dot(c1.xyz, qAxis), .06666666666666667), __tsover_mul(dot(c2.xyz, qAxis), .13333333333333333)), __tsover_mul(dot(c3.xyz, qAxis), .2)), __tsover_mul(dot(c4.xyz, qAxis), .26666666666666666)), __tsover_mul(dot(c5.xyz, qAxis), .3333333333333333));
|
|
1145
|
+
const clamped = clamp(vec3f(__tsover_add(__tsover_add(sharpY, __tsover_mul(accI, .956)), __tsover_mul(accQ, .621)), __tsover_sub(__tsover_sub(sharpY, __tsover_mul(accI, .272)), __tsover_mul(accQ, .647)), __tsover_add(__tsover_sub(sharpY, __tsover_mul(accI, 1.106)), __tsover_mul(accQ, 1.703))).mul(acBeat), vec3f(0, 0, 0), vec3f(1, 1, 1));
|
|
1146
|
+
return vec4f(clamped.x, clamped.y, clamped.z, luma.w);
|
|
1148
1147
|
}), {
|
|
1149
1148
|
v: 1,
|
|
1150
1149
|
name: void 0,
|
|
@@ -1635,8 +1634,8 @@ const vhsCompose = tgpu.fn([
|
|
|
1635
1634
|
"externalNames": ["std", "d"]
|
|
1636
1635
|
},
|
|
1637
1636
|
externals: () => ({
|
|
1638
|
-
std,
|
|
1639
|
-
d
|
|
1637
|
+
std: std_exports,
|
|
1638
|
+
d: data_exports
|
|
1640
1639
|
})
|
|
1641
1640
|
}) && $.f)({}));
|
|
1642
1641
|
const componentDefinition = {
|