shaders 2.2.0 → 2.2.2

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 (217) hide show
  1. package/dist/core/{AngularBlur-BJi-Edw-.js → AngularBlur-BTUdXC0g.js} +7 -6
  2. package/dist/core/{Ascii-B1KHvM1u.js → Ascii-Bu8ii7oo.js} +32 -31
  3. package/dist/core/Blob-C0G0efjG.js +170 -0
  4. package/dist/core/{Blur-bz9Ubr0x.js → Blur-BzUO9yxF.js} +14 -13
  5. package/dist/core/Bulge-BCXYAzig.js +104 -0
  6. package/dist/core/{CRTScreen-BnfROw0f.js → CRTScreen-cJ3XHrI9.js} +13 -12
  7. package/dist/core/{ChannelBlur-DhWT-55L.js → ChannelBlur-BEK1qzGn.js} +23 -22
  8. package/dist/core/{Checkerboard-CgWGd9t7.js → Checkerboard-BPkiSF5I.js} +16 -14
  9. package/dist/core/{ChromaFlow-DOVrymVB.js → ChromaFlow-AHO3C4o3.js} +18 -17
  10. package/dist/core/{ChromaticAberration-CyTSXY7j.js → ChromaticAberration-nVg3r1FK.js} +12 -11
  11. package/dist/core/{Circle-0WHV1HrM.js → Circle-C8ltF4BZ.js} +15 -13
  12. package/dist/core/{CursorTrail-3zQ5rtjh.js → CursorTrail-BeJGeovB.js} +17 -16
  13. package/dist/core/DiffuseBlur-BdGvOoBw.js +40 -0
  14. package/dist/core/{Dither-Cnbknfji.js → Dither-CpN3vGSh.js} +13 -12
  15. package/dist/core/DotGrid-BFUzeSQw.js +62 -0
  16. package/dist/core/{Duotone-BI4tJI3k.js → Duotone-_nR_o3-g.js} +8 -7
  17. package/dist/core/FilmGrain-BAKXXtLg.js +29 -0
  18. package/dist/core/FloatingParticles-Fv8JIzKk.js +161 -0
  19. package/dist/core/GlassTiles-5MyBj1ff.js +53 -0
  20. package/dist/core/{Glow-BD0t9E1L.js → Glow-DvJj7BB7.js} +12 -11
  21. package/dist/core/{Godrays-CPIAbymT.js → Godrays-cUzAKVXn.js} +24 -22
  22. package/dist/core/{Grayscale-BtOqK43k.js → Grayscale-oWIF3PV5.js} +3 -2
  23. package/dist/core/Grid-Bov7AA9m.js +51 -0
  24. package/dist/core/GridDistortion-CWYom5Dw.js +148 -0
  25. package/dist/core/Group-CPk-7fiA.js +18 -0
  26. package/dist/core/{Halftone-B_MuXCD8.js → Halftone-F7fsdu7W.js} +11 -10
  27. package/dist/core/{HueShift-CKG9M-d2.js → HueShift-CiS4hdtk.js} +3 -2
  28. package/dist/core/{ImageTexture-B6zFP2fB.js → ImageTexture-B3Q29OHX.js} +24 -22
  29. package/dist/core/Invert-Cyc4JHWc.js +21 -0
  30. package/dist/core/{LinearBlur-JFLMQBY4.js → LinearBlur-BTC54qzk.js} +12 -11
  31. package/dist/core/{LinearGradient-Ztg5Lzwj.js → LinearGradient-LEMeW0KM.js} +18 -16
  32. package/dist/core/Liquify-D2nzMDzq.js +140 -0
  33. package/dist/core/Pixelate-irPzmtQm.js +39 -0
  34. package/dist/core/{PolarCoordinates-qzU8gNXR.js → PolarCoordinates-Ck5ZWrQO.js} +21 -16
  35. package/dist/core/{Posterize-BkBU8tnN.js → Posterize-DICq_t96.js} +9 -8
  36. package/dist/core/{ProgressiveBlur-HAQf188T.js → ProgressiveBlur-BuORe3VH.js} +17 -16
  37. package/dist/core/{RadialGradient-DISqJuTZ.js → RadialGradient-D0cN67jm.js} +17 -15
  38. package/dist/core/RectangularCoordinates-1LIDaeHR.js +93 -0
  39. package/dist/core/{Ripples-CX8Qgnog.js → Ripples-DH71sFJc.js} +14 -12
  40. package/dist/core/{Saturation-DMxPYmIU.js → Saturation-DbSXtSeK.js} +10 -9
  41. package/dist/core/{SimplexNoise-B5ygfckG.js → SimplexNoise-DPGC2OPJ.js} +14 -12
  42. package/dist/core/{SineWave-KPFlP3Wk.js → SineWave-CkWtnzHF.js} +16 -14
  43. package/dist/core/{SolidColor-B8oxlGge.js → SolidColor-DaB-FHNX.js} +8 -6
  44. package/dist/core/{Spiral-CX22hUJ3.js → Spiral-CcyI8azF.js} +19 -17
  45. package/dist/core/Strands-Co4fkc05.js +126 -0
  46. package/dist/core/{Swirl-CIXreSgZ.js → Swirl-BoveqtNV.js} +18 -16
  47. package/dist/core/{TiltShift-J0UUcoh-.js → TiltShift-D53azmRe.js} +14 -13
  48. package/dist/core/{Tritone-E9eHvjJV.js → Tritone-Cg1rX-hL.js} +13 -12
  49. package/dist/core/{Twirl-ClhPpapm.js → Twirl-raO5pe5X.js} +20 -15
  50. package/dist/core/{Vibrance-CqnE9Zco.js → Vibrance-DtekSkcz.js} +8 -7
  51. package/dist/core/WaveDistortion-C65qO_cZ.js +133 -0
  52. package/dist/core/{ZoomBlur-CaGbSDG3.js → ZoomBlur-B97ZjhXe.js} +11 -10
  53. package/dist/core/{colorMixing-C_ESXyqX.js → colorMixing-DPZ-Td4U.js} +3 -3
  54. package/dist/core/edges-B-tVdqcI.js +16 -0
  55. package/dist/core/index.js +1333 -948
  56. package/dist/core/performanceTracker.d.ts +2 -0
  57. package/dist/core/performanceTracker.d.ts.map +1 -1
  58. package/dist/core/renderer.d.ts +12 -0
  59. package/dist/core/renderer.d.ts.map +1 -1
  60. package/dist/core/shaderRegistry.d.ts.map +1 -1
  61. package/dist/core/shaders/AngularBlur/index.d.ts.map +1 -1
  62. package/dist/core/shaders/AngularBlur/index.js +3 -3
  63. package/dist/core/shaders/Ascii/index.d.ts.map +1 -1
  64. package/dist/core/shaders/Ascii/index.js +2 -2
  65. package/dist/core/shaders/Blob/index.d.ts.map +1 -1
  66. package/dist/core/shaders/Blob/index.js +5 -5
  67. package/dist/core/shaders/Blur/index.d.ts.map +1 -1
  68. package/dist/core/shaders/Blur/index.js +2 -2
  69. package/dist/core/shaders/Bulge/index.d.ts.map +1 -1
  70. package/dist/core/shaders/Bulge/index.js +4 -4
  71. package/dist/core/shaders/CRTScreen/index.d.ts.map +1 -1
  72. package/dist/core/shaders/CRTScreen/index.js +2 -2
  73. package/dist/core/shaders/ChannelBlur/index.d.ts.map +1 -1
  74. package/dist/core/shaders/ChannelBlur/index.js +2 -2
  75. package/dist/core/shaders/Checkerboard/index.d.ts.map +1 -1
  76. package/dist/core/shaders/Checkerboard/index.js +4 -4
  77. package/dist/core/shaders/ChromaFlow/index.d.ts.map +1 -1
  78. package/dist/core/shaders/ChromaFlow/index.js +3 -3
  79. package/dist/core/shaders/ChromaticAberration/index.d.ts.map +1 -1
  80. package/dist/core/shaders/ChromaticAberration/index.js +3 -3
  81. package/dist/core/shaders/Circle/index.d.ts.map +1 -1
  82. package/dist/core/shaders/Circle/index.js +3 -3
  83. package/dist/core/shaders/CursorTrail/index.d.ts.map +1 -1
  84. package/dist/core/shaders/CursorTrail/index.js +4 -4
  85. package/dist/core/shaders/DiffuseBlur/index.d.ts.map +1 -1
  86. package/dist/core/shaders/DiffuseBlur/index.js +2 -2
  87. package/dist/core/shaders/Dither/index.d.ts.map +1 -1
  88. package/dist/core/shaders/Dither/index.js +3 -3
  89. package/dist/core/shaders/DotGrid/index.d.ts.map +1 -1
  90. package/dist/core/shaders/DotGrid/index.js +3 -3
  91. package/dist/core/shaders/Duotone/index.d.ts.map +1 -1
  92. package/dist/core/shaders/Duotone/index.js +4 -4
  93. package/dist/core/shaders/FilmGrain/index.d.ts.map +1 -1
  94. package/dist/core/shaders/FilmGrain/index.js +2 -2
  95. package/dist/core/shaders/FloatingParticles/index.d.ts.map +1 -1
  96. package/dist/core/shaders/FloatingParticles/index.js +3 -3
  97. package/dist/core/shaders/GlassTiles/index.d.ts.map +1 -1
  98. package/dist/core/shaders/GlassTiles/index.js +2 -2
  99. package/dist/core/shaders/Glow/index.d.ts.map +1 -1
  100. package/dist/core/shaders/Glow/index.js +2 -2
  101. package/dist/core/shaders/Godrays/index.d.ts.map +1 -1
  102. package/dist/core/shaders/Godrays/index.js +3 -3
  103. package/dist/core/shaders/Grayscale/index.d.ts.map +1 -1
  104. package/dist/core/shaders/Grayscale/index.js +2 -2
  105. package/dist/core/shaders/Grid/index.d.ts.map +1 -1
  106. package/dist/core/shaders/Grid/index.js +3 -3
  107. package/dist/core/shaders/GridDistortion/index.d.ts.map +1 -1
  108. package/dist/core/shaders/GridDistortion/index.js +4 -4
  109. package/dist/core/shaders/Group/index.d.ts.map +1 -1
  110. package/dist/core/shaders/Group/index.js +2 -2
  111. package/dist/core/shaders/Halftone/index.d.ts.map +1 -1
  112. package/dist/core/shaders/Halftone/index.js +3 -3
  113. package/dist/core/shaders/HueShift/index.d.ts.map +1 -1
  114. package/dist/core/shaders/HueShift/index.js +2 -2
  115. package/dist/core/shaders/ImageTexture/index.d.ts +1 -1
  116. package/dist/core/shaders/ImageTexture/index.d.ts.map +1 -1
  117. package/dist/core/shaders/ImageTexture/index.js +2 -2
  118. package/dist/core/shaders/Invert/index.d.ts.map +1 -1
  119. package/dist/core/shaders/Invert/index.js +2 -2
  120. package/dist/core/shaders/LinearBlur/index.d.ts.map +1 -1
  121. package/dist/core/shaders/LinearBlur/index.js +3 -3
  122. package/dist/core/shaders/LinearGradient/index.d.ts.map +1 -1
  123. package/dist/core/shaders/LinearGradient/index.js +4 -4
  124. package/dist/core/shaders/Liquify/index.d.ts.map +1 -1
  125. package/dist/core/shaders/Liquify/index.js +4 -4
  126. package/dist/core/shaders/Pixelate/index.d.ts.map +1 -1
  127. package/dist/core/shaders/Pixelate/index.js +2 -2
  128. package/dist/core/shaders/PolarCoordinates/index.d.ts.map +1 -1
  129. package/dist/core/shaders/PolarCoordinates/index.js +4 -4
  130. package/dist/core/shaders/Posterize/index.d.ts.map +1 -1
  131. package/dist/core/shaders/Posterize/index.js +2 -2
  132. package/dist/core/shaders/ProgressiveBlur/index.d.ts.map +1 -1
  133. package/dist/core/shaders/ProgressiveBlur/index.js +3 -3
  134. package/dist/core/shaders/RadialGradient/index.d.ts.map +1 -1
  135. package/dist/core/shaders/RadialGradient/index.js +4 -4
  136. package/dist/core/shaders/RectangularCoordinates/index.d.ts +38 -0
  137. package/dist/core/shaders/RectangularCoordinates/index.d.ts.map +1 -0
  138. package/dist/core/shaders/RectangularCoordinates/index.js +8 -0
  139. package/dist/core/shaders/Ripples/index.d.ts.map +1 -1
  140. package/dist/core/shaders/Ripples/index.js +4 -4
  141. package/dist/core/shaders/Saturation/index.d.ts.map +1 -1
  142. package/dist/core/shaders/Saturation/index.js +2 -2
  143. package/dist/core/shaders/SimplexNoise/index.d.ts.map +1 -1
  144. package/dist/core/shaders/SimplexNoise/index.js +4 -4
  145. package/dist/core/shaders/SineWave/index.d.ts.map +1 -1
  146. package/dist/core/shaders/SineWave/index.js +3 -3
  147. package/dist/core/shaders/SolidColor/index.d.ts.map +1 -1
  148. package/dist/core/shaders/SolidColor/index.js +3 -3
  149. package/dist/core/shaders/Spiral/index.d.ts.map +1 -1
  150. package/dist/core/shaders/Spiral/index.js +4 -4
  151. package/dist/core/shaders/Strands/index.d.ts.map +1 -1
  152. package/dist/core/shaders/Strands/index.js +4 -4
  153. package/dist/core/shaders/Swirl/index.d.ts.map +1 -1
  154. package/dist/core/shaders/Swirl/index.js +5 -5
  155. package/dist/core/shaders/TiltShift/index.d.ts.map +1 -1
  156. package/dist/core/shaders/TiltShift/index.js +3 -3
  157. package/dist/core/shaders/Tritone/index.d.ts.map +1 -1
  158. package/dist/core/shaders/Tritone/index.js +4 -4
  159. package/dist/core/shaders/Twirl/index.d.ts.map +1 -1
  160. package/dist/core/shaders/Twirl/index.js +4 -4
  161. package/dist/core/shaders/Vibrance/index.d.ts.map +1 -1
  162. package/dist/core/shaders/Vibrance/index.js +2 -2
  163. package/dist/core/shaders/WaveDistortion/index.d.ts.map +1 -1
  164. package/dist/core/shaders/WaveDistortion/index.js +6 -7
  165. package/dist/core/shaders/ZoomBlur/index.d.ts.map +1 -1
  166. package/dist/core/shaders/ZoomBlur/index.js +3 -3
  167. package/dist/core/telemetry/collector.d.ts.map +1 -1
  168. package/dist/core/telemetry/index.js +19 -19
  169. package/dist/core/{three.tsl-CgyjOhns.js → three.tsl-BqgDcRt9.js} +21 -20
  170. package/dist/core/{time-myrFQH-u.js → time-5uQ65blS.js} +1 -1
  171. package/dist/core/{transformations-Bs66Qh16.js → transformations-DBjTkQ5b.js} +1 -1
  172. package/dist/core/types.d.ts +85 -0
  173. package/dist/core/types.d.ts.map +1 -1
  174. package/dist/core/utilities/edges.d.ts +13 -2
  175. package/dist/core/utilities/edges.d.ts.map +1 -1
  176. package/dist/core/utilities/uvTransform.d.ts +20 -0
  177. package/dist/core/utilities/uvTransform.d.ts.map +1 -1
  178. package/dist/react/components/RectangularCoordinates.d.ts +31 -0
  179. package/dist/react/components/RectangularCoordinates.d.ts.map +1 -0
  180. package/dist/react/index.cjs +233 -233
  181. package/dist/react/index.d.ts +1 -0
  182. package/dist/react/index.d.ts.map +1 -1
  183. package/dist/react/index.js +16218 -15498
  184. package/dist/react/utils/generatePresetCode.cjs +2 -2
  185. package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
  186. package/dist/react/utils/generatePresetCode.js +13 -1
  187. package/dist/registry.d.ts +3 -0
  188. package/dist/registry.js +376 -87
  189. package/dist/svelte/components/RectangularCoordinates.svelte.d.ts +19 -0
  190. package/dist/svelte/index.d.ts +1 -0
  191. package/dist/svelte/index.js +15766 -15088
  192. package/dist/svelte/utils/generatePresetCode.js +13 -1
  193. package/dist/vue/components/RectangularCoordinates.vue.d.ts +57 -0
  194. package/dist/vue/components/RectangularCoordinates.vue.d.ts.map +1 -0
  195. package/dist/vue/{generatePresetCode-B6Ks_W3s.js → generatePresetCode-D4V6rBae.js} +13 -1
  196. package/dist/vue/index.d.ts +1 -0
  197. package/dist/vue/index.d.ts.map +1 -1
  198. package/dist/vue/index.js +15240 -14552
  199. package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
  200. package/dist/vue/utils/generatePresetCode.js +1 -1
  201. package/package.json +6 -1
  202. package/dist/core/Blob-CBASKMfO.js +0 -168
  203. package/dist/core/Bulge-Ceythf-i.js +0 -99
  204. package/dist/core/DiffuseBlur-DLIKRsnf.js +0 -39
  205. package/dist/core/DotGrid-BkItF2C8.js +0 -60
  206. package/dist/core/FilmGrain-BAZORehh.js +0 -27
  207. package/dist/core/FloatingParticles-7wvOBUbD.js +0 -158
  208. package/dist/core/GlassTiles-C0y_PWTa.js +0 -48
  209. package/dist/core/Grid-Ro0Yi5WY.js +0 -49
  210. package/dist/core/GridDistortion-CuxRQdzs.js +0 -137
  211. package/dist/core/Group-DTXP-whY.js +0 -17
  212. package/dist/core/Invert-Cd7GK1vs.js +0 -20
  213. package/dist/core/Liquify-rmJGJAdt.js +0 -126
  214. package/dist/core/Pixelate-BIANS3t9.js +0 -34
  215. package/dist/core/Strands-Bv7RvyRC.js +0 -124
  216. package/dist/core/WaveDistortion-gecgVpvO.js +0 -129
  217. package/dist/core/edges-Cj8yVYgz.js +0 -10
@@ -1,10 +1,12 @@
1
- import { A as d, N as a, S as r, _ as f, a as u, j as x, m as y, u as g, y as b } from "./three.tsl-CgyjOhns.js";
2
- import { t as v } from "./time-myrFQH-u.js";
3
- import { r as n } from "./transformations-Bs66Qh16.js";
4
- y();
5
- const S = {
1
+ import { M as u, P as r, S as f, _ as x, a as y, j as g, m as v, u as b, y as S } from "./three.tsl-BqgDcRt9.js";
2
+ import { t as h } from "./time-5uQ65blS.js";
3
+ import { r as n } from "./transformations-DBjTkQ5b.js";
4
+ v();
5
+ const B = {
6
6
  name: "SimplexNoise",
7
- category: "Noise",
7
+ category: "Base Layers",
8
+ description: "Organic noise with animated movement",
9
+ acceptsUVContext: !0,
8
10
  props: {
9
11
  colorA: {
10
12
  default: "#ffffff",
@@ -80,13 +82,13 @@ const S = {
80
82
  }
81
83
  }
82
84
  },
83
- fragmentNode: (o) => {
84
- const { uniforms: e } = o, i = a.x.div(a.y), s = d(r.x.mul(i), r.y), l = v(o, e.speed), t = s.mul(g(e.scale.uniform)).add(e.seed.uniform), c = b(x(t.x, t.y, l.mul(0.5))), m = e.contrast.uniform.add(1), p = u(0, 1, c.mul(m).add(e.balance.uniform).mul(0.5).add(0.5));
85
- return f(e.colorB.uniform, e.colorA.uniform, p);
85
+ fragmentNode: (t) => {
86
+ const { uniforms: e, uvContext: i } = t, o = i ?? f, s = r.x.div(r.y), l = g(o.x.mul(s), o.y), c = h(t, e.speed), a = l.mul(b(e.scale.uniform)).add(e.seed.uniform), m = S(u(a.x, a.y, c.mul(0.5))), p = e.contrast.uniform.add(1), d = y(0, 1, m.mul(p).add(e.balance.uniform).mul(0.5).add(0.5));
87
+ return x(e.colorB.uniform, e.colorA.uniform, d);
86
88
  }
87
89
  };
88
- var _ = S;
90
+ var w = B;
89
91
  export {
90
- S as n,
91
- _ as t
92
+ B as n,
93
+ w as t
92
94
  };
@@ -1,13 +1,15 @@
1
- import { O as q, m as P } from "./three.tsl-CgyjOhns.js";
2
- import { n as W, o as C, r as M } from "./transformations-Bs66Qh16.js";
3
- P();
4
- const U = {
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 = {
5
5
  name: "SineWave",
6
- category: "Shapes & Masks",
6
+ category: "Base Layers",
7
+ description: "Animated wave with thickness and softness",
8
+ acceptsUVContext: !0,
7
9
  props: {
8
10
  color: {
9
11
  default: "#ffffff",
10
- transform: M,
12
+ transform: F,
11
13
  description: "The color of the sine wave",
12
14
  ui: {
13
15
  type: "color",
@@ -49,7 +51,7 @@ const U = {
49
51
  },
50
52
  angle: {
51
53
  default: 0,
52
- transform: W,
54
+ transform: V,
53
55
  description: "The rotation angle of the wave (in degrees)",
54
56
  ui: {
55
57
  type: "range",
@@ -64,7 +66,7 @@ const U = {
64
66
  x: 0.5,
65
67
  y: 0.5
66
68
  },
67
- transform: C,
69
+ transform: W,
68
70
  description: "The center position of the wave",
69
71
  ui: {
70
72
  type: "position",
@@ -94,13 +96,13 @@ const U = {
94
96
  }
95
97
  }
96
98
  },
97
- fragmentNode: ({ uniforms: e }) => {
98
- const { vec2: n, vec4: u, sin: o, cos: f, abs: d, smoothstep: h, screenUV: s, viewportSize: a, time: g, radians: y, PI: v } = q, i = a.x.div(a.y), b = n(s.x.mul(i), s.y), x = n(e.position.uniform.x.mul(i), e.position.uniform.y.oneMinus()), t = b.sub(x), r = y(e.angle.uniform), l = f(r), c = o(r), w = t.x.mul(l).sub(t.y.mul(c)), T = t.x.mul(c).add(t.y.mul(l)), k = g.mul(e.speed.uniform), S = o(w.mul(e.frequency.uniform).mul(v.mul(2)).add(k)).mul(e.amplitude.uniform), A = d(T.sub(S)), m = e.thickness.uniform.mul(0.5), p = e.softness.uniform.mul(0.5), _ = h(m.add(p), m.sub(p), A);
99
- return u(e.color.uniform.rgb, e.color.uniform.a.mul(_));
99
+ 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));
100
102
  }
101
103
  };
102
- var z = U;
104
+ var D = M;
103
105
  export {
104
- U as n,
105
- z as t
106
+ M as n,
107
+ D as t
106
108
  };
@@ -1,7 +1,9 @@
1
- import { r } from "./transformations-Bs66Qh16.js";
2
- const l = {
1
+ import { r } from "./transformations-DBjTkQ5b.js";
2
+ const t = {
3
3
  name: "SolidColor",
4
- category: "Gradients & Colors",
4
+ category: "Base Layers",
5
+ description: "Fill the canvas with a single solid color",
6
+ acceptsUVContext: !0,
5
7
  props: { color: {
6
8
  default: "#5b18ca",
7
9
  transform: r,
@@ -13,8 +15,8 @@ const l = {
13
15
  } },
14
16
  fragmentNode: ({ uniforms: o }) => o.color.uniform
15
17
  };
16
- var a = l;
18
+ var l = t;
17
19
  export {
18
- l as n,
19
- a as t
20
+ t as n,
21
+ l as t
20
22
  };
@@ -1,14 +1,16 @@
1
- import { O as N, m as U } from "./three.tsl-CgyjOhns.js";
2
- import { i as V, o as j, r as S, t as D } from "./transformations-Bs66Qh16.js";
3
- import { t as I } from "./colorMixing-C_ESXyqX.js";
4
- U();
5
- const L = {
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-DPZ-Td4U.js";
4
+ O();
5
+ const q = {
6
6
  name: "Spiral",
7
- category: "Shapes & Masks",
7
+ category: "Base Layers",
8
+ description: "Rotating spiral pattern with animated movement",
9
+ acceptsUVContext: !0,
8
10
  props: {
9
11
  colorA: {
10
12
  default: "#000000",
11
- transform: S,
13
+ transform: g,
12
14
  description: "Background color",
13
15
  ui: {
14
16
  type: "color",
@@ -17,7 +19,7 @@ const L = {
17
19
  },
18
20
  colorB: {
19
21
  default: "#ffffff",
20
- transform: S,
22
+ transform: g,
21
23
  description: "Spiral stroke color",
22
24
  ui: {
23
25
  type: "color",
@@ -73,7 +75,7 @@ const L = {
73
75
  x: 0.5,
74
76
  y: 0.5
75
77
  },
76
- transform: j,
78
+ transform: D,
77
79
  description: "The center point of the spiral",
78
80
  ui: {
79
81
  type: "position",
@@ -93,22 +95,22 @@ const L = {
93
95
  },
94
96
  colorSpace: {
95
97
  default: "linear",
96
- transform: V,
98
+ transform: j,
97
99
  description: "Color space for color interpolation",
98
100
  ui: {
99
101
  type: "select",
100
- options: D,
102
+ options: I,
101
103
  label: "Color Space"
102
104
  }
103
105
  }
104
106
  },
105
- fragmentNode: ({ uniforms: e }) => {
106
- const { vec2: s, vec4: g, float: a, atan: x, length: k, clamp: o, fract: y, abs: C, mix: v, smoothstep: t, screenUV: n, time: w, fwidth: l, viewportSize: i } = N, c = i.x.div(i.y), W = s(n.x.mul(c), n.y), _ = s(e.center.uniform.x.mul(c), e.center.uniform.y.oneMinus()), r = W.sub(_), A = w.mul(e.speed.uniform), p = k(r), B = p, F = x(r.y, r.x).sub(A), M = a(6.283185307), O = F.div(M), f = B.mul(e.scale.uniform).add(O), d = C(y(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 = l(f), h = v(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), l(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);
107
- return g(b.rgb, b.a);
107
+ 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);
109
+ return S(b.rgb, b.a);
108
110
  }
109
111
  };
110
- var H = L;
112
+ var J = q;
111
113
  export {
112
- L as n,
113
- H as t
114
+ q as n,
115
+ J as t
114
116
  };
@@ -0,0 +1,126 @@
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 = {
6
+ name: "Strands",
7
+ category: "Base Layers",
8
+ description: "Procedural wavy strands with layered animation",
9
+ requiresRTT: !1,
10
+ requiresChild: !1,
11
+ acceptsUVContext: !0,
12
+ props: {
13
+ speed: {
14
+ default: 0.5,
15
+ description: "Overall animation speed",
16
+ ui: {
17
+ type: "range",
18
+ min: 0,
19
+ max: 1,
20
+ step: 0.01,
21
+ label: "Speed"
22
+ }
23
+ },
24
+ amplitude: {
25
+ default: 1,
26
+ description: "Wave height amplitude",
27
+ ui: {
28
+ type: "range",
29
+ min: 0,
30
+ max: 5,
31
+ step: 0.1,
32
+ label: "Amplitude"
33
+ }
34
+ },
35
+ frequency: {
36
+ default: 1,
37
+ description: "Wave frequency",
38
+ ui: {
39
+ type: "range",
40
+ min: 0,
41
+ max: 5,
42
+ step: 0.01,
43
+ label: "Frequency"
44
+ }
45
+ },
46
+ lineCount: {
47
+ default: 12,
48
+ description: "Number of wave lines",
49
+ ui: {
50
+ type: "range",
51
+ min: 4,
52
+ max: 32,
53
+ step: 1,
54
+ label: "Line Count"
55
+ }
56
+ },
57
+ lineWidth: {
58
+ default: 0.1,
59
+ description: "Width of wave lines",
60
+ ui: {
61
+ type: "range",
62
+ min: 0.01,
63
+ max: 0.5,
64
+ step: 0.01,
65
+ label: "Line Width"
66
+ }
67
+ },
68
+ waveColor: {
69
+ default: "#f1c907",
70
+ transform: se,
71
+ description: "Color of the waves",
72
+ ui: {
73
+ type: "color",
74
+ label: "Wave Color"
75
+ }
76
+ },
77
+ pinEdges: {
78
+ default: !0,
79
+ description: "Pin waves at edges (fade effect)",
80
+ ui: {
81
+ type: "checkbox",
82
+ label: "Pin Edges"
83
+ }
84
+ },
85
+ start: {
86
+ default: {
87
+ x: 0,
88
+ y: 0.5
89
+ },
90
+ transform: V,
91
+ description: "Starting point of the waves",
92
+ ui: {
93
+ type: "position",
94
+ label: "Start"
95
+ }
96
+ },
97
+ end: {
98
+ default: {
99
+ x: 1,
100
+ y: 0.5
101
+ },
102
+ transform: V,
103
+ description: "Ending point of the waves",
104
+ ui: {
105
+ type: "position",
106
+ label: "End"
107
+ }
108
+ }
109
+ },
110
+ 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));
112
+ 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;
114
+ 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))));
117
+ }
118
+ return f.mul(a(1, 1, 1, O.mul(B)));
119
+ })(A);
120
+ }
121
+ };
122
+ var le = ie;
123
+ export {
124
+ ie as n,
125
+ le as t
126
+ };
@@ -1,16 +1,18 @@
1
- import { O, m as k } from "./three.tsl-CgyjOhns.js";
2
- import { t as G } from "./time-myrFQH-u.js";
3
- import { i as L, r as w, t as N } from "./transformations-Bs66Qh16.js";
4
- import { t as T } from "./colorMixing-C_ESXyqX.js";
5
- k();
6
- const U = {
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-DPZ-Td4U.js";
5
+ U();
6
+ const E = {
7
7
  name: "Swirl",
8
- category: "Gradients & Colors",
8
+ category: "Base Layers",
9
+ description: "Flowing swirl pattern with multi-layered noise",
10
+ acceptsUVContext: !0,
9
11
  props: {
10
12
  colorA: {
11
13
  default: "#1275d8",
12
14
  description: "Primary gradient color",
13
- transform: w,
15
+ transform: v,
14
16
  ui: {
15
17
  type: "color",
16
18
  label: "Primary Color"
@@ -19,7 +21,7 @@ const U = {
19
21
  colorB: {
20
22
  default: "#e19136",
21
23
  description: "Secondary gradient color",
22
- transform: w,
24
+ transform: v,
23
25
  ui: {
24
26
  type: "color",
25
27
  label: "Secondary Color"
@@ -126,22 +128,22 @@ const U = {
126
128
  },
127
129
  colorSpace: {
128
130
  default: "linear",
129
- transform: L,
131
+ transform: O,
130
132
  description: "Color space for color interpolation",
131
133
  ui: {
132
134
  type: "select",
133
- options: N,
135
+ options: T,
134
136
  label: "Color Space"
135
137
  }
136
138
  }
137
139
  },
138
140
  fragmentNode: (f) => {
139
- const { uniforms: e } = f, { vec2: s, vec4: B, float: d, screenUV: F, sin: o, cos: t, smoothstep: _ } = O, m = F, l = G(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))), 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), 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))), M = 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), q = 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))), V = o(q.x.mul(u.mul(X).mul(1.3)).add(q.y.mul(u.mul(Y).mul(1.7))).sub(l.mul(0.6))), h = A.mul(0.5).add(M.mul(0.3)).add(V.mul(0.2)), z = e.blend.uniform.sub(50).mul(6e-3), H = _(0.3, 0.7, h.mul(0.5).add(0.5).add(z)), P = T(e.colorA.uniform, e.colorB.uniform, H, e.colorSpace.uniform), D = o(l.mul(2.5).add(h.mul(8))).mul(0.015).add(1), v = P.mul(D);
140
- return B(v.rgb, v.a);
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);
141
143
  }
142
144
  };
143
- var K = U;
145
+ var Q = E;
144
146
  export {
145
- U as n,
146
- K as t
147
+ E as n,
148
+ Q as t
147
149
  };
@@ -1,9 +1,10 @@
1
- import { O as U, m as j } from "./three.tsl-CgyjOhns.js";
2
- import { n as k, o as E } from "./transformations-Bs66Qh16.js";
1
+ import { k as U, m as j } from "./three.tsl-BqgDcRt9.js";
2
+ import { n as E, o as G } from "./transformations-DBjTkQ5b.js";
3
3
  j();
4
- const G = {
4
+ const H = {
5
5
  name: "TiltShift",
6
6
  category: "Blurs",
7
+ description: "Selective focus blur mimicking tilt-shift photography",
7
8
  requiresRTT: !0,
8
9
  requiresChild: !0,
9
10
  props: {
@@ -42,7 +43,7 @@ const G = {
42
43
  },
43
44
  angle: {
44
45
  default: 0,
45
- transform: k,
46
+ transform: E,
46
47
  description: "Rotation angle of the focus line (in degrees)",
47
48
  ui: {
48
49
  type: "range",
@@ -57,7 +58,7 @@ const G = {
57
58
  x: 0.5,
58
59
  y: 0.5
59
60
  },
60
- transform: E,
61
+ transform: G,
61
62
  description: "Center point of the focus line",
62
63
  ui: {
63
64
  type: "position",
@@ -66,13 +67,13 @@ const G = {
66
67
  }
67
68
  },
68
69
  fragmentNode: ({ uniforms: e, childNode: g, onCleanup: h }) => {
69
- const { vec2: n, vec4: l, float: o, screenUV: c, convertToTexture: x, viewportSize: y, radians: A, cos: C, sin: R, dot: V, abs: F, smoothstep: W, mix: q, Fn: b } = U;
70
+ const { vec2: n, vec4: l, float: o, screenUV: c, convertToTexture: x, viewportSize: y, radians: A, cos: C, sin: R, dot: V, abs: F, smoothstep: W, mix: k, Fn: b } = U;
70
71
  if (!g) return l(0, 0, 0, 0);
71
72
  const r = x(g);
72
73
  h(() => {
73
74
  r?.renderTarget?.dispose && r.renderTarget.dispose();
74
75
  });
75
- const T = A(e.angle.uniform), D = C(T), I = n(R(T).negate(), D), M = n(e.center.uniform[0], e.center.uniform[1].oneMinus()), P = F(V(c.sub(M), I)), v = e.width.uniform.mul(0.5), B = e.falloff.uniform, w = W(v, v.add(B), P), L = e.intensity.uniform.mul(0.06), S = w.mul(L), _ = [
76
+ const T = A(e.angle.uniform), q = C(T), D = n(R(T).negate(), q), I = n(e.center.uniform[0], e.center.uniform[1].oneMinus()), M = F(V(c.sub(I), D)), v = e.width.uniform.mul(0.5), P = e.falloff.uniform, w = W(v, v.add(P), M), B = e.intensity.uniform.mul(0.06), S = w.mul(B), _ = [
76
77
  0.056,
77
78
  0.135,
78
79
  0.278,
@@ -99,16 +100,16 @@ const G = {
99
100
  }), b(() => {
100
101
  const a = c, d = n(1).div(y), t = l(0).toVar();
101
102
  for (let i = -6; i <= 6; i++) {
102
- const f = o(_[i + 6] / z), m = n(o(0), o(i)).mul(S).mul(d), p = a.add(m), O = u.sample(p).mul(f);
103
- t.assign(t.add(O));
103
+ const f = o(_[i + 6] / z), m = n(o(0), o(i)).mul(S).mul(d), p = a.add(m), L = u.sample(p).mul(f);
104
+ t.assign(t.add(L));
104
105
  }
105
106
  const s = t;
106
- return q(r.sample(a), s, w);
107
+ return k(r.sample(a), s, w);
107
108
  })();
108
109
  }
109
110
  };
110
- var K = G;
111
+ var N = H;
111
112
  export {
112
- G as n,
113
- K as t
113
+ H as n,
114
+ N as t
114
115
  };
@@ -1,10 +1,11 @@
1
- import { O as g, m as C } from "./three.tsl-CgyjOhns.js";
2
- import { i as T, r as i, t as M } from "./transformations-Bs66Qh16.js";
3
- import { t as l } from "./colorMixing-C_ESXyqX.js";
1
+ import { k as g, m as C } from "./three.tsl-BqgDcRt9.js";
2
+ import { i as M, r as i, t as T } from "./transformations-DBjTkQ5b.js";
3
+ import { t as l } from "./colorMixing-DPZ-Td4U.js";
4
4
  C();
5
5
  const S = {
6
6
  name: "Tritone",
7
- category: "Effects",
7
+ category: "Adjustments",
8
+ description: "Map colors to three tones: shadows, midtones, highlights",
8
9
  requiresRTT: !0,
9
10
  requiresChild: !0,
10
11
  props: {
@@ -48,24 +49,24 @@ const S = {
48
49
  },
49
50
  colorSpace: {
50
51
  default: "linear",
51
- transform: T,
52
+ transform: M,
52
53
  description: "Color space for color interpolation",
53
54
  ui: {
54
55
  type: "select",
55
- options: M,
56
+ options: T,
56
57
  label: "Color Space"
57
58
  }
58
59
  }
59
60
  },
60
- fragmentNode: ({ uniforms: o, childNode: n, onCleanup: c }) => {
61
- const { vec3: d, vec4: a, dot: p, smoothstep: e, screenUV: f, convertToTexture: u } = g;
62
- if (!n) return a(0, 0, 0, 0);
61
+ fragmentNode: ({ uniforms: o, childNode: n, onCleanup: d }) => {
62
+ const { vec3: c, vec4: s, dot: p, smoothstep: e, screenUV: f, convertToTexture: u } = g;
63
+ if (!n) return s(0, 0, 0, 0);
63
64
  const r = u(n);
64
- c(() => {
65
+ d(() => {
65
66
  r?.renderTarget?.dispose && r.renderTarget.dispose();
66
67
  });
67
- const s = r.sample(f), t = p(s.rgb, d(0.299, 0.587, 0.114)), m = e(o.blendMid.uniform.sub(0.25), o.blendMid.uniform, t), b = l(o.colorA.uniform, o.colorB.uniform, m, o.colorSpace.uniform), h = e(o.blendMid.uniform, o.blendMid.uniform.add(0.25), t);
68
- return a(l(b, l(o.colorB.uniform, o.colorC.uniform, h, o.colorSpace.uniform), e(o.blendMid.uniform.sub(0.1), o.blendMid.uniform.add(0.1), t), o.colorSpace.uniform).rgb, s.a);
68
+ const a = r.sample(f), t = p(a.rgb, c(0.299, 0.587, 0.114)), m = e(o.blendMid.uniform.sub(0.25), o.blendMid.uniform, t), h = l(o.colorA.uniform, o.colorB.uniform, m, o.colorSpace.uniform), b = e(o.blendMid.uniform, o.blendMid.uniform.add(0.25), t);
69
+ return s(l(h, l(o.colorB.uniform, o.colorC.uniform, b, o.colorSpace.uniform), e(o.blendMid.uniform.sub(0.1), o.blendMid.uniform.add(0.1), t), o.colorSpace.uniform).rgb, a.a);
69
70
  }
70
71
  };
71
72
  var B = S;
@@ -1,10 +1,11 @@
1
- import { O as x, m as v } from "./three.tsl-CgyjOhns.js";
2
- import { t as w } from "./edges-Cj8yVYgz.js";
3
- import { a as _, o as E } from "./transformations-Bs66Qh16.js";
1
+ import { k as x, m as v } from "./three.tsl-BqgDcRt9.js";
2
+ import { t as w } from "./edges-B-tVdqcI.js";
3
+ import { a as _, o as A } from "./transformations-DBjTkQ5b.js";
4
4
  v();
5
- const q = {
5
+ const E = {
6
6
  name: "Twirl",
7
7
  category: "Distortions",
8
+ description: "Rotate and twist content around a center point",
8
9
  requiresRTT: !0,
9
10
  requiresChild: !0,
10
11
  props: {
@@ -13,7 +14,7 @@ const q = {
13
14
  x: 0.5,
14
15
  y: 0.5
15
16
  },
16
- transform: E,
17
+ transform: A,
17
18
  description: "The center point of the twirl effect",
18
19
  ui: {
19
20
  type: "position",
@@ -59,20 +60,24 @@ const q = {
59
60
  }
60
61
  }
61
62
  },
62
- fragmentNode: ({ uniforms: t, childNode: o, onCleanup: d }) => {
63
- const { vec2: s, vec4: u, cos: p, sin: m, length: f, screenUV: g, convertToTexture: h } = x;
63
+ uvTransformNode: ({ uv: n, uniforms: o }) => {
64
+ const { vec2: i, cos: l, sin: u, length: m } = x, r = i(o.center.uniform.x, o.center.uniform.y.oneMinus()), e = n.sub(r), c = o.intensity.uniform.mul(m(e)), d = l(c), t = u(c), p = d.mul(e.x).sub(t.mul(e.y)), s = t.mul(e.x).add(d.mul(e.y));
65
+ return i(p.add(r.x), s.add(r.y));
66
+ },
67
+ fragmentNode: ({ uniforms: n, childNode: o, onCleanup: i }) => {
68
+ const { vec2: l, vec4: u, cos: m, sin: r, length: e, screenUV: c, convertToTexture: d } = x;
64
69
  if (!o)
65
70
  return console.error("You must pass a child component into the Twirl shader."), u(0);
66
- const r = h(o);
67
- d(() => {
68
- r?.renderTarget?.dispose && r.renderTarget.dispose();
71
+ const t = d(o);
72
+ i(() => {
73
+ t?.renderTarget?.dispose && t.renderTarget.dispose();
69
74
  });
70
- const y = g, n = s(t.center.uniform.x, t.center.uniform.y.oneMinus()), e = y.sub(n), a = t.intensity.uniform.mul(f(e)), i = p(a), l = m(a), T = i.mul(e.x).sub(l.mul(e.y)), b = l.mul(e.x).add(i.mul(e.y)), c = s(T.add(n.x), b.add(n.y));
71
- return w(c, r.sample(c), r, t.edges.uniform);
75
+ const p = c, s = l(n.center.uniform.x, n.center.uniform.y.oneMinus()), a = p.sub(s), f = n.intensity.uniform.mul(e(a)), g = m(f), h = r(f), T = g.mul(a.x).sub(h.mul(a.y)), b = h.mul(a.x).add(g.mul(a.y)), y = l(T.add(s.x), b.add(s.y));
76
+ return w(y, t.sample(y), t, n.edges.uniform);
72
77
  }
73
78
  };
74
- var H = q;
79
+ var q = E;
75
80
  export {
76
- q as n,
77
- H as t
81
+ E as n,
82
+ q as t
78
83
  };
@@ -1,9 +1,10 @@
1
- import { O as i, m as o } from "./three.tsl-CgyjOhns.js";
2
- import { i as s } from "./ColorAdjustment-CKwpE_4M.js";
3
- o();
1
+ import { k as i, m as s } from "./three.tsl-BqgDcRt9.js";
2
+ import { i as o } from "./ColorAdjustment-CKwpE_4M.js";
3
+ s();
4
4
  const a = {
5
5
  name: "Vibrance",
6
- category: "Color Adjustments",
6
+ category: "Adjustments",
7
+ description: "Selective saturation adjustment protecting skin tones",
7
8
  requiresChild: !0,
8
9
  props: { intensity: {
9
10
  default: 0,
@@ -16,12 +17,12 @@ const a = {
16
17
  label: "Intensity"
17
18
  }
18
19
  } },
19
- fragmentNode: ({ uniforms: n, childNode: t }) => {
20
+ fragmentNode: ({ uniforms: r, childNode: t }) => {
20
21
  const { vec4: e } = i;
21
22
  if (!t)
22
23
  return console.error("You must pass a child component into the Vibrance shader."), e(0);
23
- const r = t || e(0, 0, 0, 0);
24
- return e(s(r.rgb, n.intensity.uniform).rgb, r.a);
24
+ const n = t || e(0, 0, 0, 0);
25
+ return e(o(n.rgb, r.intensity.uniform).rgb, n.a);
25
26
  }
26
27
  };
27
28
  var p = a;