shaders 2.3.57 → 2.3.60
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/{AngularBlur-BNL2_pBD.js → AngularBlur-m_DWR-a1.js} +1 -1
- package/dist/core/{Aurora-DtnRdRC-.js → Aurora-CYCPE1wp.js} +2 -2
- package/dist/core/{Beam-qJlv6CVV.js → Beam-COjEb2JI.js} +2 -2
- package/dist/core/{Blob-DGRz-vGs.js → Blob-jHnoxt2N.js} +2 -2
- package/dist/core/{Bulge-54fwrqfj.js → Bulge-CsNj4Jew.js} +1 -1
- package/dist/core/{Checkerboard-DwFfxCnj.js → Checkerboard-DwiW08iJ.js} +2 -2
- package/dist/core/{ChromaFlow-EXxrLXaR.js → ChromaFlow-DfP9ZDg0.js} +1 -1
- package/dist/core/{ChromaticAberration-CNR09GFf.js → ChromaticAberration-VL5tfOeo.js} +1 -1
- package/dist/core/{Circle-zhbK6F5c.js → Circle-CUYMdgd5.js} +2 -2
- package/dist/core/{ConcentricSpin-CDjyEIxy.js → ConcentricSpin-DBqXmCjg.js} +1 -1
- package/dist/core/{ContourLines-zyy6CCUx.js → ContourLines-D2KRIOBw.js} +1 -1
- package/dist/core/{CursorRipples-CmE0GhQh.js → CursorRipples-JWrDL_dU.js} +1 -1
- package/dist/core/{CursorTrail--yjKF5x6.js → CursorTrail-D2_14ZEz.js} +2 -2
- package/dist/core/{DiffuseBlur-CfZ3V94k.js → DiffuseBlur-siJmc-84.js} +1 -1
- package/dist/core/{Dither-Cro5_SzL.js → Dither-GoyNQ4_v.js} +1 -1
- package/dist/core/{DotGrid-BOS1G6mL.js → DotGrid-B8bSufr6.js} +1 -1
- package/dist/core/{Duotone-bPh-N4wz.js → Duotone-CRiDL3YN.js} +2 -2
- package/dist/core/{FloatingParticles-DzTtE8CB.js → FloatingParticles-CtrWM2rw.js} +1 -1
- package/dist/core/{FlowField-Cuy2JAYR.js → FlowField-B-sNApu9.js} +1 -1
- package/dist/core/{Godrays-CbslvOsk.js → Godrays-BV94FCDI.js} +1 -1
- package/dist/core/{Grid-CGHXquxS.js → Grid-Czxa6-My.js} +1 -1
- package/dist/core/{GridDistortion-B3b17eue.js → GridDistortion-CKhOZRpM.js} +1 -1
- package/dist/core/{Halftone-iU8wtr1b.js → Halftone-YTJAc3Ie.js} +1 -1
- package/dist/core/{Kaleidoscope-BL6E3BVU.js → Kaleidoscope-BDTIWTFC.js} +1 -1
- package/dist/core/{LensFlare-B-SuRYrs.js → LensFlare-CxyJBEvr.js} +1 -1
- package/dist/core/{LinearBlur-C022H2bm.js → LinearBlur-BtsleV0J.js} +1 -1
- package/dist/core/{LinearGradient-Bw4cgU2M.js → LinearGradient-BP91wtXm.js} +2 -2
- package/dist/core/{Liquify-C6s_nyRi.js → Liquify-2u2lkBhB.js} +1 -1
- package/dist/core/{Mirror-uDxrbYeY.js → Mirror-BonA1elw.js} +1 -1
- package/dist/core/{Perspective-C2l3C8d0.js → Perspective-Cwpv4683.js} +1 -1
- package/dist/core/{Plasma-B4lUXy1l.js → Plasma-BU4ujuLB.js} +2 -2
- package/dist/core/{PolarCoordinates-CxxFpdz2.js → PolarCoordinates-6BZYZFoj.js} +1 -1
- package/dist/core/{ProgressiveBlur-BnWdDciO.js → ProgressiveBlur-Y8YqC7HM.js} +1 -1
- package/dist/core/{RadialGradient-RBdy6zz7.js → RadialGradient-DauSwpwY.js} +2 -2
- package/dist/core/{RectangularCoordinates-CuKEfncN.js → RectangularCoordinates-C5585uvf.js} +1 -1
- package/dist/core/{Ripples-DPp17BSt.js → Ripples-QWGujQgy.js} +2 -2
- package/dist/core/{Shatter-CABbAt_A.js → Shatter-DRSn9uGZ.js} +1 -1
- package/dist/core/{SimplexNoise-B6NBzB1e.js → SimplexNoise-W0fx_Y5Q.js} +2 -2
- package/dist/core/{SineWave-6gxiNlvQ.js → SineWave-C-r5bVGK.js} +1 -1
- package/dist/core/{SolidColor-DEXByN1S.js → SolidColor-BY2tBGcO.js} +1 -1
- package/dist/core/{Spherize-DRGaSHzl.js → Spherize-DF4iTTzb.js} +1 -1
- package/dist/core/{Spiral-DT16M2Ky.js → Spiral-DWBdkW7Y.js} +2 -2
- package/dist/core/{Strands-CQBNeiNL.js → Strands-BFVI3C04.js} +1 -1
- package/dist/core/{Stretch-DFVmX2dB.js → Stretch-CB92XLiC.js} +1 -1
- package/dist/core/{Stripes-80nKu5P2.js → Stripes-CTmvjI0U.js} +2 -2
- package/dist/core/{StudioBackground-81057m29.js → StudioBackground-DXHPEKcb.js} +1 -1
- package/dist/core/{Swirl-C0caKRGI.js → Swirl-DVaTB8HY.js} +2 -2
- package/dist/core/{TiltShift-CNn3Yo34.js → TiltShift-CMTVpEBO.js} +1 -1
- package/dist/core/{Tint-CfVQjPxR.js → Tint-COD37j4D.js} +1 -1
- package/dist/core/{Tritone-CM5ZgDQ5.js → Tritone-BETUi-og.js} +2 -2
- package/dist/core/{Twirl-Bc95ho0B.js → Twirl-BUlMUymT.js} +1 -1
- package/dist/core/{WaveDistortion-w4LX_3ES.js → WaveDistortion-DzwdX6Wj.js} +1 -1
- package/dist/core/{ZoomBlur-D2DwyQKZ.js → ZoomBlur-BE1vT38D.js} +1 -1
- package/dist/core/colorMixing-D_wMclqL.js +196 -0
- package/dist/core/index.js +4 -3
- package/dist/core/registry.js +55 -55
- package/dist/core/renderer.d.ts +2 -1
- package/dist/core/renderer.d.ts.map +1 -1
- package/dist/core/shaders/AngularBlur/index.js +2 -2
- package/dist/core/shaders/Aurora/index.js +3 -3
- package/dist/core/shaders/Beam/index.js +3 -3
- package/dist/core/shaders/Blob/index.js +3 -3
- package/dist/core/shaders/Bulge/index.js +2 -2
- package/dist/core/shaders/Checkerboard/index.js +3 -3
- package/dist/core/shaders/ChromaFlow/index.js +2 -2
- package/dist/core/shaders/ChromaticAberration/index.js +2 -2
- package/dist/core/shaders/Circle/index.js +3 -3
- package/dist/core/shaders/ConcentricSpin/index.js +2 -2
- package/dist/core/shaders/ContourLines/index.js +2 -2
- package/dist/core/shaders/CursorRipples/index.js +2 -2
- package/dist/core/shaders/CursorTrail/index.js +3 -3
- package/dist/core/shaders/DiffuseBlur/index.js +2 -2
- package/dist/core/shaders/Dither/index.js +2 -2
- package/dist/core/shaders/DotGrid/index.js +2 -2
- package/dist/core/shaders/Duotone/index.js +3 -3
- package/dist/core/shaders/FloatingParticles/index.js +2 -2
- package/dist/core/shaders/FlowField/index.js +2 -2
- package/dist/core/shaders/Godrays/index.js +2 -2
- package/dist/core/shaders/Grid/index.js +2 -2
- package/dist/core/shaders/GridDistortion/index.js +2 -2
- package/dist/core/shaders/Halftone/index.js +2 -2
- package/dist/core/shaders/Kaleidoscope/index.js +2 -2
- package/dist/core/shaders/LensFlare/index.js +2 -2
- package/dist/core/shaders/LinearBlur/index.js +2 -2
- package/dist/core/shaders/LinearGradient/index.js +3 -3
- package/dist/core/shaders/Liquify/index.js +2 -2
- package/dist/core/shaders/Mirror/index.js +2 -2
- package/dist/core/shaders/Perspective/index.js +2 -2
- package/dist/core/shaders/Plasma/index.js +3 -3
- package/dist/core/shaders/PolarCoordinates/index.js +2 -2
- package/dist/core/shaders/ProgressiveBlur/index.js +2 -2
- package/dist/core/shaders/RadialGradient/index.js +3 -3
- package/dist/core/shaders/RectangularCoordinates/index.js +2 -2
- package/dist/core/shaders/Ripples/index.js +3 -3
- package/dist/core/shaders/Shatter/index.js +2 -2
- package/dist/core/shaders/SimplexNoise/index.js +3 -3
- package/dist/core/shaders/SineWave/index.js +2 -2
- package/dist/core/shaders/SolidColor/index.js +2 -2
- package/dist/core/shaders/Spherize/index.js +2 -2
- package/dist/core/shaders/Spiral/index.js +3 -3
- package/dist/core/shaders/Strands/index.js +2 -2
- package/dist/core/shaders/Stretch/index.js +2 -2
- package/dist/core/shaders/Stripes/index.js +3 -3
- package/dist/core/shaders/StudioBackground/index.js +2 -2
- package/dist/core/shaders/Swirl/index.js +3 -3
- package/dist/core/shaders/TiltShift/index.js +2 -2
- package/dist/core/shaders/Tint/index.js +2 -2
- package/dist/core/shaders/Tritone/index.js +3 -3
- package/dist/core/shaders/Twirl/index.js +2 -2
- package/dist/core/shaders/WaveDistortion/index.js +2 -2
- package/dist/core/shaders/ZoomBlur/index.js +2 -2
- package/dist/core/telemetry/collector.d.ts.map +1 -1
- package/dist/core/telemetry/index.js +1 -0
- package/dist/core/telemetry/types.d.ts +1 -0
- package/dist/core/telemetry/types.d.ts.map +1 -1
- package/dist/core/{transformations-CC_c-QAT.js → transformations-B5lM6fYX.js} +26 -4
- package/dist/core/utilities/colorMixing.d.ts +2 -1
- package/dist/core/utilities/colorMixing.d.ts.map +1 -1
- package/dist/core/utilities/transformations/index.js +2 -0
- package/dist/core/utilities/transformations.d.ts +5 -2
- package/dist/core/utilities/transformations.d.ts.map +1 -1
- package/dist/react/Shader.js +27 -4
- package/dist/react/engine/Shader.d.ts +1 -0
- package/dist/react/engine/Shader.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.d.ts +1 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +3 -2
- package/dist/react/utils/generatePresetCode.template.d.ts +1 -1
- package/dist/react/utils/generatePresetCode.template.d.ts.map +1 -1
- package/dist/registry.js +336 -0
- package/dist/solid/engine/Shader.d.ts +1 -0
- package/dist/solid/engine/Shader.d.ts.map +1 -1
- package/dist/solid/engine/Shader.js +25 -5
- package/dist/solid/utils/generatePresetCode.d.ts +1 -1
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +3 -2
- package/dist/solid/utils/generatePresetCode.template.d.ts +1 -1
- package/dist/solid/utils/generatePresetCode.template.d.ts.map +1 -1
- package/dist/svelte/engine/Shader.svelte.d.ts +1 -0
- package/dist/svelte/{generatePresetCode-CO9fAymD.js → generatePresetCode-EA1bmNOJ.js} +3 -2
- package/dist/svelte/index.js +25 -5
- package/dist/svelte/utils/generatePresetCode.d.ts +1 -1
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/svelte/utils/generatePresetCode.template.d.ts +1 -1
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +23 -6
- package/dist/vue/engine/Shader.vue.d.ts +4 -0
- package/dist/vue/engine/Shader.vue.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.d.ts +1 -1
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +3 -2
- package/dist/vue/utils/generatePresetCode.template.d.ts +1 -1
- package/dist/vue/utils/generatePresetCode.template.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/core/colorMixing-DZpckBhm.js +0 -68
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { abs, atan, cos, float, max, min, mod, pow, sign, sin, sqrt, vec3, vec4 } from "three/tsl";
|
|
2
|
+
var EPSILON = float(1e-4);
|
|
3
|
+
var PI_OVER_3 = 1.0471975512;
|
|
4
|
+
var LAB_DELTA = float(6 / 29);
|
|
5
|
+
var LAB_KAPPA = float(500);
|
|
6
|
+
var LAB_LAMBDA = float(200);
|
|
7
|
+
var p3ToSRGB = (p3) => {
|
|
8
|
+
return vec3(p3.x.mul(1.2249401).sub(p3.y.mul(.2249404)).sub(p3.z.mul(0)), p3.x.mul(-.0420569).add(p3.y.mul(1.0420571)).add(p3.z.mul(0)), p3.x.mul(-.0196376).sub(p3.y.mul(.0786361)).add(p3.z.mul(1.0982735)));
|
|
9
|
+
};
|
|
10
|
+
var sRGBToP3 = (srgb) => {
|
|
11
|
+
return vec3(srgb.x.mul(.8224621).add(srgb.y.mul(.177538)).add(srgb.z.mul(0)), srgb.x.mul(.0331941).add(srgb.y.mul(.9668058)).add(srgb.z.mul(0)), srgb.x.mul(.0170826).add(srgb.y.mul(.0723974)).add(srgb.z.mul(.9105199)));
|
|
12
|
+
};
|
|
13
|
+
var rgbToOklab = (rgb) => {
|
|
14
|
+
const r = rgb.x;
|
|
15
|
+
const g = rgb.y;
|
|
16
|
+
const b = rgb.z;
|
|
17
|
+
const l = r.mul(.4122214708).add(g.mul(.5363325363)).add(b.mul(.0514459929));
|
|
18
|
+
const m = r.mul(.2119034982).add(g.mul(.6806995451).add(b.mul(.1073969566)));
|
|
19
|
+
const s = r.mul(.0883024619).add(g.mul(.2817188376)).add(b.mul(.6299787005));
|
|
20
|
+
const l_ = sign(l).mul(pow(abs(l), float(1 / 3)));
|
|
21
|
+
const m_ = sign(m).mul(pow(abs(m), float(1 / 3)));
|
|
22
|
+
const s_ = sign(s).mul(pow(abs(s), float(1 / 3)));
|
|
23
|
+
return vec3(l_.mul(.2104542553).add(m_.mul(.793617785)).sub(s_.mul(.0040720468)), l_.mul(1.9779984951).sub(m_.mul(2.428592205)).add(s_.mul(.4505937099)), l_.mul(.0259040371).add(m_.mul(.7827717662)).sub(s_.mul(.808675766)));
|
|
24
|
+
};
|
|
25
|
+
var oklabToRgb = (lab) => {
|
|
26
|
+
const L = lab.x;
|
|
27
|
+
const a = lab.y;
|
|
28
|
+
const b = lab.z;
|
|
29
|
+
const l_ = L.add(a.mul(.3963377774)).add(b.mul(.2158037573));
|
|
30
|
+
const m_ = L.sub(a.mul(.1055613458)).sub(b.mul(.0638541728));
|
|
31
|
+
const s_ = L.sub(a.mul(.0894841775)).sub(b.mul(1.291485548));
|
|
32
|
+
const l = pow(l_, float(3));
|
|
33
|
+
const m = pow(m_, float(3));
|
|
34
|
+
const s = pow(s_, float(3));
|
|
35
|
+
return vec3(l.mul(4.0767416621).sub(m.mul(3.3077115913)).add(s.mul(.2309699292)), l.mul(-1.2684380046).add(m.mul(2.6097574011)).sub(s.mul(.3413193965)), l.mul(-.0041960863).sub(m.mul(.7034186147)).add(s.mul(1.707614701)));
|
|
36
|
+
};
|
|
37
|
+
var oklabToOklch = (lab) => {
|
|
38
|
+
const L = lab.x;
|
|
39
|
+
const a = lab.y;
|
|
40
|
+
const b = lab.z;
|
|
41
|
+
return vec3(L, sqrt(a.mul(a).add(b.mul(b))), atan(b, a));
|
|
42
|
+
};
|
|
43
|
+
var oklchToOklab = (lch) => {
|
|
44
|
+
const L = lch.x;
|
|
45
|
+
const C = lch.y;
|
|
46
|
+
const h = lch.z;
|
|
47
|
+
return vec3(L, C.mul(cos(h)), C.mul(sin(h)));
|
|
48
|
+
};
|
|
49
|
+
var selectRGBBySector = (c, x, sector) => {
|
|
50
|
+
const isSector0 = sector.lessThan(float(1));
|
|
51
|
+
const isSector1 = sector.greaterThanEqual(float(1)).and(sector.lessThan(float(2)));
|
|
52
|
+
const isSector2 = sector.greaterThanEqual(float(2)).and(sector.lessThan(float(3)));
|
|
53
|
+
const isSector3 = sector.greaterThanEqual(float(3)).and(sector.lessThan(float(4)));
|
|
54
|
+
const isSector4 = sector.greaterThanEqual(float(4)).and(sector.lessThan(float(5)));
|
|
55
|
+
return {
|
|
56
|
+
r: isSector0.select(c, isSector1.select(x, isSector2.select(float(0), isSector3.select(float(0), isSector4.select(x, c))))),
|
|
57
|
+
g: isSector0.select(x, isSector1.select(c, isSector2.select(c, isSector3.select(x, isSector4.select(float(0), float(0)))))),
|
|
58
|
+
b: isSector0.select(float(0), isSector1.select(float(0), isSector2.select(x, isSector3.select(c, isSector4.select(c, x)))))
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
var rgbToHsl = (rgb) => {
|
|
62
|
+
const r = rgb.x;
|
|
63
|
+
const g = rgb.y;
|
|
64
|
+
const b = rgb.z;
|
|
65
|
+
const maxVal = max(max(r, g), b);
|
|
66
|
+
const minVal = min(min(r, g), b);
|
|
67
|
+
const delta = maxVal.sub(minVal);
|
|
68
|
+
const l = maxVal.add(minVal).mul(.5);
|
|
69
|
+
const satDenom = float(1).sub(abs(l.mul(2).sub(1))).max(EPSILON);
|
|
70
|
+
const s = delta.div(satDenom);
|
|
71
|
+
const isRMax = maxVal.equal(r);
|
|
72
|
+
const isGMax = maxVal.equal(g);
|
|
73
|
+
const hueR = g.sub(b).div(delta.max(EPSILON));
|
|
74
|
+
const hueG = float(2).add(b.sub(r).div(delta.max(EPSILON)));
|
|
75
|
+
const hueB = float(4).add(r.sub(g).div(delta.max(EPSILON)));
|
|
76
|
+
return vec3(isRMax.select(hueR, isGMax.select(hueG, hueB)).mul(PI_OVER_3), s, l);
|
|
77
|
+
};
|
|
78
|
+
var hslToRgb = (hsl) => {
|
|
79
|
+
const h = hsl.x;
|
|
80
|
+
const s = hsl.y;
|
|
81
|
+
const l = hsl.z;
|
|
82
|
+
const c = s.mul(float(1).sub(abs(l.mul(2).sub(1))));
|
|
83
|
+
const hPrime = h.div(PI_OVER_3);
|
|
84
|
+
const x = c.mul(float(1).sub(abs(mod(hPrime, float(2)).sub(1))));
|
|
85
|
+
const m = l.sub(c.mul(.5));
|
|
86
|
+
const rgb = selectRGBBySector(c, x, hPrime.floor());
|
|
87
|
+
return vec3(rgb.r.add(m), rgb.g.add(m), rgb.b.add(m));
|
|
88
|
+
};
|
|
89
|
+
var rgbToHsv = (rgb) => {
|
|
90
|
+
const r = rgb.x;
|
|
91
|
+
const g = rgb.y;
|
|
92
|
+
const b = rgb.z;
|
|
93
|
+
const maxVal = max(max(r, g), b);
|
|
94
|
+
const minVal = min(min(r, g), b);
|
|
95
|
+
const delta = maxVal.sub(minVal);
|
|
96
|
+
const v = maxVal;
|
|
97
|
+
const s = delta.div(maxVal.max(EPSILON));
|
|
98
|
+
const isRMax = maxVal.equal(r);
|
|
99
|
+
const isGMax = maxVal.equal(g);
|
|
100
|
+
const hueR = g.sub(b).div(delta.max(EPSILON));
|
|
101
|
+
const hueG = float(2).add(b.sub(r).div(delta.max(EPSILON)));
|
|
102
|
+
const hueB = float(4).add(r.sub(g).div(delta.max(EPSILON)));
|
|
103
|
+
return vec3(isRMax.select(hueR, isGMax.select(hueG, hueB)).mul(PI_OVER_3), s, v);
|
|
104
|
+
};
|
|
105
|
+
var hsvToRgb = (hsv) => {
|
|
106
|
+
const h = hsv.x;
|
|
107
|
+
const s = hsv.y;
|
|
108
|
+
const v = hsv.z;
|
|
109
|
+
const c = v.mul(s);
|
|
110
|
+
const hPrime = h.div(PI_OVER_3);
|
|
111
|
+
const x = c.mul(float(1).sub(abs(mod(hPrime, float(2)).sub(1))));
|
|
112
|
+
const m = v.sub(c);
|
|
113
|
+
const rgb = selectRGBBySector(c, x, hPrime.floor());
|
|
114
|
+
return vec3(rgb.r.add(m), rgb.g.add(m), rgb.b.add(m));
|
|
115
|
+
};
|
|
116
|
+
var rgbToLab = (rgb) => {
|
|
117
|
+
const r = rgb.x;
|
|
118
|
+
const g = rgb.y;
|
|
119
|
+
const b = rgb.z;
|
|
120
|
+
const x = r.mul(.4124564).add(g.mul(.3575761)).add(b.mul(.1804375));
|
|
121
|
+
const y = r.mul(.2126729).add(g.mul(.7151522)).add(b.mul(.072175));
|
|
122
|
+
const z = r.mul(.0193339).add(g.mul(.119192)).add(b.mul(.9503041));
|
|
123
|
+
const xn = x.div(.95047);
|
|
124
|
+
const yn = y.div(1);
|
|
125
|
+
const zn = z.div(1.08883);
|
|
126
|
+
const delta3 = LAB_DELTA.mul(LAB_DELTA).mul(LAB_DELTA);
|
|
127
|
+
const slope = float(1).div(float(3).mul(LAB_DELTA).mul(LAB_DELTA));
|
|
128
|
+
const offset = float(4 / 29);
|
|
129
|
+
const fx = xn.greaterThan(delta3).select(pow(xn, float(1 / 3)), xn.mul(slope).add(offset));
|
|
130
|
+
const fy = yn.greaterThan(delta3).select(pow(yn, float(1 / 3)), yn.mul(slope).add(offset));
|
|
131
|
+
const fz = zn.greaterThan(delta3).select(pow(zn, float(1 / 3)), zn.mul(slope).add(offset));
|
|
132
|
+
return vec3(fy.mul(116).sub(16), fx.sub(fy).mul(LAB_KAPPA), fy.sub(fz).mul(LAB_LAMBDA));
|
|
133
|
+
};
|
|
134
|
+
var labToRgb = (lab) => {
|
|
135
|
+
const L = lab.x;
|
|
136
|
+
const a = lab.y;
|
|
137
|
+
const b = lab.z;
|
|
138
|
+
const fy = L.add(16).div(116);
|
|
139
|
+
const fx = a.div(LAB_KAPPA).add(fy);
|
|
140
|
+
const fz = fy.sub(b.div(LAB_LAMBDA));
|
|
141
|
+
const slope = float(3).mul(LAB_DELTA).mul(LAB_DELTA);
|
|
142
|
+
const offset = float(4 / 29);
|
|
143
|
+
const xn = fx.greaterThan(LAB_DELTA).select(pow(fx, float(3)), fx.sub(offset).mul(slope));
|
|
144
|
+
const yn = fy.greaterThan(LAB_DELTA).select(pow(fy, float(3)), fy.sub(offset).mul(slope));
|
|
145
|
+
const zn = fz.greaterThan(LAB_DELTA).select(pow(fz, float(3)), fz.sub(offset).mul(slope));
|
|
146
|
+
const x = xn.mul(.95047);
|
|
147
|
+
const y = yn.mul(1);
|
|
148
|
+
const z = zn.mul(1.08883);
|
|
149
|
+
return vec3(x.mul(3.2404542).sub(y.mul(1.5371385)).sub(z.mul(.4985314)), x.mul(-.969266).add(y.mul(1.8760108)).add(z.mul(.041556)), x.mul(.0556434).sub(y.mul(.2040259)).add(z.mul(1.0572252)));
|
|
150
|
+
};
|
|
151
|
+
var labToLch = (lab) => {
|
|
152
|
+
const L = lab.x;
|
|
153
|
+
const a = lab.y;
|
|
154
|
+
const b = lab.z;
|
|
155
|
+
return vec3(L, sqrt(a.mul(a).add(b.mul(b))), atan(b, a));
|
|
156
|
+
};
|
|
157
|
+
var lchToLab = (lch) => {
|
|
158
|
+
const L = lch.x;
|
|
159
|
+
const C = lch.y;
|
|
160
|
+
const h = lch.z;
|
|
161
|
+
return vec3(L, C.mul(cos(h)), C.mul(sin(h)));
|
|
162
|
+
};
|
|
163
|
+
const mixColors = (colorA, colorB, t, colorSpaceMode) => {
|
|
164
|
+
const p3A = vec3(colorA.x, colorA.y, colorA.z);
|
|
165
|
+
const p3B = vec3(colorB.x, colorB.y, colorB.z);
|
|
166
|
+
const alphaA = colorA.w;
|
|
167
|
+
const alphaB = colorB.w;
|
|
168
|
+
const weightA = alphaA.mul(float(1).sub(t));
|
|
169
|
+
const weightB = alphaB.mul(t);
|
|
170
|
+
const totalWeight = weightA.add(weightB);
|
|
171
|
+
const safeWeight = max(totalWeight, float(.001));
|
|
172
|
+
const alphaWeightedMix = (rgbA, rgbB) => {
|
|
173
|
+
return rgbA.mul(weightA).add(rgbB.mul(weightB)).div(safeWeight);
|
|
174
|
+
};
|
|
175
|
+
const linearMix = alphaWeightedMix(p3A, p3B);
|
|
176
|
+
const srgbA = p3ToSRGB(p3A);
|
|
177
|
+
const srgbB = p3ToSRGB(p3B);
|
|
178
|
+
const oklabA = rgbToOklab(srgbA);
|
|
179
|
+
const oklabB = rgbToOklab(srgbB);
|
|
180
|
+
const oklchResult = sRGBToP3(oklabToRgb(oklchToOklab(alphaWeightedMix(oklabToOklch(oklabA), oklabToOklch(oklabB)))));
|
|
181
|
+
const oklabResult = sRGBToP3(oklabToRgb(alphaWeightedMix(oklabA, oklabB)));
|
|
182
|
+
const hslResult = sRGBToP3(hslToRgb(alphaWeightedMix(rgbToHsl(srgbA), rgbToHsl(srgbB))));
|
|
183
|
+
const hsvResult = sRGBToP3(hsvToRgb(alphaWeightedMix(rgbToHsv(srgbA), rgbToHsv(srgbB))));
|
|
184
|
+
const labA = rgbToLab(srgbA);
|
|
185
|
+
const labB = rgbToLab(srgbB);
|
|
186
|
+
const lchResult = sRGBToP3(labToRgb(lchToLab(alphaWeightedMix(labToLch(labA), labToLch(labB)))));
|
|
187
|
+
const isMode1OrHigher = colorSpaceMode.greaterThanEqual(float(.5));
|
|
188
|
+
const isMode2OrHigher = colorSpaceMode.greaterThanEqual(float(1.5));
|
|
189
|
+
const isMode3OrHigher = colorSpaceMode.greaterThanEqual(float(2.5));
|
|
190
|
+
const isMode4OrHigher = colorSpaceMode.greaterThanEqual(float(3.5));
|
|
191
|
+
const isMode5 = colorSpaceMode.greaterThanEqual(float(4.5));
|
|
192
|
+
const rgb = isMode1OrHigher.select(isMode2OrHigher.select(isMode3OrHigher.select(isMode4OrHigher.select(isMode5.select(lchResult, hsvResult), hslResult), oklabResult), oklchResult), linearMix);
|
|
193
|
+
const alpha = totalWeight;
|
|
194
|
+
return vec4(rgb.x, rgb.y, rgb.z, alpha);
|
|
195
|
+
};
|
|
196
|
+
export { mixColors as t };
|
package/dist/core/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as applyEdgeHandling } from "./edges-Bd7GP4s2.js";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as transformColor, l as transformPosition, n as setColorSpaceMode, s as transformColorUpdate, u as transformPositionUpdate } from "./transformations-B5lM6fYX.js";
|
|
3
3
|
import { t as createAnimatedTime } from "./time-BZqyVJXt.js";
|
|
4
4
|
import { Material, Mesh, MeshBasicNodeMaterial, OrthographicCamera, PlaneGeometry, SRGBColorSpace, Scene, WebGPURenderer } from "three/webgpu";
|
|
5
5
|
import { WebGLRenderer } from "three";
|
|
@@ -631,7 +631,7 @@ function shaderRenderer() {
|
|
|
631
631
|
let pendingNodeRemoval = false;
|
|
632
632
|
let globalEventUnregister = null;
|
|
633
633
|
let unloadHandler = null;
|
|
634
|
-
let enablePerformanceTracking =
|
|
634
|
+
let enablePerformanceTracking = true;
|
|
635
635
|
const performanceTracker = new PerformanceTracker();
|
|
636
636
|
let pendingRegistrationQueue = [];
|
|
637
637
|
let isRendererReady = false;
|
|
@@ -1436,9 +1436,10 @@ function shaderRenderer() {
|
|
|
1436
1436
|
pendingRegistrationQueue = [];
|
|
1437
1437
|
for (const { id, fragmentNodeFunc, parentId, metadata, uniforms, componentDefinition } of queue) if (fragmentNodeFunc) registerNode(id, fragmentNodeFunc, parentId, metadata, uniforms, componentDefinition);
|
|
1438
1438
|
};
|
|
1439
|
-
const initialize = async ({ canvas, enablePerformanceTracking: enableTracking =
|
|
1439
|
+
const initialize = async ({ canvas, enablePerformanceTracking: enableTracking = true, colorSpace = "p3-linear" }) => {
|
|
1440
1440
|
if (isInitialized || isInitializing) return;
|
|
1441
1441
|
enablePerformanceTracking = enableTracking;
|
|
1442
|
+
setColorSpaceMode(colorSpace);
|
|
1442
1443
|
isInitializing = true;
|
|
1443
1444
|
initializationAbortController = new AbortController();
|
|
1444
1445
|
const localAbortController = initializationAbortController;
|
package/dist/core/registry.js
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
import "./edges-Bd7GP4s2.js";
|
|
2
|
-
import "./transformations-
|
|
2
|
+
import "./transformations-B5lM6fYX.js";
|
|
3
3
|
import "./time-BZqyVJXt.js";
|
|
4
4
|
import "./alpha-Byel9eTg.js";
|
|
5
|
-
import { n as componentDefinition } from "./AngularBlur-
|
|
5
|
+
import { n as componentDefinition } from "./AngularBlur-m_DWR-a1.js";
|
|
6
6
|
import { n as componentDefinition$1 } from "./Ascii-CmRuGRU3.js";
|
|
7
|
-
import "./colorMixing-
|
|
8
|
-
import { n as componentDefinition$2 } from "./Aurora-
|
|
9
|
-
import { n as componentDefinition$3 } from "./Beam-
|
|
10
|
-
import { n as componentDefinition$4 } from "./Blob-
|
|
7
|
+
import "./colorMixing-D_wMclqL.js";
|
|
8
|
+
import { n as componentDefinition$2 } from "./Aurora-CYCPE1wp.js";
|
|
9
|
+
import { n as componentDefinition$3 } from "./Beam-COjEb2JI.js";
|
|
10
|
+
import { n as componentDefinition$4 } from "./Blob-jHnoxt2N.js";
|
|
11
11
|
import { n as componentDefinition$5 } from "./Blur-DpAOfmjB.js";
|
|
12
12
|
import { n as componentDefinition$6 } from "./BrightnessContrast-zL5bGGzg.js";
|
|
13
|
-
import { n as componentDefinition$7 } from "./Bulge-
|
|
13
|
+
import { n as componentDefinition$7 } from "./Bulge-CsNj4Jew.js";
|
|
14
14
|
import { n as componentDefinition$8 } from "./ChannelBlur-4f44pSJj.js";
|
|
15
|
-
import { n as componentDefinition$9 } from "./Checkerboard-
|
|
16
|
-
import { n as componentDefinition$10 } from "./ChromaFlow-
|
|
17
|
-
import { n as componentDefinition$11 } from "./ChromaticAberration-
|
|
18
|
-
import { n as componentDefinition$12 } from "./Circle-
|
|
19
|
-
import { n as componentDefinition$13 } from "./ConcentricSpin-
|
|
20
|
-
import { n as componentDefinition$14 } from "./ContourLines-
|
|
15
|
+
import { n as componentDefinition$9 } from "./Checkerboard-DwiW08iJ.js";
|
|
16
|
+
import { n as componentDefinition$10 } from "./ChromaFlow-DfP9ZDg0.js";
|
|
17
|
+
import { n as componentDefinition$11 } from "./ChromaticAberration-VL5tfOeo.js";
|
|
18
|
+
import { n as componentDefinition$12 } from "./Circle-CUYMdgd5.js";
|
|
19
|
+
import { n as componentDefinition$13 } from "./ConcentricSpin-DBqXmCjg.js";
|
|
20
|
+
import { n as componentDefinition$14 } from "./ContourLines-D2KRIOBw.js";
|
|
21
21
|
import { n as componentDefinition$15 } from "./CRTScreen-cc_j5lyg.js";
|
|
22
|
-
import { n as componentDefinition$16 } from "./CursorRipples-
|
|
23
|
-
import { n as componentDefinition$17 } from "./CursorTrail
|
|
24
|
-
import { n as componentDefinition$18 } from "./DiffuseBlur-
|
|
25
|
-
import { n as componentDefinition$19 } from "./Dither-
|
|
26
|
-
import { n as componentDefinition$20 } from "./DotGrid-
|
|
27
|
-
import { n as componentDefinition$21 } from "./Duotone-
|
|
22
|
+
import { n as componentDefinition$16 } from "./CursorRipples-JWrDL_dU.js";
|
|
23
|
+
import { n as componentDefinition$17 } from "./CursorTrail-D2_14ZEz.js";
|
|
24
|
+
import { n as componentDefinition$18 } from "./DiffuseBlur-siJmc-84.js";
|
|
25
|
+
import { n as componentDefinition$19 } from "./Dither-GoyNQ4_v.js";
|
|
26
|
+
import { n as componentDefinition$20 } from "./DotGrid-B8bSufr6.js";
|
|
27
|
+
import { n as componentDefinition$21 } from "./Duotone-CRiDL3YN.js";
|
|
28
28
|
import { n as componentDefinition$22 } from "./FilmGrain-BxtaYExl.js";
|
|
29
|
-
import { n as componentDefinition$23 } from "./FloatingParticles-
|
|
30
|
-
import { n as componentDefinition$24 } from "./FlowField-
|
|
29
|
+
import { n as componentDefinition$23 } from "./FloatingParticles-CtrWM2rw.js";
|
|
30
|
+
import { n as componentDefinition$24 } from "./FlowField-B-sNApu9.js";
|
|
31
31
|
import { n as componentDefinition$25 } from "./GlassTiles-DR6mVq-O.js";
|
|
32
32
|
import { n as componentDefinition$26 } from "./Glitch-D3mDX28q.js";
|
|
33
33
|
import { n as componentDefinition$27 } from "./Glow-CN4IeRq4.js";
|
|
34
|
-
import { n as componentDefinition$28 } from "./Godrays-
|
|
34
|
+
import { n as componentDefinition$28 } from "./Godrays-BV94FCDI.js";
|
|
35
35
|
import { n as componentDefinition$29 } from "./Grayscale-B_YZd3uy.js";
|
|
36
|
-
import { n as componentDefinition$30 } from "./Grid-
|
|
37
|
-
import { n as componentDefinition$31 } from "./GridDistortion-
|
|
36
|
+
import { n as componentDefinition$30 } from "./Grid-Czxa6-My.js";
|
|
37
|
+
import { n as componentDefinition$31 } from "./GridDistortion-CKhOZRpM.js";
|
|
38
38
|
import { n as componentDefinition$32 } from "./Group-NJlcbnkb.js";
|
|
39
|
-
import { n as componentDefinition$33 } from "./Halftone-
|
|
39
|
+
import { n as componentDefinition$33 } from "./Halftone-YTJAc3Ie.js";
|
|
40
40
|
import { n as componentDefinition$34 } from "./HueShift-Bf2V6FVR.js";
|
|
41
41
|
import { n as componentDefinition$35 } from "./ImageTexture-6e1Gz4IG.js";
|
|
42
42
|
import { n as componentDefinition$36 } from "./Invert-c6RNEzsq.js";
|
|
43
|
-
import { n as componentDefinition$37 } from "./Kaleidoscope-
|
|
44
|
-
import { n as componentDefinition$38 } from "./LensFlare-
|
|
45
|
-
import { n as componentDefinition$39 } from "./LinearBlur-
|
|
46
|
-
import { n as componentDefinition$40 } from "./LinearGradient-
|
|
47
|
-
import { n as componentDefinition$41 } from "./Liquify-
|
|
48
|
-
import { n as componentDefinition$42 } from "./Mirror-
|
|
49
|
-
import { n as componentDefinition$43 } from "./Perspective-
|
|
43
|
+
import { n as componentDefinition$37 } from "./Kaleidoscope-BDTIWTFC.js";
|
|
44
|
+
import { n as componentDefinition$38 } from "./LensFlare-CxyJBEvr.js";
|
|
45
|
+
import { n as componentDefinition$39 } from "./LinearBlur-BtsleV0J.js";
|
|
46
|
+
import { n as componentDefinition$40 } from "./LinearGradient-BP91wtXm.js";
|
|
47
|
+
import { n as componentDefinition$41 } from "./Liquify-2u2lkBhB.js";
|
|
48
|
+
import { n as componentDefinition$42 } from "./Mirror-BonA1elw.js";
|
|
49
|
+
import { n as componentDefinition$43 } from "./Perspective-Cwpv4683.js";
|
|
50
50
|
import { n as componentDefinition$44 } from "./Pixelate-Bxo1bkqM.js";
|
|
51
|
-
import { n as componentDefinition$45 } from "./Plasma-
|
|
52
|
-
import { n as componentDefinition$46 } from "./PolarCoordinates-
|
|
51
|
+
import { n as componentDefinition$45 } from "./Plasma-BU4ujuLB.js";
|
|
52
|
+
import { n as componentDefinition$46 } from "./PolarCoordinates-6BZYZFoj.js";
|
|
53
53
|
import { n as componentDefinition$47 } from "./Posterize--X9GTtfd.js";
|
|
54
|
-
import { n as componentDefinition$48 } from "./ProgressiveBlur-
|
|
55
|
-
import { n as componentDefinition$49 } from "./RadialGradient-
|
|
56
|
-
import { n as componentDefinition$50 } from "./RectangularCoordinates-
|
|
57
|
-
import { n as componentDefinition$51 } from "./Ripples-
|
|
54
|
+
import { n as componentDefinition$48 } from "./ProgressiveBlur-Y8YqC7HM.js";
|
|
55
|
+
import { n as componentDefinition$49 } from "./RadialGradient-DauSwpwY.js";
|
|
56
|
+
import { n as componentDefinition$50 } from "./RectangularCoordinates-C5585uvf.js";
|
|
57
|
+
import { n as componentDefinition$51 } from "./Ripples-QWGujQgy.js";
|
|
58
58
|
import { n as componentDefinition$52 } from "./Saturation-1mdcFzVI.js";
|
|
59
59
|
import { n as componentDefinition$53 } from "./Sharpness-DAu01Qy4.js";
|
|
60
|
-
import { n as componentDefinition$54 } from "./Shatter-
|
|
61
|
-
import { n as componentDefinition$55 } from "./SimplexNoise-
|
|
62
|
-
import { n as componentDefinition$56 } from "./SineWave-
|
|
63
|
-
import { n as componentDefinition$57 } from "./SolidColor-
|
|
64
|
-
import { n as componentDefinition$58 } from "./Spherize-
|
|
65
|
-
import { n as componentDefinition$59 } from "./Spiral-
|
|
66
|
-
import { n as componentDefinition$60 } from "./Strands-
|
|
67
|
-
import { n as componentDefinition$61 } from "./Stretch-
|
|
68
|
-
import { n as componentDefinition$62 } from "./Stripes-
|
|
69
|
-
import { n as componentDefinition$63 } from "./StudioBackground-
|
|
70
|
-
import { n as componentDefinition$64 } from "./Swirl-
|
|
71
|
-
import { n as componentDefinition$65 } from "./TiltShift-
|
|
72
|
-
import { n as componentDefinition$66 } from "./Tint-
|
|
73
|
-
import { n as componentDefinition$67 } from "./Tritone-
|
|
74
|
-
import { n as componentDefinition$68 } from "./Twirl-
|
|
60
|
+
import { n as componentDefinition$54 } from "./Shatter-DRSn9uGZ.js";
|
|
61
|
+
import { n as componentDefinition$55 } from "./SimplexNoise-W0fx_Y5Q.js";
|
|
62
|
+
import { n as componentDefinition$56 } from "./SineWave-C-r5bVGK.js";
|
|
63
|
+
import { n as componentDefinition$57 } from "./SolidColor-BY2tBGcO.js";
|
|
64
|
+
import { n as componentDefinition$58 } from "./Spherize-DF4iTTzb.js";
|
|
65
|
+
import { n as componentDefinition$59 } from "./Spiral-DWBdkW7Y.js";
|
|
66
|
+
import { n as componentDefinition$60 } from "./Strands-BFVI3C04.js";
|
|
67
|
+
import { n as componentDefinition$61 } from "./Stretch-CB92XLiC.js";
|
|
68
|
+
import { n as componentDefinition$62 } from "./Stripes-CTmvjI0U.js";
|
|
69
|
+
import { n as componentDefinition$63 } from "./StudioBackground-DXHPEKcb.js";
|
|
70
|
+
import { n as componentDefinition$64 } from "./Swirl-DVaTB8HY.js";
|
|
71
|
+
import { n as componentDefinition$65 } from "./TiltShift-CMTVpEBO.js";
|
|
72
|
+
import { n as componentDefinition$66 } from "./Tint-COD37j4D.js";
|
|
73
|
+
import { n as componentDefinition$67 } from "./Tritone-BETUi-og.js";
|
|
74
|
+
import { n as componentDefinition$68 } from "./Twirl-BUlMUymT.js";
|
|
75
75
|
import { n as componentDefinition$69 } from "./Vibrance-CWMwA5S-.js";
|
|
76
76
|
import "./browser-C7ZSkE-t.js";
|
|
77
77
|
import { n as componentDefinition$70 } from "./VideoTexture-DUk9pA_6.js";
|
|
78
|
-
import { n as componentDefinition$71 } from "./WaveDistortion-
|
|
78
|
+
import { n as componentDefinition$71 } from "./WaveDistortion-DzwdX6Wj.js";
|
|
79
79
|
import { n as componentDefinition$72 } from "./WebcamTexture-BmeO4qY-.js";
|
|
80
|
-
import { n as componentDefinition$73 } from "./ZoomBlur-
|
|
80
|
+
import { n as componentDefinition$73 } from "./ZoomBlur-BE1vT38D.js";
|
|
81
81
|
var createShaderRegistry = () => {
|
|
82
82
|
const registry = {};
|
|
83
83
|
const shaderDefinitions = {
|
package/dist/core/renderer.d.ts
CHANGED
|
@@ -101,12 +101,13 @@ interface NodeRegistry {
|
|
|
101
101
|
interface InitializeOptions {
|
|
102
102
|
canvas: HTMLCanvasElement;
|
|
103
103
|
enablePerformanceTracking?: boolean;
|
|
104
|
+
colorSpace?: 'p3-linear' | 'srgb';
|
|
104
105
|
}
|
|
105
106
|
/**
|
|
106
107
|
* The core renderer for Shaders
|
|
107
108
|
*/
|
|
108
109
|
export declare function shaderRenderer(): {
|
|
109
|
-
initialize: ({ canvas, enablePerformanceTracking: enableTracking }: InitializeOptions) => Promise<void>;
|
|
110
|
+
initialize: ({ canvas, enablePerformanceTracking: enableTracking, colorSpace }: InitializeOptions) => Promise<void>;
|
|
110
111
|
cleanup: () => void;
|
|
111
112
|
registerNode: (id: string, fragmentNodeFunc: ComponentDefinition["fragmentNode"] | null, parentId: string | null, metadata: NodeMetadata | null, uniforms?: UniformsMap, componentDefinition?: ComponentDefinition) => void;
|
|
112
113
|
removeNode: (id: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../src/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,IAAI,EAMZ,MAAM,cAAc,CAAA;AAKrB,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,WAAW,EAAC,MAAM,SAAS,CAAA;AACvH,OAAO,EAAqB,gBAAgB,EAAC,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../src/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,IAAI,EAMZ,MAAM,cAAc,CAAA;AAKrB,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,WAAW,EAAC,MAAM,SAAS,CAAA;AACvH,OAAO,EAAqB,gBAAgB,EAAC,MAAM,sBAAsB,CAAA;AAMzE;;GAEG;AACH,UAAU,QAAQ;IAEd;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,gBAAgB,EAAE,mBAAmB,CAAC,cAAc,CAAC,CAAA;IAErD;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IAEpB;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,cAAc,EAAE,GAAG,CAAA;IAEnB;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAA;IAEtB;;OAEG;IACH,QAAQ,EAAE,WAAW,CAAA;IAErB;;;OAGG;IACH,gBAAgB,EAAE,eAAe,EAAE,CAAA;IAEnC;;;OAGG;IACH,qBAAqB,EAAE,cAAc,EAAE,CAAA;IAEvC;;;OAGG;IACH,oBAAoB,EAAE,cAAc,EAAE,CAAA;IAEtC;;;OAGG;IACH,eAAe,EAAE,cAAc,EAAE,CAAA;IAEjC;;;OAGG;IACH,iBAAiB,CAAC,EAAE;QAChB,OAAO,EAAE,GAAG,CAAA;QACZ,OAAO,EAAE,GAAG,CAAA;QACZ,QAAQ,EAAE,GAAG,CAAA;QACb,KAAK,EAAE,GAAG,CAAA;QACV,OAAO,EAAE,GAAG,CAAA;QACZ,OAAO,EAAE,GAAG,CAAA;QACZ,KAAK,EAAE,GAAG,CAAA;QACV,WAAW,EAAE,GAAG,CAAA;KACnB,CAAA;IAED;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAE/B;AAED;;GAEG;AACH,UAAU,YAAY;IAClB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAClC;AAED;;GAEG;AACH,UAAU,iBAAiB;IACvB,MAAM,EAAE,iBAAiB,CAAA;IACzB,yBAAyB,CAAC,EAAE,OAAO,CAAA;IACnC,UAAU,CAAC,EAAE,WAAW,GAAG,MAAM,CAAA;CACpC;AA2FD;;GAEG;AACH,wBAAgB,cAAc;oFA6oDG,iBAAiB;;uBAvtBpB,MAAM,oBAAoB,mBAAmB,CAAC,cAAc,CAAC,GAAG,IAAI,YAAY,MAAM,GAAG,IAAI,YAAY,YAAY,GAAG,IAAI,aAAY,WAAW,wBAA6B,mBAAmB,KAAG,IAAI;qBA0R5M,MAAM,KAAG,IAAI;iCAxID,MAAM,eAAe,MAAM,SAAS,GAAG,KAAG,IAAI;iCAgC9C,MAAM,YAAY,OAAO,CAAC,YAAY,CAAC,KAAG,IAAI;;0BAmYvD,IAAI;yBAyBL,IAAI;yBA9ME,OAAO,CAAC,IAAI,CAAC;+BAoKb,gBAAgB;;eA6emB,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;2BAjBpE,QAAQ,GAAG,OAAO,GAAG,IAAI;;;mCAzjDnB,MAAM,KAAG,QAAQ,EAAE;oCAuCzC,IAAI,YACF,QAAQ,UACV,MAAM,kBACE,GAAG,CAAC,MAAM,CAAC,gBACb,IAAI,KACnB,IAAI;0CAuCK,IAAI,YACF,QAAQ,KACnB,IAAI;;;;EAkgDV"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
2
|
import "../../alpha-Byel9eTg.js";
|
|
3
|
-
import { n as componentDefinition, t as AngularBlur_default } from "../../AngularBlur-
|
|
3
|
+
import { n as componentDefinition, t as AngularBlur_default } from "../../AngularBlur-m_DWR-a1.js";
|
|
4
4
|
export { componentDefinition, AngularBlur_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import "../../colorMixing-
|
|
4
|
-
import { n as componentDefinition, t as Aurora_default } from "../../Aurora-
|
|
3
|
+
import "../../colorMixing-D_wMclqL.js";
|
|
4
|
+
import { n as componentDefinition, t as Aurora_default } from "../../Aurora-CYCPE1wp.js";
|
|
5
5
|
export { componentDefinition, Aurora_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import "../../colorMixing-
|
|
3
|
-
import { n as componentDefinition, t as Beam_default } from "../../Beam-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
|
+
import "../../colorMixing-D_wMclqL.js";
|
|
3
|
+
import { n as componentDefinition, t as Beam_default } from "../../Beam-COjEb2JI.js";
|
|
4
4
|
export { componentDefinition, Beam_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import "../../colorMixing-
|
|
4
|
-
import { n as componentDefinition, t as Blob_default } from "../../Blob-
|
|
3
|
+
import "../../colorMixing-D_wMclqL.js";
|
|
4
|
+
import { n as componentDefinition, t as Blob_default } from "../../Blob-jHnoxt2N.js";
|
|
5
5
|
export { componentDefinition, Blob_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
|
-
import "../../transformations-
|
|
2
|
+
import "../../transformations-B5lM6fYX.js";
|
|
3
3
|
import "../../alpha-Byel9eTg.js";
|
|
4
|
-
import { n as componentDefinition, t as Bulge_default } from "../../Bulge-
|
|
4
|
+
import { n as componentDefinition, t as Bulge_default } from "../../Bulge-CsNj4Jew.js";
|
|
5
5
|
export { componentDefinition, Bulge_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import "../../colorMixing-
|
|
3
|
-
import { n as componentDefinition, t as Checkerboard_default } from "../../Checkerboard-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
|
+
import "../../colorMixing-D_wMclqL.js";
|
|
3
|
+
import { n as componentDefinition, t as Checkerboard_default } from "../../Checkerboard-DwiW08iJ.js";
|
|
4
4
|
export { componentDefinition, Checkerboard_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as ChromaFlow_default } from "../../ChromaFlow-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
|
+
import { n as componentDefinition, t as ChromaFlow_default } from "../../ChromaFlow-DfP9ZDg0.js";
|
|
3
3
|
export { componentDefinition, ChromaFlow_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
2
|
import "../../alpha-Byel9eTg.js";
|
|
3
|
-
import { n as componentDefinition, t as ChromaticAberration_default } from "../../ChromaticAberration-
|
|
3
|
+
import { n as componentDefinition, t as ChromaticAberration_default } from "../../ChromaticAberration-VL5tfOeo.js";
|
|
4
4
|
export { componentDefinition, ChromaticAberration_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import "../../colorMixing-
|
|
3
|
-
import { n as componentDefinition, t as Circle_default } from "../../Circle-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
|
+
import "../../colorMixing-D_wMclqL.js";
|
|
3
|
+
import { n as componentDefinition, t as Circle_default } from "../../Circle-CUYMdgd5.js";
|
|
4
4
|
export { componentDefinition, Circle_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
|
-
import "../../transformations-
|
|
2
|
+
import "../../transformations-B5lM6fYX.js";
|
|
3
3
|
import "../../time-BZqyVJXt.js";
|
|
4
4
|
import "../../alpha-Byel9eTg.js";
|
|
5
|
-
import { n as componentDefinition, t as ConcentricSpin_default } from "../../ConcentricSpin-
|
|
5
|
+
import { n as componentDefinition, t as ConcentricSpin_default } from "../../ConcentricSpin-DBqXmCjg.js";
|
|
6
6
|
export { componentDefinition, ConcentricSpin_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as ContourLines_default } from "../../ContourLines-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
|
+
import { n as componentDefinition, t as ContourLines_default } from "../../ContourLines-D2KRIOBw.js";
|
|
3
3
|
export { componentDefinition, ContourLines_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
|
-
import "../../transformations-
|
|
2
|
+
import "../../transformations-B5lM6fYX.js";
|
|
3
3
|
import "../../alpha-Byel9eTg.js";
|
|
4
|
-
import { n as componentDefinition, t as CursorRipples_default } from "../../CursorRipples-
|
|
4
|
+
import { n as componentDefinition, t as CursorRipples_default } from "../../CursorRipples-JWrDL_dU.js";
|
|
5
5
|
export { componentDefinition, CursorRipples_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import "../../colorMixing-
|
|
3
|
-
import { n as componentDefinition, t as CursorTrail_default } from "../../CursorTrail
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
|
+
import "../../colorMixing-D_wMclqL.js";
|
|
3
|
+
import { n as componentDefinition, t as CursorTrail_default } from "../../CursorTrail-D2_14ZEz.js";
|
|
4
4
|
export { componentDefinition, CursorTrail_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
|
-
import "../../transformations-
|
|
2
|
+
import "../../transformations-B5lM6fYX.js";
|
|
3
3
|
import "../../alpha-Byel9eTg.js";
|
|
4
|
-
import { n as componentDefinition, t as DiffuseBlur_default } from "../../DiffuseBlur-
|
|
4
|
+
import { n as componentDefinition, t as DiffuseBlur_default } from "../../DiffuseBlur-siJmc-84.js";
|
|
5
5
|
export { componentDefinition, DiffuseBlur_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
2
|
import "../../alpha-Byel9eTg.js";
|
|
3
|
-
import { n as componentDefinition, t as Dither_default } from "../../Dither-
|
|
3
|
+
import { n as componentDefinition, t as Dither_default } from "../../Dither-GoyNQ4_v.js";
|
|
4
4
|
export { componentDefinition, Dither_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as DotGrid_default } from "../../DotGrid-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
|
+
import { n as componentDefinition, t as DotGrid_default } from "../../DotGrid-B8bSufr6.js";
|
|
3
3
|
export { componentDefinition, DotGrid_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
2
|
import "../../alpha-Byel9eTg.js";
|
|
3
|
-
import "../../colorMixing-
|
|
4
|
-
import { n as componentDefinition, t as Duotone_default } from "../../Duotone-
|
|
3
|
+
import "../../colorMixing-D_wMclqL.js";
|
|
4
|
+
import { n as componentDefinition, t as Duotone_default } from "../../Duotone-CRiDL3YN.js";
|
|
5
5
|
export { componentDefinition, Duotone_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import { n as componentDefinition, t as FloatingParticles_default } from "../../FloatingParticles-
|
|
3
|
+
import { n as componentDefinition, t as FloatingParticles_default } from "../../FloatingParticles-CtrWM2rw.js";
|
|
4
4
|
export { componentDefinition, FloatingParticles_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
|
-
import "../../transformations-
|
|
2
|
+
import "../../transformations-B5lM6fYX.js";
|
|
3
3
|
import "../../time-BZqyVJXt.js";
|
|
4
4
|
import "../../alpha-Byel9eTg.js";
|
|
5
|
-
import { n as componentDefinition, t as FlowField_default } from "../../FlowField-
|
|
5
|
+
import { n as componentDefinition, t as FlowField_default } from "../../FlowField-B-sNApu9.js";
|
|
6
6
|
export { componentDefinition, FlowField_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import { n as componentDefinition, t as Godrays_default } from "../../Godrays-
|
|
3
|
+
import { n as componentDefinition, t as Godrays_default } from "../../Godrays-BV94FCDI.js";
|
|
4
4
|
export { componentDefinition, Godrays_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as Grid_default } from "../../Grid-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
|
+
import { n as componentDefinition, t as Grid_default } from "../../Grid-Czxa6-My.js";
|
|
3
3
|
export { componentDefinition, Grid_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
|
-
import "../../transformations-
|
|
2
|
+
import "../../transformations-B5lM6fYX.js";
|
|
3
3
|
import "../../alpha-Byel9eTg.js";
|
|
4
|
-
import { n as componentDefinition, t as GridDistortion_default } from "../../GridDistortion-
|
|
4
|
+
import { n as componentDefinition, t as GridDistortion_default } from "../../GridDistortion-CKhOZRpM.js";
|
|
5
5
|
export { componentDefinition, GridDistortion_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../transformations-
|
|
2
|
-
import { n as componentDefinition, t as Halftone_default } from "../../Halftone-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
|
+
import { n as componentDefinition, t as Halftone_default } from "../../Halftone-YTJAc3Ie.js";
|
|
3
3
|
export { componentDefinition, Halftone_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
|
-
import "../../transformations-
|
|
2
|
+
import "../../transformations-B5lM6fYX.js";
|
|
3
3
|
import "../../alpha-Byel9eTg.js";
|
|
4
|
-
import { n as componentDefinition, t as Kaleidoscope_default } from "../../Kaleidoscope-
|
|
4
|
+
import { n as componentDefinition, t as Kaleidoscope_default } from "../../Kaleidoscope-BDTIWTFC.js";
|
|
5
5
|
export { componentDefinition, Kaleidoscope_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../transformations-
|
|
1
|
+
import "../../transformations-B5lM6fYX.js";
|
|
2
2
|
import "../../time-BZqyVJXt.js";
|
|
3
|
-
import { n as componentDefinition, t as LensFlare_default } from "../../LensFlare-
|
|
3
|
+
import { n as componentDefinition, t as LensFlare_default } from "../../LensFlare-CxyJBEvr.js";
|
|
4
4
|
export { componentDefinition, LensFlare_default as default };
|