shaders 3.0.450 → 3.0.452
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-4jt7bNoF.js → AngularBlur-BGPN-q7Q.js} +1 -1
- package/dist/core/{Arc-DXIfbBgd.js → Arc-B3WUGG1Z.js} +2 -2
- package/dist/core/{Ascii-GDof03Ca.js → Ascii-MEJdXy2h.js} +1 -1
- package/dist/core/{Aurora-CS4vewUW.js → Aurora-BAafQuBz.js} +3 -3
- package/dist/core/{BarShift-BtnYLQ0B.js → BarShift-nVtvlHii.js} +2 -2
- package/dist/core/{BarnDoors-Dw9K-amf.js → BarnDoors-D6E5jOl2.js} +1 -1
- package/dist/core/{Beam-D_cyaMjJ.js → Beam-D7IyWHAx.js} +1 -1
- package/dist/core/{Bend-CSs5UIh8.js → Bend-RtDgo8kD.js} +1 -1
- package/dist/core/{Blob-h25zA5WH.js → Blob-DH-MnnS6.js} +2 -2
- package/dist/core/{BlockDissolve-CKN_KvLP.js → BlockDissolve-DIGuzCsR.js} +2 -2
- package/dist/core/{BlockNoise-DhKyd_F7.js → BlockNoise-Drf4_hBO.js} +5 -5
- package/dist/core/{BlueNoise-Auhzq4x5.js → BlueNoise-CEwncn_5.js} +4 -4
- package/dist/core/{Blur-CcxMqYsu.js → Blur-BbEw_oFx.js} +3 -3
- package/dist/core/{Boids-D51U46GF.js → Boids-D0-S7SI7.js} +4 -4
- package/dist/core/{BokehBlur-Cfaqbh3I.js → BokehBlur-CXBx5wog.js} +3 -3
- package/dist/core/{BrickPattern-tASwilX0.js → BrickPattern-BKuDn_RF.js} +2 -2
- package/dist/core/{BrightnessContrast-ZCKqJW7i.js → BrightnessContrast-ph33aPUw.js} +1 -1
- package/dist/core/{BrushedMetal-B6gSVB28.js → BrushedMetal-CDtIZKcg.js} +6 -6
- package/dist/core/{Bulge-dCYtWP4S.js → Bulge-fgRLH3BN.js} +1 -1
- package/dist/core/{CRTScreen-CVY1lOGL.js → CRTScreen-CSRu7VZT.js} +1 -1
- package/dist/core/{CarbonFiber-Do9EONKv.js → CarbonFiber-DXa8yomK.js} +5 -5
- package/dist/core/{Chalkboard-0hyyGnYl.js → Chalkboard-UKLkHrLB.js} +1 -1
- package/dist/core/{ChannelBlur-DcZKCKXi.js → ChannelBlur-Bfl6C2nt.js} +2 -2
- package/dist/core/{CheckerWipe-BIE62tJ1.js → CheckerWipe-DDUBzOJZ.js} +1 -1
- package/dist/core/{Checkerboard-CRnfu63u.js → Checkerboard-CjRqLaQW.js} +1 -1
- package/dist/core/{Chevron-Ld_v4z9T.js → Chevron-Bc0h2Rzv.js} +2 -2
- package/dist/core/{ChromaFlow-CTWeauIr.js → ChromaFlow-wBzMJ-PA.js} +1 -1
- package/dist/core/{ChromaticAberration-CxuOb68m.js → ChromaticAberration--78QtyKl.js} +1 -1
- package/dist/core/{Circle-XP1B5rsN.js → Circle-sKqyx9pq.js} +2 -2
- package/dist/core/{ColorWheel-CFU_OmOW.js → ColorWheel-BLgkdEmc.js} +2 -2
- package/dist/core/{CompressionArtifacts-Bc9xTdQP.js → CompressionArtifacts-C61W9yw2.js} +2 -2
- package/dist/core/{ConcentricSpin-DTJytpAk.js → ConcentricSpin-BA-pPXA5.js} +2 -2
- package/dist/core/{ConicGradient-C-4uDmQj.js → ConicGradient-DD2NOoA2.js} +2 -2
- package/dist/core/{ContourLines-C8p6f-1y.js → ContourLines-rxGkKb2q.js} +1 -1
- package/dist/core/{CornerPin-CB92kX10.js → CornerPin-CHkM91UE.js} +1 -1
- package/dist/core/{Crescent-Dk4nlG8T.js → Crescent-SDicMQui.js} +2 -2
- package/dist/core/{Cross-DsnI1U8g.js → Cross-Bv1j7D12.js} +2 -2
- package/dist/core/{Crystal-CR_sG2y7.js → Crystal-0oIYL_aS.js} +5 -5
- package/dist/core/{CurlNoise-DJ27ih0F.js → CurlNoise-BJCULaf9.js} +5 -5
- package/dist/core/{CursorRipples-CuO3sZga.js → CursorRipples-BLDfv2sS.js} +2 -2
- package/dist/core/{CursorTrail-d4xx4QpM.js → CursorTrail-ByRtE4T-.js} +3 -3
- package/dist/core/{DataMosh-BhvE-2yC.js → DataMosh-zH8BS7dt.js} +2 -2
- package/dist/core/{DiamondGradient-CtOVKrYf.js → DiamondGradient-D6_jgke5.js} +2 -2
- package/dist/core/{DiamondWipe-D-yiQBVj.js → DiamondWipe-CeJJPxX6.js} +1 -1
- package/dist/core/{DiffuseBlur-BDf-Czxz.js → DiffuseBlur-CPniI-42.js} +1 -1
- package/dist/core/{DisplacementMap-B_jf_2lj.js → DisplacementMap-CCnnAPvB.js} +1 -1
- package/dist/core/{Dither-D3P6EJU8.js → Dither-WIfj4N7O.js} +1 -1
- package/dist/core/{DotGrid-BnSVhJlh.js → DotGrid-BhzPWYK4.js} +2 -2
- package/dist/core/{DropShadow-BSKVH3n3.js → DropShadow-D-YFgaHS.js} +1 -1
- package/dist/core/{Duotone-DfjYuK2u.js → Duotone-lXgv9Fip.js} +1 -1
- package/dist/core/{Ellipse-D7_1QKaa.js → Ellipse-B1QfTjTA.js} +2 -2
- package/dist/core/{Emboss-ZiPslqzl.js → Emboss-UmDoGSQF.js} +4 -4
- package/dist/core/{Engraving-DsfkKajz.js → Engraving-CN0OrgUo.js} +2 -2
- package/dist/core/{ErosionNoise-SELArv9H.js → ErosionNoise-Wu1fxJfJ.js} +4 -4
- package/dist/core/{Exposure-A7WlTOti.js → Exposure-B5oEoUk-.js} +1 -1
- package/dist/core/{FallingLines-9PRMb_Ou.js → FallingLines-CsNVa3dc.js} +2 -2
- package/dist/core/{FilmGrain-SXzVDesw.js → FilmGrain-Br5EDq0B.js} +1 -1
- package/dist/core/{FilmStock-RK4fk4m0.js → FilmStock-BzaKrJRG.js} +3 -3
- package/dist/core/{Flip-DjoNWG4v.js → Flip-HRnCpBGd.js} +1 -1
- package/dist/core/{FloatingParticles-D7vUF5g7.js → FloatingParticles-DNGXQrHG.js} +4 -4
- package/dist/core/{FlowField-tHrXhd1b.js → FlowField-rJGiwKMI.js} +3 -3
- package/dist/core/{Flower-BfehbmmG.js → Flower-DGCyfNeJ.js} +2 -2
- package/dist/core/{FlowingGradient-BTKjkx5F.js → FlowingGradient-CD6_NVZB.js} +97 -12
- package/dist/core/{FlutedGlass-uFT7iy_9.js → FlutedGlass-CrKD5b4k.js} +2 -2
- package/dist/core/{Fog-Cu1CMATa.js → Fog-uK8ECyzk.js} +2 -2
- package/dist/core/{Form3D-D0ji-MeC.js → Form3D-DQ7SxWFV.js} +2 -2
- package/dist/core/{FractalNoise-D9HYiOdr.js → FractalNoise-DOU_jooR.js} +4 -4
- package/dist/core/{Frost-DQZZxdTk.js → Frost-BEnyt-CW.js} +6 -6
- package/dist/core/{GaborNoise-D7BP0K4g.js → GaborNoise-CMt5270_.js} +5 -5
- package/dist/core/{Glass-CzCVnGn-.js → Glass-CSJ1vRoj.js} +5 -5
- package/dist/core/{GlassTiles-DJzPPqwz.js → GlassTiles-C3w1jqsb.js} +1 -1
- package/dist/core/{Glitch-D1Dx8__X.js → Glitch-BxP1fWwQ.js} +1 -1
- package/dist/core/{Glow-Bd9_o_Kv.js → Glow-6yyCrCzW.js} +3 -3
- package/dist/core/{Godrays-DRPRWGPm.js → Godrays-DsolPk6B.js} +2 -2
- package/dist/core/{Goo-28A_pNBg.js → Goo-Db0tOvqs.js} +5 -5
- package/dist/core/{GradientMap-D8dv-1AX.js → GradientMap-BfpgWnfm.js} +1 -1
- package/dist/core/{Grayscale-BlVXBVwW.js → Grayscale-DTrRYf14.js} +1 -1
- package/dist/core/{Grid-D9vlHvs1.js → Grid-COJiaxy5.js} +1 -1
- package/dist/core/{GridDistortion-BpqDvqj6.js → GridDistortion-Du7cRxX_.js} +2 -2
- package/dist/core/{Group-bwQnJRec.js → Group-BKumfLn_.js} +1 -1
- package/dist/core/{HTMLInCanvas-gCf64ozE.js → HTMLInCanvas-CtKAkjSy.js} +1 -1
- package/dist/core/{Halftone-B_WouxiP.js → Halftone-CwWlH4Zi.js} +1 -1
- package/dist/core/{Heart-Bmt2TLNz.js → Heart-C-BeqQH8.js} +2 -2
- package/dist/core/{Heatmap-Ruef741_.js → Heatmap-D-61Tysu.js} +6 -6
- package/dist/core/{HexGrid-By9k0YuI.js → HexGrid-BxgXRDm3.js} +1 -1
- package/dist/core/{Hologram-Cf25ONOE.js → Hologram-DIgdhf5F.js} +6 -6
- package/dist/core/{Holographic-C9RzYykt.js → Holographic-BNMw20mj.js} +6 -6
- package/dist/core/{HueShift-V3gQVuIo.js → HueShift-CiG-leUg.js} +1 -1
- package/dist/core/{ImageTexture-DAUR2N5Q.js → ImageTexture-56vkFGyi.js} +2 -2
- package/dist/core/{InkFlow-DlP1gmr4.js → InkFlow-DgS686Pl.js} +2 -2
- package/dist/core/{Invert-K648khvD.js → Invert-QtF0OVwG.js} +1 -1
- package/dist/core/{IrisWipe-Clkd_5CA.js → IrisWipe-BEtEyvcI.js} +1 -1
- package/dist/core/{IsometricCubes-CzfAwpQ5.js → IsometricCubes-C87okilH.js} +1 -1
- package/dist/core/{Kaleidoscope-B9k6HkNn.js → Kaleidoscope-Ue2Atc25.js} +1 -1
- package/dist/core/{KeyFrames-DX6JFhsy.js → KeyFrames-Bb_6EmyV.js} +2 -2
- package/dist/core/LensDistortion-DxhU8nws.js +435 -0
- package/dist/core/{LensFlare-G73cvrIG.js → LensFlare-YXo4zdAn.js} +2 -2
- package/dist/core/{LightEdge-D3i7HUR9.js → LightEdge-BzESg64B.js} +6 -6
- package/dist/core/{LightLeak-B8yGreP-.js → LightLeak-BQKAeM6h.js} +3 -3
- package/dist/core/{LinearBlur-BEzNPe0e.js → LinearBlur-DaAraWV3.js} +1 -1
- package/dist/core/{LinearGradient-XjXyaoii.js → LinearGradient-CL5FnVfT.js} +2 -2
- package/dist/core/{LinearWipe-Doj9aS5n.js → LinearWipe-xR6RSzjC.js} +1 -1
- package/dist/core/{LiquidMetal-CWV_RQip.js → LiquidMetal-BRhwukdo.js} +6 -6
- package/dist/core/{Liquify-DWrgFruC.js → Liquify-p_Gz_FHr.js} +2 -2
- package/dist/core/{MagneticFilings-Co0V07-1.js → MagneticFilings-DOvxWL0a.js} +4 -4
- package/dist/core/{Marble-D13mDBvL.js → Marble-CkYRfCV8.js} +3 -3
- package/dist/core/{Mirror-DvukM_eG.js → Mirror-CxoKC1gR.js} +1 -1
- package/dist/core/{MultiPointGradient-CyK_Ty9a.js → MultiPointGradient-B4qZwcHL.js} +1 -1
- package/dist/core/{Neon-DD8qY6H9.js → Neon-C2QmSiyi.js} +4 -4
- package/dist/core/{NoiseDissolve-CeX3VO8J.js → NoiseDissolve-DaNRO71N.js} +2 -2
- package/dist/core/{ObjectTracker-BWo8H1kh.js → ObjectTracker-e4hHSKMw.js} +2 -2
- package/dist/core/{PagePeel-BL5IeBeD.js → PagePeel-DT6GI9mV.js} +1 -1
- package/dist/core/{Paper-BAq9MqtG.js → Paper-QrPBpeei.js} +2 -2
- package/dist/core/{Parallelogram-DYzFG9ci.js → Parallelogram-C_WrJLLX.js} +2 -2
- package/dist/core/{ParticleField-Bl4uztO7.js → ParticleField-B1nL_L7A.js} +4 -4
- package/dist/core/{ParticleFlow-RPxLP8HC.js → ParticleFlow-w2G9pdt5.js} +4 -4
- package/dist/core/{Particles-BDEX4Fw2.js → Particles-BsxM8Kbc.js} +6 -6
- package/dist/core/{PerlinNoise-BtXlaEd8.js → PerlinNoise-DqZj-I8R.js} +5 -5
- package/dist/core/{Perspective-CdU5nAEn.js → Perspective-BzxylO20.js} +1 -1
- package/dist/core/{PixelSort-C7TX1ClH.js → PixelSort-Dm2iMElk.js} +2 -2
- package/dist/core/{PixelThrow-DpKEZPMK.js → PixelThrow-gRTKhK8X.js} +1 -1
- package/dist/core/{Pixelate-C2OQUtqr.js → Pixelate-B8ZnTAOo.js} +1 -1
- package/dist/core/{Plasma-DLq9HroF.js → Plasma-BEub5fXm.js} +3 -3
- package/dist/core/{Plastic-C2hiOaXw.js → Plastic-DMJ99k56.js} +6 -6
- package/dist/core/{PolarCoordinates-Bumv-Hi3.js → PolarCoordinates-DOhGjR_6.js} +1 -1
- package/dist/core/{Polygon-DOpR58g4.js → Polygon-D0hD4asI.js} +2 -2
- package/dist/core/{Posterize-CVNOkDme.js → Posterize-OvT-UsAO.js} +1 -1
- package/dist/core/{Prism-CCQ1BsBL.js → Prism-DYBxTA6Z.js} +2 -2
- package/dist/core/{ProgressiveBlur-Cprr1XSE.js → ProgressiveBlur-Da5uOM1i.js} +3 -3
- package/dist/core/{RadialGradient-CsmCSySC.js → RadialGradient-o_6P-7Dn.js} +2 -2
- package/dist/core/{RadialWipe-BAnsqol4.js → RadialWipe-gmGpyKWI.js} +1 -1
- package/dist/core/{RandomBars-DdhtxO8o.js → RandomBars-CrDa3Bam.js} +2 -2
- package/dist/core/{ReactionDiffusion-Bih4xEtV.js → ReactionDiffusion-DWTCvJJu.js} +2 -2
- package/dist/core/{RectangularCoordinates-CKKA2oY1.js → RectangularCoordinates-PM_QP9Cg.js} +1 -1
- package/dist/core/{ReflectivePlane-u3Tje37M.js → ReflectivePlane-BpXGIShc.js} +3 -3
- package/dist/core/{Repeater-C-agsqBS.js → Repeater-CE4LJUbK.js} +1 -1
- package/dist/core/{Ring-Cj7bR89h.js → Ring-DObEwgX4.js} +2 -2
- package/dist/core/{RippleWipe-VL1MMd5o.js → RippleWipe-DQNw1oen.js} +1 -1
- package/dist/core/{Ripples-B88TeopS.js → Ripples-DKMqucX3.js} +2 -2
- package/dist/core/{RoundedRect-jn8_QLrT.js → RoundedRect-CFd87T89.js} +2 -2
- package/dist/core/{Saturation-dCNIhHq2.js → Saturation-BA0cEqnb.js} +1 -1
- package/dist/core/{Scratches-Dz_1Ptk0.js → Scratches-CvOYMmEB.js} +5 -5
- package/dist/core/{Sharpness-Bxq4YiRL.js → Sharpness-B25UDMka.js} +1 -1
- package/dist/core/{Shatter-DsuYUr-1.js → Shatter-BSaxWBf3.js} +2 -2
- package/dist/core/{SimplexNoise-CvalBPNF.js → SimplexNoise-X8ctCpRm.js} +4 -4
- package/dist/core/{SineWave-XPK5BsPB.js → SineWave-BZpbJLxE.js} +2 -2
- package/dist/core/{SliceWipe-gSs_VRwf.js → SliceWipe-CgUPHf9K.js} +1 -1
- package/dist/core/{Smoke-kzRXFLW9.js → Smoke-B7xEP6sH.js} +3 -3
- package/dist/core/{SmokeFill-DQZeqiwX.js → SmokeFill-B0nTuWPV.js} +5 -5
- package/dist/core/{SmokeFlow-n23YvKoI.js → SmokeFlow-B0Li2heA.js} +3 -3
- package/dist/core/{Solarize-DINiQSz1.js → Solarize-BFDNOt5j.js} +1 -1
- package/dist/core/{Spherize-BLY2eqBV.js → Spherize-B6SvuqQJ.js} +1 -1
- package/dist/core/{Spiral-CWCmvI3m.js → Spiral-CPZP_vQa.js} +2 -2
- package/dist/core/{Star-9WSeF-vW.js → Star-CcfONMfP.js} +2 -2
- package/dist/core/{Stone-CVO2Ey8i.js → Stone-4agvCnSU.js} +2 -2
- package/dist/core/{Strands-D9Sz1vX9.js → Strands-CmapxVwQ.js} +2 -2
- package/dist/core/{Stretch-DMT2Y6kN.js → Stretch-C1LWL_wK.js} +1 -1
- package/dist/core/{Stripes-DPVbOQkX.js → Stripes-EOLd6RRs.js} +2 -2
- package/dist/core/{StudioBackground-5JgYClrr.js → StudioBackground-C7jsxhTF.js} +351 -402
- package/dist/core/{SunBurst-Din5CIAU.js → SunBurst-CW8v2t1A.js} +2 -2
- package/dist/core/{Surface3D-CW2ApEgt.js → Surface3D-GduOaT4l.js} +3 -3
- package/dist/core/{Swirl-DrchXPfh.js → Swirl-DOWMWPUy.js} +2 -2
- package/dist/core/{Teardrop-CDt_XA4d.js → Teardrop-D4g6UQ84.js} +2 -2
- package/dist/core/{Text-o_dubJeo.js → Text-BcmS8Qpt.js} +2 -2
- package/dist/core/{ThinFilm-d7IlUY62.js → ThinFilm-CA62fdTo.js} +4 -4
- package/dist/core/{TiltShift-DJVcMb_M.js → TiltShift-CYsneEnY.js} +3 -3
- package/dist/core/{TimeTrail-D1Gir7BK.js → TimeTrail-UGRKixHj.js} +2 -2
- package/dist/core/{Tint-Cak_PyOJ.js → Tint-DjGTug2D.js} +1 -1
- package/dist/core/{Trapezoid-DnFhlKCD.js → Trapezoid-bgyR835g.js} +2 -2
- package/dist/core/{TriangularGrid-BE9CgVlb.js → TriangularGrid-CUSkwEhh.js} +2 -2
- package/dist/core/{Tritone-mqU9b4YZ.js → Tritone-0AbzRJ53.js} +1 -1
- package/dist/core/{Truchet-yLdaw6z4.js → Truchet-C3rl-XiI.js} +1 -1
- package/dist/core/{Twirl-SA6uh8pI.js → Twirl-CPZBpUkY.js} +1 -1
- package/dist/core/{VHS-Ch-bVeit.js → VHS-BIeq0vbY.js} +1 -1
- package/dist/core/{VenetianBlinds-CboEoPIZ.js → VenetianBlinds-sWQYWM0-.js} +1 -1
- package/dist/core/{Vesica-DmJWzk7E.js → Vesica-CG1x-_aG.js} +2 -2
- package/dist/core/{Vibrance-7rW_G3qT.js → Vibrance-gTtCSaNa.js} +1 -1
- package/dist/core/{VideoTexture-Ctk5_1F8.js → VideoTexture-DqfCv_YE.js} +1 -1
- package/dist/core/{Vignette-DXtlR5LT.js → Vignette-y7R3ujxN.js} +1 -1
- package/dist/core/{Voronoi-B0ZrQ6QO.js → Voronoi--B90OaVd.js} +2 -2
- package/dist/core/{Water-DfwGqSnM.js → Water-BvymB3Av.js} +6 -6
- package/dist/core/{Watercolor-BAShYSu7.js → Watercolor-C7vDF39A.js} +2 -2
- package/dist/core/{WaveDistortion-Cj4QBBKm.js → WaveDistortion-DMfhW-zm.js} +2 -2
- package/dist/core/{WaveletNoise-DYiU_ziD.js → WaveletNoise-CqnpQKOm.js} +5 -5
- package/dist/core/{Weave-DVefdB9i.js → Weave-CcYi9PzL.js} +1 -1
- package/dist/core/{WebcamTexture-BO9jNxcP.js → WebcamTexture-C_tF_65y.js} +2 -2
- package/dist/core/{Wool-D304TmpD.js → Wool-CpI-Xd6P.js} +2 -2
- package/dist/core/{WorleyNoise-B5FBTklZ.js → WorleyNoise-DqYFie3m.js} +2 -2
- package/dist/core/{ZoomBlur-DxySopLs.js → ZoomBlur-CSFf3Q4x.js} +1 -1
- package/dist/core/{agents-c-JjGH1b.js → agents-BuYW06Wk.js} +1 -1
- package/dist/core/{blur-DKmdsW6d.js → blur-BAqURXkj.js} +3 -3
- package/dist/core/{compute-BoeIXi0l.js → compute-DYJOCqJI.js} +1 -1
- package/dist/core/{edges-BZUKQxSE.js → edges-Dm0I-Ud7.js} +10 -10
- package/dist/core/{glass-BVqgjSPg.js → glass-ClmiwTb0.js} +8 -8
- package/dist/core/gpu/composer.d.ts +1 -0
- package/dist/core/gpu/composer.d.ts.map +1 -1
- package/dist/core/gpu/index.d.ts.map +1 -1
- package/dist/core/gpu/kit/blur.d.ts +7 -7
- package/dist/core/gpu/kit/blur.d.ts.map +1 -1
- package/dist/core/gpu/kit/effects/glass.d.ts.map +1 -1
- package/dist/core/gpu/porters.d.ts +1 -1
- package/dist/core/gpu/porters.d.ts.map +1 -1
- package/dist/core/index.js +215 -204
- package/dist/core/{media-Ds6MRfGR.js → media-_wFh8vJm.js} +1 -1
- package/dist/core/{noise-Cq0KUOSC.js → noise-C_ZfgxTN.js} +1 -1
- package/dist/core/{noiseColor-CQyzqpVZ.js → noiseColor-88y7I7KI.js} +2 -2
- package/dist/core/{noiseColor-DjCUZ_8u.js → noiseColor-Buljb-6r.js} +1 -1
- package/dist/core/{noiseStylize-fKVcJbGK.js → noiseStylize-7YW6DiP4.js} +2 -2
- package/dist/core/{porters-DogLzpKT.js → porters-DnWlc17D.js} +1 -1
- package/dist/core/presetRenderer.d.ts.map +1 -1
- package/dist/core/registry.js +205 -204
- package/dist/core/{sdf-o99ONcMJ.js → sdf-B5E-Vv1j.js} +1 -1
- package/dist/core/shaderRegistry-DwraFv9_.js +427 -0
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/AngularBlur/index.js +4 -4
- package/dist/core/shaders/Arc/index.js +5 -5
- package/dist/core/shaders/Ascii/index.js +4 -4
- package/dist/core/shaders/Aurora/index.js +5 -5
- package/dist/core/shaders/BarShift/index.js +4 -4
- package/dist/core/shaders/BarnDoors/index.js +4 -4
- package/dist/core/shaders/Beam/index.js +4 -4
- package/dist/core/shaders/Bend/index.js +4 -4
- package/dist/core/shaders/Blob/index.js +4 -4
- package/dist/core/shaders/BlockDissolve/index.js +5 -5
- package/dist/core/shaders/BlockNoise/index.js +7 -7
- package/dist/core/shaders/BlueNoise/index.js +7 -7
- package/dist/core/shaders/Blur/index.js +5 -5
- package/dist/core/shaders/Boids/index.js +6 -6
- package/dist/core/shaders/BokehBlur/index.js +5 -5
- package/dist/core/shaders/BrickPattern/index.js +4 -4
- package/dist/core/shaders/BrightnessContrast/index.js +4 -4
- package/dist/core/shaders/BrushedMetal/index.js +8 -8
- package/dist/core/shaders/Bulge/index.js +4 -4
- package/dist/core/shaders/CRTScreen/index.js +4 -4
- package/dist/core/shaders/CarbonFiber/index.js +8 -8
- package/dist/core/shaders/Chalkboard/index.js +4 -4
- package/dist/core/shaders/ChannelBlur/index.js +5 -5
- package/dist/core/shaders/CheckerWipe/index.js +4 -4
- package/dist/core/shaders/Checkerboard/index.js +4 -4
- package/dist/core/shaders/Chevron/index.js +4 -4
- package/dist/core/shaders/ChromaFlow/index.js +4 -4
- package/dist/core/shaders/ChromaticAberration/index.js +4 -4
- package/dist/core/shaders/Circle/index.js +5 -5
- package/dist/core/shaders/ColorWheel/index.js +4 -4
- package/dist/core/shaders/CompressionArtifacts/index.js +4 -4
- package/dist/core/shaders/ConcentricSpin/index.js +4 -4
- package/dist/core/shaders/ConicGradient/index.js +4 -4
- package/dist/core/shaders/ContourLines/index.js +4 -4
- package/dist/core/shaders/CornerPin/index.js +4 -4
- package/dist/core/shaders/Crescent/index.js +5 -5
- package/dist/core/shaders/Cross/index.js +5 -5
- package/dist/core/shaders/Crystal/index.js +8 -8
- package/dist/core/shaders/CurlNoise/index.js +7 -7
- package/dist/core/shaders/CursorRipples/index.js +4 -4
- package/dist/core/shaders/CursorTrail/index.js +4 -4
- package/dist/core/shaders/DataMosh/index.js +4 -4
- package/dist/core/shaders/DiamondGradient/index.js +4 -4
- package/dist/core/shaders/DiamondWipe/index.js +4 -4
- package/dist/core/shaders/DiffuseBlur/index.js +4 -4
- package/dist/core/shaders/DisplacementMap/index.js +4 -4
- package/dist/core/shaders/Dither/index.js +4 -4
- package/dist/core/shaders/DotGrid/index.js +4 -4
- package/dist/core/shaders/DropShadow/index.js +4 -4
- package/dist/core/shaders/Duotone/index.js +4 -4
- package/dist/core/shaders/Ellipse/index.js +5 -5
- package/dist/core/shaders/Emboss/index.js +7 -7
- package/dist/core/shaders/Engraving/index.js +5 -5
- package/dist/core/shaders/ErosionNoise/index.js +7 -7
- package/dist/core/shaders/Exposure/index.js +4 -4
- package/dist/core/shaders/FallingLines/index.js +4 -4
- package/dist/core/shaders/FilmGrain/index.js +4 -4
- package/dist/core/shaders/FilmStock/index.js +5 -5
- package/dist/core/shaders/Flip/index.js +4 -4
- package/dist/core/shaders/FloatingParticles/index.js +6 -6
- package/dist/core/shaders/FlowField/index.js +5 -5
- package/dist/core/shaders/Flower/index.js +5 -5
- package/dist/core/shaders/FlowingGradient/index.d.ts.map +1 -1
- package/dist/core/shaders/FlowingGradient/index.js +5 -5
- package/dist/core/shaders/FlutedGlass/index.js +4 -4
- package/dist/core/shaders/Fog/index.js +4 -4
- package/dist/core/shaders/Form3D/index.js +4 -4
- package/dist/core/shaders/FractalNoise/index.js +6 -6
- package/dist/core/shaders/Frost/index.js +8 -8
- package/dist/core/shaders/GaborNoise/index.js +7 -7
- package/dist/core/shaders/Glass/index.js +8 -8
- package/dist/core/shaders/GlassTiles/index.js +4 -4
- package/dist/core/shaders/Glitch/index.js +4 -4
- package/dist/core/shaders/Glow/index.js +5 -5
- package/dist/core/shaders/Godrays/index.js +4 -4
- package/dist/core/shaders/Goo/index.js +7 -7
- package/dist/core/shaders/GradientMap/index.js +4 -4
- package/dist/core/shaders/Grayscale/index.js +4 -4
- package/dist/core/shaders/Grid/index.js +4 -4
- package/dist/core/shaders/GridDistortion/index.js +4 -4
- package/dist/core/shaders/Group/index.js +4 -4
- package/dist/core/shaders/HTMLInCanvas/index.js +4 -4
- package/dist/core/shaders/Halftone/index.js +4 -4
- package/dist/core/shaders/Heart/index.js +5 -5
- package/dist/core/shaders/Heatmap/index.js +8 -8
- package/dist/core/shaders/HexGrid/index.js +4 -4
- package/dist/core/shaders/Hologram/index.js +8 -8
- package/dist/core/shaders/Holographic/index.js +8 -8
- package/dist/core/shaders/HueShift/index.js +4 -4
- package/dist/core/shaders/ImageTexture/index.js +5 -5
- package/dist/core/shaders/InkFlow/index.js +4 -4
- package/dist/core/shaders/Invert/index.js +4 -4
- package/dist/core/shaders/IrisWipe/index.js +4 -4
- package/dist/core/shaders/IsometricCubes/index.js +4 -4
- package/dist/core/shaders/Kaleidoscope/index.js +4 -4
- package/dist/core/shaders/KeyFrames/index.js +4 -4
- package/dist/core/shaders/LensDistortion/index.d.ts +123 -0
- package/dist/core/shaders/LensDistortion/index.d.ts.map +1 -0
- package/dist/core/shaders/LensDistortion/index.js +8 -0
- package/dist/core/shaders/LensFlare/index.js +4 -4
- package/dist/core/shaders/LightEdge/index.js +8 -8
- package/dist/core/shaders/LightLeak/index.js +5 -5
- package/dist/core/shaders/LinearBlur/index.js +4 -4
- package/dist/core/shaders/LinearGradient/index.js +4 -4
- package/dist/core/shaders/LinearWipe/index.js +4 -4
- package/dist/core/shaders/LiquidMetal/index.js +8 -8
- package/dist/core/shaders/Liquify/index.js +4 -4
- package/dist/core/shaders/MagneticFilings/index.js +6 -6
- package/dist/core/shaders/Marble/index.js +5 -5
- package/dist/core/shaders/Mirror/index.js +4 -4
- package/dist/core/shaders/MultiPointGradient/index.js +4 -4
- package/dist/core/shaders/Neon/index.js +6 -6
- package/dist/core/shaders/NoiseDissolve/index.js +5 -5
- package/dist/core/shaders/ObjectTracker/index.js +5 -5
- package/dist/core/shaders/PagePeel/index.js +4 -4
- package/dist/core/shaders/Paper/index.js +5 -5
- package/dist/core/shaders/Parallelogram/index.js +5 -5
- package/dist/core/shaders/ParticleField/index.js +6 -6
- package/dist/core/shaders/ParticleFlow/index.js +6 -6
- package/dist/core/shaders/Particles/index.js +8 -8
- package/dist/core/shaders/PerlinNoise/index.js +7 -7
- package/dist/core/shaders/Perspective/index.js +4 -4
- package/dist/core/shaders/PixelSort/index.js +4 -4
- package/dist/core/shaders/PixelThrow/index.js +4 -4
- package/dist/core/shaders/Pixelate/index.js +4 -4
- package/dist/core/shaders/Plasma/index.js +5 -5
- package/dist/core/shaders/Plastic/index.js +8 -8
- package/dist/core/shaders/PolarCoordinates/index.js +4 -4
- package/dist/core/shaders/Polygon/index.js +5 -5
- package/dist/core/shaders/Posterize/index.js +4 -4
- package/dist/core/shaders/Prism/index.js +4 -4
- package/dist/core/shaders/ProgressiveBlur/index.js +5 -5
- package/dist/core/shaders/RadialGradient/index.js +4 -4
- package/dist/core/shaders/RadialWipe/index.js +4 -4
- package/dist/core/shaders/RandomBars/index.js +5 -5
- package/dist/core/shaders/ReactionDiffusion/index.js +4 -4
- package/dist/core/shaders/RectangularCoordinates/index.js +4 -4
- package/dist/core/shaders/ReflectivePlane/index.js +5 -5
- package/dist/core/shaders/Repeater/index.js +4 -4
- package/dist/core/shaders/Ring/index.js +5 -5
- package/dist/core/shaders/RippleWipe/index.js +4 -4
- package/dist/core/shaders/Ripples/index.js +4 -4
- package/dist/core/shaders/RoundedRect/index.js +5 -5
- package/dist/core/shaders/Saturation/index.js +4 -4
- package/dist/core/shaders/Scratches/index.js +7 -7
- package/dist/core/shaders/Sharpness/index.js +4 -4
- package/dist/core/shaders/Shatter/index.js +4 -4
- package/dist/core/shaders/SimplexNoise/index.js +6 -6
- package/dist/core/shaders/SineWave/index.js +4 -4
- package/dist/core/shaders/SliceWipe/index.js +4 -4
- package/dist/core/shaders/Smoke/index.js +4 -4
- package/dist/core/shaders/SmokeFill/index.js +7 -7
- package/dist/core/shaders/SmokeFlow/index.js +4 -4
- package/dist/core/shaders/Solarize/index.js +4 -4
- package/dist/core/shaders/SolidColor/index.js +1 -1
- package/dist/core/shaders/Spherize/index.js +4 -4
- package/dist/core/shaders/Spiral/index.js +4 -4
- package/dist/core/shaders/Star/index.js +5 -5
- package/dist/core/shaders/Stone/index.js +4 -4
- package/dist/core/shaders/Strands/index.js +4 -4
- package/dist/core/shaders/Stretch/index.js +4 -4
- package/dist/core/shaders/Stripes/index.js +4 -4
- package/dist/core/shaders/StudioBackground/index.d.ts +1 -1
- package/dist/core/shaders/StudioBackground/index.d.ts.map +1 -1
- package/dist/core/shaders/StudioBackground/index.js +4 -4
- package/dist/core/shaders/SunBurst/index.js +4 -4
- package/dist/core/shaders/Surface3D/index.js +5 -5
- package/dist/core/shaders/Swirl/index.js +4 -4
- package/dist/core/shaders/Teardrop/index.js +5 -5
- package/dist/core/shaders/Text/index.js +5 -5
- package/dist/core/shaders/ThinFilm/index.js +6 -6
- package/dist/core/shaders/TiltShift/index.js +5 -5
- package/dist/core/shaders/TimeTrail/index.js +4 -4
- package/dist/core/shaders/Tint/index.js +4 -4
- package/dist/core/shaders/Trapezoid/index.js +5 -5
- package/dist/core/shaders/TriangularGrid/index.js +4 -4
- package/dist/core/shaders/Tritone/index.js +4 -4
- package/dist/core/shaders/Truchet/index.js +4 -4
- package/dist/core/shaders/Twirl/index.js +4 -4
- package/dist/core/shaders/VHS/index.js +4 -4
- package/dist/core/shaders/VenetianBlinds/index.js +4 -4
- package/dist/core/shaders/Vesica/index.js +5 -5
- package/dist/core/shaders/Vibrance/index.js +4 -4
- package/dist/core/shaders/VideoTexture/index.js +4 -4
- package/dist/core/shaders/Vignette/index.js +4 -4
- package/dist/core/shaders/Voronoi/index.js +4 -4
- package/dist/core/shaders/Water/index.js +8 -8
- package/dist/core/shaders/Watercolor/index.js +5 -5
- package/dist/core/shaders/WaveDistortion/index.js +4 -4
- package/dist/core/shaders/WaveletNoise/index.js +7 -7
- package/dist/core/shaders/Weave/index.js +4 -4
- package/dist/core/shaders/WebcamTexture/index.js +5 -5
- package/dist/core/shaders/Wool/index.js +4 -4
- package/dist/core/shaders/WorleyNoise/index.js +4 -4
- package/dist/core/shaders/ZoomBlur/index.js +4 -4
- package/dist/core/{shapeEffectBounds-Dg4GQ5vW.js → shapeEffectBounds-CjOvQ3n3.js} +13 -9
- package/dist/core/utilities/shapeEffectBounds.d.ts.map +1 -1
- package/dist/js/bundle.js +171 -171
- package/dist/js/createShader.js +1 -1
- package/dist/js/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/js/utils/generatePresetCode.js +27 -0
- package/dist/react/LensDistortion.js +226 -0
- package/dist/react/Preview.js +1 -0
- package/dist/react/Shader.js +1 -1
- package/dist/react/bundle.js +148 -148
- package/dist/react/components/LensDistortion.d.ts +54 -0
- package/dist/react/components/LensDistortion.d.ts.map +1 -0
- package/dist/react/engine/Preview.d.ts.map +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +2 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +27 -0
- package/dist/registry.js +763 -125
- package/dist/solid/components/LensDistortion.d.ts +51 -0
- package/dist/solid/components/LensDistortion.d.ts.map +1 -0
- package/dist/solid/components/LensDistortion.js +232 -0
- package/dist/solid/engine/Preview.d.ts.map +1 -1
- package/dist/solid/engine/Preview.js +193 -191
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +194 -192
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +27 -0
- package/dist/svelte/components/LensDistortion.svelte.d.ts +41 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +2751 -2544
- package/dist/svelte/source/components/LensDistortion.svelte +365 -0
- package/dist/svelte/source/engine/Preview.svelte +2 -0
- package/dist/svelte/source/index.js +1 -0
- package/dist/svelte/utils/generatePresetCode.js +27 -0
- package/dist/vue/LensDistortion.js +3 -0
- package/dist/vue/LensDistortion.vue_vue_type_script_setup_true_lang.js +244 -0
- package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/vue/components/LensDistortion.vue.d.ts +76 -0
- package/dist/vue/components/LensDistortion.vue.d.ts.map +1 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +2 -1
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +27 -0
- package/package.json +9 -1
- package/dist/core/shaderRegistry-BSrnuqx-.js +0 -425
- /package/dist/core/{SolidColor-Cu_9b_my.js → SolidColor-dYxjV0YF.js} +0 -0
- /package/dist/core/{fonts-v_F1SFl9.js → fonts-DFuXI3Hk.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { At as
|
|
2
|
-
import { S as mixColorStopsRuntime, h as colorStopsPropConfig, t as animatedTime } from "./porters-
|
|
3
|
-
import { p as noise_exports, s as hash12, y as value12 } from "./noise-
|
|
4
|
-
import { h as sdf_exports } from "./sdf-
|
|
5
|
-
import { f as sdf3d_exports, n as shapeEffectBoundingBoxDeclaration, t as resolveShapeType } from "./shapeEffectBounds-
|
|
6
|
-
import { n as glass_exports } from "./glass-
|
|
1
|
+
import { At as min, Bt as smoothstep, Dt as fract, Nt as pow, U as mixColorsLinear, W as mixColorsVariants, Wt as data_exports, an as vec3f, b as vec4, bt as clamp, cn as f32, gt as abs, jt as mix, kt as max, m as call, nn as vec2f, rt as std_exports, sn as vec4f, tt as src_default, wt as exp, xt as cos, zt as sin } from "./edges-Dm0I-Ud7.js";
|
|
2
|
+
import { S as mixColorStopsRuntime, h as colorStopsPropConfig, t as animatedTime } from "./porters-DnWlc17D.js";
|
|
3
|
+
import { p as noise_exports, s as hash12, y as value12 } from "./noise-C_ZfgxTN.js";
|
|
4
|
+
import { h as sdf_exports } from "./sdf-B5E-Vv1j.js";
|
|
5
|
+
import { f as sdf3d_exports, n as shapeEffectBoundingBoxDeclaration, t as resolveShapeType } from "./shapeEffectBounds-CjOvQ3n3.js";
|
|
6
|
+
import { n as glass_exports } from "./glass-ClmiwTb0.js";
|
|
7
7
|
import { a as transformColor, c as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
8
8
|
var { sdfSpaceUV } = glass_exports;
|
|
9
9
|
var { createSvgSdfSampler, createAnalyticSdfSampler, driveAnalyticSubProps, ANALYTIC_SDF_EXTRA_FIELDS } = sdf_exports;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bt as smoothstep, Ct as dot, Dt as fract, Et as floor, Ht as step, Lt as round, U as mixColorsLinear, W as mixColorsVariants, Wt as data_exports, b as vec4, cn as f32, gt as abs, ht as select, kt as max, m as call, nn as vec2f, rt as std_exports, tt as src_default, ut as fwidth, xt as cos, zt as sin } from "./edges-Dm0I-Ud7.js";
|
|
2
2
|
import { a as transformColor, o as transformColorSpace, r as transformAngle, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
3
3
|
var DEG_TO_RAD = Math.PI / 180;
|
|
4
4
|
var SQRT3 = Math.sqrt(3);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { At as
|
|
2
|
-
import { t as animatedTime } from "./porters-
|
|
3
|
-
import { p as noise_exports, u as mxNoiseFloat2 } from "./noise-
|
|
4
|
-
import { h as sdf_exports } from "./sdf-
|
|
5
|
-
import { f as sdf3d_exports, n as shapeEffectBoundingBoxDeclaration, t as resolveShapeType } from "./shapeEffectBounds-
|
|
6
|
-
import { n as glass_exports } from "./glass-
|
|
1
|
+
import { At as min, Bt as smoothstep, Ct as dot, Dt as fract, Mt as normalize, Nt as pow, Wt as data_exports, an as vec3f, b as vec4, bt as clamp, cn as f32, gt as abs, ht as select, jt as mix, kt as max, m as call, nn as vec2f, rt as std_exports, sn as vec4f, tt as src_default, v as floatE, wt as exp, zt as sin } from "./edges-Dm0I-Ud7.js";
|
|
2
|
+
import { t as animatedTime } from "./porters-DnWlc17D.js";
|
|
3
|
+
import { p as noise_exports, u as mxNoiseFloat2 } from "./noise-C_ZfgxTN.js";
|
|
4
|
+
import { h as sdf_exports } from "./sdf-B5E-Vv1j.js";
|
|
5
|
+
import { f as sdf3d_exports, n as shapeEffectBoundingBoxDeclaration, t as resolveShapeType } from "./shapeEffectBounds-CjOvQ3n3.js";
|
|
6
|
+
import { n as glass_exports } from "./glass-ClmiwTb0.js";
|
|
7
7
|
import { a as transformColor, c as transformPosition } from "./transformations-CsPUHppB.js";
|
|
8
8
|
var { sdfSpaceUV, offsetUV } = glass_exports;
|
|
9
9
|
var { createSvgSdfSampler, createAnalyticSdfSampler, driveAnalyticSubProps, ANALYTIC_SDF_EXTRA_FIELDS } = sdf_exports;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as animatedTime } from "./porters-
|
|
3
|
-
import { p as noise_exports, u as mxNoiseFloat2 } from "./noise-
|
|
4
|
-
import { h as sdf_exports } from "./sdf-
|
|
5
|
-
import { f as sdf3d_exports, n as shapeEffectBoundingBoxDeclaration, t as resolveShapeType } from "./shapeEffectBounds-
|
|
6
|
-
import { n as glass_exports } from "./glass-
|
|
1
|
+
import { Bt as smoothstep, Ct as dot, Mt as normalize, Nt as pow, Wt as data_exports, an as vec3f, b as vec4, bt as clamp, cn as f32, ht as select, jt as mix, kt as max, m as call, nn as vec2f, rt as std_exports, sn as vec4f, tt as src_default, v as floatE, xt as cos, zt as sin } from "./edges-Dm0I-Ud7.js";
|
|
2
|
+
import { t as animatedTime } from "./porters-DnWlc17D.js";
|
|
3
|
+
import { p as noise_exports, u as mxNoiseFloat2 } from "./noise-C_ZfgxTN.js";
|
|
4
|
+
import { h as sdf_exports } from "./sdf-B5E-Vv1j.js";
|
|
5
|
+
import { f as sdf3d_exports, n as shapeEffectBoundingBoxDeclaration, t as resolveShapeType } from "./shapeEffectBounds-CjOvQ3n3.js";
|
|
6
|
+
import { n as glass_exports } from "./glass-ClmiwTb0.js";
|
|
7
7
|
import { c as transformPosition } from "./transformations-CsPUHppB.js";
|
|
8
8
|
var { sdfSpaceUV, offsetUV } = glass_exports;
|
|
9
9
|
var { createSvgSdfSampler, createAnalyticSdfSampler, driveAnalyticSubProps, ANALYTIC_SDF_EXTRA_FIELDS } = sdf_exports;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Wt as data_exports, cn as f32, d as ZERO, m as call, rt as std_exports, sn as vec4f, tt as src_default, xt as cos, zt as sin } from "./edges-Dm0I-Ud7.js";
|
|
2
2
|
var DEG_TO_RAD = Math.PI / 180;
|
|
3
3
|
var SQRT3 = 1.7320508075688772;
|
|
4
4
|
const hueShiftColor = src_default.fn([vec4f, f32], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((color, shiftDeg) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as scaleFill, i as scaleCover, n as sampleUV, r as scaleContain, s as scaleScaleDown, t as alphaCutLinear } from "./media-
|
|
1
|
+
import { m as call } from "./edges-Dm0I-Ud7.js";
|
|
2
|
+
import { a as scaleFill, i as scaleCover, n as sampleUV, r as scaleContain, s as scaleScaleDown, t as alphaCutLinear } from "./media-_wFh8vJm.js";
|
|
3
3
|
import { r as registerNaturalSize } from "./naturalSize-B679wTgN.js";
|
|
4
4
|
var OBJECT_FIT_MODES = {
|
|
5
5
|
cover: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as createGuardedCompute, r as createStateBuffer } from "./compute-
|
|
1
|
+
import { $t as struct, Et as floor, Jt as textureStorage2d, K as mixPreconvertedLinear, Kt as arrayOf, R as convertP3ToMixSpaceCPU, Vt as sqrt, Wt as data_exports, an as vec3f, b as vec4, bt as clamp, cn as f32, d as ZERO, gt as abs, ht as select, in as vec2u, jt as mix, kt as max, ln as i32, m as call, q as mixPreconvertedVariants, rt as std_exports, sn as vec4f, st as textureStore, tt as src_default, un as u32, v as floatE, wt as exp } from "./edges-Dm0I-Ud7.js";
|
|
2
|
+
import { n as createGuardedCompute, r as createStateBuffer } from "./compute-DYJOCqJI.js";
|
|
3
3
|
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
4
4
|
var N = 256;
|
|
5
5
|
var COUNT = N * N;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Wt as data_exports, d as ZERO, m as call, sn as vec4f, tt as src_default } from "./edges-Dm0I-Ud7.js";
|
|
2
2
|
const invertColor = src_default.fn([vec4f], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((color) => {
|
|
3
3
|
"use gpu";
|
|
4
4
|
return vec4f(__tsover_sub(1, color.x), __tsover_sub(1, color.y), __tsover_sub(1, color.z), color.w);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bt as smoothstep, Ot as length, Wt as data_exports, cn as f32, d as ZERO, ht as select, kt as max, m as call, nn as vec2f, rt as std_exports, sn as vec4f, tt as src_default } from "./edges-Dm0I-Ud7.js";
|
|
2
2
|
import { c as transformPosition, i as transformBoolean } from "./transformations-CsPUHppB.js";
|
|
3
3
|
const irisWipeMask = src_default.fn([
|
|
4
4
|
vec4f,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as min, Bt as smoothstep, Ct as dot, Dt as fract, Et as floor, Ht as step, Lt as round, U as mixColorsLinear, W as mixColorsVariants, Wt as data_exports, an as vec3f, b as vec4, cn as f32, gt as abs, ht as select, kt as max, m as call, nn as vec2f, rt as std_exports, tt as src_default, ut as fwidth, xt as cos, y as mixExpr, zt as sin } from "./edges-Dm0I-Ud7.js";
|
|
2
2
|
import { a as transformColor, o as transformColorSpace, r as transformAngle, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
3
3
|
var DEG_TO_RAD = Math.PI / 180;
|
|
4
4
|
var SQRT3 = Math.sqrt(3);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Et as floor, Ot as length, P as unpremultiplyAlpha, Wt as data_exports, c as sampleRemappedExpr, cn as f32, d as ZERO, ht as select, m as call, n as composeEdgeRemapExpr, nn as vec2f, rt as std_exports, tt as src_default, vt as atan2, xt as cos, zt as sin } from "./edges-Dm0I-Ud7.js";
|
|
2
2
|
import { c as transformPosition, s as transformEdges } from "./transformations-CsPUHppB.js";
|
|
3
3
|
var DEG_TO_RAD = Math.PI / 180;
|
|
4
4
|
var TAU = Math.PI * 2;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as createGuardedCompute } from "./compute-
|
|
1
|
+
import { $t as struct, At as min, Dt as fract, Et as floor, Jt as textureStorage2d, S as formatFloat, Vt as sqrt, Wt as data_exports, at as textureLoad, bt as clamp, cn as f32, d as ZERO, gt as abs, ht as select, in as vec2u, it as textureDimensions, jt as mix, kt as max, ln as i32, qt as texture2d, rt as std_exports, sn as vec4f, st as textureStore, tt as src_default, un as u32, wt as exp, x as Expr, xt as cos, zt as sin } from "./edges-Dm0I-Ud7.js";
|
|
2
|
+
import { n as createGuardedCompute } from "./compute-DYJOCqJI.js";
|
|
3
3
|
import { a as transformColor } from "./transformations-CsPUHppB.js";
|
|
4
4
|
var MAX_TRACKERS = 64;
|
|
5
5
|
var TRAIL_LEN = 12;
|
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
import { P as unpremultiplyAlpha, S as formatFloat, _ as expr, d as ZERO, m as call, x as Expr } from "./edges-Dm0I-Ud7.js";
|
|
2
|
+
import { t as isMobileGpuViewport } from "./device-BODv_4aH.js";
|
|
3
|
+
import { c as transformPosition, r as transformAngle } from "./transformations-CsPUHppB.js";
|
|
4
|
+
var MAX_SAMPLES = 50;
|
|
5
|
+
var MAX_TAPS = isMobileGpuViewport() ? 24 : MAX_SAMPLES;
|
|
6
|
+
const componentDefinition = {
|
|
7
|
+
name: "LensDistortion",
|
|
8
|
+
boundingBoxDeclaration: { aspectRatio: null },
|
|
9
|
+
category: "Stylize",
|
|
10
|
+
description: "Split content into shifting chromatic layers with barrel or pincushion lens warp. Powered by Paper Shaders.",
|
|
11
|
+
requiresRTT: true,
|
|
12
|
+
requiresChild: true,
|
|
13
|
+
props: {
|
|
14
|
+
center: {
|
|
15
|
+
default: {
|
|
16
|
+
x: .5,
|
|
17
|
+
y: .5
|
|
18
|
+
},
|
|
19
|
+
transform: transformPosition,
|
|
20
|
+
description: "The center point of the lens effect — the focus zone, lens warp, circle crop and swirl all pivot around it",
|
|
21
|
+
ui: {
|
|
22
|
+
type: "position",
|
|
23
|
+
label: "Center",
|
|
24
|
+
group: "Position"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
spread: {
|
|
28
|
+
default: .6,
|
|
29
|
+
description: "Strength of the color split; how far the color layers are pushed apart (0 is off)",
|
|
30
|
+
ui: {
|
|
31
|
+
type: ["range", "map"],
|
|
32
|
+
min: 0,
|
|
33
|
+
max: 1,
|
|
34
|
+
step: .01,
|
|
35
|
+
label: "Spread",
|
|
36
|
+
group: "Spread"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
angle: {
|
|
40
|
+
default: 0,
|
|
41
|
+
transform: transformAngle,
|
|
42
|
+
description: "Direction of the spread in degrees",
|
|
43
|
+
ui: {
|
|
44
|
+
type: ["range", "map"],
|
|
45
|
+
min: 0,
|
|
46
|
+
max: 360,
|
|
47
|
+
step: 1,
|
|
48
|
+
label: "Angle",
|
|
49
|
+
group: "Spread"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
perspective: {
|
|
53
|
+
default: .1,
|
|
54
|
+
description: "Shapes the spread direction from a straight line (0) to a radial burst out from the centre (1)",
|
|
55
|
+
ui: {
|
|
56
|
+
type: ["range", "map"],
|
|
57
|
+
min: 0,
|
|
58
|
+
max: 1,
|
|
59
|
+
step: .01,
|
|
60
|
+
label: "Perspective",
|
|
61
|
+
group: "Spread"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
bias: {
|
|
65
|
+
default: 1,
|
|
66
|
+
description: "Shifts the colors toward one end of the spread; 0 spaces them evenly",
|
|
67
|
+
ui: {
|
|
68
|
+
type: ["range", "map"],
|
|
69
|
+
min: -1,
|
|
70
|
+
max: 1,
|
|
71
|
+
step: .01,
|
|
72
|
+
label: "Bias",
|
|
73
|
+
group: "Spread"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
count: {
|
|
77
|
+
default: 35,
|
|
78
|
+
description: "Number of sampled color layers along the spread; higher is smoother and costlier",
|
|
79
|
+
ui: {
|
|
80
|
+
type: ["range", "map"],
|
|
81
|
+
min: 2,
|
|
82
|
+
max: MAX_SAMPLES,
|
|
83
|
+
step: 1,
|
|
84
|
+
label: "Count",
|
|
85
|
+
group: "Spread"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
dispersion: {
|
|
89
|
+
default: 1,
|
|
90
|
+
description: "Overall amount of color dispersion; 1 gives each layer its own color from the spectrum, 0 keeps the original color",
|
|
91
|
+
ui: {
|
|
92
|
+
type: ["range", "map"],
|
|
93
|
+
min: 0,
|
|
94
|
+
max: 1,
|
|
95
|
+
step: .01,
|
|
96
|
+
label: "Dispersion",
|
|
97
|
+
group: "Dispersion"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
dispersionShift: {
|
|
101
|
+
default: 0,
|
|
102
|
+
description: "Balance of the dispersion between a soft circular zone at the centre and the rest; -1 keeps it in the centre only, 1 at the edges only",
|
|
103
|
+
ui: {
|
|
104
|
+
type: ["range", "map"],
|
|
105
|
+
min: -1,
|
|
106
|
+
max: 1,
|
|
107
|
+
step: .01,
|
|
108
|
+
label: "Shift",
|
|
109
|
+
group: "Dispersion"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
dispersionColor: {
|
|
113
|
+
default: .6,
|
|
114
|
+
description: "Rotates the dispersion colors around the hue wheel, 0 to 1 for a full turn",
|
|
115
|
+
ui: {
|
|
116
|
+
type: ["range", "map"],
|
|
117
|
+
min: 0,
|
|
118
|
+
max: 1,
|
|
119
|
+
step: .01,
|
|
120
|
+
label: "Hue",
|
|
121
|
+
group: "Dispersion"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
focusCenter: {
|
|
125
|
+
default: .8,
|
|
126
|
+
description: "Reduces the spread in a circular zone at the centre; 0 keeps it full to the centre",
|
|
127
|
+
ui: {
|
|
128
|
+
type: ["range", "map"],
|
|
129
|
+
min: 0,
|
|
130
|
+
max: 1,
|
|
131
|
+
step: .01,
|
|
132
|
+
label: "Focus Center",
|
|
133
|
+
group: "Focus"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
focusEdges: {
|
|
137
|
+
default: 1,
|
|
138
|
+
description: "Reduces the spread toward the edges; 1 restores the original image there",
|
|
139
|
+
ui: {
|
|
140
|
+
type: ["range", "map"],
|
|
141
|
+
min: 0,
|
|
142
|
+
max: 1,
|
|
143
|
+
step: .01,
|
|
144
|
+
label: "Focus Edges",
|
|
145
|
+
group: "Focus"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
lensBulge: {
|
|
149
|
+
default: 0,
|
|
150
|
+
description: "Radial lens warp; positive bulges out like a fisheye, negative pinches in like a pincushion",
|
|
151
|
+
ui: {
|
|
152
|
+
type: ["range", "map"],
|
|
153
|
+
min: -1,
|
|
154
|
+
max: 1,
|
|
155
|
+
step: .01,
|
|
156
|
+
label: "Bulge",
|
|
157
|
+
group: "Lens"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
lensCircle: {
|
|
161
|
+
default: 0,
|
|
162
|
+
description: "Squeezes pixels outside the inscribed circle inward so the outline becomes a circle",
|
|
163
|
+
ui: {
|
|
164
|
+
type: ["range", "map"],
|
|
165
|
+
min: 0,
|
|
166
|
+
max: 1,
|
|
167
|
+
step: .01,
|
|
168
|
+
label: "Circle",
|
|
169
|
+
group: "Lens"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
swirl: {
|
|
173
|
+
default: .35,
|
|
174
|
+
description: "Rotates the color layers around the centre by an angle growing along the spread; 0 is off",
|
|
175
|
+
ui: {
|
|
176
|
+
type: ["range", "map"],
|
|
177
|
+
min: -1,
|
|
178
|
+
max: 1,
|
|
179
|
+
step: .01,
|
|
180
|
+
label: "Swirl",
|
|
181
|
+
group: "Lens"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
noise: {
|
|
185
|
+
default: 0,
|
|
186
|
+
description: "Scatters the spread direction with noise; 0 is off",
|
|
187
|
+
ui: {
|
|
188
|
+
type: ["range", "map"],
|
|
189
|
+
min: 0,
|
|
190
|
+
max: 1,
|
|
191
|
+
step: .01,
|
|
192
|
+
label: "Noise",
|
|
193
|
+
group: "Noise"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
noiseFrequency: {
|
|
197
|
+
default: .25,
|
|
198
|
+
description: "Frequency of the direction noise; higher is finer (no effect with noise at 0)",
|
|
199
|
+
ui: {
|
|
200
|
+
type: ["range", "map"],
|
|
201
|
+
min: 0,
|
|
202
|
+
max: 1,
|
|
203
|
+
step: .01,
|
|
204
|
+
label: "Frequency",
|
|
205
|
+
group: "Noise"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
noiseOffset: {
|
|
209
|
+
default: 0,
|
|
210
|
+
description: "Offsets the noise pattern for a different seed (no effect with noise at 0)",
|
|
211
|
+
ui: {
|
|
212
|
+
type: ["range", "map"],
|
|
213
|
+
min: 0,
|
|
214
|
+
max: 1,
|
|
215
|
+
step: .01,
|
|
216
|
+
label: "Seed",
|
|
217
|
+
group: "Noise"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
grainMixer: {
|
|
221
|
+
default: 0,
|
|
222
|
+
description: "Scatters the spread with grain noise, breaking up the edges of the color layers",
|
|
223
|
+
ui: {
|
|
224
|
+
type: ["range", "map"],
|
|
225
|
+
min: 0,
|
|
226
|
+
max: 1,
|
|
227
|
+
step: .01,
|
|
228
|
+
label: "Grain Mixer",
|
|
229
|
+
group: "Grain"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
grainOverlay: {
|
|
233
|
+
default: 0,
|
|
234
|
+
description: "Post-processing black/white grain overlay",
|
|
235
|
+
ui: {
|
|
236
|
+
type: ["range", "map"],
|
|
237
|
+
min: 0,
|
|
238
|
+
max: 1,
|
|
239
|
+
step: .01,
|
|
240
|
+
label: "Grain Overlay",
|
|
241
|
+
group: "Grain"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
fragment: (params) => {
|
|
246
|
+
const { uniforms, childNode, ctx, convertToTexture } = params;
|
|
247
|
+
if (!childNode) return ZERO;
|
|
248
|
+
const texKey = convertToTexture(childNode).key;
|
|
249
|
+
const PI = Math.PI;
|
|
250
|
+
return new Expr((ec) => {
|
|
251
|
+
const U = (name) => uniforms[name]._emit(ec);
|
|
252
|
+
const L = (n) => formatFloat(n);
|
|
253
|
+
const p = ec.freshLocal("lens");
|
|
254
|
+
const stmts = [];
|
|
255
|
+
let noiseIdx = 0;
|
|
256
|
+
const emitValueNoise = (lines, inputExpr, outName) => {
|
|
257
|
+
const n = `${p}_vn${noiseIdx++}`;
|
|
258
|
+
lines.push(`let ${n}_st = ${inputExpr};`);
|
|
259
|
+
lines.push(`let ${n}_fi = floor(${n}_st);`);
|
|
260
|
+
lines.push(`let ${n}_ff = fract(${n}_st);`);
|
|
261
|
+
for (const [k, off] of [
|
|
262
|
+
["a", "vec2f(0.0, 0.0)"],
|
|
263
|
+
["b", "vec2f(1.0, 0.0)"],
|
|
264
|
+
["c", "vec2f(0.0, 1.0)"],
|
|
265
|
+
["d", "vec2f(1.0, 1.0)"]
|
|
266
|
+
]) {
|
|
267
|
+
lines.push(`var ${n}_q${k} = fract((${n}_fi + ${off}) * vec2f(0.3183099, 0.3678794)) + vec2f(0.1);`);
|
|
268
|
+
lines.push(`${n}_q${k} = ${n}_q${k} + vec2f(dot(${n}_q${k}, ${n}_q${k} + vec2f(19.19)));`);
|
|
269
|
+
lines.push(`let ${n}_h${k} = fract(${n}_q${k}.x * ${n}_q${k}.y);`);
|
|
270
|
+
}
|
|
271
|
+
lines.push(`let ${n}_u = ${n}_ff * ${n}_ff * (vec2f(3.0) - 2.0 * ${n}_ff);`);
|
|
272
|
+
lines.push(`let ${outName} = mix(mix(${n}_ha, ${n}_hb, ${n}_u.x), mix(${n}_hc, ${n}_hd, ${n}_u.x), ${n}_u.y);`);
|
|
273
|
+
};
|
|
274
|
+
stmts.push(`let ${p}_uv = ${ctx.uv._emit(ec)};`);
|
|
275
|
+
stmts.push(`let ${p}_aspect = ${ctx.aspect._emit(ec)};`);
|
|
276
|
+
stmts.push(`let ${p}_invAspect = 1.0 / ${p}_aspect;`);
|
|
277
|
+
stmts.push(`let ${p}_inradius = 0.5 * min(${p}_aspect, 1.0);`);
|
|
278
|
+
stmts.push(`let ${p}_outradius = 0.5 * length(vec2f(${p}_aspect, 1.0));`);
|
|
279
|
+
stmts.push(`let ${p}_spread = ${U("spread")};`);
|
|
280
|
+
stmts.push(`let ${p}_reach = 0.7 * pow(${p}_spread, 1.3 + 2.7 * ${p}_spread);`);
|
|
281
|
+
stmts.push(`let ${p}_centerU = ${U("center")};`);
|
|
282
|
+
stmts.push(`let ${p}_c = vec2f(${p}_centerU.x, 1.0 - ${p}_centerU.y);`);
|
|
283
|
+
stmts.push(`let ${p}_fromCenter = vec2f((${p}_uv.x - ${p}_c.x) * ${p}_aspect, ${p}_uv.y - ${p}_c.y);`);
|
|
284
|
+
stmts.push(`let ${p}_radius = length(${p}_fromCenter);`);
|
|
285
|
+
stmts.push(`let ${p}_lensBulge = ${U("lensBulge")};`);
|
|
286
|
+
stmts.push(`let ${p}_lensCircle = ${U("lensCircle")};`);
|
|
287
|
+
stmts.push(`var ${p}_bulgeFade = 1.0;`);
|
|
288
|
+
stmts.push(`var ${p}_warped = ${p}_fromCenter;`);
|
|
289
|
+
stmts.push(`let ${p}_rSafe = max(${p}_radius, 1e-5);`);
|
|
290
|
+
stmts.push(`if (${p}_lensBulge != 0.0) {`);
|
|
291
|
+
stmts.push(` let ${p}_rn = ${p}_rSafe / ${p}_inradius;`);
|
|
292
|
+
stmts.push(` let ${p}_bulgeAmt = abs(${p}_lensBulge) * select(1.2, 1.4, ${p}_lensBulge > 0.0);`);
|
|
293
|
+
stmts.push(` ${p}_bulgeFade = select(1.0, 1.0 - smoothstep(1.45, 1.53, ${p}_rn * ${p}_bulgeAmt), ${p}_lensBulge > 0.0);`);
|
|
294
|
+
stmts.push(` let ${p}_mapPos = tan(min(${p}_rn * ${p}_bulgeAmt, 1.53)) / tan(${p}_bulgeAmt);`);
|
|
295
|
+
stmts.push(` let ${p}_mapNeg = atan(${p}_rn * tan(${p}_bulgeAmt)) / ${p}_bulgeAmt;`);
|
|
296
|
+
stmts.push(` let ${p}_bulgeScale = select(${p}_mapNeg, ${p}_mapPos, ${p}_lensBulge > 0.0) / ${p}_rn;`);
|
|
297
|
+
stmts.push(` ${p}_warped = ${p}_warped * ${p}_bulgeScale;`);
|
|
298
|
+
stmts.push(`}`);
|
|
299
|
+
stmts.push(`if (${p}_lensCircle > 0.0) {`);
|
|
300
|
+
stmts.push(` let ${p}_wr = length(${p}_warped);`);
|
|
301
|
+
stmts.push(` let ${p}_dir = ${p}_warped / max(${p}_wr, 1e-5);`);
|
|
302
|
+
stmts.push(` let ${p}_halfBox = vec2f(${p}_aspect, 1.0) * 0.5;`);
|
|
303
|
+
stmts.push(` let ${p}_boxOff = vec2f((${p}_c.x - 0.5) * ${p}_aspect, ${p}_c.y - 0.5);`);
|
|
304
|
+
stmts.push(` let ${p}_rBox = min((${p}_halfBox.x - sign(${p}_dir.x) * ${p}_boxOff.x) / max(abs(${p}_dir.x), 1e-4), (${p}_halfBox.y - sign(${p}_dir.y) * ${p}_boxOff.y) / max(abs(${p}_dir.y), 1e-4));`);
|
|
305
|
+
stmts.push(` let ${p}_band = ${p}_inradius * mix(0.03, 0.2, 0.5 * (${p}_lensBulge + 1.0));`);
|
|
306
|
+
stmts.push(` let ${p}_over = smoothstep(0.0, 1.0, (${p}_wr - (${p}_inradius - ${p}_band)) / ${p}_band);`);
|
|
307
|
+
stmts.push(` let ${p}_g = ${p}_wr + (${p}_rBox - ${p}_inradius) * pow(${p}_over, 14.0);`);
|
|
308
|
+
stmts.push(` ${p}_warped = ${p}_dir * mix(${p}_wr, ${p}_g, ${p}_lensCircle);`);
|
|
309
|
+
stmts.push(`}`);
|
|
310
|
+
stmts.push(`let ${p}_baseUV = vec2f(${p}_warped.x * ${p}_invAspect, ${p}_warped.y) + ${p}_c;`);
|
|
311
|
+
stmts.push(`let ${p}_baseDeriv = fwidth(${p}_baseUV);`);
|
|
312
|
+
stmts.push(`let ${p}_edgeAA = clamp(2.0 * max(${p}_baseDeriv.x, ${p}_baseDeriv.y), 0.001, 0.02);`);
|
|
313
|
+
stmts.push(`let ${p}_frameInvAA = 1.0 / clamp(${p}_baseDeriv, vec2f(1e-5), vec2f(0.02));`);
|
|
314
|
+
stmts.push(`let ${p}_grainUV = (${p}_uv - vec2f(0.5)) * (0.8 / vec2f(length(dpdx(${p}_uv)), length(dpdy(${p}_uv)))) + vec2f(0.5);`);
|
|
315
|
+
stmts.push(`let ${p}_angleRad = radians(${U("angle")});`);
|
|
316
|
+
stmts.push(`let ${p}_uniformDir = vec2f(cos(${p}_angleRad), sin(${p}_angleRad));`);
|
|
317
|
+
stmts.push(`let ${p}_invInradius = 1.0 / ${p}_inradius;`);
|
|
318
|
+
stmts.push(`let ${p}_maxLen = (${p}_outradius + ${p}_reach) * ${p}_invInradius;`);
|
|
319
|
+
stmts.push(`let ${p}_radialLen = ${p}_radius * ${p}_invInradius;`);
|
|
320
|
+
stmts.push(`let ${p}_radialDir = ${p}_fromCenter * ${p}_invInradius * min(1.0, ${p}_maxLen / max(${p}_radialLen, 1e-6));`);
|
|
321
|
+
stmts.push(`let ${p}_bandProximity = smoothstep(${p}_inradius * 0.8, ${p}_inradius, ${p}_radius);`);
|
|
322
|
+
stmts.push(`let ${p}_circleMaxing = ${p}_bandProximity * ${p}_lensCircle * ${p}_lensCircle * ${p}_lensCircle;`);
|
|
323
|
+
stmts.push(`let ${p}_spreadDir = mix(mix(${p}_uniformDir, ${p}_radialDir, ${U("perspective")}), ${p}_radialDir, ${p}_circleMaxing);`);
|
|
324
|
+
stmts.push(`let ${p}_warpedAbs = abs(${p}_baseUV - vec2f(0.5));`);
|
|
325
|
+
stmts.push(`let ${p}_focusCenter = ${U("focusCenter")};`);
|
|
326
|
+
stmts.push(`let ${p}_inner = mix(1.0, smoothstep(0.0, mix(${p}_inradius, ${p}_outradius, ${p}_focusCenter), ${p}_radius), ${p}_focusCenter);`);
|
|
327
|
+
stmts.push(`let ${p}_boxDist = max(${p}_warpedAbs.x, ${p}_warpedAbs.y) * 2.0;`);
|
|
328
|
+
stmts.push(`let ${p}_outer = mix(1.0, 1.0 - min(${p}_boxDist, 1.0), ${U("focusEdges")});`);
|
|
329
|
+
stmts.push(`var ${p}_strength = ${p}_inner * ${p}_outer * mix(1.0, mix(0.15, 0.03, max(-${p}_lensBulge, 0.0)), ${p}_circleMaxing);`);
|
|
330
|
+
stmts.push(`let ${p}_outside = max(${p}_warpedAbs - vec2f(0.5), vec2f(0.0));`);
|
|
331
|
+
stmts.push(`let ${p}_margin = max(${p}_reach * length(${p}_spreadDir) * (1.0 - ${p}_lensCircle), ${p}_edgeAA);`);
|
|
332
|
+
stmts.push(`${p}_strength = ${p}_strength * (1.0 - smoothstep(0.0, ${p}_margin, length(${p}_outside)));`);
|
|
333
|
+
stmts.push(`var ${p}_axis = ${p}_spreadDir * (${p}_reach * ${p}_strength);`);
|
|
334
|
+
stmts.push(`let ${p}_noise = ${U("noise")};`);
|
|
335
|
+
stmts.push(`if (${p}_noise > 0.0) {`);
|
|
336
|
+
{
|
|
337
|
+
const lines = [];
|
|
338
|
+
emitValueNoise(lines, `${p}_fromCenter * (${U("noiseFrequency")} * 18.0) + vec2f(${U("noiseOffset")} * 30.0)`, `${p}_turnNoise`);
|
|
339
|
+
for (const l of lines) stmts.push(` ${l}`);
|
|
340
|
+
}
|
|
341
|
+
stmts.push(` let ${p}_turn = (${p}_turnNoise - 0.5) * 2.0 * ${p}_noise;`);
|
|
342
|
+
stmts.push(` let ${p}_tc = cos(${p}_turn);`);
|
|
343
|
+
stmts.push(` let ${p}_ts = sin(${p}_turn);`);
|
|
344
|
+
stmts.push(` ${p}_axis = vec2f(${p}_tc * ${p}_axis.x + ${p}_ts * ${p}_axis.y, -${p}_ts * ${p}_axis.x + ${p}_tc * ${p}_axis.y);`);
|
|
345
|
+
stmts.push(`}`);
|
|
346
|
+
stmts.push(`${p}_axis = vec2f(${p}_axis.x * ${p}_invAspect, ${p}_axis.y);`);
|
|
347
|
+
stmts.push(`let ${p}_grainMixer = ${U("grainMixer")};`);
|
|
348
|
+
stmts.push(`if (${p}_grainMixer > 0.0) {`);
|
|
349
|
+
{
|
|
350
|
+
const lines = [];
|
|
351
|
+
emitValueNoise(lines, `${p}_grainUV`, `${p}_grainSeed`);
|
|
352
|
+
for (const l of lines) stmts.push(` ${l}`);
|
|
353
|
+
}
|
|
354
|
+
stmts.push(` let ${p}_jit = fract(${p}_grainSeed * vec2f(157.31, 113.57)) * 2.0 - vec2f(1.0);`);
|
|
355
|
+
stmts.push(` ${p}_axis = ${p}_axis + ${p}_jit * (0.3 * ${p}_grainMixer * length(${p}_axis));`);
|
|
356
|
+
stmts.push(`}`);
|
|
357
|
+
stmts.push(`let ${p}_countF = clamp(floor(${U("count")}), 2.0, ${L(MAX_TAPS)});`);
|
|
358
|
+
stmts.push(`let ${p}_hueBase = ${U("dispersionColor")} + 0.5;`);
|
|
359
|
+
stmts.push(`let ${p}_bias = ${U("bias")};`);
|
|
360
|
+
stmts.push(`let ${p}_biasPower = 1.0 + 2.0 * abs(${p}_bias);`);
|
|
361
|
+
stmts.push(`let ${p}_biasNeg = ${p}_bias < 0.0;`);
|
|
362
|
+
stmts.push(`let ${p}_dispShift = ${U("dispersionShift")};`);
|
|
363
|
+
stmts.push(`let ${p}_icMask = 1.0 - smoothstep(0.5 * ${p}_inradius, 1.1 * ${p}_inradius, ${p}_radius);`);
|
|
364
|
+
stmts.push(`let ${p}_dispAmt = ${U("dispersion")} * mix(clamp(1.0 + ${p}_dispShift, 0.0, 1.0), clamp(1.0 - ${p}_dispShift, 0.0, 1.0), ${p}_icMask);`);
|
|
365
|
+
stmts.push(`let ${p}_dispPower = pow(${p}_dispAmt, 0.8);`);
|
|
366
|
+
stmts.push(`let ${p}_warpedRadius = length(${p}_warped);`);
|
|
367
|
+
stmts.push(`let ${p}_swirlAngle = ${U("swirl")} * ${L(.4 * PI)} * ${p}_strength * ${p}_spread * min(1.0, ${p}_inradius / max(${p}_warpedRadius, 1e-4));`);
|
|
368
|
+
stmts.push(`let ${p}_texel = max((${p}_baseDeriv.x + ${p}_baseDeriv.y) * 0.5, 1e-6);`);
|
|
369
|
+
stmts.push(`let ${p}_fanPx = (2.0 * length(${p}_axis) + abs(${p}_swirlAngle) * ${p}_warpedRadius) / ${p}_texel;`);
|
|
370
|
+
stmts.push(`let ${p}_tapsF = clamp(ceil(${p}_fanPx * ${p}_biasPower) + 1.0, 2.0, ${p}_countF);`);
|
|
371
|
+
stmts.push(`let ${p}_invCount = 1.0 / ${p}_tapsF;`);
|
|
372
|
+
stmts.push(`let ${p}_invSpan = 1.0 / max(${p}_tapsF - 1.0, 1.0);`);
|
|
373
|
+
stmts.push(`var ${p}_colorSum = vec3f(0.0);`);
|
|
374
|
+
stmts.push(`var ${p}_weightSum = vec3f(0.0);`);
|
|
375
|
+
stmts.push(`var ${p}_coverSum = 0.0;`);
|
|
376
|
+
const body = [];
|
|
377
|
+
body.push(`let ${p}_layer = f32(${p}_i);`);
|
|
378
|
+
body.push(`let ${p}_hue = ${p}_hueBase + ${p}_layer * ${p}_invCount;`);
|
|
379
|
+
body.push(`let ${p}_t0 = ${p}_layer * ${p}_invSpan;`);
|
|
380
|
+
body.push(`let ${p}_curved = pow(select(${p}_t0, 1.0 - ${p}_t0, ${p}_biasNeg), ${p}_biasPower);`);
|
|
381
|
+
body.push(`let ${p}_spreadT = select(${p}_curved, 1.0 - ${p}_curved, ${p}_biasNeg);`);
|
|
382
|
+
body.push(`let ${p}_fanPos = 1.0 - 2.0 * ${p}_spreadT;`);
|
|
383
|
+
body.push(`let ${p}_tap0 = ${p}_baseUV + ${p}_axis * ${p}_fanPos - ${p}_c;`);
|
|
384
|
+
body.push(`let ${p}_sa = ${p}_swirlAngle * ${p}_fanPos;`);
|
|
385
|
+
body.push(`let ${p}_sc = cos(${p}_sa);`);
|
|
386
|
+
body.push(`let ${p}_ss = sin(${p}_sa);`);
|
|
387
|
+
body.push(`let ${p}_tx = ${p}_tap0.x * ${p}_aspect;`);
|
|
388
|
+
body.push(`let ${p}_sampleUV = vec2f((${p}_sc * ${p}_tx - ${p}_ss * ${p}_tap0.y) * ${p}_invAspect, ${p}_ss * ${p}_tx + ${p}_sc * ${p}_tap0.y) + ${p}_c;`);
|
|
389
|
+
body.push(`let ${p}_lo = clamp(${p}_sampleUV * ${p}_frameInvAA + vec2f(0.5), vec2f(0.0), vec2f(1.0));`);
|
|
390
|
+
body.push(`let ${p}_hi = clamp((vec2f(1.0) - ${p}_sampleUV) * ${p}_frameInvAA + vec2f(0.5), vec2f(0.0), vec2f(1.0));`);
|
|
391
|
+
body.push(`let ${p}_frame = ${p}_lo.x * ${p}_hi.x * ${p}_lo.y * ${p}_hi.y;`);
|
|
392
|
+
body.push(`let ${p}_tapC = textureSampleLevel(tex.$.${texKey}, samp.$.linearClamp, ${p}_sampleUV, 0.0);`);
|
|
393
|
+
body.push(`let ${p}_cover = ${p}_tapC.a * ${p}_frame;`);
|
|
394
|
+
body.push(`let ${p}_overWhite = vec3f(1.0 - ${p}_cover) + ${p}_tapC.rgb * ${p}_frame;`);
|
|
395
|
+
body.push(`let ${p}_hraw = ${p}_hue * 6.0 + vec3f(0.0, 4.0, 2.0);`);
|
|
396
|
+
body.push(`let ${p}_hmod = ${p}_hraw - 6.0 * floor(${p}_hraw / 6.0);`);
|
|
397
|
+
body.push(`let ${p}_hclamped = clamp(abs(${p}_hmod - vec3f(3.0)) - vec3f(1.0), vec3f(0.0), vec3f(1.0));`);
|
|
398
|
+
body.push(`let ${p}_hrgb = ${p}_hclamped * ${p}_hclamped * (vec3f(3.0) - 2.0 * ${p}_hclamped);`);
|
|
399
|
+
body.push(`let ${p}_weight = vec3f(1.0) - ${p}_dispPower * ${p}_hrgb;`);
|
|
400
|
+
body.push(`${p}_colorSum = ${p}_colorSum + ${p}_overWhite * ${p}_weight;`);
|
|
401
|
+
body.push(`${p}_weightSum = ${p}_weightSum + ${p}_weight;`);
|
|
402
|
+
body.push(`${p}_coverSum = ${p}_coverSum + ${p}_cover;`);
|
|
403
|
+
stmts.push(`for (var ${p}_i = 0u; ${p}_i < u32(${p}_tapsF); ${p}_i++) {`);
|
|
404
|
+
for (const b of body) stmts.push(` ${b}`);
|
|
405
|
+
stmts.push(`}`);
|
|
406
|
+
stmts.push(`let ${p}_color = ${p}_colorSum / max(${p}_weightSum, vec3f(1e-4));`);
|
|
407
|
+
stmts.push(`let ${p}_coverAvg = ${p}_coverSum * ${p}_invCount;`);
|
|
408
|
+
stmts.push(`let ${p}_ground = min(${p}_color.r, min(${p}_color.g, ${p}_color.b));`);
|
|
409
|
+
stmts.push(`let ${p}_alpha = max(${p}_coverAvg, 1.0 - ${p}_ground);`);
|
|
410
|
+
stmts.push(`let ${p}_premul = max(${p}_color - vec3f(1.0 - ${p}_alpha), vec3f(0.0));`);
|
|
411
|
+
stmts.push(`var ${p}_out = vec4f(${p}_premul, ${p}_alpha) * ${p}_bulgeFade;`);
|
|
412
|
+
stmts.push(`let ${p}_grainOverlay = ${U("grainOverlay")};`);
|
|
413
|
+
stmts.push(`if (${p}_grainOverlay > 0.0) {`);
|
|
414
|
+
{
|
|
415
|
+
const lines = [];
|
|
416
|
+
const c1 = L(Math.cos(1)), s1 = L(Math.sin(1));
|
|
417
|
+
const c2 = L(Math.cos(2)), s2 = L(Math.sin(2));
|
|
418
|
+
lines.push(`let ${p}_gr1 = vec2f(${c1} * ${p}_grainUV.x - ${s1} * ${p}_grainUV.y, ${s1} * ${p}_grainUV.x + ${c1} * ${p}_grainUV.y) + vec2f(3.0);`);
|
|
419
|
+
lines.push(`let ${p}_gr2 = vec2f(${c2} * ${p}_grainUV.x - ${s2} * ${p}_grainUV.y, ${s2} * ${p}_grainUV.x + ${c2} * ${p}_grainUV.y) + vec2f(-1.0);`);
|
|
420
|
+
emitValueNoise(lines, `${p}_gr1`, `${p}_gn1`);
|
|
421
|
+
emitValueNoise(lines, `${p}_gr2`, `${p}_gn2`);
|
|
422
|
+
lines.push(`let ${p}_grain = pow(mix(${p}_gn1, ${p}_gn2, 0.5), 1.3);`);
|
|
423
|
+
lines.push(`let ${p}_grainV = ${p}_grain * 2.0 - 1.0;`);
|
|
424
|
+
lines.push(`let ${p}_grainStrength = pow(${p}_grainOverlay * abs(${p}_grainV), 0.8) * ${p}_out.a;`);
|
|
425
|
+
lines.push(`${p}_out = vec4f(mix(${p}_out.rgb, vec3f(step(0.0, ${p}_grainV)) * ${p}_out.a, 0.35 * ${p}_grainStrength), ${p}_out.a);`);
|
|
426
|
+
for (const l of lines) stmts.push(` ${l}`);
|
|
427
|
+
}
|
|
428
|
+
stmts.push(`}`);
|
|
429
|
+
for (const s of stmts) ec.statement(s);
|
|
430
|
+
return call(unpremultiplyAlpha, "unpremultiplyAlpha", [expr(`${p}_out`)])._emit(ec);
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
var LensDistortion_default = componentDefinition;
|
|
435
|
+
export { componentDefinition as n, LensDistortion_default as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as animatedTime } from "./porters-
|
|
1
|
+
import { Bt as smoothstep, Ct as dot, Nt as pow, Ot as length, Wt as data_exports, an as vec3f, b as vec4, bt as clamp, cn as f32, gt as abs, jt as mix, kt as max, m as call, nn as vec2f, rt as std_exports, sn as vec4f, tt as src_default, vt as atan2, wt as exp, xt as cos, zt as sin } from "./edges-Dm0I-Ud7.js";
|
|
2
|
+
import { t as animatedTime } from "./porters-DnWlc17D.js";
|
|
3
3
|
import { c as transformPosition } from "./transformations-CsPUHppB.js";
|
|
4
4
|
var TAU = 6.2831853;
|
|
5
5
|
var lensFlareSpectral = src_default.fn([f32], vec3f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((t) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { h as colorStopsPropConfig, m as MAX_COLOR_STOPS, t as animatedTime } from "./porters-
|
|
3
|
-
import { c as hash22, p as noise_exports, y as value12 } from "./noise-
|
|
4
|
-
import { h as sdf_exports } from "./sdf-
|
|
5
|
-
import { d as VOLUMETRIC_FIELD_EXTRA_FIELDS$1, f as sdf3d_exports, n as shapeEffectBoundingBoxDeclaration, t as resolveShapeType } from "./shapeEffectBounds-
|
|
6
|
-
import { n as glass_exports } from "./glass-
|
|
1
|
+
import { $t as struct, At as min, Bt as smoothstep, Dt as fract, Et as floor, Kt as arrayOf, Nt as pow, U as mixColorsLinear, W as mixColorsVariants, Wt as data_exports, an as vec3f, bt as clamp, cn as f32, gt as abs, ht as select, jt as mix, kt as max, ln as i32, m as call, nn as vec2f, rt as std_exports, sn as vec4f, tt as src_default, v as floatE, vt as atan2, xt as cos, zt as sin } from "./edges-Dm0I-Ud7.js";
|
|
2
|
+
import { h as colorStopsPropConfig, m as MAX_COLOR_STOPS, t as animatedTime } from "./porters-DnWlc17D.js";
|
|
3
|
+
import { c as hash22, p as noise_exports, y as value12 } from "./noise-C_ZfgxTN.js";
|
|
4
|
+
import { h as sdf_exports } from "./sdf-B5E-Vv1j.js";
|
|
5
|
+
import { d as VOLUMETRIC_FIELD_EXTRA_FIELDS$1, f as sdf3d_exports, n as shapeEffectBoundingBoxDeclaration, t as resolveShapeType } from "./shapeEffectBounds-CjOvQ3n3.js";
|
|
6
|
+
import { n as glass_exports } from "./glass-ClmiwTb0.js";
|
|
7
7
|
import { a as transformColor, c as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CsPUHppB.js";
|
|
8
8
|
var { sdfSpaceUV } = glass_exports;
|
|
9
9
|
var { createSvgSdfSampler, createAnalyticSdfSampler, driveAnalyticSubProps, ANALYTIC_SDF_EXTRA_FIELDS } = sdf_exports;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as animatedTime } from "./porters-
|
|
3
|
-
import { p as noise_exports, s as hash12, y as value12 } from "./noise-
|
|
1
|
+
import { Bt as smoothstep, Ct as dot, Ot as length, Wt as data_exports, an as vec3f, bt as clamp, cn as f32, d as ZERO, ht as select, jt as mix, kt as max, m as call, nn as vec2f, rt as std_exports, sn as vec4f, tt as src_default, wt as exp } from "./edges-Dm0I-Ud7.js";
|
|
2
|
+
import { t as animatedTime } from "./porters-DnWlc17D.js";
|
|
3
|
+
import { p as noise_exports, s as hash12, y as value12 } from "./noise-C_ZfgxTN.js";
|
|
4
4
|
import { a as transformColor, c as transformPosition } from "./transformations-CsPUHppB.js";
|
|
5
5
|
const lightLeakRamp = src_default.fn([
|
|
6
6
|
f32,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { P as unpremultiplyAlpha, Wt as data_exports, cn as f32, d as ZERO, m as call, nn as vec2f, rt as std_exports, tt as src_default, v as floatE, xt as cos, zt as sin } from "./edges-Dm0I-Ud7.js";
|
|
2
2
|
import { r as transformAngle } from "./transformations-CsPUHppB.js";
|
|
3
3
|
var rawWeights = Array.from({ length: 32 }, (_, i) => {
|
|
4
4
|
const t = (i / 31 - .5) * 2;
|