shaders 2.2.14 → 2.2.15
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-BTUdXC0g.js → AngularBlur-ClvtyURQ.js} +12 -13
- package/dist/core/{Ascii-Bu8ii7oo.js → Ascii-BT0-K_vw.js} +28 -29
- package/dist/core/{Blob-CzWSpVTR.js → Blob-BlQ_1T_8.js} +12 -13
- package/dist/core/{Blur-BzUO9yxF.js → Blur-421AjWLH.js} +8 -9
- package/dist/core/{Bulge-BCXYAzig.js → Bulge-CZRVoR6C.js} +6 -7
- package/dist/core/{CRTScreen-cJ3XHrI9.js → CRTScreen-C_U9g_IR.js} +8 -9
- package/dist/core/{ChannelBlur-BEK1qzGn.js → ChannelBlur-5pzcB6Zv.js} +4 -5
- package/dist/core/{Checkerboard-B8CnUlbi.js → Checkerboard-CrQkqXhD.js} +10 -11
- package/dist/core/{ChromaFlow-AHO3C4o3.js → ChromaFlow-CNrQdL8f.js} +16 -17
- package/dist/core/{ChromaticAberration-nVg3r1FK.js → ChromaticAberration-D9H7O17Y.js} +6 -7
- package/dist/core/{Circle-C8ltF4BZ.js → Circle-DnLaDn8V.js} +7 -8
- package/dist/core/{CursorTrail-BcaRHjU5.js → CursorTrail-NY6n97VG.js} +19 -20
- package/dist/core/{DiffuseBlur-Dq_vFrB1.js → DiffuseBlur-C_n01ABk.js} +11 -12
- package/dist/core/{Dither-CpN3vGSh.js → Dither-4s-c4zh4.js} +6 -7
- package/dist/core/{DotGrid-BFUzeSQw.js → DotGrid-BYl8XdMi.js} +9 -10
- package/dist/core/{Duotone-DGNEAlye.js → Duotone-DbewOoB4.js} +12 -13
- package/dist/core/{FilmGrain-BAKXXtLg.js → FilmGrain-zA_-knOw.js} +7 -8
- package/dist/core/{FloatingParticles-Fv8JIzKk.js → FloatingParticles-BhVnqMsE.js} +22 -23
- package/dist/core/{GlassTiles-5MyBj1ff.js → GlassTiles-CFI57glh.js} +7 -8
- package/dist/core/{Glow-DvJj7BB7.js → Glow-CQgl3IoS.js} +10 -11
- package/dist/core/{Godrays-D3VnYrAm.js → Godrays-BBCtZxbv.js} +18 -19
- package/dist/core/{Grayscale-oWIF3PV5.js → Grayscale-CAEFLteL.js} +9 -10
- package/dist/core/{Grid-Bov7AA9m.js → Grid-DlM-rVbZ.js} +5 -6
- package/dist/core/{GridDistortion-CWYom5Dw.js → GridDistortion-ZOZphSAT.js} +29 -30
- package/dist/core/{Group-CPk-7fiA.js → Group-BQAs3RiH.js} +7 -8
- package/dist/core/{Halftone-F7fsdu7W.js → Halftone-ci4ga-_J.js} +8 -9
- package/dist/core/{HueShift-CiS4hdtk.js → HueShift-CyxzPcJV.js} +11 -12
- package/dist/core/{ImageTexture-B3Q29OHX.js → ImageTexture-CdAGsPuH.js} +18 -20
- package/dist/core/{Invert-Cyc4JHWc.js → Invert-iPsiIqNZ.js} +7 -8
- package/dist/core/{LinearBlur-BTC54qzk.js → LinearBlur-BEaaoIk-.js} +13 -14
- package/dist/core/{LinearGradient-DPe-Z-lw.js → LinearGradient-DR_7RxLX.js} +10 -11
- package/dist/core/{Liquify-D2nzMDzq.js → Liquify-Bi02_ugh.js} +33 -34
- package/dist/core/{Pixelate-irPzmtQm.js → Pixelate-CSsdT1rr.js} +4 -5
- package/dist/core/{PolarCoordinates-Ck5ZWrQO.js → PolarCoordinates-D626ml58.js} +10 -11
- package/dist/core/{Posterize-DICq_t96.js → Posterize-DhZkMaC7.js} +8 -10
- package/dist/core/{ProgressiveBlur-BuORe3VH.js → ProgressiveBlur-CGtCfLF8.js} +16 -17
- package/dist/core/{RadialGradient-CbaCbOJj.js → RadialGradient-C0_WzmbH.js} +13 -14
- package/dist/core/{RectangularCoordinates-1LIDaeHR.js → RectangularCoordinates-DfXw7fhI.js} +6 -7
- package/dist/core/{Ripples-0Ufm3-fY.js → Ripples-DkemN3eh.js} +9 -10
- package/dist/core/{Saturation-DbSXtSeK.js → Saturation-Dup81Pnq.js} +7 -8
- package/dist/core/{SimplexNoise-BKB94dhx.js → SimplexNoise-BYEiCjDj.js} +9 -10
- package/dist/core/{SineWave-CkWtnzHF.js → SineWave-C6MRPtsy.js} +9 -10
- package/dist/core/{SolidColor-DaB-FHNX.js → SolidColor-BZHRczgb.js} +1 -1
- package/dist/core/{Spherize-CqjZj4yV.js → Spherize-DOAnDx2l.js} +13 -14
- package/dist/core/{Spiral-BkzSmPUL.js → Spiral-BMjnWXh1.js} +11 -12
- package/dist/core/{Strands-DyrV6zDO.js → Strands-BOVsuJLe.js} +14 -15
- package/dist/core/{Stretch-DeBlJ-NH.js → Stretch-D6bHc6yp.js} +13 -14
- package/dist/core/{Swirl-BHn9Ji7_.js → Swirl-BFoc0ImG.js} +14 -15
- package/dist/core/{TiltShift-DiArippe.js → TiltShift-BiNvvhzj.js} +14 -15
- package/dist/core/{Tritone-DrzxJUaq.js → Tritone-gdx2AA0m.js} +9 -10
- package/dist/core/{Twirl-C6xj1p52.js → Twirl-BsV8YbqC.js} +8 -9
- package/dist/core/{Vibrance-C6lNgpWH.js → Vibrance-C182fbSw.js} +5 -6
- package/dist/core/{WaveDistortion-DcXxPZ2w.js → WaveDistortion-CmaS2zDB.js} +12 -13
- package/dist/core/{ZoomBlur-_feIVJs6.js → ZoomBlur-DLf5xQ16.js} +10 -11
- package/dist/core/{colorMixing-C-FChLp0.js → colorMixing--dhzx0ch.js} +10 -11
- package/dist/core/edges-CDzKsauJ.js +15 -0
- package/dist/core/index.js +636 -684
- package/dist/core/renderer.d.ts.map +1 -1
- package/dist/core/shaders/AngularBlur/index.js +3 -3
- package/dist/core/shaders/Ascii/index.js +2 -2
- package/dist/core/shaders/Blob/index.js +5 -5
- package/dist/core/shaders/Blur/index.js +2 -2
- package/dist/core/shaders/Bulge/index.js +4 -4
- package/dist/core/shaders/CRTScreen/index.js +2 -2
- package/dist/core/shaders/ChannelBlur/index.js +2 -2
- package/dist/core/shaders/Checkerboard/index.js +4 -4
- package/dist/core/shaders/ChromaFlow/index.js +3 -3
- package/dist/core/shaders/ChromaticAberration/index.js +3 -3
- package/dist/core/shaders/Circle/index.js +3 -3
- package/dist/core/shaders/CursorTrail/index.js +4 -4
- package/dist/core/shaders/DiffuseBlur/index.js +4 -4
- package/dist/core/shaders/Dither/index.js +3 -3
- package/dist/core/shaders/DotGrid/index.js +3 -3
- package/dist/core/shaders/Duotone/index.js +4 -4
- package/dist/core/shaders/FilmGrain/index.js +2 -2
- package/dist/core/shaders/FloatingParticles/index.js +3 -3
- package/dist/core/shaders/GlassTiles/index.js +2 -2
- package/dist/core/shaders/Glow/index.js +2 -2
- package/dist/core/shaders/Godrays/index.js +3 -3
- package/dist/core/shaders/Grayscale/index.js +2 -2
- package/dist/core/shaders/Grid/index.js +3 -3
- package/dist/core/shaders/GridDistortion/index.js +4 -4
- package/dist/core/shaders/Group/index.js +2 -2
- package/dist/core/shaders/Halftone/index.js +3 -3
- package/dist/core/shaders/HueShift/index.js +2 -2
- package/dist/core/shaders/ImageTexture/index.js +2 -2
- package/dist/core/shaders/Invert/index.js +2 -2
- package/dist/core/shaders/LinearBlur/index.js +3 -3
- package/dist/core/shaders/LinearGradient/index.js +4 -4
- package/dist/core/shaders/Liquify/index.js +4 -4
- package/dist/core/shaders/Pixelate/index.js +2 -2
- package/dist/core/shaders/PolarCoordinates/index.js +4 -4
- package/dist/core/shaders/Posterize/index.js +2 -2
- package/dist/core/shaders/ProgressiveBlur/index.js +3 -3
- package/dist/core/shaders/RadialGradient/index.js +4 -4
- package/dist/core/shaders/RectangularCoordinates/index.js +4 -4
- package/dist/core/shaders/Ripples/index.js +5 -5
- package/dist/core/shaders/Saturation/index.js +2 -2
- package/dist/core/shaders/SimplexNoise/index.js +5 -5
- package/dist/core/shaders/SineWave/index.js +3 -3
- package/dist/core/shaders/SolidColor/index.js +3 -3
- package/dist/core/shaders/Spherize/index.js +3 -3
- package/dist/core/shaders/Spiral/index.js +4 -4
- package/dist/core/shaders/Strands/index.js +4 -4
- package/dist/core/shaders/Stretch/index.js +4 -4
- package/dist/core/shaders/Swirl/index.js +5 -5
- package/dist/core/shaders/TiltShift/index.js +3 -3
- package/dist/core/shaders/Tritone/index.js +4 -4
- package/dist/core/shaders/Twirl/index.js +4 -4
- package/dist/core/shaders/Vibrance/index.js +2 -2
- package/dist/core/shaders/WaveDistortion/index.js +4 -4
- package/dist/core/shaders/ZoomBlur/index.js +3 -3
- package/dist/core/three.tsl-Btj1hLsf.js +43845 -0
- package/dist/core/{time-5uQ65blS.js → time-DbRMw6Jm.js} +4 -5
- package/dist/core/{transformations-DBjTkQ5b.js → transformations-CsrIJXh-.js} +176 -177
- package/dist/react/index.cjs +83 -79
- package/dist/react/index.js +50779 -50512
- package/dist/svelte/index.js +50786 -50519
- package/dist/vue/index.js +50430 -50163
- package/package.json +1 -1
- package/dist/core/edges-B-tVdqcI.js +0 -16
- package/dist/core/three.tsl-BqgDcRt9.js +0 -43424
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
3
|
-
|
|
4
|
-
const E = {
|
|
1
|
+
import { O as M } from "./three.tsl-Btj1hLsf.js";
|
|
2
|
+
import { n as U, o as O } from "./transformations-CsrIJXh-.js";
|
|
3
|
+
const j = {
|
|
5
4
|
name: "ProgressiveBlur",
|
|
6
5
|
category: "Blurs",
|
|
7
6
|
description: "Blur that increases progressively in one direction",
|
|
@@ -21,7 +20,7 @@ const E = {
|
|
|
21
20
|
},
|
|
22
21
|
angle: {
|
|
23
22
|
default: 0,
|
|
24
|
-
transform:
|
|
23
|
+
transform: U,
|
|
25
24
|
description: "Direction of the blur gradient (in degrees)",
|
|
26
25
|
ui: {
|
|
27
26
|
type: "range",
|
|
@@ -36,7 +35,7 @@ const E = {
|
|
|
36
35
|
x: 0,
|
|
37
36
|
y: 0.5
|
|
38
37
|
},
|
|
39
|
-
transform:
|
|
38
|
+
transform: O,
|
|
40
39
|
description: "Center point where blur begins",
|
|
41
40
|
ui: {
|
|
42
41
|
type: "position",
|
|
@@ -56,13 +55,13 @@ const E = {
|
|
|
56
55
|
}
|
|
57
56
|
},
|
|
58
57
|
fragmentNode: ({ uniforms: r, childNode: g, onCleanup: h }) => {
|
|
59
|
-
const { vec2:
|
|
60
|
-
if (!g) return
|
|
58
|
+
const { vec2: o, vec4: s, float: e, screenUV: i, viewportSize: x, sin: C, cos: D, radians: P, max: v, smoothstep: S, Fn: y, convertToTexture: b } = M;
|
|
59
|
+
if (!g) return s(0, 0, 0, 0);
|
|
61
60
|
const a = b(g);
|
|
62
61
|
h(() => {
|
|
63
62
|
a?.renderTarget?.dispose && a.renderTarget.dispose();
|
|
64
63
|
});
|
|
65
|
-
const T =
|
|
64
|
+
const T = P(r.angle.uniform), V = o(D(T), C(T)), A = o(r.center.uniform[0], r.center.uniform[1].oneMinus()), R = i.sub(A), _ = v(e(0), R.dot(V)), q = v(e(1e-3), r.falloff.uniform), F = S(e(0), q, _), I = r.intensity.uniform.mul(0.06), w = F.mul(I), z = [
|
|
66
65
|
0.056,
|
|
67
66
|
0.135,
|
|
68
67
|
0.278,
|
|
@@ -76,10 +75,10 @@ const E = {
|
|
|
76
75
|
0.278,
|
|
77
76
|
0.135,
|
|
78
77
|
0.056
|
|
79
|
-
],
|
|
80
|
-
const c = i, u =
|
|
78
|
+
], B = 6.214, l = b(y(() => {
|
|
79
|
+
const c = i, u = o(1).div(x), n = s(0).toVar();
|
|
81
80
|
for (let t = -6; t <= 6; t++) {
|
|
82
|
-
const d = e(
|
|
81
|
+
const d = e(z[t + 6] / B), f = o(e(t), e(0)).mul(w).mul(u), m = c.add(f), p = a.sample(m).mul(d);
|
|
83
82
|
n.assign(n.add(p));
|
|
84
83
|
}
|
|
85
84
|
return n;
|
|
@@ -87,17 +86,17 @@ const E = {
|
|
|
87
86
|
return h(() => {
|
|
88
87
|
l?.renderTarget?.dispose && l.renderTarget.dispose();
|
|
89
88
|
}), y(() => {
|
|
90
|
-
const c = i, u =
|
|
89
|
+
const c = i, u = o(1).div(x), n = s(0).toVar();
|
|
91
90
|
for (let t = -6; t <= 6; t++) {
|
|
92
|
-
const d = e(
|
|
91
|
+
const d = e(z[t + 6] / B), f = o(e(0), e(t)).mul(w).mul(u), m = c.add(f), p = l.sample(m).mul(d);
|
|
93
92
|
n.assign(n.add(p));
|
|
94
93
|
}
|
|
95
94
|
return n;
|
|
96
95
|
})();
|
|
97
96
|
}
|
|
98
97
|
};
|
|
99
|
-
var
|
|
98
|
+
var G = j;
|
|
100
99
|
export {
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
j as n,
|
|
101
|
+
G as t
|
|
103
102
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as
|
|
3
|
-
import { t as
|
|
4
|
-
|
|
5
|
-
const y = {
|
|
1
|
+
import { O as d } from "./three.tsl-Btj1hLsf.js";
|
|
2
|
+
import { i as f, o as m, r as n, t as u } from "./transformations-CsrIJXh-.js";
|
|
3
|
+
import { t as g } from "./colorMixing--dhzx0ch.js";
|
|
4
|
+
const h = {
|
|
6
5
|
name: "RadialGradient",
|
|
7
6
|
category: "Base Layers",
|
|
8
7
|
description: "Radial gradient radiating from a center point",
|
|
@@ -31,7 +30,7 @@ const y = {
|
|
|
31
30
|
x: 0.5,
|
|
32
31
|
y: 0.5
|
|
33
32
|
},
|
|
34
|
-
transform:
|
|
33
|
+
transform: m,
|
|
35
34
|
description: "The center point of the radial gradient",
|
|
36
35
|
ui: {
|
|
37
36
|
type: "position",
|
|
@@ -51,22 +50,22 @@ const y = {
|
|
|
51
50
|
},
|
|
52
51
|
colorSpace: {
|
|
53
52
|
default: "linear",
|
|
54
|
-
transform:
|
|
53
|
+
transform: f,
|
|
55
54
|
description: "Color space for color interpolation",
|
|
56
55
|
ui: {
|
|
57
56
|
type: "select",
|
|
58
|
-
options:
|
|
57
|
+
options: u,
|
|
59
58
|
label: "Color Space"
|
|
60
59
|
}
|
|
61
60
|
}
|
|
62
61
|
},
|
|
63
|
-
fragmentNode: ({ uniforms:
|
|
64
|
-
const { vec2:
|
|
65
|
-
return
|
|
62
|
+
fragmentNode: ({ uniforms: o, uvContext: l }) => {
|
|
63
|
+
const { vec2: e, float: t, distance: c, screenUV: s, viewportSize: r } = d, a = l ?? s, i = r.x.div(r.y), p = c(e(a.x.mul(i), a.y), e(o.center.uniform.x.mul(i), o.center.uniform.y.oneMinus())).div(o.radius.uniform).clamp(t(0), t(1));
|
|
64
|
+
return g(o.colorA.uniform, o.colorB.uniform, p, o.colorSpace.uniform);
|
|
66
65
|
}
|
|
67
66
|
};
|
|
68
|
-
var
|
|
67
|
+
var v = h;
|
|
69
68
|
export {
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
h as n,
|
|
70
|
+
v as t
|
|
72
71
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { a as
|
|
4
|
-
T();
|
|
1
|
+
import { O as x } from "./three.tsl-Btj1hLsf.js";
|
|
2
|
+
import { t as T } from "./edges-CDzKsauJ.js";
|
|
3
|
+
import { a as C, o as P } from "./transformations-CsrIJXh-.js";
|
|
5
4
|
const w = {
|
|
6
5
|
name: "RectangularCoordinates",
|
|
7
6
|
category: "Distortions",
|
|
@@ -14,7 +13,7 @@ const w = {
|
|
|
14
13
|
x: 0.5,
|
|
15
14
|
y: 0.5
|
|
16
15
|
},
|
|
17
|
-
transform:
|
|
16
|
+
transform: P,
|
|
18
17
|
description: "The center point for rectangular coordinate conversion",
|
|
19
18
|
ui: {
|
|
20
19
|
type: "position",
|
|
@@ -46,7 +45,7 @@ const w = {
|
|
|
46
45
|
edges: {
|
|
47
46
|
default: "transparent",
|
|
48
47
|
description: "How to handle edges when distortion pushes content out of bounds",
|
|
49
|
-
transform:
|
|
48
|
+
transform: C,
|
|
50
49
|
ui: {
|
|
51
50
|
type: "select",
|
|
52
51
|
options: [
|
|
@@ -83,7 +82,7 @@ const w = {
|
|
|
83
82
|
r?.renderTarget?.dispose && r.renderTarget.dispose();
|
|
84
83
|
});
|
|
85
84
|
const s = o.x.mul(u.mul(2)).sub(u), f = o.y.mul(e.scale.uniform), b = f.mul(p(s)), v = f.mul(c(s)), h = a.x.div(a.y), g = n(e.center.uniform.x, e.center.uniform.y.oneMinus()), y = m(o, n(b.div(h).add(g.x), v.add(g.y)), e.intensity.uniform);
|
|
86
|
-
return
|
|
85
|
+
return T(y, r.sample(y), r, e.edges.uniform);
|
|
87
86
|
}
|
|
88
87
|
};
|
|
89
88
|
var R = w;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { o as
|
|
4
|
-
import { t as q } from "./colorMixing
|
|
5
|
-
A();
|
|
1
|
+
import { O as T, d as w } from "./three.tsl-Btj1hLsf.js";
|
|
2
|
+
import { t as A } from "./time-DbRMw6Jm.js";
|
|
3
|
+
import { o as S, r as l } from "./transformations-CsrIJXh-.js";
|
|
4
|
+
import { t as q } from "./colorMixing--dhzx0ch.js";
|
|
6
5
|
const P = {
|
|
7
6
|
name: "Ripples",
|
|
8
7
|
category: "Base Layers",
|
|
@@ -14,7 +13,7 @@ const P = {
|
|
|
14
13
|
x: 0.5,
|
|
15
14
|
y: 0.5
|
|
16
15
|
},
|
|
17
|
-
transform:
|
|
16
|
+
transform: S,
|
|
18
17
|
description: "The center point where ripples emanate from",
|
|
19
18
|
ui: {
|
|
20
19
|
type: "position",
|
|
@@ -96,12 +95,12 @@ const P = {
|
|
|
96
95
|
}
|
|
97
96
|
},
|
|
98
97
|
fragmentNode: (o) => {
|
|
99
|
-
const { uniforms: e, uvContext: f } = o, { vec2: t, float: s, screenUV: m, sin: u, distance: d, viewportSize: n, smoothstep: h } =
|
|
100
|
-
return q(b, y, h(c.add(a), c.sub(a), B),
|
|
98
|
+
const { uniforms: e, uvContext: f } = o, { vec2: t, float: s, screenUV: m, sin: u, distance: d, viewportSize: n, smoothstep: h } = T, r = f ?? m, i = e.center.uniform, y = e.colorA.uniform, b = e.colorB.uniform, x = e.frequency.uniform, a = e.softness.uniform, g = e.thickness.uniform, C = e.phase.uniform, p = n.x.div(n.y), v = d(t(r.x.mul(p), r.y), t(i.x.mul(p), i.y.oneMinus())), k = A(o, e.speed), B = u(v.mul(x).sub(k).add(C)), c = g.mul(s(2)).sub(s(1));
|
|
99
|
+
return q(b, y, h(c.add(a), c.sub(a), B), w(0));
|
|
101
100
|
}
|
|
102
101
|
};
|
|
103
|
-
var
|
|
102
|
+
var V = P;
|
|
104
103
|
export {
|
|
105
104
|
P as n,
|
|
106
|
-
|
|
105
|
+
V as t
|
|
107
106
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as
|
|
3
|
-
|
|
4
|
-
const a = {
|
|
1
|
+
import { O as o } from "./three.tsl-Btj1hLsf.js";
|
|
2
|
+
import { r as i } from "./ColorAdjustment-CKwpE_4M.js";
|
|
3
|
+
const s = {
|
|
5
4
|
name: "Saturation",
|
|
6
5
|
category: "Adjustments",
|
|
7
6
|
description: "Adjust color saturation intensity",
|
|
@@ -22,11 +21,11 @@ const a = {
|
|
|
22
21
|
if (!e)
|
|
23
22
|
return console.error("You must pass a child component into the Saturation shader."), t(0);
|
|
24
23
|
const n = e || t(0, 0, 0, 0);
|
|
25
|
-
return t(
|
|
24
|
+
return t(i(n.rgb, r.intensity.uniform).rgb, n.a);
|
|
26
25
|
}
|
|
27
26
|
};
|
|
28
|
-
var
|
|
27
|
+
var c = s;
|
|
29
28
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
s as n,
|
|
30
|
+
c as t
|
|
32
31
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { r as n } from "./transformations-
|
|
4
|
-
import { t as
|
|
5
|
-
v();
|
|
1
|
+
import { A as f, N as r, a as u, d as x, j as g, u as v, v as y, x as b } from "./three.tsl-Btj1hLsf.js";
|
|
2
|
+
import { t as C } from "./time-DbRMw6Jm.js";
|
|
3
|
+
import { r as n } from "./transformations-CsrIJXh-.js";
|
|
4
|
+
import { t as A } from "./colorMixing--dhzx0ch.js";
|
|
6
5
|
const B = {
|
|
7
6
|
name: "SimplexNoise",
|
|
8
7
|
category: "Base Layers",
|
|
@@ -83,13 +82,13 @@ const B = {
|
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
84
|
},
|
|
86
|
-
fragmentNode: (
|
|
87
|
-
const { uniforms: e, uvContext: i } =
|
|
88
|
-
return
|
|
85
|
+
fragmentNode: (o) => {
|
|
86
|
+
const { uniforms: e, uvContext: i } = o, t = i ?? b, s = r.x.div(r.y), l = f(t.x.mul(s), t.y), c = C(o, e.speed), a = l.mul(v(e.scale.uniform)).add(e.seed.uniform), m = y(g(a.x, a.y, c.mul(0.5))), p = e.contrast.uniform.add(1), d = u(0, 1, m.mul(p).add(e.balance.uniform).mul(0.5).add(0.5));
|
|
87
|
+
return A(e.colorB.uniform, e.colorA.uniform, d, x(0));
|
|
89
88
|
}
|
|
90
89
|
};
|
|
91
|
-
var
|
|
90
|
+
var U = B;
|
|
92
91
|
export {
|
|
93
92
|
B as n,
|
|
94
|
-
|
|
93
|
+
U as t
|
|
95
94
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as V, o as W, r as
|
|
3
|
-
|
|
4
|
-
const M = {
|
|
1
|
+
import { O as U } from "./three.tsl-Btj1hLsf.js";
|
|
2
|
+
import { n as V, o as W, r as _ } from "./transformations-CsrIJXh-.js";
|
|
3
|
+
const F = {
|
|
5
4
|
name: "SineWave",
|
|
6
5
|
category: "Base Layers",
|
|
7
6
|
description: "Animated wave with thickness and softness",
|
|
@@ -9,7 +8,7 @@ const M = {
|
|
|
9
8
|
props: {
|
|
10
9
|
color: {
|
|
11
10
|
default: "#ffffff",
|
|
12
|
-
transform:
|
|
11
|
+
transform: _,
|
|
13
12
|
description: "The color of the sine wave",
|
|
14
13
|
ui: {
|
|
15
14
|
type: "color",
|
|
@@ -97,12 +96,12 @@ const M = {
|
|
|
97
96
|
}
|
|
98
97
|
},
|
|
99
98
|
fragmentNode: ({ uniforms: e, uvContext: p }) => {
|
|
100
|
-
const { vec2: n, vec4: d, sin:
|
|
101
|
-
return d(e.color.uniform.rgb, e.color.uniform.a.mul(
|
|
99
|
+
const { vec2: n, vec4: d, sin: o, cos: f, abs: h, smoothstep: y, screenUV: g, viewportSize: s, time: v, radians: b, PI: x } = U, a = p ?? g, i = s.x.div(s.y), w = n(a.x.mul(i), a.y), T = n(e.position.uniform.x.mul(i), e.position.uniform.y.oneMinus()), t = w.sub(T), r = b(e.angle.uniform), l = f(r), c = o(r), k = t.x.mul(l).sub(t.y.mul(c)), A = t.x.mul(c).add(t.y.mul(l)), S = v.mul(e.speed.uniform), q = o(k.mul(e.frequency.uniform).mul(x.mul(2)).add(S)).mul(e.amplitude.uniform), C = h(A.sub(q)), m = e.thickness.uniform.mul(0.5), u = e.softness.uniform.mul(0.5), P = y(m.add(u), m.sub(u), C);
|
|
100
|
+
return d(e.color.uniform.rgb, e.color.uniform.a.mul(P));
|
|
102
101
|
}
|
|
103
102
|
};
|
|
104
|
-
var
|
|
103
|
+
var B = F;
|
|
105
104
|
export {
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
F as n,
|
|
106
|
+
B as t
|
|
108
107
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as z, r as
|
|
3
|
-
|
|
4
|
-
const X = {
|
|
1
|
+
import { O as K } from "./three.tsl-Btj1hLsf.js";
|
|
2
|
+
import { o as z, r as Q } from "./transformations-CsrIJXh-.js";
|
|
3
|
+
const W = {
|
|
5
4
|
name: "Spherize",
|
|
6
5
|
category: "Distortions",
|
|
7
6
|
description: "Map content onto a 3D sphere surface with depth distortion",
|
|
@@ -78,7 +77,7 @@ const X = {
|
|
|
78
77
|
},
|
|
79
78
|
lightColor: {
|
|
80
79
|
default: "#ffffff",
|
|
81
|
-
transform:
|
|
80
|
+
transform: Q,
|
|
82
81
|
description: "Color of the specular highlight",
|
|
83
82
|
ui: {
|
|
84
83
|
type: "color",
|
|
@@ -86,19 +85,19 @@ const X = {
|
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
87
|
},
|
|
89
|
-
fragmentNode: ({ uniforms: e, childNode:
|
|
90
|
-
const { vec2: o, vec3: l, vec4:
|
|
91
|
-
if (!
|
|
92
|
-
const d = L(
|
|
88
|
+
fragmentNode: ({ uniforms: e, childNode: p, onCleanup: T }) => {
|
|
89
|
+
const { vec2: o, vec3: l, vec4: m, float: t, screenUV: I, convertToTexture: L, viewportSize: g, sqrt: q, max: a, smoothstep: R, pow: y, normalize: u, dot: x } = K;
|
|
90
|
+
if (!p) return m(0, 0, 0, 0);
|
|
91
|
+
const d = L(p);
|
|
93
92
|
T(() => {
|
|
94
93
|
d?.renderTarget?.dispose && d.renderTarget.dispose();
|
|
95
94
|
});
|
|
96
|
-
const b = I, v = g.x.div(g.y), s = o(e.center.uniform.x, e.center.uniform.y.oneMinus()), w = e.radius.uniform, i = o(b.x.sub(s.x).mul(v), b.y.sub(s.y)).mul(2).div(w), C = i.x.mul(i.x).add(i.y.mul(i.y)),
|
|
97
|
-
return
|
|
95
|
+
const b = I, v = g.x.div(g.y), s = o(e.center.uniform.x, e.center.uniform.y.oneMinus()), w = e.radius.uniform, i = o(b.x.sub(s.x).mul(v), b.y.sub(s.y)).mul(2).div(w), C = i.x.mul(i.x).add(i.y.mul(i.y)), U = t(1).sub(R(t(0.98), t(1), C)), D = q(a(t(0), t(1).sub(C))), V = t(1).add(D.mul(e.depth.uniform)), P = i.div(V).mul(w).div(2), M = o(P.x.div(v).add(s.x), P.y.add(s.y)), n = d.sample(M), S = o(e.lightPosition.uniform.x, e.lightPosition.uniform.y.oneMinus()), _ = e.lightIntensity.uniform, A = e.lightSoftness.uniform, c = l(e.lightColor.uniform.x, e.lightColor.uniform.y, e.lightColor.uniform.z), h = u(l(i.x, i.y, D)), B = l(0, 0, 1), F = t(1).add(t(4).mul(t(1).sub(A))), G = y(t(1).sub(a(x(h, B), t(0))), F), H = o(S.x.sub(t(0.5)).mul(2), S.y.sub(t(0.5)).mul(2)), N = u(o(h.x, h.y).add(o(1e-4, 1e-4))), O = u(H.add(o(1e-4, 1e-4))), j = y(a(t(0), x(N, O)), t(2)), f = G.mul(j).mul(_).mul(t(2)), k = n.x.add(c.x.mul(f)), E = n.y.add(c.y.mul(f)), J = n.z.add(c.z.mul(f)), r = n.w.mul(U);
|
|
96
|
+
return m(k.mul(r), E.mul(r), J.mul(r), r);
|
|
98
97
|
}
|
|
99
98
|
};
|
|
100
|
-
var
|
|
99
|
+
var Z = W;
|
|
101
100
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
W as n,
|
|
102
|
+
Z as t
|
|
104
103
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as
|
|
3
|
-
import { t as
|
|
4
|
-
|
|
5
|
-
const q = {
|
|
1
|
+
import { O as L } from "./three.tsl-Btj1hLsf.js";
|
|
2
|
+
import { i as N, o as j, r as g, t as D } from "./transformations-CsrIJXh-.js";
|
|
3
|
+
import { t as I } from "./colorMixing--dhzx0ch.js";
|
|
4
|
+
const R = {
|
|
6
5
|
name: "Spiral",
|
|
7
6
|
category: "Base Layers",
|
|
8
7
|
description: "Rotating spiral pattern with animated movement",
|
|
@@ -75,7 +74,7 @@ const q = {
|
|
|
75
74
|
x: 0.5,
|
|
76
75
|
y: 0.5
|
|
77
76
|
},
|
|
78
|
-
transform:
|
|
77
|
+
transform: j,
|
|
79
78
|
description: "The center point of the spiral",
|
|
80
79
|
ui: {
|
|
81
80
|
type: "position",
|
|
@@ -95,22 +94,22 @@ const q = {
|
|
|
95
94
|
},
|
|
96
95
|
colorSpace: {
|
|
97
96
|
default: "linear",
|
|
98
|
-
transform:
|
|
97
|
+
transform: N,
|
|
99
98
|
description: "Color space for color interpolation",
|
|
100
99
|
ui: {
|
|
101
100
|
type: "select",
|
|
102
|
-
options:
|
|
101
|
+
options: D,
|
|
103
102
|
label: "Color Space"
|
|
104
103
|
}
|
|
105
104
|
}
|
|
106
105
|
},
|
|
107
106
|
fragmentNode: ({ uniforms: e, uvContext: x }) => {
|
|
108
|
-
const { vec2: s, vec4: S, float: a, atan: y, length: k, clamp: o, fract: C, abs: v, mix: w, smoothstep: t, screenUV: W, time:
|
|
107
|
+
const { vec2: s, vec4: S, float: a, atan: y, length: k, clamp: o, fract: C, abs: v, mix: w, smoothstep: t, screenUV: W, time: A, fwidth: n, viewportSize: l } = L, i = x ?? W, c = l.x.div(l.y), B = s(i.x.mul(c), i.y), F = s(e.center.uniform.x.mul(c), e.center.uniform.y.oneMinus()), r = B.sub(F), U = A.mul(e.speed.uniform), p = k(r), V = p, _ = y(r.y, r.x).sub(U), M = a(6.283185307), O = _.div(M), f = V.mul(e.scale.uniform).add(O), d = v(C(f).sub(0.5)).mul(2), P = o(e.strokeWidth.uniform, e.strokeFalloff.uniform.mul(5e-3), 1), T = o(e.strokeFalloff.uniform, 0, 1).mul(p).oneMinus(), m = P.mul(T), u = n(f), h = w(a(4).sub(t(0.05, 0.4, e.strokeWidth.uniform.mul(2)).mul(t(0.05, 0.4, e.strokeWidth.uniform.oneMinus().mul(2))).mul(3)).mul(u), n(d), o(u, 0, 1)), z = t(m.sub(h).sub(e.softness.uniform), m.add(h).add(e.softness.uniform), d), b = I(e.colorA.uniform, e.colorB.uniform, z, e.colorSpace.uniform);
|
|
109
108
|
return S(b.rgb, b.a);
|
|
110
109
|
}
|
|
111
110
|
};
|
|
112
|
-
var
|
|
111
|
+
var H = R;
|
|
113
112
|
export {
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
R as n,
|
|
114
|
+
H as t
|
|
116
115
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { o as V, r as
|
|
4
|
-
|
|
5
|
-
const ie = {
|
|
1
|
+
import { O as te } from "./three.tsl-Btj1hLsf.js";
|
|
2
|
+
import { t as ne } from "./time-DbRMw6Jm.js";
|
|
3
|
+
import { o as V, r as oe } from "./transformations-CsrIJXh-.js";
|
|
4
|
+
const se = {
|
|
6
5
|
name: "Strands",
|
|
7
6
|
category: "Base Layers",
|
|
8
7
|
description: "Procedural wavy strands with layered animation",
|
|
@@ -67,7 +66,7 @@ const ie = {
|
|
|
67
66
|
},
|
|
68
67
|
waveColor: {
|
|
69
68
|
default: "#f1c907",
|
|
70
|
-
transform:
|
|
69
|
+
transform: oe,
|
|
71
70
|
description: "Color of the waves",
|
|
72
71
|
ui: {
|
|
73
72
|
type: "color",
|
|
@@ -108,19 +107,19 @@ const ie = {
|
|
|
108
107
|
}
|
|
109
108
|
},
|
|
110
109
|
fragmentNode: (p) => {
|
|
111
|
-
const { uniforms: e, uvContext:
|
|
110
|
+
const { uniforms: e, uvContext: z } = p, { vec2: i, vec4: a, cos: o, abs: M, smoothstep: d, mix: v, max: U, screenUV: A, viewportSize: y, float: t, Fn: g } = te, D = z ?? A, x = ne(p, e.speed), l = g(([n]) => o(n).add(o(n.mul(1.2).add(1.6))).add(o(n.mul(1.4).add(1.5))).div(3));
|
|
112
111
|
return g(([n]) => {
|
|
113
|
-
const u = y.x.div(y.y), h = i(e.start.uniform.x.mul(u), e.start.uniform.y.oneMinus()),
|
|
112
|
+
const u = y.x.div(y.y), h = i(e.start.uniform.x.mul(u), e.start.uniform.y.oneMinus()), _ = i(e.end.uniform.x.mul(u), e.end.uniform.y.oneMinus()), I = i(n.x.mul(u), n.y), b = _.sub(h), C = b.length(), m = b.div(C), N = i(m.y.negate(), m.x), w = I.sub(h), s = w.dot(m).div(C), O = w.dot(N), S = s.mul(10), R = O.mul(10), k = e.pinEdges.uniform.select(d(t(0), t(0.1), s).mul(d(t(1), t(0.9), s)), t(1)), c = e.pinEdges.uniform.select(o(s.mul(6.28)).mul(0.5).add(0.5).oneMinus(), t(1)), B = o(s.mul(6.28)).mul(0.5).add(0.5).oneMinus(), f = a(0, 0, 0, 0).toVar(), P = e.lineCount.uniform;
|
|
114
113
|
for (let r = 0; r < 32; r++) {
|
|
115
|
-
const j = t(r).lessThan(P), W = t(r), G = W.div(P), H = t(0.5), J = t(1.33), q = x.mul(J), E = W.add(S.mul(H)), F = l(E.add(q)).mul(0.5).add(0.5), L = v(t(0.01), e.lineWidth.uniform, F.mul(c)).mul(0.5), K = t(0.6), Q = t(2), X = l(E.add(q.mul(G.add(1)))).mul(v(K, Q, c)).mul(e.amplitude.uniform), Y = l(S.mul(e.frequency.uniform).add(x)).mul(c).mul(e.amplitude.uniform).add(X), Z =
|
|
116
|
-
f.assign(
|
|
114
|
+
const j = t(r).lessThan(P), W = t(r), G = W.div(P), H = t(0.5), J = t(1.33), q = x.mul(J), E = W.add(S.mul(H)), F = l(E.add(q)).mul(0.5).add(0.5), L = v(t(0.01), e.lineWidth.uniform, F.mul(c)).mul(0.5), K = t(0.6), Q = t(2), X = l(E.add(q.mul(G.add(1)))).mul(v(K, Q, c)).mul(e.amplitude.uniform), Y = l(S.mul(e.frequency.uniform).add(x)).mul(c).mul(e.amplitude.uniform).add(X), Z = M(R.sub(Y)), T = t(0.01), $ = d(L.add(T), L.sub(T), Z), ee = a(e.waveColor.uniform.r, e.waveColor.uniform.g, e.waveColor.uniform.b, $).mul(F);
|
|
115
|
+
f.assign(U(f, j.select(ee, a(0, 0, 0, 0))));
|
|
117
116
|
}
|
|
118
|
-
return f.mul(a(1, 1, 1,
|
|
119
|
-
})(
|
|
117
|
+
return f.mul(a(1, 1, 1, B.mul(k)));
|
|
118
|
+
})(D);
|
|
120
119
|
}
|
|
121
120
|
};
|
|
122
|
-
var
|
|
121
|
+
var de = se;
|
|
123
122
|
export {
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
se as n,
|
|
124
|
+
de as t
|
|
126
125
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { a as
|
|
4
|
-
|
|
5
|
-
const W = {
|
|
1
|
+
import { O as S, a as U, g as C } from "./three.tsl-Btj1hLsf.js";
|
|
2
|
+
import { t as F } from "./edges-CDzKsauJ.js";
|
|
3
|
+
import { a as R, o as W } from "./transformations-CsrIJXh-.js";
|
|
4
|
+
const _ = {
|
|
6
5
|
name: "Stretch",
|
|
7
6
|
category: "Distortions",
|
|
8
7
|
description: "Stretch content towards a direction from a center point",
|
|
@@ -14,7 +13,7 @@ const W = {
|
|
|
14
13
|
x: 0.5,
|
|
15
14
|
y: 0.5
|
|
16
15
|
},
|
|
17
|
-
transform:
|
|
16
|
+
transform: W,
|
|
18
17
|
description: "The center point of the stretch effect",
|
|
19
18
|
ui: {
|
|
20
19
|
type: "position",
|
|
@@ -57,7 +56,7 @@ const W = {
|
|
|
57
56
|
edges: {
|
|
58
57
|
default: "stretch",
|
|
59
58
|
description: "How to handle edges when distortion pushes content out of bounds",
|
|
60
|
-
transform:
|
|
59
|
+
transform: R,
|
|
61
60
|
ui: {
|
|
62
61
|
type: "select",
|
|
63
62
|
options: [
|
|
@@ -83,22 +82,22 @@ const W = {
|
|
|
83
82
|
}
|
|
84
83
|
},
|
|
85
84
|
uvTransformNode: ({ uv: t, uniforms: n, viewportSize: f }) => {
|
|
86
|
-
const { vec2: e, float: o, sin: u, cos: p } =
|
|
85
|
+
const { vec2: e, float: o, sin: u, cos: p } = S, c = f.x.div(f.y), r = e(t.x.mul(c), t.y), m = e(n.center.uniform.x.mul(c), n.center.uniform.y.oneMinus()), h = r.sub(m), s = n.angle.uniform.mul(Math.PI / 180), a = e(p(s), u(s)), i = h.dot(a), g = h.sub(a.mul(i)), v = n.falloff.uniform, x = C(o(1e-3), o(75), v), l = U(i.div(x), o(0), o(1)), d = n.strength.uniform.mul(o(100)), b = o(1).add(d.mul(l)), T = i.div(b), V = a.mul(T).add(g), y = m.add(V);
|
|
87
86
|
return e(y.x.div(c), y.y);
|
|
88
87
|
},
|
|
89
88
|
fragmentNode: ({ uniforms: t, childNode: n, onCleanup: f }) => {
|
|
90
|
-
const { vec2: e, vec4: o, screenUV: u, viewportSize: p, convertToTexture: c, float: r, sin: m, cos: h } =
|
|
89
|
+
const { vec2: e, vec4: o, screenUV: u, viewportSize: p, convertToTexture: c, float: r, sin: m, cos: h } = S;
|
|
91
90
|
if (!n) return o(0, 0, 0, 0);
|
|
92
91
|
const s = c(n);
|
|
93
92
|
f(() => {
|
|
94
93
|
s?.renderTarget?.dispose && s.renderTarget.dispose();
|
|
95
94
|
});
|
|
96
|
-
const a = p.x.div(p.y), i = e(u.x.mul(a), u.y), g = e(t.center.uniform.x.mul(a), t.center.uniform.y.oneMinus()), v = i.sub(g), x = t.angle.uniform.mul(Math.PI / 180), l = e(h(x), m(x)), d = v.dot(l), b = l.mul(d), T = v.sub(b), V = t.falloff.uniform, y =
|
|
97
|
-
return
|
|
95
|
+
const a = p.x.div(p.y), i = e(u.x.mul(a), u.y), g = e(t.center.uniform.x.mul(a), t.center.uniform.y.oneMinus()), v = i.sub(g), x = t.angle.uniform.mul(Math.PI / 180), l = e(h(x), m(x)), d = v.dot(l), b = l.mul(d), T = v.sub(b), V = t.falloff.uniform, y = C(r(1e-3), r(75), V), j = U(d.div(y), r(0), r(1)), w = t.strength.uniform.mul(r(100)), D = r(1).add(w.mul(j)), A = d.div(D), E = l.mul(A).add(T), M = g.add(E), P = e(M.x.div(a), M.y);
|
|
96
|
+
return F(P, s.sample(P), s, t.edges.uniform);
|
|
98
97
|
}
|
|
99
98
|
};
|
|
100
|
-
var
|
|
99
|
+
var I = _;
|
|
101
100
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
_ as n,
|
|
102
|
+
I as t
|
|
104
103
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { i as
|
|
4
|
-
import { t as
|
|
5
|
-
|
|
6
|
-
const E = {
|
|
1
|
+
import { O } from "./three.tsl-Btj1hLsf.js";
|
|
2
|
+
import { t as U } from "./time-DbRMw6Jm.js";
|
|
3
|
+
import { i as k, r as h, t as N } from "./transformations-CsrIJXh-.js";
|
|
4
|
+
import { t as T } from "./colorMixing--dhzx0ch.js";
|
|
5
|
+
const j = {
|
|
7
6
|
name: "Swirl",
|
|
8
7
|
category: "Base Layers",
|
|
9
8
|
description: "Flowing swirl pattern with multi-layered noise",
|
|
@@ -12,7 +11,7 @@ const E = {
|
|
|
12
11
|
colorA: {
|
|
13
12
|
default: "#1275d8",
|
|
14
13
|
description: "Primary gradient color",
|
|
15
|
-
transform:
|
|
14
|
+
transform: h,
|
|
16
15
|
ui: {
|
|
17
16
|
type: "color",
|
|
18
17
|
label: "Primary Color"
|
|
@@ -21,7 +20,7 @@ const E = {
|
|
|
21
20
|
colorB: {
|
|
22
21
|
default: "#e19136",
|
|
23
22
|
description: "Secondary gradient color",
|
|
24
|
-
transform:
|
|
23
|
+
transform: h,
|
|
25
24
|
ui: {
|
|
26
25
|
type: "color",
|
|
27
26
|
label: "Secondary Color"
|
|
@@ -128,22 +127,22 @@ const E = {
|
|
|
128
127
|
},
|
|
129
128
|
colorSpace: {
|
|
130
129
|
default: "linear",
|
|
131
|
-
transform:
|
|
130
|
+
transform: k,
|
|
132
131
|
description: "Color space for color interpolation",
|
|
133
132
|
ui: {
|
|
134
133
|
type: "select",
|
|
135
|
-
options:
|
|
134
|
+
options: N,
|
|
136
135
|
label: "Color Space"
|
|
137
136
|
}
|
|
138
137
|
}
|
|
139
138
|
},
|
|
140
139
|
fragmentNode: (f) => {
|
|
141
|
-
const { uniforms: e, uvContext: B } = f, { vec2: s, vec4: F, float: d, screenUV: V, sin: o, cos:
|
|
142
|
-
return F(
|
|
140
|
+
const { uniforms: e, uvContext: B } = f, { vec2: s, vec4: F, float: d, screenUV: V, sin: o, cos: t, smoothstep: A } = O, m = B ?? V, l = U(f, e.speed), c = e.detail.uniform, p = d(0.02), y = d(0.028), b = d(0.056), n = c, x = e.coarseX.uniform.mul(p), S = e.coarseY.uniform.mul(p), a = s(m.x.add(o(m.y.mul(n.mul(S).mul(1.7)).add(l.mul(0.8))).mul(0.12)), m.y.add(t(m.x.mul(n.mul(x).mul(1.3)).sub(l.mul(0.6))).mul(0.12))), M = o(a.x.mul(n.mul(x).mul(2.1)).add(a.y.mul(n.mul(S).mul(1.8))).add(l.mul(0.4))), i = c.mul(1.4), g = e.mediumX.uniform.mul(y), C = e.mediumY.uniform.mul(y), r = s(a.x.add(t(a.y.mul(i.mul(C).mul(1.9)).sub(l.mul(0.5))).mul(0.06)), a.y.add(o(a.x.mul(i.mul(g).mul(2.3)).add(l.mul(0.7))).mul(0.06))), z = t(r.x.mul(i.mul(g).mul(1.6)).sub(r.y.mul(i.mul(C).mul(2.4))).add(l.mul(0.3))), u = c.mul(2.8), X = e.fineX.uniform.mul(b), Y = e.fineY.uniform.mul(b), w = s(r.x.add(o(r.y.mul(u.mul(Y).mul(1.1)).add(l.mul(0.9))).mul(0.03)), r.y.add(t(r.x.mul(u.mul(X).mul(0.9)).sub(l.mul(0.4))).mul(0.03))), H = o(w.x.mul(u.mul(X).mul(1.3)).add(w.y.mul(u.mul(Y).mul(1.7))).sub(l.mul(0.6))), q = M.mul(0.5).add(z.mul(0.3)).add(H.mul(0.2)), P = e.blend.uniform.sub(50).mul(6e-3), _ = A(0.3, 0.7, q.mul(0.5).add(0.5).add(P)), D = T(e.colorA.uniform, e.colorB.uniform, _, e.colorSpace.uniform), L = o(l.mul(2.5).add(q.mul(8))).mul(0.015).add(1), v = D.mul(L);
|
|
141
|
+
return F(v.rgb, v.a);
|
|
143
142
|
}
|
|
144
143
|
};
|
|
145
|
-
var
|
|
144
|
+
var K = j;
|
|
146
145
|
export {
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
j as n,
|
|
147
|
+
K as t
|
|
149
148
|
};
|