shaders 2.5.88 → 2.5.89
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/ConicGradient-BXXizzIs.js +92 -0
- package/dist/core/{Crescent-DnFexzlT.js → Crescent-DPxGWdPH.js} +1 -1
- package/dist/core/{Cross-rsVMygBv.js → Cross-CDyzf8TT.js} +1 -1
- package/dist/core/{Crystal-z-2qqfhQ.js → Crystal-DSuN8TNY.js} +1 -1
- package/dist/core/DiamondGradient-TsOxHjg_.js +123 -0
- package/dist/core/DropShadow-_VJqd8du.js +131 -0
- package/dist/core/{Ellipse-CJFK20Xl.js → Ellipse-BvlGDQyZ.js} +1 -1
- package/dist/core/{Emboss-DWXpvlZO.js → Emboss-CF-BN_CQ.js} +1 -1
- package/dist/core/{Flower-BST3LQVi.js → Flower-ByQNUJyZ.js} +1 -1
- package/dist/core/{Glass-BDHs6Enu.js → Glass-BGy9jsiS.js} +1 -1
- package/dist/core/{Grid-CV2iJqlk.js → Grid-Dweeo8b2.js} +32 -6
- package/dist/core/HexGrid-KxwCqF1D.js +85 -0
- package/dist/core/MultiPointGradient-BcjurHeM.js +181 -0
- package/dist/core/{Neon-gsfaMvGq.js → Neon-CRC16G0F.js} +1 -1
- package/dist/core/{Polygon-BeqB8MSz.js → Polygon-2V8po0Ba.js} +1 -1
- package/dist/core/RadialGradient-niSnNlOF.js +123 -0
- package/dist/core/{Ring-DJl9JUMR.js → Ring-BiKv_lr2.js} +1 -1
- package/dist/core/{RoundedRect--rHP7xW4.js → RoundedRect-BjOTRXb0.js} +1 -1
- package/dist/core/Solarize-B0aT_8tE.js +47 -0
- package/dist/core/{Star-CxI_taxd.js → Star-DJnks6B5.js} +1 -1
- package/dist/core/{Trapezoid-D7qg9Gc5.js → Trapezoid-CoK8i1IS.js} +1 -1
- package/dist/core/Truchet-Bz6ETvSS.js +100 -0
- package/dist/core/{Vesica-p8oNtcOH.js → Vesica-BELYZ5M8.js} +1 -1
- package/dist/core/{VideoTexture-ChFw0jKS.js → VideoTexture-C90aUnt4.js} +1 -1
- package/dist/core/Vignette-B94FMFBz.js +84 -0
- package/dist/core/Voronoi-DPWvdZ05.js +152 -0
- package/dist/core/Weave-DzZv1-19.js +95 -0
- package/dist/core/{WebcamTexture-CF1nwkNG.js → WebcamTexture-7SK_C_Xf.js} +1 -1
- package/dist/core/index.js +91 -81
- package/dist/core/registry.js +91 -81
- package/dist/core/shaderRegistry-DICjiu4V.js +242 -0
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/CRTScreen/index.js +1 -1
- package/dist/core/shaders/ConicGradient/index.d.ts +48 -0
- package/dist/core/shaders/ConicGradient/index.d.ts.map +1 -0
- package/dist/core/shaders/ConicGradient/index.js +4 -0
- 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/DiamondGradient/index.d.ts +60 -0
- package/dist/core/shaders/DiamondGradient/index.d.ts.map +1 -0
- package/dist/core/shaders/DiamondGradient/index.js +4 -0
- 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.d.ts +39 -0
- package/dist/core/shaders/DropShadow/index.d.ts.map +1 -0
- package/dist/core/shaders/DropShadow/index.js +4 -0
- 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/Form3D/index.js +1 -1
- package/dist/core/shaders/Glass/index.js +2 -2
- 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 +1 -1
- package/dist/core/shaders/Godrays/index.js +1 -1
- package/dist/core/shaders/Grayscale/index.js +1 -1
- package/dist/core/shaders/Grid/index.d.ts +6 -0
- package/dist/core/shaders/Grid/index.d.ts.map +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.d.ts +41 -0
- package/dist/core/shaders/HexGrid/index.d.ts.map +1 -0
- package/dist/core/shaders/HexGrid/index.js +4 -0
- 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/Mirror/index.js +1 -1
- package/dist/core/shaders/MultiPointGradient/index.d.ts +84 -0
- package/dist/core/shaders/MultiPointGradient/index.d.ts.map +1 -0
- package/dist/core/shaders/MultiPointGradient/index.js +3 -0
- 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 +1 -1
- package/dist/core/shaders/RadialGradient/index.d.ts +18 -0
- package/dist/core/shaders/RadialGradient/index.d.ts.map +1 -1
- 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/Solarize/index.d.ts +19 -0
- package/dist/core/shaders/Solarize/index.d.ts.map +1 -0
- package/dist/core/shaders/Solarize/index.js +2 -0
- 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/Swirl/index.js +1 -1
- package/dist/core/shaders/TiltShift/index.js +1 -1
- 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.d.ts +47 -0
- package/dist/core/shaders/Truchet/index.d.ts.map +1 -0
- package/dist/core/shaders/Truchet/index.js +4 -0
- package/dist/core/shaders/Twirl/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.d.ts +40 -0
- package/dist/core/shaders/Vignette/index.d.ts.map +1 -0
- package/dist/core/shaders/Vignette/index.js +3 -0
- package/dist/core/shaders/Voronoi/index.d.ts +67 -0
- package/dist/core/shaders/Voronoi/index.d.ts.map +1 -0
- package/dist/core/shaders/Voronoi/index.js +5 -0
- package/dist/core/shaders/WaveDistortion/index.js +1 -1
- package/dist/core/shaders/Weave/index.d.ts +40 -0
- package/dist/core/shaders/Weave/index.d.ts.map +1 -0
- package/dist/core/shaders/Weave/index.js +3 -0
- package/dist/core/shaders/WebcamTexture/index.js +2 -2
- 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 +141 -1
- package/dist/react/ConicGradient.js +181 -0
- package/dist/react/DiamondGradient.js +181 -0
- package/dist/react/DropShadow.js +181 -0
- package/dist/react/HexGrid.js +181 -0
- package/dist/react/MultiPointGradient.js +181 -0
- package/dist/react/Preview.js +10 -0
- package/dist/react/Shader.js +1 -1
- package/dist/react/Solarize.js +181 -0
- package/dist/react/Truchet.js +181 -0
- package/dist/react/Vignette.js +181 -0
- package/dist/react/Voronoi.js +181 -0
- package/dist/react/Weave.js +181 -0
- package/dist/react/components/ConicGradient.d.ts +35 -0
- package/dist/react/components/ConicGradient.d.ts.map +1 -0
- package/dist/react/components/DiamondGradient.d.ts +37 -0
- package/dist/react/components/DiamondGradient.d.ts.map +1 -0
- package/dist/react/components/DropShadow.d.ts +36 -0
- package/dist/react/components/DropShadow.d.ts.map +1 -0
- package/dist/react/components/Grid.d.ts +2 -1
- package/dist/react/components/Grid.d.ts.map +1 -1
- package/dist/react/components/HexGrid.d.ts +34 -0
- package/dist/react/components/HexGrid.d.ts.map +1 -0
- package/dist/react/components/MultiPointGradient.d.ts +38 -0
- package/dist/react/components/MultiPointGradient.d.ts.map +1 -0
- package/dist/react/components/RadialGradient.d.ts +4 -1
- package/dist/react/components/RadialGradient.d.ts.map +1 -1
- package/dist/react/components/Solarize.d.ts +34 -0
- package/dist/react/components/Solarize.d.ts.map +1 -0
- package/dist/react/components/Truchet.d.ts +35 -0
- package/dist/react/components/Truchet.d.ts.map +1 -0
- package/dist/react/components/Vignette.d.ts +36 -0
- package/dist/react/components/Vignette.d.ts.map +1 -0
- package/dist/react/components/Voronoi.d.ts +36 -0
- package/dist/react/components/Voronoi.d.ts.map +1 -0
- package/dist/react/components/Weave.d.ts +35 -0
- package/dist/react/components/Weave.d.ts.map +1 -0
- package/dist/react/engine/Preview.d.ts.map +1 -1
- package/dist/react/index.d.ts +10 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +11 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +141 -1
- package/dist/registry.js +2315 -267
- package/dist/solid/components/ConicGradient.d.ts +32 -0
- package/dist/solid/components/ConicGradient.d.ts.map +1 -0
- package/dist/solid/components/ConicGradient.js +183 -0
- package/dist/solid/components/DiamondGradient.d.ts +34 -0
- package/dist/solid/components/DiamondGradient.d.ts.map +1 -0
- package/dist/solid/components/DiamondGradient.js +183 -0
- package/dist/solid/components/DropShadow.d.ts +33 -0
- package/dist/solid/components/DropShadow.d.ts.map +1 -0
- package/dist/solid/components/DropShadow.js +183 -0
- package/dist/solid/components/Grid.d.ts +2 -1
- package/dist/solid/components/Grid.d.ts.map +1 -1
- package/dist/solid/components/HexGrid.d.ts +31 -0
- package/dist/solid/components/HexGrid.d.ts.map +1 -0
- package/dist/solid/components/HexGrid.js +183 -0
- package/dist/solid/components/MultiPointGradient.d.ts +35 -0
- package/dist/solid/components/MultiPointGradient.d.ts.map +1 -0
- package/dist/solid/components/MultiPointGradient.js +183 -0
- package/dist/solid/components/RadialGradient.d.ts +4 -1
- package/dist/solid/components/RadialGradient.d.ts.map +1 -1
- package/dist/solid/components/Solarize.d.ts +31 -0
- package/dist/solid/components/Solarize.d.ts.map +1 -0
- package/dist/solid/components/Solarize.js +183 -0
- package/dist/solid/components/Truchet.d.ts +32 -0
- package/dist/solid/components/Truchet.d.ts.map +1 -0
- package/dist/solid/components/Truchet.js +183 -0
- package/dist/solid/components/Vignette.d.ts +33 -0
- package/dist/solid/components/Vignette.d.ts.map +1 -0
- package/dist/solid/components/Vignette.js +183 -0
- package/dist/solid/components/Voronoi.d.ts +33 -0
- package/dist/solid/components/Voronoi.d.ts.map +1 -0
- package/dist/solid/components/Voronoi.js +183 -0
- package/dist/solid/components/Weave.d.ts +32 -0
- package/dist/solid/components/Weave.d.ts.map +1 -0
- package/dist/solid/components/Weave.js +183 -0
- package/dist/solid/engine/Preview.d.ts.map +1 -1
- package/dist/solid/engine/Preview.js +200 -180
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/solid/index.d.ts +10 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +178 -158
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +141 -1
- package/dist/svelte/components/ConicGradient.svelte.d.ts +22 -0
- package/dist/svelte/components/DiamondGradient.svelte.d.ts +24 -0
- package/dist/svelte/components/DropShadow.svelte.d.ts +23 -0
- package/dist/svelte/components/Grid.svelte.d.ts +1 -0
- package/dist/svelte/components/HexGrid.svelte.d.ts +21 -0
- package/dist/svelte/components/MultiPointGradient.svelte.d.ts +25 -0
- package/dist/svelte/components/RadialGradient.svelte.d.ts +3 -0
- package/dist/svelte/components/Solarize.svelte.d.ts +21 -0
- package/dist/svelte/components/Truchet.svelte.d.ts +22 -0
- package/dist/svelte/components/Vignette.svelte.d.ts +23 -0
- package/dist/svelte/components/Voronoi.svelte.d.ts +23 -0
- package/dist/svelte/components/Weave.svelte.d.ts +22 -0
- package/dist/svelte/{generatePresetCode-BzFhasGi.js → generatePresetCode-C7KnCLnD.js} +141 -1
- package/dist/svelte/index.d.ts +10 -0
- package/dist/svelte/index.js +1810 -340
- package/dist/svelte/source/components/ConicGradient.svelte +289 -0
- package/dist/svelte/source/components/DiamondGradient.svelte +291 -0
- package/dist/svelte/source/components/DropShadow.svelte +290 -0
- package/dist/svelte/source/components/Grid.svelte +1 -0
- package/dist/svelte/source/components/HexGrid.svelte +288 -0
- package/dist/svelte/source/components/MultiPointGradient.svelte +292 -0
- package/dist/svelte/source/components/RadialGradient.svelte +3 -0
- package/dist/svelte/source/components/Solarize.svelte +288 -0
- package/dist/svelte/source/components/Truchet.svelte +289 -0
- package/dist/svelte/source/components/Vignette.svelte +290 -0
- package/dist/svelte/source/components/Voronoi.svelte +290 -0
- package/dist/svelte/source/components/Weave.svelte +289 -0
- package/dist/svelte/source/engine/Preview.svelte +20 -0
- package/dist/svelte/source/index.js +10 -0
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/ConicGradient.js +3 -0
- package/dist/vue/ConicGradient.vue_vue_type_script_setup_true_lang.js +171 -0
- package/dist/vue/DiamondGradient.js +3 -0
- package/dist/vue/DiamondGradient.vue_vue_type_script_setup_true_lang.js +173 -0
- package/dist/vue/DropShadow.js +3 -0
- package/dist/vue/DropShadow.vue_vue_type_script_setup_true_lang.js +170 -0
- package/dist/vue/Grid.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/vue/HexGrid.js +3 -0
- package/dist/vue/HexGrid.vue_vue_type_script_setup_true_lang.js +170 -0
- package/dist/vue/MultiPointGradient.js +3 -0
- package/dist/vue/MultiPointGradient.vue_vue_type_script_setup_true_lang.js +176 -0
- package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +20 -0
- package/dist/vue/RadialGradient.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/vue/Solarize.js +3 -0
- package/dist/vue/Solarize.vue_vue_type_script_setup_true_lang.js +167 -0
- package/dist/vue/Truchet.js +3 -0
- package/dist/vue/Truchet.vue_vue_type_script_setup_true_lang.js +171 -0
- package/dist/vue/Vignette.js +3 -0
- package/dist/vue/Vignette.vue_vue_type_script_setup_true_lang.js +170 -0
- package/dist/vue/Voronoi.js +3 -0
- package/dist/vue/Voronoi.vue_vue_type_script_setup_true_lang.js +174 -0
- package/dist/vue/Weave.js +3 -0
- package/dist/vue/Weave.vue_vue_type_script_setup_true_lang.js +170 -0
- package/dist/vue/components/ConicGradient.vue.d.ts +57 -0
- package/dist/vue/components/ConicGradient.vue.d.ts.map +1 -0
- package/dist/vue/components/DiamondGradient.vue.d.ts +59 -0
- package/dist/vue/components/DiamondGradient.vue.d.ts.map +1 -0
- package/dist/vue/components/DropShadow.vue.d.ts +58 -0
- package/dist/vue/components/DropShadow.vue.d.ts.map +1 -0
- package/dist/vue/components/Grid.vue.d.ts +1 -0
- package/dist/vue/components/Grid.vue.d.ts.map +1 -1
- package/dist/vue/components/HexGrid.vue.d.ts +56 -0
- package/dist/vue/components/HexGrid.vue.d.ts.map +1 -0
- package/dist/vue/components/MultiPointGradient.vue.d.ts +60 -0
- package/dist/vue/components/MultiPointGradient.vue.d.ts.map +1 -0
- package/dist/vue/components/RadialGradient.vue.d.ts +3 -0
- package/dist/vue/components/RadialGradient.vue.d.ts.map +1 -1
- package/dist/vue/components/Solarize.vue.d.ts +56 -0
- package/dist/vue/components/Solarize.vue.d.ts.map +1 -0
- package/dist/vue/components/Truchet.vue.d.ts +57 -0
- package/dist/vue/components/Truchet.vue.d.ts.map +1 -0
- package/dist/vue/components/Vignette.vue.d.ts +58 -0
- package/dist/vue/components/Vignette.vue.d.ts.map +1 -0
- package/dist/vue/components/Voronoi.vue.d.ts +58 -0
- package/dist/vue/components/Voronoi.vue.d.ts.map +1 -0
- package/dist/vue/components/Weave.vue.d.ts +57 -0
- package/dist/vue/components/Weave.vue.d.ts.map +1 -0
- package/dist/vue/index.d.ts +10 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +11 -1
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +141 -1
- package/package.json +106 -1
- package/dist/core/RadialGradient-BMmhr2qB.js +0 -75
- package/dist/core/shaderRegistry-Cq1lFKDh.js +0 -222
- /package/dist/core/{CRTScreen-BZ-sAmPZ.js → CRTScreen-DolQEkb1.js} +0 -0
- /package/dist/core/{ContourLines-yEb5IJ1Y.js → ContourLines-C0XSJEkE.js} +0 -0
- /package/dist/core/{CursorRipples-CkVMs3DF.js → CursorRipples-n_xEDr10.js} +0 -0
- /package/dist/core/{CursorTrail-1D7ymT9O.js → CursorTrail-Dm2pOh9x.js} +0 -0
- /package/dist/core/{DiffuseBlur-BAq1jHVB.js → DiffuseBlur-BqIV4JLM.js} +0 -0
- /package/dist/core/{Dither-U_UFB8oZ.js → Dither-D_YF6z03.js} +0 -0
- /package/dist/core/{DotGrid-BzAsAVrt.js → DotGrid-Cv_aCN_c.js} +0 -0
- /package/dist/core/{Duotone-CuIRHH_k.js → Duotone-Db9kfzCs.js} +0 -0
- /package/dist/core/{FallingLines-BQzBwOy0.js → FallingLines-CTa8zuvs.js} +0 -0
- /package/dist/core/{FilmGrain-Birzz05_.js → FilmGrain-SrB3ZXIg.js} +0 -0
- /package/dist/core/{FloatingParticles-shoqY6fm.js → FloatingParticles-BVUK6GlL.js} +0 -0
- /package/dist/core/{FlowField-CJdtd3Za.js → FlowField-CF95xOBc.js} +0 -0
- /package/dist/core/{FlowingGradient-Dsuqf7Yn.js → FlowingGradient-DhOce4wJ.js} +0 -0
- /package/dist/core/{Form3D-Czd8VBcU.js → Form3D-CcBdpCQr.js} +0 -0
- /package/dist/core/{GlassTiles-CQFngHS9.js → GlassTiles-LsfUL0JT.js} +0 -0
- /package/dist/core/{Glitch-q3H4XH_K.js → Glitch-DuQ-dtyM.js} +0 -0
- /package/dist/core/{Glow-BltxRvyM.js → Glow-CsiZkj9_.js} +0 -0
- /package/dist/core/{Godrays-YxezlRHu.js → Godrays-CoSL15CM.js} +0 -0
- /package/dist/core/{Grayscale-D_RwmAV3.js → Grayscale-BrwJ4_uW.js} +0 -0
- /package/dist/core/{GridDistortion-JCuvWcoV.js → GridDistortion-DIarsmKa.js} +0 -0
- /package/dist/core/{Group-CeA8FtS3.js → Group-Cc3_0QdC.js} +0 -0
- /package/dist/core/{Halftone-4oL_AA-D.js → Halftone-nfr7eNaT.js} +0 -0
- /package/dist/core/{HueShift-7Gv8BV4v.js → HueShift-kNK2rEVM.js} +0 -0
- /package/dist/core/{ImageTexture-BaVcRld1.js → ImageTexture-acllbA1z.js} +0 -0
- /package/dist/core/{Invert-D_jzp4D9.js → Invert-CMnUhHo2.js} +0 -0
- /package/dist/core/{Kaleidoscope-Baz9Fu8k.js → Kaleidoscope-CgnidMrq.js} +0 -0
- /package/dist/core/{LensFlare-Dyv84bAb.js → LensFlare-CkCTGuKS.js} +0 -0
- /package/dist/core/{LinearBlur-ZGWbzIt4.js → LinearBlur-ByirUCm_.js} +0 -0
- /package/dist/core/{LinearGradient-CZGPiyHq.js → LinearGradient-B2ErQXPL.js} +0 -0
- /package/dist/core/{Liquify-DrWLq2Kz.js → Liquify-BTyJAOmV.js} +0 -0
- /package/dist/core/{Mirror-C5LuGm-w.js → Mirror-CAW37Y13.js} +0 -0
- /package/dist/core/{Paper-BVuYd7u4.js → Paper-Dkh14pIW.js} +0 -0
- /package/dist/core/{Perspective-CqV-lhEE.js → Perspective-CyG4fNaI.js} +0 -0
- /package/dist/core/{Pixelate-DrG7QsBR.js → Pixelate-DkD_q_Ma.js} +0 -0
- /package/dist/core/{Plasma-BvaqpPiL.js → Plasma-Cuv1eJhl.js} +0 -0
- /package/dist/core/{PolarCoordinates-CiNUC56M.js → PolarCoordinates-iQB2vg0q.js} +0 -0
- /package/dist/core/{Posterize-CGEUVRt_.js → Posterize-Bnf3EUfk.js} +0 -0
- /package/dist/core/{ProgressiveBlur-jEam9zrU.js → ProgressiveBlur-Bc_dXikb.js} +0 -0
- /package/dist/core/{RectangularCoordinates-Cj-d2ol3.js → RectangularCoordinates-DbQ25OTz.js} +0 -0
- /package/dist/core/{Ripples-r12S7WG7.js → Ripples-Daco0GPY.js} +0 -0
- /package/dist/core/{Saturation-BAORnZso.js → Saturation-BNWZN-nJ.js} +0 -0
- /package/dist/core/{Sharpness-CFzYBYlL.js → Sharpness-tRNM2arG.js} +0 -0
- /package/dist/core/{Shatter-avsezFDy.js → Shatter-Cyq_lBjn.js} +0 -0
- /package/dist/core/{SimplexNoise-BjoeAe6H.js → SimplexNoise-DSvDs4b7.js} +0 -0
- /package/dist/core/{SineWave-B-2YxAht.js → SineWave-Beim8Xoe.js} +0 -0
- /package/dist/core/{SolidColor-2o0vQu86.js → SolidColor-kt6ayyXz.js} +0 -0
- /package/dist/core/{Spherize-DKJKva6y.js → Spherize-u6gO2hh2.js} +0 -0
- /package/dist/core/{Spiral-Dzsm_AJG.js → Spiral-DRpE_jsz.js} +0 -0
- /package/dist/core/{Strands-42wUIQMv.js → Strands-BqCaitMb.js} +0 -0
- /package/dist/core/{Stretch-BVPICFxU.js → Stretch-TztFP3F2.js} +0 -0
- /package/dist/core/{Stripes-DpWPzhd5.js → Stripes-UYWf5Cmn.js} +0 -0
- /package/dist/core/{StudioBackground-CxOYZ28g.js → StudioBackground-CvKGt77W.js} +0 -0
- /package/dist/core/{Swirl-CaQpQWY2.js → Swirl-YCWu5OJE.js} +0 -0
- /package/dist/core/{TiltShift-yJYvxA1V.js → TiltShift-DKibnYzM.js} +0 -0
- /package/dist/core/{Tint-BR2yMhfB.js → Tint-aVYSCIlD.js} +0 -0
- /package/dist/core/{Tritone-PTTYWr_w.js → Tritone-Cn0ugwld.js} +0 -0
- /package/dist/core/{Twirl-CE2yzv3_.js → Twirl-Dk8y9GcM.js} +0 -0
- /package/dist/core/{Vibrance-CljpZu_J.js → Vibrance-Cdx5A_q2.js} +0 -0
- /package/dist/core/{WaveDistortion-BSt0JJbk.js → WaveDistortion-C7mIgJok.js} +0 -0
- /package/dist/core/{ZoomBlur-CAeswzf5.js → ZoomBlur-DUcqnggc.js} +0 -0
- /package/dist/core/{browser-CWKHEzb9.js → browser-CpS3EEFG.js} +0 -0
- /package/dist/core/{sdf-CZRX0uur.js → sdf-Bux00UoZ.js} +0 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { a as transformColor, l as transformPosition } from "./transformations-B5lM6fYX.js";
|
|
2
|
+
import { Fn, float, pow, screenUV, sqrt, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
3
|
+
const componentDefinition = {
|
|
4
|
+
name: "MultiPointGradient",
|
|
5
|
+
category: "Textures",
|
|
6
|
+
description: "Five individually placed color points blended together by proximity — drag each point to shape the gradient",
|
|
7
|
+
props: {
|
|
8
|
+
colorA: {
|
|
9
|
+
default: "#4776E6",
|
|
10
|
+
transform: transformColor,
|
|
11
|
+
description: "Color of control point A",
|
|
12
|
+
ui: {
|
|
13
|
+
type: "color",
|
|
14
|
+
label: "Color",
|
|
15
|
+
group: "Point A"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
positionA: {
|
|
19
|
+
default: {
|
|
20
|
+
x: .2,
|
|
21
|
+
y: .2
|
|
22
|
+
},
|
|
23
|
+
transform: transformPosition,
|
|
24
|
+
description: "Position of control point A",
|
|
25
|
+
ui: {
|
|
26
|
+
type: "position",
|
|
27
|
+
label: "Position",
|
|
28
|
+
group: "Point A"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
colorB: {
|
|
32
|
+
default: "#C44DFF",
|
|
33
|
+
transform: transformColor,
|
|
34
|
+
description: "Color of control point B",
|
|
35
|
+
ui: {
|
|
36
|
+
type: "color",
|
|
37
|
+
label: "Color",
|
|
38
|
+
group: "Point B"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
positionB: {
|
|
42
|
+
default: {
|
|
43
|
+
x: .8,
|
|
44
|
+
y: .2
|
|
45
|
+
},
|
|
46
|
+
transform: transformPosition,
|
|
47
|
+
description: "Position of control point B",
|
|
48
|
+
ui: {
|
|
49
|
+
type: "position",
|
|
50
|
+
label: "Position",
|
|
51
|
+
group: "Point B"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
colorC: {
|
|
55
|
+
default: "#1ABC9C",
|
|
56
|
+
transform: transformColor,
|
|
57
|
+
description: "Color of control point C",
|
|
58
|
+
ui: {
|
|
59
|
+
type: "color",
|
|
60
|
+
label: "Color",
|
|
61
|
+
group: "Point C"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
positionC: {
|
|
65
|
+
default: {
|
|
66
|
+
x: .2,
|
|
67
|
+
y: .8
|
|
68
|
+
},
|
|
69
|
+
transform: transformPosition,
|
|
70
|
+
description: "Position of control point C",
|
|
71
|
+
ui: {
|
|
72
|
+
type: "position",
|
|
73
|
+
label: "Position",
|
|
74
|
+
group: "Point C"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
colorD: {
|
|
78
|
+
default: "#F8BBD9",
|
|
79
|
+
transform: transformColor,
|
|
80
|
+
description: "Color of control point D",
|
|
81
|
+
ui: {
|
|
82
|
+
type: "color",
|
|
83
|
+
label: "Color",
|
|
84
|
+
group: "Point D"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
positionD: {
|
|
88
|
+
default: {
|
|
89
|
+
x: .8,
|
|
90
|
+
y: .8
|
|
91
|
+
},
|
|
92
|
+
transform: transformPosition,
|
|
93
|
+
description: "Position of control point D",
|
|
94
|
+
ui: {
|
|
95
|
+
type: "position",
|
|
96
|
+
label: "Position",
|
|
97
|
+
group: "Point D"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
colorE: {
|
|
101
|
+
default: "#FF8C42",
|
|
102
|
+
transform: transformColor,
|
|
103
|
+
description: "Color of control point E",
|
|
104
|
+
ui: {
|
|
105
|
+
type: "color",
|
|
106
|
+
label: "Color",
|
|
107
|
+
group: "Point E"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
positionE: {
|
|
111
|
+
default: {
|
|
112
|
+
x: .5,
|
|
113
|
+
y: .5
|
|
114
|
+
},
|
|
115
|
+
transform: transformPosition,
|
|
116
|
+
description: "Position of control point E",
|
|
117
|
+
ui: {
|
|
118
|
+
type: "position",
|
|
119
|
+
label: "Position",
|
|
120
|
+
group: "Point E"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
smoothness: {
|
|
124
|
+
default: 2,
|
|
125
|
+
description: "Controls how smoothly colors blend.",
|
|
126
|
+
ui: {
|
|
127
|
+
type: ["range", "map"],
|
|
128
|
+
min: 0,
|
|
129
|
+
max: 5,
|
|
130
|
+
step: .05,
|
|
131
|
+
label: "Smoothness",
|
|
132
|
+
group: "Effect"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
fragmentNode: ({ uniforms }) => {
|
|
137
|
+
const smoothness = uniforms.smoothness.uniform;
|
|
138
|
+
const aspect = viewportSize.x.div(viewportSize.y);
|
|
139
|
+
const uvAspect = vec2(screenUV.x.mul(aspect), screenUV.y);
|
|
140
|
+
const points = [
|
|
141
|
+
{
|
|
142
|
+
color: uniforms.colorA.uniform,
|
|
143
|
+
pos: vec2(uniforms.positionA.uniform.x.mul(aspect), uniforms.positionA.uniform.y.oneMinus())
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
color: uniforms.colorB.uniform,
|
|
147
|
+
pos: vec2(uniforms.positionB.uniform.x.mul(aspect), uniforms.positionB.uniform.y.oneMinus())
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
color: uniforms.colorC.uniform,
|
|
151
|
+
pos: vec2(uniforms.positionC.uniform.x.mul(aspect), uniforms.positionC.uniform.y.oneMinus())
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
color: uniforms.colorD.uniform,
|
|
155
|
+
pos: vec2(uniforms.positionD.uniform.x.mul(aspect), uniforms.positionD.uniform.y.oneMinus())
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
color: uniforms.colorE.uniform,
|
|
159
|
+
pos: vec2(uniforms.positionE.uniform.x.mul(aspect), uniforms.positionE.uniform.y.oneMinus())
|
|
160
|
+
}
|
|
161
|
+
];
|
|
162
|
+
return Fn(() => {
|
|
163
|
+
const wRGB = vec3(0).toVar();
|
|
164
|
+
const wA = float(0).toVar();
|
|
165
|
+
const wSum = float(0).toVar();
|
|
166
|
+
for (const { color, pos } of points) {
|
|
167
|
+
const dx = uvAspect.x.sub(pos.x);
|
|
168
|
+
const dy = uvAspect.y.sub(pos.y);
|
|
169
|
+
const dist = sqrt(dx.mul(dx).add(dy.mul(dy))).add(float(.001));
|
|
170
|
+
const effectivePower = float(8).div(smoothness.add(float(.5))).min(float(8));
|
|
171
|
+
const weight = float(1).div(pow(dist, effectivePower));
|
|
172
|
+
wRGB.assign(wRGB.add(color.rgb.mul(weight)));
|
|
173
|
+
wA.assign(wA.add(color.a.mul(weight)));
|
|
174
|
+
wSum.assign(wSum.add(weight));
|
|
175
|
+
}
|
|
176
|
+
return vec4(wRGB.div(wSum), wA.div(wSum));
|
|
177
|
+
})();
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
var MultiPointGradient_default = componentDefinition;
|
|
181
|
+
export { componentDefinition as n, MultiPointGradient_default as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as transformColor, l as transformPosition } from "./transformations-B5lM6fYX.js";
|
|
2
|
-
import { n as createAnalyticSdfSampler, r as createSvgSdfSampler } from "./sdf-
|
|
2
|
+
import { n as createAnalyticSdfSampler, r as createSvgSdfSampler } from "./sdf-Bux00UoZ.js";
|
|
3
3
|
import { Fn, 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-B5lM6fYX.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-Bux00UoZ.js";
|
|
4
4
|
import { cos, float, mix, screenUV, sin, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
|
|
5
5
|
var transformStrokePosition = (value) => {
|
|
6
6
|
return {
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.js";
|
|
2
|
+
import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
|
|
3
|
+
import { cos, distance, float, fract, screenUV, sin, vec2, viewportSize } from "three/tsl";
|
|
4
|
+
const componentDefinition = {
|
|
5
|
+
name: "RadialGradient",
|
|
6
|
+
category: "Textures",
|
|
7
|
+
description: "Radial gradient radiating from a center point",
|
|
8
|
+
props: {
|
|
9
|
+
colorA: {
|
|
10
|
+
default: "#ff0000",
|
|
11
|
+
transform: transformColor,
|
|
12
|
+
description: "The starting color at the center of the gradient",
|
|
13
|
+
ui: {
|
|
14
|
+
type: "color",
|
|
15
|
+
label: "Color A",
|
|
16
|
+
group: "Colors"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
colorB: {
|
|
20
|
+
default: "#0000ff",
|
|
21
|
+
transform: transformColor,
|
|
22
|
+
description: "The ending color at the edge of the gradient",
|
|
23
|
+
ui: {
|
|
24
|
+
type: "color",
|
|
25
|
+
label: "Color B",
|
|
26
|
+
group: "Colors"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
center: {
|
|
30
|
+
default: {
|
|
31
|
+
x: .5,
|
|
32
|
+
y: .5
|
|
33
|
+
},
|
|
34
|
+
transform: transformPosition,
|
|
35
|
+
description: "The center point of the radial gradient",
|
|
36
|
+
ui: {
|
|
37
|
+
type: "position",
|
|
38
|
+
label: "Center",
|
|
39
|
+
group: "Position"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
radius: {
|
|
43
|
+
default: 1,
|
|
44
|
+
description: "The radius of the gradient (normalized, 0.0-1.0)",
|
|
45
|
+
ui: {
|
|
46
|
+
type: ["range", "map"],
|
|
47
|
+
min: 0,
|
|
48
|
+
max: 2,
|
|
49
|
+
step: .1,
|
|
50
|
+
label: "Radius",
|
|
51
|
+
group: "Effect"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
repeat: {
|
|
55
|
+
default: 1,
|
|
56
|
+
description: "Number of times the gradient repeats. Values above 1 create concentric rings.",
|
|
57
|
+
ui: {
|
|
58
|
+
type: ["range", "map"],
|
|
59
|
+
min: 1,
|
|
60
|
+
max: 20,
|
|
61
|
+
step: .5,
|
|
62
|
+
label: "Repeat",
|
|
63
|
+
group: "Effect"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
aspect: {
|
|
67
|
+
default: 1,
|
|
68
|
+
description: "Stretches the gradient into an ellipse. Values below 1 compress vertically, above 1 compress horizontally.",
|
|
69
|
+
ui: {
|
|
70
|
+
type: ["range", "map"],
|
|
71
|
+
min: .1,
|
|
72
|
+
max: 4,
|
|
73
|
+
step: .05,
|
|
74
|
+
label: "Aspect",
|
|
75
|
+
group: "Effect"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
skewAngle: {
|
|
79
|
+
default: 0,
|
|
80
|
+
description: "Rotates the ellipse axis in degrees. Only visible when Aspect is not 1.",
|
|
81
|
+
ui: {
|
|
82
|
+
type: ["range", "map"],
|
|
83
|
+
min: 0,
|
|
84
|
+
max: 360,
|
|
85
|
+
step: 1,
|
|
86
|
+
label: "Skew Angle",
|
|
87
|
+
group: "Effect"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
colorSpace: {
|
|
91
|
+
default: "linear",
|
|
92
|
+
transform: transformColorSpace,
|
|
93
|
+
compileTime: true,
|
|
94
|
+
description: "Color space for color interpolation",
|
|
95
|
+
ui: {
|
|
96
|
+
type: "select",
|
|
97
|
+
options: colorSpaceOptions,
|
|
98
|
+
label: "Color Space",
|
|
99
|
+
group: "Colors"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
fragmentNode: ({ uniforms }) => {
|
|
104
|
+
const uv$1 = screenUV;
|
|
105
|
+
const aspectRatio = viewportSize.x.div(viewportSize.y);
|
|
106
|
+
const aspectCorrectedUV = vec2(uv$1.x.mul(aspectRatio), uv$1.y);
|
|
107
|
+
const centerPos = vec2(uniforms.center.uniform.x.mul(aspectRatio), uniforms.center.uniform.y.oneMinus());
|
|
108
|
+
const dx = aspectCorrectedUV.x.sub(centerPos.x);
|
|
109
|
+
const dy = aspectCorrectedUV.y.sub(centerPos.y);
|
|
110
|
+
const skewRad = uniforms.skewAngle.uniform.mul(float(Math.PI / 180));
|
|
111
|
+
const cosS = cos(skewRad);
|
|
112
|
+
const sinS = sin(skewRad);
|
|
113
|
+
const rdx = dx.mul(cosS).add(dy.mul(sinS));
|
|
114
|
+
const rdy = dx.mul(sinS).negate().add(dy.mul(cosS));
|
|
115
|
+
const dist = distance(vec2(rdx.mul(uniforms.aspect.uniform), rdy), vec2(float(0), float(0)));
|
|
116
|
+
const safeRadius = uniforms.radius.uniform.max(float(1e-6));
|
|
117
|
+
const t = dist.div(safeRadius).mul(uniforms.repeat.uniform);
|
|
118
|
+
const finalT = uniforms.repeat.uniform.greaterThan(float(1.0001)).select(fract(t), t.clamp(float(0), float(1)));
|
|
119
|
+
return mixColors(uniforms.colorA.uniform, uniforms.colorB.uniform, finalT, uniforms.colorSpace.uniform.value);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
var RadialGradient_default = componentDefinition;
|
|
123
|
+
export { componentDefinition as n, RadialGradient_default as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.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-Bux00UoZ.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-B5lM6fYX.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-Bux00UoZ.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,47 @@
|
|
|
1
|
+
import { dot, mix, vec3, vec4 } from "three/tsl";
|
|
2
|
+
const componentDefinition = {
|
|
3
|
+
name: "Solarize",
|
|
4
|
+
category: "Adjustments",
|
|
5
|
+
description: "Inverts tones above a luminance threshold — a classic darkroom and photo effect",
|
|
6
|
+
requiresChild: true,
|
|
7
|
+
props: {
|
|
8
|
+
threshold: {
|
|
9
|
+
default: .5,
|
|
10
|
+
description: "Luminance level above which colors are inverted. Pixels brighter than this threshold get flipped.",
|
|
11
|
+
ui: {
|
|
12
|
+
type: ["range", "map"],
|
|
13
|
+
min: 0,
|
|
14
|
+
max: 1,
|
|
15
|
+
step: .01,
|
|
16
|
+
label: "Threshold",
|
|
17
|
+
group: "Effect"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
strength: {
|
|
21
|
+
default: 1,
|
|
22
|
+
description: "Blend between original (0) and fully solarized (1)",
|
|
23
|
+
ui: {
|
|
24
|
+
type: ["range", "map"],
|
|
25
|
+
min: 0,
|
|
26
|
+
max: 1,
|
|
27
|
+
step: .01,
|
|
28
|
+
label: "Strength",
|
|
29
|
+
group: "Effect"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
fragmentNode: ({ uniforms, childNode }) => {
|
|
34
|
+
if (!childNode) {
|
|
35
|
+
console.error("You must pass a child component into the Solarize shader.");
|
|
36
|
+
return vec4(0);
|
|
37
|
+
}
|
|
38
|
+
const threshold = uniforms.threshold.uniform;
|
|
39
|
+
const strength = uniforms.strength.uniform;
|
|
40
|
+
const luminance = dot(childNode.rgb, vec3(.299, .587, .114));
|
|
41
|
+
const inverted = vec3(1).sub(childNode.rgb);
|
|
42
|
+
const solarized = luminance.greaterThan(threshold).select(inverted, childNode.rgb);
|
|
43
|
+
return vec4(mix(childNode.rgb, solarized, strength), childNode.a);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
var Solarize_default = componentDefinition;
|
|
47
|
+
export { componentDefinition as n, Solarize_default as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.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-Bux00UoZ.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-B5lM6fYX.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-Bux00UoZ.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,100 @@
|
|
|
1
|
+
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.js";
|
|
2
|
+
import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
|
|
3
|
+
import { Fn, abs, dot, float, floor, fract, fwidth, length, min, screenUV, sin, smoothstep, step, vec2, viewportSize } from "three/tsl";
|
|
4
|
+
var truchetHash = Fn(([p]) => {
|
|
5
|
+
return fract(sin(dot(p, vec2(127.1, 311.7))).mul(float(43758.5453)));
|
|
6
|
+
});
|
|
7
|
+
const componentDefinition = {
|
|
8
|
+
name: "Truchet",
|
|
9
|
+
category: "Textures",
|
|
10
|
+
description: "Quarter-circle arc tiles that connect to form organic, maze-like flowing curves",
|
|
11
|
+
props: {
|
|
12
|
+
colorA: {
|
|
13
|
+
default: "#000000",
|
|
14
|
+
transform: transformColor,
|
|
15
|
+
description: "Background color between the arcs",
|
|
16
|
+
ui: {
|
|
17
|
+
type: "color",
|
|
18
|
+
label: "Color A",
|
|
19
|
+
group: "Colors"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
colorB: {
|
|
23
|
+
default: "#ffffff",
|
|
24
|
+
transform: transformColor,
|
|
25
|
+
description: "Arc line color",
|
|
26
|
+
ui: {
|
|
27
|
+
type: "color",
|
|
28
|
+
label: "Color B",
|
|
29
|
+
group: "Colors"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
cells: {
|
|
33
|
+
default: 10,
|
|
34
|
+
description: "Number of tiles across the shortest canvas edge",
|
|
35
|
+
ui: {
|
|
36
|
+
type: ["range", "map"],
|
|
37
|
+
min: 2,
|
|
38
|
+
max: 40,
|
|
39
|
+
step: 1,
|
|
40
|
+
label: "Cells",
|
|
41
|
+
group: "Effect"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
thickness: {
|
|
45
|
+
default: 2,
|
|
46
|
+
description: "Thickness of the arc lines",
|
|
47
|
+
ui: {
|
|
48
|
+
type: ["range", "map"],
|
|
49
|
+
min: 0,
|
|
50
|
+
max: 20,
|
|
51
|
+
step: .1,
|
|
52
|
+
label: "Thickness",
|
|
53
|
+
group: "Effect"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
seed: {
|
|
57
|
+
default: 0,
|
|
58
|
+
description: "Random seed — changes which tiles flip, producing a different maze pattern",
|
|
59
|
+
ui: {
|
|
60
|
+
type: ["range", "map"],
|
|
61
|
+
min: 0,
|
|
62
|
+
max: 100,
|
|
63
|
+
step: 1,
|
|
64
|
+
label: "Seed",
|
|
65
|
+
group: "Effect"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
colorSpace: {
|
|
69
|
+
default: "linear",
|
|
70
|
+
transform: transformColorSpace,
|
|
71
|
+
compileTime: true,
|
|
72
|
+
description: "Color space for color interpolation",
|
|
73
|
+
ui: {
|
|
74
|
+
type: "select",
|
|
75
|
+
options: colorSpaceOptions,
|
|
76
|
+
label: "Color Space",
|
|
77
|
+
group: "Colors"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
fragmentNode: ({ uniforms }) => {
|
|
82
|
+
const uv$1 = screenUV;
|
|
83
|
+
const aspect = viewportSize.x.div(viewportSize.y);
|
|
84
|
+
const scaledUV = vec2(uv$1.x.mul(aspect), uv$1.y).mul(uniforms.cells.uniform);
|
|
85
|
+
const cell = floor(scaledUV);
|
|
86
|
+
const localUV = fract(scaledUV);
|
|
87
|
+
const flip = truchetHash(cell.add(uniforms.seed.uniform)).greaterThan(float(.5));
|
|
88
|
+
const c1x = flip.select(float(1), float(0));
|
|
89
|
+
const c1y = flip.select(float(0), float(0));
|
|
90
|
+
const c2x = flip.select(float(0), float(1));
|
|
91
|
+
const c2y = flip.select(float(1), float(1));
|
|
92
|
+
const arcDist = min(abs(length(localUV.sub(vec2(c1x, c1y))).sub(float(.5))), abs(length(localUV.sub(vec2(c2x, c2y))).sub(float(.5))));
|
|
93
|
+
const lineWidth = uniforms.thickness.uniform.mul(float(.005));
|
|
94
|
+
const pixel = fwidth(scaledUV.x).mul(float(.5));
|
|
95
|
+
const lineMask = smoothstep(lineWidth.add(pixel), lineWidth, arcDist).mul(step(float(1e-4), lineWidth));
|
|
96
|
+
return mixColors(uniforms.colorA.uniform, uniforms.colorB.uniform, lineMask, uniforms.colorSpace.uniform.value);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
var Truchet_default = componentDefinition;
|
|
100
|
+
export { componentDefinition as n, Truchet_default as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as transformColor, l as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.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-Bux00UoZ.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-CpS3EEFG.js";
|
|
2
2
|
import { CanvasTexture, SRGBColorSpace, VideoTexture } from "three/webgpu";
|
|
3
3
|
import { float, max, min, or, screenUV, select, step, texture, uniform, vec2, vec4, viewportSize } from "three/tsl";
|
|
4
4
|
const componentDefinition = {
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { a as transformColor, l as transformPosition } from "./transformations-B5lM6fYX.js";
|
|
2
|
+
import { length, mix, screenUV, smoothstep, vec2, vec4, viewportSize } from "three/tsl";
|
|
3
|
+
const componentDefinition = {
|
|
4
|
+
name: "Vignette",
|
|
5
|
+
category: "Stylize",
|
|
6
|
+
description: "Darkens or tints the edges of the frame, drawing attention toward the center",
|
|
7
|
+
requiresChild: true,
|
|
8
|
+
props: {
|
|
9
|
+
color: {
|
|
10
|
+
default: "#000000",
|
|
11
|
+
transform: transformColor,
|
|
12
|
+
description: "Color of the vignette at the edges",
|
|
13
|
+
ui: {
|
|
14
|
+
type: "color",
|
|
15
|
+
label: "Color",
|
|
16
|
+
group: "Colors"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
center: {
|
|
20
|
+
default: {
|
|
21
|
+
x: .5,
|
|
22
|
+
y: .5
|
|
23
|
+
},
|
|
24
|
+
transform: transformPosition,
|
|
25
|
+
description: "Center of the clear area where the vignette begins",
|
|
26
|
+
ui: {
|
|
27
|
+
type: "position",
|
|
28
|
+
label: "Center",
|
|
29
|
+
group: "Position"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
radius: {
|
|
33
|
+
default: .5,
|
|
34
|
+
description: "Distance from center where the vignette begins to fade in",
|
|
35
|
+
ui: {
|
|
36
|
+
type: ["range", "map"],
|
|
37
|
+
min: 0,
|
|
38
|
+
max: 1.5,
|
|
39
|
+
step: .01,
|
|
40
|
+
label: "Radius",
|
|
41
|
+
group: "Effect"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
falloff: {
|
|
45
|
+
default: .5,
|
|
46
|
+
description: "Width of the transition zone from clear to full vignette",
|
|
47
|
+
ui: {
|
|
48
|
+
type: ["range", "map"],
|
|
49
|
+
min: .01,
|
|
50
|
+
max: 1.5,
|
|
51
|
+
step: .01,
|
|
52
|
+
label: "Falloff",
|
|
53
|
+
group: "Effect"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
intensity: {
|
|
57
|
+
default: 1,
|
|
58
|
+
description: "Strength of the vignette effect",
|
|
59
|
+
ui: {
|
|
60
|
+
type: ["range", "map"],
|
|
61
|
+
min: 0,
|
|
62
|
+
max: 1,
|
|
63
|
+
step: .01,
|
|
64
|
+
label: "Intensity",
|
|
65
|
+
group: "Effect"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
fragmentNode: ({ uniforms, childNode }) => {
|
|
70
|
+
if (!childNode) {
|
|
71
|
+
console.error("You must pass a child component into the Vignette shader.");
|
|
72
|
+
return vec4(0);
|
|
73
|
+
}
|
|
74
|
+
const uv$1 = screenUV;
|
|
75
|
+
const aspect = viewportSize.x.div(viewportSize.y);
|
|
76
|
+
const aspectUV = vec2(uv$1.x.mul(aspect), uv$1.y);
|
|
77
|
+
const centerPos = vec2(uniforms.center.uniform.x.mul(aspect), uniforms.center.uniform.y.oneMinus());
|
|
78
|
+
const dist = length(aspectUV.sub(centerPos));
|
|
79
|
+
const vignetteMask = smoothstep(uniforms.radius.uniform, uniforms.radius.uniform.add(uniforms.falloff.uniform), dist);
|
|
80
|
+
return vec4(mix(childNode.rgb, uniforms.color.uniform.rgb, vignetteMask.mul(uniforms.intensity.uniform)), childNode.a);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
var Vignette_default = componentDefinition;
|
|
84
|
+
export { componentDefinition as n, Vignette_default as t };
|