shaders 2.2.47 → 2.3.49
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/LICENSE +31 -15
- package/README.md +2 -3
- package/dist/core/{AngularBlur-CQYutWxj.js → AngularBlur-HQuGCKow.js} +24 -17
- package/dist/core/{Ascii-Dxk6VaBp.js → Ascii-BmSlALjq.js} +134 -22
- package/dist/core/{Beam-CZo-XeQ-.js → Beam-BBbjVQDP.js} +21 -12
- package/dist/core/{Blob-D3PIrwWv.js → Blob-DeD9KRj-.js} +34 -20
- package/dist/core/{Blur-k37gOaRA.js → Blur-Brqgsz7y.js} +2 -1
- package/dist/core/{BrightnessContrast-SC7HYw9z.js → BrightnessContrast-DSePKfxC.js} +6 -4
- package/dist/core/{Bulge-CbZA25NX.js → Bulge-D2OwcL23.js} +13 -8
- package/dist/core/{CRTScreen-DV5Y2GRA.js → CRTScreen-BJJhBQ3D.js} +18 -10
- package/dist/core/{ChannelBlur-CQoP7Igg.js → ChannelBlur-BKo9uGaB.js} +6 -3
- package/dist/core/{Checkerboard-DBcVaYQv.js → Checkerboard-ChbG4nPC.js} +13 -8
- package/dist/core/{ChromaFlow-DcqnZ1wf.js → ChromaFlow-DyqU1igx.js} +19 -11
- package/dist/core/{ChromaticAberration-Dgf83J6w.js → ChromaticAberration-9nlFN2h0.js} +12 -7
- package/dist/core/{Circle-BWd84W7f.js → Circle-DSQ_9vPx.js} +13 -9
- package/dist/core/ContourLines-NASMUR3G.js +163 -0
- package/dist/core/{CursorTrail-BKfdORYc.js → CursorTrail-DT7Q3TzC.js} +16 -10
- package/dist/core/{DiffuseBlur-BTSRl65K.js → DiffuseBlur-dJ8C3PKh.js} +7 -11
- package/dist/core/Dither-Bac0W21a.js +210 -0
- package/dist/core/{DotGrid-BZVfqUZO.js → DotGrid-Cedu_WEn.js} +15 -11
- package/dist/core/{Duotone-sjvdZBlx.js → Duotone-DL9vhoyo.js} +10 -6
- package/dist/core/{FilmGrain-Cr3qP38A.js → FilmGrain-BzdJM5vN.js} +2 -1
- package/dist/core/{FloatingParticles-CPsVFZJl.js → FloatingParticles-DoB1DI8t.js} +25 -14
- package/dist/core/FlowField-BZ-ZbMzR.js +107 -0
- package/dist/core/{GlassTiles-C6LLjlnB.js → GlassTiles-BQL2Id5c.js} +8 -4
- package/dist/core/Glitch-DmF8pHjd.js +168 -0
- package/dist/core/{Glow-C2avDr73.js → Glow-Bxpj34sE.js} +46 -13
- package/dist/core/{Godrays-RVh5ylQ-.js → Godrays-DqB-88ds.js} +26 -17
- package/dist/core/{Grid-CdslWvoH.js → Grid-B6Hf5dZa.js} +9 -6
- package/dist/core/{GridDistortion-fimECOse.js → GridDistortion-DmwIHrXF.js} +13 -8
- package/dist/core/{Halftone-Cb5yrPnj.js → Halftone-vy2WIxyN.js} +8 -5
- package/dist/core/{HueShift-DQ2WgImx.js → HueShift-C4E-S49G.js} +2 -1
- package/dist/core/{ImageTexture-DKFb8ze3.js → ImageTexture-B40GVvXK.js} +5 -3
- package/dist/core/{Kaleidoscope-3Kt0m_sh.js → Kaleidoscope-BO3WUc5P.js} +9 -5
- package/dist/core/LensFlare-BoaXy9ZE.js +371 -0
- package/dist/core/{LinearBlur-B-rumcdD.js → LinearBlur-BHaYZoXd.js} +15 -13
- package/dist/core/{LinearGradient-Al78T7WU.js → LinearGradient-C8nueF-8.js} +17 -10
- package/dist/core/{Liquify-BJgkphoQ.js → Liquify-JsuLWWkx.js} +13 -8
- package/dist/core/{Mirror-CnEZ7wHa.js → Mirror--f1QXEID.js} +7 -4
- package/dist/core/{Perspective-CPhjpprG.js → Perspective-Dyj4iJMR.js} +15 -8
- package/dist/core/{Pixelate-rlHN9jV1.js → Pixelate-CzXp_BwM.js} +2 -1
- package/dist/core/Plasma-FfOwR9cP.js +135 -0
- package/dist/core/{PolarCoordinates-Bfa-U0fi.js → PolarCoordinates-CfuvmwZm.js} +11 -6
- package/dist/core/{Posterize-DDzCt2n9.js → Posterize-IUwDieMu.js} +2 -1
- package/dist/core/{ProgressiveBlur-9-KRqfdm.js → ProgressiveBlur-BTGKywKM.js} +9 -5
- package/dist/core/{RadialGradient-BHuQVJ4Q.js → RadialGradient-DbcPAwI7.js} +13 -8
- package/dist/core/{RectangularCoordinates-CMd1Rp4Y.js → RectangularCoordinates-OOpDHjTM.js} +9 -5
- package/dist/core/{Ripples-Cil48gEl.js → Ripples-CGhzc9or.js} +20 -12
- package/dist/core/{Saturation-D_yZO7cz.js → Saturation-ssiNVXIp.js} +2 -1
- package/dist/core/{Sharpness-229T6rR0.js → Sharpness-B-nN0G5P.js} +2 -1
- package/dist/core/{Shatter-B9tvT-jr.js → Shatter-CryQHkSZ.js} +70 -44
- package/dist/core/{SimplexNoise-YauHkNYZ.js → SimplexNoise-B-tDGmzX.js} +18 -11
- package/dist/core/{SineWave-BEm0T7c8.js → SineWave-C6MpmU6E.js} +19 -11
- package/dist/core/{SolidColor-BSC8voa9.js → SolidColor-BjLy2eJx.js} +4 -3
- package/dist/core/{Spherize-C6xkW6TJ.js → Spherize-Mtl4w0Lc.js} +15 -8
- package/dist/core/{Spiral-BY5eOKPL.js → Spiral-Bl67ud0b.js} +21 -12
- package/dist/core/{Strands-C5-TqTXW.js → Strands-BNxk94tR.js} +22 -13
- package/dist/core/{Stretch-CatYi4MC.js → Stretch-DROTOuvH.js} +11 -6
- package/dist/core/{Stripes-BbNIMHDl.js → Stripes-IMsC1G-g.js} +21 -12
- package/dist/core/{Swirl-ytfGCJTs.js → Swirl-C9xCY4TA.js} +15 -9
- package/dist/core/{TiltShift-CvEKlLKc.js → TiltShift-CFhc4M-Z.js} +11 -6
- package/dist/core/{Tint-PBKR7M-T.js → Tint-DS1FvtQc.js} +7 -4
- package/dist/core/{Tritone-D1rsE5HX.js → Tritone-CesYYNTz.js} +12 -7
- package/dist/core/{Twirl-BQzDHvml.js → Twirl-8C-m04yw.js} +7 -4
- package/dist/core/{Vibrance-JFvD6I5g.js → Vibrance-Cbr-9ds2.js} +2 -1
- package/dist/core/VideoTexture-DKnQrDkq.js +187 -0
- package/dist/core/{WaveDistortion-D9Dox1gF.js → WaveDistortion-D-TGqE0a.js} +13 -7
- package/dist/core/{WebcamTexture-BnrsnuMO.js → WebcamTexture-C3EtpWf2.js} +5 -3
- package/dist/core/{ZoomBlur-D9At8opY.js → ZoomBlur-DmMiy4FJ.js} +17 -14
- package/dist/core/blendModes/normal-oklab.d.ts.map +1 -1
- package/dist/core/blendModes/normal-oklch.d.ts.map +1 -1
- package/dist/core/{colorMixing-CZPFmiT4.js → colorMixing-Ehw-Hfs_.js} +4 -4
- package/dist/core/index.d.ts +2 -3
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +24 -14
- package/dist/core/registry.js +130 -118
- package/dist/core/renderer.d.ts.map +1 -1
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/AngularBlur/index.d.ts.map +1 -1
- package/dist/core/shaders/AngularBlur/index.js +2 -2
- package/dist/core/shaders/Ascii/index.d.ts +24 -3
- package/dist/core/shaders/Ascii/index.d.ts.map +1 -1
- package/dist/core/shaders/Ascii/index.js +1 -1
- package/dist/core/shaders/Beam/index.d.ts.map +1 -1
- package/dist/core/shaders/Beam/index.js +3 -3
- package/dist/core/shaders/Blob/index.d.ts +1 -1
- package/dist/core/shaders/Blob/index.d.ts.map +1 -1
- package/dist/core/shaders/Blob/index.js +3 -3
- package/dist/core/shaders/Blur/index.js +1 -1
- package/dist/core/shaders/BrightnessContrast/index.js +1 -1
- package/dist/core/shaders/Bulge/index.d.ts.map +1 -1
- package/dist/core/shaders/Bulge/index.js +2 -2
- package/dist/core/shaders/CRTScreen/index.js +1 -1
- package/dist/core/shaders/ChannelBlur/index.js +1 -1
- package/dist/core/shaders/Checkerboard/index.d.ts.map +1 -1
- package/dist/core/shaders/Checkerboard/index.js +3 -3
- package/dist/core/shaders/ChromaFlow/index.d.ts.map +1 -1
- package/dist/core/shaders/ChromaFlow/index.js +2 -2
- package/dist/core/shaders/ChromaticAberration/index.d.ts.map +1 -1
- package/dist/core/shaders/ChromaticAberration/index.js +2 -2
- package/dist/core/shaders/Circle/index.d.ts.map +1 -1
- package/dist/core/shaders/Circle/index.js +2 -2
- package/dist/core/shaders/ContourLines/index.d.ts +73 -0
- package/dist/core/shaders/ContourLines/index.d.ts.map +1 -0
- package/dist/core/shaders/ContourLines/index.js +3 -0
- package/dist/core/shaders/CursorTrail/index.d.ts.map +1 -1
- package/dist/core/shaders/CursorTrail/index.js +3 -3
- package/dist/core/shaders/DiffuseBlur/index.d.ts.map +1 -1
- package/dist/core/shaders/DiffuseBlur/index.js +2 -2
- package/dist/core/shaders/Dither/index.d.ts +21 -0
- package/dist/core/shaders/Dither/index.d.ts.map +1 -1
- package/dist/core/shaders/Dither/index.js +2 -2
- package/dist/core/shaders/DotGrid/index.d.ts +2 -2
- package/dist/core/shaders/DotGrid/index.d.ts.map +1 -1
- package/dist/core/shaders/DotGrid/index.js +2 -2
- package/dist/core/shaders/Duotone/index.d.ts.map +1 -1
- package/dist/core/shaders/Duotone/index.js +3 -3
- package/dist/core/shaders/FilmGrain/index.js +1 -1
- package/dist/core/shaders/FloatingParticles/index.d.ts.map +1 -1
- package/dist/core/shaders/FloatingParticles/index.js +2 -2
- package/dist/core/shaders/FlowField/index.d.ts +36 -0
- package/dist/core/shaders/FlowField/index.d.ts.map +1 -0
- package/dist/core/shaders/FlowField/index.js +5 -0
- package/dist/core/shaders/GlassTiles/index.js +1 -1
- package/dist/core/shaders/Glitch/index.d.ts +56 -0
- package/dist/core/shaders/Glitch/index.d.ts.map +1 -0
- package/dist/core/shaders/Glitch/index.js +2 -0
- package/dist/core/shaders/Glow/index.d.ts.map +1 -1
- package/dist/core/shaders/Glow/index.js +1 -1
- package/dist/core/shaders/Godrays/index.d.ts +2 -4
- package/dist/core/shaders/Godrays/index.d.ts.map +1 -1
- package/dist/core/shaders/Godrays/index.js +2 -2
- package/dist/core/shaders/Grayscale/index.js +1 -1
- package/dist/core/shaders/Grid/index.js +2 -2
- package/dist/core/shaders/GridDistortion/index.d.ts.map +1 -1
- package/dist/core/shaders/GridDistortion/index.js +2 -2
- package/dist/core/shaders/Group/index.js +1 -1
- package/dist/core/shaders/Halftone/index.d.ts.map +1 -1
- package/dist/core/shaders/Halftone/index.js +2 -2
- package/dist/core/shaders/HueShift/index.js +1 -1
- package/dist/core/shaders/ImageTexture/index.d.ts.map +1 -1
- package/dist/core/shaders/ImageTexture/index.js +1 -1
- package/dist/core/shaders/Invert/index.js +1 -1
- package/dist/core/shaders/Kaleidoscope/index.d.ts.map +1 -1
- package/dist/core/shaders/Kaleidoscope/index.js +2 -2
- package/dist/core/shaders/LensFlare/index.d.ts +127 -0
- package/dist/core/shaders/LensFlare/index.d.ts.map +1 -0
- package/dist/core/shaders/LensFlare/index.js +4 -0
- package/dist/core/shaders/LinearBlur/index.d.ts.map +1 -1
- package/dist/core/shaders/LinearBlur/index.js +2 -2
- package/dist/core/shaders/LinearGradient/index.d.ts.map +1 -1
- package/dist/core/shaders/LinearGradient/index.js +3 -3
- package/dist/core/shaders/Liquify/index.d.ts.map +1 -1
- package/dist/core/shaders/Liquify/index.js +2 -2
- package/dist/core/shaders/Mirror/index.d.ts.map +1 -1
- package/dist/core/shaders/Mirror/index.js +2 -2
- package/dist/core/shaders/Perspective/index.d.ts.map +1 -1
- package/dist/core/shaders/Perspective/index.js +2 -2
- package/dist/core/shaders/Pixelate/index.js +1 -1
- package/dist/core/shaders/Plasma/index.d.ts +71 -0
- package/dist/core/shaders/Plasma/index.d.ts.map +1 -0
- package/dist/core/shaders/Plasma/index.js +5 -0
- package/dist/core/shaders/PolarCoordinates/index.d.ts.map +1 -1
- package/dist/core/shaders/PolarCoordinates/index.js +2 -2
- package/dist/core/shaders/Posterize/index.js +1 -1
- package/dist/core/shaders/ProgressiveBlur/index.js +2 -2
- package/dist/core/shaders/RadialGradient/index.d.ts.map +1 -1
- package/dist/core/shaders/RadialGradient/index.js +3 -3
- package/dist/core/shaders/RectangularCoordinates/index.d.ts.map +1 -1
- package/dist/core/shaders/RectangularCoordinates/index.js +2 -2
- package/dist/core/shaders/Ripples/index.js +3 -3
- package/dist/core/shaders/Saturation/index.js +1 -1
- package/dist/core/shaders/Sharpness/index.js +1 -1
- package/dist/core/shaders/Shatter/index.d.ts.map +1 -1
- package/dist/core/shaders/Shatter/index.js +2 -2
- package/dist/core/shaders/SimplexNoise/index.d.ts +1 -1
- package/dist/core/shaders/SimplexNoise/index.js +3 -3
- package/dist/core/shaders/SineWave/index.d.ts.map +1 -1
- package/dist/core/shaders/SineWave/index.js +2 -2
- package/dist/core/shaders/SolidColor/index.js +2 -2
- package/dist/core/shaders/Spherize/index.js +2 -2
- package/dist/core/shaders/Spiral/index.d.ts.map +1 -1
- package/dist/core/shaders/Spiral/index.js +3 -3
- package/dist/core/shaders/Strands/index.d.ts.map +1 -1
- package/dist/core/shaders/Strands/index.js +2 -2
- package/dist/core/shaders/Stretch/index.d.ts.map +1 -1
- package/dist/core/shaders/Stretch/index.js +2 -2
- package/dist/core/shaders/Stripes/index.js +3 -3
- package/dist/core/shaders/Swirl/index.d.ts.map +1 -1
- package/dist/core/shaders/Swirl/index.js +3 -3
- package/dist/core/shaders/TiltShift/index.js +2 -2
- package/dist/core/shaders/Tint/index.js +2 -2
- package/dist/core/shaders/Tritone/index.d.ts.map +1 -1
- package/dist/core/shaders/Tritone/index.js +3 -3
- package/dist/core/shaders/Twirl/index.d.ts.map +1 -1
- package/dist/core/shaders/Twirl/index.js +2 -2
- package/dist/core/shaders/Vibrance/index.js +1 -1
- package/dist/core/shaders/VideoTexture/index.d.ts +27 -0
- package/dist/core/shaders/VideoTexture/index.d.ts.map +1 -0
- package/dist/core/shaders/VideoTexture/index.js +2 -0
- package/dist/core/shaders/WaveDistortion/index.d.ts.map +1 -1
- package/dist/core/shaders/WaveDistortion/index.js +2 -2
- package/dist/core/shaders/WebcamTexture/index.d.ts.map +1 -1
- package/dist/core/shaders/WebcamTexture/index.js +1 -1
- package/dist/core/shaders/ZoomBlur/index.d.ts.map +1 -1
- package/dist/core/shaders/ZoomBlur/index.js +2 -2
- package/dist/core/telemetry/collector.d.ts.map +1 -1
- package/dist/core/telemetry/index.js +0 -1
- package/dist/core/{transformations-YbhRK-rd.js → transformations-CC_c-QAT.js} +8 -8
- package/dist/core/types.d.ts +17 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/utilities/colorMixing.d.ts.map +1 -1
- package/dist/react/AngularBlur.js +25 -5
- package/dist/react/Ascii.js +25 -5
- package/dist/react/Beam.js +25 -5
- package/dist/react/Blob.js +25 -5
- package/dist/react/Blur.js +25 -5
- package/dist/react/BrightnessContrast.js +25 -5
- package/dist/react/Bulge.js +25 -5
- package/dist/react/CRTScreen.js +25 -5
- package/dist/react/ChannelBlur.js +25 -5
- package/dist/react/Checkerboard.js +25 -5
- package/dist/react/ChromaFlow.js +25 -5
- package/dist/react/ChromaticAberration.js +25 -5
- package/dist/react/Circle.js +25 -5
- package/dist/react/ContourLines.js +164 -0
- package/dist/react/CursorTrail.js +25 -5
- package/dist/react/DiffuseBlur.js +25 -5
- package/dist/react/Dither.js +25 -5
- package/dist/react/DotGrid.js +25 -5
- package/dist/react/Duotone.js +25 -5
- package/dist/react/FilmGrain.js +25 -5
- package/dist/react/FloatingParticles.js +25 -5
- package/dist/react/FlowField.js +164 -0
- package/dist/react/GlassTiles.js +25 -5
- package/dist/react/Glitch.js +164 -0
- package/dist/react/Glow.js +25 -5
- package/dist/react/Godrays.js +25 -5
- package/dist/react/Grayscale.js +25 -5
- package/dist/react/Grid.js +25 -5
- package/dist/react/GridDistortion.js +25 -5
- package/dist/react/Group.js +25 -5
- package/dist/react/Halftone.js +25 -5
- package/dist/react/HueShift.js +25 -5
- package/dist/react/ImageTexture.js +25 -5
- package/dist/react/Invert.js +25 -5
- package/dist/react/Kaleidoscope.js +25 -5
- package/dist/react/LensFlare.js +164 -0
- package/dist/react/LinearBlur.js +25 -5
- package/dist/react/LinearGradient.js +25 -5
- package/dist/react/Liquify.js +25 -5
- package/dist/react/Mirror.js +25 -5
- package/dist/react/Perspective.js +25 -5
- package/dist/react/Pixelate.js +25 -5
- package/dist/react/Plasma.js +164 -0
- package/dist/react/PolarCoordinates.js +25 -5
- package/dist/react/Posterize.js +25 -5
- package/dist/react/ProgressiveBlur.js +25 -5
- package/dist/react/RadialGradient.js +25 -5
- package/dist/react/RectangularCoordinates.js +25 -5
- package/dist/react/Ripples.js +25 -5
- package/dist/react/Saturation.js +25 -5
- package/dist/react/Sharpness.js +25 -5
- package/dist/react/Shatter.js +25 -5
- package/dist/react/SimplexNoise.js +25 -5
- package/dist/react/SineWave.js +25 -5
- package/dist/react/SolidColor.js +25 -5
- package/dist/react/Spherize.js +25 -5
- package/dist/react/Spiral.js +25 -5
- package/dist/react/Strands.js +25 -5
- package/dist/react/Stretch.js +25 -5
- package/dist/react/Stripes.js +25 -5
- package/dist/react/Swirl.js +25 -5
- package/dist/react/TiltShift.js +25 -5
- package/dist/react/Tint.js +25 -5
- package/dist/react/Tritone.js +25 -5
- package/dist/react/Twirl.js +25 -5
- package/dist/react/Vibrance.js +25 -5
- package/dist/react/VideoTexture.js +164 -0
- package/dist/react/WaveDistortion.js +25 -5
- package/dist/react/WebcamTexture.js +25 -5
- package/dist/react/ZoomBlur.js +25 -5
- package/dist/react/components/AngularBlur.d.ts.map +1 -1
- package/dist/react/components/Ascii.d.ts.map +1 -1
- package/dist/react/components/Beam.d.ts.map +1 -1
- package/dist/react/components/Blob.d.ts.map +1 -1
- package/dist/react/components/Blur.d.ts.map +1 -1
- package/dist/react/components/BrightnessContrast.d.ts.map +1 -1
- package/dist/react/components/Bulge.d.ts.map +1 -1
- package/dist/react/components/CRTScreen.d.ts.map +1 -1
- package/dist/react/components/ChannelBlur.d.ts.map +1 -1
- package/dist/react/components/Checkerboard.d.ts.map +1 -1
- package/dist/react/components/ChromaFlow.d.ts.map +1 -1
- package/dist/react/components/ChromaticAberration.d.ts.map +1 -1
- package/dist/react/components/Circle.d.ts.map +1 -1
- package/dist/react/components/ContourLines.d.ts +31 -0
- package/dist/react/components/ContourLines.d.ts.map +1 -0
- package/dist/react/components/CursorTrail.d.ts.map +1 -1
- package/dist/react/components/DiffuseBlur.d.ts.map +1 -1
- package/dist/react/components/Dither.d.ts.map +1 -1
- package/dist/react/components/DotGrid.d.ts.map +1 -1
- package/dist/react/components/Duotone.d.ts.map +1 -1
- package/dist/react/components/FilmGrain.d.ts.map +1 -1
- package/dist/react/components/FloatingParticles.d.ts.map +1 -1
- package/dist/react/components/FlowField.d.ts +31 -0
- package/dist/react/components/FlowField.d.ts.map +1 -0
- package/dist/react/components/GlassTiles.d.ts.map +1 -1
- package/dist/react/components/Glitch.d.ts +31 -0
- package/dist/react/components/Glitch.d.ts.map +1 -0
- package/dist/react/components/Glow.d.ts.map +1 -1
- package/dist/react/components/Godrays.d.ts.map +1 -1
- package/dist/react/components/Grayscale.d.ts.map +1 -1
- package/dist/react/components/Grid.d.ts.map +1 -1
- package/dist/react/components/GridDistortion.d.ts.map +1 -1
- package/dist/react/components/Group.d.ts.map +1 -1
- package/dist/react/components/Halftone.d.ts.map +1 -1
- package/dist/react/components/HueShift.d.ts.map +1 -1
- package/dist/react/components/ImageTexture.d.ts.map +1 -1
- package/dist/react/components/Invert.d.ts.map +1 -1
- package/dist/react/components/Kaleidoscope.d.ts.map +1 -1
- package/dist/react/components/LensFlare.d.ts +31 -0
- package/dist/react/components/LensFlare.d.ts.map +1 -0
- package/dist/react/components/LinearBlur.d.ts.map +1 -1
- package/dist/react/components/LinearGradient.d.ts.map +1 -1
- package/dist/react/components/Liquify.d.ts.map +1 -1
- package/dist/react/components/Mirror.d.ts.map +1 -1
- package/dist/react/components/Perspective.d.ts.map +1 -1
- package/dist/react/components/Pixelate.d.ts.map +1 -1
- package/dist/react/components/Plasma.d.ts +31 -0
- package/dist/react/components/Plasma.d.ts.map +1 -0
- package/dist/react/components/PolarCoordinates.d.ts.map +1 -1
- package/dist/react/components/Posterize.d.ts.map +1 -1
- package/dist/react/components/ProgressiveBlur.d.ts.map +1 -1
- package/dist/react/components/RadialGradient.d.ts.map +1 -1
- package/dist/react/components/RectangularCoordinates.d.ts.map +1 -1
- package/dist/react/components/Ripples.d.ts.map +1 -1
- package/dist/react/components/Saturation.d.ts.map +1 -1
- package/dist/react/components/Sharpness.d.ts.map +1 -1
- package/dist/react/components/Shatter.d.ts.map +1 -1
- package/dist/react/components/SimplexNoise.d.ts.map +1 -1
- package/dist/react/components/SineWave.d.ts.map +1 -1
- package/dist/react/components/SolidColor.d.ts.map +1 -1
- package/dist/react/components/Spherize.d.ts.map +1 -1
- package/dist/react/components/Spiral.d.ts.map +1 -1
- package/dist/react/components/Strands.d.ts.map +1 -1
- package/dist/react/components/Stretch.d.ts.map +1 -1
- package/dist/react/components/Stripes.d.ts.map +1 -1
- package/dist/react/components/Swirl.d.ts.map +1 -1
- package/dist/react/components/TiltShift.d.ts.map +1 -1
- package/dist/react/components/Tint.d.ts.map +1 -1
- package/dist/react/components/Tritone.d.ts.map +1 -1
- package/dist/react/components/Twirl.d.ts.map +1 -1
- package/dist/react/components/Vibrance.d.ts.map +1 -1
- package/dist/react/components/VideoTexture.d.ts +31 -0
- package/dist/react/components/VideoTexture.d.ts.map +1 -0
- package/dist/react/components/WaveDistortion.d.ts.map +1 -1
- package/dist/react/components/WebcamTexture.d.ts.map +1 -1
- package/dist/react/components/ZoomBlur.d.ts.map +1 -1
- package/dist/react/engine/component.template.d.ts.map +1 -1
- package/dist/react/index.d.ts +6 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +7 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +520 -64
- package/dist/registry.js +3093 -856
- package/dist/solid/components/AngularBlur.d.ts.map +1 -1
- package/dist/solid/components/AngularBlur.js +26 -6
- package/dist/solid/components/Ascii.d.ts.map +1 -1
- package/dist/solid/components/Ascii.js +26 -6
- package/dist/solid/components/Beam.d.ts.map +1 -1
- package/dist/solid/components/Beam.js +26 -6
- package/dist/solid/components/Blob.d.ts.map +1 -1
- package/dist/solid/components/Blob.js +26 -6
- package/dist/solid/components/Blur.d.ts.map +1 -1
- package/dist/solid/components/Blur.js +26 -6
- package/dist/solid/components/BrightnessContrast.d.ts.map +1 -1
- package/dist/solid/components/BrightnessContrast.js +26 -6
- package/dist/solid/components/Bulge.d.ts.map +1 -1
- package/dist/solid/components/Bulge.js +26 -6
- package/dist/solid/components/CRTScreen.d.ts.map +1 -1
- package/dist/solid/components/CRTScreen.js +26 -6
- package/dist/solid/components/ChannelBlur.d.ts.map +1 -1
- package/dist/solid/components/ChannelBlur.js +26 -6
- package/dist/solid/components/Checkerboard.d.ts.map +1 -1
- package/dist/solid/components/Checkerboard.js +26 -6
- package/dist/solid/components/ChromaFlow.d.ts.map +1 -1
- package/dist/solid/components/ChromaFlow.js +26 -6
- package/dist/solid/components/ChromaticAberration.d.ts.map +1 -1
- package/dist/solid/components/ChromaticAberration.js +26 -6
- package/dist/solid/components/Circle.d.ts.map +1 -1
- package/dist/solid/components/Circle.js +26 -6
- package/dist/solid/components/ContourLines.d.ts +28 -0
- package/dist/solid/components/ContourLines.d.ts.map +1 -0
- package/dist/solid/components/ContourLines.js +168 -0
- package/dist/solid/components/CursorTrail.d.ts.map +1 -1
- package/dist/solid/components/CursorTrail.js +26 -6
- package/dist/solid/components/DiffuseBlur.d.ts.map +1 -1
- package/dist/solid/components/DiffuseBlur.js +26 -6
- package/dist/solid/components/Dither.d.ts.map +1 -1
- package/dist/solid/components/Dither.js +26 -6
- package/dist/solid/components/DotGrid.d.ts.map +1 -1
- package/dist/solid/components/DotGrid.js +26 -6
- package/dist/solid/components/Duotone.d.ts.map +1 -1
- package/dist/solid/components/Duotone.js +26 -6
- package/dist/solid/components/FilmGrain.d.ts.map +1 -1
- package/dist/solid/components/FilmGrain.js +26 -6
- package/dist/solid/components/FloatingParticles.d.ts.map +1 -1
- package/dist/solid/components/FloatingParticles.js +26 -6
- package/dist/solid/components/FlowField.d.ts +28 -0
- package/dist/solid/components/FlowField.d.ts.map +1 -0
- package/dist/solid/components/FlowField.js +168 -0
- package/dist/solid/components/GlassTiles.d.ts.map +1 -1
- package/dist/solid/components/GlassTiles.js +26 -6
- package/dist/solid/components/Glitch.d.ts +28 -0
- package/dist/solid/components/Glitch.d.ts.map +1 -0
- package/dist/solid/components/Glitch.js +168 -0
- package/dist/solid/components/Glow.d.ts.map +1 -1
- package/dist/solid/components/Glow.js +26 -6
- package/dist/solid/components/Godrays.d.ts.map +1 -1
- package/dist/solid/components/Godrays.js +26 -6
- package/dist/solid/components/Grayscale.d.ts.map +1 -1
- package/dist/solid/components/Grayscale.js +26 -6
- package/dist/solid/components/Grid.d.ts.map +1 -1
- package/dist/solid/components/Grid.js +26 -6
- package/dist/solid/components/GridDistortion.d.ts.map +1 -1
- package/dist/solid/components/GridDistortion.js +26 -6
- package/dist/solid/components/Group.d.ts.map +1 -1
- package/dist/solid/components/Group.js +26 -6
- package/dist/solid/components/Halftone.d.ts.map +1 -1
- package/dist/solid/components/Halftone.js +26 -6
- package/dist/solid/components/HueShift.d.ts.map +1 -1
- package/dist/solid/components/HueShift.js +26 -6
- package/dist/solid/components/ImageTexture.d.ts.map +1 -1
- package/dist/solid/components/ImageTexture.js +26 -6
- package/dist/solid/components/Invert.d.ts.map +1 -1
- package/dist/solid/components/Invert.js +26 -6
- package/dist/solid/components/Kaleidoscope.d.ts.map +1 -1
- package/dist/solid/components/Kaleidoscope.js +26 -6
- package/dist/solid/components/LensFlare.d.ts +28 -0
- package/dist/solid/components/LensFlare.d.ts.map +1 -0
- package/dist/solid/components/LensFlare.js +168 -0
- package/dist/solid/components/LinearBlur.d.ts.map +1 -1
- package/dist/solid/components/LinearBlur.js +26 -6
- package/dist/solid/components/LinearGradient.d.ts.map +1 -1
- package/dist/solid/components/LinearGradient.js +26 -6
- package/dist/solid/components/Liquify.d.ts.map +1 -1
- package/dist/solid/components/Liquify.js +26 -6
- package/dist/solid/components/Mirror.d.ts.map +1 -1
- package/dist/solid/components/Mirror.js +26 -6
- package/dist/solid/components/Perspective.d.ts.map +1 -1
- package/dist/solid/components/Perspective.js +26 -6
- package/dist/solid/components/Pixelate.d.ts.map +1 -1
- package/dist/solid/components/Pixelate.js +26 -6
- package/dist/solid/components/Plasma.d.ts +28 -0
- package/dist/solid/components/Plasma.d.ts.map +1 -0
- package/dist/solid/components/Plasma.js +168 -0
- package/dist/solid/components/PolarCoordinates.d.ts.map +1 -1
- package/dist/solid/components/PolarCoordinates.js +26 -6
- package/dist/solid/components/Posterize.d.ts.map +1 -1
- package/dist/solid/components/Posterize.js +26 -6
- package/dist/solid/components/ProgressiveBlur.d.ts.map +1 -1
- package/dist/solid/components/ProgressiveBlur.js +26 -6
- package/dist/solid/components/RadialGradient.d.ts.map +1 -1
- package/dist/solid/components/RadialGradient.js +26 -6
- package/dist/solid/components/RectangularCoordinates.d.ts.map +1 -1
- package/dist/solid/components/RectangularCoordinates.js +26 -6
- package/dist/solid/components/Ripples.d.ts.map +1 -1
- package/dist/solid/components/Ripples.js +26 -6
- package/dist/solid/components/Saturation.d.ts.map +1 -1
- package/dist/solid/components/Saturation.js +26 -6
- package/dist/solid/components/Sharpness.d.ts.map +1 -1
- package/dist/solid/components/Sharpness.js +26 -6
- package/dist/solid/components/Shatter.d.ts.map +1 -1
- package/dist/solid/components/Shatter.js +26 -6
- package/dist/solid/components/SimplexNoise.d.ts.map +1 -1
- package/dist/solid/components/SimplexNoise.js +26 -6
- package/dist/solid/components/SineWave.d.ts.map +1 -1
- package/dist/solid/components/SineWave.js +26 -6
- package/dist/solid/components/SolidColor.d.ts.map +1 -1
- package/dist/solid/components/SolidColor.js +26 -6
- package/dist/solid/components/Spherize.d.ts.map +1 -1
- package/dist/solid/components/Spherize.js +26 -6
- package/dist/solid/components/Spiral.d.ts.map +1 -1
- package/dist/solid/components/Spiral.js +26 -6
- package/dist/solid/components/Strands.d.ts.map +1 -1
- package/dist/solid/components/Strands.js +26 -6
- package/dist/solid/components/Stretch.d.ts.map +1 -1
- package/dist/solid/components/Stretch.js +26 -6
- package/dist/solid/components/Stripes.d.ts.map +1 -1
- package/dist/solid/components/Stripes.js +26 -6
- package/dist/solid/components/Swirl.d.ts.map +1 -1
- package/dist/solid/components/Swirl.js +26 -6
- package/dist/solid/components/TiltShift.d.ts.map +1 -1
- package/dist/solid/components/TiltShift.js +26 -6
- package/dist/solid/components/Tint.d.ts.map +1 -1
- package/dist/solid/components/Tint.js +26 -6
- package/dist/solid/components/Tritone.d.ts.map +1 -1
- package/dist/solid/components/Tritone.js +26 -6
- package/dist/solid/components/Twirl.d.ts.map +1 -1
- package/dist/solid/components/Twirl.js +26 -6
- package/dist/solid/components/Vibrance.d.ts.map +1 -1
- package/dist/solid/components/Vibrance.js +26 -6
- package/dist/solid/components/VideoTexture.d.ts +28 -0
- package/dist/solid/components/VideoTexture.d.ts.map +1 -0
- package/dist/solid/components/VideoTexture.js +168 -0
- package/dist/solid/components/WaveDistortion.d.ts.map +1 -1
- package/dist/solid/components/WaveDistortion.js +26 -6
- package/dist/solid/components/WebcamTexture.d.ts.map +1 -1
- package/dist/solid/components/WebcamTexture.js +26 -6
- package/dist/solid/components/ZoomBlur.d.ts.map +1 -1
- package/dist/solid/components/ZoomBlur.js +26 -6
- package/dist/solid/engine/component.template.d.ts.map +1 -1
- package/dist/solid/index.d.ts +6 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +116 -104
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +520 -64
- package/dist/svelte/components/ContourLines.svelte.d.ts +19 -0
- package/dist/svelte/components/FlowField.svelte.d.ts +19 -0
- package/dist/svelte/components/Glitch.svelte.d.ts +19 -0
- package/dist/svelte/components/LensFlare.svelte.d.ts +19 -0
- package/dist/svelte/components/Plasma.svelte.d.ts +19 -0
- package/dist/svelte/components/VideoTexture.svelte.d.ts +19 -0
- package/dist/svelte/generatePresetCode-Bw9A9k-k.js +859 -0
- package/dist/svelte/index.d.ts +6 -0
- package/dist/svelte/index.js +2537 -524
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/AngularBlur.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Ascii.vue_vue_type_script_setup_true_lang.js +30 -7
- package/dist/vue/Beam.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Blob.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Blur.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/BrightnessContrast.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Bulge.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/CRTScreen.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/ChannelBlur.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Checkerboard.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/ChromaFlow.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/ChromaticAberration.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Circle.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/ContourLines.js +3 -0
- package/dist/vue/ContourLines.vue_vue_type_script_setup_true_lang.js +152 -0
- package/dist/vue/CursorTrail.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/DiffuseBlur.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Dither.vue_vue_type_script_setup_true_lang.js +29 -6
- package/dist/vue/DotGrid.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Duotone.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/FilmGrain.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/FloatingParticles.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/FlowField.js +3 -0
- package/dist/vue/FlowField.vue_vue_type_script_setup_true_lang.js +147 -0
- package/dist/vue/GlassTiles.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Glitch.js +3 -0
- package/dist/vue/Glitch.vue_vue_type_script_setup_true_lang.js +150 -0
- package/dist/vue/Glow.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Godrays.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Grayscale.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Grid.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/GridDistortion.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Group.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Halftone.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/HueShift.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/ImageTexture.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Invert.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Kaleidoscope.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/LensFlare.js +3 -0
- package/dist/vue/LensFlare.vue_vue_type_script_setup_true_lang.js +160 -0
- package/dist/vue/LinearBlur.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/LinearGradient.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Liquify.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Mirror.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Perspective.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Pixelate.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Plasma.js +3 -0
- package/dist/vue/Plasma.vue_vue_type_script_setup_true_lang.js +152 -0
- package/dist/vue/PolarCoordinates.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Posterize.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/ProgressiveBlur.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/RadialGradient.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/RectangularCoordinates.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Ripples.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Saturation.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Sharpness.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Shatter.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/SimplexNoise.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/SineWave.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/SolidColor.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Spherize.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Spiral.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Strands.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Stretch.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Stripes.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Swirl.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/TiltShift.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Tint.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Tritone.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Twirl.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/Vibrance.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/VideoTexture.js +3 -0
- package/dist/vue/VideoTexture.vue_vue_type_script_setup_true_lang.js +146 -0
- package/dist/vue/WaveDistortion.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/WebcamTexture.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/ZoomBlur.vue_vue_type_script_setup_true_lang.js +26 -6
- package/dist/vue/components/AngularBlur.vue.d.ts +0 -3
- package/dist/vue/components/AngularBlur.vue.d.ts.map +1 -1
- package/dist/vue/components/Ascii.vue.d.ts +0 -3
- package/dist/vue/components/Ascii.vue.d.ts.map +1 -1
- package/dist/vue/components/Beam.vue.d.ts +0 -3
- package/dist/vue/components/Beam.vue.d.ts.map +1 -1
- package/dist/vue/components/Blob.vue.d.ts +0 -3
- package/dist/vue/components/Blob.vue.d.ts.map +1 -1
- package/dist/vue/components/Blur.vue.d.ts +0 -3
- package/dist/vue/components/Blur.vue.d.ts.map +1 -1
- package/dist/vue/components/BrightnessContrast.vue.d.ts +0 -3
- package/dist/vue/components/BrightnessContrast.vue.d.ts.map +1 -1
- package/dist/vue/components/Bulge.vue.d.ts +0 -3
- package/dist/vue/components/Bulge.vue.d.ts.map +1 -1
- package/dist/vue/components/CRTScreen.vue.d.ts +0 -3
- package/dist/vue/components/CRTScreen.vue.d.ts.map +1 -1
- package/dist/vue/components/ChannelBlur.vue.d.ts +0 -3
- package/dist/vue/components/ChannelBlur.vue.d.ts.map +1 -1
- package/dist/vue/components/Checkerboard.vue.d.ts +0 -3
- package/dist/vue/components/Checkerboard.vue.d.ts.map +1 -1
- package/dist/vue/components/ChromaFlow.vue.d.ts +0 -3
- package/dist/vue/components/ChromaFlow.vue.d.ts.map +1 -1
- package/dist/vue/components/ChromaticAberration.vue.d.ts +0 -3
- package/dist/vue/components/ChromaticAberration.vue.d.ts.map +1 -1
- package/dist/vue/components/Circle.vue.d.ts +0 -3
- package/dist/vue/components/Circle.vue.d.ts.map +1 -1
- package/dist/vue/components/ContourLines.vue.d.ts +54 -0
- package/dist/vue/components/ContourLines.vue.d.ts.map +1 -0
- package/dist/vue/components/CursorTrail.vue.d.ts +0 -3
- package/dist/vue/components/CursorTrail.vue.d.ts.map +1 -1
- package/dist/vue/components/DiffuseBlur.vue.d.ts +0 -3
- package/dist/vue/components/DiffuseBlur.vue.d.ts.map +1 -1
- package/dist/vue/components/Dither.vue.d.ts +0 -3
- package/dist/vue/components/Dither.vue.d.ts.map +1 -1
- package/dist/vue/components/DotGrid.vue.d.ts +0 -3
- package/dist/vue/components/DotGrid.vue.d.ts.map +1 -1
- package/dist/vue/components/Duotone.vue.d.ts +0 -3
- package/dist/vue/components/Duotone.vue.d.ts.map +1 -1
- package/dist/vue/components/FilmGrain.vue.d.ts +0 -3
- package/dist/vue/components/FilmGrain.vue.d.ts.map +1 -1
- package/dist/vue/components/FloatingParticles.vue.d.ts +0 -3
- package/dist/vue/components/FloatingParticles.vue.d.ts.map +1 -1
- package/dist/vue/components/FlowField.vue.d.ts +54 -0
- package/dist/vue/components/FlowField.vue.d.ts.map +1 -0
- package/dist/vue/components/GlassTiles.vue.d.ts +0 -3
- package/dist/vue/components/GlassTiles.vue.d.ts.map +1 -1
- package/dist/vue/components/Glitch.vue.d.ts +54 -0
- package/dist/vue/components/Glitch.vue.d.ts.map +1 -0
- package/dist/vue/components/Glow.vue.d.ts +0 -3
- package/dist/vue/components/Glow.vue.d.ts.map +1 -1
- package/dist/vue/components/Godrays.vue.d.ts +0 -3
- package/dist/vue/components/Godrays.vue.d.ts.map +1 -1
- package/dist/vue/components/Grayscale.vue.d.ts +0 -3
- package/dist/vue/components/Grayscale.vue.d.ts.map +1 -1
- package/dist/vue/components/Grid.vue.d.ts +0 -3
- package/dist/vue/components/Grid.vue.d.ts.map +1 -1
- package/dist/vue/components/GridDistortion.vue.d.ts +0 -3
- package/dist/vue/components/GridDistortion.vue.d.ts.map +1 -1
- package/dist/vue/components/Group.vue.d.ts +0 -3
- package/dist/vue/components/Group.vue.d.ts.map +1 -1
- package/dist/vue/components/Halftone.vue.d.ts +0 -3
- package/dist/vue/components/Halftone.vue.d.ts.map +1 -1
- package/dist/vue/components/HueShift.vue.d.ts +0 -3
- package/dist/vue/components/HueShift.vue.d.ts.map +1 -1
- package/dist/vue/components/ImageTexture.vue.d.ts +0 -3
- package/dist/vue/components/ImageTexture.vue.d.ts.map +1 -1
- package/dist/vue/components/Invert.vue.d.ts +0 -3
- package/dist/vue/components/Invert.vue.d.ts.map +1 -1
- package/dist/vue/components/Kaleidoscope.vue.d.ts +0 -3
- package/dist/vue/components/Kaleidoscope.vue.d.ts.map +1 -1
- package/dist/vue/components/LensFlare.vue.d.ts +54 -0
- package/dist/vue/components/LensFlare.vue.d.ts.map +1 -0
- package/dist/vue/components/LinearBlur.vue.d.ts +0 -3
- package/dist/vue/components/LinearBlur.vue.d.ts.map +1 -1
- package/dist/vue/components/LinearGradient.vue.d.ts +0 -3
- package/dist/vue/components/LinearGradient.vue.d.ts.map +1 -1
- package/dist/vue/components/Liquify.vue.d.ts +0 -3
- package/dist/vue/components/Liquify.vue.d.ts.map +1 -1
- package/dist/vue/components/Mirror.vue.d.ts +0 -3
- package/dist/vue/components/Mirror.vue.d.ts.map +1 -1
- package/dist/vue/components/Perspective.vue.d.ts +0 -3
- package/dist/vue/components/Perspective.vue.d.ts.map +1 -1
- package/dist/vue/components/Pixelate.vue.d.ts +0 -3
- package/dist/vue/components/Pixelate.vue.d.ts.map +1 -1
- package/dist/vue/components/Plasma.vue.d.ts +54 -0
- package/dist/vue/components/Plasma.vue.d.ts.map +1 -0
- package/dist/vue/components/PolarCoordinates.vue.d.ts +0 -3
- package/dist/vue/components/PolarCoordinates.vue.d.ts.map +1 -1
- package/dist/vue/components/Posterize.vue.d.ts +0 -3
- package/dist/vue/components/Posterize.vue.d.ts.map +1 -1
- package/dist/vue/components/ProgressiveBlur.vue.d.ts +0 -3
- package/dist/vue/components/ProgressiveBlur.vue.d.ts.map +1 -1
- package/dist/vue/components/RadialGradient.vue.d.ts +0 -3
- package/dist/vue/components/RadialGradient.vue.d.ts.map +1 -1
- package/dist/vue/components/RectangularCoordinates.vue.d.ts +0 -3
- package/dist/vue/components/RectangularCoordinates.vue.d.ts.map +1 -1
- package/dist/vue/components/Ripples.vue.d.ts +0 -3
- package/dist/vue/components/Ripples.vue.d.ts.map +1 -1
- package/dist/vue/components/Saturation.vue.d.ts +0 -3
- package/dist/vue/components/Saturation.vue.d.ts.map +1 -1
- package/dist/vue/components/Sharpness.vue.d.ts +0 -3
- package/dist/vue/components/Sharpness.vue.d.ts.map +1 -1
- package/dist/vue/components/Shatter.vue.d.ts +0 -3
- package/dist/vue/components/Shatter.vue.d.ts.map +1 -1
- package/dist/vue/components/SimplexNoise.vue.d.ts +0 -3
- package/dist/vue/components/SimplexNoise.vue.d.ts.map +1 -1
- package/dist/vue/components/SineWave.vue.d.ts +0 -3
- package/dist/vue/components/SineWave.vue.d.ts.map +1 -1
- package/dist/vue/components/SolidColor.vue.d.ts +0 -3
- package/dist/vue/components/SolidColor.vue.d.ts.map +1 -1
- package/dist/vue/components/Spherize.vue.d.ts +0 -3
- package/dist/vue/components/Spherize.vue.d.ts.map +1 -1
- package/dist/vue/components/Spiral.vue.d.ts +0 -3
- package/dist/vue/components/Spiral.vue.d.ts.map +1 -1
- package/dist/vue/components/Strands.vue.d.ts +0 -3
- package/dist/vue/components/Strands.vue.d.ts.map +1 -1
- package/dist/vue/components/Stretch.vue.d.ts +0 -3
- package/dist/vue/components/Stretch.vue.d.ts.map +1 -1
- package/dist/vue/components/Stripes.vue.d.ts +0 -3
- package/dist/vue/components/Stripes.vue.d.ts.map +1 -1
- package/dist/vue/components/Swirl.vue.d.ts +0 -3
- package/dist/vue/components/Swirl.vue.d.ts.map +1 -1
- package/dist/vue/components/TiltShift.vue.d.ts +0 -3
- package/dist/vue/components/TiltShift.vue.d.ts.map +1 -1
- package/dist/vue/components/Tint.vue.d.ts +0 -3
- package/dist/vue/components/Tint.vue.d.ts.map +1 -1
- package/dist/vue/components/Tritone.vue.d.ts +0 -3
- package/dist/vue/components/Tritone.vue.d.ts.map +1 -1
- package/dist/vue/components/Twirl.vue.d.ts +0 -3
- package/dist/vue/components/Twirl.vue.d.ts.map +1 -1
- package/dist/vue/components/Vibrance.vue.d.ts +0 -3
- package/dist/vue/components/Vibrance.vue.d.ts.map +1 -1
- package/dist/vue/components/VideoTexture.vue.d.ts +54 -0
- package/dist/vue/components/VideoTexture.vue.d.ts.map +1 -0
- package/dist/vue/components/WaveDistortion.vue.d.ts +0 -3
- package/dist/vue/components/WaveDistortion.vue.d.ts.map +1 -1
- package/dist/vue/components/WebcamTexture.vue.d.ts +0 -3
- package/dist/vue/components/WebcamTexture.vue.d.ts.map +1 -1
- package/dist/vue/components/ZoomBlur.vue.d.ts +0 -3
- package/dist/vue/components/ZoomBlur.vue.d.ts.map +1 -1
- package/dist/vue/index.d.ts +6 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +7 -1
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +520 -64
- package/package.json +49 -1
- package/dist/core/Dither-DWoCLL0e.js +0 -65
- package/dist/svelte/generatePresetCode-on2wdSC3.js +0 -403
- /package/dist/core/{Grayscale-BH3tLDGN.js → Grayscale-CAuZTuZN.js} +0 -0
- /package/dist/core/{Group-ByGv48Lm.js → Group-DYtNH5QD.js} +0 -0
- /package/dist/core/{Invert-w9duGaUu.js → Invert-ec-nb8PE.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as transformColor } from "./transformations-
|
|
1
|
+
import { r as transformColor } from "./transformations-CC_c-QAT.js";
|
|
2
2
|
import { t as createAnimatedTime } from "./time-BZqyVJXt.js";
|
|
3
3
|
import { Fn, cos, dot, float, floor, fract, length, min, mix, screenUV, sin, smoothstep, time, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
4
4
|
var hash1_2 = Fn(([p]) => {
|
|
@@ -22,7 +22,7 @@ var getParticleDistance = Fn(([uv$1, cellUV, randomness]) => {
|
|
|
22
22
|
});
|
|
23
23
|
const componentDefinition = {
|
|
24
24
|
name: "FloatingParticles",
|
|
25
|
-
category: "
|
|
25
|
+
category: "Textures",
|
|
26
26
|
description: "Animated floating particles with twinkle effects",
|
|
27
27
|
requiresRTT: false,
|
|
28
28
|
props: {
|
|
@@ -34,7 +34,8 @@ const componentDefinition = {
|
|
|
34
34
|
min: 0,
|
|
35
35
|
max: 1,
|
|
36
36
|
step: .1,
|
|
37
|
-
label: "Randomness"
|
|
37
|
+
label: "Randomness",
|
|
38
|
+
group: "Effect"
|
|
38
39
|
}
|
|
39
40
|
},
|
|
40
41
|
speed: {
|
|
@@ -45,7 +46,8 @@ const componentDefinition = {
|
|
|
45
46
|
min: 0,
|
|
46
47
|
max: 1,
|
|
47
48
|
step: .1,
|
|
48
|
-
label: "Speed"
|
|
49
|
+
label: "Speed",
|
|
50
|
+
group: "Animation"
|
|
49
51
|
}
|
|
50
52
|
},
|
|
51
53
|
angle: {
|
|
@@ -56,7 +58,8 @@ const componentDefinition = {
|
|
|
56
58
|
min: 0,
|
|
57
59
|
max: 360,
|
|
58
60
|
step: 1,
|
|
59
|
-
label: "Angle"
|
|
61
|
+
label: "Angle",
|
|
62
|
+
group: "Animation"
|
|
60
63
|
}
|
|
61
64
|
},
|
|
62
65
|
particleSize: {
|
|
@@ -67,7 +70,8 @@ const componentDefinition = {
|
|
|
67
70
|
min: .1,
|
|
68
71
|
max: 20,
|
|
69
72
|
step: .1,
|
|
70
|
-
label: "Particle Size"
|
|
73
|
+
label: "Particle Size",
|
|
74
|
+
group: "Effect"
|
|
71
75
|
}
|
|
72
76
|
},
|
|
73
77
|
particleSoftness: {
|
|
@@ -78,7 +82,8 @@ const componentDefinition = {
|
|
|
78
82
|
min: 0,
|
|
79
83
|
max: 5,
|
|
80
84
|
step: .1,
|
|
81
|
-
label: "Particle Softness"
|
|
85
|
+
label: "Particle Softness",
|
|
86
|
+
group: "Effect"
|
|
82
87
|
}
|
|
83
88
|
},
|
|
84
89
|
twinkle: {
|
|
@@ -89,7 +94,8 @@ const componentDefinition = {
|
|
|
89
94
|
min: 0,
|
|
90
95
|
max: 1,
|
|
91
96
|
step: .1,
|
|
92
|
-
label: "Twinkle"
|
|
97
|
+
label: "Twinkle",
|
|
98
|
+
group: "Animation"
|
|
93
99
|
}
|
|
94
100
|
},
|
|
95
101
|
count: {
|
|
@@ -100,7 +106,8 @@ const componentDefinition = {
|
|
|
100
106
|
min: 1,
|
|
101
107
|
max: 5,
|
|
102
108
|
step: 1,
|
|
103
|
-
label: "Count"
|
|
109
|
+
label: "Count",
|
|
110
|
+
group: "Effect"
|
|
104
111
|
}
|
|
105
112
|
},
|
|
106
113
|
particleColor: {
|
|
@@ -109,7 +116,8 @@ const componentDefinition = {
|
|
|
109
116
|
description: "Color of the particles",
|
|
110
117
|
ui: {
|
|
111
118
|
type: "color",
|
|
112
|
-
label: "Particle Color"
|
|
119
|
+
label: "Particle Color",
|
|
120
|
+
group: "Colors"
|
|
113
121
|
}
|
|
114
122
|
},
|
|
115
123
|
speedVariance: {
|
|
@@ -120,7 +128,8 @@ const componentDefinition = {
|
|
|
120
128
|
min: 0,
|
|
121
129
|
max: 1,
|
|
122
130
|
step: .1,
|
|
123
|
-
label: "Speed Variance"
|
|
131
|
+
label: "Speed Variance",
|
|
132
|
+
group: "Animation"
|
|
124
133
|
}
|
|
125
134
|
},
|
|
126
135
|
angleVariance: {
|
|
@@ -131,7 +140,8 @@ const componentDefinition = {
|
|
|
131
140
|
min: 0,
|
|
132
141
|
max: 180,
|
|
133
142
|
step: 1,
|
|
134
|
-
label: "Angle Variance"
|
|
143
|
+
label: "Angle Variance",
|
|
144
|
+
group: "Animation"
|
|
135
145
|
}
|
|
136
146
|
},
|
|
137
147
|
particleDensity: {
|
|
@@ -142,7 +152,8 @@ const componentDefinition = {
|
|
|
142
152
|
min: .5,
|
|
143
153
|
max: 3,
|
|
144
154
|
step: .1,
|
|
145
|
-
label: "Particle Density"
|
|
155
|
+
label: "Particle Density",
|
|
156
|
+
group: "Effect"
|
|
146
157
|
}
|
|
147
158
|
}
|
|
148
159
|
},
|
|
@@ -170,7 +181,7 @@ const componentDefinition = {
|
|
|
170
181
|
minDist = checkRight.select(min(minDist, getParticleDistance(uv$2, rootUV.add(vec2(1, 0)), uniforms.randomness.uniform)), minDist);
|
|
171
182
|
minDist = checkTop.select(min(minDist, getParticleDistance(uv$2, rootUV.add(vec2(0, -1)), uniforms.randomness.uniform)), minDist);
|
|
172
183
|
minDist = checkBottom.select(min(minDist, getParticleDistance(uv$2, rootUV.add(vec2(0, 1)), uniforms.randomness.uniform)), minDist);
|
|
173
|
-
const baseIntensity = smoothstep(
|
|
184
|
+
const baseIntensity = smoothstep(scaledSize.mul(.6), outerRadius, minDist).oneMinus();
|
|
174
185
|
const twinkleIntensity = uniforms.twinkle.uniform;
|
|
175
186
|
const particlePhase = rootUV.x.mul(12.9898).add(rootUV.y.mul(78.233)).sin().mul(43758.5453).fract();
|
|
176
187
|
const twinkleValue = sin(time.mul(2).add(particlePhase.mul(6.28318))).mul(.5).add(.5);
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { t as applyEdgeHandling } from "./edges-Bd7GP4s2.js";
|
|
2
|
+
import { o as transformEdges } from "./transformations-CC_c-QAT.js";
|
|
3
|
+
import { t as createAnimatedTime } from "./time-BZqyVJXt.js";
|
|
4
|
+
import { convertToTexture, cos, float, length, max, mx_noise_float, screenUV, sin, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
5
|
+
const componentDefinition = {
|
|
6
|
+
name: "FlowField",
|
|
7
|
+
category: "Distortions",
|
|
8
|
+
description: "Fluid-like distortion with constant smooth motion",
|
|
9
|
+
requiresRTT: true,
|
|
10
|
+
requiresChild: true,
|
|
11
|
+
props: {
|
|
12
|
+
strength: {
|
|
13
|
+
default: .15,
|
|
14
|
+
description: "Intensity of the flow distortion",
|
|
15
|
+
ui: {
|
|
16
|
+
type: "range",
|
|
17
|
+
min: 0,
|
|
18
|
+
max: .5,
|
|
19
|
+
step: .05,
|
|
20
|
+
label: "Strength",
|
|
21
|
+
group: "Effect"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
detail: {
|
|
25
|
+
default: 2,
|
|
26
|
+
description: "Scale of the flow patterns",
|
|
27
|
+
ui: {
|
|
28
|
+
type: "range",
|
|
29
|
+
min: .5,
|
|
30
|
+
max: 5,
|
|
31
|
+
step: .1,
|
|
32
|
+
label: "Detail",
|
|
33
|
+
group: "Effect"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
speed: {
|
|
37
|
+
default: 1,
|
|
38
|
+
description: "Speed of the flow",
|
|
39
|
+
ui: {
|
|
40
|
+
type: "range",
|
|
41
|
+
min: 0,
|
|
42
|
+
max: 5,
|
|
43
|
+
step: .1,
|
|
44
|
+
label: "Speed",
|
|
45
|
+
group: "Animation"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
edges: {
|
|
49
|
+
default: "mirror",
|
|
50
|
+
description: "How to handle edges when distortion pushes content out of bounds",
|
|
51
|
+
transform: transformEdges,
|
|
52
|
+
ui: {
|
|
53
|
+
type: "select",
|
|
54
|
+
options: [
|
|
55
|
+
{
|
|
56
|
+
label: "Stretch",
|
|
57
|
+
value: "stretch"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "Transparent",
|
|
61
|
+
value: "transparent"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: "Mirror",
|
|
65
|
+
value: "mirror"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: "Wrap",
|
|
69
|
+
value: "wrap"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
label: "Edges",
|
|
73
|
+
group: "Effect"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
fragmentNode: (params) => {
|
|
78
|
+
const { uniforms, childNode, onCleanup } = params;
|
|
79
|
+
if (!childNode) return vec4(0, 0, 0, 0);
|
|
80
|
+
const childTexture = convertToTexture(childNode);
|
|
81
|
+
onCleanup(() => {
|
|
82
|
+
if (childTexture?.renderTarget?.dispose) childTexture.renderTarget.dispose();
|
|
83
|
+
});
|
|
84
|
+
const time$1 = createAnimatedTime(params, uniforms.speed).mul(.1);
|
|
85
|
+
const aspect = viewportSize.x.div(viewportSize.y);
|
|
86
|
+
const aspectCorrectedUV = vec2(screenUV.x.mul(aspect), screenUV.y);
|
|
87
|
+
const scale = uniforms.detail.uniform;
|
|
88
|
+
const strength = uniforms.strength.uniform;
|
|
89
|
+
const drift1 = time$1.mul(.7);
|
|
90
|
+
const angle1 = mx_noise_float(vec3(aspectCorrectedUV.x.mul(scale).add(drift1.mul(.3)), aspectCorrectedUV.y.mul(scale).add(drift1.mul(.5)), drift1.mul(.2))).mul(Math.PI * 2);
|
|
91
|
+
const flow1 = vec2(cos(angle1), sin(angle1));
|
|
92
|
+
const drift2 = time$1.mul(.5);
|
|
93
|
+
const angle2 = mx_noise_float(vec3(aspectCorrectedUV.x.mul(scale.mul(2.3)).add(drift2.mul(-.4)).add(173.5), aspectCorrectedUV.y.mul(scale.mul(2.3)).add(drift2.mul(.3)).add(291.7), drift2.mul(.15).add(50))).mul(Math.PI * 2);
|
|
94
|
+
const flow2 = vec2(cos(angle2), sin(angle2));
|
|
95
|
+
const drift3 = time$1.mul(.3);
|
|
96
|
+
const angle3 = mx_noise_float(vec3(aspectCorrectedUV.x.mul(scale.mul(4.7)).add(drift3.mul(.2)).add(527.3), aspectCorrectedUV.y.mul(scale.mul(4.7)).add(drift3.mul(-.6)).add(839.1), drift3.mul(.1).add(100))).mul(Math.PI * 2);
|
|
97
|
+
const flow3 = vec2(cos(angle3), sin(angle3));
|
|
98
|
+
const combinedFlow = flow1.add(flow2.mul(.5)).add(flow3.mul(.25));
|
|
99
|
+
const flowLength = max(length(combinedFlow), float(.001));
|
|
100
|
+
const normalizedFlow = combinedFlow.div(flowLength);
|
|
101
|
+
const finalFlow = vec2(normalizedFlow.x.mul(strength).div(aspect), normalizedFlow.y.mul(strength));
|
|
102
|
+
const distortedUV = vec2(screenUV.x.add(finalFlow.x), screenUV.y.add(finalFlow.y));
|
|
103
|
+
return applyEdgeHandling(distortedUV, childTexture.sample(distortedUV), childTexture, uniforms.edges.uniform);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
var FlowField_default = componentDefinition;
|
|
107
|
+
export { componentDefinition as n, FlowField_default as t };
|
|
@@ -14,7 +14,8 @@ const componentDefinition = {
|
|
|
14
14
|
min: 0,
|
|
15
15
|
max: 10,
|
|
16
16
|
step: .1,
|
|
17
|
-
label: "Intensity"
|
|
17
|
+
label: "Intensity",
|
|
18
|
+
group: "Effect"
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
21
|
tileCount: {
|
|
@@ -25,7 +26,8 @@ const componentDefinition = {
|
|
|
25
26
|
min: 5,
|
|
26
27
|
max: 50,
|
|
27
28
|
step: 1,
|
|
28
|
-
label: "Tile Count"
|
|
29
|
+
label: "Tile Count",
|
|
30
|
+
group: "Effect"
|
|
29
31
|
}
|
|
30
32
|
},
|
|
31
33
|
rotation: {
|
|
@@ -36,7 +38,8 @@ const componentDefinition = {
|
|
|
36
38
|
min: 0,
|
|
37
39
|
max: 360,
|
|
38
40
|
step: 1,
|
|
39
|
-
label: "Rotation"
|
|
41
|
+
label: "Rotation",
|
|
42
|
+
group: "Effect"
|
|
40
43
|
}
|
|
41
44
|
},
|
|
42
45
|
roundness: {
|
|
@@ -47,7 +50,8 @@ const componentDefinition = {
|
|
|
47
50
|
min: 0,
|
|
48
51
|
max: 1,
|
|
49
52
|
step: .1,
|
|
50
|
-
label: "Roundness"
|
|
53
|
+
label: "Roundness",
|
|
54
|
+
group: "Effect"
|
|
51
55
|
}
|
|
52
56
|
}
|
|
53
57
|
},
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { Fn, abs, clamp, convertToTexture, float, floor, fract, mix, screenUV, sin, step, time, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
2
|
+
var hash11 = Fn(([p]) => {
|
|
3
|
+
return fract(sin(p.mul(78.233)).mul(43758.5453));
|
|
4
|
+
});
|
|
5
|
+
const componentDefinition = {
|
|
6
|
+
name: "Glitch",
|
|
7
|
+
category: "Stylize",
|
|
8
|
+
description: "Digital glitch that melts pixels and distorts colors",
|
|
9
|
+
requiresRTT: true,
|
|
10
|
+
requiresChild: true,
|
|
11
|
+
props: {
|
|
12
|
+
intensity: {
|
|
13
|
+
default: .5,
|
|
14
|
+
description: "Overall glitch strength and frequency of glitch bursts",
|
|
15
|
+
ui: {
|
|
16
|
+
type: "range",
|
|
17
|
+
min: 0,
|
|
18
|
+
max: 1,
|
|
19
|
+
step: .01,
|
|
20
|
+
label: "Intensity",
|
|
21
|
+
group: "Effect"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
speed: {
|
|
25
|
+
default: 1,
|
|
26
|
+
description: "How fast the glitch pattern evolves",
|
|
27
|
+
ui: {
|
|
28
|
+
type: "range",
|
|
29
|
+
min: .1,
|
|
30
|
+
max: 5,
|
|
31
|
+
step: .1,
|
|
32
|
+
label: "Speed",
|
|
33
|
+
group: "Effect"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
rgbShift: {
|
|
37
|
+
default: 5,
|
|
38
|
+
description: "Amount of chromatic aberration (RGB channel splitting)",
|
|
39
|
+
ui: {
|
|
40
|
+
type: "range",
|
|
41
|
+
min: 0,
|
|
42
|
+
max: 20,
|
|
43
|
+
step: .5,
|
|
44
|
+
label: "RGB Shift",
|
|
45
|
+
group: "Effect"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
blockDensity: {
|
|
49
|
+
default: 10,
|
|
50
|
+
description: "Base number of horizontal glitch bands",
|
|
51
|
+
ui: {
|
|
52
|
+
type: "range",
|
|
53
|
+
min: 2,
|
|
54
|
+
max: 50,
|
|
55
|
+
step: 1,
|
|
56
|
+
label: "Block Density",
|
|
57
|
+
group: "Effect"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
colorBarIntensity: {
|
|
61
|
+
default: .2,
|
|
62
|
+
description: "Intensity of vivid neon color bar overlay in glitch regions",
|
|
63
|
+
ui: {
|
|
64
|
+
type: "range",
|
|
65
|
+
min: 0,
|
|
66
|
+
max: 1,
|
|
67
|
+
step: .01,
|
|
68
|
+
label: "Color Bars",
|
|
69
|
+
group: "Effect"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
mirrorAmount: {
|
|
73
|
+
default: .3,
|
|
74
|
+
description: "Chance of glitch blocks showing mirrored/flipped content",
|
|
75
|
+
ui: {
|
|
76
|
+
type: "range",
|
|
77
|
+
min: 0,
|
|
78
|
+
max: 1,
|
|
79
|
+
step: .01,
|
|
80
|
+
label: "Mirror",
|
|
81
|
+
group: "Effect"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
scanlineIntensity: {
|
|
85
|
+
default: .2,
|
|
86
|
+
description: "Visibility of CRT-style horizontal scanlines in distorted areas",
|
|
87
|
+
ui: {
|
|
88
|
+
type: "range",
|
|
89
|
+
min: 0,
|
|
90
|
+
max: 1,
|
|
91
|
+
step: .01,
|
|
92
|
+
label: "Scanlines",
|
|
93
|
+
group: "Effect"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
fragmentNode: ({ uniforms, childNode, onCleanup }) => {
|
|
98
|
+
if (!childNode) return vec4(0, 0, 0, 0);
|
|
99
|
+
const childTexture = convertToTexture(childNode);
|
|
100
|
+
onCleanup(() => {
|
|
101
|
+
if (childTexture?.renderTarget?.dispose) childTexture.renderTarget.dispose();
|
|
102
|
+
});
|
|
103
|
+
const intensity = uniforms.intensity.uniform;
|
|
104
|
+
const speed = uniforms.speed.uniform;
|
|
105
|
+
const rgbShiftAmount = uniforms.rgbShift.uniform;
|
|
106
|
+
const blockDensity = uniforms.blockDensity.uniform;
|
|
107
|
+
const colorBarMix = uniforms.colorBarIntensity.uniform;
|
|
108
|
+
const mirrorChance = uniforms.mirrorAmount.uniform;
|
|
109
|
+
const scanlines = uniforms.scanlineIntensity.uniform;
|
|
110
|
+
const t = time.mul(speed);
|
|
111
|
+
const slowFrame = floor(t.mul(2.5));
|
|
112
|
+
const slowHash = hash11(slowFrame);
|
|
113
|
+
const slowPulse = slowHash.mul(slowHash).mul(slowHash);
|
|
114
|
+
const fastFrame = floor(t.mul(10));
|
|
115
|
+
const fastHash = hash11(fastFrame.add(73));
|
|
116
|
+
const fastPulse = fastHash.mul(fastHash);
|
|
117
|
+
const threshold = float(1).sub(intensity);
|
|
118
|
+
const majorBurst = step(threshold, slowPulse);
|
|
119
|
+
const minorFlicker = step(threshold.add(.15), fastPulse);
|
|
120
|
+
const glitchStrength = clamp(majorBurst.mul(.8).add(minorFlicker.mul(.4)), 0, 1).mul(intensity);
|
|
121
|
+
const bandY1 = floor(screenUV.y.mul(blockDensity));
|
|
122
|
+
const bandSeed1 = bandY1.mul(.37).add(slowFrame.mul(7.13));
|
|
123
|
+
const bandHash1 = hash11(bandSeed1);
|
|
124
|
+
const bandActive1 = step(float(1).sub(glitchStrength.mul(.5)), bandHash1);
|
|
125
|
+
const displace1 = hash11(bandSeed1.add(42)).sub(.5).mul(.25).mul(bandActive1);
|
|
126
|
+
const bandSeed2 = floor(screenUV.y.mul(blockDensity.mul(2))).mul(.53).add(fastFrame.mul(3.37));
|
|
127
|
+
const bandHash2 = hash11(bandSeed2);
|
|
128
|
+
const bandActive2 = step(float(1).sub(glitchStrength.mul(.7)), bandHash2);
|
|
129
|
+
const displace2 = hash11(bandSeed2.add(99)).sub(.5).mul(.12).mul(bandActive2);
|
|
130
|
+
const bandSeed3 = floor(screenUV.y.mul(blockDensity.mul(4))).mul(.71).add(fastFrame.mul(11.71));
|
|
131
|
+
const bandHash3 = hash11(bandSeed3);
|
|
132
|
+
const bandActive3 = step(float(1).sub(glitchStrength.mul(.9)), bandHash3);
|
|
133
|
+
const displace3 = hash11(bandSeed3.add(173)).sub(.5).mul(.05).mul(bandActive3);
|
|
134
|
+
const colX = floor(screenUV.x.mul(4));
|
|
135
|
+
const blockSeed = colX.mul(.41).add(bandY1.mul(.67)).add(slowFrame.mul(2.31));
|
|
136
|
+
const blockHash = hash11(blockSeed);
|
|
137
|
+
const blockActive = step(float(1).sub(glitchStrength.mul(.35)), blockHash);
|
|
138
|
+
const blockDisplace = hash11(blockSeed.add(77)).sub(.5).mul(.18).mul(blockActive);
|
|
139
|
+
const totalDisplaceX = displace1.add(displace2).add(displace3).add(blockDisplace);
|
|
140
|
+
const vertJitter = bandActive1.mul(hash11(bandSeed1.add(200)).sub(.5)).mul(.012);
|
|
141
|
+
const displacedUV = vec2(clamp(screenUV.x.add(totalDisplaceX.mul(glitchStrength)), 0, 1), clamp(screenUV.y.add(vertJitter.mul(glitchStrength)), 0, 1));
|
|
142
|
+
const mirrorSeed = colX.mul(.83).add(bandY1.mul(1.17)).add(slowFrame.mul(4.57));
|
|
143
|
+
const hMirrorHash = hash11(mirrorSeed);
|
|
144
|
+
const vMirrorHash = hash11(mirrorSeed.add(500));
|
|
145
|
+
const hMirrorActive = step(float(1).sub(mirrorChance.mul(glitchStrength)), hMirrorHash).mul(bandActive1);
|
|
146
|
+
const vMirrorActive = step(float(1).sub(mirrorChance.mul(glitchStrength).mul(.4)), vMirrorHash).mul(bandActive1);
|
|
147
|
+
const mirroredUV = vec2(mix(displacedUV.x, float(1).sub(displacedUV.x), hMirrorActive), mix(displacedUV.y, float(1).sub(displacedUV.y), vMirrorActive));
|
|
148
|
+
const rgbOffset = rgbShiftAmount.mul(.003).mul(glitchStrength.add(abs(totalDisplaceX).mul(2)));
|
|
149
|
+
const redUV = vec2(clamp(mirroredUV.x.add(rgbOffset), 0, 1), mirroredUV.y);
|
|
150
|
+
const blueUV = vec2(clamp(mirroredUV.x.sub(rgbOffset), 0, 1), mirroredUV.y);
|
|
151
|
+
const rSample = childTexture.sample(redUV).r;
|
|
152
|
+
const gSample = childTexture.sample(mirroredUV).g;
|
|
153
|
+
const bSample = childTexture.sample(blueUV).b;
|
|
154
|
+
const glitchedColor = vec3(rSample, gSample, bSample);
|
|
155
|
+
const fillStyleHash = hash11(blockSeed.add(555));
|
|
156
|
+
const barOffset = hash11(bandY1.add(slowFrame.mul(3.33)).add(333));
|
|
157
|
+
const barIndex = floor(fract(screenUV.x.mul(3).add(barOffset.mul(7))).mul(7));
|
|
158
|
+
const smpteColor = vec3(float(1).sub(step(float(2), barIndex)).add(step(float(4), barIndex).mul(float(1).sub(step(float(6), barIndex)))), float(1).sub(step(float(4), barIndex)), float(1).sub(step(float(.5), fract(barIndex.mul(.5)))));
|
|
159
|
+
const sh6 = fract(hash11(bandY1.add(13)).mul(.8).add(slowFrame.mul(.07))).mul(6);
|
|
160
|
+
const withBars = mix(glitchedColor, mix(vec3(clamp(abs(sh6.sub(3)).sub(1), 0, 1), clamp(float(2).sub(abs(sh6.sub(2))), 0, 1), clamp(float(2).sub(abs(sh6.sub(4))), 0, 1)).mul(1.3), smpteColor, step(float(.5), fillStyleHash)), bandActive1.mul(blockActive).mul(colorBarMix).mul(glitchStrength));
|
|
161
|
+
const anyDistortion = clamp(bandActive1.add(bandActive2).add(bandActive3), 0, 1);
|
|
162
|
+
const scanlineWave = sin(screenUV.y.mul(viewportSize.y).mul(float(3.14159265))).mul(.5).add(.5);
|
|
163
|
+
const scanlineEffect = float(1).sub(scanlines.mul(scanlineWave).mul(.3).mul(anyDistortion));
|
|
164
|
+
return vec4(withBars.mul(scanlineEffect), float(1));
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
var Glitch_default = componentDefinition;
|
|
168
|
+
export { componentDefinition as n, Glitch_default as t };
|
|
@@ -14,7 +14,8 @@ const componentDefinition = {
|
|
|
14
14
|
min: 0,
|
|
15
15
|
max: 10,
|
|
16
16
|
step: .1,
|
|
17
|
-
label: "Intensity"
|
|
17
|
+
label: "Intensity",
|
|
18
|
+
group: "Effect"
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
21
|
threshold: {
|
|
@@ -25,7 +26,8 @@ const componentDefinition = {
|
|
|
25
26
|
min: 0,
|
|
26
27
|
max: 1,
|
|
27
28
|
step: .1,
|
|
28
|
-
label: "Threshold"
|
|
29
|
+
label: "Threshold",
|
|
30
|
+
group: "Effect"
|
|
29
31
|
}
|
|
30
32
|
},
|
|
31
33
|
size: {
|
|
@@ -36,7 +38,8 @@ const componentDefinition = {
|
|
|
36
38
|
min: 1,
|
|
37
39
|
max: 20,
|
|
38
40
|
step: .1,
|
|
39
|
-
label: "Glow Size"
|
|
41
|
+
label: "Glow Size",
|
|
42
|
+
group: "Effect"
|
|
40
43
|
}
|
|
41
44
|
}
|
|
42
45
|
},
|
|
@@ -47,23 +50,53 @@ const componentDefinition = {
|
|
|
47
50
|
if (childTexture?.renderTarget?.dispose) childTexture.renderTarget.dispose();
|
|
48
51
|
});
|
|
49
52
|
const originalColor = childTexture.sample(screenUV);
|
|
50
|
-
const
|
|
53
|
+
const weights = [
|
|
54
|
+
.056,
|
|
55
|
+
.135,
|
|
56
|
+
.278,
|
|
57
|
+
.487,
|
|
58
|
+
.726,
|
|
59
|
+
.923,
|
|
60
|
+
1,
|
|
61
|
+
.923,
|
|
62
|
+
.726,
|
|
63
|
+
.487,
|
|
64
|
+
.278,
|
|
65
|
+
.135,
|
|
66
|
+
.056
|
|
67
|
+
];
|
|
68
|
+
const weightSum = 6.214;
|
|
69
|
+
const horizontalTexture = convertToTexture(Fn(() => {
|
|
51
70
|
const blurRadius = uniforms.size.uniform;
|
|
52
71
|
const threshold = uniforms.threshold.uniform;
|
|
53
72
|
const pixelSize = vec2(1).div(viewportSize);
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const offset = vec2(float(
|
|
58
|
-
const
|
|
59
|
-
const sampleColor = childTexture.sample(
|
|
73
|
+
const total = vec4(0).toVar();
|
|
74
|
+
for (let x = -6; x <= 6; x++) {
|
|
75
|
+
const weight = float(weights[x + 6] / weightSum);
|
|
76
|
+
const offset = vec2(float(x), float(0)).mul(blurRadius).mul(pixelSize);
|
|
77
|
+
const sampleCoord = screenUV.add(offset);
|
|
78
|
+
const sampleColor = childTexture.sample(sampleCoord);
|
|
60
79
|
const luminance = dot(sampleColor.rgb, vec3(.299, .587, .114));
|
|
61
80
|
const brightnessMask = max(float(0), luminance.sub(threshold));
|
|
62
81
|
const brightColor = sampleColor.mul(brightnessMask);
|
|
63
|
-
|
|
82
|
+
total.assign(total.add(brightColor.mul(weight)));
|
|
83
|
+
}
|
|
84
|
+
return total;
|
|
85
|
+
})());
|
|
86
|
+
onCleanup(() => {
|
|
87
|
+
if (horizontalTexture?.renderTarget?.dispose) horizontalTexture.renderTarget.dispose();
|
|
88
|
+
});
|
|
89
|
+
const glowEffect = Fn(() => {
|
|
90
|
+
const blurRadius = uniforms.size.uniform;
|
|
91
|
+
const pixelSize = vec2(1).div(viewportSize);
|
|
92
|
+
const total = vec4(0).toVar();
|
|
93
|
+
for (let y = -6; y <= 6; y++) {
|
|
94
|
+
const weight = float(weights[y + 6] / weightSum);
|
|
95
|
+
const offset = vec2(float(0), float(y)).mul(blurRadius).mul(pixelSize);
|
|
96
|
+
const sampleCoord = screenUV.add(offset);
|
|
97
|
+
total.assign(total.add(horizontalTexture.sample(sampleCoord).mul(weight)));
|
|
64
98
|
}
|
|
65
|
-
|
|
66
|
-
return blurredGlow.div(totalSamples);
|
|
99
|
+
return total;
|
|
67
100
|
})();
|
|
68
101
|
const intensity = uniforms.intensity.uniform;
|
|
69
102
|
const intensifiedGlow = glowEffect.mul(intensity);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as transformColor, s as transformPosition } from "./transformations-
|
|
1
|
+
import { r as transformColor, s as transformPosition } from "./transformations-CC_c-QAT.js";
|
|
2
2
|
import { t as createAnimatedTime } from "./time-BZqyVJXt.js";
|
|
3
3
|
import { Fn, PI, abs, atan, clamp, float, length, mix, pow, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
|
|
4
4
|
const componentDefinition = {
|
|
5
5
|
name: "Godrays",
|
|
6
|
-
category: "
|
|
6
|
+
category: "Textures",
|
|
7
7
|
description: "Volumetric light rays emanating from a point",
|
|
8
8
|
requiresRTT: false,
|
|
9
9
|
props: {
|
|
@@ -16,7 +16,8 @@ const componentDefinition = {
|
|
|
16
16
|
description: "The center point of the god rays",
|
|
17
17
|
ui: {
|
|
18
18
|
type: "position",
|
|
19
|
-
label: "Center"
|
|
19
|
+
label: "Center",
|
|
20
|
+
group: "Position"
|
|
20
21
|
}
|
|
21
22
|
},
|
|
22
23
|
density: {
|
|
@@ -27,7 +28,8 @@ const componentDefinition = {
|
|
|
27
28
|
min: 0,
|
|
28
29
|
max: 1,
|
|
29
30
|
step: .1,
|
|
30
|
-
label: "Density"
|
|
31
|
+
label: "Density",
|
|
32
|
+
group: "Effect"
|
|
31
33
|
}
|
|
32
34
|
},
|
|
33
35
|
intensity: {
|
|
@@ -38,7 +40,8 @@ const componentDefinition = {
|
|
|
38
40
|
min: 0,
|
|
39
41
|
max: 1,
|
|
40
42
|
step: .1,
|
|
41
|
-
label: "Intensity"
|
|
43
|
+
label: "Intensity",
|
|
44
|
+
group: "Effect"
|
|
42
45
|
}
|
|
43
46
|
},
|
|
44
47
|
spotty: {
|
|
@@ -49,7 +52,8 @@ const componentDefinition = {
|
|
|
49
52
|
min: 0,
|
|
50
53
|
max: 1,
|
|
51
54
|
step: .1,
|
|
52
|
-
label: "Spotty"
|
|
55
|
+
label: "Spotty",
|
|
56
|
+
group: "Effect"
|
|
53
57
|
}
|
|
54
58
|
},
|
|
55
59
|
speed: {
|
|
@@ -60,7 +64,8 @@ const componentDefinition = {
|
|
|
60
64
|
min: 0,
|
|
61
65
|
max: 2,
|
|
62
66
|
step: .1,
|
|
63
|
-
label: "Speed"
|
|
67
|
+
label: "Speed",
|
|
68
|
+
group: "Animation"
|
|
64
69
|
}
|
|
65
70
|
},
|
|
66
71
|
rayColor: {
|
|
@@ -69,7 +74,8 @@ const componentDefinition = {
|
|
|
69
74
|
description: "Color of the light rays",
|
|
70
75
|
ui: {
|
|
71
76
|
type: "color",
|
|
72
|
-
label: "Ray Color"
|
|
77
|
+
label: "Ray Color",
|
|
78
|
+
group: "Colors"
|
|
73
79
|
}
|
|
74
80
|
},
|
|
75
81
|
backgroundColor: {
|
|
@@ -78,7 +84,8 @@ const componentDefinition = {
|
|
|
78
84
|
description: "Background color",
|
|
79
85
|
ui: {
|
|
80
86
|
type: "color",
|
|
81
|
-
label: "Background Color"
|
|
87
|
+
label: "Background Color",
|
|
88
|
+
group: "Colors"
|
|
82
89
|
}
|
|
83
90
|
}
|
|
84
91
|
},
|
|
@@ -102,12 +109,14 @@ const componentDefinition = {
|
|
|
102
109
|
const u = f.mul(f).mul(f.mul(-2).add(3));
|
|
103
110
|
return mix(mix(a, b, u.x), mix(c, d, u.x), u.y);
|
|
104
111
|
});
|
|
105
|
-
const
|
|
106
|
-
|
|
112
|
+
const angle = atan(shapeUV.y, shapeUV.x);
|
|
113
|
+
const angleWrapped = angle.mod(PI.mul(2));
|
|
114
|
+
const blendFactor = smoothstep(-.15, .15, shapeUV.x);
|
|
115
|
+
const raysShape = Fn(([a, aWrapped, blend, r, freq, intensity]) => {
|
|
107
116
|
const left = vec2(a.mul(freq), r);
|
|
108
|
-
const right = vec2(
|
|
117
|
+
const right = vec2(aWrapped.mul(freq), r);
|
|
109
118
|
const nLeft = pow(valueNoise(left), intensity);
|
|
110
|
-
return mix(pow(valueNoise(right), intensity), nLeft,
|
|
119
|
+
return mix(pow(valueNoise(right), intensity), nLeft, blend);
|
|
111
120
|
});
|
|
112
121
|
const animTime = createAnimatedTime(params, uniforms.speed).mul(.2);
|
|
113
122
|
const rayEffect = Fn(() => {
|
|
@@ -119,14 +128,14 @@ const componentDefinition = {
|
|
|
119
128
|
const r1 = radius.mul(1).sub(animTime.mul(3));
|
|
120
129
|
const r2 = radius.mul(.5).mul(float(1).add(spots)).sub(animTime.mul(2));
|
|
121
130
|
const f1 = density.mul(5);
|
|
122
|
-
const ray = raysShape(
|
|
123
|
-
ray.assign(ray.mul(raysShape(
|
|
131
|
+
const ray = raysShape(angle, angleWrapped, blendFactor, r1, f1, intensityCalc).toVar();
|
|
132
|
+
ray.assign(ray.mul(raysShape(angle, angleWrapped, blendFactor, r2, f1.mul(4), intensityCalc)));
|
|
124
133
|
accumRay.assign(accumRay.add(ray));
|
|
125
134
|
const r3 = radius.mul(1.4).sub(animTime.mul(2.5));
|
|
126
135
|
const r4 = radius.mul(.7).mul(float(1).add(spots)).sub(animTime.mul(1.8));
|
|
127
136
|
const f2 = density.mul(4.5);
|
|
128
|
-
const ray2 = raysShape(
|
|
129
|
-
ray2.assign(ray2.mul(raysShape(
|
|
137
|
+
const ray2 = raysShape(angle, angleWrapped, blendFactor, r3, f2, intensityCalc).toVar();
|
|
138
|
+
ray2.assign(ray2.mul(raysShape(angle, angleWrapped, blendFactor, r4, f2.mul(3.5), intensityCalc)));
|
|
130
139
|
accumRay.assign(accumRay.add(ray2.mul(.7)));
|
|
131
140
|
return clamp(accumRay, 0, 1);
|
|
132
141
|
})();
|