shaders 2.2.22 → 2.2.23

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.
@@ -83,7 +83,7 @@ const W = {
83
83
  }
84
84
  },
85
85
  fragmentNode: ({ uniforms: s, uvContext: B }) => {
86
- const { vec2: c, vec4: G, float: r, sin: T, atan2: D, length: P, pow: x, smoothstep: S, mix: p, clamp: g, screenUV: U, time: _, PI: w, Fn: h } = J, F = B ?? U, I = c(s.center.uniform.x, s.center.uniform.y.oneMinus()), m = F.sub(I), V = h(([n]) => {
86
+ const { vec2: c, vec4: G, float: r, sin: T, atan: D, length: P, pow: x, smoothstep: S, mix: p, clamp: g, screenUV: U, time: _, PI: w, Fn: h } = J, F = B ?? U, I = c(s.center.uniform.x, s.center.uniform.y.oneMinus()), m = F.sub(I), V = h(([n]) => {
87
87
  const t = n.floor(), e = n.fract(), o = (u) => T(u.x.mul(127.1).add(u.y.mul(311.7))).mul(43758.5453).fract(), l = o(t), a = o(t.add(c(1, 0))), d = o(t.add(c(0, 1))), y = o(t.add(c(1, 1))), i = e.mul(e).mul(e.mul(-2).add(3));
88
88
  return p(p(l, a, i.x), p(d, y, i.x), i.y);
89
89
  }), f = h(([n, t, e, o]) => {
@@ -23,7 +23,7 @@ import { n as ht } from "./FilmGrain-zA_-knOw.js";
23
23
  import { n as pt } from "./FloatingParticles-BhVnqMsE.js";
24
24
  import { n as gt } from "./GlassTiles-CFI57glh.js";
25
25
  import { n as bt } from "./Glow-CQgl3IoS.js";
26
- import { n as vt } from "./Godrays-BBCtZxbv.js";
26
+ import { n as vt } from "./Godrays-BHMix_Bh.js";
27
27
  import "./TSLBase-BFMvTOak.js";
28
28
  import "./ColorAdjustment-CKwpE_4M.js";
29
29
  import { n as Ct } from "./Grayscale-CAEFLteL.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Godrays/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAMvE,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAA;IACzC,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,MAAM,CAAA;CAC1B;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAwKnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Godrays/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAMvE,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAA;IACzC,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,MAAM,CAAA;CAC1B;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAyKnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import "../../three.tsl-Btj1hLsf.js";
2
2
  import "../../transformations-CsrIJXh-.js";
3
- import { n as i, t as r } from "../../Godrays-BBCtZxbv.js";
3
+ import { n as i, t as r } from "../../Godrays-BHMix_Bh.js";
4
4
  export {
5
5
  i as componentDefinition,
6
6
  r as default
@@ -71635,7 +71635,7 @@ var { vec2: ahe, vec4: ohe } = St, vr = (e) => {
71635
71635
  }
71636
71636
  },
71637
71637
  fragmentNode: ({ uniforms: e, uvContext: t }) => {
71638
- const { vec2: r, vec4: n, float: i, sin: s, atan2: a, length: o, pow: l, smoothstep: u, mix: c, clamp: h, screenUV: d, time: p, PI: f, Fn: g } = St, m = t ?? d, y = r(e.center.uniform.x, e.center.uniform.y.oneMinus()), v = m.sub(y), x = g(([V]) => {
71638
+ const { vec2: r, vec4: n, float: i, sin: s, atan: a, length: o, pow: l, smoothstep: u, mix: c, clamp: h, screenUV: d, time: p, PI: f, Fn: g } = St, m = t ?? d, y = r(e.center.uniform.x, e.center.uniform.y.oneMinus()), v = m.sub(y), x = g(([V]) => {
71639
71639
  const K = V.floor(), J = V.fract(), q = (wt) => s(wt.x.mul(127.1).add(wt.y.mul(311.7))).mul(43758.5453).fract(), X = q(K), de = q(K.add(r(1, 0))), Oe = q(K.add(r(0, 1))), we = q(K.add(r(1, 1))), ut = J.mul(J).mul(J.mul(-2).add(3));
71640
71640
  return c(c(X, de, ut.x), c(Oe, we, ut.x), ut.y);
71641
71641
  }), T = g(([V, K, J, q]) => {
@@ -70625,7 +70625,7 @@ const yc = {
70625
70625
  }
70626
70626
  },
70627
70627
  fragmentNode: ({ uniforms: t, uvContext: e }) => {
70628
- const { vec2: r, vec4: n, float: s, sin: i, atan2: a, length: o, pow: l, smoothstep: u, mix: c, clamp: h, screenUV: p, time: d, PI: f, Fn: m } = yt, x = e ?? p, g = r(t.center.uniform.x, t.center.uniform.y.oneMinus()), y = x.sub(g), b = m(([D]) => {
70628
+ const { vec2: r, vec4: n, float: s, sin: i, atan: a, length: o, pow: l, smoothstep: u, mix: c, clamp: h, screenUV: p, time: d, PI: f, Fn: m } = yt, x = e ?? p, g = r(t.center.uniform.x, t.center.uniform.y.oneMinus()), y = x.sub(g), b = m(([D]) => {
70629
70629
  const j = D.floor(), te = D.fract(), W = (Tt) => i(Tt.x.mul(127.1).add(Tt.y.mul(311.7))).mul(43758.5453).fract(), Y = W(j), ie = W(j.add(r(1, 0))), Re = W(j.add(r(0, 1))), Ne = W(j.add(r(1, 1))), Je = te.mul(te).mul(te.mul(-2).add(3));
70630
70630
  return c(c(Y, ie, Je.x), c(Re, Ne, Je.x), Je.y);
70631
70631
  }), T = m(([D, j, te, W]) => {
@@ -71607,7 +71607,7 @@ var { vec2: Qce, vec4: Jce } = _t, yr = (e) => {
71607
71607
  }
71608
71608
  },
71609
71609
  fragmentNode: ({ uniforms: e, uvContext: t }) => {
71610
- const { vec2: r, vec4: n, float: i, sin: s, atan2: a, length: o, pow: l, smoothstep: u, mix: c, clamp: d, screenUV: h, time: p, PI: g, Fn: m } = _t, v = t ?? h, y = r(e.center.uniform.x, e.center.uniform.y.oneMinus()), b = v.sub(y), T = m(([z]) => {
71610
+ const { vec2: r, vec4: n, float: i, sin: s, atan: a, length: o, pow: l, smoothstep: u, mix: c, clamp: d, screenUV: h, time: p, PI: g, Fn: m } = _t, v = t ?? h, y = r(e.center.uniform.x, e.center.uniform.y.oneMinus()), b = v.sub(y), T = m(([z]) => {
71611
71611
  const Z = z.floor(), ee = z.fract(), X = (St) => s(St.x.mul(127.1).add(St.y.mul(311.7))).mul(43758.5453).fract(), j = X(Z), de = X(Z.add(r(1, 0))), Fe = X(Z.add(r(0, 1))), we = X(Z.add(r(1, 1))), ot = ee.mul(ee).mul(ee.mul(-2).add(3));
71612
71612
  return c(c(j, de, ot.x), c(Fe, we, ot.x), ot.y);
71613
71613
  }), w = m(([z, Z, ee, X]) => {
package/dist/vue/index.js CHANGED
@@ -71605,7 +71605,7 @@ var { vec2: ude, vec4: cde } = Tt, Sr = (e) => {
71605
71605
  }
71606
71606
  },
71607
71607
  fragmentNode: ({ uniforms: e, uvContext: t }) => {
71608
- const { vec2: r, vec4: n, float: i, sin: s, atan2: a, length: o, pow: l, smoothstep: u, mix: c, clamp: h, screenUV: m, time: p, PI: d, Fn: f } = Tt, g = t ?? m, y = r(e.center.uniform.x, e.center.uniform.y.oneMinus()), v = g.sub(y), b = f(([k]) => {
71608
+ const { vec2: r, vec4: n, float: i, sin: s, atan: a, length: o, pow: l, smoothstep: u, mix: c, clamp: h, screenUV: m, time: p, PI: d, Fn: f } = Tt, g = t ?? m, y = r(e.center.uniform.x, e.center.uniform.y.oneMinus()), v = g.sub(y), b = f(([k]) => {
71609
71609
  const K = k.floor(), J = k.fract(), j = (wt) => s(wt.x.mul(127.1).add(wt.y.mul(311.7))).mul(43758.5453).fract(), X = j(K), de = j(K.add(r(1, 0))), Oe = j(K.add(r(0, 1))), we = j(K.add(r(1, 1))), ut = J.mul(J).mul(J.mul(-2).add(3));
71610
71610
  return c(c(X, de, ut.x), c(Oe, we, ut.x), ut.y);
71611
71611
  }), S = f(([k, K, J, j]) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shaders",
3
- "version": "2.2.22",
3
+ "version": "2.2.23",
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/",