shaders 3.0.438 → 3.0.439
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-CFsh0PlD.js → AngularBlur-BJKQrsoZ.js} +1 -1
- package/dist/core/{Arc-CUnOmySr.js → Arc-BZdfWWlz.js} +1 -1
- package/dist/core/{Ascii-BLLIv-3N.js → Ascii-CR5iFmk8.js} +1 -1
- package/dist/core/{Aurora-B_5FkTB2.js → Aurora-C0KIoJY5.js} +2 -2
- package/dist/core/{BarShift-Ca-1XYfx.js → BarShift-_mdK3UWW.js} +2 -2
- package/dist/core/{Beam-DRdKJKir.js → Beam-DYvBEj6q.js} +1 -1
- package/dist/core/{Blob-BRTcopJC.js → Blob-DgMJ5M6V.js} +2 -2
- package/dist/core/{BlockNoise-CA933kae.js → BlockNoise-CsBWCDzA.js} +3 -3
- package/dist/core/{BlueNoise-BeFfRr-o.js → BlueNoise-D-WjLdgK.js} +2 -2
- package/dist/core/{Blur-l7HgDuUW.js → Blur-WeJoA31s.js} +1 -1
- package/dist/core/{BrickPattern-BWK7-KwE.js → BrickPattern-DPez_hvr.js} +2 -2
- package/dist/core/{BrightnessContrast-Dh8qSRLx.js → BrightnessContrast-XvDV1ixv.js} +1 -1
- package/dist/core/{BrushedMetal-CvIXubZz.js → BrushedMetal-DYwNjVpX.js} +3 -3
- package/dist/core/{Bulge-d93jKEwv.js → Bulge-DcBJaYyW.js} +1 -1
- package/dist/core/{CRTScreen-CSBjpbn4.js → CRTScreen-Byau9--w.js} +1 -1
- package/dist/core/{CarbonFiber-G7vIOz5W.js → CarbonFiber-DwYVLmd0.js} +2 -2
- package/dist/core/{Chalkboard-C9PtcnYN.js → Chalkboard-D_FVdz4V.js} +1 -1
- package/dist/core/{ChannelBlur-B1bY63Fb.js → ChannelBlur-B70l9vql.js} +1 -1
- package/dist/core/{Checkerboard-DbjFO-fF.js → Checkerboard-B_z4be-A.js} +1 -1
- package/dist/core/{Chevron-D5-x4Wwd.js → Chevron-CfGjPdH6.js} +2 -2
- package/dist/core/{ChromaFlow-CuLYMObY.js → ChromaFlow-B9zZUgzN.js} +1 -1
- package/dist/core/{ChromaticAberration-Dwvzvb8a.js → ChromaticAberration-BrGXd7kq.js} +1 -1
- package/dist/core/{Circle-BLNjdX3R.js → Circle-DFx6OVnv.js} +1 -1
- package/dist/core/{ColorWheel-CA_34-9I.js → ColorWheel-CI_qR6vL.js} +2 -2
- package/dist/core/{CompressionArtifacts-3lIojU64.js → CompressionArtifacts-CVWkWovO.js} +1 -1
- package/dist/core/{ConcentricSpin-FJuBPPHi.js → ConcentricSpin-lAMdNRDl.js} +2 -2
- package/dist/core/{ConicGradient-f9jCXFuK.js → ConicGradient-C3wD1h2z.js} +2 -2
- package/dist/core/{ContourLines-Clnm2pQU.js → ContourLines-C3Hwaw1Y.js} +1 -1
- package/dist/core/{CornerPin-ecpjb9do.js → CornerPin-DxUoEjhR.js} +1 -1
- package/dist/core/{Crescent-CO5EZzD1.js → Crescent-BCf_ZZI3.js} +1 -1
- package/dist/core/{Cross-CofGHkIn.js → Cross-CeQhwjVB.js} +1 -1
- package/dist/core/{Crystal-C_aHlQ_3.js → Crystal-CC7d_6kZ.js} +2 -2
- package/dist/core/{CurlNoise-Br5XEf1K.js → CurlNoise-KsNJEh6E.js} +3 -3
- package/dist/core/{CursorRipples-CLYoq-BF.js → CursorRipples-Jgm7iF0Z.js} +1 -1
- package/dist/core/{CursorTrail-c-t96YgV.js → CursorTrail-CkNn85vn.js} +2 -2
- package/dist/core/{DOMTexture-Zxx_WTGZ.js → DOMTexture-DFvbXYrj.js} +1 -1
- package/dist/core/{DataMosh-BSYAol1u.js → DataMosh-Dh7TYpbW.js} +1 -1
- package/dist/core/{DiamondGradient-uyUPtPc3.js → DiamondGradient-HmZwnTdD.js} +2 -2
- package/dist/core/{DiffuseBlur-Cw9duoJ7.js → DiffuseBlur-uXE0w0DD.js} +1 -1
- package/dist/core/{Dither-B3ulhQOh.js → Dither-YUNtD1tI.js} +1 -1
- package/dist/core/{DotGrid-ioUj-Lim.js → DotGrid-DABCUp6d.js} +2 -2
- package/dist/core/{DropShadow-BRL7yRmy.js → DropShadow-C7KAuipC.js} +1 -1
- package/dist/core/{Duotone-Df34HelN.js → Duotone-CuJunWJ0.js} +1 -1
- package/dist/core/{Ellipse-BHxcxCpl.js → Ellipse-DrZqqQh2.js} +1 -1
- package/dist/core/{Emboss-D-qOxM2u.js → Emboss-D_-1_a3u.js} +3 -3
- package/dist/core/{Engraving-B1ebFc1E.js → Engraving-fQ1zZJ89.js} +1 -1
- package/dist/core/{ErosionNoise-ZrJulbtK.js → ErosionNoise-B01HEvZk.js} +2 -2
- package/dist/core/{Exposure-D8apJapP.js → Exposure-o_CViEwJ.js} +1 -1
- package/dist/core/{FallingLines-DsMBKjEZ.js → FallingLines-Bv8X8gRy.js} +2 -2
- package/dist/core/{FilmGrain-DeW-yw_v.js → FilmGrain-CoW4iHsT.js} +1 -1
- package/dist/core/{Flip-Dw194RY6.js → Flip-h2K3wLGX.js} +1 -1
- package/dist/core/{FloatingParticles--Y81hnnp.js → FloatingParticles-W_QAKOku.js} +1 -1
- package/dist/core/{FlowField-CiK49M8B.js → FlowField-CwU9iWbf.js} +2 -2
- package/dist/core/{Flower-Cdg8fOzZ.js → Flower-DxOinfag.js} +1 -1
- package/dist/core/{FlowingGradient-B1Iywvbd.js → FlowingGradient-DdFrloZC.js} +2 -2
- package/dist/core/{FlutedGlass-Crp432sd.js → FlutedGlass-B9652Bh4.js} +2 -2
- package/dist/core/{Fog-ClrsfQfj.js → Fog-D5sIF3cX.js} +1 -1
- package/dist/core/{Form3D-CrT8E1u5.js → Form3D-BmCwmFPZ.js} +2 -2
- package/dist/core/{FractalNoise-DeDp7KQE.js → FractalNoise-BFs55FIe.js} +2 -2
- package/dist/core/{Frost-IvGmzNqf.js → Frost-C6qVP9a2.js} +3 -3
- package/dist/core/{GaborNoise-Bmhmuq_Z.js → GaborNoise-C1LVTyG3.js} +3 -3
- package/dist/core/{Glass-CJFR7oIt.js → Glass-DR9JYQMG.js} +7 -4
- package/dist/core/{GlassTiles-BSBCjkhG.js → GlassTiles-D5Lrddns.js} +1 -1
- package/dist/core/{Glitch-Bp0LbC1u.js → Glitch-B93JzM-d.js} +1 -1
- package/dist/core/{Glow-CVBYSMxr.js → Glow-DlxNehzC.js} +1 -1
- package/dist/core/{Godrays-C0VLmrcc.js → Godrays-n9Gjl-h6.js} +2 -2
- package/dist/core/{Goo-D-X3mP-n.js → Goo-BusLBgE3.js} +4 -4
- package/dist/core/{GradientMap-uRYa7Yhv.js → GradientMap-CapG6NfM.js} +1 -1
- package/dist/core/{Grayscale-DUGCGltR.js → Grayscale-Dx9gKGZb.js} +1 -1
- package/dist/core/{Grid-FtTNW6zy.js → Grid-gZHTJmwP.js} +1 -1
- package/dist/core/{GridDistortion-lKZ4wpxx.js → GridDistortion-BkkuULR2.js} +1 -1
- package/dist/core/{Group-BNE6w-Ls.js → Group-pHN72R84.js} +1 -1
- package/dist/core/{Halftone-BdmAqFEa.js → Halftone-dlX8bpPV.js} +1 -1
- package/dist/core/{Heart-iGATzBCZ.js → Heart-CwELiXMT.js} +1 -1
- package/dist/core/{Heatmap-dBfHUyG-.js → Heatmap-unI_z4Uc.js} +3 -3
- package/dist/core/{HexGrid-BUe3dyym.js → HexGrid-BTWeNz9Z.js} +1 -1
- package/dist/core/{Hologram-BQ1kz8M2.js → Hologram-3-c4mCzw.js} +4 -4
- package/dist/core/{Holographic-B39ULAli.js → Holographic-SchvA6Dy.js} +3 -3
- package/dist/core/{HueShift-DeP_0kOt.js → HueShift-BJGcv19-.js} +1 -1
- package/dist/core/{ImageTexture-Bzh0A17b.js → ImageTexture-CRueGzAZ.js} +1 -1
- package/dist/core/{Invert-CqrJ-5l4.js → Invert-DLot9mli.js} +1 -1
- package/dist/core/{IsometricCubes-BVYfIhbb.js → IsometricCubes-CFg5QBjO.js} +1 -1
- package/dist/core/{Kaleidoscope-VxQtO7zA.js → Kaleidoscope-BQFm59wM.js} +1 -1
- package/dist/core/{KeyFrames-WFOyBjoF.js → KeyFrames-DiAKRsxm.js} +1 -1
- package/dist/core/{LensFlare-2M6sCguV.js → LensFlare-BpFbnSsM.js} +2 -2
- package/dist/core/{LightEdge-CvV9PYbe.js → LightEdge-CZpMFMKO.js} +4 -4
- package/dist/core/{LightLeak-BQxRr11E.js → LightLeak-DGt9quKs.js} +2 -2
- package/dist/core/{LinearBlur-CyNRaqj8.js → LinearBlur-ClAsNnkC.js} +1 -1
- package/dist/core/{LinearGradient-RDNQes5r.js → LinearGradient-B_dBLhFm.js} +2 -2
- package/dist/core/{LiquidMetal-PGUaQGV-.js → LiquidMetal-Bb9b2h9X.js} +3 -3
- package/dist/core/{Liquify-CmkepjAk.js → Liquify-B9ypclFj.js} +1 -1
- package/dist/core/{Marble-D_a2ctfR.js → Marble-CZYhaDcz.js} +2 -2
- package/dist/core/{Mirror-B98LBGCI.js → Mirror--NvGPp-u.js} +1 -1
- package/dist/core/{MultiPointGradient-DBWhUtj8.js → MultiPointGradient-IJtw3dEC.js} +1 -1
- package/dist/core/{Neon-DFuPjkcF.js → Neon-Der_R-Bh.js} +3 -3
- package/dist/core/{ObjectTracker-Bolz91qz.js → ObjectTracker-CfW_aMyp.js} +1 -1
- package/dist/core/{PagePeel-CTy_-lpL.js → PagePeel-D_DnKmec.js} +1 -1
- package/dist/core/{Paper-BE3SU_ac.js → Paper-CZT7vlqM.js} +1 -1
- package/dist/core/{Parallelogram-C9qwJkYa.js → Parallelogram-BAi9iFi0.js} +1 -1
- package/dist/core/{Particles-x_HCygMr.js → Particles-DtxN6LL7.js} +1 -1
- package/dist/core/{PerlinNoise-Di7dE-hc.js → PerlinNoise-BCbLpWKn.js} +3 -3
- package/dist/core/{Perspective-CoYBx1wH.js → Perspective-DXIafIz8.js} +1 -1
- package/dist/core/{PixelSort-DMWTXIcO.js → PixelSort-BnZgslHG.js} +1 -1
- package/dist/core/{PixelThrow-CiZj7iGN.js → PixelThrow-BAVO2zdp.js} +656 -4
- package/dist/core/{Pixelate-Dg41Ap0g.js → Pixelate-L-pZ8G79.js} +1 -1
- package/dist/core/{Plasma-BpNK-Jnv.js → Plasma-BELcebZa.js} +2 -2
- package/dist/core/{Plastic-CpmtjSSV.js → Plastic-e8KLjCgS.js} +3 -3
- package/dist/core/{PolarCoordinates-CBh8MX8L.js → PolarCoordinates-CNZ6Df5J.js} +1 -1
- package/dist/core/{Polygon-KpW71r_g.js → Polygon-BGBTOGLe.js} +1 -1
- package/dist/core/{Posterize-DPwFDwMx.js → Posterize-Cs_kyyjG.js} +1 -1
- package/dist/core/{Prism-BZcRvoMJ.js → Prism-BUalIt7a.js} +2 -2
- package/dist/core/{ProgressiveBlur-BAYvLhUa.js → ProgressiveBlur-C2wYIOH-.js} +1 -1
- package/dist/core/{RadialGradient-DxIBw-EZ.js → RadialGradient-B3tlBsQZ.js} +2 -2
- package/dist/core/{RectangularCoordinates-DJGtXzgn.js → RectangularCoordinates-DWWlrqB4.js} +1 -1
- package/dist/core/{ReflectivePlane-C4JxzSK_.js → ReflectivePlane-BmM5w76k.js} +1 -1
- package/dist/core/{Repeater-1TW-fdff.js → Repeater-V37OGlry.js} +1 -1
- package/dist/core/{Ring-W9djENkw.js → Ring-WVyMeyoh.js} +1 -1
- package/dist/core/{Ripples-Dbvh__ZY.js → Ripples-Bv__zvme.js} +2 -2
- package/dist/core/{RoundedRect-DXjLPZee.js → RoundedRect-B62UFEeb.js} +1 -1
- package/dist/core/{Saturation-Wct3aUol.js → Saturation-DIRGc5kp.js} +1 -1
- package/dist/core/{Scratches-CpfAuRQw.js → Scratches-ZFLTq06k.js} +3 -3
- package/dist/core/{Sharpness-BgWKE-3E.js → Sharpness-WYaGJlSI.js} +1 -1
- package/dist/core/{Shatter-DiBeVj4M.js → Shatter-CPS5Kdei.js} +1 -1
- package/dist/core/{SimplexNoise-Bgiw5XJP.js → SimplexNoise-DMWtripU.js} +2 -2
- package/dist/core/{SineWave-CHygTRV-.js → SineWave-BOoYgny1.js} +2 -2
- package/dist/core/{Smoke-CbAIiwKG.js → Smoke-BGGH2iTS.js} +2 -2
- package/dist/core/{SmokeFill-BnJoSbE3.js → SmokeFill-ClBFBWz3.js} +2 -2
- package/dist/core/{SmokeFlow-H01ajJ5Q.js → SmokeFlow-DkBGrN_d.js} +2 -2
- package/dist/core/{Solarize-CUpThxJh.js → Solarize-D_ZPY_Cr.js} +1 -1
- package/dist/core/{Spherize-bBe44dU7.js → Spherize-h1F31u9-.js} +1 -1
- package/dist/core/{Spiral-sBR7Fn0z.js → Spiral-BMFhUpkP.js} +2 -2
- package/dist/core/{Star-DQUfQjbf.js → Star-D8d3Gk74.js} +1 -1
- package/dist/core/{Stone-DnY9YuMc.js → Stone-CfpfDKpn.js} +1 -1
- package/dist/core/{Strands-e7O0GIHI.js → Strands-256prKRG.js} +2 -2
- package/dist/core/{Stretch-CXFrCyH_.js → Stretch-C7z0wdI7.js} +1 -1
- package/dist/core/{Stripes-BS5Y7yeT.js → Stripes-BVvuh6r7.js} +2 -2
- package/dist/core/{StudioBackground-D7eIlsQA.js → StudioBackground-Cy2qPLYJ.js} +2 -2
- package/dist/core/{SunBurst-CuawxiUI.js → SunBurst-vUglW69s.js} +2 -2
- package/dist/core/{Surface3D-ZtGSv9V6.js → Surface3D-quYcBdK_.js} +1 -1
- package/dist/core/{Swirl-CxRi1nI8.js → Swirl-BD3Fk-SC.js} +2 -2
- package/dist/core/{Teardrop-D_ePwja5.js → Teardrop-Bxfkjjaz.js} +1 -1
- package/dist/core/{Text-C1Wjl8fJ.js → Text-CrbVixvj.js} +1 -1
- package/dist/core/{ThinFilm-9l3KGv4Q.js → ThinFilm-D_y48u9e.js} +40 -35
- package/dist/core/{TiltShift-CBCuQwu9.js → TiltShift-3s5RKGCa.js} +1 -1
- package/dist/core/{Tint-HLecBeer.js → Tint-DZUIRc-Z.js} +1 -1
- package/dist/core/{Trapezoid-CztpQJcb.js → Trapezoid-7VOLjftp.js} +1 -1
- package/dist/core/{TriangularGrid-BWzP25ws.js → TriangularGrid-Qek0gRuV.js} +2 -2
- package/dist/core/{Tritone-DczuOC88.js → Tritone-CqYOMKFE.js} +1 -1
- package/dist/core/{Truchet-Bj0dM4pc.js → Truchet-D6emdFny.js} +1 -1
- package/dist/core/{Twirl-CgT4-JNU.js → Twirl-Y8OzHc49.js} +1 -1
- package/dist/core/{VHS-BO2ImGGx.js → VHS-B28K9Bfc.js} +1 -1
- package/dist/core/{Vesica-hhR3uVm2.js → Vesica-DFRPMcgz.js} +1 -1
- package/dist/core/{Vibrance-Bxbm2XXk.js → Vibrance-BkMNClGf.js} +1 -1
- package/dist/core/{VideoTexture-Zj56qULM.js → VideoTexture-DNfGZ4kz.js} +1 -1
- package/dist/core/{Vignette-DhIYUi7B.js → Vignette-DWveIoCk.js} +1 -1
- package/dist/core/{Voronoi-I5jNa5lH.js → Voronoi-c1kHPUka.js} +2 -2
- package/dist/core/{Water-DcoqDm5J.js → Water-CEmTC2Ii.js} +3 -3
- package/dist/core/{Watercolor-DhrRCOJ_.js → Watercolor--Bg1ZPIG.js} +1 -1
- package/dist/core/{WaveDistortion-DJ1itI6L.js → WaveDistortion-BSyW8c28.js} +2 -2
- package/dist/core/{WaveletNoise-Cy1pQ99p.js → WaveletNoise-cDkFw55m.js} +3 -3
- package/dist/core/{Weave-CPIeOoWv.js → Weave--Ex2UVBt.js} +1 -1
- package/dist/core/{WebcamTexture-DNCb4NqI.js → WebcamTexture-CPWUtxVm.js} +1 -1
- package/dist/core/{Wool-aEiSh89V.js → Wool-BNmVUISf.js} +1 -1
- package/dist/core/{WorleyNoise-C9l_C4G0.js → WorleyNoise-CbhvPZS-.js} +2 -2
- package/dist/core/{ZoomBlur-CpM-IOSu.js → ZoomBlur-BR_do-LV.js} +1 -1
- package/dist/core/{coords-BlwgBpJf.js → coords-CWOT0Wqh.js} +4038 -226
- package/dist/core/{glass-DdgMBWkF.js → glass-hUL2pCYG.js} +179 -58
- package/dist/core/gpu/kit/effects/glass.d.ts +4 -1
- package/dist/core/gpu/kit/effects/glass.d.ts.map +1 -1
- package/dist/core/gpu/kit/effects/thinFilm.d.ts +3 -0
- package/dist/core/gpu/kit/effects/thinFilm.d.ts.map +1 -1
- package/dist/core/gpu/kit/sdf3d.d.ts +24 -4
- package/dist/core/gpu/kit/sdf3d.d.ts.map +1 -1
- package/dist/core/index.js +170 -170
- package/dist/core/{noiseColor-Cr76BYLN.js → noiseColor-WSY8YuLZ.js} +1 -1
- package/dist/core/{porters-CoaznI7i.js → porters-Dg80Yg90.js} +1 -1
- package/dist/core/registry.js +170 -170
- package/dist/core/shaderRegistry-DC0r_QlY.js +370 -0
- package/dist/core/shaders/AngularBlur/index.js +3 -3
- package/dist/core/shaders/Arc/index.js +3 -3
- package/dist/core/shaders/Ascii/index.js +3 -3
- package/dist/core/shaders/Aurora/index.js +3 -3
- package/dist/core/shaders/BarShift/index.js +3 -3
- package/dist/core/shaders/Beam/index.js +3 -3
- package/dist/core/shaders/Blob/index.js +3 -3
- package/dist/core/shaders/BlockNoise/index.js +4 -4
- package/dist/core/shaders/BlueNoise/index.js +4 -4
- package/dist/core/shaders/Blur/index.js +3 -3
- package/dist/core/shaders/BrickPattern/index.js +3 -3
- package/dist/core/shaders/BrightnessContrast/index.js +3 -3
- package/dist/core/shaders/BrushedMetal/index.js +4 -4
- package/dist/core/shaders/Bulge/index.js +3 -3
- package/dist/core/shaders/CRTScreen/index.js +3 -3
- package/dist/core/shaders/CarbonFiber/index.js +4 -4
- package/dist/core/shaders/Chalkboard/index.js +3 -3
- package/dist/core/shaders/ChannelBlur/index.js +3 -3
- package/dist/core/shaders/Checkerboard/index.js +3 -3
- package/dist/core/shaders/Chevron/index.js +3 -3
- package/dist/core/shaders/ChromaFlow/index.js +3 -3
- package/dist/core/shaders/ChromaticAberration/index.js +3 -3
- package/dist/core/shaders/Circle/index.js +3 -3
- package/dist/core/shaders/ColorWheel/index.js +3 -3
- package/dist/core/shaders/CompressionArtifacts/index.js +3 -3
- package/dist/core/shaders/ConcentricSpin/index.js +3 -3
- package/dist/core/shaders/ConicGradient/index.js +3 -3
- package/dist/core/shaders/ContourLines/index.js +3 -3
- package/dist/core/shaders/CornerPin/index.js +3 -3
- package/dist/core/shaders/Crescent/index.js +3 -3
- package/dist/core/shaders/Cross/index.js +3 -3
- package/dist/core/shaders/Crystal/index.js +4 -4
- package/dist/core/shaders/CurlNoise/index.js +4 -4
- package/dist/core/shaders/CursorRipples/index.js +3 -3
- package/dist/core/shaders/CursorTrail/index.js +3 -3
- package/dist/core/shaders/DOMTexture/index.js +3 -3
- package/dist/core/shaders/DataMosh/index.js +3 -3
- package/dist/core/shaders/DiamondGradient/index.js +3 -3
- package/dist/core/shaders/DiffuseBlur/index.js +3 -3
- package/dist/core/shaders/Dither/index.js +3 -3
- package/dist/core/shaders/DotGrid/index.js +3 -3
- package/dist/core/shaders/DropShadow/index.js +3 -3
- package/dist/core/shaders/Duotone/index.js +3 -3
- package/dist/core/shaders/Ellipse/index.js +3 -3
- package/dist/core/shaders/Emboss/index.js +4 -4
- package/dist/core/shaders/Engraving/index.js +3 -3
- package/dist/core/shaders/ErosionNoise/index.js +4 -4
- package/dist/core/shaders/Exposure/index.js +3 -3
- package/dist/core/shaders/FallingLines/index.js +3 -3
- package/dist/core/shaders/FilmGrain/index.js +3 -3
- package/dist/core/shaders/Flip/index.js +3 -3
- package/dist/core/shaders/FloatingParticles/index.js +3 -3
- package/dist/core/shaders/FlowField/index.js +3 -3
- package/dist/core/shaders/Flower/index.js +3 -3
- package/dist/core/shaders/FlowingGradient/index.js +3 -3
- package/dist/core/shaders/FlutedGlass/index.js +3 -3
- package/dist/core/shaders/Fog/index.js +3 -3
- package/dist/core/shaders/Form3D/index.js +3 -3
- package/dist/core/shaders/FractalNoise/index.js +3 -3
- package/dist/core/shaders/Frost/index.js +4 -4
- package/dist/core/shaders/GaborNoise/index.js +4 -4
- package/dist/core/shaders/Glass/index.d.ts.map +1 -1
- package/dist/core/shaders/Glass/index.js +4 -4
- package/dist/core/shaders/GlassTiles/index.js +3 -3
- package/dist/core/shaders/Glitch/index.js +3 -3
- package/dist/core/shaders/Glow/index.js +3 -3
- package/dist/core/shaders/Godrays/index.js +3 -3
- package/dist/core/shaders/Goo/index.js +4 -4
- package/dist/core/shaders/GradientMap/index.js +3 -3
- package/dist/core/shaders/Grayscale/index.js +3 -3
- package/dist/core/shaders/Grid/index.js +3 -3
- package/dist/core/shaders/GridDistortion/index.js +3 -3
- package/dist/core/shaders/Group/index.js +3 -3
- package/dist/core/shaders/Halftone/index.js +3 -3
- package/dist/core/shaders/Heart/index.js +3 -3
- package/dist/core/shaders/Heatmap/index.js +4 -4
- package/dist/core/shaders/HexGrid/index.js +3 -3
- package/dist/core/shaders/Hologram/index.js +4 -4
- package/dist/core/shaders/Holographic/index.js +4 -4
- package/dist/core/shaders/HueShift/index.js +3 -3
- package/dist/core/shaders/ImageTexture/index.js +3 -3
- package/dist/core/shaders/Invert/index.js +3 -3
- package/dist/core/shaders/IsometricCubes/index.js +3 -3
- package/dist/core/shaders/Kaleidoscope/index.js +3 -3
- package/dist/core/shaders/KeyFrames/index.js +3 -3
- package/dist/core/shaders/LensFlare/index.js +3 -3
- package/dist/core/shaders/LightEdge/index.js +4 -4
- package/dist/core/shaders/LightLeak/index.js +3 -3
- package/dist/core/shaders/LinearBlur/index.js +3 -3
- package/dist/core/shaders/LinearGradient/index.js +3 -3
- package/dist/core/shaders/LiquidMetal/index.js +4 -4
- package/dist/core/shaders/Liquify/index.js +3 -3
- package/dist/core/shaders/Marble/index.js +3 -3
- package/dist/core/shaders/Mirror/index.js +3 -3
- package/dist/core/shaders/MultiPointGradient/index.js +3 -3
- package/dist/core/shaders/Neon/index.js +3 -3
- package/dist/core/shaders/ObjectTracker/index.js +3 -3
- package/dist/core/shaders/PagePeel/index.js +3 -3
- package/dist/core/shaders/Paper/index.js +3 -3
- package/dist/core/shaders/Parallelogram/index.js +3 -3
- package/dist/core/shaders/Particles/index.js +3 -3
- package/dist/core/shaders/PerlinNoise/index.js +4 -4
- package/dist/core/shaders/Perspective/index.js +3 -3
- package/dist/core/shaders/PixelSort/index.js +3 -3
- package/dist/core/shaders/PixelThrow/index.d.ts +22 -0
- package/dist/core/shaders/PixelThrow/index.d.ts.map +1 -1
- package/dist/core/shaders/PixelThrow/index.js +4 -4
- package/dist/core/shaders/Pixelate/index.js +3 -3
- package/dist/core/shaders/Plasma/index.js +3 -3
- package/dist/core/shaders/Plastic/index.js +4 -4
- package/dist/core/shaders/PolarCoordinates/index.js +3 -3
- package/dist/core/shaders/Polygon/index.js +3 -3
- package/dist/core/shaders/Posterize/index.js +3 -3
- package/dist/core/shaders/Prism/index.js +3 -3
- package/dist/core/shaders/ProgressiveBlur/index.js +3 -3
- package/dist/core/shaders/RadialGradient/index.js +3 -3
- package/dist/core/shaders/RectangularCoordinates/index.js +3 -3
- package/dist/core/shaders/ReflectivePlane/index.js +3 -3
- package/dist/core/shaders/Repeater/index.js +3 -3
- package/dist/core/shaders/Ring/index.js +3 -3
- package/dist/core/shaders/Ripples/index.js +3 -3
- package/dist/core/shaders/RoundedRect/index.js +3 -3
- package/dist/core/shaders/Saturation/index.js +3 -3
- package/dist/core/shaders/Scratches/index.js +4 -4
- package/dist/core/shaders/Sharpness/index.js +3 -3
- package/dist/core/shaders/Shatter/index.js +3 -3
- package/dist/core/shaders/SimplexNoise/index.js +3 -3
- package/dist/core/shaders/SineWave/index.js +3 -3
- package/dist/core/shaders/Smoke/index.js +3 -3
- package/dist/core/shaders/SmokeFill/index.js +4 -4
- package/dist/core/shaders/SmokeFlow/index.js +3 -3
- package/dist/core/shaders/Solarize/index.js +3 -3
- package/dist/core/shaders/Spherize/index.js +3 -3
- package/dist/core/shaders/Spiral/index.js +3 -3
- package/dist/core/shaders/Star/index.js +3 -3
- package/dist/core/shaders/Stone/index.js +2 -2
- package/dist/core/shaders/Strands/index.js +3 -3
- package/dist/core/shaders/Stretch/index.js +3 -3
- package/dist/core/shaders/Stripes/index.js +3 -3
- package/dist/core/shaders/StudioBackground/index.js +3 -3
- package/dist/core/shaders/SunBurst/index.js +3 -3
- package/dist/core/shaders/Surface3D/index.js +3 -3
- package/dist/core/shaders/Swirl/index.js +3 -3
- package/dist/core/shaders/Teardrop/index.js +3 -3
- package/dist/core/shaders/Text/index.js +3 -3
- package/dist/core/shaders/ThinFilm/index.d.ts.map +1 -1
- package/dist/core/shaders/ThinFilm/index.js +3 -3
- package/dist/core/shaders/TiltShift/index.js +3 -3
- package/dist/core/shaders/Tint/index.js +3 -3
- package/dist/core/shaders/Trapezoid/index.js +3 -3
- package/dist/core/shaders/TriangularGrid/index.js +3 -3
- package/dist/core/shaders/Tritone/index.js +3 -3
- package/dist/core/shaders/Truchet/index.js +3 -3
- package/dist/core/shaders/Twirl/index.js +3 -3
- package/dist/core/shaders/VHS/index.js +3 -3
- package/dist/core/shaders/Vesica/index.js +3 -3
- package/dist/core/shaders/Vibrance/index.js +3 -3
- package/dist/core/shaders/VideoTexture/index.js +3 -3
- package/dist/core/shaders/Vignette/index.js +3 -3
- package/dist/core/shaders/Voronoi/index.js +3 -3
- package/dist/core/shaders/Water/index.js +4 -4
- package/dist/core/shaders/Watercolor/index.js +3 -3
- package/dist/core/shaders/WaveDistortion/index.js +3 -3
- package/dist/core/shaders/WaveletNoise/index.js +4 -4
- package/dist/core/shaders/Weave/index.js +3 -3
- package/dist/core/shaders/WebcamTexture/index.js +3 -3
- package/dist/core/shaders/Wool/index.js +2 -2
- package/dist/core/shaders/WorleyNoise/index.js +3 -3
- package/dist/core/shaders/ZoomBlur/index.js +3 -3
- package/dist/js/bundle.js +160 -160
- package/dist/js/createShader.js +1 -1
- package/dist/react/Shader.js +1 -1
- package/dist/react/bundle.js +150 -150
- 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/shaderRegistry-BIiRyksy.js +0 -370
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as call, M as toHalfFloat, Ot as ZERO, Pt as floatE, R as std, Wt as unpremultiplyAlpha, bt as applyEdgeHandlingExpr, n as tgpu, on as d } from "./coords-
|
|
1
|
+
import { At as call, M as toHalfFloat, Ot as ZERO, Pt as floatE, R as std, Wt as unpremultiplyAlpha, bt as applyEdgeHandlingExpr, n as tgpu, on as d } from "./coords-CWOT0Wqh.js";
|
|
2
2
|
import { s as transformEdges } from "./transformations-fqzznt4g.js";
|
|
3
3
|
var transformThrowKey = (value) => {
|
|
4
4
|
return {
|
|
@@ -85,6 +85,654 @@ const pixelThrowOffsetUV = tgpu.fn([
|
|
|
85
85
|
},
|
|
86
86
|
externals: () => ({ d })
|
|
87
87
|
}) && $.f)({})).$name("pixelThrowOffsetUV");
|
|
88
|
+
const PixelThrowBicubicTaps = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(d.struct({
|
|
89
|
+
uvA: d.vec2f,
|
|
90
|
+
uvB: d.vec2f,
|
|
91
|
+
uvC: d.vec2f,
|
|
92
|
+
uvD: d.vec2f,
|
|
93
|
+
w: d.vec4f
|
|
94
|
+
}), "PixelThrowBicubicTaps");
|
|
95
|
+
const pixelThrowBicubicSetup = tgpu.fn([d.vec2f], PixelThrowBicubicTaps)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv) => {
|
|
96
|
+
"use gpu";
|
|
97
|
+
const gf = d.f32(GRID);
|
|
98
|
+
const tx = __tsover_sub(__tsover_mul(uv.x, gf), .5);
|
|
99
|
+
const ty = __tsover_sub(__tsover_mul(uv.y, gf), .5);
|
|
100
|
+
const pxf = std.floor(tx);
|
|
101
|
+
const pyf = std.floor(ty);
|
|
102
|
+
const fx = __tsover_sub(tx, pxf);
|
|
103
|
+
const fy = __tsover_sub(ty, pyf);
|
|
104
|
+
const ofx = __tsover_sub(1, fx);
|
|
105
|
+
const wx0 = __tsover_mul(__tsover_mul(__tsover_mul(ofx, ofx), ofx), .16666667);
|
|
106
|
+
const wx1 = __tsover_add(__tsover_sub(__tsover_mul(__tsover_mul(__tsover_mul(fx, fx), fx), .5), __tsover_mul(fx, fx)), .66666667);
|
|
107
|
+
const wx3 = __tsover_mul(__tsover_mul(__tsover_mul(fx, fx), fx), .16666667);
|
|
108
|
+
const wx2 = __tsover_sub(__tsover_sub(__tsover_sub(1, wx0), wx1), wx3);
|
|
109
|
+
const ofy = __tsover_sub(1, fy);
|
|
110
|
+
const wy0 = __tsover_mul(__tsover_mul(__tsover_mul(ofy, ofy), ofy), .16666667);
|
|
111
|
+
const wy1 = __tsover_add(__tsover_sub(__tsover_mul(__tsover_mul(__tsover_mul(fy, fy), fy), .5), __tsover_mul(fy, fy)), .66666667);
|
|
112
|
+
const wy3 = __tsover_mul(__tsover_mul(__tsover_mul(fy, fy), fy), .16666667);
|
|
113
|
+
const wy2 = __tsover_sub(__tsover_sub(__tsover_sub(1, wy0), wy1), wy3);
|
|
114
|
+
const g0x = __tsover_add(wx0, wx1);
|
|
115
|
+
const g1x = __tsover_add(wx2, wx3);
|
|
116
|
+
const g0y = __tsover_add(wy0, wy1);
|
|
117
|
+
const g1y = __tsover_add(wy2, wy3);
|
|
118
|
+
const h0x = __tsover_add(__tsover_sub(pxf, 1), __tsover_div(wx1, g0x));
|
|
119
|
+
const h1x = __tsover_add(__tsover_add(pxf, 1), __tsover_div(wx3, g1x));
|
|
120
|
+
const h0y = __tsover_add(__tsover_sub(pyf, 1), __tsover_div(wy1, g0y));
|
|
121
|
+
const h1y = __tsover_add(__tsover_add(pyf, 1), __tsover_div(wy3, g1y));
|
|
122
|
+
return PixelThrowBicubicTaps({
|
|
123
|
+
uvA: d.vec2f(__tsover_div(__tsover_add(h0x, .5), gf), __tsover_div(__tsover_add(h0y, .5), gf)),
|
|
124
|
+
uvB: d.vec2f(__tsover_div(__tsover_add(h1x, .5), gf), __tsover_div(__tsover_add(h0y, .5), gf)),
|
|
125
|
+
uvC: d.vec2f(__tsover_div(__tsover_add(h0x, .5), gf), __tsover_div(__tsover_add(h1y, .5), gf)),
|
|
126
|
+
uvD: d.vec2f(__tsover_div(__tsover_add(h1x, .5), gf), __tsover_div(__tsover_add(h1y, .5), gf)),
|
|
127
|
+
w: d.vec4f(__tsover_mul(g0x, g0y), __tsover_mul(g1x, g0y), __tsover_mul(g0x, g1y), __tsover_mul(g1x, g1y))
|
|
128
|
+
});
|
|
129
|
+
}), {
|
|
130
|
+
v: 1,
|
|
131
|
+
name: void 0,
|
|
132
|
+
ast: {
|
|
133
|
+
"params": [{
|
|
134
|
+
"type": "i",
|
|
135
|
+
"name": "uv"
|
|
136
|
+
}],
|
|
137
|
+
"body": [0, [
|
|
138
|
+
[
|
|
139
|
+
13,
|
|
140
|
+
"gf",
|
|
141
|
+
[
|
|
142
|
+
6,
|
|
143
|
+
[
|
|
144
|
+
7,
|
|
145
|
+
"d",
|
|
146
|
+
"f32"
|
|
147
|
+
],
|
|
148
|
+
["GRID"]
|
|
149
|
+
]
|
|
150
|
+
],
|
|
151
|
+
[
|
|
152
|
+
13,
|
|
153
|
+
"tx",
|
|
154
|
+
[
|
|
155
|
+
1,
|
|
156
|
+
[
|
|
157
|
+
1,
|
|
158
|
+
[
|
|
159
|
+
7,
|
|
160
|
+
"uv",
|
|
161
|
+
"x"
|
|
162
|
+
],
|
|
163
|
+
"*",
|
|
164
|
+
"gf"
|
|
165
|
+
],
|
|
166
|
+
"-",
|
|
167
|
+
[5, "0.5"]
|
|
168
|
+
]
|
|
169
|
+
],
|
|
170
|
+
[
|
|
171
|
+
13,
|
|
172
|
+
"ty",
|
|
173
|
+
[
|
|
174
|
+
1,
|
|
175
|
+
[
|
|
176
|
+
1,
|
|
177
|
+
[
|
|
178
|
+
7,
|
|
179
|
+
"uv",
|
|
180
|
+
"y"
|
|
181
|
+
],
|
|
182
|
+
"*",
|
|
183
|
+
"gf"
|
|
184
|
+
],
|
|
185
|
+
"-",
|
|
186
|
+
[5, "0.5"]
|
|
187
|
+
]
|
|
188
|
+
],
|
|
189
|
+
[
|
|
190
|
+
13,
|
|
191
|
+
"pxf",
|
|
192
|
+
[
|
|
193
|
+
6,
|
|
194
|
+
[
|
|
195
|
+
7,
|
|
196
|
+
"std",
|
|
197
|
+
"floor"
|
|
198
|
+
],
|
|
199
|
+
["tx"]
|
|
200
|
+
]
|
|
201
|
+
],
|
|
202
|
+
[
|
|
203
|
+
13,
|
|
204
|
+
"pyf",
|
|
205
|
+
[
|
|
206
|
+
6,
|
|
207
|
+
[
|
|
208
|
+
7,
|
|
209
|
+
"std",
|
|
210
|
+
"floor"
|
|
211
|
+
],
|
|
212
|
+
["ty"]
|
|
213
|
+
]
|
|
214
|
+
],
|
|
215
|
+
[
|
|
216
|
+
13,
|
|
217
|
+
"fx",
|
|
218
|
+
[
|
|
219
|
+
1,
|
|
220
|
+
"tx",
|
|
221
|
+
"-",
|
|
222
|
+
"pxf"
|
|
223
|
+
]
|
|
224
|
+
],
|
|
225
|
+
[
|
|
226
|
+
13,
|
|
227
|
+
"fy",
|
|
228
|
+
[
|
|
229
|
+
1,
|
|
230
|
+
"ty",
|
|
231
|
+
"-",
|
|
232
|
+
"pyf"
|
|
233
|
+
]
|
|
234
|
+
],
|
|
235
|
+
[
|
|
236
|
+
13,
|
|
237
|
+
"ofx",
|
|
238
|
+
[
|
|
239
|
+
1,
|
|
240
|
+
[5, "1"],
|
|
241
|
+
"-",
|
|
242
|
+
"fx"
|
|
243
|
+
]
|
|
244
|
+
],
|
|
245
|
+
[
|
|
246
|
+
13,
|
|
247
|
+
"wx0",
|
|
248
|
+
[
|
|
249
|
+
1,
|
|
250
|
+
[
|
|
251
|
+
1,
|
|
252
|
+
[
|
|
253
|
+
1,
|
|
254
|
+
"ofx",
|
|
255
|
+
"*",
|
|
256
|
+
"ofx"
|
|
257
|
+
],
|
|
258
|
+
"*",
|
|
259
|
+
"ofx"
|
|
260
|
+
],
|
|
261
|
+
"*",
|
|
262
|
+
[5, "0.16666667"]
|
|
263
|
+
]
|
|
264
|
+
],
|
|
265
|
+
[
|
|
266
|
+
13,
|
|
267
|
+
"wx1",
|
|
268
|
+
[
|
|
269
|
+
1,
|
|
270
|
+
[
|
|
271
|
+
1,
|
|
272
|
+
[
|
|
273
|
+
1,
|
|
274
|
+
[
|
|
275
|
+
1,
|
|
276
|
+
[
|
|
277
|
+
1,
|
|
278
|
+
"fx",
|
|
279
|
+
"*",
|
|
280
|
+
"fx"
|
|
281
|
+
],
|
|
282
|
+
"*",
|
|
283
|
+
"fx"
|
|
284
|
+
],
|
|
285
|
+
"*",
|
|
286
|
+
[5, "0.5"]
|
|
287
|
+
],
|
|
288
|
+
"-",
|
|
289
|
+
[
|
|
290
|
+
1,
|
|
291
|
+
"fx",
|
|
292
|
+
"*",
|
|
293
|
+
"fx"
|
|
294
|
+
]
|
|
295
|
+
],
|
|
296
|
+
"+",
|
|
297
|
+
[5, "0.66666667"]
|
|
298
|
+
]
|
|
299
|
+
],
|
|
300
|
+
[
|
|
301
|
+
13,
|
|
302
|
+
"wx3",
|
|
303
|
+
[
|
|
304
|
+
1,
|
|
305
|
+
[
|
|
306
|
+
1,
|
|
307
|
+
[
|
|
308
|
+
1,
|
|
309
|
+
"fx",
|
|
310
|
+
"*",
|
|
311
|
+
"fx"
|
|
312
|
+
],
|
|
313
|
+
"*",
|
|
314
|
+
"fx"
|
|
315
|
+
],
|
|
316
|
+
"*",
|
|
317
|
+
[5, "0.16666667"]
|
|
318
|
+
]
|
|
319
|
+
],
|
|
320
|
+
[
|
|
321
|
+
13,
|
|
322
|
+
"wx2",
|
|
323
|
+
[
|
|
324
|
+
1,
|
|
325
|
+
[
|
|
326
|
+
1,
|
|
327
|
+
[
|
|
328
|
+
1,
|
|
329
|
+
[5, "1"],
|
|
330
|
+
"-",
|
|
331
|
+
"wx0"
|
|
332
|
+
],
|
|
333
|
+
"-",
|
|
334
|
+
"wx1"
|
|
335
|
+
],
|
|
336
|
+
"-",
|
|
337
|
+
"wx3"
|
|
338
|
+
]
|
|
339
|
+
],
|
|
340
|
+
[
|
|
341
|
+
13,
|
|
342
|
+
"ofy",
|
|
343
|
+
[
|
|
344
|
+
1,
|
|
345
|
+
[5, "1"],
|
|
346
|
+
"-",
|
|
347
|
+
"fy"
|
|
348
|
+
]
|
|
349
|
+
],
|
|
350
|
+
[
|
|
351
|
+
13,
|
|
352
|
+
"wy0",
|
|
353
|
+
[
|
|
354
|
+
1,
|
|
355
|
+
[
|
|
356
|
+
1,
|
|
357
|
+
[
|
|
358
|
+
1,
|
|
359
|
+
"ofy",
|
|
360
|
+
"*",
|
|
361
|
+
"ofy"
|
|
362
|
+
],
|
|
363
|
+
"*",
|
|
364
|
+
"ofy"
|
|
365
|
+
],
|
|
366
|
+
"*",
|
|
367
|
+
[5, "0.16666667"]
|
|
368
|
+
]
|
|
369
|
+
],
|
|
370
|
+
[
|
|
371
|
+
13,
|
|
372
|
+
"wy1",
|
|
373
|
+
[
|
|
374
|
+
1,
|
|
375
|
+
[
|
|
376
|
+
1,
|
|
377
|
+
[
|
|
378
|
+
1,
|
|
379
|
+
[
|
|
380
|
+
1,
|
|
381
|
+
[
|
|
382
|
+
1,
|
|
383
|
+
"fy",
|
|
384
|
+
"*",
|
|
385
|
+
"fy"
|
|
386
|
+
],
|
|
387
|
+
"*",
|
|
388
|
+
"fy"
|
|
389
|
+
],
|
|
390
|
+
"*",
|
|
391
|
+
[5, "0.5"]
|
|
392
|
+
],
|
|
393
|
+
"-",
|
|
394
|
+
[
|
|
395
|
+
1,
|
|
396
|
+
"fy",
|
|
397
|
+
"*",
|
|
398
|
+
"fy"
|
|
399
|
+
]
|
|
400
|
+
],
|
|
401
|
+
"+",
|
|
402
|
+
[5, "0.66666667"]
|
|
403
|
+
]
|
|
404
|
+
],
|
|
405
|
+
[
|
|
406
|
+
13,
|
|
407
|
+
"wy3",
|
|
408
|
+
[
|
|
409
|
+
1,
|
|
410
|
+
[
|
|
411
|
+
1,
|
|
412
|
+
[
|
|
413
|
+
1,
|
|
414
|
+
"fy",
|
|
415
|
+
"*",
|
|
416
|
+
"fy"
|
|
417
|
+
],
|
|
418
|
+
"*",
|
|
419
|
+
"fy"
|
|
420
|
+
],
|
|
421
|
+
"*",
|
|
422
|
+
[5, "0.16666667"]
|
|
423
|
+
]
|
|
424
|
+
],
|
|
425
|
+
[
|
|
426
|
+
13,
|
|
427
|
+
"wy2",
|
|
428
|
+
[
|
|
429
|
+
1,
|
|
430
|
+
[
|
|
431
|
+
1,
|
|
432
|
+
[
|
|
433
|
+
1,
|
|
434
|
+
[5, "1"],
|
|
435
|
+
"-",
|
|
436
|
+
"wy0"
|
|
437
|
+
],
|
|
438
|
+
"-",
|
|
439
|
+
"wy1"
|
|
440
|
+
],
|
|
441
|
+
"-",
|
|
442
|
+
"wy3"
|
|
443
|
+
]
|
|
444
|
+
],
|
|
445
|
+
[
|
|
446
|
+
13,
|
|
447
|
+
"g0x",
|
|
448
|
+
[
|
|
449
|
+
1,
|
|
450
|
+
"wx0",
|
|
451
|
+
"+",
|
|
452
|
+
"wx1"
|
|
453
|
+
]
|
|
454
|
+
],
|
|
455
|
+
[
|
|
456
|
+
13,
|
|
457
|
+
"g1x",
|
|
458
|
+
[
|
|
459
|
+
1,
|
|
460
|
+
"wx2",
|
|
461
|
+
"+",
|
|
462
|
+
"wx3"
|
|
463
|
+
]
|
|
464
|
+
],
|
|
465
|
+
[
|
|
466
|
+
13,
|
|
467
|
+
"g0y",
|
|
468
|
+
[
|
|
469
|
+
1,
|
|
470
|
+
"wy0",
|
|
471
|
+
"+",
|
|
472
|
+
"wy1"
|
|
473
|
+
]
|
|
474
|
+
],
|
|
475
|
+
[
|
|
476
|
+
13,
|
|
477
|
+
"g1y",
|
|
478
|
+
[
|
|
479
|
+
1,
|
|
480
|
+
"wy2",
|
|
481
|
+
"+",
|
|
482
|
+
"wy3"
|
|
483
|
+
]
|
|
484
|
+
],
|
|
485
|
+
[
|
|
486
|
+
13,
|
|
487
|
+
"h0x",
|
|
488
|
+
[
|
|
489
|
+
1,
|
|
490
|
+
[
|
|
491
|
+
1,
|
|
492
|
+
"pxf",
|
|
493
|
+
"-",
|
|
494
|
+
[5, "1"]
|
|
495
|
+
],
|
|
496
|
+
"+",
|
|
497
|
+
[
|
|
498
|
+
1,
|
|
499
|
+
"wx1",
|
|
500
|
+
"/",
|
|
501
|
+
"g0x"
|
|
502
|
+
]
|
|
503
|
+
]
|
|
504
|
+
],
|
|
505
|
+
[
|
|
506
|
+
13,
|
|
507
|
+
"h1x",
|
|
508
|
+
[
|
|
509
|
+
1,
|
|
510
|
+
[
|
|
511
|
+
1,
|
|
512
|
+
"pxf",
|
|
513
|
+
"+",
|
|
514
|
+
[5, "1"]
|
|
515
|
+
],
|
|
516
|
+
"+",
|
|
517
|
+
[
|
|
518
|
+
1,
|
|
519
|
+
"wx3",
|
|
520
|
+
"/",
|
|
521
|
+
"g1x"
|
|
522
|
+
]
|
|
523
|
+
]
|
|
524
|
+
],
|
|
525
|
+
[
|
|
526
|
+
13,
|
|
527
|
+
"h0y",
|
|
528
|
+
[
|
|
529
|
+
1,
|
|
530
|
+
[
|
|
531
|
+
1,
|
|
532
|
+
"pyf",
|
|
533
|
+
"-",
|
|
534
|
+
[5, "1"]
|
|
535
|
+
],
|
|
536
|
+
"+",
|
|
537
|
+
[
|
|
538
|
+
1,
|
|
539
|
+
"wy1",
|
|
540
|
+
"/",
|
|
541
|
+
"g0y"
|
|
542
|
+
]
|
|
543
|
+
]
|
|
544
|
+
],
|
|
545
|
+
[
|
|
546
|
+
13,
|
|
547
|
+
"h1y",
|
|
548
|
+
[
|
|
549
|
+
1,
|
|
550
|
+
[
|
|
551
|
+
1,
|
|
552
|
+
"pyf",
|
|
553
|
+
"+",
|
|
554
|
+
[5, "1"]
|
|
555
|
+
],
|
|
556
|
+
"+",
|
|
557
|
+
[
|
|
558
|
+
1,
|
|
559
|
+
"wy3",
|
|
560
|
+
"/",
|
|
561
|
+
"g1y"
|
|
562
|
+
]
|
|
563
|
+
]
|
|
564
|
+
],
|
|
565
|
+
[10, [
|
|
566
|
+
6,
|
|
567
|
+
"PixelThrowBicubicTaps",
|
|
568
|
+
[[104, {
|
|
569
|
+
"uvA": [
|
|
570
|
+
6,
|
|
571
|
+
[
|
|
572
|
+
7,
|
|
573
|
+
"d",
|
|
574
|
+
"vec2f"
|
|
575
|
+
],
|
|
576
|
+
[[
|
|
577
|
+
1,
|
|
578
|
+
[
|
|
579
|
+
1,
|
|
580
|
+
"h0x",
|
|
581
|
+
"+",
|
|
582
|
+
[5, "0.5"]
|
|
583
|
+
],
|
|
584
|
+
"/",
|
|
585
|
+
"gf"
|
|
586
|
+
], [
|
|
587
|
+
1,
|
|
588
|
+
[
|
|
589
|
+
1,
|
|
590
|
+
"h0y",
|
|
591
|
+
"+",
|
|
592
|
+
[5, "0.5"]
|
|
593
|
+
],
|
|
594
|
+
"/",
|
|
595
|
+
"gf"
|
|
596
|
+
]]
|
|
597
|
+
],
|
|
598
|
+
"uvB": [
|
|
599
|
+
6,
|
|
600
|
+
[
|
|
601
|
+
7,
|
|
602
|
+
"d",
|
|
603
|
+
"vec2f"
|
|
604
|
+
],
|
|
605
|
+
[[
|
|
606
|
+
1,
|
|
607
|
+
[
|
|
608
|
+
1,
|
|
609
|
+
"h1x",
|
|
610
|
+
"+",
|
|
611
|
+
[5, "0.5"]
|
|
612
|
+
],
|
|
613
|
+
"/",
|
|
614
|
+
"gf"
|
|
615
|
+
], [
|
|
616
|
+
1,
|
|
617
|
+
[
|
|
618
|
+
1,
|
|
619
|
+
"h0y",
|
|
620
|
+
"+",
|
|
621
|
+
[5, "0.5"]
|
|
622
|
+
],
|
|
623
|
+
"/",
|
|
624
|
+
"gf"
|
|
625
|
+
]]
|
|
626
|
+
],
|
|
627
|
+
"uvC": [
|
|
628
|
+
6,
|
|
629
|
+
[
|
|
630
|
+
7,
|
|
631
|
+
"d",
|
|
632
|
+
"vec2f"
|
|
633
|
+
],
|
|
634
|
+
[[
|
|
635
|
+
1,
|
|
636
|
+
[
|
|
637
|
+
1,
|
|
638
|
+
"h0x",
|
|
639
|
+
"+",
|
|
640
|
+
[5, "0.5"]
|
|
641
|
+
],
|
|
642
|
+
"/",
|
|
643
|
+
"gf"
|
|
644
|
+
], [
|
|
645
|
+
1,
|
|
646
|
+
[
|
|
647
|
+
1,
|
|
648
|
+
"h1y",
|
|
649
|
+
"+",
|
|
650
|
+
[5, "0.5"]
|
|
651
|
+
],
|
|
652
|
+
"/",
|
|
653
|
+
"gf"
|
|
654
|
+
]]
|
|
655
|
+
],
|
|
656
|
+
"uvD": [
|
|
657
|
+
6,
|
|
658
|
+
[
|
|
659
|
+
7,
|
|
660
|
+
"d",
|
|
661
|
+
"vec2f"
|
|
662
|
+
],
|
|
663
|
+
[[
|
|
664
|
+
1,
|
|
665
|
+
[
|
|
666
|
+
1,
|
|
667
|
+
"h1x",
|
|
668
|
+
"+",
|
|
669
|
+
[5, "0.5"]
|
|
670
|
+
],
|
|
671
|
+
"/",
|
|
672
|
+
"gf"
|
|
673
|
+
], [
|
|
674
|
+
1,
|
|
675
|
+
[
|
|
676
|
+
1,
|
|
677
|
+
"h1y",
|
|
678
|
+
"+",
|
|
679
|
+
[5, "0.5"]
|
|
680
|
+
],
|
|
681
|
+
"/",
|
|
682
|
+
"gf"
|
|
683
|
+
]]
|
|
684
|
+
],
|
|
685
|
+
"w": [
|
|
686
|
+
6,
|
|
687
|
+
[
|
|
688
|
+
7,
|
|
689
|
+
"d",
|
|
690
|
+
"vec4f"
|
|
691
|
+
],
|
|
692
|
+
[
|
|
693
|
+
[
|
|
694
|
+
1,
|
|
695
|
+
"g0x",
|
|
696
|
+
"*",
|
|
697
|
+
"g0y"
|
|
698
|
+
],
|
|
699
|
+
[
|
|
700
|
+
1,
|
|
701
|
+
"g1x",
|
|
702
|
+
"*",
|
|
703
|
+
"g0y"
|
|
704
|
+
],
|
|
705
|
+
[
|
|
706
|
+
1,
|
|
707
|
+
"g0x",
|
|
708
|
+
"*",
|
|
709
|
+
"g1y"
|
|
710
|
+
],
|
|
711
|
+
[
|
|
712
|
+
1,
|
|
713
|
+
"g1x",
|
|
714
|
+
"*",
|
|
715
|
+
"g1y"
|
|
716
|
+
]
|
|
717
|
+
]
|
|
718
|
+
]
|
|
719
|
+
}]]
|
|
720
|
+
]]
|
|
721
|
+
]],
|
|
722
|
+
"externalNames": [
|
|
723
|
+
"d",
|
|
724
|
+
"GRID",
|
|
725
|
+
"std",
|
|
726
|
+
"PixelThrowBicubicTaps"
|
|
727
|
+
]
|
|
728
|
+
},
|
|
729
|
+
externals: () => ({
|
|
730
|
+
d,
|
|
731
|
+
GRID,
|
|
732
|
+
std,
|
|
733
|
+
PixelThrowBicubicTaps
|
|
734
|
+
})
|
|
735
|
+
}) && $.f)({})).$name("pixelThrowBicubicSetup");
|
|
88
736
|
function buildKeyScale(keyMode) {
|
|
89
737
|
return tgpu.fn([d.vec3f, d.f32], d.f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((rgb, keyInfluence) => {
|
|
90
738
|
"use gpu";
|
|
@@ -476,6 +1124,8 @@ const componentDefinition = {
|
|
|
476
1124
|
if (speed > .02) {
|
|
477
1125
|
const r = Math.max(.001, radius);
|
|
478
1126
|
const r2 = r * r;
|
|
1127
|
+
const EDGE = Math.exp(-1);
|
|
1128
|
+
const INV_EDGE = 1 / (1 - EDGE);
|
|
479
1129
|
const minI = Math.max(0, Math.floor((pointer.y - r) * GRID));
|
|
480
1130
|
const maxI = Math.min(GRID - 1, Math.ceil((pointer.y + r) * GRID));
|
|
481
1131
|
const minJ = Math.max(0, Math.floor((pointer.x - r) * GRID));
|
|
@@ -487,7 +1137,7 @@ const componentDefinition = {
|
|
|
487
1137
|
const dy = aspect >= 1 ? cellY - pointer.y : (cellY - pointer.y) / aspect;
|
|
488
1138
|
const distSq = dx * dx + dy * dy;
|
|
489
1139
|
if (distSq > r2) continue;
|
|
490
|
-
const influence = Math.exp(-distSq / r2);
|
|
1140
|
+
const influence = (Math.exp(-distSq / r2) - EDGE) * INV_EDGE;
|
|
491
1141
|
const idx = (i * GRID + j) * 2;
|
|
492
1142
|
temp[idx] += velX * influence * dt * 4;
|
|
493
1143
|
temp[idx + 1] += velY * influence * dt * 4;
|
|
@@ -504,7 +1154,9 @@ const componentDefinition = {
|
|
|
504
1154
|
prevY = pointer.y;
|
|
505
1155
|
});
|
|
506
1156
|
const uv = ctx.uv;
|
|
507
|
-
const
|
|
1157
|
+
const taps = call(pixelThrowBicubicSetup, "pixelThrowBicubicSetup", [uv]);
|
|
1158
|
+
const tapW = taps.member("w");
|
|
1159
|
+
const flowVec = flowKit.sample(taps.member("uvA"), "linearClamp").member("xy").mul(tapW.member("x")).add(flowKit.sample(taps.member("uvB"), "linearClamp").member("xy").mul(tapW.member("y"))).add(flowKit.sample(taps.member("uvC"), "linearClamp").member("xy").mul(tapW.member("z"))).add(flowKit.sample(taps.member("uvD"), "linearClamp").member("xy").mul(tapW.member("w")));
|
|
508
1160
|
const probeUV = call(pixelThrowOffsetUV, "pixelThrowOffsetUV", [
|
|
509
1161
|
uv,
|
|
510
1162
|
flowVec,
|
|
@@ -519,4 +1171,4 @@ const componentDefinition = {
|
|
|
519
1171
|
}
|
|
520
1172
|
};
|
|
521
1173
|
var PixelThrow_default = componentDefinition;
|
|
522
|
-
export {
|
|
1174
|
+
export { pixelThrowBicubicSetup as a, componentDefinition as i, PixelThrow_default as n, pixelThrowOffsetUV as o, buildKeyScale as r, PixelThrowBicubicTaps as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as call, It as vec4, Ot as ZERO, R as std, Wt as unpremultiplyAlpha, n as tgpu, on as d } from "./coords-
|
|
1
|
+
import { At as call, It as vec4, Ot as ZERO, R as std, Wt as unpremultiplyAlpha, n as tgpu, on as d } from "./coords-CWOT0Wqh.js";
|
|
2
2
|
const pixelateSample = tgpu.fn([
|
|
3
3
|
d.vec2f,
|
|
4
4
|
d.f32,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { At as call, Qt as mixColorsVariants, R as std, Zt as mixColorsLinear, gt as mixColorStopsRuntime, n as tgpu, on as d, rt as noise_exports, tt as mxNoiseFloat3 } from "./coords-
|
|
1
|
+
import { At as call, Qt as mixColorsVariants, R as std, Zt as mixColorsLinear, gt as mixColorStopsRuntime, n as tgpu, on as d, rt as noise_exports, tt as mxNoiseFloat3 } from "./coords-CWOT0Wqh.js";
|
|
2
2
|
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-fqzznt4g.js";
|
|
3
|
-
import { m as colorStopsPropConfig, t as animatedTime } from "./porters-
|
|
3
|
+
import { m as colorStopsPropConfig, t as animatedTime } from "./porters-Dg80Yg90.js";
|
|
4
4
|
const plasmaTone = tgpu.fn([
|
|
5
5
|
d.f32,
|
|
6
6
|
d.f32,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { At as call, It as vec4, Pt as floatE, Qt as mixColorsVariants, R as std, T as sdf_exports, Zt as mixColorsLinear, d as sdf3d_exports, et as mxNoiseFloat2, gt as mixColorStopsRuntime, n as tgpu, on as d, rt as noise_exports } from "./coords-
|
|
2
|
-
import { n as glass_exports } from "./glass-
|
|
1
|
+
import { At as call, It as vec4, Pt as floatE, Qt as mixColorsVariants, R as std, T as sdf_exports, Zt as mixColorsLinear, d as sdf3d_exports, et as mxNoiseFloat2, gt as mixColorStopsRuntime, n as tgpu, on as d, rt as noise_exports } from "./coords-CWOT0Wqh.js";
|
|
2
|
+
import { n as glass_exports } from "./glass-hUL2pCYG.js";
|
|
3
3
|
import { a as transformColor, c as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-fqzznt4g.js";
|
|
4
|
-
import { m as colorStopsPropConfig, t as animatedTime } from "./porters-
|
|
4
|
+
import { m as colorStopsPropConfig, t as animatedTime } from "./porters-Dg80Yg90.js";
|
|
5
5
|
import { t as shapeEffectBoundingBoxDeclaration } from "./shapeEffectBounds-BlxxsYMN.js";
|
|
6
6
|
var { sdfSpaceUV, offsetUV } = glass_exports;
|
|
7
7
|
var { createSvgSdfSampler, createAnalyticSdfSampler, driveAnalyticSubProps, ANALYTIC_SDF_EXTRA_FIELDS } = sdf_exports;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as call, Ft as mixExpr, Ot as ZERO, R as std, Wt as unpremultiplyAlpha, bt as applyEdgeHandlingExpr, n as tgpu, on as d, xt as composeEdgeRemapExpr } from "./coords-
|
|
1
|
+
import { At as call, Ft as mixExpr, Ot as ZERO, R as std, Wt as unpremultiplyAlpha, bt as applyEdgeHandlingExpr, n as tgpu, on as d, xt as composeEdgeRemapExpr } from "./coords-CWOT0Wqh.js";
|
|
2
2
|
import { c as transformPosition, s as transformEdges } from "./transformations-fqzznt4g.js";
|
|
3
3
|
var PI = Math.PI;
|
|
4
4
|
var TAU = Math.PI * 2;
|