shaders 2.5.117 → 2.5.119
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/core/BarShift-2XBhva1A.js +141 -0
- package/dist/core/{Blur-DG7lJKPo.js → Blur-5_t3tR_g.js} +1 -1
- package/dist/core/BrickPattern-BfTsjp4I.js +175 -0
- package/dist/core/{ChannelBlur-BhcCkwcO.js → ChannelBlur-DWgS3nhn.js} +1 -1
- package/dist/core/Chevron-BKZjAXR_.js +142 -0
- package/dist/core/ColorWheel-BQUKQPM-.js +140 -0
- package/dist/core/{Crescent-DiioCL2k.js → Crescent-ppz7W7eM.js} +1 -1
- package/dist/core/{Cross-CxQTHuxC.js → Cross-BfNOtQ6s.js} +1 -1
- package/dist/core/{Crystal-B3iO7o_n.js → Crystal-QsQoy8fZ.js} +1 -1
- package/dist/core/{Ellipse-iwH-zEvD.js → Ellipse-sWhNvW9-.js} +1 -1
- package/dist/core/{Emboss-B4i61QDT.js → Emboss-DGaubb9x.js} +1 -1
- package/dist/core/{Flower-CdHVKJKu.js → Flower-BbRNrXIa.js} +1 -1
- package/dist/core/FractalNoise-Ccufnbw6.js +184 -0
- package/dist/core/{Glass-B19xsZLn.js → Glass-CXT1jdLw.js} +2 -2
- package/dist/core/{Glow-CsTZA75y.js → Glow-5PP4-rM9.js} +1 -1
- package/dist/core/Marble-DkHLcqFD.js +124 -0
- package/dist/core/{Neon-BeGABHrs.js → Neon-DQDB7hAE.js} +1 -1
- package/dist/core/{Polygon-_3DSqSBg.js → Polygon-C6_siOs0.js} +1 -1
- package/dist/core/{ProgressiveBlur-Dh8W2bZ3.js → ProgressiveBlur-BJwJ5mE0.js} +1 -1
- package/dist/core/{Ring-4J6h5Iof.js → Ring-CtnDtTY8.js} +1 -1
- package/dist/core/{RoundedRect-Dj-gqOc0.js → RoundedRect-tnt7Jr5b.js} +1 -1
- package/dist/core/{SmokeFill-rM9vUIm4.js → SmokeFill-DzEtYeKN.js} +1 -1
- package/dist/core/{Star-CJ4mkBZg.js → Star-0Flymgm9.js} +1 -1
- package/dist/core/SunBurst-D9X1-buZ.js +127 -0
- package/dist/core/{TiltShift-DSQ-CsXz.js → TiltShift-r4qzPb2k.js} +1 -1
- package/dist/core/{Trapezoid-P9gXhH9a.js → Trapezoid-JmybJMUr.js} +1 -1
- package/dist/core/{Vesica-DYov_i53.js → Vesica-D7iqgpJg.js} +1 -1
- package/dist/core/{VideoTexture-Cr1f0IOE.js → VideoTexture-D9XxE1Hw.js} +1 -1
- package/dist/core/{WebcamTexture-BQJpZvC5.js → WebcamTexture-9Td8qQWm.js} +1 -1
- package/dist/core/index.js +179 -121
- package/dist/core/registry.js +117 -110
- package/dist/core/renderer.d.ts.map +1 -1
- package/dist/core/shaderRegistry-CO5SCxc6.js +270 -0
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/BarShift/index.d.ts +47 -0
- package/dist/core/shaders/BarShift/index.d.ts.map +1 -0
- package/dist/core/shaders/BarShift/index.js +6 -0
- package/dist/core/shaders/Beam/index.js +1 -1
- package/dist/core/shaders/Blob/index.js +1 -1
- package/dist/core/shaders/Blur/index.js +2 -2
- package/dist/core/shaders/BrickPattern/index.d.ts +79 -0
- package/dist/core/shaders/BrickPattern/index.d.ts.map +1 -0
- package/dist/core/shaders/BrickPattern/index.js +5 -0
- package/dist/core/shaders/BrightnessContrast/index.js +1 -1
- package/dist/core/shaders/Bulge/index.js +1 -1
- package/dist/core/shaders/CRTScreen/index.js +1 -1
- package/dist/core/shaders/ChannelBlur/index.js +2 -2
- package/dist/core/shaders/Checkerboard/index.js +1 -1
- package/dist/core/shaders/Chevron/index.d.ts +66 -0
- package/dist/core/shaders/Chevron/index.d.ts.map +1 -0
- package/dist/core/shaders/Chevron/index.js +5 -0
- package/dist/core/shaders/ChromaFlow/index.js +1 -1
- package/dist/core/shaders/ChromaticAberration/index.js +1 -1
- package/dist/core/shaders/Circle/index.js +1 -1
- package/dist/core/shaders/ColorWheel/index.d.ts +62 -0
- package/dist/core/shaders/ColorWheel/index.d.ts.map +1 -0
- package/dist/core/shaders/ColorWheel/index.js +5 -0
- package/dist/core/shaders/ConcentricSpin/index.js +1 -1
- package/dist/core/shaders/ConicGradient/index.js +1 -1
- package/dist/core/shaders/ContourLines/index.js +1 -1
- package/dist/core/shaders/Crescent/index.js +2 -2
- package/dist/core/shaders/Cross/index.js +2 -2
- package/dist/core/shaders/Crystal/index.js +2 -2
- package/dist/core/shaders/CursorRipples/index.js +1 -1
- package/dist/core/shaders/CursorTrail/index.js +1 -1
- package/dist/core/shaders/DOMTexture/index.js +1 -1
- package/dist/core/shaders/DiamondGradient/index.js +1 -1
- package/dist/core/shaders/DiffuseBlur/index.js +1 -1
- package/dist/core/shaders/Dither/index.js +1 -1
- package/dist/core/shaders/DotGrid/index.js +1 -1
- package/dist/core/shaders/DropShadow/index.js +1 -1
- package/dist/core/shaders/Duotone/index.js +1 -1
- package/dist/core/shaders/Ellipse/index.js +2 -2
- package/dist/core/shaders/Emboss/index.js +2 -2
- package/dist/core/shaders/FallingLines/index.js +1 -1
- package/dist/core/shaders/FilmGrain/index.js +1 -1
- package/dist/core/shaders/FloatingParticles/index.js +1 -1
- package/dist/core/shaders/FlowField/index.js +1 -1
- package/dist/core/shaders/Flower/index.js +2 -2
- package/dist/core/shaders/FlowingGradient/index.js +1 -1
- package/dist/core/shaders/FlutedGlass/index.js +1 -1
- package/dist/core/shaders/Fog/index.js +1 -1
- package/dist/core/shaders/Form3D/index.js +1 -1
- package/dist/core/shaders/FractalNoise/index.d.ts +67 -0
- package/dist/core/shaders/FractalNoise/index.d.ts.map +1 -0
- package/dist/core/shaders/FractalNoise/index.js +5 -0
- package/dist/core/shaders/Glass/index.js +3 -3
- package/dist/core/shaders/GlassTiles/index.js +1 -1
- package/dist/core/shaders/Glitch/index.js +1 -1
- package/dist/core/shaders/Glow/index.js +2 -2
- package/dist/core/shaders/Godrays/index.js +1 -1
- package/dist/core/shaders/Grayscale/index.js +1 -1
- package/dist/core/shaders/Grid/index.js +1 -1
- package/dist/core/shaders/GridDistortion/index.js +1 -1
- package/dist/core/shaders/Group/index.js +1 -1
- package/dist/core/shaders/Halftone/index.js +1 -1
- package/dist/core/shaders/HexGrid/index.js +1 -1
- package/dist/core/shaders/HueShift/index.js +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.js +1 -1
- package/dist/core/shaders/LensFlare/index.js +1 -1
- package/dist/core/shaders/LinearBlur/index.js +1 -1
- package/dist/core/shaders/LinearGradient/index.js +1 -1
- package/dist/core/shaders/Liquify/index.js +1 -1
- package/dist/core/shaders/Marble/index.d.ts +61 -0
- package/dist/core/shaders/Marble/index.d.ts.map +1 -0
- package/dist/core/shaders/Marble/index.js +5 -0
- package/dist/core/shaders/Mirror/index.js +1 -1
- package/dist/core/shaders/MultiPointGradient/index.js +1 -1
- package/dist/core/shaders/Neon/index.js +2 -2
- package/dist/core/shaders/Paper/index.js +1 -1
- package/dist/core/shaders/Perspective/index.js +1 -1
- package/dist/core/shaders/Pixelate/index.js +1 -1
- package/dist/core/shaders/Plasma/index.js +1 -1
- package/dist/core/shaders/PolarCoordinates/index.js +1 -1
- package/dist/core/shaders/Polygon/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.js +1 -1
- package/dist/core/shaders/RectangularCoordinates/index.js +1 -1
- package/dist/core/shaders/Ring/index.js +2 -2
- package/dist/core/shaders/Ripples/index.js +1 -1
- package/dist/core/shaders/RoundedRect/index.js +2 -2
- package/dist/core/shaders/Saturation/index.js +1 -1
- package/dist/core/shaders/Sharpness/index.js +1 -1
- package/dist/core/shaders/Shatter/index.js +1 -1
- package/dist/core/shaders/SimplexNoise/index.js +1 -1
- package/dist/core/shaders/SineWave/index.js +1 -1
- package/dist/core/shaders/Smoke/index.js +1 -1
- package/dist/core/shaders/SmokeFill/index.js +2 -2
- package/dist/core/shaders/Solarize/index.js +1 -1
- package/dist/core/shaders/SolidColor/index.js +1 -1
- package/dist/core/shaders/Spherize/index.js +1 -1
- package/dist/core/shaders/Spiral/index.js +1 -1
- package/dist/core/shaders/Star/index.js +2 -2
- package/dist/core/shaders/Strands/index.js +1 -1
- package/dist/core/shaders/Stretch/index.js +1 -1
- package/dist/core/shaders/Stripes/index.js +1 -1
- package/dist/core/shaders/StudioBackground/index.js +1 -1
- package/dist/core/shaders/SunBurst/index.d.ts +61 -0
- package/dist/core/shaders/SunBurst/index.d.ts.map +1 -0
- package/dist/core/shaders/SunBurst/index.js +4 -0
- package/dist/core/shaders/Swirl/index.js +1 -1
- package/dist/core/shaders/TiltShift/index.js +2 -2
- package/dist/core/shaders/Tint/index.js +1 -1
- package/dist/core/shaders/Trapezoid/index.js +2 -2
- package/dist/core/shaders/Tritone/index.js +1 -1
- package/dist/core/shaders/Truchet/index.js +1 -1
- package/dist/core/shaders/Twirl/index.js +1 -1
- package/dist/core/shaders/VHS/index.js +1 -1
- package/dist/core/shaders/Vesica/index.js +2 -2
- package/dist/core/shaders/Vibrance/index.js +1 -1
- package/dist/core/shaders/VideoTexture/index.js +2 -2
- package/dist/core/shaders/Vignette/index.js +1 -1
- package/dist/core/shaders/Voronoi/index.js +1 -1
- package/dist/core/shaders/WaveDistortion/index.js +1 -1
- package/dist/core/shaders/Weave/index.js +1 -1
- package/dist/core/shaders/WebcamTexture/index.js +2 -2
- package/dist/core/shaders/WorleyNoise/index.js +1 -1
- package/dist/core/shaders/ZoomBlur/index.js +1 -1
- package/dist/js/createShader.js +1 -1
- package/dist/js/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/js/utils/generatePresetCode.js +97 -0
- package/dist/react/BarShift.js +217 -0
- package/dist/react/BrickPattern.js +217 -0
- package/dist/react/Chevron.js +217 -0
- package/dist/react/ColorWheel.js +217 -0
- package/dist/react/FractalNoise.js +217 -0
- package/dist/react/Marble.js +217 -0
- package/dist/react/Preview.js +7 -0
- package/dist/react/Shader.js +1 -1
- package/dist/react/SunBurst.js +217 -0
- package/dist/react/bundle.js +268 -268
- package/dist/react/components/BarShift.d.ts +35 -0
- package/dist/react/components/BarShift.d.ts.map +1 -0
- package/dist/react/components/BrickPattern.d.ts +38 -0
- package/dist/react/components/BrickPattern.d.ts.map +1 -0
- package/dist/react/components/Chevron.d.ts +37 -0
- package/dist/react/components/Chevron.d.ts.map +1 -0
- package/dist/react/components/ColorWheel.d.ts +34 -0
- package/dist/react/components/ColorWheel.d.ts.map +1 -0
- package/dist/react/components/FractalNoise.d.ts +36 -0
- package/dist/react/components/FractalNoise.d.ts.map +1 -0
- package/dist/react/components/Marble.d.ts +35 -0
- package/dist/react/components/Marble.d.ts.map +1 -0
- package/dist/react/components/SunBurst.d.ts +36 -0
- package/dist/react/components/SunBurst.d.ts.map +1 -0
- package/dist/react/engine/Preview.d.ts.map +1 -1
- package/dist/react/index.d.ts +7 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +8 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +97 -0
- package/dist/registry.js +2160 -258
- package/dist/solid/components/BarShift.d.ts +32 -0
- package/dist/solid/components/BarShift.d.ts.map +1 -0
- package/dist/solid/components/BarShift.js +228 -0
- package/dist/solid/components/BrickPattern.d.ts +35 -0
- package/dist/solid/components/BrickPattern.d.ts.map +1 -0
- package/dist/solid/components/BrickPattern.js +228 -0
- package/dist/solid/components/Chevron.d.ts +34 -0
- package/dist/solid/components/Chevron.d.ts.map +1 -0
- package/dist/solid/components/Chevron.js +228 -0
- package/dist/solid/components/ColorWheel.d.ts +31 -0
- package/dist/solid/components/ColorWheel.d.ts.map +1 -0
- package/dist/solid/components/ColorWheel.js +228 -0
- package/dist/solid/components/FractalNoise.d.ts +33 -0
- package/dist/solid/components/FractalNoise.d.ts.map +1 -0
- package/dist/solid/components/FractalNoise.js +228 -0
- package/dist/solid/components/Marble.d.ts +32 -0
- package/dist/solid/components/Marble.d.ts.map +1 -0
- package/dist/solid/components/Marble.js +228 -0
- package/dist/solid/components/SunBurst.d.ts +33 -0
- package/dist/solid/components/SunBurst.d.ts.map +1 -0
- package/dist/solid/components/SunBurst.js +228 -0
- package/dist/solid/engine/Preview.d.ts.map +1 -1
- package/dist/solid/engine/Preview.js +196 -182
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/solid/index.d.ts +7 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +230 -216
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +97 -0
- package/dist/svelte/components/BarShift.svelte.d.ts +22 -0
- package/dist/svelte/components/BrickPattern.svelte.d.ts +25 -0
- package/dist/svelte/components/Chevron.svelte.d.ts +24 -0
- package/dist/svelte/components/ColorWheel.svelte.d.ts +21 -0
- package/dist/svelte/components/FractalNoise.svelte.d.ts +23 -0
- package/dist/svelte/components/Marble.svelte.d.ts +22 -0
- package/dist/svelte/components/SunBurst.svelte.d.ts +23 -0
- package/dist/svelte/index.d.ts +7 -0
- package/dist/svelte/index.js +2049 -649
- package/dist/svelte/source/components/BarShift.svelte +328 -0
- package/dist/svelte/source/components/BrickPattern.svelte +331 -0
- package/dist/svelte/source/components/Chevron.svelte +330 -0
- package/dist/svelte/source/components/ColorWheel.svelte +327 -0
- package/dist/svelte/source/components/FractalNoise.svelte +329 -0
- package/dist/svelte/source/components/Marble.svelte +328 -0
- package/dist/svelte/source/components/SunBurst.svelte +329 -0
- package/dist/svelte/source/engine/Preview.svelte +14 -0
- package/dist/svelte/source/index.js +7 -0
- package/dist/svelte/utils/generatePresetCode.js +97 -0
- package/dist/vue/BarShift.js +3 -0
- package/dist/vue/BarShift.vue_vue_type_script_setup_true_lang.js +218 -0
- package/dist/vue/BrickPattern.js +3 -0
- package/dist/vue/BrickPattern.vue_vue_type_script_setup_true_lang.js +223 -0
- package/dist/vue/Chevron.js +3 -0
- package/dist/vue/Chevron.vue_vue_type_script_setup_true_lang.js +221 -0
- package/dist/vue/ColorWheel.js +3 -0
- package/dist/vue/ColorWheel.vue_vue_type_script_setup_true_lang.js +220 -0
- package/dist/vue/FractalNoise.js +3 -0
- package/dist/vue/FractalNoise.vue_vue_type_script_setup_true_lang.js +221 -0
- package/dist/vue/Marble.js +3 -0
- package/dist/vue/Marble.vue_vue_type_script_setup_true_lang.js +220 -0
- package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +14 -0
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/vue/SunBurst.js +3 -0
- package/dist/vue/SunBurst.vue_vue_type_script_setup_true_lang.js +220 -0
- package/dist/vue/components/BarShift.vue.d.ts +57 -0
- package/dist/vue/components/BarShift.vue.d.ts.map +1 -0
- package/dist/vue/components/BrickPattern.vue.d.ts +60 -0
- package/dist/vue/components/BrickPattern.vue.d.ts.map +1 -0
- package/dist/vue/components/Chevron.vue.d.ts +59 -0
- package/dist/vue/components/Chevron.vue.d.ts.map +1 -0
- package/dist/vue/components/ColorWheel.vue.d.ts +56 -0
- package/dist/vue/components/ColorWheel.vue.d.ts.map +1 -0
- package/dist/vue/components/FractalNoise.vue.d.ts +58 -0
- package/dist/vue/components/FractalNoise.vue.d.ts.map +1 -0
- package/dist/vue/components/Marble.vue.d.ts +57 -0
- package/dist/vue/components/Marble.vue.d.ts.map +1 -0
- package/dist/vue/components/SunBurst.vue.d.ts +58 -0
- package/dist/vue/components/SunBurst.vue.d.ts.map +1 -0
- package/dist/vue/index.d.ts +7 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +8 -1
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +97 -0
- package/package.json +142 -1
- package/dist/core/shaderRegistry-Ceu0nAxP.js +0 -256
- /package/dist/core/{Beam-mvF5Ri7_.js → Beam-B3BX08lR.js} +0 -0
- /package/dist/core/{Blob-CLHx5s6k.js → Blob-B7IFHhVB.js} +0 -0
- /package/dist/core/{BrightnessContrast-CJTOpQCn.js → BrightnessContrast-GppIqtkO.js} +0 -0
- /package/dist/core/{Bulge-wflTcWfI.js → Bulge-DMOATSEs.js} +0 -0
- /package/dist/core/{CRTScreen-CTwXU-NX.js → CRTScreen-corekL_R.js} +0 -0
- /package/dist/core/{Checkerboard-Db7Rb57F.js → Checkerboard-BVBGTvd-.js} +0 -0
- /package/dist/core/{ChromaFlow-DbiVz3hF.js → ChromaFlow-C0guw_LP.js} +0 -0
- /package/dist/core/{ChromaticAberration-Bg_I4XF-.js → ChromaticAberration-vygkvgz-.js} +0 -0
- /package/dist/core/{Circle-Bfi2e0Vm.js → Circle-BycqVCMt.js} +0 -0
- /package/dist/core/{ConcentricSpin-bAFd5_WI.js → ConcentricSpin-CO3Kx1I1.js} +0 -0
- /package/dist/core/{ConicGradient-Bcw4_25S.js → ConicGradient-DRvVwiSj.js} +0 -0
- /package/dist/core/{ContourLines-CcQWPKLx.js → ContourLines-s4waN3uU.js} +0 -0
- /package/dist/core/{CursorRipples-CsYAXG2E.js → CursorRipples-CLP7Sinv.js} +0 -0
- /package/dist/core/{CursorTrail-CUtEP_-P.js → CursorTrail-CshoSM5Y.js} +0 -0
- /package/dist/core/{DOMTexture-D-RkeyMs.js → DOMTexture-Ec0k6AnK.js} +0 -0
- /package/dist/core/{DiamondGradient-3b93bdrv.js → DiamondGradient-D6eyjZOn.js} +0 -0
- /package/dist/core/{DiffuseBlur-61Vuq571.js → DiffuseBlur-BjvXHmJx.js} +0 -0
- /package/dist/core/{Dither-Cv0Uci60.js → Dither-z6s-TFg7.js} +0 -0
- /package/dist/core/{DotGrid-C88Sux6D.js → DotGrid-BxAAGO4F.js} +0 -0
- /package/dist/core/{DropShadow-EZyCC_97.js → DropShadow-CR3cecIQ.js} +0 -0
- /package/dist/core/{Duotone-D4ads1T9.js → Duotone-PwTfBBtM.js} +0 -0
- /package/dist/core/{FallingLines-CQBvwLqn.js → FallingLines-DqIZ8wTH.js} +0 -0
- /package/dist/core/{FilmGrain-DSJiMtEp.js → FilmGrain-Dbw02Jz9.js} +0 -0
- /package/dist/core/{FloatingParticles-BAvsQDhF.js → FloatingParticles-C4sLwGyT.js} +0 -0
- /package/dist/core/{FlowField-D2xJ0Xr4.js → FlowField-D3CAHBBG.js} +0 -0
- /package/dist/core/{FlowingGradient-DVDnNpGd.js → FlowingGradient-BRQ_K-k3.js} +0 -0
- /package/dist/core/{FlutedGlass-trmBFfQr.js → FlutedGlass-CyFWN_SM.js} +0 -0
- /package/dist/core/{Fog-DrsxPyih.js → Fog-CLGVVVeo.js} +0 -0
- /package/dist/core/{Form3D-D1TtCjk8.js → Form3D-8tPyUgh4.js} +0 -0
- /package/dist/core/{GlassTiles-CMx4NyO-.js → GlassTiles-CXJHjEBe.js} +0 -0
- /package/dist/core/{Glitch-BdygvJKe.js → Glitch-Bg9W-KNm.js} +0 -0
- /package/dist/core/{Godrays-Mvz7ha2E.js → Godrays-DHXKsw5B.js} +0 -0
- /package/dist/core/{Grayscale-ChaVI3AW.js → Grayscale-DgXoUcmg.js} +0 -0
- /package/dist/core/{Grid-CsD21Eqg.js → Grid-DwyhjFAT.js} +0 -0
- /package/dist/core/{GridDistortion-BcDqBh9i.js → GridDistortion-DJ8S-96Y.js} +0 -0
- /package/dist/core/{Group-BqVJ4S7i.js → Group-DmgNNlDd.js} +0 -0
- /package/dist/core/{Halftone-3ImN5uQi.js → Halftone-x9boWkFW.js} +0 -0
- /package/dist/core/{HexGrid-BWwIHYEg.js → HexGrid-BUsgyF8P.js} +0 -0
- /package/dist/core/{HueShift-C1RxETwN.js → HueShift-D3_5D7jx.js} +0 -0
- /package/dist/core/{ImageTexture-DXhgMEOT.js → ImageTexture-6ZzBt79u.js} +0 -0
- /package/dist/core/{Invert-D3tc2UGp.js → Invert-kXxY97QJ.js} +0 -0
- /package/dist/core/{Kaleidoscope-D1HmcoOv.js → Kaleidoscope-D4jRcZCt.js} +0 -0
- /package/dist/core/{LensFlare-Be-Z9whi.js → LensFlare-D7vypE2Q.js} +0 -0
- /package/dist/core/{LinearBlur-xrHtMmWp.js → LinearBlur-2hspd2YP.js} +0 -0
- /package/dist/core/{LinearGradient-BiIad_hA.js → LinearGradient-glCc9IaB.js} +0 -0
- /package/dist/core/{Liquify-DkTxZZFW.js → Liquify-uZjs0wcu.js} +0 -0
- /package/dist/core/{Mirror-BDTE51kP.js → Mirror-Dv5fOEp6.js} +0 -0
- /package/dist/core/{MultiPointGradient-Bd-EGOI8.js → MultiPointGradient-Dvt1GUiv.js} +0 -0
- /package/dist/core/{Paper-BmeUPAFe.js → Paper-DNP2-hPM.js} +0 -0
- /package/dist/core/{Perspective-CqweSeFv.js → Perspective-CAIchX9p.js} +0 -0
- /package/dist/core/{Pixelate-DqZcUKFK.js → Pixelate-BbT3Rrf2.js} +0 -0
- /package/dist/core/{Plasma-DqKLBDYd.js → Plasma-D9rhkH2y.js} +0 -0
- /package/dist/core/{PolarCoordinates-CKT4CLT7.js → PolarCoordinates-2RBCk-fo.js} +0 -0
- /package/dist/core/{Posterize-CxYemXTn.js → Posterize-DNxTRgvF.js} +0 -0
- /package/dist/core/{RadialGradient-Dj3-DdO7.js → RadialGradient-CQIctl__.js} +0 -0
- /package/dist/core/{RectangularCoordinates-DxeLJ2nt.js → RectangularCoordinates-F2VzXmal.js} +0 -0
- /package/dist/core/{Ripples-CXeVzwUd.js → Ripples-B4H0VoZb.js} +0 -0
- /package/dist/core/{Saturation-n-aXJS81.js → Saturation-6FlxHXSi.js} +0 -0
- /package/dist/core/{Sharpness-7tm7b-Bu.js → Sharpness-C4cJlBuh.js} +0 -0
- /package/dist/core/{Shatter-CDza7dSw.js → Shatter-CnkycTRD.js} +0 -0
- /package/dist/core/{SimplexNoise-HQTocBLm.js → SimplexNoise-BnRaoxON.js} +0 -0
- /package/dist/core/{SineWave-S6nK8ZHR.js → SineWave-CZ4Fanvr.js} +0 -0
- /package/dist/core/{Smoke-DjlArYQW.js → Smoke-CXPjGG-b.js} +0 -0
- /package/dist/core/{Solarize-gNMmd47z.js → Solarize-CynVlxjT.js} +0 -0
- /package/dist/core/{SolidColor-a8bCIksn.js → SolidColor-dCAOGC_P.js} +0 -0
- /package/dist/core/{Spherize-BHmD2ajL.js → Spherize-C77QGVWj.js} +0 -0
- /package/dist/core/{Spiral-Bjsi8BMH.js → Spiral-eN65wa6O.js} +0 -0
- /package/dist/core/{Strands-C9fEwaiR.js → Strands-DnWJDGiO.js} +0 -0
- /package/dist/core/{Stretch-Cvht8B0L.js → Stretch-B5XGF1bF.js} +0 -0
- /package/dist/core/{Stripes-ChVSAeCO.js → Stripes-CNXJpFyr.js} +0 -0
- /package/dist/core/{StudioBackground-B8hilROB.js → StudioBackground-DtiE2mCf.js} +0 -0
- /package/dist/core/{Swirl-DZTPLx-W.js → Swirl-BV6pN94G.js} +0 -0
- /package/dist/core/{Tint-P7KwJAU5.js → Tint-CJ8FQdzA.js} +0 -0
- /package/dist/core/{Tritone-_9VR2bhu.js → Tritone-D_QvxjGc.js} +0 -0
- /package/dist/core/{Truchet-CbL5nYMj.js → Truchet-BJeZS_JQ.js} +0 -0
- /package/dist/core/{Twirl-C_97m32v.js → Twirl-8ayqS0n8.js} +0 -0
- /package/dist/core/{VHS-DbNjgUEX.js → VHS-Gbec95K_.js} +0 -0
- /package/dist/core/{Vibrance-IDvmP1Xw.js → Vibrance-COKHmh8r.js} +0 -0
- /package/dist/core/{Vignette-DmYVHciL.js → Vignette-Y_2yono-.js} +0 -0
- /package/dist/core/{Voronoi-kngFpTNB.js → Voronoi-DQ_f6k5D.js} +0 -0
- /package/dist/core/{WaveDistortion-DM-f_XCw.js → WaveDistortion-R5FfwKQN.js} +0 -0
- /package/dist/core/{Weave-DO0m0Dsh.js → Weave-DJ4s3Gwc.js} +0 -0
- /package/dist/core/{WorleyNoise-Derik4n-.js → WorleyNoise-CWytDfGH.js} +0 -0
- /package/dist/core/{ZoomBlur-BdLC9MCq.js → ZoomBlur-DWFQVFMK.js} +0 -0
- /package/dist/core/{browser-CsOpQ0L_.js → browser-BamVDhaZ.js} +0 -0
- /package/dist/core/{computeBlur-DCRhuYEi.js → computeBlur-CprKe0xa.js} +0 -0
- /package/dist/core/{sdf-DyC2H_qS.js → sdf-D_EAGXhN.js} +0 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { a as transformColor, o as transformColorSpace, r as transformAngle, t as colorSpaceOptions } from "./transformations-CJcUeZIC.js";
|
|
2
|
+
import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
|
|
3
|
+
import { t as createAnimatedTime } from "./time-DUqSFWvT.js";
|
|
4
|
+
import { clamp, cos, float, mx_noise_float, screenUV, sin, vec2, vec4, viewportSize } from "three/tsl";
|
|
5
|
+
var GOLDEN = 2.39996;
|
|
6
|
+
const componentDefinition = {
|
|
7
|
+
name: "FractalNoise",
|
|
8
|
+
category: "Textures",
|
|
9
|
+
description: "Multi-octave fractal Brownian motion noise texture with true noise evolution",
|
|
10
|
+
props: {
|
|
11
|
+
colorA: {
|
|
12
|
+
default: "#000000",
|
|
13
|
+
transform: transformColor,
|
|
14
|
+
description: "First color",
|
|
15
|
+
ui: {
|
|
16
|
+
type: "color",
|
|
17
|
+
label: "Color A",
|
|
18
|
+
group: "Colors"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
colorB: {
|
|
22
|
+
default: "#ffffff",
|
|
23
|
+
transform: transformColor,
|
|
24
|
+
description: "Second color",
|
|
25
|
+
ui: {
|
|
26
|
+
type: "color",
|
|
27
|
+
label: "Color B",
|
|
28
|
+
group: "Colors"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
octaves: {
|
|
32
|
+
default: 4,
|
|
33
|
+
compileTime: true,
|
|
34
|
+
description: "Number of noise octaves (more = more detail)",
|
|
35
|
+
ui: {
|
|
36
|
+
type: "range",
|
|
37
|
+
min: 1,
|
|
38
|
+
max: 8,
|
|
39
|
+
step: 1,
|
|
40
|
+
label: "Octaves",
|
|
41
|
+
group: "Effect"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
detail: {
|
|
45
|
+
default: 2,
|
|
46
|
+
description: "How much finer each successive octave becomes",
|
|
47
|
+
ui: {
|
|
48
|
+
type: ["range", "map"],
|
|
49
|
+
min: 1,
|
|
50
|
+
max: 4,
|
|
51
|
+
step: .1,
|
|
52
|
+
label: "Detail",
|
|
53
|
+
group: "Effect"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
contrast: {
|
|
57
|
+
default: .5,
|
|
58
|
+
description: "How strongly finer octaves contribute — higher values create more texture contrast",
|
|
59
|
+
ui: {
|
|
60
|
+
type: ["range", "map"],
|
|
61
|
+
min: .1,
|
|
62
|
+
max: 1,
|
|
63
|
+
step: .05,
|
|
64
|
+
label: "Contrast",
|
|
65
|
+
group: "Effect"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
speed: {
|
|
69
|
+
default: .15,
|
|
70
|
+
description: "Speed at which the noise pattern evolves in place",
|
|
71
|
+
ui: {
|
|
72
|
+
type: "range",
|
|
73
|
+
min: 0,
|
|
74
|
+
max: 1,
|
|
75
|
+
step: .01,
|
|
76
|
+
label: "Speed",
|
|
77
|
+
group: "Animation"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
angle: {
|
|
81
|
+
default: 0,
|
|
82
|
+
transform: transformAngle,
|
|
83
|
+
description: "Rotation angle in degrees",
|
|
84
|
+
ui: {
|
|
85
|
+
type: ["range", "map"],
|
|
86
|
+
min: -180,
|
|
87
|
+
max: 180,
|
|
88
|
+
step: 1,
|
|
89
|
+
label: "Angle",
|
|
90
|
+
group: "Effect"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
seed: {
|
|
94
|
+
default: 0,
|
|
95
|
+
description: "Random seed for pattern variation",
|
|
96
|
+
ui: {
|
|
97
|
+
type: ["range", "map"],
|
|
98
|
+
min: 0,
|
|
99
|
+
max: 100,
|
|
100
|
+
step: 1,
|
|
101
|
+
label: "Seed",
|
|
102
|
+
group: "Effect"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
colorSpace: {
|
|
106
|
+
default: "linear",
|
|
107
|
+
transform: transformColorSpace,
|
|
108
|
+
compileTime: true,
|
|
109
|
+
description: "Color space for interpolation",
|
|
110
|
+
ui: {
|
|
111
|
+
type: "select",
|
|
112
|
+
options: colorSpaceOptions,
|
|
113
|
+
label: "Color Space",
|
|
114
|
+
group: "Colors"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
fragmentNode: (params) => {
|
|
119
|
+
const { uniforms } = params;
|
|
120
|
+
const uv$1 = screenUV;
|
|
121
|
+
const aspect = viewportSize.x.div(viewportSize.y);
|
|
122
|
+
const angleRad = uniforms.angle.uniform.mul(.0174533);
|
|
123
|
+
const cosA = cos(angleRad);
|
|
124
|
+
const sinA = sin(angleRad);
|
|
125
|
+
const au = uv$1.x.mul(aspect).sub(aspect.mul(.5));
|
|
126
|
+
const av = uv$1.y.sub(.5);
|
|
127
|
+
const ru = au.mul(cosA).add(av.mul(sinA));
|
|
128
|
+
const rv = au.mul(sinA).negate().add(av.mul(cosA));
|
|
129
|
+
const animTime = createAnimatedTime(params, uniforms.speed);
|
|
130
|
+
const scale = float(2);
|
|
131
|
+
const seedVal = uniforms.seed.uniform;
|
|
132
|
+
const l = uniforms.detail.uniform;
|
|
133
|
+
const p = uniforms.contrast.uniform;
|
|
134
|
+
const d = (i) => ({
|
|
135
|
+
x: Math.cos(i * GOLDEN),
|
|
136
|
+
y: Math.sin(i * GOLDEN)
|
|
137
|
+
});
|
|
138
|
+
const coord = (octaveScale, i) => vec2(ru.mul(octaveScale).add(animTime.mul(float(d(i).x))).add(seedVal), rv.mul(octaveScale).add(animTime.mul(float(d(i).y))).add(seedVal.mul(.7)));
|
|
139
|
+
const n1 = mx_noise_float(coord(scale, 0));
|
|
140
|
+
const n2 = mx_noise_float(coord(scale.mul(l), 1)).mul(p);
|
|
141
|
+
const n3 = mx_noise_float(coord(scale.mul(l).mul(l), 2)).mul(p).mul(p);
|
|
142
|
+
const n4 = mx_noise_float(coord(scale.mul(l).mul(l).mul(l), 3)).mul(p).mul(p).mul(p);
|
|
143
|
+
const n5 = mx_noise_float(coord(scale.mul(l).mul(l).mul(l).mul(l), 4)).mul(p).mul(p).mul(p).mul(p);
|
|
144
|
+
const n6 = mx_noise_float(coord(scale.mul(l).mul(l).mul(l).mul(l).mul(l), 5)).mul(p).mul(p).mul(p).mul(p).mul(p);
|
|
145
|
+
const n7 = mx_noise_float(coord(scale.mul(l).mul(l).mul(l).mul(l).mul(l).mul(l), 6)).mul(p).mul(p).mul(p).mul(p).mul(p).mul(p);
|
|
146
|
+
const n8 = mx_noise_float(coord(scale.mul(l).mul(l).mul(l).mul(l).mul(l).mul(l).mul(l), 7)).mul(p).mul(p).mul(p).mul(p).mul(p).mul(p).mul(p);
|
|
147
|
+
const octaveCount = uniforms.octaves.uniform.value;
|
|
148
|
+
let accumulated = n1;
|
|
149
|
+
let totalWeight = float(1);
|
|
150
|
+
if (octaveCount >= 2) {
|
|
151
|
+
accumulated = accumulated.add(n2);
|
|
152
|
+
totalWeight = totalWeight.add(p);
|
|
153
|
+
}
|
|
154
|
+
if (octaveCount >= 3) {
|
|
155
|
+
accumulated = accumulated.add(n3);
|
|
156
|
+
totalWeight = totalWeight.add(p.mul(p));
|
|
157
|
+
}
|
|
158
|
+
if (octaveCount >= 4) {
|
|
159
|
+
accumulated = accumulated.add(n4);
|
|
160
|
+
totalWeight = totalWeight.add(p.mul(p).mul(p));
|
|
161
|
+
}
|
|
162
|
+
if (octaveCount >= 5) {
|
|
163
|
+
accumulated = accumulated.add(n5);
|
|
164
|
+
totalWeight = totalWeight.add(p.mul(p).mul(p).mul(p));
|
|
165
|
+
}
|
|
166
|
+
if (octaveCount >= 6) {
|
|
167
|
+
accumulated = accumulated.add(n6);
|
|
168
|
+
totalWeight = totalWeight.add(p.mul(p).mul(p).mul(p).mul(p));
|
|
169
|
+
}
|
|
170
|
+
if (octaveCount >= 7) {
|
|
171
|
+
accumulated = accumulated.add(n7);
|
|
172
|
+
totalWeight = totalWeight.add(p.mul(p).mul(p).mul(p).mul(p).mul(p));
|
|
173
|
+
}
|
|
174
|
+
if (octaveCount >= 8) {
|
|
175
|
+
accumulated = accumulated.add(n8);
|
|
176
|
+
totalWeight = totalWeight.add(p.mul(p).mul(p).mul(p).mul(p).mul(p).mul(p));
|
|
177
|
+
}
|
|
178
|
+
const normalized = clamp(accumulated.div(totalWeight).mul(.5).add(.5), float(0), float(1));
|
|
179
|
+
const result = mixColors(uniforms.colorA.uniform, uniforms.colorB.uniform, normalized, uniforms.colorSpace.uniform.value);
|
|
180
|
+
return vec4(result.rgb, result.a);
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
var FractalNoise_default = componentDefinition;
|
|
184
|
+
export { componentDefinition as n, FractalNoise_default as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as transformColor, l as transformPosition } from "./transformations-CJcUeZIC.js";
|
|
2
|
-
import { r as createGaussianBlurCompute } from "./computeBlur-
|
|
3
|
-
import { n as createAnalyticSdfSampler, r as createSvgSdfSampler } from "./sdf-
|
|
2
|
+
import { r as createGaussianBlurCompute } from "./computeBlur-CprKe0xa.js";
|
|
3
|
+
import { n as createAnalyticSdfSampler, r as createSvgSdfSampler } from "./sdf-D_EAGXhN.js";
|
|
4
4
|
import { Fn, If, clamp, convertToTexture, dot, exp2, float, max, mix, pow, screenUV, smoothstep, sqrt, texture, uniform, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
5
5
|
var GOLDEN_ANGLE = 2.3999632297286535;
|
|
6
6
|
var BLUR_SAMPLE_COUNT = 9;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as unpremultiplyAlpha } from "./alpha-C4ptedXe.js";
|
|
2
|
-
import { i as createVariableGaussianBlurCompute, n as DEFAULT_COMPUTE_WIDTH, t as DEFAULT_COMPUTE_HEIGHT } from "./computeBlur-
|
|
2
|
+
import { i as createVariableGaussianBlurCompute, n as DEFAULT_COMPUTE_WIDTH, t as DEFAULT_COMPUTE_HEIGHT } from "./computeBlur-CprKe0xa.js";
|
|
3
3
|
import { StorageTexture } from "three/webgpu";
|
|
4
4
|
import { FloatType } from "three";
|
|
5
5
|
import { Fn, If, clamp, convertToTexture, dot, float, instanceIndex, int, max, mix, pow, screenUV, storageTexture, texture, textureLoad, textureStore, uint, uniform, uvec2, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CJcUeZIC.js";
|
|
2
|
+
import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
|
|
3
|
+
import { t as createAnimatedTime } from "./time-DUqSFWvT.js";
|
|
4
|
+
import { float, mx_noise_float, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
|
|
5
|
+
const componentDefinition = {
|
|
6
|
+
name: "Marble",
|
|
7
|
+
category: "Textures",
|
|
8
|
+
description: "Classic marble swirl and vein texture using noise-warped sine waves",
|
|
9
|
+
props: {
|
|
10
|
+
colorA: {
|
|
11
|
+
default: "#ffffff",
|
|
12
|
+
transform: transformColor,
|
|
13
|
+
description: "Base background color of the marble",
|
|
14
|
+
ui: {
|
|
15
|
+
type: "color",
|
|
16
|
+
label: "Base",
|
|
17
|
+
group: "Colors"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
colorB: {
|
|
21
|
+
default: "#3a2d54",
|
|
22
|
+
transform: transformColor,
|
|
23
|
+
description: "Secondary marble tone",
|
|
24
|
+
ui: {
|
|
25
|
+
type: "color",
|
|
26
|
+
label: "Tone",
|
|
27
|
+
group: "Colors"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
colorC: {
|
|
31
|
+
default: "#0f0f0f",
|
|
32
|
+
transform: transformColor,
|
|
33
|
+
description: "Deepest marble color",
|
|
34
|
+
ui: {
|
|
35
|
+
type: "color",
|
|
36
|
+
label: "Depth",
|
|
37
|
+
group: "Colors"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
scale: {
|
|
41
|
+
default: 2,
|
|
42
|
+
description: "Scale and density of the marble vein pattern",
|
|
43
|
+
ui: {
|
|
44
|
+
type: ["range", "map"],
|
|
45
|
+
min: .1,
|
|
46
|
+
max: 10,
|
|
47
|
+
step: .1,
|
|
48
|
+
label: "Scale",
|
|
49
|
+
group: "Effect"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
turbulence: {
|
|
53
|
+
default: 10,
|
|
54
|
+
description: "Amount of noise-driven distortion applied to the veins",
|
|
55
|
+
ui: {
|
|
56
|
+
type: ["range", "map"],
|
|
57
|
+
min: 0,
|
|
58
|
+
max: 50,
|
|
59
|
+
step: .5,
|
|
60
|
+
label: "Turbulence",
|
|
61
|
+
group: "Effect"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
speed: {
|
|
65
|
+
default: .05,
|
|
66
|
+
description: "Animation speed",
|
|
67
|
+
ui: {
|
|
68
|
+
type: "range",
|
|
69
|
+
min: 0,
|
|
70
|
+
max: .25,
|
|
71
|
+
step: .005,
|
|
72
|
+
label: "Speed",
|
|
73
|
+
group: "Animation"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
seed: {
|
|
77
|
+
default: 0,
|
|
78
|
+
description: "Random seed for pattern variation",
|
|
79
|
+
ui: {
|
|
80
|
+
type: ["range", "map"],
|
|
81
|
+
min: 0,
|
|
82
|
+
max: 100,
|
|
83
|
+
step: 1,
|
|
84
|
+
label: "Seed",
|
|
85
|
+
group: "Effect"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
colorSpace: {
|
|
89
|
+
default: "linear",
|
|
90
|
+
transform: transformColorSpace,
|
|
91
|
+
compileTime: true,
|
|
92
|
+
description: "Color space for color interpolation",
|
|
93
|
+
ui: {
|
|
94
|
+
type: "select",
|
|
95
|
+
options: colorSpaceOptions,
|
|
96
|
+
label: "Color Space",
|
|
97
|
+
group: "Colors"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
fragmentNode: (params) => {
|
|
102
|
+
const { uniforms } = params;
|
|
103
|
+
const uv$1 = screenUV;
|
|
104
|
+
const aspect = viewportSize.x.div(viewportSize.y);
|
|
105
|
+
const au = uv$1.x.mul(aspect);
|
|
106
|
+
const av = uv$1.y;
|
|
107
|
+
const animTime = createAnimatedTime(params, uniforms.speed);
|
|
108
|
+
const scale = uniforms.scale.uniform;
|
|
109
|
+
const seedVal = uniforms.seed.uniform;
|
|
110
|
+
const n1 = mx_noise_float(vec2(au.mul(scale).add(seedVal), av.mul(scale).add(animTime)));
|
|
111
|
+
const n2 = mx_noise_float(vec2(au.mul(scale).mul(2).add(seedVal.mul(1.7)), av.mul(scale).mul(2).add(animTime.mul(.7)))).mul(.5);
|
|
112
|
+
const n3 = mx_noise_float(vec2(au.mul(scale).mul(4).add(seedVal.mul(3.1)), av.mul(scale).mul(4).add(animTime.mul(1.3)))).mul(.25);
|
|
113
|
+
const totalNoise = n1.add(n2).add(n3);
|
|
114
|
+
const turbulence = uniforms.turbulence.uniform;
|
|
115
|
+
const marbleT = sin(au.mul(scale).mul(float(Math.PI)).add(totalNoise.mul(turbulence))).mul(.5).add(.5);
|
|
116
|
+
const n4 = mx_noise_float(vec2(av.mul(scale).mul(1.5).add(seedVal.mul(2)), au.mul(scale).mul(1.2))).mul(.3).add(.5);
|
|
117
|
+
const t1 = smoothstep(float(.3), float(.6), marbleT);
|
|
118
|
+
const t2 = smoothstep(float(.6), float(.9), marbleT);
|
|
119
|
+
const colABC = mixColors(mixColors(uniforms.colorA.uniform, uniforms.colorB.uniform, t1, uniforms.colorSpace.uniform.value), uniforms.colorC.uniform, t2.mul(n4), uniforms.colorSpace.uniform.value);
|
|
120
|
+
return vec4(colABC.rgb, colABC.a);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
var Marble_default = componentDefinition;
|
|
124
|
+
export { componentDefinition as n, Marble_default as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as transformColor, l as transformPosition } from "./transformations-CJcUeZIC.js";
|
|
2
|
-
import { n as createAnalyticSdfSampler, r as createSvgSdfSampler } from "./sdf-
|
|
2
|
+
import { n as createAnalyticSdfSampler, r as createSvgSdfSampler } from "./sdf-D_EAGXhN.js";
|
|
3
3
|
import { Fn, If, atan, clamp, cos, exp, exp2, float, max, mix, pow, screenUV, sin, smoothstep, sqrt, uniform, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
4
4
|
var _LZ = .7;
|
|
5
5
|
var _INV_LIGHT_LEN = 1 / Math.sqrt(1 + _LZ * _LZ);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CJcUeZIC.js";
|
|
2
2
|
import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
|
|
3
|
-
import { c as polygonSdf, t as circleSdf } from "./sdf-
|
|
3
|
+
import { c as polygonSdf, t as circleSdf } from "./sdf-D_EAGXhN.js";
|
|
4
4
|
import { cos, float, mix, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
|
|
5
5
|
var transformStrokePosition = (value) => {
|
|
6
6
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as transformPosition, r as transformAngle } from "./transformations-CJcUeZIC.js";
|
|
2
2
|
import { t as unpremultiplyAlpha } from "./alpha-C4ptedXe.js";
|
|
3
|
-
import { i as createVariableGaussianBlurCompute } from "./computeBlur-
|
|
3
|
+
import { i as createVariableGaussianBlurCompute } from "./computeBlur-CprKe0xa.js";
|
|
4
4
|
import { Fn, If, clamp, convertToTexture, cos, dot, float, instanceIndex, int, max, mix, pow, radians, screenUV, sin, smoothstep, texture, textureLoad, textureStore, uint, uniform, uvec2, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
5
5
|
const componentDefinition = {
|
|
6
6
|
name: "ProgressiveBlur",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CJcUeZIC.js";
|
|
2
2
|
import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
|
|
3
|
-
import { l as ringSdf } from "./sdf-
|
|
3
|
+
import { l as ringSdf } from "./sdf-D_EAGXhN.js";
|
|
4
4
|
import { float, screenUV, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
|
|
5
5
|
var transformStrokePosition = (value) => {
|
|
6
6
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CJcUeZIC.js";
|
|
2
2
|
import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
|
|
3
|
-
import { u as roundedRectSdf } from "./sdf-
|
|
3
|
+
import { u as roundedRectSdf } from "./sdf-D_EAGXhN.js";
|
|
4
4
|
import { cos, float, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
|
|
5
5
|
var transformStrokePosition = (value) => {
|
|
6
6
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CJcUeZIC.js";
|
|
2
2
|
import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
|
|
3
|
-
import { n as createAnalyticSdfSampler, r as createSvgSdfSampler } from "./sdf-
|
|
3
|
+
import { n as createAnalyticSdfSampler, r as createSvgSdfSampler } from "./sdf-D_EAGXhN.js";
|
|
4
4
|
import { StorageTexture } from "three/webgpu";
|
|
5
5
|
import { DataTexture, FloatType, LinearFilter as LinearFilter$1, RGBAFormat } from "three";
|
|
6
6
|
import { Fn, attributeArray, float, floor, instanceIndex, int, mix, screenUV, storageTexture, texture, textureStore, uint, uniform, uvec2, vec2, vec4, viewportSize } from "three/tsl";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CJcUeZIC.js";
|
|
2
2
|
import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
|
|
3
|
-
import { d as starSdf } from "./sdf-
|
|
3
|
+
import { d as starSdf } from "./sdf-D_EAGXhN.js";
|
|
4
4
|
import { cos, float, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
|
|
5
5
|
var transformStrokePosition = (value) => {
|
|
6
6
|
return {
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { a as transformColor, l as transformPosition } from "./transformations-CJcUeZIC.js";
|
|
2
|
+
import { t as createAnimatedTime } from "./time-DUqSFWvT.js";
|
|
3
|
+
import { atan, float, mix, pow, screenUV, sin, smoothstep, sqrt, vec4, viewportSize } from "three/tsl";
|
|
4
|
+
const componentDefinition = {
|
|
5
|
+
name: "SunBurst",
|
|
6
|
+
category: "Textures",
|
|
7
|
+
description: "Radial sunburst rays emanating from a center point",
|
|
8
|
+
props: {
|
|
9
|
+
color: {
|
|
10
|
+
default: "#ffdd88",
|
|
11
|
+
transform: transformColor,
|
|
12
|
+
description: "Ray color",
|
|
13
|
+
ui: {
|
|
14
|
+
type: "color",
|
|
15
|
+
label: "Color",
|
|
16
|
+
group: "Colors"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
background: {
|
|
20
|
+
default: "#000000",
|
|
21
|
+
transform: transformColor,
|
|
22
|
+
description: "Background color",
|
|
23
|
+
ui: {
|
|
24
|
+
type: "color",
|
|
25
|
+
label: "Background",
|
|
26
|
+
group: "Colors"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
center: {
|
|
30
|
+
default: {
|
|
31
|
+
x: .5,
|
|
32
|
+
y: .5
|
|
33
|
+
},
|
|
34
|
+
transform: transformPosition,
|
|
35
|
+
description: "Center point of the sunburst",
|
|
36
|
+
ui: {
|
|
37
|
+
type: "position",
|
|
38
|
+
label: "Center",
|
|
39
|
+
group: "Position"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
rayCount: {
|
|
43
|
+
default: 12,
|
|
44
|
+
description: "Number of rays",
|
|
45
|
+
ui: {
|
|
46
|
+
type: "range",
|
|
47
|
+
min: 3,
|
|
48
|
+
max: 64,
|
|
49
|
+
step: 1,
|
|
50
|
+
label: "Ray Count",
|
|
51
|
+
group: "Effect"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
softness: {
|
|
55
|
+
default: .3,
|
|
56
|
+
description: "Softness of ray edges",
|
|
57
|
+
ui: {
|
|
58
|
+
type: ["range", "map"],
|
|
59
|
+
min: 0,
|
|
60
|
+
max: 1,
|
|
61
|
+
step: .01,
|
|
62
|
+
label: "Softness",
|
|
63
|
+
group: "Effect"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
radius: {
|
|
67
|
+
default: .8,
|
|
68
|
+
description: "How far the rays extend from the center",
|
|
69
|
+
ui: {
|
|
70
|
+
type: ["range", "map"],
|
|
71
|
+
min: 0,
|
|
72
|
+
max: 1.2,
|
|
73
|
+
step: .01,
|
|
74
|
+
label: "Radius",
|
|
75
|
+
group: "Effect"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
feather: {
|
|
79
|
+
default: .5,
|
|
80
|
+
description: "How gradually the rays fade at their outer edge",
|
|
81
|
+
ui: {
|
|
82
|
+
type: ["range", "map"],
|
|
83
|
+
min: 0,
|
|
84
|
+
max: 5,
|
|
85
|
+
step: .01,
|
|
86
|
+
label: "Feather",
|
|
87
|
+
group: "Effect"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
speed: {
|
|
91
|
+
default: .2,
|
|
92
|
+
description: "Rotation speed — positive values rotate clockwise",
|
|
93
|
+
ui: {
|
|
94
|
+
type: "range",
|
|
95
|
+
min: -2,
|
|
96
|
+
max: 2,
|
|
97
|
+
step: .1,
|
|
98
|
+
label: "Speed",
|
|
99
|
+
group: "Animation"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
fragmentNode: (params) => {
|
|
104
|
+
const { uniforms } = params;
|
|
105
|
+
const uv$1 = screenUV;
|
|
106
|
+
const aspect = viewportSize.x.div(viewportSize.y);
|
|
107
|
+
const cx = uniforms.center.uniform.x;
|
|
108
|
+
const cy = uniforms.center.uniform.y.oneMinus();
|
|
109
|
+
const dx = uv$1.x.mul(aspect).sub(cx.mul(aspect));
|
|
110
|
+
const dy = uv$1.y.sub(cy);
|
|
111
|
+
const dist = sqrt(dx.mul(dx).add(dy.mul(dy)));
|
|
112
|
+
const angle = atan(dy, dx);
|
|
113
|
+
const animTime = createAnimatedTime(params, uniforms.speed);
|
|
114
|
+
const rayCount = uniforms.rayCount.uniform;
|
|
115
|
+
const rayMask = pow(sin(angle.mul(rayCount).sub(animTime)).mul(.5).add(.5), float(1).div(uniforms.softness.uniform.add(float(.05))).mul(float(.3)));
|
|
116
|
+
const radius = uniforms.radius.uniform;
|
|
117
|
+
const feather = uniforms.feather.uniform;
|
|
118
|
+
const falloffStart = radius.mul(float(1).sub(feather));
|
|
119
|
+
const outerMask = float(1).sub(smoothstep(falloffStart, radius, dist));
|
|
120
|
+
const alpha = rayMask.mul(outerMask);
|
|
121
|
+
const col = uniforms.color.uniform;
|
|
122
|
+
const bg = uniforms.background.uniform;
|
|
123
|
+
return vec4(mix(bg.rgb, col.rgb, alpha), mix(bg.a, col.a, alpha));
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
var SunBurst_default = componentDefinition;
|
|
127
|
+
export { componentDefinition as n, SunBurst_default as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as transformPosition, r as transformAngle } from "./transformations-CJcUeZIC.js";
|
|
2
2
|
import { t as unpremultiplyAlpha } from "./alpha-C4ptedXe.js";
|
|
3
|
-
import { i as createVariableGaussianBlurCompute } from "./computeBlur-
|
|
3
|
+
import { i as createVariableGaussianBlurCompute } from "./computeBlur-CprKe0xa.js";
|
|
4
4
|
import { Fn, If, abs, clamp, convertToTexture, cos, dot, float, instanceIndex, int, mix, pow, radians, screenUV, sin, smoothstep, texture, textureLoad, textureStore, uint, uniform, uvec2, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
5
5
|
const componentDefinition = {
|
|
6
6
|
name: "TiltShift",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CJcUeZIC.js";
|
|
2
2
|
import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
|
|
3
|
-
import { f as trapezoidSdf } from "./sdf-
|
|
3
|
+
import { f as trapezoidSdf } from "./sdf-D_EAGXhN.js";
|
|
4
4
|
import { cos, float, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
|
|
5
5
|
var transformStrokePosition = (value) => {
|
|
6
6
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-CJcUeZIC.js";
|
|
2
2
|
import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
|
|
3
|
-
import { p as vesicaSdf } from "./sdf-
|
|
3
|
+
import { p as vesicaSdf } from "./sdf-D_EAGXhN.js";
|
|
4
4
|
import { cos, float, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
|
|
5
5
|
var transformStrokePosition = (value) => {
|
|
6
6
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as needsVideoCanvasWorkaround } from "./browser-
|
|
1
|
+
import { t as needsVideoCanvasWorkaround } from "./browser-BamVDhaZ.js";
|
|
2
2
|
import { CanvasTexture, SRGBColorSpace, VideoTexture } from "three/webgpu";
|
|
3
3
|
import { float, max, min, or, screenUV, select, texture, uniform, vec2, vec4, viewportSize } from "three/tsl";
|
|
4
4
|
const componentDefinition = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as needsVideoCanvasWorkaround } from "./browser-
|
|
1
|
+
import { t as needsVideoCanvasWorkaround } from "./browser-BamVDhaZ.js";
|
|
2
2
|
import { CanvasTexture, SRGBColorSpace, VideoTexture } from "three/webgpu";
|
|
3
3
|
import { float, max, min, or, screenUV, select, texture, uniform, vec2, vec4, viewportSize } from "three/tsl";
|
|
4
4
|
const componentDefinition = {
|