shaders 3.0.447 → 3.0.449
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-DU1WmNHt.js} +15 -15
- package/dist/core/{Arc-DYvFxtGy.js → Arc-C8QmYsiZ.js} +13 -12
- package/dist/core/{Ascii-ChE4BP7J.js → Ascii-BaQ6MZTc.js} +51 -53
- package/dist/core/{Aurora-BThE6pbb.js → Aurora-B6lOg6M4.js} +63 -68
- package/dist/core/{BarShift-DdjkPSk3.js → BarShift-CFK-CzF9.js} +31 -32
- package/dist/core/{BarnDoors-B_kxVuec.js → BarnDoors-DWs_0xtH.js} +21 -22
- package/dist/core/{Beam-C7zPHuIU.js → Beam-Cgc4EYnj.js} +32 -39
- package/dist/core/{Bend-CFcEjifF.js → Bend-oof5pE1H.js} +27 -28
- package/dist/core/{Blob-CgUolAhz.js → Blob-cfvDCv0i.js} +54 -60
- package/dist/core/{BlockDissolve-CLSxXB4e.js → BlockDissolve-C7yJzYGZ.js} +21 -20
- package/dist/core/{BlockNoise-BgEJOicU.js → BlockNoise-DaM9YDAH.js} +16 -14
- package/dist/core/{BlueNoise-BqMtBLxM.js → BlueNoise-BMMRTsMw.js} +12 -10
- package/dist/core/{Blur-Xaa6jVPT.js → Blur-Be7sX4v9.js} +27 -27
- package/dist/core/{Boids-B8QUNxRL.js → Boids-C9S69THK.js} +151 -149
- package/dist/core/{BokehBlur-B5fql96U.js → BokehBlur-DSkKZ_yy.js} +104 -104
- package/dist/core/{BrickPattern-EAD5HD4e.js → BrickPattern-BY7h4hyx.js} +34 -38
- package/dist/core/{BrightnessContrast-mbv32DkA.js → BrightnessContrast-DFc0gSUv.js} +9 -10
- package/dist/core/{BrushedMetal-B10fDdGt.js → BrushedMetal-B06tUygH.js} +81 -84
- package/dist/core/{Bulge-C1Pq4DHk.js → Bulge-BpSOQfH0.js} +19 -19
- package/dist/core/{CRTScreen-Ctx0Mxtb.js → CRTScreen-DdGcEvk2.js} +35 -37
- package/dist/core/{CarbonFiber-DSSARe6R.js → CarbonFiber-Dy7Osb3V.js} +81 -84
- package/dist/core/{Chalkboard-C7srb54u.js → Chalkboard-wRYj23wL.js} +59 -61
- package/dist/core/{ChannelBlur-DE3T4-pj.js → ChannelBlur-DKD9GUpc.js} +13 -15
- package/dist/core/{CheckerWipe-Dp49-iaT.js → CheckerWipe-D0WmsSKg.js} +23 -23
- package/dist/core/{Checkerboard-oVWtS0rz.js → Checkerboard-2sQYJks9.js} +31 -31
- package/dist/core/{Chevron-CCD5JTRA.js → Chevron-D3oPw2-i.js} +20 -20
- package/dist/core/{ChromaFlow-BiE9Mes0.js → ChromaFlow-px9KG_h6.js} +32 -33
- package/dist/core/{ChromaticAberration-XEasUrD3.js → ChromaticAberration-DLFROPJV.js} +13 -13
- package/dist/core/{Circle-CvQ9duDU.js → Circle-0CqIPN3a.js} +14 -13
- package/dist/core/{ColorWheel-CXvfWAjN.js → ColorWheel-CMtn8slz.js} +30 -34
- package/dist/core/{CompressionArtifacts-BDaP7XI6.js → CompressionArtifacts-D7dpVg47.js} +64 -66
- package/dist/core/{ConcentricSpin-D06hFXEb.js → ConcentricSpin-BPk-_egF.js} +39 -41
- package/dist/core/{ConicGradient-Cg6vy3gl.js → ConicGradient-B-tEhmfR.js} +17 -18
- package/dist/core/{ContourLines-Cg2Dlmcr.js → ContourLines-BlgCWFSy.js} +29 -30
- package/dist/core/{CornerPin-wtqiMUCa.js → CornerPin-DB3G2i_y.js} +55 -57
- package/dist/core/{Crescent-Co__JqEE.js → Crescent-CFzPQKll.js} +14 -13
- package/dist/core/{Cross-CFytbdrZ.js → Cross-Cstl9nDg.js} +14 -13
- package/dist/core/{Crystal-U7VqhbHy.js → Crystal-CEeqF1Xa.js} +143 -152
- package/dist/core/{CurlNoise-BXWYh1Qi.js → CurlNoise-uvTKk4Wa.js} +16 -14
- package/dist/core/{CursorRipples-APbH7SVR.js → CursorRipples-B46VApbY.js} +59 -58
- package/dist/core/{CursorTrail-D5Fj0wGp.js → CursorTrail-DzYRTzzA.js} +72 -71
- package/dist/core/{DataMosh-CWRLpjU3.js → DataMosh-Ysev5-c_.js} +71 -73
- package/dist/core/{DiamondGradient-C_2VoEiQ.js → DiamondGradient-pTOwPuAl.js} +23 -25
- package/dist/core/{DiamondWipe-BkdNODD1.js → DiamondWipe-D6u1P2xH.js} +22 -22
- package/dist/core/{DiffuseBlur-Dl7S4KBW.js → DiffuseBlur-BX0cfwyh.js} +11 -12
- package/dist/core/{DisplacementMap-lv-qoLem.js → DisplacementMap-DMNivtcV.js} +26 -26
- package/dist/core/{Dither-B33J_gJU.js → Dither-Cxu-hSc_.js} +116 -119
- package/dist/core/{DotGrid-DaOhiRaL.js → DotGrid-CbNHebie.js} +37 -39
- package/dist/core/{DropShadow-C5Z2Rs2C.js → DropShadow-DFyuEA17.js} +37 -37
- package/dist/core/{Duotone-x4cywJbU.js → Duotone-CgueO-jZ.js} +7 -7
- package/dist/core/{Ellipse-CrQ1XYjx.js → Ellipse-DxRnSw__.js} +13 -12
- package/dist/core/{Emboss-DNwO5JcE.js → Emboss-BJxzjZmZ.js} +76 -78
- package/dist/core/{Engraving-FsaRQiyI.js → Engraving-DmQCj8vU.js} +57 -59
- package/dist/core/{ErosionNoise-CloHpdFT.js → ErosionNoise-7ekcAfBb.js} +13 -11
- package/dist/core/{Exposure-mO6KjYvc.js → Exposure-avEereLn.js} +4 -5
- package/dist/core/{FallingLines-D_1wHUkx.js → FallingLines-BINyHi3N.js} +40 -42
- package/dist/core/{FilmGrain-DDhrsw94.js → FilmGrain-B-pZBxiK.js} +17 -18
- package/dist/core/{FilmStock-BaP2aTLu.js → FilmStock-BJfso8f3.js} +74 -74
- package/dist/core/{Flip-DYuqyJva.js → Flip-Dbwe0zh8.js} +10 -12
- package/dist/core/{FloatingParticles-DJwNpHtZ.js → FloatingParticles-CoQ01il5.js} +97 -94
- package/dist/core/{FlowField-D4iGiDic.js → FlowField-CU6S3Jar.js} +24 -23
- package/dist/core/{Flower-D0MqoayS.js → Flower-R7HIopNH.js} +14 -13
- package/dist/core/{FlowingGradient-9Zu0Pu4a.js → FlowingGradient-D66Y9Wgq.js} +38 -39
- package/dist/core/{FlutedGlass-C_clmShu.js → FlutedGlass-WAaeW92l.js} +43 -43
- package/dist/core/{Fog-C_kY5pWB.js → Fog-BChoF6fi.js} +172 -171
- package/dist/core/{Form3D-D4aXZGoJ.js → Form3D-DajWNpAi.js} +259 -267
- package/dist/core/{FractalNoise-mMVLGmIv.js → FractalNoise-DIrQ3eQj.js} +30 -28
- package/dist/core/{Frost-M53tZlcf.js → Frost-B_3JSI2H.js} +70 -73
- package/dist/core/{GaborNoise-BhXywN1d.js → GaborNoise-4FWeA9yr.js} +16 -14
- package/dist/core/{Glass-B9D_52op.js → Glass-wOhmSf3v.js} +6 -4
- package/dist/core/{GlassTiles-DIkGYgVE.js → GlassTiles-DgdAiEuy.js} +23 -26
- package/dist/core/{Glitch-CUOJt5VX.js → Glitch-BOiywFUR.js} +60 -65
- package/dist/core/{Glow-D5AdnLvU.js → Glow-C2cEWdNE.js} +76 -77
- package/dist/core/{Godrays-BeQCWVw7.js → Godrays-DAZB2GSn.js} +52 -56
- package/dist/core/{Goo-C0_0QYne.js → Goo-B_WAqWYW.js} +64 -65
- package/dist/core/{GradientMap-DOVK05_a.js → GradientMap-DxsOInED.js} +47 -50
- package/dist/core/{Grayscale-Uv_6LYA9.js → Grayscale-DSHs9mZd.js} +6 -6
- package/dist/core/{Grid-Dbp4DoXZ.js → Grid-aO3wzf4X.js} +46 -48
- package/dist/core/{GridDistortion-D_21zIrm.js → GridDistortion-DsHsHda7.js} +63 -62
- package/dist/core/{Group-DXiB5Qrx.js → Group-CCcDbysC.js} +1 -1
- package/dist/core/{HTMLInCanvas-xXPLTYIv.js → HTMLInCanvas-B2OooKKr.js} +1 -1
- package/dist/core/{Halftone-DszIQsyx.js → Halftone-3a3rz4ln.js} +59 -62
- package/dist/core/{Heart-COpnSJPD.js → Heart-CzO0_GoB.js} +12 -11
- package/dist/core/{Heatmap-CMm8SD-P.js → Heatmap-DPtUc8YG.js} +57 -55
- package/dist/core/{HexGrid-B6wNW-45.js → HexGrid-CN5A0m5j.js} +32 -35
- package/dist/core/{Hologram-XejRN51V.js → Hologram-DoKRhChe.js} +62 -66
- package/dist/core/{Holographic-D1G_Ou1y.js → Holographic-BWyW5z_h.js} +58 -61
- package/dist/core/{HueShift-BCDgYfJs.js → HueShift-C0p8EGk-.js} +7 -10
- package/dist/core/{ImageTexture-BE2Jlkg6.js → ImageTexture-BnwkbXAW.js} +3 -2
- package/dist/core/{InkFlow-DJaJqula.js → InkFlow-BH86usRX.js} +156 -156
- package/dist/core/{Invert-DDmITZjt.js → Invert-BIjy9ddK.js} +4 -4
- package/dist/core/{IrisWipe-BFs5DDSa.js → IrisWipe-lpU7lucQ.js} +20 -23
- package/dist/core/{IsometricCubes-ChKqYTIw.js → IsometricCubes-CIieztxI.js} +37 -42
- package/dist/core/{Kaleidoscope-C8_-tC6T.js → Kaleidoscope-CUMvqmfN.js} +21 -21
- package/dist/core/{KeyFrames-xR9ZzHKj.js → KeyFrames-mI1J02zX.js} +130 -129
- package/dist/core/{LensFlare-DHGNEDIX.js → LensFlare-ChQK_hJN.js} +82 -84
- package/dist/core/{LightEdge-DYfhB3-7.js → LightEdge-Rg-zMpGb.js} +106 -107
- package/dist/core/{LightLeak-CYjuMURe.js → LightLeak-D1CxVo9A.js} +58 -59
- package/dist/core/{LinearBlur-CV7gKYHV.js → LinearBlur-DJBkHfs8.js} +14 -14
- package/dist/core/{LinearGradient-DAzw65UB.js → LinearGradient-DCRYBS4Q.js} +36 -37
- package/dist/core/{LinearWipe-DoDZF7y0.js → LinearWipe-Cxfs1tIO.js} +20 -21
- package/dist/core/{LiquidMetal-C9OxRyE4.js → LiquidMetal-oscNnbsr.js} +70 -73
- package/dist/core/{Liquify-gNsuR7aA.js → Liquify-CJwl6Wef.js} +67 -66
- package/dist/core/{MagneticFilings-CQ7zHEow.js → MagneticFilings-DAOFLjAQ.js} +125 -125
- package/dist/core/{Marble-BSSMSrv8.js → Marble-Cr4Iaq38.js} +22 -21
- package/dist/core/{Mirror-BZAUA2jk.js → Mirror-BwOuv3TP.js} +18 -18
- package/dist/core/{MultiPointGradient-HSfAYB-u.js → MultiPointGradient-CSowH0-7.js} +30 -31
- package/dist/core/{Neon-D9d6Osal.js → Neon-CPIvbGSB.js} +102 -113
- package/dist/core/{NoiseDissolve-CnELvUG_.js → NoiseDissolve-ByahROgQ.js} +23 -22
- package/dist/core/{ObjectTracker-COh35yTh.js → ObjectTracker-DMCr6kHz.js} +3 -3
- package/dist/core/{PagePeel-B6sjmvZ1.js → PagePeel-Coq0hc8R.js} +54 -58
- package/dist/core/{Paper-LfukraJk.js → Paper-CLlhc3fn.js} +16 -15
- package/dist/core/{Parallelogram-DBi0yAG3.js → Parallelogram-Be8RQBV7.js} +14 -13
- package/dist/core/{ParticleField-q7COY9YT.js → ParticleField-DDO-Tk9X.js} +154 -150
- package/dist/core/{ParticleFlow-DiHWbIon.js → ParticleFlow-B89PWVem.js} +210 -208
- package/dist/core/{Particles-BFsKUAPx.js → Particles-D8rP46SB.js} +207 -209
- package/dist/core/{PerlinNoise-KV2GG0ts.js → PerlinNoise-_whB3Y3m.js} +16 -14
- package/dist/core/{Perspective-CJSrtEy5.js → Perspective-BJuQWHOr.js} +23 -25
- package/dist/core/{PixelSort-WD-Y6ZFu.js → PixelSort-CJfXD6g0.js} +109 -109
- package/dist/core/{PixelThrow-CnOXm7Hv.js → PixelThrow-BaTI5PzH.js} +35 -35
- package/dist/core/{Pixelate-XJI9f1oT.js → Pixelate-D7Dto_8I.js} +19 -19
- package/dist/core/{Plasma-C0dnSaw1.js → Plasma-DWIDcCnn.js} +33 -32
- package/dist/core/{Plastic-DBv_6A7q.js → Plastic-CWAOd2i9.js} +82 -84
- package/dist/core/{PolarCoordinates-B8Cq2bzT.js → PolarCoordinates-DQM3dLK3.js} +16 -18
- package/dist/core/{Polygon-ORM35JKg.js → Polygon-CFmLohBu.js} +16 -17
- package/dist/core/{Posterize-Dn-Vv2S1.js → Posterize-B8PHXwhy.js} +5 -8
- package/dist/core/{Prism-CYLsGJHY.js → Prism-C5VS4TLU.js} +36 -40
- package/dist/core/{ProgressiveBlur-BXUumCm5.js → ProgressiveBlur-BcGcteLH.js} +63 -65
- package/dist/core/{RadialGradient-j6T56q1W.js → RadialGradient-D3UoKiGu.js} +22 -23
- package/dist/core/{RadialWipe-Bz19qvls.js → RadialWipe-DXfAH0Ug.js} +25 -25
- package/dist/core/{RandomBars-3RlhwDYG.js → RandomBars-BVsp1Q7v.js} +23 -23
- package/dist/core/{ReactionDiffusion-DdXavIVw.js → ReactionDiffusion-DknxOF-o.js} +173 -175
- package/dist/core/{RectangularCoordinates-p3250IKV.js → RectangularCoordinates-DFQm4y6H.js} +14 -14
- package/dist/core/{ReflectivePlane-BOl9AEoO.js → ReflectivePlane-BDlGBzo1.js} +35 -37
- package/dist/core/{Repeater-BMXmN95R.js → Repeater-DHW6eDAm.js} +2 -2
- package/dist/core/{Ring-DKcROHDs.js → Ring-3brC5en8.js} +15 -14
- package/dist/core/{RippleWipe-QH8D0Y-2.js → RippleWipe-DQfXGjRv.js} +24 -27
- package/dist/core/{Ripples-8fFdo6aq.js → Ripples-DajR3Cl5.js} +18 -21
- package/dist/core/{RoundedRect-Cr76tP9o.js → RoundedRect-CfkYNmkV.js} +14 -13
- package/dist/core/{Saturation-Dqifs1x7.js → Saturation-BPTssGSs.js} +8 -9
- package/dist/core/{Scratches-sa8JU4Eb.js → Scratches-A-AyASZm.js} +16 -14
- package/dist/core/{Sharpness-IRuPd9nn.js → Sharpness-Di39DpCB.js} +21 -22
- package/dist/core/{Shatter-BYaxMvyd.js → Shatter-CWf3HtjN.js} +73 -72
- package/dist/core/{SimplexNoise-C2vmRzgy.js → SimplexNoise-DpZ2jtdk.js} +19 -17
- package/dist/core/{SineWave-BGAJyGFr.js → SineWave-CZuksvHn.js} +20 -20
- package/dist/core/{SliceWipe-BOcCk5Se.js → SliceWipe-BwL2D3HR.js} +19 -19
- package/dist/core/{Smoke-B1twbhQ4.js → Smoke-BsUkbTI1.js} +156 -155
- package/dist/core/{SmokeFill-CAayneM2.js → SmokeFill-CaDMgNW-.js} +233 -231
- package/dist/core/{SmokeFlow-Ug8difAz.js → SmokeFlow-CLfsAbPS.js} +143 -142
- package/dist/core/{Solarize-205KKROH.js → Solarize-ALjXXAf0.js} +12 -14
- package/dist/core/{SolidColor-B4pj8onb.js → SolidColor-Cu_9b_my.js} +1 -1
- package/dist/core/{Spherize-DUQxwwCL.js → Spherize-SBfCc9Wk.js} +31 -37
- package/dist/core/{Spiral-DY1c-N4F.js → Spiral-iRrT222n.js} +36 -36
- package/dist/core/{Star-DRxNaHHo.js → Star-DL3d_HqY.js} +14 -13
- package/dist/core/{Stone-CUdcvOWd.js → Stone-OTsCM-rr.js} +2 -2
- package/dist/core/{Strands-CFxYJMFu.js → Strands-DjoQgGnd.js} +47 -49
- package/dist/core/{Stretch-DYrVdt8A.js → Stretch-CdzhxnbM.js} +19 -19
- package/dist/core/{Stripes-BvnoWdwn.js → Stripes-CsBgKYdp.js} +39 -39
- package/dist/core/{StudioBackground-srQGUpfZ.js → StudioBackground-D8EdrLg5.js} +67 -68
- package/dist/core/{SunBurst-COsVDZ4e.js → SunBurst-ErBFL-nF.js} +18 -20
- package/dist/core/{Surface3D-TsGPzdGm.js → Surface3D-CLjX61TZ.js} +144 -144
- package/dist/core/{Swirl-nXMWVY2X.js → Swirl-DDQif_lC.js} +18 -21
- package/dist/core/{Teardrop-Bjtkigk4.js → Teardrop-CvpdElTs.js} +13 -12
- package/dist/core/{Text-BGdsqRl5.js → Text-vyzeMvhl.js} +20 -21
- package/dist/core/{ThinFilm-DhMKI5e2.js → ThinFilm-CbkMTbD2.js} +59 -67
- package/dist/core/{TiltShift-BwuYyXB6.js → TiltShift-BVMyB8lF.js} +66 -67
- package/dist/core/{TimeTrail-CE2XumxR.js → TimeTrail-CuFGvzFi.js} +91 -94
- package/dist/core/{Tint-BTmcGjEl.js → Tint-C6zMMsYH.js} +25 -26
- package/dist/core/{Trapezoid-CiZCh8QS.js → Trapezoid-kFuxWONU.js} +14 -13
- package/dist/core/{TriangularGrid-BnQOEljy.js → TriangularGrid-FIrpI_qE.js} +34 -36
- package/dist/core/{Tritone-Ta084wlF.js → Tritone-DyLGtOug.js} +7 -10
- package/dist/core/{Truchet-BxCh_IIp.js → Truchet-B4NI56Zz.js} +31 -33
- package/dist/core/{Twirl-Cw4jm59Q.js → Twirl-CuzhWXfj.js} +16 -16
- package/dist/core/{VHS-Nwk0E-tf.js → VHS-DYbzndAZ.js} +68 -69
- package/dist/core/{VenetianBlinds-BZ0sS97G.js → VenetianBlinds-DVopy3xp.js} +22 -23
- package/dist/core/{Vesica-Cf1KiSzK.js → Vesica-Cd-XyG3F.js} +13 -12
- package/dist/core/{Vibrance-qWGvLkrW.js → Vibrance-CvXatkfO.js} +7 -8
- package/dist/core/{VideoTexture-48ylVDvN.js → VideoTexture-C5PS6Vly.js} +34 -39
- package/dist/core/{Vignette-CK_Li7v2.js → Vignette-DtBpWWxW.js} +20 -22
- package/dist/core/{Voronoi-DMYFDwIS.js → Voronoi-CRH2cGlR.js} +33 -37
- package/dist/core/{Water-D74wbHmn.js → Water-CneenzRZ.js} +101 -108
- package/dist/core/{Watercolor-zo8-4Vqx.js → Watercolor-B343pgM-.js} +63 -64
- package/dist/core/{WaveDistortion-BLrvGOzF.js → WaveDistortion-DHz1FxLT.js} +80 -82
- package/dist/core/{WaveletNoise-a5OpO8-D.js → WaveletNoise-CsLE9gbM.js} +16 -14
- package/dist/core/{Weave-D1D3kuUg.js → Weave-CQEF71nr.js} +28 -31
- package/dist/core/{WebcamTexture-pBETyQYG.js → WebcamTexture-BcsYFM_g.js} +7 -7
- package/dist/core/{Wool-CMnWPdy9.js → Wool-BFSicimy.js} +2 -2
- package/dist/core/{WorleyNoise-BAEo0duh.js → WorleyNoise-BKq3es5v.js} +69 -70
- package/dist/core/{ZoomBlur-CnBNmcfx.js → ZoomBlur-Bu1SlmS2.js} +12 -12
- package/dist/core/agents-Bv3--qPL.js +997 -0
- package/dist/core/blur-tvWOoxKt.js +2247 -0
- package/dist/core/compute-BjeJ0sIA.js +31 -0
- package/dist/core/dataEncoding-CEmpiitu.js +24 -0
- package/dist/core/device-BODv_4aH.js +10 -0
- package/dist/core/edges-BXNBKxSN.js +29857 -0
- package/dist/core/{glass-sOqjtPJD.js → glass-IfoQ8Prf.js} +164 -172
- package/dist/core/gpu/index.d.ts.map +1 -1
- package/dist/core/index.js +320 -229
- package/dist/core/media-B9BNeMPu.js +757 -0
- package/dist/core/noise-wTSHXgFz.js +12033 -0
- package/dist/core/noiseColor-CPakiKNF.js +103 -0
- package/dist/core/{noiseColor-CRpf22bk.js → noiseColor-DscZM9CO.js} +2 -2
- package/dist/core/noiseStylize-BXpflWPW.js +359 -0
- package/dist/core/porters-DBK1Aipq.js +991 -0
- package/dist/core/presetRenderer.d.ts.map +1 -1
- package/dist/core/registry.js +208 -199
- package/dist/core/sdf-R0EN3EvS.js +5174 -0
- package/dist/core/shaderRegistry-CcvE7wN0.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.js +7 -4
- 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.js +7 -4
- 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.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.js +7 -4
- 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.js +8 -4
- package/dist/core/shaders/ParticleFlow/index.js +7 -4
- package/dist/core/shaders/Particles/index.js +11 -5
- 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.js +6 -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.js +5 -4
- 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.js +5 -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-CtKwBX8c.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/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,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as transformColor } from "./transformations-
|
|
1
|
+
import { $t as vec2f, Ct as floor, Dt as min, It as sin, N as unpremultiplyAlpha, Ot as mix, Ut as arrayOf, Vt as data_exports, _ as floatE, an as f32, bt as dot, d as ZERO, et as src_default, f as arrayExpr, in as vec4f, nn as vec3f, nt as std_exports, on as i32, p as call, pt as select, wt as fract, zt as step } from "./edges-BXNBKxSN.js";
|
|
2
|
+
import { a as transformColor } from "./transformations-CsPUHppB.js";
|
|
3
3
|
var transformPattern = (value) => {
|
|
4
4
|
return {
|
|
5
5
|
bayer2: 0,
|
|
@@ -14,13 +14,13 @@ var transformPattern = (value) => {
|
|
|
14
14
|
var transformColorMode = (value) => value === "source" ? 1 : 0;
|
|
15
15
|
var patternModeOf = (raw) => typeof raw === "number" ? raw : transformPattern(raw);
|
|
16
16
|
var colorModeOf = (raw) => typeof raw === "number" ? raw : raw === "source" ? 1 : 0;
|
|
17
|
-
const ditherCoord =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
],
|
|
17
|
+
const ditherCoord = src_default.fn([
|
|
18
|
+
vec2f,
|
|
19
|
+
vec2f,
|
|
20
|
+
f32
|
|
21
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, gridRes, pixelSize) => {
|
|
22
22
|
"use gpu";
|
|
23
|
-
return
|
|
23
|
+
return floor(vec2f(__tsover_div(__tsover_mul(uv.x, gridRes.x), pixelSize), __tsover_div(__tsover_mul(uv.y, gridRes.y), pixelSize)));
|
|
24
24
|
}), {
|
|
25
25
|
v: 1,
|
|
26
26
|
name: void 0,
|
|
@@ -95,17 +95,17 @@ const ditherCoord = tgpu.fn([
|
|
|
95
95
|
"externalNames": ["std", "d"]
|
|
96
96
|
},
|
|
97
97
|
externals: () => ({
|
|
98
|
-
std,
|
|
99
|
-
d
|
|
98
|
+
std: std_exports,
|
|
99
|
+
d: data_exports
|
|
100
100
|
})
|
|
101
101
|
}) && $.f)({}));
|
|
102
|
-
const ditherPixUV =
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
],
|
|
102
|
+
const ditherPixUV = src_default.fn([
|
|
103
|
+
vec2f,
|
|
104
|
+
f32,
|
|
105
|
+
vec2f
|
|
106
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((coord, pixelSize, gridRes) => {
|
|
107
107
|
"use gpu";
|
|
108
|
-
return
|
|
108
|
+
return vec2f(__tsover_div(__tsover_mul(__tsover_add(coord.x, .5), pixelSize), gridRes.x), __tsover_div(__tsover_mul(__tsover_add(coord.y, .5), pixelSize), gridRes.y));
|
|
109
109
|
}), {
|
|
110
110
|
v: 1,
|
|
111
111
|
name: void 0,
|
|
@@ -181,11 +181,11 @@ const ditherPixUV = tgpu.fn([
|
|
|
181
181
|
]]]],
|
|
182
182
|
"externalNames": ["d"]
|
|
183
183
|
},
|
|
184
|
-
externals: () => ({ d })
|
|
184
|
+
externals: () => ({ d: data_exports })
|
|
185
185
|
}) && $.f)({}));
|
|
186
|
-
const ditherLuma =
|
|
186
|
+
const ditherLuma = src_default.fn([vec4f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((c) => {
|
|
187
187
|
"use gpu";
|
|
188
|
-
return __tsover_mul(
|
|
188
|
+
return __tsover_mul(dot(vec3f(c.x, c.y, c.z), vec3f(.299, .587, .114)), c.w);
|
|
189
189
|
}), {
|
|
190
190
|
v: 1,
|
|
191
191
|
name: void 0,
|
|
@@ -251,11 +251,11 @@ const ditherLuma = tgpu.fn([d.vec4f], d.f32)(/* @__PURE__ */ (($) => (globalThis
|
|
|
251
251
|
"externalNames": ["std", "d"]
|
|
252
252
|
},
|
|
253
253
|
externals: () => ({
|
|
254
|
-
std,
|
|
255
|
-
d
|
|
254
|
+
std: std_exports,
|
|
255
|
+
d: data_exports
|
|
256
256
|
})
|
|
257
257
|
}) && $.f)({}));
|
|
258
|
-
const ditherBayerQuad =
|
|
258
|
+
const ditherBayerQuad = src_default.fn([f32, f32], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((a, b) => {
|
|
259
259
|
"use gpu";
|
|
260
260
|
return __tsover_sub(__tsover_add(__tsover_mul(b, 3), __tsover_mul(a, 2)), __tsover_mul(__tsover_mul(a, b), 4));
|
|
261
261
|
}), {
|
|
@@ -304,42 +304,42 @@ const ditherBayerQuad = tgpu.fn([d.f32, d.f32], d.f32)(/* @__PURE__ */ (($) => (
|
|
|
304
304
|
},
|
|
305
305
|
externals: () => ({})
|
|
306
306
|
}) && $.f)({}));
|
|
307
|
-
const ditherPeriodic =
|
|
307
|
+
const ditherPeriodic = src_default.fn([vec2f], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((coord) => {
|
|
308
308
|
"use gpu";
|
|
309
|
-
const tx = __tsover_sub(coord.x, __tsover_mul(8,
|
|
310
|
-
const ty = __tsover_sub(coord.y, __tsover_mul(8,
|
|
311
|
-
const x2 = __tsover_sub(tx, __tsover_mul(2,
|
|
312
|
-
const y2 = __tsover_sub(ty, __tsover_mul(2,
|
|
313
|
-
const x4 = __tsover_sub(tx, __tsover_mul(4,
|
|
314
|
-
const y4 = __tsover_sub(ty, __tsover_mul(4,
|
|
315
|
-
const x4h =
|
|
316
|
-
const y4h =
|
|
317
|
-
const x8h =
|
|
318
|
-
const y8h =
|
|
309
|
+
const tx = __tsover_sub(coord.x, __tsover_mul(8, floor(__tsover_div(coord.x, 8))));
|
|
310
|
+
const ty = __tsover_sub(coord.y, __tsover_mul(8, floor(__tsover_div(coord.y, 8))));
|
|
311
|
+
const x2 = __tsover_sub(tx, __tsover_mul(2, floor(__tsover_div(tx, 2))));
|
|
312
|
+
const y2 = __tsover_sub(ty, __tsover_mul(2, floor(__tsover_div(ty, 2))));
|
|
313
|
+
const x4 = __tsover_sub(tx, __tsover_mul(4, floor(__tsover_div(tx, 4))));
|
|
314
|
+
const y4 = __tsover_sub(ty, __tsover_mul(4, floor(__tsover_div(ty, 4))));
|
|
315
|
+
const x4h = floor(__tsover_div(x4, 2));
|
|
316
|
+
const y4h = floor(__tsover_div(y4, 2));
|
|
317
|
+
const x8h = floor(__tsover_div(tx, 4));
|
|
318
|
+
const y8h = floor(__tsover_div(ty, 4));
|
|
319
319
|
const b00 = ditherBayerQuad(x2, y2);
|
|
320
320
|
const b11 = ditherBayerQuad(x4h, y4h);
|
|
321
321
|
const b22 = ditherBayerQuad(x8h, y8h);
|
|
322
322
|
const bayer2 = __tsover_div(b00, 4);
|
|
323
323
|
const bayer4 = __tsover_div(__tsover_add(__tsover_mul(b00, 4), b11), 16);
|
|
324
324
|
const bayer8 = __tsover_div(__tsover_add(__tsover_add(__tsover_mul(b00, 16), __tsover_mul(b11, 4)), b22), 64);
|
|
325
|
-
const idx = __tsover_add(__tsover_mul(
|
|
325
|
+
const idx = __tsover_add(__tsover_mul(i32(y4), 4), i32(x4));
|
|
326
326
|
let cd = .75;
|
|
327
|
-
cd =
|
|
328
|
-
cd =
|
|
329
|
-
cd =
|
|
330
|
-
cd =
|
|
331
|
-
cd =
|
|
332
|
-
cd =
|
|
333
|
-
cd =
|
|
334
|
-
cd =
|
|
335
|
-
cd =
|
|
336
|
-
cd =
|
|
337
|
-
cd =
|
|
338
|
-
cd =
|
|
339
|
-
cd =
|
|
340
|
-
cd =
|
|
341
|
-
cd =
|
|
342
|
-
return
|
|
327
|
+
cd = select(cd, .3125, idx === 1);
|
|
328
|
+
cd = select(cd, .375, idx === 2);
|
|
329
|
+
cd = select(cd, .8125, idx === 3);
|
|
330
|
+
cd = select(cd, .25, idx === 4);
|
|
331
|
+
cd = select(cd, f32(0), idx === 5);
|
|
332
|
+
cd = select(cd, .0625, idx === 6);
|
|
333
|
+
cd = select(cd, .4375, idx === 7);
|
|
334
|
+
cd = select(cd, .6875, idx === 8);
|
|
335
|
+
cd = select(cd, .1875, idx === 9);
|
|
336
|
+
cd = select(cd, .125, idx === 10);
|
|
337
|
+
cd = select(cd, .5, idx === 11);
|
|
338
|
+
cd = select(cd, .9375, idx === 12);
|
|
339
|
+
cd = select(cd, .625, idx === 13);
|
|
340
|
+
cd = select(cd, .5625, idx === 14);
|
|
341
|
+
cd = select(cd, .875, idx === 15);
|
|
342
|
+
return vec4f(bayer2, bayer4, bayer8, cd);
|
|
343
343
|
}), {
|
|
344
344
|
v: 1,
|
|
345
345
|
name: void 0,
|
|
@@ -1103,15 +1103,15 @@ const ditherPeriodic = tgpu.fn([d.vec2f], d.vec4f)(/* @__PURE__ */ (($) => (glob
|
|
|
1103
1103
|
]
|
|
1104
1104
|
},
|
|
1105
1105
|
externals: () => ({
|
|
1106
|
-
std,
|
|
1106
|
+
std: std_exports,
|
|
1107
1107
|
ditherBayerQuad,
|
|
1108
|
-
d
|
|
1108
|
+
d: data_exports
|
|
1109
1109
|
})
|
|
1110
1110
|
}) && $.f)({}));
|
|
1111
|
-
const ditherBlueNoise =
|
|
1111
|
+
const ditherBlueNoise = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((coord) => {
|
|
1112
1112
|
"use gpu";
|
|
1113
|
-
const c = coord.add(
|
|
1114
|
-
return
|
|
1113
|
+
const c = coord.add(vec2f(.5, .5));
|
|
1114
|
+
return fract(__tsover_mul(52.9829189, fract(__tsover_add(__tsover_mul(c.x, .06711056), __tsover_mul(c.y, .00583715)))));
|
|
1115
1115
|
}), {
|
|
1116
1116
|
v: 1,
|
|
1117
1117
|
name: void 0,
|
|
@@ -1188,13 +1188,13 @@ const ditherBlueNoise = tgpu.fn([d.vec2f], d.f32)(/* @__PURE__ */ (($) => (globa
|
|
|
1188
1188
|
"externalNames": ["d", "std"]
|
|
1189
1189
|
},
|
|
1190
1190
|
externals: () => ({
|
|
1191
|
-
d,
|
|
1192
|
-
std
|
|
1191
|
+
d: data_exports,
|
|
1192
|
+
std: std_exports
|
|
1193
1193
|
})
|
|
1194
1194
|
}) && $.f)({}));
|
|
1195
|
-
const ditherWhiteNoise =
|
|
1195
|
+
const ditherWhiteNoise = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((coord) => {
|
|
1196
1196
|
"use gpu";
|
|
1197
|
-
return
|
|
1197
|
+
return fract(__tsover_mul(sin(dot(coord, vec2f(12.9898, 78.233))), 43758.5453));
|
|
1198
1198
|
}), {
|
|
1199
1199
|
v: 1,
|
|
1200
1200
|
name: void 0,
|
|
@@ -1244,19 +1244,18 @@ const ditherWhiteNoise = tgpu.fn([d.vec2f], d.f32)(/* @__PURE__ */ (($) => (glob
|
|
|
1244
1244
|
"externalNames": ["std", "d"]
|
|
1245
1245
|
},
|
|
1246
1246
|
externals: () => ({
|
|
1247
|
-
std,
|
|
1248
|
-
d
|
|
1247
|
+
std: std_exports,
|
|
1248
|
+
d: data_exports
|
|
1249
1249
|
})
|
|
1250
1250
|
}) && $.f)({}));
|
|
1251
|
-
const ditherOrderedResult =
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
],
|
|
1251
|
+
const ditherOrderedResult = src_default.fn([
|
|
1252
|
+
f32,
|
|
1253
|
+
f32,
|
|
1254
|
+
f32,
|
|
1255
|
+
f32
|
|
1256
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((ditherValue, luminance, threshold, spread) => {
|
|
1257
1257
|
"use gpu";
|
|
1258
|
-
|
|
1259
|
-
return std.step(adjustedDither, __tsover_add(luminance, __tsover_sub(threshold, .5)));
|
|
1258
|
+
return step(__tsover_add(.5, __tsover_mul(__tsover_sub(ditherValue, .5), spread)), __tsover_add(luminance, __tsover_sub(threshold, .5)));
|
|
1260
1259
|
}), {
|
|
1261
1260
|
v: 1,
|
|
1262
1261
|
name: void 0,
|
|
@@ -1319,11 +1318,11 @@ const ditherOrderedResult = tgpu.fn([
|
|
|
1319
1318
|
]]]],
|
|
1320
1319
|
"externalNames": ["std"]
|
|
1321
1320
|
},
|
|
1322
|
-
externals: () => ({ std })
|
|
1321
|
+
externals: () => ({ std: std_exports })
|
|
1323
1322
|
}) && $.f)({}));
|
|
1324
|
-
const ditherBlockOrigin =
|
|
1323
|
+
const ditherBlockOrigin = src_default.fn([vec2f], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((coord) => {
|
|
1325
1324
|
"use gpu";
|
|
1326
|
-
return
|
|
1325
|
+
return floor(coord.div(vec2f(8, 8))).mul(vec2f(8, 8));
|
|
1327
1326
|
}), {
|
|
1328
1327
|
v: 1,
|
|
1329
1328
|
name: void 0,
|
|
@@ -1376,11 +1375,11 @@ const ditherBlockOrigin = tgpu.fn([d.vec2f], d.vec2f)(/* @__PURE__ */ (($) => (g
|
|
|
1376
1375
|
"externalNames": ["std", "d"]
|
|
1377
1376
|
},
|
|
1378
1377
|
externals: () => ({
|
|
1379
|
-
std,
|
|
1380
|
-
d
|
|
1378
|
+
std: std_exports,
|
|
1379
|
+
d: data_exports
|
|
1381
1380
|
})
|
|
1382
1381
|
}) && $.f)({}));
|
|
1383
|
-
const ditherLocalCellIndex =
|
|
1382
|
+
const ditherLocalCellIndex = src_default.fn([vec2f, vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((coord, blockOrigin) => {
|
|
1384
1383
|
"use gpu";
|
|
1385
1384
|
return __tsover_add(__tsover_mul(__tsover_sub(coord.y, blockOrigin.y), 8), __tsover_sub(coord.x, blockOrigin.x));
|
|
1386
1385
|
}), {
|
|
@@ -1435,15 +1434,15 @@ const ditherLocalCellIndex = tgpu.fn([d.vec2f, d.vec2f], d.f32)(/* @__PURE__ */
|
|
|
1435
1434
|
},
|
|
1436
1435
|
externals: () => ({})
|
|
1437
1436
|
}) && $.f)({}));
|
|
1438
|
-
const ditherCellUV =
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
],
|
|
1437
|
+
const ditherCellUV = src_default.fn([
|
|
1438
|
+
vec2f,
|
|
1439
|
+
f32,
|
|
1440
|
+
f32,
|
|
1441
|
+
f32,
|
|
1442
|
+
vec2f
|
|
1443
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((blockOrigin, lx, ly, pixelSize, gridRes) => {
|
|
1445
1444
|
"use gpu";
|
|
1446
|
-
return
|
|
1445
|
+
return vec2f(__tsover_div(__tsover_mul(__tsover_add(__tsover_add(blockOrigin.x, lx), .5), pixelSize), gridRes.x), __tsover_div(__tsover_mul(__tsover_add(__tsover_add(blockOrigin.y, ly), .5), pixelSize), gridRes.y));
|
|
1447
1446
|
}), {
|
|
1448
1447
|
v: 1,
|
|
1449
1448
|
name: void 0,
|
|
@@ -1537,30 +1536,30 @@ const ditherCellUV = tgpu.fn([
|
|
|
1537
1536
|
]]]],
|
|
1538
1537
|
"externalNames": ["d"]
|
|
1539
1538
|
},
|
|
1540
|
-
externals: () => ({ d })
|
|
1539
|
+
externals: () => ({ d: data_exports })
|
|
1541
1540
|
}) && $.f)({}));
|
|
1542
|
-
const ditherFloydSteinberg =
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
],
|
|
1541
|
+
const ditherFloydSteinberg = src_default.fn([
|
|
1542
|
+
arrayOf(f32, 64),
|
|
1543
|
+
f32,
|
|
1544
|
+
f32,
|
|
1545
|
+
f32
|
|
1546
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((lum, lic, threshold, spread) => {
|
|
1548
1547
|
"use gpu";
|
|
1549
1548
|
const thr = __tsover_sub(.5, __tsover_sub(threshold, .5));
|
|
1550
|
-
const ecur =
|
|
1551
|
-
const enext =
|
|
1552
|
-
const licInt =
|
|
1553
|
-
let result =
|
|
1549
|
+
const ecur = arrayOf(f32, 8)();
|
|
1550
|
+
const enext = arrayOf(f32, 8)();
|
|
1551
|
+
const licInt = i32(lic);
|
|
1552
|
+
let result = f32(0);
|
|
1554
1553
|
for (let y = 0; y < 8; y++) {
|
|
1555
1554
|
const ltr = (y & 1) === 0;
|
|
1556
1555
|
for (let xi = 0; xi < 8; xi++) {
|
|
1557
|
-
const x =
|
|
1556
|
+
const x = select(__tsover_sub(7, xi), xi, ltr);
|
|
1558
1557
|
const idx = __tsover_add(__tsover_mul(y, 8), x);
|
|
1559
1558
|
const val = __tsover_add(lum[idx], ecur[x]);
|
|
1560
|
-
const qv =
|
|
1561
|
-
result =
|
|
1559
|
+
const qv = step(thr, val);
|
|
1560
|
+
result = select(result, qv, idx === licInt);
|
|
1562
1561
|
const e = __tsover_mul(__tsover_sub(val, qv), spread);
|
|
1563
|
-
const dir =
|
|
1562
|
+
const dir = select(-1, 1, ltr);
|
|
1564
1563
|
const xr = __tsover_add(x, dir);
|
|
1565
1564
|
if (xr >= 0) {
|
|
1566
1565
|
if (xr < 8) ecur[xr] = __tsover_add(ecur[xr], __tsover_mul(e, .4375));
|
|
@@ -1579,7 +1578,7 @@ const ditherFloydSteinberg = tgpu.fn([
|
|
|
1579
1578
|
}
|
|
1580
1579
|
for (let k = 0; k < 8; k++) {
|
|
1581
1580
|
ecur[k] = enext[k];
|
|
1582
|
-
enext[k] =
|
|
1581
|
+
enext[k] = f32(0);
|
|
1583
1582
|
}
|
|
1584
1583
|
}
|
|
1585
1584
|
return result;
|
|
@@ -2119,19 +2118,19 @@ const ditherFloydSteinberg = tgpu.fn([
|
|
|
2119
2118
|
"externalNames": ["d", "std"]
|
|
2120
2119
|
},
|
|
2121
2120
|
externals: () => ({
|
|
2122
|
-
d,
|
|
2123
|
-
std
|
|
2121
|
+
d: data_exports,
|
|
2122
|
+
std: std_exports
|
|
2124
2123
|
})
|
|
2125
2124
|
}) && $.f)({}));
|
|
2126
|
-
const ditherComposeCustom =
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
],
|
|
2125
|
+
const ditherComposeCustom = src_default.fn([
|
|
2126
|
+
vec4f,
|
|
2127
|
+
vec4f,
|
|
2128
|
+
f32
|
|
2129
|
+
], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((colorA, colorB, ditherResult) => {
|
|
2131
2130
|
"use gpu";
|
|
2132
|
-
const rgb =
|
|
2133
|
-
const a =
|
|
2134
|
-
return
|
|
2131
|
+
const rgb = mix(vec3f(colorA.x, colorA.y, colorA.z), vec3f(colorB.x, colorB.y, colorB.z), vec3f(ditherResult));
|
|
2132
|
+
const a = mix(colorA.w, colorB.w, ditherResult);
|
|
2133
|
+
return vec4f(rgb.x, rgb.y, rgb.z, a);
|
|
2135
2134
|
}), {
|
|
2136
2135
|
v: 1,
|
|
2137
2136
|
name: void 0,
|
|
@@ -2279,17 +2278,15 @@ const ditherComposeCustom = tgpu.fn([
|
|
|
2279
2278
|
"externalNames": ["std", "d"]
|
|
2280
2279
|
},
|
|
2281
2280
|
externals: () => ({
|
|
2282
|
-
std,
|
|
2283
|
-
d
|
|
2281
|
+
std: std_exports,
|
|
2282
|
+
d: data_exports
|
|
2284
2283
|
})
|
|
2285
2284
|
}) && $.f)({}));
|
|
2286
|
-
const ditherComposeSource =
|
|
2285
|
+
const ditherComposeSource = src_default.fn([vec4f, f32], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((sourceColor, ditherResult) => {
|
|
2287
2286
|
"use gpu";
|
|
2288
|
-
const rgb =
|
|
2289
|
-
const
|
|
2290
|
-
|
|
2291
|
-
const out = std.mix(dark, bright, d.vec3f(ditherResult));
|
|
2292
|
-
return d.vec4f(out.x, out.y, out.z, sourceColor.w);
|
|
2287
|
+
const rgb = vec3f(sourceColor.x, sourceColor.y, sourceColor.z);
|
|
2288
|
+
const out = mix(rgb.mul(.3), min(rgb.mul(1.3), vec3f(1, 1, 1)), vec3f(ditherResult));
|
|
2289
|
+
return vec4f(out.x, out.y, out.z, sourceColor.w);
|
|
2293
2290
|
}), {
|
|
2294
2291
|
v: 1,
|
|
2295
2292
|
name: void 0,
|
|
@@ -2436,8 +2433,8 @@ const ditherComposeSource = tgpu.fn([d.vec4f, d.f32], d.vec4f)(/* @__PURE__ */ (
|
|
|
2436
2433
|
"externalNames": ["d", "std"]
|
|
2437
2434
|
},
|
|
2438
2435
|
externals: () => ({
|
|
2439
|
-
d,
|
|
2440
|
-
std
|
|
2436
|
+
d: data_exports,
|
|
2437
|
+
std: std_exports
|
|
2441
2438
|
})
|
|
2442
2439
|
}) && $.f)({}));
|
|
2443
2440
|
const componentDefinition = {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const dotGridCellCenterUV =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
],
|
|
1
|
+
import { $t as vec2f, Ct as floor, It as sin, Lt as smoothstep, Ot as mix, Tt as length, Vt as data_exports, an as f32, ct as fwidth, et as src_default, nt as std_exports, p as call, wt as fract, y as vec4 } from "./edges-BXNBKxSN.js";
|
|
2
|
+
import { t as animatedTime } from "./porters-DBK1Aipq.js";
|
|
3
|
+
import { a as transformColor } from "./transformations-CsPUHppB.js";
|
|
4
|
+
const dotGridCellCenterUV = src_default.fn([
|
|
5
|
+
vec2f,
|
|
6
|
+
vec2f,
|
|
7
|
+
f32
|
|
8
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewport, density) => {
|
|
9
9
|
"use gpu";
|
|
10
10
|
const aspect = __tsover_div(viewport.x, viewport.y);
|
|
11
11
|
const correctedX = __tsover_mul(uv.x, aspect);
|
|
12
12
|
const correctedY = __tsover_sub(1, uv.y);
|
|
13
|
-
const cellCenterCorrectedX = __tsover_div(__tsover_add(
|
|
14
|
-
const cellCenterCorrectedY = __tsover_div(__tsover_add(
|
|
15
|
-
return
|
|
13
|
+
const cellCenterCorrectedX = __tsover_div(__tsover_add(floor(__tsover_mul(correctedX, density)), .5), density);
|
|
14
|
+
const cellCenterCorrectedY = __tsover_div(__tsover_add(floor(__tsover_mul(correctedY, density)), .5), density);
|
|
15
|
+
return vec2f(__tsover_div(cellCenterCorrectedX, aspect), __tsover_sub(1, cellCenterCorrectedY));
|
|
16
16
|
}), {
|
|
17
17
|
v: 1,
|
|
18
18
|
name: void 0,
|
|
@@ -157,40 +157,38 @@ const dotGridCellCenterUV = tgpu.fn([
|
|
|
157
157
|
"externalNames": ["std", "d"]
|
|
158
158
|
},
|
|
159
159
|
externals: () => ({
|
|
160
|
-
std,
|
|
161
|
-
d
|
|
160
|
+
std: std_exports,
|
|
161
|
+
d: data_exports
|
|
162
162
|
})
|
|
163
163
|
}) && $.f)({}));
|
|
164
|
-
const dotGridAlpha =
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
],
|
|
164
|
+
const dotGridAlpha = src_default.fn([
|
|
165
|
+
vec2f,
|
|
166
|
+
vec2f,
|
|
167
|
+
f32,
|
|
168
|
+
f32,
|
|
169
|
+
f32,
|
|
170
|
+
f32,
|
|
171
|
+
f32,
|
|
172
|
+
f32,
|
|
173
|
+
f32
|
|
174
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewport, density, dotSize, offset, speedVariance, twinkle, animTime, time) => {
|
|
175
175
|
"use gpu";
|
|
176
176
|
const aspect = __tsover_div(viewport.x, viewport.y);
|
|
177
|
-
const correctedUV =
|
|
177
|
+
const correctedUV = vec2f(__tsover_mul(uv.x, aspect), __tsover_sub(1, uv.y));
|
|
178
178
|
const gridUV = correctedUV.mul(density);
|
|
179
|
-
const rowIndex =
|
|
180
|
-
const rowHash =
|
|
179
|
+
const rowIndex = floor(gridUV.y);
|
|
180
|
+
const rowHash = fract(__tsover_mul(sin(__tsover_mul(rowIndex, 127.1)), 43758.5453));
|
|
181
181
|
const speedMod = __tsover_add(1, __tsover_mul(__tsover_mul(__tsover_sub(rowHash, .5), 4), speedVariance));
|
|
182
182
|
const drift = __tsover_mul(animTime, speedMod);
|
|
183
|
-
const staticStagger = __tsover_mul(offset, __tsover_sub(rowIndex, __tsover_mul(2,
|
|
184
|
-
const shiftedGrid =
|
|
185
|
-
const
|
|
186
|
-
const
|
|
187
|
-
const
|
|
188
|
-
const
|
|
189
|
-
const
|
|
190
|
-
const dotPhase = std.fract(__tsover_mul(std.sin(__tsover_add(__tsover_mul(gridPosition.x, 12.9898), __tsover_mul(gridPosition.y, 78.233))), 43758.5453));
|
|
183
|
+
const staticStagger = __tsover_mul(offset, __tsover_sub(rowIndex, __tsover_mul(2, floor(__tsover_div(rowIndex, 2)))));
|
|
184
|
+
const shiftedGrid = vec2f(__tsover_sub(__tsover_sub(gridUV.x, staticStagger), drift), gridUV.y);
|
|
185
|
+
const centerDistance = length(shiftedGrid.sub(floor(shiftedGrid)).sub(.5));
|
|
186
|
+
const pixelSize = length(fwidth(correctedUV.mul(density)));
|
|
187
|
+
const coverage = __tsover_sub(1, smoothstep(__tsover_sub(__tsover_mul(dotSize, .5), __tsover_mul(pixelSize, .5)), __tsover_mul(dotSize, .5), centerDistance));
|
|
188
|
+
const gridPosition = floor(shiftedGrid);
|
|
189
|
+
const dotPhase = fract(__tsover_mul(sin(__tsover_add(__tsover_mul(gridPosition.x, 12.9898), __tsover_mul(gridPosition.y, 78.233))), 43758.5453));
|
|
191
190
|
const twinkleTime = __tsover_add(__tsover_mul(time, 2), __tsover_mul(dotPhase, 6.28318));
|
|
192
|
-
const
|
|
193
|
-
const twinkleModifier = std.mix(1, twinkleValue, twinkle);
|
|
191
|
+
const twinkleModifier = mix(1, __tsover_add(__tsover_mul(sin(twinkleTime), .5), .5), twinkle);
|
|
194
192
|
return __tsover_mul(coverage, twinkleModifier);
|
|
195
193
|
}), {
|
|
196
194
|
v: 1,
|
|
@@ -689,8 +687,8 @@ const dotGridAlpha = tgpu.fn([
|
|
|
689
687
|
"externalNames": ["d", "std"]
|
|
690
688
|
},
|
|
691
689
|
externals: () => ({
|
|
692
|
-
d,
|
|
693
|
-
std
|
|
690
|
+
d: data_exports,
|
|
691
|
+
std: std_exports
|
|
694
692
|
})
|
|
695
693
|
}) && $.f)({}));
|
|
696
694
|
const componentDefinition = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as transformColor, i as transformBoolean } from "./transformations-
|
|
1
|
+
import { $t as vec2f, Et as max, It as sin, N as unpremultiplyAlpha, Vt as data_exports, _ as floatE, _t as clamp, an as f32, d as ZERO, et as src_default, in as vec4f, nn as vec3f, nt as std_exports, p as call, pt as select, vt as cos, y as vec4 } from "./edges-BXNBKxSN.js";
|
|
2
|
+
import { a as transformColor, i as transformBoolean } from "./transformations-CsPUHppB.js";
|
|
3
3
|
var DEG_TO_RAD = .017453292519943295;
|
|
4
4
|
var WEIGHTS = [
|
|
5
5
|
.056,
|
|
@@ -17,19 +17,19 @@ var WEIGHTS = [
|
|
|
17
17
|
.056
|
|
18
18
|
];
|
|
19
19
|
var WEIGHT_SUM = 6.214;
|
|
20
|
-
const dropShadowUV =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
],
|
|
20
|
+
const dropShadowUV = src_default.fn([
|
|
21
|
+
vec2f,
|
|
22
|
+
vec2f,
|
|
23
|
+
f32,
|
|
24
|
+
f32
|
|
25
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewport, angle, distance) => {
|
|
26
26
|
"use gpu";
|
|
27
27
|
const angleRad = __tsover_mul(angle, DEG_TO_RAD);
|
|
28
28
|
const dist = __tsover_mul(distance, .2);
|
|
29
29
|
const aspect = __tsover_div(viewport.x, viewport.y);
|
|
30
|
-
const ox = __tsover_div(__tsover_mul(
|
|
31
|
-
const oy = __tsover_mul(__tsover_mul(
|
|
32
|
-
return
|
|
30
|
+
const ox = __tsover_div(__tsover_mul(sin(angleRad), dist), aspect);
|
|
31
|
+
const oy = __tsover_mul(__tsover_mul(cos(angleRad), -1), dist);
|
|
32
|
+
return vec2f(__tsover_sub(uv.x, ox), __tsover_sub(uv.y, oy));
|
|
33
33
|
}), {
|
|
34
34
|
v: 1,
|
|
35
35
|
name: void 0,
|
|
@@ -177,19 +177,19 @@ const dropShadowUV = tgpu.fn([
|
|
|
177
177
|
},
|
|
178
178
|
externals: () => ({
|
|
179
179
|
DEG_TO_RAD,
|
|
180
|
-
std,
|
|
181
|
-
d
|
|
180
|
+
std: std_exports,
|
|
181
|
+
d: data_exports
|
|
182
182
|
})
|
|
183
183
|
}) && $.f)({}));
|
|
184
|
-
const dropShadowTapUV =
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
],
|
|
184
|
+
const dropShadowTapUV = src_default.fn([
|
|
185
|
+
vec2f,
|
|
186
|
+
vec2f,
|
|
187
|
+
f32,
|
|
188
|
+
f32,
|
|
189
|
+
f32
|
|
190
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewport, blurRadius, ox, oy) => {
|
|
191
191
|
"use gpu";
|
|
192
|
-
return
|
|
192
|
+
return vec2f(__tsover_add(uv.x, __tsover_div(__tsover_mul(ox, blurRadius), viewport.x)), __tsover_add(uv.y, __tsover_div(__tsover_mul(oy, blurRadius), viewport.y)));
|
|
193
193
|
}), {
|
|
194
194
|
v: 1,
|
|
195
195
|
name: void 0,
|
|
@@ -273,27 +273,27 @@ const dropShadowTapUV = tgpu.fn([
|
|
|
273
273
|
]]]],
|
|
274
274
|
"externalNames": ["d"]
|
|
275
275
|
},
|
|
276
|
-
externals: () => ({ d })
|
|
276
|
+
externals: () => ({ d: data_exports })
|
|
277
277
|
}) && $.f)({}));
|
|
278
|
-
const dropShadowComposite =
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
],
|
|
278
|
+
const dropShadowComposite = src_default.fn([
|
|
279
|
+
vec4f,
|
|
280
|
+
vec4f,
|
|
281
|
+
f32,
|
|
282
|
+
f32
|
|
283
|
+
], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((originalColor, shadowColor, shadowAlpha, cutout) => {
|
|
284
284
|
"use gpu";
|
|
285
|
-
const shadowRgb =
|
|
285
|
+
const shadowRgb = vec3f(shadowColor.x, shadowColor.y, shadowColor.z);
|
|
286
286
|
const shadowA = __tsover_mul(shadowColor.w, shadowAlpha);
|
|
287
|
-
const cutoutA =
|
|
287
|
+
const cutoutA = clamp(__tsover_sub(shadowA, originalColor.w), 0, 1);
|
|
288
288
|
const cutoutRgb = shadowRgb.mul(shadowColor.w).mul(cutoutA);
|
|
289
289
|
const shadowPremulRgb = shadowRgb.mul(shadowColor.w).mul(shadowAlpha);
|
|
290
290
|
const oneMinusOrigA = __tsover_sub(1, originalColor.w);
|
|
291
|
-
const normalRgb =
|
|
292
|
-
const normalA =
|
|
291
|
+
const normalRgb = vec3f(originalColor.x, originalColor.y, originalColor.z).add(shadowPremulRgb.mul(oneMinusOrigA));
|
|
292
|
+
const normalA = max(__tsover_add(originalColor.w, __tsover_mul(shadowA, oneMinusOrigA)), originalColor.w);
|
|
293
293
|
const useCut = cutout > .5;
|
|
294
|
-
const rgb =
|
|
295
|
-
const a =
|
|
296
|
-
return
|
|
294
|
+
const rgb = select(normalRgb, cutoutRgb, useCut);
|
|
295
|
+
const a = select(normalA, cutoutA, useCut);
|
|
296
|
+
return vec4f(rgb.x, rgb.y, rgb.z, a);
|
|
297
297
|
}), {
|
|
298
298
|
v: 1,
|
|
299
299
|
name: void 0,
|
|
@@ -600,8 +600,8 @@ const dropShadowComposite = tgpu.fn([
|
|
|
600
600
|
"externalNames": ["d", "std"]
|
|
601
601
|
},
|
|
602
602
|
externals: () => ({
|
|
603
|
-
d,
|
|
604
|
-
std
|
|
603
|
+
d: data_exports,
|
|
604
|
+
std: std_exports
|
|
605
605
|
})
|
|
606
606
|
}) && $.f)({}));
|
|
607
607
|
const componentDefinition = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-
|
|
3
|
-
const duotoneFactor =
|
|
1
|
+
import { H as mixColorsLinear, Lt as smoothstep, U as mixColorsVariants, Vt as data_exports, an as f32, bt as dot, d as ZERO, et as src_default, in as vec4f, nn as vec3f, nt as std_exports, p as call, y as vec4 } from "./edges-BXNBKxSN.js";
|
|
2
|
+
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
3
|
+
const duotoneFactor = src_default.fn([vec4f, f32], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((color, blend) => {
|
|
4
4
|
"use gpu";
|
|
5
|
-
const luminance =
|
|
6
|
-
return
|
|
5
|
+
const luminance = dot(color.xyz, vec3f(.299, .587, .114));
|
|
6
|
+
return smoothstep(__tsover_sub(blend, .5), __tsover_add(blend, .5), luminance);
|
|
7
7
|
}), {
|
|
8
8
|
v: 1,
|
|
9
9
|
name: void 0,
|
|
@@ -69,8 +69,8 @@ const duotoneFactor = tgpu.fn([d.vec4f, d.f32], d.f32)(/* @__PURE__ */ (($) => (
|
|
|
69
69
|
"externalNames": ["std", "d"]
|
|
70
70
|
},
|
|
71
71
|
externals: () => ({
|
|
72
|
-
std,
|
|
73
|
-
d
|
|
72
|
+
std: std_exports,
|
|
73
|
+
d: data_exports
|
|
74
74
|
})
|
|
75
75
|
}) && $.f)({}));
|
|
76
76
|
const componentDefinition = {
|