shaders 2.4.76 → 2.4.78
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/Form3D-D3MoN95S.js +574 -0
- package/dist/core/{VideoTexture-Cl-V4Igy.js → VideoTexture-DDnc6aVv.js} +1 -1
- package/dist/core/{WebcamTexture-5b9qf7mC.js → WebcamTexture-rb0dLKSc.js} +1 -1
- package/dist/core/effects/raymarch3d.d.ts +32 -0
- package/dist/core/effects/raymarch3d.d.ts.map +1 -0
- package/dist/core/index.js +61 -60
- package/dist/core/registry.js +61 -60
- package/dist/core/shaderRegistry-9huRXSRI.js +218 -0
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/Form3D/index.d.ts +59 -0
- package/dist/core/shaders/Form3D/index.d.ts.map +1 -0
- package/dist/core/shaders/Form3D/index.js +4 -0
- package/dist/core/shaders/Form3D/shapes/box.d.ts +14 -0
- package/dist/core/shaders/Form3D/shapes/box.d.ts.map +1 -0
- package/dist/core/shaders/Form3D/shapes/capsule.d.ts +14 -0
- package/dist/core/shaders/Form3D/shapes/capsule.d.ts.map +1 -0
- package/dist/core/shaders/Form3D/shapes/mobius.d.ts +15 -0
- package/dist/core/shaders/Form3D/shapes/mobius.d.ts.map +1 -0
- package/dist/core/shaders/Form3D/shapes/ribbon.d.ts +14 -0
- package/dist/core/shaders/Form3D/shapes/ribbon.d.ts.map +1 -0
- package/dist/core/shaders/Form3D/shapes/rotation.d.ts +5 -0
- package/dist/core/shaders/Form3D/shapes/rotation.d.ts.map +1 -0
- package/dist/core/shaders/Form3D/shapes/sphere.d.ts +13 -0
- package/dist/core/shaders/Form3D/shapes/sphere.d.ts.map +1 -0
- package/dist/core/shaders/Form3D/shapes/torus.d.ts +14 -0
- package/dist/core/shaders/Form3D/shapes/torus.d.ts.map +1 -0
- 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 +1 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/react/Form3D.js +180 -0
- package/dist/react/Preview.js +1 -0
- package/dist/react/Shader.js +1 -2
- package/dist/react/components/Form3D.d.ts +36 -0
- package/dist/react/components/Form3D.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 +15 -0
- package/dist/registry.js +225 -0
- package/dist/solid/components/Form3D.d.ts +33 -0
- package/dist/solid/components/Form3D.d.ts.map +1 -0
- package/dist/solid/components/Form3D.js +183 -0
- package/dist/solid/engine/Preview.d.ts.map +1 -1
- package/dist/solid/engine/Preview.js +64 -62
- 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 +122 -120
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +15 -0
- package/dist/svelte/components/Form3D.svelte.d.ts +23 -0
- package/dist/svelte/{generatePresetCode-AulpMcSM.js → generatePresetCode-Bpe8YcaW.js} +15 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +444 -297
- package/dist/svelte/source/components/Form3D.svelte +290 -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/Form3D.js +3 -0
- package/dist/vue/Form3D.vue_vue_type_script_setup_true_lang.js +173 -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 -2
- package/dist/vue/components/Form3D.vue.d.ts +58 -0
- package/dist/vue/components/Form3D.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 +15 -0
- package/package.json +19 -1
- package/dist/core/shaderRegistry-BNFvV6rz.js +0 -216
- /package/dist/core/{Glass-Xwagp7_F.js → Glass-CRaFJ-8c.js} +0 -0
- /package/dist/core/{GlassTiles-C3KnN5iI.js → GlassTiles-C3PKMWgp.js} +0 -0
- /package/dist/core/{Glitch-ktKO_KpJ.js → Glitch-MyIU0Bad.js} +0 -0
- /package/dist/core/{Glow-DBifdH__.js → Glow-1ee_R1fA.js} +0 -0
- /package/dist/core/{Godrays-Bh6SzbNk.js → Godrays-CvcPIegU.js} +0 -0
- /package/dist/core/{Grayscale-C3gjFyCl.js → Grayscale-8MPw9PHN.js} +0 -0
- /package/dist/core/{Grid-CtdGngeK.js → Grid-D64zkkku.js} +0 -0
- /package/dist/core/{GridDistortion-S4PnLDHk.js → GridDistortion-B7PGORW3.js} +0 -0
- /package/dist/core/{Group-B9Y-gzFl.js → Group-DoOcKuhW.js} +0 -0
- /package/dist/core/{Halftone-B5YmZMs3.js → Halftone-Co7P2SWy.js} +0 -0
- /package/dist/core/{HueShift-BTUePzBC.js → HueShift-Bvd9VTak.js} +0 -0
- /package/dist/core/{ImageTexture-Bx-3RaXB.js → ImageTexture-BJ1udc62.js} +0 -0
- /package/dist/core/{Invert-CRnAnmF1.js → Invert-5VR-fNRw.js} +0 -0
- /package/dist/core/{Kaleidoscope-ChPX5tcw.js → Kaleidoscope-B0McCEhc.js} +0 -0
- /package/dist/core/{LensFlare-Ci0e-hkw.js → LensFlare-DXgpPyJK.js} +0 -0
- /package/dist/core/{LinearBlur-DaW1vgWS.js → LinearBlur-CBl0B23J.js} +0 -0
- /package/dist/core/{LinearGradient-D7APN-6R.js → LinearGradient-C0FT7-Lc.js} +0 -0
- /package/dist/core/{Liquify-CeIq9oBd.js → Liquify-Cy6ck3_k.js} +0 -0
- /package/dist/core/{Mirror-BYbVTGkj.js → Mirror-DfZBEOUf.js} +0 -0
- /package/dist/core/{Neon-Bt0J1xV_.js → Neon-E8whPM6C.js} +0 -0
- /package/dist/core/{Paper-C2D-Fwp3.js → Paper-DJwBbPxA.js} +0 -0
- /package/dist/core/{Perspective-Bdm0cUQh.js → Perspective-BdHcCgqZ.js} +0 -0
- /package/dist/core/{Pixelate-CTjHHN-r.js → Pixelate-B9x2E0k-.js} +0 -0
- /package/dist/core/{Plasma-CCGtK1Nq.js → Plasma-CMXrHMJv.js} +0 -0
- /package/dist/core/{PolarCoordinates-XCMKSG2_.js → PolarCoordinates-tZbl0VOq.js} +0 -0
- /package/dist/core/{Polygon-bhh40D7s.js → Polygon-B4ab2iAo.js} +0 -0
- /package/dist/core/{Posterize-BI-jQFPl.js → Posterize-Big6cECo.js} +0 -0
- /package/dist/core/{ProgressiveBlur-BJTqGhls.js → ProgressiveBlur-D0ZlHOw4.js} +0 -0
- /package/dist/core/{RadialGradient-iLZnaIxZ.js → RadialGradient-C1Uu5_bL.js} +0 -0
- /package/dist/core/{RectangularCoordinates-BaO9nFBZ.js → RectangularCoordinates-BB7_S4gH.js} +0 -0
- /package/dist/core/{Ring-CVjkjiUD.js → Ring-DVW66Ug0.js} +0 -0
- /package/dist/core/{Ripples-DM_4XyVc.js → Ripples-DeRyNukC.js} +0 -0
- /package/dist/core/{RoundedRect-DIZw7grS.js → RoundedRect-B9y33WS5.js} +0 -0
- /package/dist/core/{Saturation-Sn1JvnA0.js → Saturation-NrGhLp0a.js} +0 -0
- /package/dist/core/{Sharpness-bKBphxzQ.js → Sharpness-DAC9Qnh0.js} +0 -0
- /package/dist/core/{Shatter-BaTW-RUu.js → Shatter-ZIaXf4fs.js} +0 -0
- /package/dist/core/{SimplexNoise-BHkNvira.js → SimplexNoise-mSsE7oXX.js} +0 -0
- /package/dist/core/{SineWave-BiSC-P30.js → SineWave-BAhTQVXp.js} +0 -0
- /package/dist/core/{SolidColor-Cx-mC1as.js → SolidColor-BQnId3qy.js} +0 -0
- /package/dist/core/{Spherize-Do9r5rep.js → Spherize-YvHlKrZy.js} +0 -0
- /package/dist/core/{Spiral-cnUEuXK4.js → Spiral-DUDZyQjj.js} +0 -0
- /package/dist/core/{Star-CYt36zBy.js → Star-DB4dmzyz.js} +0 -0
- /package/dist/core/{Strands-Cv5R6Tve.js → Strands-CF49kt1s.js} +0 -0
- /package/dist/core/{Stretch-Cbg46rCc.js → Stretch-Dkhera5t.js} +0 -0
- /package/dist/core/{Stripes-BFeaEYmE.js → Stripes-BOROXiAH.js} +0 -0
- /package/dist/core/{StudioBackground-DmjrfYQk.js → StudioBackground-DNmf8LGj.js} +0 -0
- /package/dist/core/{Swirl-BnYnaDkG.js → Swirl-C5RQIA6E.js} +0 -0
- /package/dist/core/{TiltShift-CZYvmOJC.js → TiltShift-BgscLSg_.js} +0 -0
- /package/dist/core/{Tint-CpEcvX7Q.js → Tint-CvKUJTtg.js} +0 -0
- /package/dist/core/{Trapezoid-C9JGRsdF.js → Trapezoid-Co8cWZTK.js} +0 -0
- /package/dist/core/{Tritone-zGl8HUq_.js → Tritone-Ss5m7yFO.js} +0 -0
- /package/dist/core/{Twirl-CYwSYwxr.js → Twirl-CF_9ObSp.js} +0 -0
- /package/dist/core/{Vesica-BF2ZOKVA.js → Vesica-C7tcbHbW.js} +0 -0
- /package/dist/core/{Vibrance-MtwpojF5.js → Vibrance-DVWcESAa.js} +0 -0
- /package/dist/core/{WaveDistortion-BOovaVR7.js → WaveDistortion-Caj3cQz7.js} +0 -0
- /package/dist/core/{ZoomBlur-COhLGJIk.js → ZoomBlur-DUrSxwl0.js} +0 -0
- /package/dist/core/{browser-BHtD5nQW.js → browser-daS5XZwr.js} +0 -0
package/dist/core/index.js
CHANGED
|
@@ -35,66 +35,67 @@ import "./FilmGrain-CSuerGc6.js";
|
|
|
35
35
|
import "./FloatingParticles-CoBM_CJ8.js";
|
|
36
36
|
import "./Flower-B-53jiUT.js";
|
|
37
37
|
import "./FlowField-Bh3-dX6I.js";
|
|
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
|
|
38
|
+
import "./Form3D-D3MoN95S.js";
|
|
39
|
+
import "./Glass-CRaFJ-8c.js";
|
|
40
|
+
import "./GlassTiles-C3PKMWgp.js";
|
|
41
|
+
import "./Glitch-MyIU0Bad.js";
|
|
42
|
+
import "./Glow-1ee_R1fA.js";
|
|
43
|
+
import "./Godrays-CvcPIegU.js";
|
|
44
|
+
import "./Grayscale-8MPw9PHN.js";
|
|
45
|
+
import "./Grid-D64zkkku.js";
|
|
46
|
+
import "./GridDistortion-B7PGORW3.js";
|
|
47
|
+
import "./Group-DoOcKuhW.js";
|
|
48
|
+
import "./Halftone-Co7P2SWy.js";
|
|
49
|
+
import "./HueShift-Bvd9VTak.js";
|
|
50
|
+
import "./ImageTexture-BJ1udc62.js";
|
|
51
|
+
import "./Invert-5VR-fNRw.js";
|
|
52
|
+
import "./Kaleidoscope-B0McCEhc.js";
|
|
53
|
+
import "./LensFlare-DXgpPyJK.js";
|
|
54
|
+
import "./LinearBlur-CBl0B23J.js";
|
|
55
|
+
import "./LinearGradient-C0FT7-Lc.js";
|
|
56
|
+
import "./Liquify-Cy6ck3_k.js";
|
|
57
|
+
import "./Mirror-DfZBEOUf.js";
|
|
58
|
+
import "./Neon-E8whPM6C.js";
|
|
59
|
+
import "./Paper-DJwBbPxA.js";
|
|
60
|
+
import "./Perspective-BdHcCgqZ.js";
|
|
61
|
+
import "./Pixelate-B9x2E0k-.js";
|
|
62
|
+
import "./Plasma-CMXrHMJv.js";
|
|
63
|
+
import "./PolarCoordinates-tZbl0VOq.js";
|
|
64
|
+
import "./Polygon-B4ab2iAo.js";
|
|
65
|
+
import "./Posterize-Big6cECo.js";
|
|
66
|
+
import "./ProgressiveBlur-D0ZlHOw4.js";
|
|
67
|
+
import "./RadialGradient-C1Uu5_bL.js";
|
|
68
|
+
import "./RectangularCoordinates-BB7_S4gH.js";
|
|
69
|
+
import "./Ring-DVW66Ug0.js";
|
|
70
|
+
import "./Ripples-DeRyNukC.js";
|
|
71
|
+
import "./RoundedRect-B9y33WS5.js";
|
|
72
|
+
import "./Saturation-NrGhLp0a.js";
|
|
73
|
+
import "./Sharpness-DAC9Qnh0.js";
|
|
74
|
+
import "./Shatter-ZIaXf4fs.js";
|
|
75
|
+
import "./SimplexNoise-mSsE7oXX.js";
|
|
76
|
+
import "./SineWave-BAhTQVXp.js";
|
|
77
|
+
import "./SolidColor-BQnId3qy.js";
|
|
78
|
+
import "./Spherize-YvHlKrZy.js";
|
|
79
|
+
import "./Spiral-DUDZyQjj.js";
|
|
80
|
+
import "./Star-DB4dmzyz.js";
|
|
81
|
+
import "./Strands-CF49kt1s.js";
|
|
82
|
+
import "./Stretch-Dkhera5t.js";
|
|
83
|
+
import "./Stripes-BOROXiAH.js";
|
|
84
|
+
import "./StudioBackground-DNmf8LGj.js";
|
|
85
|
+
import "./Swirl-C5RQIA6E.js";
|
|
86
|
+
import "./TiltShift-BgscLSg_.js";
|
|
87
|
+
import "./Tint-CvKUJTtg.js";
|
|
88
|
+
import "./Trapezoid-Co8cWZTK.js";
|
|
89
|
+
import "./Tritone-Ss5m7yFO.js";
|
|
90
|
+
import "./Twirl-CF_9ObSp.js";
|
|
91
|
+
import "./Vesica-C7tcbHbW.js";
|
|
92
|
+
import "./Vibrance-DVWcESAa.js";
|
|
93
|
+
import "./browser-daS5XZwr.js";
|
|
94
|
+
import "./VideoTexture-DDnc6aVv.js";
|
|
95
|
+
import "./WaveDistortion-Caj3cQz7.js";
|
|
96
|
+
import "./WebcamTexture-rb0dLKSc.js";
|
|
97
|
+
import "./ZoomBlur-DUrSxwl0.js";
|
|
98
|
+
import { t as getAllShaders } from "./shaderRegistry-9huRXSRI.js";
|
|
98
99
|
import { Material, Mesh, MeshBasicNodeMaterial, OrthographicCamera, PlaneGeometry, SRGBColorSpace, Scene, Vector2, WebGPURenderer } from "three/webgpu";
|
|
99
100
|
import { WebGLRenderer } from "three";
|
|
100
101
|
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";
|
package/dist/core/registry.js
CHANGED
|
@@ -35,64 +35,65 @@ import "./FilmGrain-CSuerGc6.js";
|
|
|
35
35
|
import "./FloatingParticles-CoBM_CJ8.js";
|
|
36
36
|
import "./Flower-B-53jiUT.js";
|
|
37
37
|
import "./FlowField-Bh3-dX6I.js";
|
|
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
|
|
38
|
+
import "./Form3D-D3MoN95S.js";
|
|
39
|
+
import "./Glass-CRaFJ-8c.js";
|
|
40
|
+
import "./GlassTiles-C3PKMWgp.js";
|
|
41
|
+
import "./Glitch-MyIU0Bad.js";
|
|
42
|
+
import "./Glow-1ee_R1fA.js";
|
|
43
|
+
import "./Godrays-CvcPIegU.js";
|
|
44
|
+
import "./Grayscale-8MPw9PHN.js";
|
|
45
|
+
import "./Grid-D64zkkku.js";
|
|
46
|
+
import "./GridDistortion-B7PGORW3.js";
|
|
47
|
+
import "./Group-DoOcKuhW.js";
|
|
48
|
+
import "./Halftone-Co7P2SWy.js";
|
|
49
|
+
import "./HueShift-Bvd9VTak.js";
|
|
50
|
+
import "./ImageTexture-BJ1udc62.js";
|
|
51
|
+
import "./Invert-5VR-fNRw.js";
|
|
52
|
+
import "./Kaleidoscope-B0McCEhc.js";
|
|
53
|
+
import "./LensFlare-DXgpPyJK.js";
|
|
54
|
+
import "./LinearBlur-CBl0B23J.js";
|
|
55
|
+
import "./LinearGradient-C0FT7-Lc.js";
|
|
56
|
+
import "./Liquify-Cy6ck3_k.js";
|
|
57
|
+
import "./Mirror-DfZBEOUf.js";
|
|
58
|
+
import "./Neon-E8whPM6C.js";
|
|
59
|
+
import "./Paper-DJwBbPxA.js";
|
|
60
|
+
import "./Perspective-BdHcCgqZ.js";
|
|
61
|
+
import "./Pixelate-B9x2E0k-.js";
|
|
62
|
+
import "./Plasma-CMXrHMJv.js";
|
|
63
|
+
import "./PolarCoordinates-tZbl0VOq.js";
|
|
64
|
+
import "./Polygon-B4ab2iAo.js";
|
|
65
|
+
import "./Posterize-Big6cECo.js";
|
|
66
|
+
import "./ProgressiveBlur-D0ZlHOw4.js";
|
|
67
|
+
import "./RadialGradient-C1Uu5_bL.js";
|
|
68
|
+
import "./RectangularCoordinates-BB7_S4gH.js";
|
|
69
|
+
import "./Ring-DVW66Ug0.js";
|
|
70
|
+
import "./Ripples-DeRyNukC.js";
|
|
71
|
+
import "./RoundedRect-B9y33WS5.js";
|
|
72
|
+
import "./Saturation-NrGhLp0a.js";
|
|
73
|
+
import "./Sharpness-DAC9Qnh0.js";
|
|
74
|
+
import "./Shatter-ZIaXf4fs.js";
|
|
75
|
+
import "./SimplexNoise-mSsE7oXX.js";
|
|
76
|
+
import "./SineWave-BAhTQVXp.js";
|
|
77
|
+
import "./SolidColor-BQnId3qy.js";
|
|
78
|
+
import "./Spherize-YvHlKrZy.js";
|
|
79
|
+
import "./Spiral-DUDZyQjj.js";
|
|
80
|
+
import "./Star-DB4dmzyz.js";
|
|
81
|
+
import "./Strands-CF49kt1s.js";
|
|
82
|
+
import "./Stretch-Dkhera5t.js";
|
|
83
|
+
import "./Stripes-BOROXiAH.js";
|
|
84
|
+
import "./StudioBackground-DNmf8LGj.js";
|
|
85
|
+
import "./Swirl-C5RQIA6E.js";
|
|
86
|
+
import "./TiltShift-BgscLSg_.js";
|
|
87
|
+
import "./Tint-CvKUJTtg.js";
|
|
88
|
+
import "./Trapezoid-Co8cWZTK.js";
|
|
89
|
+
import "./Tritone-Ss5m7yFO.js";
|
|
90
|
+
import "./Twirl-CF_9ObSp.js";
|
|
91
|
+
import "./Vesica-C7tcbHbW.js";
|
|
92
|
+
import "./Vibrance-DVWcESAa.js";
|
|
93
|
+
import "./browser-daS5XZwr.js";
|
|
94
|
+
import "./VideoTexture-DDnc6aVv.js";
|
|
95
|
+
import "./WaveDistortion-Caj3cQz7.js";
|
|
96
|
+
import "./WebcamTexture-rb0dLKSc.js";
|
|
97
|
+
import "./ZoomBlur-DUrSxwl0.js";
|
|
98
|
+
import { a as shaderRegistry, i as getShadersByCategory, n as getShaderByName, r as getShaderCategories, t as getAllShaders } from "./shaderRegistry-9huRXSRI.js";
|
|
98
99
|
export { getAllShaders, getShaderByName, getShaderCategories, getShadersByCategory, shaderRegistry };
|
|
@@ -0,0 +1,218 @@
|
|
|
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-B4Z_WAgY.js";
|
|
17
|
+
import { n as componentDefinition$16 } from "./Cross-M5Vm5Kmy.js";
|
|
18
|
+
import { n as componentDefinition$17 } from "./CRTScreen-BZ-sAmPZ.js";
|
|
19
|
+
import { n as componentDefinition$18 } from "./CursorRipples-BY1iu4MX.js";
|
|
20
|
+
import { n as componentDefinition$19 } from "./CursorTrail-BzrL2WMh.js";
|
|
21
|
+
import { n as componentDefinition$20 } from "./DiffuseBlur-Dyd42LXw.js";
|
|
22
|
+
import { n as componentDefinition$21 } from "./Dither-CTInG_SB.js";
|
|
23
|
+
import { n as componentDefinition$22 } from "./DotGrid-CsL0dnYB.js";
|
|
24
|
+
import { n as componentDefinition$23 } from "./Duotone-BbCFLFMK.js";
|
|
25
|
+
import { n as componentDefinition$24 } from "./Ellipse-BjbjXlOx.js";
|
|
26
|
+
import { n as componentDefinition$25 } from "./Emboss-K5TExa67.js";
|
|
27
|
+
import { n as componentDefinition$26 } from "./FallingLines-DBNJVWio.js";
|
|
28
|
+
import { n as componentDefinition$27 } from "./FilmGrain-CSuerGc6.js";
|
|
29
|
+
import { n as componentDefinition$28 } from "./FloatingParticles-CoBM_CJ8.js";
|
|
30
|
+
import { n as componentDefinition$29 } from "./Flower-B-53jiUT.js";
|
|
31
|
+
import { n as componentDefinition$30 } from "./FlowField-Bh3-dX6I.js";
|
|
32
|
+
import { n as componentDefinition$31 } from "./Form3D-D3MoN95S.js";
|
|
33
|
+
import { n as componentDefinition$32 } from "./Glass-CRaFJ-8c.js";
|
|
34
|
+
import { n as componentDefinition$33 } from "./GlassTiles-C3PKMWgp.js";
|
|
35
|
+
import { n as componentDefinition$34 } from "./Glitch-MyIU0Bad.js";
|
|
36
|
+
import { n as componentDefinition$35 } from "./Glow-1ee_R1fA.js";
|
|
37
|
+
import { n as componentDefinition$36 } from "./Godrays-CvcPIegU.js";
|
|
38
|
+
import { n as componentDefinition$37 } from "./Grayscale-8MPw9PHN.js";
|
|
39
|
+
import { n as componentDefinition$38 } from "./Grid-D64zkkku.js";
|
|
40
|
+
import { n as componentDefinition$39 } from "./GridDistortion-B7PGORW3.js";
|
|
41
|
+
import { n as componentDefinition$40 } from "./Group-DoOcKuhW.js";
|
|
42
|
+
import { n as componentDefinition$41 } from "./Halftone-Co7P2SWy.js";
|
|
43
|
+
import { n as componentDefinition$42 } from "./HueShift-Bvd9VTak.js";
|
|
44
|
+
import { n as componentDefinition$43 } from "./ImageTexture-BJ1udc62.js";
|
|
45
|
+
import { n as componentDefinition$44 } from "./Invert-5VR-fNRw.js";
|
|
46
|
+
import { n as componentDefinition$45 } from "./Kaleidoscope-B0McCEhc.js";
|
|
47
|
+
import { n as componentDefinition$46 } from "./LensFlare-DXgpPyJK.js";
|
|
48
|
+
import { n as componentDefinition$47 } from "./LinearBlur-CBl0B23J.js";
|
|
49
|
+
import { n as componentDefinition$48 } from "./LinearGradient-C0FT7-Lc.js";
|
|
50
|
+
import { n as componentDefinition$49 } from "./Liquify-Cy6ck3_k.js";
|
|
51
|
+
import { n as componentDefinition$50 } from "./Mirror-DfZBEOUf.js";
|
|
52
|
+
import { n as componentDefinition$51 } from "./Neon-E8whPM6C.js";
|
|
53
|
+
import { n as componentDefinition$52 } from "./Paper-DJwBbPxA.js";
|
|
54
|
+
import { n as componentDefinition$53 } from "./Perspective-BdHcCgqZ.js";
|
|
55
|
+
import { n as componentDefinition$54 } from "./Pixelate-B9x2E0k-.js";
|
|
56
|
+
import { n as componentDefinition$55 } from "./Plasma-CMXrHMJv.js";
|
|
57
|
+
import { n as componentDefinition$56 } from "./PolarCoordinates-tZbl0VOq.js";
|
|
58
|
+
import { n as componentDefinition$57 } from "./Polygon-B4ab2iAo.js";
|
|
59
|
+
import { n as componentDefinition$58 } from "./Posterize-Big6cECo.js";
|
|
60
|
+
import { n as componentDefinition$59 } from "./ProgressiveBlur-D0ZlHOw4.js";
|
|
61
|
+
import { n as componentDefinition$60 } from "./RadialGradient-C1Uu5_bL.js";
|
|
62
|
+
import { n as componentDefinition$61 } from "./RectangularCoordinates-BB7_S4gH.js";
|
|
63
|
+
import { n as componentDefinition$62 } from "./Ring-DVW66Ug0.js";
|
|
64
|
+
import { n as componentDefinition$63 } from "./Ripples-DeRyNukC.js";
|
|
65
|
+
import { n as componentDefinition$64 } from "./RoundedRect-B9y33WS5.js";
|
|
66
|
+
import { n as componentDefinition$65 } from "./Saturation-NrGhLp0a.js";
|
|
67
|
+
import { n as componentDefinition$66 } from "./Sharpness-DAC9Qnh0.js";
|
|
68
|
+
import { n as componentDefinition$67 } from "./Shatter-ZIaXf4fs.js";
|
|
69
|
+
import { n as componentDefinition$68 } from "./SimplexNoise-mSsE7oXX.js";
|
|
70
|
+
import { n as componentDefinition$69 } from "./SineWave-BAhTQVXp.js";
|
|
71
|
+
import { n as componentDefinition$70 } from "./SolidColor-BQnId3qy.js";
|
|
72
|
+
import { n as componentDefinition$71 } from "./Spherize-YvHlKrZy.js";
|
|
73
|
+
import { n as componentDefinition$72 } from "./Spiral-DUDZyQjj.js";
|
|
74
|
+
import { n as componentDefinition$73 } from "./Star-DB4dmzyz.js";
|
|
75
|
+
import { n as componentDefinition$74 } from "./Strands-CF49kt1s.js";
|
|
76
|
+
import { n as componentDefinition$75 } from "./Stretch-Dkhera5t.js";
|
|
77
|
+
import { n as componentDefinition$76 } from "./Stripes-BOROXiAH.js";
|
|
78
|
+
import { n as componentDefinition$77 } from "./StudioBackground-DNmf8LGj.js";
|
|
79
|
+
import { n as componentDefinition$78 } from "./Swirl-C5RQIA6E.js";
|
|
80
|
+
import { n as componentDefinition$79 } from "./TiltShift-BgscLSg_.js";
|
|
81
|
+
import { n as componentDefinition$80 } from "./Tint-CvKUJTtg.js";
|
|
82
|
+
import { n as componentDefinition$81 } from "./Trapezoid-Co8cWZTK.js";
|
|
83
|
+
import { n as componentDefinition$82 } from "./Tritone-Ss5m7yFO.js";
|
|
84
|
+
import { n as componentDefinition$83 } from "./Twirl-CF_9ObSp.js";
|
|
85
|
+
import { n as componentDefinition$84 } from "./Vesica-C7tcbHbW.js";
|
|
86
|
+
import { n as componentDefinition$85 } from "./Vibrance-DVWcESAa.js";
|
|
87
|
+
import { n as componentDefinition$86 } from "./VideoTexture-DDnc6aVv.js";
|
|
88
|
+
import { n as componentDefinition$87 } from "./WaveDistortion-Caj3cQz7.js";
|
|
89
|
+
import { n as componentDefinition$88 } from "./WebcamTexture-rb0dLKSc.js";
|
|
90
|
+
import { n as componentDefinition$89 } from "./ZoomBlur-DUrSxwl0.js";
|
|
91
|
+
var createShaderRegistry = () => {
|
|
92
|
+
const registry = {};
|
|
93
|
+
const shaderDefinitions = {
|
|
94
|
+
AngularBlur: componentDefinition,
|
|
95
|
+
Ascii: componentDefinition$1,
|
|
96
|
+
Aurora: componentDefinition$2,
|
|
97
|
+
Beam: componentDefinition$3,
|
|
98
|
+
Blob: componentDefinition$4,
|
|
99
|
+
Blur: componentDefinition$5,
|
|
100
|
+
BrightnessContrast: componentDefinition$6,
|
|
101
|
+
Bulge: componentDefinition$7,
|
|
102
|
+
ChannelBlur: componentDefinition$8,
|
|
103
|
+
Checkerboard: componentDefinition$9,
|
|
104
|
+
ChromaFlow: componentDefinition$10,
|
|
105
|
+
ChromaticAberration: componentDefinition$11,
|
|
106
|
+
Circle: componentDefinition$12,
|
|
107
|
+
ConcentricSpin: componentDefinition$13,
|
|
108
|
+
ContourLines: componentDefinition$14,
|
|
109
|
+
Crescent: componentDefinition$15,
|
|
110
|
+
Cross: componentDefinition$16,
|
|
111
|
+
CRTScreen: componentDefinition$17,
|
|
112
|
+
CursorRipples: componentDefinition$18,
|
|
113
|
+
CursorTrail: componentDefinition$19,
|
|
114
|
+
DiffuseBlur: componentDefinition$20,
|
|
115
|
+
Dither: componentDefinition$21,
|
|
116
|
+
DotGrid: componentDefinition$22,
|
|
117
|
+
Duotone: componentDefinition$23,
|
|
118
|
+
Ellipse: componentDefinition$24,
|
|
119
|
+
Emboss: componentDefinition$25,
|
|
120
|
+
FallingLines: componentDefinition$26,
|
|
121
|
+
FilmGrain: componentDefinition$27,
|
|
122
|
+
FloatingParticles: componentDefinition$28,
|
|
123
|
+
Flower: componentDefinition$29,
|
|
124
|
+
FlowField: componentDefinition$30,
|
|
125
|
+
Form3D: componentDefinition$31,
|
|
126
|
+
Glass: componentDefinition$32,
|
|
127
|
+
GlassTiles: componentDefinition$33,
|
|
128
|
+
Glitch: componentDefinition$34,
|
|
129
|
+
Glow: componentDefinition$35,
|
|
130
|
+
Godrays: componentDefinition$36,
|
|
131
|
+
Grayscale: componentDefinition$37,
|
|
132
|
+
Grid: componentDefinition$38,
|
|
133
|
+
GridDistortion: componentDefinition$39,
|
|
134
|
+
Group: componentDefinition$40,
|
|
135
|
+
Halftone: componentDefinition$41,
|
|
136
|
+
HueShift: componentDefinition$42,
|
|
137
|
+
ImageTexture: componentDefinition$43,
|
|
138
|
+
Invert: componentDefinition$44,
|
|
139
|
+
Kaleidoscope: componentDefinition$45,
|
|
140
|
+
LensFlare: componentDefinition$46,
|
|
141
|
+
LinearBlur: componentDefinition$47,
|
|
142
|
+
LinearGradient: componentDefinition$48,
|
|
143
|
+
Liquify: componentDefinition$49,
|
|
144
|
+
Mirror: componentDefinition$50,
|
|
145
|
+
Neon: componentDefinition$51,
|
|
146
|
+
Paper: componentDefinition$52,
|
|
147
|
+
Perspective: componentDefinition$53,
|
|
148
|
+
Pixelate: componentDefinition$54,
|
|
149
|
+
Plasma: componentDefinition$55,
|
|
150
|
+
PolarCoordinates: componentDefinition$56,
|
|
151
|
+
Polygon: componentDefinition$57,
|
|
152
|
+
Posterize: componentDefinition$58,
|
|
153
|
+
ProgressiveBlur: componentDefinition$59,
|
|
154
|
+
RadialGradient: componentDefinition$60,
|
|
155
|
+
RectangularCoordinates: componentDefinition$61,
|
|
156
|
+
Ring: componentDefinition$62,
|
|
157
|
+
Ripples: componentDefinition$63,
|
|
158
|
+
RoundedRect: componentDefinition$64,
|
|
159
|
+
Saturation: componentDefinition$65,
|
|
160
|
+
Sharpness: componentDefinition$66,
|
|
161
|
+
Shatter: componentDefinition$67,
|
|
162
|
+
SimplexNoise: componentDefinition$68,
|
|
163
|
+
SineWave: componentDefinition$69,
|
|
164
|
+
SolidColor: componentDefinition$70,
|
|
165
|
+
Spherize: componentDefinition$71,
|
|
166
|
+
Spiral: componentDefinition$72,
|
|
167
|
+
Star: componentDefinition$73,
|
|
168
|
+
Strands: componentDefinition$74,
|
|
169
|
+
Stretch: componentDefinition$75,
|
|
170
|
+
Stripes: componentDefinition$76,
|
|
171
|
+
StudioBackground: componentDefinition$77,
|
|
172
|
+
Swirl: componentDefinition$78,
|
|
173
|
+
TiltShift: componentDefinition$79,
|
|
174
|
+
Tint: componentDefinition$80,
|
|
175
|
+
Trapezoid: componentDefinition$81,
|
|
176
|
+
Tritone: componentDefinition$82,
|
|
177
|
+
Twirl: componentDefinition$83,
|
|
178
|
+
Vesica: componentDefinition$84,
|
|
179
|
+
Vibrance: componentDefinition$85,
|
|
180
|
+
VideoTexture: componentDefinition$86,
|
|
181
|
+
WaveDistortion: componentDefinition$87,
|
|
182
|
+
WebcamTexture: componentDefinition$88,
|
|
183
|
+
ZoomBlur: componentDefinition$89
|
|
184
|
+
};
|
|
185
|
+
Object.entries(shaderDefinitions).forEach(([fileName, def]) => {
|
|
186
|
+
const propsMetadata = {};
|
|
187
|
+
if (def.props) Object.entries(def.props).forEach(([propName, propConfig]) => {
|
|
188
|
+
if (propConfig.ui) propsMetadata[propName] = {
|
|
189
|
+
ui: propConfig.ui,
|
|
190
|
+
default: propConfig.default,
|
|
191
|
+
description: propConfig.description
|
|
192
|
+
};
|
|
193
|
+
});
|
|
194
|
+
registry[def.name] = {
|
|
195
|
+
name: def.name,
|
|
196
|
+
fileName,
|
|
197
|
+
category: def.category || "Uncategorized",
|
|
198
|
+
definition: def,
|
|
199
|
+
propsMetadata
|
|
200
|
+
};
|
|
201
|
+
});
|
|
202
|
+
return registry;
|
|
203
|
+
};
|
|
204
|
+
const shaderRegistry = createShaderRegistry();
|
|
205
|
+
function getAllShaders() {
|
|
206
|
+
return Object.values(shaderRegistry);
|
|
207
|
+
}
|
|
208
|
+
function getShaderByName(name) {
|
|
209
|
+
return shaderRegistry[name];
|
|
210
|
+
}
|
|
211
|
+
function getShadersByCategory(category) {
|
|
212
|
+
return Object.values(shaderRegistry).filter((shader) => shader.category === category);
|
|
213
|
+
}
|
|
214
|
+
function getShaderCategories() {
|
|
215
|
+
const categories = new Set(Object.values(shaderRegistry).map((shader) => shader.category));
|
|
216
|
+
return Array.from(categories).sort();
|
|
217
|
+
}
|
|
218
|
+
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":"AA6FA,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;AA8HD,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"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ComponentDefinition } from '../../types';
|
|
2
|
+
import { transformPosition } from '../../utilities/transformations';
|
|
3
|
+
|
|
4
|
+
export interface ComponentProps {
|
|
5
|
+
/**
|
|
6
|
+
* 3D shape and its parameters
|
|
7
|
+
*
|
|
8
|
+
* @default "DEFAULT_RIBBON"
|
|
9
|
+
*/
|
|
10
|
+
shape3d: string;
|
|
11
|
+
/**
|
|
12
|
+
* Active shape type — triggers recompile when shape is switched
|
|
13
|
+
*
|
|
14
|
+
* @default "ribbon"
|
|
15
|
+
*/
|
|
16
|
+
shape3dType: string;
|
|
17
|
+
/**
|
|
18
|
+
* Center position of the shape on screen
|
|
19
|
+
*
|
|
20
|
+
* Accepts `{ x, y }` objects with values from 0 to 1, or CSS positions like `top center`.
|
|
21
|
+
* @default {"x":0.5,"y":0.5}
|
|
22
|
+
*/
|
|
23
|
+
center: Parameters<typeof transformPosition>[0];
|
|
24
|
+
/**
|
|
25
|
+
* Camera zoom level
|
|
26
|
+
*
|
|
27
|
+
* @default 50
|
|
28
|
+
*/
|
|
29
|
+
zoom: number;
|
|
30
|
+
/**
|
|
31
|
+
* Specular highlight intensity and sharpness
|
|
32
|
+
*
|
|
33
|
+
* @default 50
|
|
34
|
+
*/
|
|
35
|
+
glossiness: number;
|
|
36
|
+
/**
|
|
37
|
+
* Overall intensity of lighting effects
|
|
38
|
+
*
|
|
39
|
+
* @default 50
|
|
40
|
+
*/
|
|
41
|
+
lighting: number;
|
|
42
|
+
/**
|
|
43
|
+
* How to handle UV coordinates at shape boundaries
|
|
44
|
+
*
|
|
45
|
+
* Accepts one of: `"stretch"`, `"mirror"`, `"wrap"`.
|
|
46
|
+
* @default "stretch"
|
|
47
|
+
*/
|
|
48
|
+
uvMode: string;
|
|
49
|
+
/**
|
|
50
|
+
* Animation speed — scales all spin rates
|
|
51
|
+
*
|
|
52
|
+
* Accepts a number between -10 and 10.
|
|
53
|
+
* @default 1
|
|
54
|
+
*/
|
|
55
|
+
speed: number;
|
|
56
|
+
}
|
|
57
|
+
export declare const componentDefinition: ComponentDefinition<ComponentProps>;
|
|
58
|
+
export default componentDefinition;
|
|
59
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Form3D/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAC,iBAAiB,EAAiB,MAAM,qCAAqC,CAAA;AAarF,MAAM,WAAW,cAAc;IAC3B,OAAO,EAAM,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAO,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;IACpD,IAAI,EAAQ,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAI,MAAM,CAAA;IAClB,MAAM,EAAM,MAAM,CAAA;IAClB,KAAK,EAAO,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CA2OnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Shape3D } from '../../../effects/raymarch3d';
|
|
2
|
+
|
|
3
|
+
export interface BoxUniforms {
|
|
4
|
+
halfExtents: any;
|
|
5
|
+
rounding: any;
|
|
6
|
+
rotX: any;
|
|
7
|
+
rotY: any;
|
|
8
|
+
rotZ: any;
|
|
9
|
+
spinAngleX: any;
|
|
10
|
+
spinAngleY: any;
|
|
11
|
+
spinAngleZ: any;
|
|
12
|
+
}
|
|
13
|
+
export declare function createBoxShape(u: BoxUniforms): Shape3D;
|
|
14
|
+
//# sourceMappingURL=box.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../../src/shaders/Form3D/shapes/box.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,6BAA6B,CAAA;AAGxD,MAAM,WAAW,WAAW;IACxB,WAAW,EAAE,GAAG,CAAA;IAChB,QAAQ,EAAK,GAAG,CAAA;IAChB,IAAI,EAAE,GAAG,CAAC;IAAC,IAAI,EAAE,GAAG,CAAC;IAAC,IAAI,EAAE,GAAG,CAAA;IAC/B,UAAU,EAAE,GAAG,CAAC;IAAC,UAAU,EAAE,GAAG,CAAC;IAAC,UAAU,EAAE,GAAG,CAAA;CACpD;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,CAqCtD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Shape3D } from '../../../effects/raymarch3d';
|
|
2
|
+
|
|
3
|
+
export interface CapsuleUniforms {
|
|
4
|
+
radius: any;
|
|
5
|
+
halfHeight: any;
|
|
6
|
+
rotX: any;
|
|
7
|
+
rotY: any;
|
|
8
|
+
rotZ: any;
|
|
9
|
+
spinAngleX: any;
|
|
10
|
+
spinAngleY: any;
|
|
11
|
+
spinAngleZ: any;
|
|
12
|
+
}
|
|
13
|
+
export declare function createCapsuleShape(u: CapsuleUniforms): Shape3D;
|
|
14
|
+
//# sourceMappingURL=capsule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capsule.d.ts","sourceRoot":"","sources":["../../../../src/shaders/Form3D/shapes/capsule.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,6BAA6B,CAAA;AAGxD,MAAM,WAAW,eAAe;IAC5B,MAAM,EAAM,GAAG,CAAA;IACf,UAAU,EAAE,GAAG,CAAA;IACf,IAAI,EAAE,GAAG,CAAC;IAAC,IAAI,EAAE,GAAG,CAAC;IAAC,IAAI,EAAE,GAAG,CAAA;IAC/B,UAAU,EAAE,GAAG,CAAC;IAAC,UAAU,EAAE,GAAG,CAAC;IAAC,UAAU,EAAE,GAAG,CAAA;CACpD;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,eAAe,GAAG,OAAO,CAqB9D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Shape3D } from '../../../effects/raymarch3d';
|
|
2
|
+
|
|
3
|
+
export interface MobiusUniforms {
|
|
4
|
+
ringRadius: any;
|
|
5
|
+
halfWidth: any;
|
|
6
|
+
thickness: any;
|
|
7
|
+
rotX: any;
|
|
8
|
+
rotY: any;
|
|
9
|
+
rotZ: any;
|
|
10
|
+
spinAngleX: any;
|
|
11
|
+
spinAngleY: any;
|
|
12
|
+
spinAngleZ: any;
|
|
13
|
+
}
|
|
14
|
+
export declare function createMobiusShape(u: MobiusUniforms): Shape3D;
|
|
15
|
+
//# sourceMappingURL=mobius.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobius.d.ts","sourceRoot":"","sources":["../../../../src/shaders/Form3D/shapes/mobius.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,6BAA6B,CAAA;AAGxD,MAAM,WAAW,cAAc;IAC3B,UAAU,EAAE,GAAG,CAAA;IACf,SAAS,EAAG,GAAG,CAAA;IACf,SAAS,EAAG,GAAG,CAAA;IACf,IAAI,EAAE,GAAG,CAAC;IAAC,IAAI,EAAE,GAAG,CAAC;IAAC,IAAI,EAAE,GAAG,CAAA;IAC/B,UAAU,EAAE,GAAG,CAAC;IAAC,UAAU,EAAE,GAAG,CAAC;IAAC,UAAU,EAAE,GAAG,CAAA;CACpD;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,cAAc,GAAG,OAAO,CA+C5D"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Shape3D } from '../../../effects/raymarch3d';
|
|
2
|
+
|
|
3
|
+
interface RibbonParams {
|
|
4
|
+
angleRad: any;
|
|
5
|
+
twistAmt: any;
|
|
6
|
+
halfW: any;
|
|
7
|
+
ribbonWidth: any;
|
|
8
|
+
ribbonThickness: any;
|
|
9
|
+
twistPhase: any;
|
|
10
|
+
t: any;
|
|
11
|
+
}
|
|
12
|
+
export declare function createRibbonShape(params: RibbonParams): Shape3D;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=ribbon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ribbon.d.ts","sourceRoot":"","sources":["../../../../src/shaders/Form3D/shapes/ribbon.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,6BAA6B,CAAA;AAExD,UAAU,YAAY;IAClB,QAAQ,EAAS,GAAG,CAAA;IACpB,QAAQ,EAAS,GAAG,CAAA;IACpB,KAAK,EAAY,GAAG,CAAA;IACpB,WAAW,EAAM,GAAG,CAAA;IACpB,eAAe,EAAE,GAAG,CAAA;IACpB,UAAU,EAAO,GAAG,CAAA;IACpB,CAAC,EAAgB,GAAG,CAAA;CACvB;AAID,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAqD/D"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const rotateX: import('three/src/nodes/TSL.js').ShaderNodeFn<[any, any]>;
|
|
2
|
+
export declare const rotateY: import('three/src/nodes/TSL.js').ShaderNodeFn<[any, any]>;
|
|
3
|
+
export declare const rotateZ: import('three/src/nodes/TSL.js').ShaderNodeFn<[any, any]>;
|
|
4
|
+
export declare const createApplyRot: (rotX_u: any, rotY_u: any, rotZ_u: any, spinX: any, spinY: any, spinZ: any) => (p: any) => import('three/src/nodes/TSL.js').ShaderCallNodeInternal;
|
|
5
|
+
//# sourceMappingURL=rotation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotation.d.ts","sourceRoot":"","sources":["../../../../src/shaders/Form3D/shapes/rotation.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,2DAGlB,CAAA;AAEF,eAAO,MAAM,OAAO,2DAGlB,CAAA;AAEF,eAAO,MAAM,OAAO,2DAGlB,CAAA;AAEF,eAAO,MAAM,cAAc,WAAY,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAChG,GAAG,4DAA0F,CAAA"}
|