shaders 2.2.12 → 2.2.14

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 (33) hide show
  1. package/dist/core/{Blob-C0G0efjG.js → Blob-CzWSpVTR.js} +1 -1
  2. package/dist/core/{Checkerboard-BPkiSF5I.js → Checkerboard-B8CnUlbi.js} +1 -1
  3. package/dist/core/{CursorTrail-BeJGeovB.js → CursorTrail-BcaRHjU5.js} +1 -1
  4. package/dist/core/{Duotone-_nR_o3-g.js → Duotone-DGNEAlye.js} +1 -1
  5. package/dist/core/{LinearGradient-LEMeW0KM.js → LinearGradient-DPe-Z-lw.js} +1 -1
  6. package/dist/core/{RadialGradient-D0cN67jm.js → RadialGradient-CbaCbOJj.js} +1 -1
  7. package/dist/core/{Ripples-DH71sFJc.js → Ripples-0Ufm3-fY.js} +9 -8
  8. package/dist/core/{SimplexNoise-DPGC2OPJ.js → SimplexNoise-BKB94dhx.js} +7 -6
  9. package/dist/core/{Spiral-BRrismPI.js → Spiral-BkzSmPUL.js} +1 -1
  10. package/dist/core/{Swirl-PxpHzkdC.js → Swirl-BHn9Ji7_.js} +1 -1
  11. package/dist/core/{Tritone-KtJgZviA.js → Tritone-DrzxJUaq.js} +1 -1
  12. package/dist/core/colorMixing-C-FChLp0.js +22 -0
  13. package/dist/core/index.js +12 -12
  14. package/dist/core/shaders/Blob/index.js +2 -2
  15. package/dist/core/shaders/Checkerboard/index.js +2 -2
  16. package/dist/core/shaders/CursorTrail/index.js +2 -2
  17. package/dist/core/shaders/Duotone/index.js +2 -2
  18. package/dist/core/shaders/LinearGradient/index.js +2 -2
  19. package/dist/core/shaders/RadialGradient/index.js +2 -2
  20. package/dist/core/shaders/Ripples/index.d.ts.map +1 -1
  21. package/dist/core/shaders/Ripples/index.js +4 -3
  22. package/dist/core/shaders/SimplexNoise/index.d.ts.map +1 -1
  23. package/dist/core/shaders/SimplexNoise/index.js +4 -3
  24. package/dist/core/shaders/Spiral/index.js +2 -2
  25. package/dist/core/shaders/Swirl/index.js +2 -2
  26. package/dist/core/shaders/Tritone/index.js +2 -2
  27. package/dist/core/utilities/colorMixing.d.ts.map +1 -1
  28. package/dist/react/index.cjs +70 -70
  29. package/dist/react/index.js +7892 -7892
  30. package/dist/svelte/index.js +6593 -6593
  31. package/dist/vue/index.js +7692 -7692
  32. package/package.json +1 -1
  33. package/dist/core/colorMixing-DPZ-Td4U.js +0 -22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shaders",
3
- "version": "2.2.12",
3
+ "version": "2.2.14",
4
4
  "description": "Declarative shader components for Vue, React, and Svelte",
5
5
  "author": "Simon Le Marchant<https://github.com/marchantweb>",
6
6
  "homepage": "https://shaders.com/",
@@ -1,22 +0,0 @@
1
- import { k as L, m as f } from "./three.tsl-BqgDcRt9.js";
2
- f();
3
- var { vec3: o, vec4: C, float: d, pow: r, sqrt: E, atan: G, cos: p, sin: A, mix: b } = L, h = (u) => o(u.x.mul(1.2249401).sub(u.y.mul(0.2249404)).sub(u.z.mul(0)), u.x.mul(-0.0420569).add(u.y.mul(1.0420571)).add(u.z.mul(0)), u.x.mul(-0.0196376).sub(u.y.mul(0.0786361)).add(u.z.mul(1.0982735))), i = (u) => o(u.x.mul(0.8224621).add(u.y.mul(0.177538)).add(u.z.mul(0)), u.x.mul(0.0331941).add(u.y.mul(0.9668058)).add(u.z.mul(0)), u.x.mul(0.0170826).add(u.y.mul(0.0723974)).add(u.z.mul(0.9105199))), _ = (u) => {
4
- const m = u.x, l = u.y, s = u.z, c = m.mul(0.4122214708).add(l.mul(0.5363325363)).add(s.mul(0.0514459929)), e = m.mul(0.2119034982).add(l.mul(0.6806995451).add(s.mul(0.1073969566))), x = m.mul(0.0883024619).add(l.mul(0.2817188376)).add(s.mul(0.6299787005)), t = r(c, d(1 / 3)), a = r(e, d(1 / 3)), n = r(x, d(1 / 3));
5
- return o(t.mul(0.2104542553).add(a.mul(0.793617785)).sub(n.mul(0.0040720468)), t.mul(1.9779984951).sub(a.mul(2.428592205)).add(n.mul(0.4505937099)), t.mul(0.0259040371).add(a.mul(0.7827717662)).sub(n.mul(0.808675766)));
6
- }, v = (u) => {
7
- const m = u.x, l = u.y, s = u.z, c = m.add(l.mul(0.3963377774)).add(s.mul(0.2158037573)), e = m.sub(l.mul(0.1055613458)).sub(s.mul(0.0638541728)), x = m.sub(l.mul(0.0894841775)).sub(s.mul(1.291485548)), t = r(c, d(3)), a = r(e, d(3)), n = r(x, d(3));
8
- return o(t.mul(4.0767416621).sub(a.mul(3.3077115913)).add(n.mul(0.2309699292)), t.mul(-1.2684380046).add(a.mul(2.6097574011)).sub(n.mul(0.3413193965)), t.mul(-0.0041960863).sub(a.mul(0.7034186147)).add(n.mul(1.707614701)));
9
- }, T = (u) => {
10
- const m = u.x, l = u.y, s = u.z;
11
- return o(m, E(l.mul(l).add(s.mul(s))), G(s, l));
12
- }, H = (u) => {
13
- const m = u.x, l = u.y, s = u.z;
14
- return o(m, l.mul(p(s)), l.mul(A(s)));
15
- };
16
- const P = (u, m, l, s) => {
17
- const c = o(u.x, u.y, u.z), e = o(m.x, m.y, m.z), x = u.w, t = m.w, a = b(c, e, l), n = h(c), R = h(e), z = _(n), k = _(R), O = i(v(H(b(T(z), T(k), l)))), q = i(v(b(z, k, l))), w = s.greaterThanEqual(d(0.5)), y = s.greaterThanEqual(d(1.5)).select(q, w.select(O, a)), B = b(x, t, l);
18
- return C(y.x, y.y, y.z, B);
19
- };
20
- export {
21
- P as t
22
- };