shaders 2.5.85 → 2.5.87
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/README.md +1 -1
- package/dist/core/Crystal-z-2qqfhQ.js +394 -0
- package/dist/core/{Glass-BioLeiH6.js → Glass-BDHs6Enu.js} +40 -19
- package/dist/core/{VideoTexture-Dbsbgb1Y.js → VideoTexture-ChFw0jKS.js} +1 -1
- package/dist/core/{WebcamTexture-xvb8MuFz.js → WebcamTexture-CF1nwkNG.js} +1 -1
- package/dist/core/effects/glass.d.ts.map +1 -1
- package/dist/core/index.js +105 -77
- package/dist/core/registry.js +76 -75
- package/dist/core/renderer.d.ts.map +1 -1
- package/dist/core/shaderRegistry-O96t1zA9.js +222 -0
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/Crystal/index.d.ts +152 -0
- package/dist/core/shaders/Crystal/index.d.ts.map +1 -0
- package/dist/core/shaders/Crystal/index.js +4 -0
- package/dist/core/shaders/CursorRipples/index.js +1 -1
- package/dist/core/shaders/CursorTrail/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/Duotone/index.js +1 -1
- package/dist/core/shaders/Ellipse/index.js +1 -1
- package/dist/core/shaders/Emboss/index.js +1 -1
- 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 +1 -1
- package/dist/core/shaders/FlowingGradient/index.js +1 -1
- package/dist/core/shaders/Form3D/index.js +1 -1
- package/dist/core/shaders/Glass/index.d.ts.map +1 -1
- package/dist/core/shaders/Glass/index.js +1 -1
- 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.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/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/Neon/index.js +1 -1
- 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 +1 -1
- package/dist/core/shaders/Posterize/index.js +1 -1
- package/dist/core/shaders/ProgressiveBlur/index.js +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 +1 -1
- package/dist/core/shaders/Ripples/index.js +1 -1
- package/dist/core/shaders/RoundedRect/index.js +1 -1
- 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/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 +1 -1
- 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 +1 -1
- package/dist/core/shaders/Tritone/index.js +1 -1
- package/dist/core/shaders/Twirl/index.js +1 -1
- package/dist/core/shaders/Vesica/index.js +1 -1
- package/dist/core/shaders/Vibrance/index.js +1 -1
- package/dist/core/shaders/VideoTexture/index.js +2 -2
- package/dist/core/shaders/WaveDistortion/index.js +1 -1
- package/dist/core/shaders/WebcamTexture/index.js +2 -2
- package/dist/core/shaders/ZoomBlur/index.js +1 -1
- package/dist/core/types.d.ts +3 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/utilities/uniforms.d.ts.map +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 +27 -0
- package/dist/react/Crystal.js +181 -0
- package/dist/react/Preview.js +1 -0
- package/dist/react/Shader.js +1 -1
- package/dist/react/components/Crystal.d.ts +33 -0
- package/dist/react/components/Crystal.d.ts.map +1 -0
- package/dist/react/engine/Preview.d.ts.map +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +2 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +27 -0
- package/dist/registry.js +454 -0
- package/dist/solid/components/Crystal.d.ts +30 -0
- package/dist/solid/components/Crystal.d.ts.map +1 -0
- package/dist/solid/components/Crystal.js +183 -0
- package/dist/solid/engine/Preview.d.ts.map +1 -1
- package/dist/solid/engine/Preview.js +38 -36
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +152 -150
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +27 -0
- package/dist/svelte/components/Crystal.svelte.d.ts +20 -0
- package/dist/svelte/{generatePresetCode-B9QYLcji.js → generatePresetCode-BzFhasGi.js} +27 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +477 -330
- package/dist/svelte/source/components/Crystal.svelte +287 -0
- package/dist/svelte/source/engine/Preview.svelte +2 -0
- package/dist/svelte/source/index.js +1 -0
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/Crystal.js +3 -0
- package/dist/vue/Crystal.vue_vue_type_script_setup_true_lang.js +186 -0
- package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/vue/components/Crystal.vue.d.ts +55 -0
- package/dist/vue/components/Crystal.vue.d.ts.map +1 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +2 -1
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +27 -0
- package/package.json +9 -1
- package/dist/core/shaderRegistry-ClxU5BC7.js +0 -220
- /package/dist/core/{CursorRipples-BY1iu4MX.js → CursorRipples-CkVMs3DF.js} +0 -0
- /package/dist/core/{CursorTrail-BzrL2WMh.js → CursorTrail-1D7ymT9O.js} +0 -0
- /package/dist/core/{DiffuseBlur-Dyd42LXw.js → DiffuseBlur-BAq1jHVB.js} +0 -0
- /package/dist/core/{Dither-CTInG_SB.js → Dither-U_UFB8oZ.js} +0 -0
- /package/dist/core/{DotGrid-CsL0dnYB.js → DotGrid-BzAsAVrt.js} +0 -0
- /package/dist/core/{Duotone-BbCFLFMK.js → Duotone-CuIRHH_k.js} +0 -0
- /package/dist/core/{Ellipse-CZWtvB3q.js → Ellipse-CJFK20Xl.js} +0 -0
- /package/dist/core/{Emboss-DCKgs4_G.js → Emboss-DWXpvlZO.js} +0 -0
- /package/dist/core/{FallingLines-DBNJVWio.js → FallingLines-BQzBwOy0.js} +0 -0
- /package/dist/core/{FilmGrain-CSuerGc6.js → FilmGrain-Birzz05_.js} +0 -0
- /package/dist/core/{FloatingParticles-CoBM_CJ8.js → FloatingParticles-shoqY6fm.js} +0 -0
- /package/dist/core/{FlowField-Bh3-dX6I.js → FlowField-CJdtd3Za.js} +0 -0
- /package/dist/core/{Flower-fYEx6ZSB.js → Flower-BST3LQVi.js} +0 -0
- /package/dist/core/{FlowingGradient-DVproCI1.js → FlowingGradient-Dsuqf7Yn.js} +0 -0
- /package/dist/core/{Form3D-DhezVuyN.js → Form3D-Czd8VBcU.js} +0 -0
- /package/dist/core/{GlassTiles-ClrOIpCg.js → GlassTiles-CQFngHS9.js} +0 -0
- /package/dist/core/{Glitch-DmWytiRl.js → Glitch-q3H4XH_K.js} +0 -0
- /package/dist/core/{Glow-Dm4dfZ_m.js → Glow-BltxRvyM.js} +0 -0
- /package/dist/core/{Godrays-CYILZUHg.js → Godrays-YxezlRHu.js} +0 -0
- /package/dist/core/{Grayscale-CPR_l4G2.js → Grayscale-D_RwmAV3.js} +0 -0
- /package/dist/core/{Grid-CCQZ3GhD.js → Grid-CV2iJqlk.js} +0 -0
- /package/dist/core/{GridDistortion-oGT8NaWa.js → GridDistortion-JCuvWcoV.js} +0 -0
- /package/dist/core/{Group-CC317vlL.js → Group-CeA8FtS3.js} +0 -0
- /package/dist/core/{Halftone-BZk1Hjz_.js → Halftone-4oL_AA-D.js} +0 -0
- /package/dist/core/{HueShift-CuE3YTBE.js → HueShift-7Gv8BV4v.js} +0 -0
- /package/dist/core/{ImageTexture-DWUSKXX0.js → ImageTexture-BaVcRld1.js} +0 -0
- /package/dist/core/{Invert-C9RiDYP_.js → Invert-D_jzp4D9.js} +0 -0
- /package/dist/core/{Kaleidoscope-DtVlQWKG.js → Kaleidoscope-Baz9Fu8k.js} +0 -0
- /package/dist/core/{LensFlare-AVpiDD1O.js → LensFlare-Dyv84bAb.js} +0 -0
- /package/dist/core/{LinearBlur-AR65FcZh.js → LinearBlur-ZGWbzIt4.js} +0 -0
- /package/dist/core/{LinearGradient-DXCXjS-K.js → LinearGradient-CZGPiyHq.js} +0 -0
- /package/dist/core/{Liquify-mhzPd19o.js → Liquify-DrWLq2Kz.js} +0 -0
- /package/dist/core/{Mirror-CSc5mJi1.js → Mirror-C5LuGm-w.js} +0 -0
- /package/dist/core/{Neon-uXetpVop.js → Neon-gsfaMvGq.js} +0 -0
- /package/dist/core/{Paper-DfUka0dt.js → Paper-BVuYd7u4.js} +0 -0
- /package/dist/core/{Perspective-uPiPmWy_.js → Perspective-CqV-lhEE.js} +0 -0
- /package/dist/core/{Pixelate-DRkAW4Lo.js → Pixelate-DrG7QsBR.js} +0 -0
- /package/dist/core/{Plasma-ELzbK-Us.js → Plasma-LpGeN0eG.js} +0 -0
- /package/dist/core/{PolarCoordinates-CalS_TB6.js → PolarCoordinates-CiNUC56M.js} +0 -0
- /package/dist/core/{Polygon-7mzxbJeF.js → Polygon-BeqB8MSz.js} +0 -0
- /package/dist/core/{Posterize-C4vtRmtA.js → Posterize-CGEUVRt_.js} +0 -0
- /package/dist/core/{ProgressiveBlur-CLYhfOvQ.js → ProgressiveBlur-jEam9zrU.js} +0 -0
- /package/dist/core/{RadialGradient-DtD8HWdM.js → RadialGradient-BMmhr2qB.js} +0 -0
- /package/dist/core/{RectangularCoordinates-B96mflF5.js → RectangularCoordinates-Cj-d2ol3.js} +0 -0
- /package/dist/core/{Ring-H6B01ZMz.js → Ring-DJl9JUMR.js} +0 -0
- /package/dist/core/{Ripples-Cevf-Hvg.js → Ripples-r12S7WG7.js} +0 -0
- /package/dist/core/{RoundedRect-OszKdYVD.js → RoundedRect--rHP7xW4.js} +0 -0
- /package/dist/core/{Saturation-CcDwPh2v.js → Saturation-BAORnZso.js} +0 -0
- /package/dist/core/{Sharpness-D_dXfDEo.js → Sharpness-CFzYBYlL.js} +0 -0
- /package/dist/core/{Shatter-NfZzVt54.js → Shatter-avsezFDy.js} +0 -0
- /package/dist/core/{SimplexNoise-aipzNV5j.js → SimplexNoise-BjoeAe6H.js} +0 -0
- /package/dist/core/{SineWave-CVeYx3n-.js → SineWave-B-2YxAht.js} +0 -0
- /package/dist/core/{SolidColor-BdbBnLxX.js → SolidColor-2o0vQu86.js} +0 -0
- /package/dist/core/{Spherize-BRGwLGeu.js → Spherize-DKJKva6y.js} +0 -0
- /package/dist/core/{Spiral-BkTBXb7z.js → Spiral-Dzsm_AJG.js} +0 -0
- /package/dist/core/{Star-CyjNgJVp.js → Star-CxI_taxd.js} +0 -0
- /package/dist/core/{Strands-Cjsw-cPu.js → Strands-42wUIQMv.js} +0 -0
- /package/dist/core/{Stretch-9cta3Z1W.js → Stretch-BVPICFxU.js} +0 -0
- /package/dist/core/{Stripes-C0sCGCz_.js → Stripes-DpWPzhd5.js} +0 -0
- /package/dist/core/{StudioBackground-BYv_-8df.js → StudioBackground-CxOYZ28g.js} +0 -0
- /package/dist/core/{Swirl-DXjIXfy7.js → Swirl-CaQpQWY2.js} +0 -0
- /package/dist/core/{TiltShift-56lcZ4cJ.js → TiltShift-yJYvxA1V.js} +0 -0
- /package/dist/core/{Tint-8_WIy9_e.js → Tint-BR2yMhfB.js} +0 -0
- /package/dist/core/{Trapezoid-SuI0dRgI.js → Trapezoid-D7qg9Gc5.js} +0 -0
- /package/dist/core/{Tritone-nyJyybHI.js → Tritone-PTTYWr_w.js} +0 -0
- /package/dist/core/{Twirl-BzSEz4xK.js → Twirl-CE2yzv3_.js} +0 -0
- /package/dist/core/{Vesica-Cj--pgNW.js → Vesica-p8oNtcOH.js} +0 -0
- /package/dist/core/{Vibrance-BETLN3Ie.js → Vibrance-CljpZu_J.js} +0 -0
- /package/dist/core/{WaveDistortion-C-j597Jm.js → WaveDistortion-BSt0JJbk.js} +0 -0
- /package/dist/core/{ZoomBlur-DFw0J9x3.js → ZoomBlur-CAeswzf5.js} +0 -0
- /package/dist/core/{browser-CqdrcD5J.js → browser-CWKHEzb9.js} +0 -0
package/dist/core/index.js
CHANGED
|
@@ -22,81 +22,82 @@ import "./sdf-CZRX0uur.js";
|
|
|
22
22
|
import "./Crescent-DnFexzlT.js";
|
|
23
23
|
import "./Cross-rsVMygBv.js";
|
|
24
24
|
import "./CRTScreen-BZ-sAmPZ.js";
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
28
|
-
import "./
|
|
29
|
-
import "./
|
|
30
|
-
import "./
|
|
31
|
-
import "./
|
|
32
|
-
import "./
|
|
33
|
-
import "./
|
|
34
|
-
import "./
|
|
35
|
-
import "./
|
|
36
|
-
import "./
|
|
37
|
-
import "./
|
|
38
|
-
import "./
|
|
39
|
-
import "./
|
|
40
|
-
import "./
|
|
41
|
-
import "./
|
|
42
|
-
import "./
|
|
43
|
-
import "./
|
|
44
|
-
import "./
|
|
45
|
-
import "./
|
|
46
|
-
import "./
|
|
47
|
-
import "./
|
|
48
|
-
import "./
|
|
49
|
-
import "./
|
|
50
|
-
import "./
|
|
51
|
-
import "./
|
|
52
|
-
import "./
|
|
53
|
-
import "./
|
|
54
|
-
import "./
|
|
55
|
-
import "./
|
|
56
|
-
import "./
|
|
57
|
-
import "./
|
|
58
|
-
import "./
|
|
59
|
-
import "./
|
|
60
|
-
import "./
|
|
61
|
-
import "./
|
|
62
|
-
import "./
|
|
63
|
-
import "./
|
|
64
|
-
import "./
|
|
65
|
-
import "./
|
|
66
|
-
import "./
|
|
67
|
-
import "./
|
|
68
|
-
import "./
|
|
69
|
-
import "./
|
|
70
|
-
import "./
|
|
71
|
-
import "./
|
|
72
|
-
import "./
|
|
73
|
-
import "./
|
|
74
|
-
import "./
|
|
75
|
-
import "./
|
|
76
|
-
import "./
|
|
77
|
-
import "./
|
|
78
|
-
import "./
|
|
79
|
-
import "./
|
|
80
|
-
import "./
|
|
81
|
-
import "./
|
|
82
|
-
import "./
|
|
83
|
-
import "./
|
|
84
|
-
import "./
|
|
85
|
-
import "./
|
|
86
|
-
import "./
|
|
87
|
-
import "./
|
|
88
|
-
import "./
|
|
89
|
-
import "./
|
|
90
|
-
import "./
|
|
91
|
-
import "./
|
|
92
|
-
import "./
|
|
93
|
-
import "./
|
|
94
|
-
import "./
|
|
95
|
-
import "./
|
|
96
|
-
import "./
|
|
97
|
-
import "./
|
|
98
|
-
import "./
|
|
99
|
-
import
|
|
25
|
+
import "./Crystal-z-2qqfhQ.js";
|
|
26
|
+
import "./CursorRipples-CkVMs3DF.js";
|
|
27
|
+
import "./CursorTrail-1D7ymT9O.js";
|
|
28
|
+
import "./DiffuseBlur-BAq1jHVB.js";
|
|
29
|
+
import "./Dither-U_UFB8oZ.js";
|
|
30
|
+
import "./DotGrid-BzAsAVrt.js";
|
|
31
|
+
import "./Duotone-CuIRHH_k.js";
|
|
32
|
+
import "./Ellipse-CJFK20Xl.js";
|
|
33
|
+
import "./Emboss-DWXpvlZO.js";
|
|
34
|
+
import "./FallingLines-BQzBwOy0.js";
|
|
35
|
+
import "./FilmGrain-Birzz05_.js";
|
|
36
|
+
import "./FloatingParticles-shoqY6fm.js";
|
|
37
|
+
import "./Flower-BST3LQVi.js";
|
|
38
|
+
import "./FlowField-CJdtd3Za.js";
|
|
39
|
+
import "./FlowingGradient-Dsuqf7Yn.js";
|
|
40
|
+
import "./Form3D-Czd8VBcU.js";
|
|
41
|
+
import "./Glass-BDHs6Enu.js";
|
|
42
|
+
import "./GlassTiles-CQFngHS9.js";
|
|
43
|
+
import "./Glitch-q3H4XH_K.js";
|
|
44
|
+
import "./Glow-BltxRvyM.js";
|
|
45
|
+
import "./Godrays-YxezlRHu.js";
|
|
46
|
+
import "./Grayscale-D_RwmAV3.js";
|
|
47
|
+
import "./Grid-CV2iJqlk.js";
|
|
48
|
+
import "./GridDistortion-JCuvWcoV.js";
|
|
49
|
+
import "./Group-CeA8FtS3.js";
|
|
50
|
+
import "./Halftone-4oL_AA-D.js";
|
|
51
|
+
import "./HueShift-7Gv8BV4v.js";
|
|
52
|
+
import "./ImageTexture-BaVcRld1.js";
|
|
53
|
+
import "./Invert-D_jzp4D9.js";
|
|
54
|
+
import "./Kaleidoscope-Baz9Fu8k.js";
|
|
55
|
+
import "./LensFlare-Dyv84bAb.js";
|
|
56
|
+
import "./LinearBlur-ZGWbzIt4.js";
|
|
57
|
+
import "./LinearGradient-CZGPiyHq.js";
|
|
58
|
+
import "./Liquify-DrWLq2Kz.js";
|
|
59
|
+
import "./Mirror-C5LuGm-w.js";
|
|
60
|
+
import "./Neon-gsfaMvGq.js";
|
|
61
|
+
import "./Paper-BVuYd7u4.js";
|
|
62
|
+
import "./Perspective-CqV-lhEE.js";
|
|
63
|
+
import "./Pixelate-DrG7QsBR.js";
|
|
64
|
+
import "./Plasma-LpGeN0eG.js";
|
|
65
|
+
import "./PolarCoordinates-CiNUC56M.js";
|
|
66
|
+
import "./Polygon-BeqB8MSz.js";
|
|
67
|
+
import "./Posterize-CGEUVRt_.js";
|
|
68
|
+
import "./ProgressiveBlur-jEam9zrU.js";
|
|
69
|
+
import "./RadialGradient-BMmhr2qB.js";
|
|
70
|
+
import "./RectangularCoordinates-Cj-d2ol3.js";
|
|
71
|
+
import "./Ring-DJl9JUMR.js";
|
|
72
|
+
import "./Ripples-r12S7WG7.js";
|
|
73
|
+
import "./RoundedRect--rHP7xW4.js";
|
|
74
|
+
import "./Saturation-BAORnZso.js";
|
|
75
|
+
import "./Sharpness-CFzYBYlL.js";
|
|
76
|
+
import "./Shatter-avsezFDy.js";
|
|
77
|
+
import "./SimplexNoise-BjoeAe6H.js";
|
|
78
|
+
import "./SineWave-B-2YxAht.js";
|
|
79
|
+
import "./SolidColor-2o0vQu86.js";
|
|
80
|
+
import "./Spherize-DKJKva6y.js";
|
|
81
|
+
import "./Spiral-Dzsm_AJG.js";
|
|
82
|
+
import "./Star-CxI_taxd.js";
|
|
83
|
+
import "./Strands-42wUIQMv.js";
|
|
84
|
+
import "./Stretch-BVPICFxU.js";
|
|
85
|
+
import "./Stripes-DpWPzhd5.js";
|
|
86
|
+
import "./StudioBackground-CxOYZ28g.js";
|
|
87
|
+
import "./Swirl-CaQpQWY2.js";
|
|
88
|
+
import "./TiltShift-yJYvxA1V.js";
|
|
89
|
+
import "./Tint-BR2yMhfB.js";
|
|
90
|
+
import "./Trapezoid-D7qg9Gc5.js";
|
|
91
|
+
import "./Tritone-PTTYWr_w.js";
|
|
92
|
+
import "./Twirl-CE2yzv3_.js";
|
|
93
|
+
import "./Vesica-p8oNtcOH.js";
|
|
94
|
+
import "./Vibrance-CljpZu_J.js";
|
|
95
|
+
import "./browser-CWKHEzb9.js";
|
|
96
|
+
import "./VideoTexture-ChFw0jKS.js";
|
|
97
|
+
import "./WaveDistortion-BSt0JJbk.js";
|
|
98
|
+
import "./WebcamTexture-CF1nwkNG.js";
|
|
99
|
+
import "./ZoomBlur-CAeswzf5.js";
|
|
100
|
+
import { t as getAllShaders } from "./shaderRegistry-O96t1zA9.js";
|
|
100
101
|
import { Material, Mesh, MeshBasicNodeMaterial, OrthographicCamera, PlaneGeometry, SRGBColorSpace, Scene, Vector2, WebGPURenderer } from "three/webgpu";
|
|
101
102
|
import { WebGLRenderer } from "three";
|
|
102
103
|
import { PI, abs, add, atan, clamp, convertToTexture, cos, div, dot, float, fract, max, min, mix, mul, pow, screenUV, sign, sin, smoothstep, sqrt, step, sub, time, uniform, uv, vec2, vec3, vec4 } from "three/tsl";
|
|
@@ -615,7 +616,11 @@ function createUniformsMap(component, reactiveProps, instanceId) {
|
|
|
615
616
|
uniformsMap[propName] = {
|
|
616
617
|
uniform: uniformNode,
|
|
617
618
|
transform: propConfig.transform || void 0,
|
|
618
|
-
compileTime: propConfig.compileTime || false
|
|
619
|
+
compileTime: propConfig.compileTime || false,
|
|
620
|
+
...propConfig.compileTimeWhen ? {
|
|
621
|
+
compileTimeWhen: propConfig.compileTimeWhen,
|
|
622
|
+
_lastCompiledValue: initialValue ?? propConfig.default
|
|
623
|
+
} : {}
|
|
619
624
|
};
|
|
620
625
|
});
|
|
621
626
|
return uniformsMap;
|
|
@@ -1416,6 +1421,17 @@ function shaderRenderer() {
|
|
|
1416
1421
|
});
|
|
1417
1422
|
return;
|
|
1418
1423
|
}
|
|
1424
|
+
if (uniformDefinition.compileTimeWhen && material && isInitialized && currentWidth > 0 && currentHeight > 0) {
|
|
1425
|
+
const prev = uniformDefinition._lastCompiledValue;
|
|
1426
|
+
if (uniformDefinition.compileTimeWhen(prev, value)) {
|
|
1427
|
+
uniformDefinition._lastCompiledValue = value;
|
|
1428
|
+
if (materialUpdateBatchRAF === null) materialUpdateBatchRAF = requestAnimationFrame(() => {
|
|
1429
|
+
materialUpdateBatchRAF = null;
|
|
1430
|
+
updateMaterial();
|
|
1431
|
+
});
|
|
1432
|
+
return;
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1419
1435
|
if (!animationFrameId) renderFrame();
|
|
1420
1436
|
};
|
|
1421
1437
|
const updateNodeMetadata = (nodeId, metadata) => {
|
|
@@ -1684,7 +1700,19 @@ function shaderRenderer() {
|
|
|
1684
1700
|
phase = applyEasing(t01 < .5 ? t01 * 2 : (1 - t01) * 2, driverConfig.easing ?? driverConfig.waveform ?? "sine");
|
|
1685
1701
|
}
|
|
1686
1702
|
const { outputMin, outputMax } = driverConfig;
|
|
1687
|
-
|
|
1703
|
+
const newValue = outputMin + phase * (outputMax - outputMin);
|
|
1704
|
+
const uniformDefinition = nodeInfo.uniforms?.[propName];
|
|
1705
|
+
if (uniformDefinition?.compileTimeWhen && material && isInitialized && currentWidth > 0 && currentHeight > 0) {
|
|
1706
|
+
const prev = uniformDefinition._lastCompiledValue;
|
|
1707
|
+
if (uniformDefinition.compileTimeWhen(prev, newValue)) {
|
|
1708
|
+
uniformDefinition._lastCompiledValue = newValue;
|
|
1709
|
+
if (materialUpdateBatchRAF === null) materialUpdateBatchRAF = requestAnimationFrame(() => {
|
|
1710
|
+
materialUpdateBatchRAF = null;
|
|
1711
|
+
updateMaterial();
|
|
1712
|
+
});
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
state.smoothedUniform.value = newValue;
|
|
1688
1716
|
}
|
|
1689
1717
|
}
|
|
1690
1718
|
};
|
package/dist/core/registry.js
CHANGED
|
@@ -22,79 +22,80 @@ import "./sdf-CZRX0uur.js";
|
|
|
22
22
|
import "./Crescent-DnFexzlT.js";
|
|
23
23
|
import "./Cross-rsVMygBv.js";
|
|
24
24
|
import "./CRTScreen-BZ-sAmPZ.js";
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
28
|
-
import "./
|
|
29
|
-
import "./
|
|
30
|
-
import "./
|
|
31
|
-
import "./
|
|
32
|
-
import "./
|
|
33
|
-
import "./
|
|
34
|
-
import "./
|
|
35
|
-
import "./
|
|
36
|
-
import "./
|
|
37
|
-
import "./
|
|
38
|
-
import "./
|
|
39
|
-
import "./
|
|
40
|
-
import "./
|
|
41
|
-
import "./
|
|
42
|
-
import "./
|
|
43
|
-
import "./
|
|
44
|
-
import "./
|
|
45
|
-
import "./
|
|
46
|
-
import "./
|
|
47
|
-
import "./
|
|
48
|
-
import "./
|
|
49
|
-
import "./
|
|
50
|
-
import "./
|
|
51
|
-
import "./
|
|
52
|
-
import "./
|
|
53
|
-
import "./
|
|
54
|
-
import "./
|
|
55
|
-
import "./
|
|
56
|
-
import "./
|
|
57
|
-
import "./
|
|
58
|
-
import "./
|
|
59
|
-
import "./
|
|
60
|
-
import "./
|
|
61
|
-
import "./
|
|
62
|
-
import "./
|
|
63
|
-
import "./
|
|
64
|
-
import "./
|
|
65
|
-
import "./
|
|
66
|
-
import "./
|
|
67
|
-
import "./
|
|
68
|
-
import "./
|
|
69
|
-
import "./
|
|
70
|
-
import "./
|
|
71
|
-
import "./
|
|
72
|
-
import "./
|
|
73
|
-
import "./
|
|
74
|
-
import "./
|
|
75
|
-
import "./
|
|
76
|
-
import "./
|
|
77
|
-
import "./
|
|
78
|
-
import "./
|
|
79
|
-
import "./
|
|
80
|
-
import "./
|
|
81
|
-
import "./
|
|
82
|
-
import "./
|
|
83
|
-
import "./
|
|
84
|
-
import "./
|
|
85
|
-
import "./
|
|
86
|
-
import "./
|
|
87
|
-
import "./
|
|
88
|
-
import "./
|
|
89
|
-
import "./
|
|
90
|
-
import "./
|
|
91
|
-
import "./
|
|
92
|
-
import "./
|
|
93
|
-
import "./
|
|
94
|
-
import "./
|
|
95
|
-
import "./
|
|
96
|
-
import "./
|
|
97
|
-
import "./
|
|
98
|
-
import "./
|
|
99
|
-
import
|
|
25
|
+
import "./Crystal-z-2qqfhQ.js";
|
|
26
|
+
import "./CursorRipples-CkVMs3DF.js";
|
|
27
|
+
import "./CursorTrail-1D7ymT9O.js";
|
|
28
|
+
import "./DiffuseBlur-BAq1jHVB.js";
|
|
29
|
+
import "./Dither-U_UFB8oZ.js";
|
|
30
|
+
import "./DotGrid-BzAsAVrt.js";
|
|
31
|
+
import "./Duotone-CuIRHH_k.js";
|
|
32
|
+
import "./Ellipse-CJFK20Xl.js";
|
|
33
|
+
import "./Emboss-DWXpvlZO.js";
|
|
34
|
+
import "./FallingLines-BQzBwOy0.js";
|
|
35
|
+
import "./FilmGrain-Birzz05_.js";
|
|
36
|
+
import "./FloatingParticles-shoqY6fm.js";
|
|
37
|
+
import "./Flower-BST3LQVi.js";
|
|
38
|
+
import "./FlowField-CJdtd3Za.js";
|
|
39
|
+
import "./FlowingGradient-Dsuqf7Yn.js";
|
|
40
|
+
import "./Form3D-Czd8VBcU.js";
|
|
41
|
+
import "./Glass-BDHs6Enu.js";
|
|
42
|
+
import "./GlassTiles-CQFngHS9.js";
|
|
43
|
+
import "./Glitch-q3H4XH_K.js";
|
|
44
|
+
import "./Glow-BltxRvyM.js";
|
|
45
|
+
import "./Godrays-YxezlRHu.js";
|
|
46
|
+
import "./Grayscale-D_RwmAV3.js";
|
|
47
|
+
import "./Grid-CV2iJqlk.js";
|
|
48
|
+
import "./GridDistortion-JCuvWcoV.js";
|
|
49
|
+
import "./Group-CeA8FtS3.js";
|
|
50
|
+
import "./Halftone-4oL_AA-D.js";
|
|
51
|
+
import "./HueShift-7Gv8BV4v.js";
|
|
52
|
+
import "./ImageTexture-BaVcRld1.js";
|
|
53
|
+
import "./Invert-D_jzp4D9.js";
|
|
54
|
+
import "./Kaleidoscope-Baz9Fu8k.js";
|
|
55
|
+
import "./LensFlare-Dyv84bAb.js";
|
|
56
|
+
import "./LinearBlur-ZGWbzIt4.js";
|
|
57
|
+
import "./LinearGradient-CZGPiyHq.js";
|
|
58
|
+
import "./Liquify-DrWLq2Kz.js";
|
|
59
|
+
import "./Mirror-C5LuGm-w.js";
|
|
60
|
+
import "./Neon-gsfaMvGq.js";
|
|
61
|
+
import "./Paper-BVuYd7u4.js";
|
|
62
|
+
import "./Perspective-CqV-lhEE.js";
|
|
63
|
+
import "./Pixelate-DrG7QsBR.js";
|
|
64
|
+
import "./Plasma-LpGeN0eG.js";
|
|
65
|
+
import "./PolarCoordinates-CiNUC56M.js";
|
|
66
|
+
import "./Polygon-BeqB8MSz.js";
|
|
67
|
+
import "./Posterize-CGEUVRt_.js";
|
|
68
|
+
import "./ProgressiveBlur-jEam9zrU.js";
|
|
69
|
+
import "./RadialGradient-BMmhr2qB.js";
|
|
70
|
+
import "./RectangularCoordinates-Cj-d2ol3.js";
|
|
71
|
+
import "./Ring-DJl9JUMR.js";
|
|
72
|
+
import "./Ripples-r12S7WG7.js";
|
|
73
|
+
import "./RoundedRect--rHP7xW4.js";
|
|
74
|
+
import "./Saturation-BAORnZso.js";
|
|
75
|
+
import "./Sharpness-CFzYBYlL.js";
|
|
76
|
+
import "./Shatter-avsezFDy.js";
|
|
77
|
+
import "./SimplexNoise-BjoeAe6H.js";
|
|
78
|
+
import "./SineWave-B-2YxAht.js";
|
|
79
|
+
import "./SolidColor-2o0vQu86.js";
|
|
80
|
+
import "./Spherize-DKJKva6y.js";
|
|
81
|
+
import "./Spiral-Dzsm_AJG.js";
|
|
82
|
+
import "./Star-CxI_taxd.js";
|
|
83
|
+
import "./Strands-42wUIQMv.js";
|
|
84
|
+
import "./Stretch-BVPICFxU.js";
|
|
85
|
+
import "./Stripes-DpWPzhd5.js";
|
|
86
|
+
import "./StudioBackground-CxOYZ28g.js";
|
|
87
|
+
import "./Swirl-CaQpQWY2.js";
|
|
88
|
+
import "./TiltShift-yJYvxA1V.js";
|
|
89
|
+
import "./Tint-BR2yMhfB.js";
|
|
90
|
+
import "./Trapezoid-D7qg9Gc5.js";
|
|
91
|
+
import "./Tritone-PTTYWr_w.js";
|
|
92
|
+
import "./Twirl-CE2yzv3_.js";
|
|
93
|
+
import "./Vesica-p8oNtcOH.js";
|
|
94
|
+
import "./Vibrance-CljpZu_J.js";
|
|
95
|
+
import "./browser-CWKHEzb9.js";
|
|
96
|
+
import "./VideoTexture-ChFw0jKS.js";
|
|
97
|
+
import "./WaveDistortion-BSt0JJbk.js";
|
|
98
|
+
import "./WebcamTexture-CF1nwkNG.js";
|
|
99
|
+
import "./ZoomBlur-CAeswzf5.js";
|
|
100
|
+
import { a as shaderRegistry, i as getShadersByCategory, n as getShaderByName, r as getShaderCategories, t as getAllShaders } from "./shaderRegistry-O96t1zA9.js";
|
|
100
101
|
export { getAllShaders, getShaderByName, getShaderCategories, getShadersByCategory, shaderRegistry };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../src/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,IAAI,EAMT,cAAc,EACjB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAA;AAInC,OAAO,EAAoB,eAAe,EAAE,mBAAmB,EAA8D,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,WAAW,EAAC,MAAM,SAAS,CAAA;AACtM,OAAO,EAAqB,gBAAgB,EAAC,MAAM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A;QACjB,OAAO,EAAE,UAAU,CAAA;KACtB,CAAA;IACD,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAiHD;;GAEG;AACH,wBAAgB,cAAc;kJAsvEG,iBAAiB;;uBA9hCpB,MAAM,oBAAoB,mBAAmB,CAAC,cAAc,CAAC,GAAG,IAAI,YAAY,MAAM,GAAG,IAAI,YAAY,YAAY,GAAG,IAAI,aAAY,WAAW,wBAA6B,mBAAmB,KAAG,IAAI;qBAsb5M,MAAM,KAAG,IAAI;iCA1RD,MAAM,eAAe,MAAM,SAAS,GAAG,KAAG,IAAI;iCA8D9C,MAAM,YAAY,OAAO,CAAC,YAAY,CAAC,KAAG,IAAI;;oBAiqC9D,MAAM,UAAU,MAAM;0BAngBf,IAAI;yBAyBL,IAAI;yBAzOE,OAAO,CAAC,IAAI,CAAC;+BA+Lb,gBAAgB;;eA4hBmB,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;2BArBpE,QAAQ,GAAG,OAAO,GAAG,IAAI;;2BAwB1B,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;;;mCAntEZ,MAAM,KAAG,QAAQ,EAAE;oCA+CzC,IAAI,YACF,QAAQ,UACV,MAAM,kBACE,GAAG,CAAC,MAAM,CAAC,gBACb,IAAI,KACnB,IAAI;0CA8SK,IAAI,YACF,QAAQ,KACnB,IAAI;;;;EA63DV"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { n as componentDefinition } from "./AngularBlur-BgZWbEjj.js";
|
|
2
|
+
import { n as componentDefinition$1 } from "./Ascii-BwSMmD6Z.js";
|
|
3
|
+
import { n as componentDefinition$2 } from "./Aurora-BPHeGEZ_.js";
|
|
4
|
+
import { n as componentDefinition$3 } from "./Beam-CAnoOWgt.js";
|
|
5
|
+
import { n as componentDefinition$4 } from "./Blob-56vuq_qL.js";
|
|
6
|
+
import { n as componentDefinition$5 } from "./Blur-DTyNQt1R.js";
|
|
7
|
+
import { n as componentDefinition$6 } from "./BrightnessContrast-BoR9bi58.js";
|
|
8
|
+
import { n as componentDefinition$7 } from "./Bulge-DN2R75Hp.js";
|
|
9
|
+
import { n as componentDefinition$8 } from "./ChannelBlur-CCaPXjka.js";
|
|
10
|
+
import { n as componentDefinition$9 } from "./Checkerboard-_IUtUrDv.js";
|
|
11
|
+
import { n as componentDefinition$10 } from "./ChromaFlow-Cq6hDVjX.js";
|
|
12
|
+
import { n as componentDefinition$11 } from "./ChromaticAberration-G8_bwQtD.js";
|
|
13
|
+
import { n as componentDefinition$12 } from "./Circle--0oHzoCi.js";
|
|
14
|
+
import { n as componentDefinition$13 } from "./ConcentricSpin-BzxzMieZ.js";
|
|
15
|
+
import { n as componentDefinition$14 } from "./ContourLines-yEb5IJ1Y.js";
|
|
16
|
+
import { n as componentDefinition$15 } from "./Crescent-DnFexzlT.js";
|
|
17
|
+
import { n as componentDefinition$16 } from "./Cross-rsVMygBv.js";
|
|
18
|
+
import { n as componentDefinition$17 } from "./CRTScreen-BZ-sAmPZ.js";
|
|
19
|
+
import { n as componentDefinition$18 } from "./Crystal-z-2qqfhQ.js";
|
|
20
|
+
import { n as componentDefinition$19 } from "./CursorRipples-CkVMs3DF.js";
|
|
21
|
+
import { n as componentDefinition$20 } from "./CursorTrail-1D7ymT9O.js";
|
|
22
|
+
import { n as componentDefinition$21 } from "./DiffuseBlur-BAq1jHVB.js";
|
|
23
|
+
import { n as componentDefinition$22 } from "./Dither-U_UFB8oZ.js";
|
|
24
|
+
import { n as componentDefinition$23 } from "./DotGrid-BzAsAVrt.js";
|
|
25
|
+
import { n as componentDefinition$24 } from "./Duotone-CuIRHH_k.js";
|
|
26
|
+
import { n as componentDefinition$25 } from "./Ellipse-CJFK20Xl.js";
|
|
27
|
+
import { n as componentDefinition$26 } from "./Emboss-DWXpvlZO.js";
|
|
28
|
+
import { n as componentDefinition$27 } from "./FallingLines-BQzBwOy0.js";
|
|
29
|
+
import { n as componentDefinition$28 } from "./FilmGrain-Birzz05_.js";
|
|
30
|
+
import { n as componentDefinition$29 } from "./FloatingParticles-shoqY6fm.js";
|
|
31
|
+
import { n as componentDefinition$30 } from "./Flower-BST3LQVi.js";
|
|
32
|
+
import { n as componentDefinition$31 } from "./FlowField-CJdtd3Za.js";
|
|
33
|
+
import { n as componentDefinition$32 } from "./FlowingGradient-Dsuqf7Yn.js";
|
|
34
|
+
import { n as componentDefinition$33 } from "./Form3D-Czd8VBcU.js";
|
|
35
|
+
import { n as componentDefinition$34 } from "./Glass-BDHs6Enu.js";
|
|
36
|
+
import { n as componentDefinition$35 } from "./GlassTiles-CQFngHS9.js";
|
|
37
|
+
import { n as componentDefinition$36 } from "./Glitch-q3H4XH_K.js";
|
|
38
|
+
import { n as componentDefinition$37 } from "./Glow-BltxRvyM.js";
|
|
39
|
+
import { n as componentDefinition$38 } from "./Godrays-YxezlRHu.js";
|
|
40
|
+
import { n as componentDefinition$39 } from "./Grayscale-D_RwmAV3.js";
|
|
41
|
+
import { n as componentDefinition$40 } from "./Grid-CV2iJqlk.js";
|
|
42
|
+
import { n as componentDefinition$41 } from "./GridDistortion-JCuvWcoV.js";
|
|
43
|
+
import { n as componentDefinition$42 } from "./Group-CeA8FtS3.js";
|
|
44
|
+
import { n as componentDefinition$43 } from "./Halftone-4oL_AA-D.js";
|
|
45
|
+
import { n as componentDefinition$44 } from "./HueShift-7Gv8BV4v.js";
|
|
46
|
+
import { n as componentDefinition$45 } from "./ImageTexture-BaVcRld1.js";
|
|
47
|
+
import { n as componentDefinition$46 } from "./Invert-D_jzp4D9.js";
|
|
48
|
+
import { n as componentDefinition$47 } from "./Kaleidoscope-Baz9Fu8k.js";
|
|
49
|
+
import { n as componentDefinition$48 } from "./LensFlare-Dyv84bAb.js";
|
|
50
|
+
import { n as componentDefinition$49 } from "./LinearBlur-ZGWbzIt4.js";
|
|
51
|
+
import { n as componentDefinition$50 } from "./LinearGradient-CZGPiyHq.js";
|
|
52
|
+
import { n as componentDefinition$51 } from "./Liquify-DrWLq2Kz.js";
|
|
53
|
+
import { n as componentDefinition$52 } from "./Mirror-C5LuGm-w.js";
|
|
54
|
+
import { n as componentDefinition$53 } from "./Neon-gsfaMvGq.js";
|
|
55
|
+
import { n as componentDefinition$54 } from "./Paper-BVuYd7u4.js";
|
|
56
|
+
import { n as componentDefinition$55 } from "./Perspective-CqV-lhEE.js";
|
|
57
|
+
import { n as componentDefinition$56 } from "./Pixelate-DrG7QsBR.js";
|
|
58
|
+
import { n as componentDefinition$57 } from "./Plasma-LpGeN0eG.js";
|
|
59
|
+
import { n as componentDefinition$58 } from "./PolarCoordinates-CiNUC56M.js";
|
|
60
|
+
import { n as componentDefinition$59 } from "./Polygon-BeqB8MSz.js";
|
|
61
|
+
import { n as componentDefinition$60 } from "./Posterize-CGEUVRt_.js";
|
|
62
|
+
import { n as componentDefinition$61 } from "./ProgressiveBlur-jEam9zrU.js";
|
|
63
|
+
import { n as componentDefinition$62 } from "./RadialGradient-BMmhr2qB.js";
|
|
64
|
+
import { n as componentDefinition$63 } from "./RectangularCoordinates-Cj-d2ol3.js";
|
|
65
|
+
import { n as componentDefinition$64 } from "./Ring-DJl9JUMR.js";
|
|
66
|
+
import { n as componentDefinition$65 } from "./Ripples-r12S7WG7.js";
|
|
67
|
+
import { n as componentDefinition$66 } from "./RoundedRect--rHP7xW4.js";
|
|
68
|
+
import { n as componentDefinition$67 } from "./Saturation-BAORnZso.js";
|
|
69
|
+
import { n as componentDefinition$68 } from "./Sharpness-CFzYBYlL.js";
|
|
70
|
+
import { n as componentDefinition$69 } from "./Shatter-avsezFDy.js";
|
|
71
|
+
import { n as componentDefinition$70 } from "./SimplexNoise-BjoeAe6H.js";
|
|
72
|
+
import { n as componentDefinition$71 } from "./SineWave-B-2YxAht.js";
|
|
73
|
+
import { n as componentDefinition$72 } from "./SolidColor-2o0vQu86.js";
|
|
74
|
+
import { n as componentDefinition$73 } from "./Spherize-DKJKva6y.js";
|
|
75
|
+
import { n as componentDefinition$74 } from "./Spiral-Dzsm_AJG.js";
|
|
76
|
+
import { n as componentDefinition$75 } from "./Star-CxI_taxd.js";
|
|
77
|
+
import { n as componentDefinition$76 } from "./Strands-42wUIQMv.js";
|
|
78
|
+
import { n as componentDefinition$77 } from "./Stretch-BVPICFxU.js";
|
|
79
|
+
import { n as componentDefinition$78 } from "./Stripes-DpWPzhd5.js";
|
|
80
|
+
import { n as componentDefinition$79 } from "./StudioBackground-CxOYZ28g.js";
|
|
81
|
+
import { n as componentDefinition$80 } from "./Swirl-CaQpQWY2.js";
|
|
82
|
+
import { n as componentDefinition$81 } from "./TiltShift-yJYvxA1V.js";
|
|
83
|
+
import { n as componentDefinition$82 } from "./Tint-BR2yMhfB.js";
|
|
84
|
+
import { n as componentDefinition$83 } from "./Trapezoid-D7qg9Gc5.js";
|
|
85
|
+
import { n as componentDefinition$84 } from "./Tritone-PTTYWr_w.js";
|
|
86
|
+
import { n as componentDefinition$85 } from "./Twirl-CE2yzv3_.js";
|
|
87
|
+
import { n as componentDefinition$86 } from "./Vesica-p8oNtcOH.js";
|
|
88
|
+
import { n as componentDefinition$87 } from "./Vibrance-CljpZu_J.js";
|
|
89
|
+
import { n as componentDefinition$88 } from "./VideoTexture-ChFw0jKS.js";
|
|
90
|
+
import { n as componentDefinition$89 } from "./WaveDistortion-BSt0JJbk.js";
|
|
91
|
+
import { n as componentDefinition$90 } from "./WebcamTexture-CF1nwkNG.js";
|
|
92
|
+
import { n as componentDefinition$91 } from "./ZoomBlur-CAeswzf5.js";
|
|
93
|
+
var createShaderRegistry = () => {
|
|
94
|
+
const registry = {};
|
|
95
|
+
const shaderDefinitions = {
|
|
96
|
+
AngularBlur: componentDefinition,
|
|
97
|
+
Ascii: componentDefinition$1,
|
|
98
|
+
Aurora: componentDefinition$2,
|
|
99
|
+
Beam: componentDefinition$3,
|
|
100
|
+
Blob: componentDefinition$4,
|
|
101
|
+
Blur: componentDefinition$5,
|
|
102
|
+
BrightnessContrast: componentDefinition$6,
|
|
103
|
+
Bulge: componentDefinition$7,
|
|
104
|
+
ChannelBlur: componentDefinition$8,
|
|
105
|
+
Checkerboard: componentDefinition$9,
|
|
106
|
+
ChromaFlow: componentDefinition$10,
|
|
107
|
+
ChromaticAberration: componentDefinition$11,
|
|
108
|
+
Circle: componentDefinition$12,
|
|
109
|
+
ConcentricSpin: componentDefinition$13,
|
|
110
|
+
ContourLines: componentDefinition$14,
|
|
111
|
+
Crescent: componentDefinition$15,
|
|
112
|
+
Cross: componentDefinition$16,
|
|
113
|
+
CRTScreen: componentDefinition$17,
|
|
114
|
+
Crystal: componentDefinition$18,
|
|
115
|
+
CursorRipples: componentDefinition$19,
|
|
116
|
+
CursorTrail: componentDefinition$20,
|
|
117
|
+
DiffuseBlur: componentDefinition$21,
|
|
118
|
+
Dither: componentDefinition$22,
|
|
119
|
+
DotGrid: componentDefinition$23,
|
|
120
|
+
Duotone: componentDefinition$24,
|
|
121
|
+
Ellipse: componentDefinition$25,
|
|
122
|
+
Emboss: componentDefinition$26,
|
|
123
|
+
FallingLines: componentDefinition$27,
|
|
124
|
+
FilmGrain: componentDefinition$28,
|
|
125
|
+
FloatingParticles: componentDefinition$29,
|
|
126
|
+
Flower: componentDefinition$30,
|
|
127
|
+
FlowField: componentDefinition$31,
|
|
128
|
+
FlowingGradient: componentDefinition$32,
|
|
129
|
+
Form3D: componentDefinition$33,
|
|
130
|
+
Glass: componentDefinition$34,
|
|
131
|
+
GlassTiles: componentDefinition$35,
|
|
132
|
+
Glitch: componentDefinition$36,
|
|
133
|
+
Glow: componentDefinition$37,
|
|
134
|
+
Godrays: componentDefinition$38,
|
|
135
|
+
Grayscale: componentDefinition$39,
|
|
136
|
+
Grid: componentDefinition$40,
|
|
137
|
+
GridDistortion: componentDefinition$41,
|
|
138
|
+
Group: componentDefinition$42,
|
|
139
|
+
Halftone: componentDefinition$43,
|
|
140
|
+
HueShift: componentDefinition$44,
|
|
141
|
+
ImageTexture: componentDefinition$45,
|
|
142
|
+
Invert: componentDefinition$46,
|
|
143
|
+
Kaleidoscope: componentDefinition$47,
|
|
144
|
+
LensFlare: componentDefinition$48,
|
|
145
|
+
LinearBlur: componentDefinition$49,
|
|
146
|
+
LinearGradient: componentDefinition$50,
|
|
147
|
+
Liquify: componentDefinition$51,
|
|
148
|
+
Mirror: componentDefinition$52,
|
|
149
|
+
Neon: componentDefinition$53,
|
|
150
|
+
Paper: componentDefinition$54,
|
|
151
|
+
Perspective: componentDefinition$55,
|
|
152
|
+
Pixelate: componentDefinition$56,
|
|
153
|
+
Plasma: componentDefinition$57,
|
|
154
|
+
PolarCoordinates: componentDefinition$58,
|
|
155
|
+
Polygon: componentDefinition$59,
|
|
156
|
+
Posterize: componentDefinition$60,
|
|
157
|
+
ProgressiveBlur: componentDefinition$61,
|
|
158
|
+
RadialGradient: componentDefinition$62,
|
|
159
|
+
RectangularCoordinates: componentDefinition$63,
|
|
160
|
+
Ring: componentDefinition$64,
|
|
161
|
+
Ripples: componentDefinition$65,
|
|
162
|
+
RoundedRect: componentDefinition$66,
|
|
163
|
+
Saturation: componentDefinition$67,
|
|
164
|
+
Sharpness: componentDefinition$68,
|
|
165
|
+
Shatter: componentDefinition$69,
|
|
166
|
+
SimplexNoise: componentDefinition$70,
|
|
167
|
+
SineWave: componentDefinition$71,
|
|
168
|
+
SolidColor: componentDefinition$72,
|
|
169
|
+
Spherize: componentDefinition$73,
|
|
170
|
+
Spiral: componentDefinition$74,
|
|
171
|
+
Star: componentDefinition$75,
|
|
172
|
+
Strands: componentDefinition$76,
|
|
173
|
+
Stretch: componentDefinition$77,
|
|
174
|
+
Stripes: componentDefinition$78,
|
|
175
|
+
StudioBackground: componentDefinition$79,
|
|
176
|
+
Swirl: componentDefinition$80,
|
|
177
|
+
TiltShift: componentDefinition$81,
|
|
178
|
+
Tint: componentDefinition$82,
|
|
179
|
+
Trapezoid: componentDefinition$83,
|
|
180
|
+
Tritone: componentDefinition$84,
|
|
181
|
+
Twirl: componentDefinition$85,
|
|
182
|
+
Vesica: componentDefinition$86,
|
|
183
|
+
Vibrance: componentDefinition$87,
|
|
184
|
+
VideoTexture: componentDefinition$88,
|
|
185
|
+
WaveDistortion: componentDefinition$89,
|
|
186
|
+
WebcamTexture: componentDefinition$90,
|
|
187
|
+
ZoomBlur: componentDefinition$91
|
|
188
|
+
};
|
|
189
|
+
Object.entries(shaderDefinitions).forEach(([fileName, def]) => {
|
|
190
|
+
const propsMetadata = {};
|
|
191
|
+
if (def.props) Object.entries(def.props).forEach(([propName, propConfig]) => {
|
|
192
|
+
if (propConfig.ui) propsMetadata[propName] = {
|
|
193
|
+
ui: propConfig.ui,
|
|
194
|
+
default: propConfig.default,
|
|
195
|
+
description: propConfig.description
|
|
196
|
+
};
|
|
197
|
+
});
|
|
198
|
+
registry[def.name] = {
|
|
199
|
+
name: def.name,
|
|
200
|
+
fileName,
|
|
201
|
+
category: def.category || "Uncategorized",
|
|
202
|
+
definition: def,
|
|
203
|
+
propsMetadata
|
|
204
|
+
};
|
|
205
|
+
});
|
|
206
|
+
return registry;
|
|
207
|
+
};
|
|
208
|
+
const shaderRegistry = createShaderRegistry();
|
|
209
|
+
function getAllShaders() {
|
|
210
|
+
return Object.values(shaderRegistry);
|
|
211
|
+
}
|
|
212
|
+
function getShaderByName(name) {
|
|
213
|
+
return shaderRegistry[name];
|
|
214
|
+
}
|
|
215
|
+
function getShadersByCategory(category) {
|
|
216
|
+
return Object.values(shaderRegistry).filter((shader) => shader.category === category);
|
|
217
|
+
}
|
|
218
|
+
function getShaderCategories() {
|
|
219
|
+
const categories = new Set(Object.values(shaderRegistry).map((shader) => shader.category));
|
|
220
|
+
return Array.from(categories).sort();
|
|
221
|
+
}
|
|
222
|
+
export { shaderRegistry as a, getShadersByCategory as i, getShaderByName as n, getShaderCategories as r, getAllShaders as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shaderRegistry.d.ts","sourceRoot":"","sources":["../src/shaderRegistry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shaderRegistry.d.ts","sourceRoot":"","sources":["../src/shaderRegistry.ts"],"names":[],"mappings":"AA+FA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAA;IACpC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE;QAC5B,EAAE,CAAC,EAAE,GAAG,CAAA;QACR,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAC,CAAA;CACH;AAgID,eAAO,MAAM,cAAc,qCAAyB,CAAA;AAGpD,wBAAgB,aAAa,IAAI,mBAAmB,EAAE,CAErD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAE7E;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,EAAE,CAE5E;AAED,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAG9C"}
|