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,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { $t as vec2f, H as mixColorsLinear, U as mixColorsVariants, an as f32, et as src_default, p as call, y as vec4 } from "./edges-BXNBKxSN.js";
|
|
2
|
+
import { c as ellipseSdf, g as shapeLocalCoords, h as sdf_exports, n as ShapeMask, v as strokeMaskFromSdf } from "./sdf-R0EN3EvS.js";
|
|
3
|
+
import { a as transformColor, c as transformPosition, l as transformStrokePosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
4
|
+
const ellipseShape = src_default.fn([
|
|
5
|
+
vec2f,
|
|
6
|
+
f32,
|
|
7
|
+
f32,
|
|
8
|
+
f32,
|
|
9
|
+
f32,
|
|
10
|
+
f32,
|
|
11
|
+
f32,
|
|
12
|
+
vec2f,
|
|
13
|
+
f32
|
|
13
14
|
], ShapeMask)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((center, radiusX, radiusY, rotation, softness, strokeThickness, strokePosition, uv, aspect) => {
|
|
14
15
|
"use gpu";
|
|
15
16
|
const local = shapeLocalCoords(center, rotation, uv, aspect);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { $t as vec2f, Et as max, It as sin, Lt as smoothstep, N as unpremultiplyAlpha, Rt as sqrt, Vt as data_exports, _ as floatE, _t as clamp, an as f32, cn as __export, d as ZERO, et as src_default, in as vec4f, mt as abs, nn as vec3f, nt as std_exports, p as call, pt as select, vt as cos } from "./edges-BXNBKxSN.js";
|
|
2
|
+
import { h as sdf_exports } from "./sdf-R0EN3EvS.js";
|
|
3
|
+
import { f as sdf3d_exports, n as shapeEffectBoundingBoxDeclaration, t as resolveShapeType } from "./shapeEffectBounds-CtKwBX8c.js";
|
|
4
|
+
import { i as sdfSpaceUV, r as offsetUV } from "./glass-IfoQ8Prf.js";
|
|
5
|
+
import { c as transformPosition } from "./transformations-CsPUHppB.js";
|
|
5
6
|
var emboss_exports = /* @__PURE__ */ __export({
|
|
6
7
|
applyEmbossEffect: () => applyEmbossEffect$1,
|
|
7
8
|
embossComposite: () => embossComposite,
|
|
@@ -13,16 +14,15 @@ var emboss_exports = /* @__PURE__ */ __export({
|
|
|
13
14
|
var DEG_TO_RAD = .017453292519943295;
|
|
14
15
|
var _INV_LIGHT_LEN = 1 / Math.sqrt(1.49);
|
|
15
16
|
var _LZN = .7 * _INV_LIGHT_LEN;
|
|
16
|
-
const embossHeight =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
],
|
|
17
|
+
const embossHeight = src_default.fn([
|
|
18
|
+
f32,
|
|
19
|
+
f32,
|
|
20
|
+
f32,
|
|
21
|
+
f32
|
|
22
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((s, depth, transitionW, volumetric) => {
|
|
22
23
|
"use gpu";
|
|
23
|
-
const vol = __tsover_mul(depth,
|
|
24
|
-
|
|
25
|
-
return std.select(flat, vol, volumetric > .5);
|
|
24
|
+
const vol = __tsover_mul(depth, clamp(__tsover_div(__tsover_mul(s, -1), .18), 0, 1));
|
|
25
|
+
return select(__tsover_mul(depth, smoothstep(transitionW, __tsover_mul(transitionW, -1), s)), vol, volumetric > .5);
|
|
26
26
|
}), {
|
|
27
27
|
v: 1,
|
|
28
28
|
name: void 0,
|
|
@@ -134,20 +134,20 @@ const embossHeight = tgpu.fn([
|
|
|
134
134
|
]],
|
|
135
135
|
"externalNames": ["std"]
|
|
136
136
|
},
|
|
137
|
-
externals: () => ({ std })
|
|
137
|
+
externals: () => ({ std: std_exports })
|
|
138
138
|
}) && $.f)({}));
|
|
139
|
-
const embossTraceUV =
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
],
|
|
139
|
+
const embossTraceUV = src_default.fn([
|
|
140
|
+
vec2f,
|
|
141
|
+
f32,
|
|
142
|
+
f32,
|
|
143
|
+
f32
|
|
144
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((sdfUV, lightAngle, depth, frac) => {
|
|
145
145
|
"use gpu";
|
|
146
|
-
const lx =
|
|
147
|
-
const ly =
|
|
148
|
-
const absDepth =
|
|
146
|
+
const lx = cos(__tsover_mul(lightAngle, DEG_TO_RAD));
|
|
147
|
+
const ly = sin(__tsover_mul(lightAngle, DEG_TO_RAD));
|
|
148
|
+
const absDepth = max(abs(depth), 1e-4);
|
|
149
149
|
const spread = __tsover_mul(absDepth, .06);
|
|
150
|
-
return
|
|
150
|
+
return vec2f(__tsover_add(sdfUV.x, __tsover_mul(__tsover_mul(lx, spread), frac)), __tsover_add(sdfUV.y, __tsover_mul(__tsover_mul(ly, spread), frac)));
|
|
151
151
|
}), {
|
|
152
152
|
v: 1,
|
|
153
153
|
name: void 0,
|
|
@@ -293,24 +293,24 @@ const embossTraceUV = tgpu.fn([
|
|
|
293
293
|
]
|
|
294
294
|
},
|
|
295
295
|
externals: () => ({
|
|
296
|
-
std,
|
|
296
|
+
std: std_exports,
|
|
297
297
|
DEG_TO_RAD,
|
|
298
|
-
d
|
|
298
|
+
d: data_exports
|
|
299
299
|
})
|
|
300
300
|
}) && $.f)({}));
|
|
301
|
-
const embossWarpUV =
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
],
|
|
301
|
+
const embossWarpUV = src_default.fn([
|
|
302
|
+
vec2f,
|
|
303
|
+
vec2f,
|
|
304
|
+
f32,
|
|
305
|
+
f32
|
|
306
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, center, sdfC, depth) => {
|
|
307
307
|
"use gpu";
|
|
308
308
|
const tw = .003;
|
|
309
|
-
const inside =
|
|
309
|
+
const inside = smoothstep(tw, __tsover_mul(tw, -1), sdfC);
|
|
310
310
|
const dispScale = __tsover_sub(1, __tsover_mul(__tsover_mul(depth, .05), inside));
|
|
311
311
|
const centerX = center.x;
|
|
312
312
|
const centerY = __tsover_sub(1, center.y);
|
|
313
|
-
return
|
|
313
|
+
return vec2f(__tsover_add(centerX, __tsover_mul(__tsover_sub(uv.x, centerX), dispScale)), __tsover_add(centerY, __tsover_mul(__tsover_sub(uv.y, centerY), dispScale)));
|
|
314
314
|
}), {
|
|
315
315
|
v: 1,
|
|
316
316
|
name: void 0,
|
|
@@ -459,20 +459,20 @@ const embossWarpUV = tgpu.fn([
|
|
|
459
459
|
"externalNames": ["std", "d"]
|
|
460
460
|
},
|
|
461
461
|
externals: () => ({
|
|
462
|
-
std,
|
|
463
|
-
d
|
|
462
|
+
std: std_exports,
|
|
463
|
+
d: data_exports
|
|
464
464
|
})
|
|
465
465
|
}) && $.f)({}));
|
|
466
|
-
const embossEdgeLighting =
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
],
|
|
466
|
+
const embossEdgeLighting = src_default.fn([
|
|
467
|
+
f32,
|
|
468
|
+
f32,
|
|
469
|
+
f32,
|
|
470
|
+
f32,
|
|
471
|
+
f32,
|
|
472
|
+
f32,
|
|
473
|
+
f32,
|
|
474
|
+
f32
|
|
475
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((sdfR, sdfL, sdfU, sdfD, depth, lightAngle, lightIntensity, volumetric) => {
|
|
476
476
|
"use gpu";
|
|
477
477
|
const eps = .003;
|
|
478
478
|
const tw = .003;
|
|
@@ -482,20 +482,18 @@ const embossEdgeLighting = tgpu.fn([
|
|
|
482
482
|
const hD = embossHeight(sdfD, depth, tw, volumetric);
|
|
483
483
|
const dhx = __tsover_div(__tsover_sub(hR, hL), __tsover_mul(eps, 2));
|
|
484
484
|
const dhy = __tsover_div(__tsover_sub(hU, hD), __tsover_mul(eps, 2));
|
|
485
|
-
const nLen =
|
|
485
|
+
const nLen = sqrt(__tsover_add(__tsover_add(__tsover_mul(dhx, dhx), __tsover_mul(dhy, dhy)), 1));
|
|
486
486
|
const nx = __tsover_div(__tsover_mul(dhx, -1), nLen);
|
|
487
487
|
const ny = __tsover_div(__tsover_mul(dhy, -1), nLen);
|
|
488
488
|
const nz = __tsover_div(1, nLen);
|
|
489
|
-
const lx =
|
|
490
|
-
const ly =
|
|
489
|
+
const lx = cos(__tsover_mul(lightAngle, DEG_TO_RAD));
|
|
490
|
+
const ly = sin(__tsover_mul(lightAngle, DEG_TO_RAD));
|
|
491
491
|
const lxn = __tsover_mul(lx, _INV_LIGHT_LEN);
|
|
492
492
|
const lyn = __tsover_mul(ly, _INV_LIGHT_LEN);
|
|
493
493
|
const lzn = _LZN;
|
|
494
494
|
const NdotL = __tsover_add(__tsover_add(__tsover_mul(nx, lxn), __tsover_mul(ny, lyn)), __tsover_mul(nz, lzn));
|
|
495
495
|
const edgeLighting = __tsover_mul(__tsover_sub(NdotL, lzn), lightIntensity);
|
|
496
|
-
|
|
497
|
-
const edgeShadow = std.max(__tsover_mul(edgeLighting, -1), 0);
|
|
498
|
-
return d.vec2f(highlight, edgeShadow);
|
|
496
|
+
return vec2f(max(edgeLighting, 0), max(__tsover_mul(edgeLighting, -1), 0));
|
|
499
497
|
}), {
|
|
500
498
|
v: 1,
|
|
501
499
|
name: void 0,
|
|
@@ -884,46 +882,46 @@ const embossEdgeLighting = tgpu.fn([
|
|
|
884
882
|
},
|
|
885
883
|
externals: () => ({
|
|
886
884
|
embossHeight,
|
|
887
|
-
std,
|
|
885
|
+
std: std_exports,
|
|
888
886
|
DEG_TO_RAD,
|
|
889
887
|
_INV_LIGHT_LEN,
|
|
890
888
|
_LZN,
|
|
891
|
-
d
|
|
889
|
+
d: data_exports
|
|
892
890
|
})
|
|
893
891
|
}) && $.f)({}));
|
|
894
|
-
const embossComposite =
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
],
|
|
892
|
+
const embossComposite = src_default.fn([
|
|
893
|
+
vec4f,
|
|
894
|
+
f32,
|
|
895
|
+
f32,
|
|
896
|
+
f32,
|
|
897
|
+
f32,
|
|
898
|
+
f32,
|
|
899
|
+
f32,
|
|
900
|
+
f32,
|
|
901
|
+
f32,
|
|
902
|
+
f32,
|
|
903
|
+
f32,
|
|
904
|
+
f32,
|
|
905
|
+
f32
|
|
906
|
+
], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((childColor, sdfC, sdfR, sdfL, sdfU, sdfD, h1raw, h2raw, depth, lightAngle, lightIntensity, shadowIntensity, volumetric) => {
|
|
909
907
|
"use gpu";
|
|
910
908
|
const tw = .003;
|
|
911
909
|
const light = embossEdgeLighting(sdfR, sdfL, sdfU, sdfD, depth, lightAngle, lightIntensity, volumetric);
|
|
912
910
|
const highlight = light.x;
|
|
913
911
|
const edgeShadow = light.y;
|
|
914
912
|
const hC = embossHeight(sdfC, depth, tw, volumetric);
|
|
915
|
-
const absDepth =
|
|
913
|
+
const absDepth = max(abs(depth), 1e-4);
|
|
916
914
|
const shadowTw = __tsover_mul(absDepth, .06);
|
|
917
915
|
const h1 = embossHeight(h1raw, depth, shadowTw, volumetric);
|
|
918
916
|
const h2 = embossHeight(h2raw, depth, shadowTw, volumetric);
|
|
919
917
|
const diff1 = __tsover_div(__tsover_sub(h1, hC), absDepth);
|
|
920
918
|
const diff2 = __tsover_div(__tsover_sub(h2, hC), absDepth);
|
|
921
|
-
const castShadow = __tsover_add(__tsover_mul(
|
|
922
|
-
const totalShadow = __tsover_mul(
|
|
923
|
-
const childRgb =
|
|
924
|
-
const highlightRgb =
|
|
925
|
-
const finalRgb =
|
|
926
|
-
return
|
|
919
|
+
const castShadow = __tsover_add(__tsover_mul(smoothstep(0, .5, diff1), .55), __tsover_mul(smoothstep(0, .5, diff2), .45));
|
|
920
|
+
const totalShadow = __tsover_mul(clamp(__tsover_add(edgeShadow, castShadow), 0, 1), shadowIntensity);
|
|
921
|
+
const childRgb = vec3f(childColor.x, childColor.y, childColor.z);
|
|
922
|
+
const highlightRgb = vec3f(highlight, highlight, highlight);
|
|
923
|
+
const finalRgb = clamp(childRgb.mul(__tsover_sub(1, totalShadow)).add(highlightRgb), vec3f(0), vec3f(1));
|
|
924
|
+
return vec4f(finalRgb.x, finalRgb.y, finalRgb.z, childColor.w);
|
|
927
925
|
}), {
|
|
928
926
|
v: 1,
|
|
929
927
|
name: void 0,
|
|
@@ -1339,8 +1337,8 @@ const embossComposite = tgpu.fn([
|
|
|
1339
1337
|
externals: () => ({
|
|
1340
1338
|
embossEdgeLighting,
|
|
1341
1339
|
embossHeight,
|
|
1342
|
-
std,
|
|
1343
|
-
d
|
|
1340
|
+
std: std_exports,
|
|
1341
|
+
d: data_exports
|
|
1344
1342
|
})
|
|
1345
1343
|
}) && $.f)({}));
|
|
1346
1344
|
function applyEmbossEffect$1(params, sdfSampler, childTexture, options) {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { $t as vec2f, Et as max, It as sin, Lt as smoothstep, N as unpremultiplyAlpha, Ot as mix, Tt as length, Vt as data_exports, _ as floatE, _t as clamp, an as f32, bt as dot, d as ZERO, et as src_default, gt as atan2, in as vec4f, nn as vec3f, nt as std_exports, p as call, vt as cos, y as vec4 } from "./edges-BXNBKxSN.js";
|
|
2
|
+
import { p as noise_exports, u as mxNoiseFloat2 } from "./noise-wTSHXgFz.js";
|
|
3
|
+
import { a as transformColor, c as transformPosition, r as transformAngle } from "./transformations-CsPUHppB.js";
|
|
3
4
|
var TAU = 6.283185307179586;
|
|
4
5
|
var DEG_TO_RAD = .017453292519943295;
|
|
5
6
|
var transformStyle = (value) => value === "spiral" ? 2 : value === "line" ? 0 : 1;
|
|
6
7
|
var styleModeOf = (raw) => typeof raw === "number" ? raw : transformStyle(String(raw));
|
|
7
|
-
const engravingPlate =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
],
|
|
8
|
+
const engravingPlate = src_default.fn([
|
|
9
|
+
vec2f,
|
|
10
|
+
f32,
|
|
11
|
+
f32,
|
|
12
|
+
f32,
|
|
13
|
+
f32,
|
|
14
|
+
f32
|
|
15
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p, angleDeg, frequency, reliefPhase, level, aa) => {
|
|
15
16
|
"use gpu";
|
|
16
17
|
const angleRad = __tsover_mul(angleDeg, DEG_TO_RAD);
|
|
17
|
-
const c =
|
|
18
|
-
const s =
|
|
18
|
+
const c = cos(angleRad);
|
|
19
|
+
const s = sin(angleRad);
|
|
19
20
|
const w = __tsover_add(__tsover_mul(p.x, __tsover_mul(s, -1)), __tsover_mul(p.y, c));
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
return std.smoothstep(__tsover_sub(thr, aa), __tsover_add(thr, aa), v);
|
|
21
|
+
const v = cos(__tsover_add(__tsover_mul(__tsover_mul(w, frequency), TAU), reliefPhase));
|
|
22
|
+
const thr = mix(-1.15, 1.15, clamp(level, 0, 1));
|
|
23
|
+
return smoothstep(__tsover_sub(thr, aa), __tsover_add(thr, aa), v);
|
|
24
24
|
}), {
|
|
25
25
|
v: 1,
|
|
26
26
|
name: void 0,
|
|
@@ -223,26 +223,25 @@ const engravingPlate = tgpu.fn([
|
|
|
223
223
|
},
|
|
224
224
|
externals: () => ({
|
|
225
225
|
DEG_TO_RAD,
|
|
226
|
-
std,
|
|
226
|
+
std: std_exports,
|
|
227
227
|
TAU
|
|
228
228
|
})
|
|
229
229
|
}) && $.f)({}));
|
|
230
|
-
const engravingSpiralPlate =
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
],
|
|
230
|
+
const engravingSpiralPlate = src_default.fn([
|
|
231
|
+
vec2f,
|
|
232
|
+
vec2f,
|
|
233
|
+
f32,
|
|
234
|
+
f32,
|
|
235
|
+
f32,
|
|
236
|
+
f32
|
|
237
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p, c, frequency, reliefPhase, level, aa) => {
|
|
238
238
|
"use gpu";
|
|
239
239
|
const dv = p.sub(c);
|
|
240
|
-
const r =
|
|
241
|
-
const theta =
|
|
242
|
-
const
|
|
243
|
-
const
|
|
244
|
-
|
|
245
|
-
return std.smoothstep(__tsover_sub(thr, aa), __tsover_add(thr, aa), v);
|
|
240
|
+
const r = length(dv);
|
|
241
|
+
const theta = atan2(dv.y, dv.x);
|
|
242
|
+
const v = cos(__tsover_add(__tsover_mul(__tsover_sub(__tsover_mul(r, frequency), __tsover_mul(theta, __tsover_div(1, TAU))), TAU), reliefPhase));
|
|
243
|
+
const thr = mix(-1.15, 1.15, clamp(level, 0, 1));
|
|
244
|
+
return smoothstep(__tsover_sub(thr, aa), __tsover_add(thr, aa), v);
|
|
246
245
|
}), {
|
|
247
246
|
v: 1,
|
|
248
247
|
name: void 0,
|
|
@@ -429,21 +428,21 @@ const engravingSpiralPlate = tgpu.fn([
|
|
|
429
428
|
"externalNames": ["std", "TAU"]
|
|
430
429
|
},
|
|
431
430
|
externals: () => ({
|
|
432
|
-
std,
|
|
431
|
+
std: std_exports,
|
|
433
432
|
TAU
|
|
434
433
|
})
|
|
435
434
|
}) && $.f)({}));
|
|
436
435
|
function makeEngravingComposite(style) {
|
|
437
|
-
return
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
],
|
|
436
|
+
return src_default.fn([
|
|
437
|
+
vec4f,
|
|
438
|
+
vec2f,
|
|
439
|
+
f32,
|
|
440
|
+
vec4f,
|
|
441
|
+
vec4f,
|
|
442
|
+
vec2f,
|
|
443
|
+
vec4f,
|
|
444
|
+
vec4f
|
|
445
|
+
], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((childColor, uv, aspect, paper, ink, center, p0, p1) => {
|
|
447
446
|
"use gpu";
|
|
448
447
|
const angleDeg = p0.x;
|
|
449
448
|
const frequency = p0.y;
|
|
@@ -451,27 +450,26 @@ function makeEngravingComposite(style) {
|
|
|
451
450
|
const waviness = p0.w;
|
|
452
451
|
const contrast = p1.x;
|
|
453
452
|
const viewportY = p1.y;
|
|
454
|
-
const lum =
|
|
455
|
-
const level =
|
|
456
|
-
const pa =
|
|
453
|
+
const lum = dot(vec3f(childColor.x, childColor.y, childColor.z), vec3f(.299, .587, .114));
|
|
454
|
+
const level = clamp(__tsover_add(.5, __tsover_mul(__tsover_sub(lum, .5), contrast)), 0, 1);
|
|
455
|
+
const pa = vec2f(__tsover_mul(uv.x, aspect), uv.y);
|
|
457
456
|
const nx = mxNoiseFloat2(pa.mul(3.1));
|
|
458
|
-
const ny = mxNoiseFloat2(pa.mul(3.1).add(
|
|
459
|
-
const p = pa.add(
|
|
460
|
-
const aa =
|
|
457
|
+
const ny = mxNoiseFloat2(pa.mul(3.1).add(vec2f(7.31, 3.77)));
|
|
458
|
+
const p = pa.add(vec2f(nx, ny).mul(__tsover_mul(waviness, .06)));
|
|
459
|
+
const aa = clamp(__tsover_div(__tsover_mul(frequency, TAU), max(viewportY, 1)), .02, 1);
|
|
461
460
|
const reliefPhase = __tsover_mul(__tsover_mul(relief, level), 9.42);
|
|
462
|
-
let cover =
|
|
463
|
-
if (style === 2) cover = engravingSpiralPlate(p,
|
|
461
|
+
let cover = f32(0);
|
|
462
|
+
if (style === 2) cover = engravingSpiralPlate(p, vec2f(__tsover_mul(center.x, aspect), __tsover_sub(1, center.y)), frequency, reliefPhase, level, aa);
|
|
464
463
|
else if (style === 1) {
|
|
465
464
|
const ink1 = engravingPlate(p, angleDeg, frequency, reliefPhase, level, aa);
|
|
466
|
-
const level2 =
|
|
465
|
+
const level2 = clamp(__tsover_div(level, .55), 0, 1);
|
|
467
466
|
const ink2 = engravingPlate(p, __tsover_add(angleDeg, 72), __tsover_mul(frequency, .92), __tsover_mul(reliefPhase, .7), level2, aa);
|
|
468
|
-
const level3 =
|
|
469
|
-
|
|
470
|
-
cover = std.max(ink1, std.max(ink2, ink3));
|
|
467
|
+
const level3 = clamp(__tsover_div(level, .28), 0, 1);
|
|
468
|
+
cover = max(ink1, max(ink2, engravingPlate(p, __tsover_sub(angleDeg, 38), __tsover_mul(frequency, 1.13), __tsover_mul(reliefPhase, .5), level3, aa)));
|
|
471
469
|
} else cover = engravingPlate(p, angleDeg, frequency, reliefPhase, level, aa);
|
|
472
|
-
const rgb =
|
|
473
|
-
const alpha = __tsover_mul(childColor.w,
|
|
474
|
-
return
|
|
470
|
+
const rgb = mix(vec3f(paper.x, paper.y, paper.z), vec3f(ink.x, ink.y, ink.z), vec3f(cover));
|
|
471
|
+
const alpha = __tsover_mul(childColor.w, mix(paper.w, ink.w, cover));
|
|
472
|
+
return vec4f(rgb.x, rgb.y, rgb.z, alpha);
|
|
475
473
|
}), {
|
|
476
474
|
v: 1,
|
|
477
475
|
name: void 0,
|
|
@@ -1200,8 +1198,8 @@ function makeEngravingComposite(style) {
|
|
|
1200
1198
|
]
|
|
1201
1199
|
},
|
|
1202
1200
|
externals: () => ({
|
|
1203
|
-
std,
|
|
1204
|
-
d,
|
|
1201
|
+
std: std_exports,
|
|
1202
|
+
d: data_exports,
|
|
1205
1203
|
noise: noise_exports,
|
|
1206
1204
|
TAU,
|
|
1207
1205
|
style,
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { $t as vec2f, Vt as data_exports, an as f32, et as src_default, nt as std_exports, p as call, xt as exp } from "./edges-BXNBKxSN.js";
|
|
2
|
+
import { i as erosion12, p as noise_exports } from "./noise-wTSHXgFz.js";
|
|
3
|
+
import { n as toneAndColorExpr } from "./noiseColor-CPakiKNF.js";
|
|
4
|
+
import { i as noiseToneProps, t as noiseColorProps } from "./noiseColor-DscZM9CO.js";
|
|
5
|
+
const erosionNoiseField = src_default.fn([
|
|
6
|
+
vec2f,
|
|
7
|
+
vec2f,
|
|
8
|
+
f32,
|
|
9
|
+
f32
|
|
10
|
+
], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, viewport, scale, seed) => {
|
|
9
11
|
"use gpu";
|
|
10
12
|
const aspect = __tsover_div(viewport.x, viewport.y);
|
|
11
|
-
const pos =
|
|
13
|
+
const pos = vec2f(__tsover_mul(uv.x, aspect), uv.y).mul(exp(scale)).add(seed);
|
|
12
14
|
return __tsover_add(__tsover_mul(erosion12(pos).x, .5), .5);
|
|
13
15
|
}), {
|
|
14
16
|
v: 1,
|
|
@@ -137,8 +139,8 @@ const erosionNoiseField = tgpu.fn([
|
|
|
137
139
|
]
|
|
138
140
|
},
|
|
139
141
|
externals: () => ({
|
|
140
|
-
d,
|
|
141
|
-
std,
|
|
142
|
+
d: data_exports,
|
|
143
|
+
std: std_exports,
|
|
142
144
|
noise: noise_exports
|
|
143
145
|
})
|
|
144
146
|
}) && $.f)({}));
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const exposureColor =
|
|
1
|
+
import { Vt as data_exports, an as f32, d as ZERO, et as src_default, in as vec4f, p as call } from "./edges-BXNBKxSN.js";
|
|
2
|
+
const exposureColor = src_default.fn([vec4f, f32], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((color, gain) => {
|
|
3
3
|
"use gpu";
|
|
4
|
-
|
|
5
|
-
return d.vec4f(rgb, color.w);
|
|
4
|
+
return vec4f(color.xyz.mul(gain), color.w);
|
|
6
5
|
}), {
|
|
7
6
|
v: 1,
|
|
8
7
|
name: void 0,
|
|
@@ -45,7 +44,7 @@ const exposureColor = tgpu.fn([d.vec4f, d.f32], d.vec4f)(/* @__PURE__ */ (($) =>
|
|
|
45
44
|
]]]],
|
|
46
45
|
"externalNames": ["d"]
|
|
47
46
|
},
|
|
48
|
-
externals: () => ({ d })
|
|
47
|
+
externals: () => ({ d: data_exports })
|
|
49
48
|
}) && $.f)({}));
|
|
50
49
|
const componentDefinition = {
|
|
51
50
|
name: "Exposure",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
1
|
+
import { $t as vec2f, Ct as floor, Et as max, H as mixColorsLinear, It as sin, Lt as smoothstep, Rt as sqrt, U as mixColorsVariants, Vt as data_exports, _t as clamp, an as f32, ct as fwidth, et as src_default, mt as abs, nt as std_exports, p as call, vt as cos, wt as fract, y as vec4 } from "./edges-BXNBKxSN.js";
|
|
2
|
+
import { t as animatedTime } from "./porters-DBK1Aipq.js";
|
|
3
|
+
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
4
4
|
var DEG_TO_RAD = Math.PI / 180;
|
|
5
|
-
var colHash =
|
|
5
|
+
var colHash = src_default.fn([f32], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((idx) => {
|
|
6
6
|
"use gpu";
|
|
7
|
-
return
|
|
7
|
+
return vec2f(fract(__tsover_mul(sin(__tsover_mul(idx, 127.1)), 43758.5453123)), fract(__tsover_mul(sin(__tsover_mul(idx, 311.7)), 38291.3421)));
|
|
8
8
|
}), {
|
|
9
9
|
v: 1,
|
|
10
10
|
name: void 0,
|
|
@@ -77,57 +77,55 @@ var colHash = tgpu.fn([d.f32], d.vec2f)(/* @__PURE__ */ (($) => (globalThis.__TY
|
|
|
77
77
|
"externalNames": ["d", "std"]
|
|
78
78
|
},
|
|
79
79
|
externals: () => ({
|
|
80
|
-
d,
|
|
81
|
-
std
|
|
80
|
+
d: data_exports,
|
|
81
|
+
std: std_exports
|
|
82
82
|
})
|
|
83
83
|
}) && $.f)({}));
|
|
84
|
-
const fallingLinesField =
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
],
|
|
84
|
+
const fallingLinesField = src_default.fn([
|
|
85
|
+
vec2f,
|
|
86
|
+
vec2f,
|
|
87
|
+
f32,
|
|
88
|
+
f32,
|
|
89
|
+
f32,
|
|
90
|
+
f32,
|
|
91
|
+
f32,
|
|
92
|
+
f32,
|
|
93
|
+
f32,
|
|
94
|
+
f32
|
|
95
|
+
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, vp, angle, density, speedVariance, trailLength, strokeWidth, rounding, balance, animTime) => {
|
|
96
96
|
"use gpu";
|
|
97
97
|
const aspect = __tsover_div(vp.x, vp.y);
|
|
98
|
-
const centeredUV =
|
|
98
|
+
const centeredUV = vec2f(__tsover_mul(uv.x, aspect), uv.y).sub(vec2f(__tsover_mul(aspect, .5), .5));
|
|
99
99
|
const angleRad = __tsover_mul(angle, DEG_TO_RAD);
|
|
100
|
-
const cosA =
|
|
101
|
-
const sinA =
|
|
100
|
+
const cosA = cos(angleRad);
|
|
101
|
+
const sinA = sin(angleRad);
|
|
102
102
|
const u = __tsover_sub(__tsover_mul(centeredUV.y, cosA), __tsover_mul(centeredUV.x, sinA));
|
|
103
103
|
const v = __tsover_add(__tsover_mul(centeredUV.x, cosA), __tsover_mul(centeredUV.y, sinA));
|
|
104
104
|
const colF = __tsover_mul(u, density);
|
|
105
|
-
const colIdx =
|
|
106
|
-
const colLocalU =
|
|
105
|
+
const colIdx = floor(colF);
|
|
106
|
+
const colLocalU = fract(colF);
|
|
107
107
|
const h = colHash(colIdx);
|
|
108
108
|
const speedMod = __tsover_add(1, __tsover_mul(__tsover_mul(__tsover_sub(h.x, .5), speedVariance), 2));
|
|
109
109
|
const phase = h.y;
|
|
110
|
-
const animOffset =
|
|
111
|
-
const vPeriodic =
|
|
110
|
+
const animOffset = fract(__tsover_mul(animTime, speedMod));
|
|
111
|
+
const vPeriodic = fract(__tsover_sub(__tsover_sub(v, animOffset), phase));
|
|
112
112
|
const trailLen = trailLength;
|
|
113
|
-
const withinStreak =
|
|
114
|
-
const fwV =
|
|
115
|
-
const fwU =
|
|
116
|
-
const streakMask = __tsover_sub(1,
|
|
113
|
+
const withinStreak = clamp(__tsover_div(vPeriodic, trailLen), 0, 1);
|
|
114
|
+
const fwV = clamp(fwidth(v), .001, .1);
|
|
115
|
+
const fwU = clamp(__tsover_mul(fwidth(u), density), .001, .1);
|
|
116
|
+
const streakMask = __tsover_sub(1, smoothstep(__tsover_sub(trailLen, fwV), __tsover_add(trailLen, fwV), vPeriodic));
|
|
117
117
|
const hw = __tsover_mul(strokeWidth, .5);
|
|
118
|
-
const distFromCenter =
|
|
119
|
-
const widthMask = __tsover_sub(1,
|
|
118
|
+
const distFromCenter = abs(__tsover_sub(colLocalU, .5));
|
|
119
|
+
const widthMask = __tsover_sub(1, smoothstep(__tsover_sub(hw, fwU), __tsover_add(hw, fwU), distFromCenter));
|
|
120
120
|
const rectMask = __tsover_mul(streakMask, widthMask);
|
|
121
121
|
const maxDepth = __tsover_mul(hw, rounding);
|
|
122
|
-
const gapDist = __tsover_mul(
|
|
123
|
-
const tcap =
|
|
124
|
-
const capHW = __tsover_mul(hw,
|
|
125
|
-
const
|
|
126
|
-
const finalMask = std.max(rectMask, capAlpha);
|
|
122
|
+
const gapDist = __tsover_mul(max(__tsover_sub(vPeriodic, trailLen), 0), density);
|
|
123
|
+
const tcap = clamp(__tsover_div(gapDist, max(maxDepth, 1e-4)), 0, 1);
|
|
124
|
+
const capHW = __tsover_mul(hw, sqrt(max(__tsover_sub(1, __tsover_mul(tcap, tcap)), 0)));
|
|
125
|
+
const finalMask = max(rectMask, __tsover_mul(__tsover_sub(1, smoothstep(max(__tsover_sub(capHW, fwU), 0), max(__tsover_add(capHW, fwU), .001), distFromCenter)), smoothstep(0, fwU, capHW)));
|
|
127
126
|
const balanceNum = __tsover_sub(__tsover_mul(2, balance), 1);
|
|
128
|
-
const balanceDen =
|
|
129
|
-
|
|
130
|
-
return d.vec2f(finalMask, balancedT);
|
|
127
|
+
const balanceDen = max(__tsover_mul(2, __tsover_sub(1, balance)), .001);
|
|
128
|
+
return vec2f(finalMask, clamp(__tsover_div(__tsover_add(withinStreak, balanceNum), balanceDen), 0, 1));
|
|
131
129
|
}), {
|
|
132
130
|
v: 1,
|
|
133
131
|
name: void 0,
|
|
@@ -905,9 +903,9 @@ const fallingLinesField = tgpu.fn([
|
|
|
905
903
|
]
|
|
906
904
|
},
|
|
907
905
|
externals: () => ({
|
|
908
|
-
d,
|
|
906
|
+
d: data_exports,
|
|
909
907
|
DEG_TO_RAD,
|
|
910
|
-
std,
|
|
908
|
+
std: std_exports,
|
|
911
909
|
colHash
|
|
912
910
|
})
|
|
913
911
|
}) && $.f)({}));
|