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.
Files changed (122) hide show
  1. package/dist/core/{AngularBlur-BTUdXC0g.js → AngularBlur-ClvtyURQ.js} +12 -13
  2. package/dist/core/{Ascii-Bu8ii7oo.js → Ascii-BT0-K_vw.js} +28 -29
  3. package/dist/core/{Blob-CzWSpVTR.js → Blob-BlQ_1T_8.js} +12 -13
  4. package/dist/core/{Blur-BzUO9yxF.js → Blur-421AjWLH.js} +8 -9
  5. package/dist/core/{Bulge-BCXYAzig.js → Bulge-CZRVoR6C.js} +6 -7
  6. package/dist/core/{CRTScreen-cJ3XHrI9.js → CRTScreen-C_U9g_IR.js} +8 -9
  7. package/dist/core/{ChannelBlur-BEK1qzGn.js → ChannelBlur-5pzcB6Zv.js} +4 -5
  8. package/dist/core/{Checkerboard-B8CnUlbi.js → Checkerboard-CrQkqXhD.js} +10 -11
  9. package/dist/core/{ChromaFlow-AHO3C4o3.js → ChromaFlow-CNrQdL8f.js} +16 -17
  10. package/dist/core/{ChromaticAberration-nVg3r1FK.js → ChromaticAberration-D9H7O17Y.js} +6 -7
  11. package/dist/core/{Circle-C8ltF4BZ.js → Circle-DnLaDn8V.js} +7 -8
  12. package/dist/core/{CursorTrail-BcaRHjU5.js → CursorTrail-NY6n97VG.js} +19 -20
  13. package/dist/core/{DiffuseBlur-Dq_vFrB1.js → DiffuseBlur-C_n01ABk.js} +11 -12
  14. package/dist/core/{Dither-CpN3vGSh.js → Dither-4s-c4zh4.js} +6 -7
  15. package/dist/core/{DotGrid-BFUzeSQw.js → DotGrid-BYl8XdMi.js} +9 -10
  16. package/dist/core/{Duotone-DGNEAlye.js → Duotone-DbewOoB4.js} +12 -13
  17. package/dist/core/{FilmGrain-BAKXXtLg.js → FilmGrain-zA_-knOw.js} +7 -8
  18. package/dist/core/{FloatingParticles-Fv8JIzKk.js → FloatingParticles-BhVnqMsE.js} +22 -23
  19. package/dist/core/{GlassTiles-5MyBj1ff.js → GlassTiles-CFI57glh.js} +7 -8
  20. package/dist/core/{Glow-DvJj7BB7.js → Glow-CQgl3IoS.js} +10 -11
  21. package/dist/core/{Godrays-D3VnYrAm.js → Godrays-BBCtZxbv.js} +18 -19
  22. package/dist/core/{Grayscale-oWIF3PV5.js → Grayscale-CAEFLteL.js} +9 -10
  23. package/dist/core/{Grid-Bov7AA9m.js → Grid-DlM-rVbZ.js} +5 -6
  24. package/dist/core/{GridDistortion-CWYom5Dw.js → GridDistortion-ZOZphSAT.js} +29 -30
  25. package/dist/core/{Group-CPk-7fiA.js → Group-BQAs3RiH.js} +7 -8
  26. package/dist/core/{Halftone-F7fsdu7W.js → Halftone-ci4ga-_J.js} +8 -9
  27. package/dist/core/{HueShift-CiS4hdtk.js → HueShift-CyxzPcJV.js} +11 -12
  28. package/dist/core/{ImageTexture-B3Q29OHX.js → ImageTexture-CdAGsPuH.js} +18 -20
  29. package/dist/core/{Invert-Cyc4JHWc.js → Invert-iPsiIqNZ.js} +7 -8
  30. package/dist/core/{LinearBlur-BTC54qzk.js → LinearBlur-BEaaoIk-.js} +13 -14
  31. package/dist/core/{LinearGradient-DPe-Z-lw.js → LinearGradient-DR_7RxLX.js} +10 -11
  32. package/dist/core/{Liquify-D2nzMDzq.js → Liquify-Bi02_ugh.js} +33 -34
  33. package/dist/core/{Pixelate-irPzmtQm.js → Pixelate-CSsdT1rr.js} +4 -5
  34. package/dist/core/{PolarCoordinates-Ck5ZWrQO.js → PolarCoordinates-D626ml58.js} +10 -11
  35. package/dist/core/{Posterize-DICq_t96.js → Posterize-DhZkMaC7.js} +8 -10
  36. package/dist/core/{ProgressiveBlur-BuORe3VH.js → ProgressiveBlur-CGtCfLF8.js} +16 -17
  37. package/dist/core/{RadialGradient-CbaCbOJj.js → RadialGradient-C0_WzmbH.js} +13 -14
  38. package/dist/core/{RectangularCoordinates-1LIDaeHR.js → RectangularCoordinates-DfXw7fhI.js} +6 -7
  39. package/dist/core/{Ripples-0Ufm3-fY.js → Ripples-DkemN3eh.js} +9 -10
  40. package/dist/core/{Saturation-DbSXtSeK.js → Saturation-Dup81Pnq.js} +7 -8
  41. package/dist/core/{SimplexNoise-BKB94dhx.js → SimplexNoise-BYEiCjDj.js} +9 -10
  42. package/dist/core/{SineWave-CkWtnzHF.js → SineWave-C6MRPtsy.js} +9 -10
  43. package/dist/core/{SolidColor-DaB-FHNX.js → SolidColor-BZHRczgb.js} +1 -1
  44. package/dist/core/{Spherize-CqjZj4yV.js → Spherize-DOAnDx2l.js} +13 -14
  45. package/dist/core/{Spiral-BkzSmPUL.js → Spiral-BMjnWXh1.js} +11 -12
  46. package/dist/core/{Strands-DyrV6zDO.js → Strands-BOVsuJLe.js} +14 -15
  47. package/dist/core/{Stretch-DeBlJ-NH.js → Stretch-D6bHc6yp.js} +13 -14
  48. package/dist/core/{Swirl-BHn9Ji7_.js → Swirl-BFoc0ImG.js} +14 -15
  49. package/dist/core/{TiltShift-DiArippe.js → TiltShift-BiNvvhzj.js} +14 -15
  50. package/dist/core/{Tritone-DrzxJUaq.js → Tritone-gdx2AA0m.js} +9 -10
  51. package/dist/core/{Twirl-C6xj1p52.js → Twirl-BsV8YbqC.js} +8 -9
  52. package/dist/core/{Vibrance-C6lNgpWH.js → Vibrance-C182fbSw.js} +5 -6
  53. package/dist/core/{WaveDistortion-DcXxPZ2w.js → WaveDistortion-CmaS2zDB.js} +12 -13
  54. package/dist/core/{ZoomBlur-_feIVJs6.js → ZoomBlur-DLf5xQ16.js} +10 -11
  55. package/dist/core/{colorMixing-C-FChLp0.js → colorMixing--dhzx0ch.js} +10 -11
  56. package/dist/core/edges-CDzKsauJ.js +15 -0
  57. package/dist/core/index.js +636 -684
  58. package/dist/core/renderer.d.ts.map +1 -1
  59. package/dist/core/shaders/AngularBlur/index.js +3 -3
  60. package/dist/core/shaders/Ascii/index.js +2 -2
  61. package/dist/core/shaders/Blob/index.js +5 -5
  62. package/dist/core/shaders/Blur/index.js +2 -2
  63. package/dist/core/shaders/Bulge/index.js +4 -4
  64. package/dist/core/shaders/CRTScreen/index.js +2 -2
  65. package/dist/core/shaders/ChannelBlur/index.js +2 -2
  66. package/dist/core/shaders/Checkerboard/index.js +4 -4
  67. package/dist/core/shaders/ChromaFlow/index.js +3 -3
  68. package/dist/core/shaders/ChromaticAberration/index.js +3 -3
  69. package/dist/core/shaders/Circle/index.js +3 -3
  70. package/dist/core/shaders/CursorTrail/index.js +4 -4
  71. package/dist/core/shaders/DiffuseBlur/index.js +4 -4
  72. package/dist/core/shaders/Dither/index.js +3 -3
  73. package/dist/core/shaders/DotGrid/index.js +3 -3
  74. package/dist/core/shaders/Duotone/index.js +4 -4
  75. package/dist/core/shaders/FilmGrain/index.js +2 -2
  76. package/dist/core/shaders/FloatingParticles/index.js +3 -3
  77. package/dist/core/shaders/GlassTiles/index.js +2 -2
  78. package/dist/core/shaders/Glow/index.js +2 -2
  79. package/dist/core/shaders/Godrays/index.js +3 -3
  80. package/dist/core/shaders/Grayscale/index.js +2 -2
  81. package/dist/core/shaders/Grid/index.js +3 -3
  82. package/dist/core/shaders/GridDistortion/index.js +4 -4
  83. package/dist/core/shaders/Group/index.js +2 -2
  84. package/dist/core/shaders/Halftone/index.js +3 -3
  85. package/dist/core/shaders/HueShift/index.js +2 -2
  86. package/dist/core/shaders/ImageTexture/index.js +2 -2
  87. package/dist/core/shaders/Invert/index.js +2 -2
  88. package/dist/core/shaders/LinearBlur/index.js +3 -3
  89. package/dist/core/shaders/LinearGradient/index.js +4 -4
  90. package/dist/core/shaders/Liquify/index.js +4 -4
  91. package/dist/core/shaders/Pixelate/index.js +2 -2
  92. package/dist/core/shaders/PolarCoordinates/index.js +4 -4
  93. package/dist/core/shaders/Posterize/index.js +2 -2
  94. package/dist/core/shaders/ProgressiveBlur/index.js +3 -3
  95. package/dist/core/shaders/RadialGradient/index.js +4 -4
  96. package/dist/core/shaders/RectangularCoordinates/index.js +4 -4
  97. package/dist/core/shaders/Ripples/index.js +5 -5
  98. package/dist/core/shaders/Saturation/index.js +2 -2
  99. package/dist/core/shaders/SimplexNoise/index.js +5 -5
  100. package/dist/core/shaders/SineWave/index.js +3 -3
  101. package/dist/core/shaders/SolidColor/index.js +3 -3
  102. package/dist/core/shaders/Spherize/index.js +3 -3
  103. package/dist/core/shaders/Spiral/index.js +4 -4
  104. package/dist/core/shaders/Strands/index.js +4 -4
  105. package/dist/core/shaders/Stretch/index.js +4 -4
  106. package/dist/core/shaders/Swirl/index.js +5 -5
  107. package/dist/core/shaders/TiltShift/index.js +3 -3
  108. package/dist/core/shaders/Tritone/index.js +4 -4
  109. package/dist/core/shaders/Twirl/index.js +4 -4
  110. package/dist/core/shaders/Vibrance/index.js +2 -2
  111. package/dist/core/shaders/WaveDistortion/index.js +4 -4
  112. package/dist/core/shaders/ZoomBlur/index.js +3 -3
  113. package/dist/core/three.tsl-Btj1hLsf.js +43845 -0
  114. package/dist/core/{time-5uQ65blS.js → time-DbRMw6Jm.js} +4 -5
  115. package/dist/core/{transformations-DBjTkQ5b.js → transformations-CsrIJXh-.js} +176 -177
  116. package/dist/react/index.cjs +83 -79
  117. package/dist/react/index.js +50779 -50512
  118. package/dist/svelte/index.js +50786 -50519
  119. package/dist/vue/index.js +50430 -50163
  120. package/package.json +1 -1
  121. package/dist/core/edges-B-tVdqcI.js +0 -16
  122. package/dist/core/three.tsl-BqgDcRt9.js +0 -43424
@@ -1,7 +1,6 @@
1
- import { k as M, m as U } from "./three.tsl-BqgDcRt9.js";
2
- import { n as k, o as j } from "./transformations-DBjTkQ5b.js";
3
- U();
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: k,
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: j,
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: s, vec4: o, float: e, screenUV: i, viewportSize: x, sin: B, cos: C, radians: D, max: v, smoothstep: P, Fn: y, convertToTexture: b } = M;
60
- if (!g) return o(0, 0, 0, 0);
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 = D(r.angle.uniform), S = s(C(T), B(T)), V = s(r.center.uniform[0], r.center.uniform[1].oneMinus()), A = i.sub(V), R = v(e(0), A.dot(S)), q = v(e(1e-3), r.falloff.uniform), F = P(e(0), q, R), I = r.intensity.uniform.mul(0.06), w = F.mul(I), _ = [
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
- ], z = 6.214, l = b(y(() => {
80
- const c = i, u = s(1).div(x), n = o(0).toVar();
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(_[t + 6] / z), f = s(e(t), e(0)).mul(w).mul(u), m = c.add(f), p = a.sample(m).mul(d);
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 = s(1).div(x), n = o(0).toVar();
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(_[t + 6] / z), f = s(e(0), e(t)).mul(w).mul(u), m = c.add(f), p = l.sample(m).mul(d);
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 J = E;
98
+ var G = j;
100
99
  export {
101
- E as n,
102
- J as t
100
+ j as n,
101
+ G as t
103
102
  };
@@ -1,8 +1,7 @@
1
- import { k as d, m as f } from "./three.tsl-BqgDcRt9.js";
2
- import { i as m, o as u, r as n, t as g } from "./transformations-DBjTkQ5b.js";
3
- import { t as h } from "./colorMixing-C-FChLp0.js";
4
- f();
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: u,
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: m,
53
+ transform: f,
55
54
  description: "Color space for color interpolation",
56
55
  ui: {
57
56
  type: "select",
58
- options: g,
57
+ options: u,
59
58
  label: "Color Space"
60
59
  }
61
60
  }
62
61
  },
63
- fragmentNode: ({ uniforms: e, uvContext: l }) => {
64
- const { vec2: o, float: t, distance: s, screenUV: c, viewportSize: r } = d, a = l ?? c, i = r.x.div(r.y), p = s(o(a.x.mul(i), a.y), o(e.center.uniform.x.mul(i), e.center.uniform.y.oneMinus())).div(e.radius.uniform).clamp(t(0), t(1));
65
- return h(e.colorA.uniform, e.colorB.uniform, p, e.colorSpace.uniform);
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 S = y;
67
+ var v = h;
69
68
  export {
70
- y as n,
71
- S as t
69
+ h as n,
70
+ v as t
72
71
  };
@@ -1,7 +1,6 @@
1
- import { k as x, m as T } from "./three.tsl-BqgDcRt9.js";
2
- import { t as C } from "./edges-B-tVdqcI.js";
3
- import { a as P, o as _ } from "./transformations-DBjTkQ5b.js";
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: P,
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 C(y, r.sample(y), r, e.edges.uniform);
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 { d as T, k as w, m as A } from "./three.tsl-BqgDcRt9.js";
2
- import { t as S } from "./time-5uQ65blS.js";
3
- import { o as _, r as l } from "./transformations-DBjTkQ5b.js";
4
- import { t as q } from "./colorMixing-C-FChLp0.js";
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 } = w, 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), k = d(t(r.x.mul(p), r.y), t(i.x.mul(p), i.y.oneMinus())), v = S(o, e.speed), B = u(k.mul(x).sub(v).add(C)), c = g.mul(s(2)).sub(s(1));
100
- return q(b, y, h(c.add(a), c.sub(a), B), T(0));
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 z = P;
102
+ var V = P;
104
103
  export {
105
104
  P as n,
106
- z as t
105
+ V as t
107
106
  };
@@ -1,7 +1,6 @@
1
- import { k as o, m as i } from "./three.tsl-BqgDcRt9.js";
2
- import { r as s } from "./ColorAdjustment-CKwpE_4M.js";
3
- i();
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(s(n.rgb, r.intensity.uniform).rgb, n.a);
24
+ return t(i(n.rgb, r.intensity.uniform).rgb, n.a);
26
25
  }
27
26
  };
28
- var m = a;
27
+ var c = s;
29
28
  export {
30
- a as n,
31
- m as t
29
+ s as n,
30
+ c as t
32
31
  };
@@ -1,8 +1,7 @@
1
- import { M as f, P as r, S as u, a as x, d as y, j as g, m as v, u as b, y as C } from "./three.tsl-BqgDcRt9.js";
2
- import { t as S } from "./time-5uQ65blS.js";
3
- import { r as n } from "./transformations-DBjTkQ5b.js";
4
- import { t as h } from "./colorMixing-C-FChLp0.js";
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: (t) => {
87
- const { uniforms: e, uvContext: i } = t, o = i ?? u, s = r.x.div(r.y), l = g(o.x.mul(s), o.y), c = S(t, e.speed), a = l.mul(b(e.scale.uniform)).add(e.seed.uniform), m = C(f(a.x, a.y, c.mul(0.5))), p = e.contrast.uniform.add(1), d = x(0, 1, m.mul(p).add(e.balance.uniform).mul(0.5).add(0.5));
88
- return h(e.colorB.uniform, e.colorA.uniform, d, y(0));
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 P = B;
90
+ var U = B;
92
91
  export {
93
92
  B as n,
94
- P as t
93
+ U as t
95
94
  };
@@ -1,7 +1,6 @@
1
- import { k as P, m as U } from "./three.tsl-BqgDcRt9.js";
2
- import { n as V, o as W, r as F } from "./transformations-DBjTkQ5b.js";
3
- U();
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: F,
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: s, cos: f, abs: h, smoothstep: y, screenUV: g, viewportSize: o, time: v, radians: b, PI: x } = P, a = p ?? g, i = o.x.div(o.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 = s(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), _ = s(k.mul(e.frequency.uniform).mul(x.mul(2)).add(S)).mul(e.amplitude.uniform), q = h(A.sub(_)), m = e.thickness.uniform.mul(0.5), u = e.softness.uniform.mul(0.5), C = y(m.add(u), m.sub(u), q);
101
- return d(e.color.uniform.rgb, e.color.uniform.a.mul(C));
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 D = M;
103
+ var B = F;
105
104
  export {
106
- M as n,
107
- D as t
105
+ F as n,
106
+ B as t
108
107
  };
@@ -1,4 +1,4 @@
1
- import { r } from "./transformations-DBjTkQ5b.js";
1
+ import { r } from "./transformations-CsrIJXh-.js";
2
2
  const t = {
3
3
  name: "SolidColor",
4
4
  category: "Base Layers",
@@ -1,7 +1,6 @@
1
- import { k as O, m as Q } from "./three.tsl-BqgDcRt9.js";
2
- import { o as z, r as W } from "./transformations-DBjTkQ5b.js";
3
- Q();
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: W,
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: m, onCleanup: T }) => {
90
- const { vec2: o, vec3: l, vec4: p, float: t, screenUV: I, convertToTexture: L, viewportSize: g, sqrt: _, max: a, smoothstep: q, pow: y, normalize: u, dot: x } = O;
91
- if (!m) return p(0, 0, 0, 0);
92
- const d = L(m);
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)), R = t(1).sub(q(t(0.98), t(1), C)), D = _(a(t(0), t(1).sub(C))), U = t(1).add(D.mul(e.depth.uniform)), P = i.div(U).mul(w).div(2), V = o(P.x.div(v).add(s.x), P.y.add(s.y)), n = d.sample(V), S = o(e.lightPosition.uniform.x, e.lightPosition.uniform.y.oneMinus()), M = 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), k = t(1).add(t(4).mul(t(1).sub(A))), F = y(t(1).sub(a(x(h, B), t(0))), k), G = o(S.x.sub(t(0.5)).mul(2), S.y.sub(t(0.5)).mul(2)), H = u(o(h.x, h.y).add(o(1e-4, 1e-4))), N = u(G.add(o(1e-4, 1e-4))), j = y(a(t(0), x(H, N)), t(2)), f = F.mul(j).mul(M).mul(t(2)), E = n.x.add(c.x.mul(f)), J = n.y.add(c.y.mul(f)), K = n.z.add(c.z.mul(f)), r = n.w.mul(R);
97
- return p(E.mul(r), J.mul(r), K.mul(r), r);
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 $ = X;
99
+ var Z = W;
101
100
  export {
102
- X as n,
103
- $ as t
101
+ W as n,
102
+ Z as t
104
103
  };
@@ -1,8 +1,7 @@
1
- import { k as N, m as O } from "./three.tsl-BqgDcRt9.js";
2
- import { i as j, o as D, r as g, t as I } from "./transformations-DBjTkQ5b.js";
3
- import { t as R } from "./colorMixing-C-FChLp0.js";
4
- O();
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: D,
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: j,
97
+ transform: N,
99
98
  description: "Color space for color interpolation",
100
99
  ui: {
101
100
  type: "select",
102
- options: I,
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: _, fwidth: n, viewportSize: l } = N, i = x ?? W, c = l.x.div(l.y), A = s(i.x.mul(c), i.y), B = s(e.center.uniform.x.mul(c), e.center.uniform.y.oneMinus()), r = A.sub(B), F = _.mul(e.speed.uniform), p = k(r), U = p, V = y(r.y, r.x).sub(F), M = a(6.283185307), P = V.div(M), f = U.mul(e.scale.uniform).add(P), d = v(C(f).sub(0.5)).mul(2), T = o(e.strokeWidth.uniform, e.strokeFalloff.uniform.mul(5e-3), 1), z = o(e.strokeFalloff.uniform, 0, 1).mul(p).oneMinus(), m = T.mul(z), 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)), L = t(m.sub(h).sub(e.softness.uniform), m.add(h).add(e.softness.uniform), d), b = R(e.colorA.uniform, e.colorB.uniform, L, e.colorSpace.uniform);
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 J = q;
111
+ var H = R;
113
112
  export {
114
- q as n,
115
- J as t
113
+ R as n,
114
+ H as t
116
115
  };
@@ -1,8 +1,7 @@
1
- import { k as te, m as ne } from "./three.tsl-BqgDcRt9.js";
2
- import { t as oe } from "./time-5uQ65blS.js";
3
- import { o as V, r as se } from "./transformations-DBjTkQ5b.js";
4
- ne();
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: se,
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: _ } = p, { vec2: i, vec4: a, cos: o, abs: z, smoothstep: d, mix: v, max: M, screenUV: U, viewportSize: y, float: t, Fn: g } = te, A = _ ?? U, x = oe(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));
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()), D = i(e.end.uniform.x.mul(u), e.end.uniform.y.oneMinus()), k = i(n.x.mul(u), n.y), b = D.sub(h), C = b.length(), m = b.div(C), I = i(m.y.negate(), m.x), w = k.sub(h), s = w.dot(m).div(C), N = w.dot(I), S = s.mul(10), R = N.mul(10), B = 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)), O = o(s.mul(6.28)).mul(0.5).add(0.5).oneMinus(), f = a(0, 0, 0, 0).toVar(), P = e.lineCount.uniform;
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 = z(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);
116
- f.assign(M(f, j.select(ee, a(0, 0, 0, 0))));
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, O.mul(B)));
119
- })(A);
117
+ return f.mul(a(1, 1, 1, B.mul(k)));
118
+ })(D);
120
119
  }
121
120
  };
122
- var le = ie;
121
+ var de = se;
123
122
  export {
124
- ie as n,
125
- le as t
123
+ se as n,
124
+ de as t
126
125
  };
@@ -1,8 +1,7 @@
1
- import { _ as S, a as U, k as _, m as A } from "./three.tsl-BqgDcRt9.js";
2
- import { t as E } from "./edges-B-tVdqcI.js";
3
- import { a as F, o as R } from "./transformations-DBjTkQ5b.js";
4
- A();
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: R,
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: F,
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 } = _, 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 = S(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);
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 = S(r(1e-3), r(75), V), C = U(d.div(y), r(0), r(1)), j = t.strength.uniform.mul(r(100)), w = r(1).add(j.mul(C)), D = d.div(w), k = l.mul(D).add(T), M = g.add(k), P = e(M.x.div(a), M.y);
97
- return E(P, s.sample(P), s, t.edges.uniform);
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 N = W;
99
+ var I = _;
101
100
  export {
102
- W as n,
103
- N as t
101
+ _ as n,
102
+ I as t
104
103
  };
@@ -1,9 +1,8 @@
1
- import { k as L, m as U } from "./three.tsl-BqgDcRt9.js";
2
- import { t as N } from "./time-5uQ65blS.js";
3
- import { i as O, r as v, t as T } from "./transformations-DBjTkQ5b.js";
4
- import { t as j } from "./colorMixing-C-FChLp0.js";
5
- U();
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: v,
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: v,
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: O,
130
+ transform: k,
132
131
  description: "Color space for color interpolation",
133
132
  ui: {
134
133
  type: "select",
135
- options: T,
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: r, smoothstep: _ } = L, m = B ?? V, l = N(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(r(m.x.mul(n.mul(x).mul(1.3)).sub(l.mul(0.6))).mul(0.12))), A = 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), t = s(a.x.add(r(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))), M = r(t.x.mul(i.mul(g).mul(1.6)).sub(t.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(t.x.add(o(t.y.mul(u.mul(Y).mul(1.1)).add(l.mul(0.9))).mul(0.03)), t.y.add(r(t.x.mul(u.mul(X).mul(0.9)).sub(l.mul(0.4))).mul(0.03))), z = 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 = A.mul(0.5).add(M.mul(0.3)).add(z.mul(0.2)), H = e.blend.uniform.sub(50).mul(6e-3), P = _(0.3, 0.7, q.mul(0.5).add(0.5).add(H)), k = j(e.colorA.uniform, e.colorB.uniform, P, e.colorSpace.uniform), D = o(l.mul(2.5).add(q.mul(8))).mul(0.015).add(1), h = k.mul(D);
142
- return F(h.rgb, h.a);
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 Q = E;
144
+ var K = j;
146
145
  export {
147
- E as n,
148
- Q as t
146
+ j as n,
147
+ K as t
149
148
  };