viral-viewer-2 6.7.9 → 6.8.0

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.
@@ -98,7 +98,11 @@ export declare class ViralVisibilityManager {
98
98
  private _isGeneratedRain;
99
99
  enableRain(): void;
100
100
  disableRain(): void;
101
- enableAntiAlias(): void;
102
- disableAntiAlias(): void;
101
+ /**
102
+ * increase resolution to n, use for upscale resolution for anti alias
103
+ * @param numberOfSampling number of scaling, default is 2
104
+ */
105
+ enableSampling(numberOfSampling?: number): void;
106
+ disableSampling(): void;
103
107
  generateLOD(): void;
104
108
  }
package/dist/index.mjs CHANGED
@@ -209,7 +209,7 @@ const qy = (s) => s < 256 ? oc[s] : oc[256 + (s >>> 7)], cc = (s, e) => {
209
209
  s.pending_buf[s.pending++] = e & 255, s.pending_buf[s.pending++] = e >>> 8 & 255;
210
210
  }, Vn = (s, e, t) => {
211
211
  s.bi_valid > jd - t ? (s.bi_buf |= e << s.bi_valid & 65535, cc(s, s.bi_buf), s.bi_buf = e >> jd - s.bi_valid, s.bi_valid += t - jd) : (s.bi_buf |= e << s.bi_valid & 65535, s.bi_valid += t);
212
- }, Us = (s, e, t) => {
212
+ }, zs = (s, e, t) => {
213
213
  Vn(
214
214
  s,
215
215
  t[e * 2],
@@ -299,9 +299,9 @@ const qy = (s) => s < 256 ? oc[s] : oc[256 + (s >>> 7)], cc = (s, e) => {
299
299
  let i, n, r = 0, a, o;
300
300
  if (s.sym_next !== 0)
301
301
  do
302
- i = s.pending_buf[s.sym_buf + r++] & 255, i += (s.pending_buf[s.sym_buf + r++] & 255) << 8, n = s.pending_buf[s.sym_buf + r++], i === 0 ? Us(s, n, e) : (a = lc[n], Us(s, a + Mc + 1, e), o = Sf[a], o !== 0 && (n -= kp[a], Vn(s, n, o)), i--, a = qy(i), Us(s, a, t), o = sd[a], o !== 0 && (i -= fd[a], Vn(s, i, o)));
302
+ i = s.pending_buf[s.sym_buf + r++] & 255, i += (s.pending_buf[s.sym_buf + r++] & 255) << 8, n = s.pending_buf[s.sym_buf + r++], i === 0 ? zs(s, n, e) : (a = lc[n], zs(s, a + Mc + 1, e), o = Sf[a], o !== 0 && (n -= kp[a], Vn(s, n, o)), i--, a = qy(i), zs(s, a, t), o = sd[a], o !== 0 && (i -= fd[a], Vn(s, i, o)));
303
303
  while (r < s.sym_next);
304
- Us(s, Up, e);
304
+ zs(s, Up, e);
305
305
  }, Af = (s, e) => {
306
306
  const t = e.dyn_tree, i = e.stat_desc.static_tree, n = e.stat_desc.has_stree, r = e.stat_desc.elems;
307
307
  let a, o, c = -1, d;
@@ -351,10 +351,10 @@ const qy = (s) => s < 256 ? oc[s] : oc[256 + (s >>> 7)], cc = (s, e) => {
351
351
  if (r = a, a = e[(i + 1) * 2 + 1], !(++o < c && r === a)) {
352
352
  if (o < d)
353
353
  do
354
- Us(s, r, s.bl_tree);
354
+ zs(s, r, s.bl_tree);
355
355
  while (--o !== 0);
356
356
  else
357
- r !== 0 ? (r !== n && (Us(s, r, s.bl_tree), o--), Us(s, Vy, s.bl_tree), Vn(s, o - 3, 2)) : o <= 10 ? (Us(s, Xy, s.bl_tree), Vn(s, o - 3, 3)) : (Us(s, Hy, s.bl_tree), Vn(s, o - 11, 7));
357
+ r !== 0 ? (r !== n && (zs(s, r, s.bl_tree), o--), zs(s, Vy, s.bl_tree), Vn(s, o - 3, 2)) : o <= 10 ? (zs(s, Xy, s.bl_tree), Vn(s, o - 3, 3)) : (zs(s, Hy, s.bl_tree), Vn(s, o - 11, 7));
358
358
  o = 0, n = r, a === 0 ? (c = 138, d = 3) : r === a ? (c = 6, d = 3) : (c = 7, d = 4);
359
359
  }
360
360
  }, ib = (s) => {
@@ -385,7 +385,7 @@ const rb = (s) => {
385
385
  }, Jy = (s, e, t, i) => {
386
386
  Vn(s, (Wx << 1) + (i ? 1 : 0), 3), $y(s), cc(s, t), cc(s, ~t), t && s.pending_buf.set(s.window.subarray(e, e + t), s.pending), s.pending += t;
387
387
  }, ab = (s) => {
388
- Vn(s, ky << 1, 3), Us(s, Up, vr), Jx(s);
388
+ Vn(s, ky << 1, 3), zs(s, Up, vr), Jx(s);
389
389
  }, ob = (s, e, t, i) => {
390
390
  let n, r, a = 0;
391
391
  s.level > 0 ? (s.strm.data_type === Gx && (s.strm.data_type = sb(s)), Af(s, s.l_desc), Af(s, s.d_desc), a = ib(s), n = s.opt_len + 3 + 7 >>> 3, r = s.static_len + 3 + 7 >>> 3, r <= n && (n = r)) : n = r = t + 5, t + 4 <= n && e !== -1 ? Jy(s, e, t, i) : s.strategy === Yx || r === n ? (Vn(s, (ky << 1) + (i ? 1 : 0), 3), Nm(s, vr, $l)) : (Vn(s, (Qx << 1) + (i ? 1 : 0), 3), nb(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, a + 1), Nm(s, s.dyn_ltree, s.dyn_dtree)), Ky(s), i && $y(s);
@@ -650,30 +650,30 @@ const $n = (s) => {
650
650
  }
651
651
  return s.insert = 0, e === cs ? (ts(s, !0), s.strm.avail_out === 0 ? Oa : nl) : s.sym_next && (ts(s, !1), s.strm.avail_out === 0) ? Ln : il;
652
652
  };
653
- function Ds(s, e, t, i, n) {
653
+ function Is(s, e, t, i, n) {
654
654
  this.good_length = s, this.max_lazy = e, this.nice_length = t, this.max_chain = i, this.func = n;
655
655
  }
656
656
  const Ql = [
657
657
  /* good lazy nice chain */
658
- new Ds(0, 0, 0, 0, tv),
658
+ new Is(0, 0, 0, 0, tv),
659
659
  /* 0 store only */
660
- new Ds(4, 4, 8, 4, tu),
660
+ new Is(4, 4, 8, 4, tu),
661
661
  /* 1 max speed, no lazy matches */
662
- new Ds(4, 5, 16, 8, tu),
662
+ new Is(4, 5, 16, 8, tu),
663
663
  /* 2 */
664
- new Ds(4, 6, 32, 32, tu),
664
+ new Is(4, 6, 32, 32, tu),
665
665
  /* 3 */
666
- new Ds(4, 4, 16, 16, Ga),
666
+ new Is(4, 4, 16, 16, Ga),
667
667
  /* 4 lazy matches */
668
- new Ds(8, 16, 32, 32, Ga),
668
+ new Is(8, 16, 32, 32, Ga),
669
669
  /* 5 */
670
- new Ds(8, 16, 128, 128, Ga),
670
+ new Is(8, 16, 128, 128, Ga),
671
671
  /* 6 */
672
- new Ds(8, 32, 128, 256, Ga),
672
+ new Is(8, 32, 128, 256, Ga),
673
673
  /* 7 */
674
- new Ds(32, 128, 258, 1024, Ga),
674
+ new Is(32, 128, 258, 1024, Ga),
675
675
  /* 8 */
676
- new Ds(32, 258, 258, 4096, Ga)
676
+ new Is(32, 258, 258, 4096, Ga)
677
677
  /* 9 max compression */
678
678
  ], Wb = (s) => {
679
679
  s.window_size = 2 * s.w_size, Gr(s.head), s.max_lazy_match = Ql[s.level].max_lazy, s.good_match = Ql[s.level].good_length, s.nice_match = Ql[s.level].nice_length, s.max_chain_length = Ql[s.level].max_chain, s.strstart = 0, s.block_start = 0, s.lookahead = 0, s.insert = 0, s.match_length = s.prev_length = oi - 1, s.match_available = 0, s.ins_h = 0;
@@ -2054,7 +2054,7 @@ let w1 = class {
2054
2054
  };
2055
2055
  var uu;
2056
2056
  const _1 = "2.9.0", Yc = 1 / 8, M1 = /Mac/.test((uu = globalThis == null ? void 0 : globalThis.navigator) === null || uu === void 0 ? void 0 : uu.platform);
2057
- let Xt, _g, Gc, fu, kn, jt, ui, Za, _l, Ls, Os, ua, Mg, Sg, rs, Ml, ja, Ag, pu, Tg, mu, gu, Wc;
2057
+ let Xt, _g, Gc, fu, kn, jt, ui, Za, _l, Ds, Ls, ua, Mg, Sg, rs, Ml, ja, Ag, pu, Tg, mu, gu, Wc;
2058
2058
  class ks extends w1 {
2059
2059
  /**
2060
2060
  * Injects THREE as the dependency. You can then proceed to use CameraControls.
@@ -2097,7 +2097,7 @@ class ks extends w1 {
2097
2097
  * @category Statics
2098
2098
  */
2099
2099
  static install(e) {
2100
- Xt = e.THREE, _g = Object.freeze(new Xt.Vector3(0, 0, 0)), Gc = Object.freeze(new Xt.Vector3(0, 1, 0)), fu = Object.freeze(new Xt.Vector3(0, 0, 1)), kn = new Xt.Vector2(), jt = new Xt.Vector3(), ui = new Xt.Vector3(), Za = new Xt.Vector3(), _l = new Xt.Vector3(), Ls = new Xt.Vector3(), Os = new Xt.Vector3(), ua = new Xt.Vector3(), Mg = new Xt.Vector3(), Sg = new Xt.Vector3(), rs = new Xt.Spherical(), Ml = new Xt.Spherical(), ja = new Xt.Box3(), Ag = new Xt.Box3(), pu = new Xt.Sphere(), Tg = new Xt.Quaternion(), mu = new Xt.Quaternion(), gu = new Xt.Matrix4(), Wc = new Xt.Raycaster();
2100
+ Xt = e.THREE, _g = Object.freeze(new Xt.Vector3(0, 0, 0)), Gc = Object.freeze(new Xt.Vector3(0, 1, 0)), fu = Object.freeze(new Xt.Vector3(0, 0, 1)), kn = new Xt.Vector2(), jt = new Xt.Vector3(), ui = new Xt.Vector3(), Za = new Xt.Vector3(), _l = new Xt.Vector3(), Ds = new Xt.Vector3(), Ls = new Xt.Vector3(), ua = new Xt.Vector3(), Mg = new Xt.Vector3(), Sg = new Xt.Vector3(), rs = new Xt.Spherical(), Ml = new Xt.Spherical(), ja = new Xt.Box3(), Ag = new Xt.Box3(), pu = new Xt.Sphere(), Tg = new Xt.Quaternion(), mu = new Xt.Quaternion(), gu = new Xt.Matrix4(), Wc = new Xt.Raycaster();
2101
2101
  }
2102
2102
  /**
2103
2103
  * list all ACTIONs
@@ -2638,8 +2638,8 @@ class ks extends w1 {
2638
2638
  * @category Methods
2639
2639
  */
2640
2640
  truck(e, t, i = !1) {
2641
- this._camera.updateMatrix(), Ls.setFromMatrixColumn(this._camera.matrix, 0), Os.setFromMatrixColumn(this._camera.matrix, 1), Ls.multiplyScalar(e), Os.multiplyScalar(-t);
2642
- const n = jt.copy(Ls).add(Os), r = ui.copy(this._targetEnd).add(n);
2641
+ this._camera.updateMatrix(), Ds.setFromMatrixColumn(this._camera.matrix, 0), Ls.setFromMatrixColumn(this._camera.matrix, 1), Ds.multiplyScalar(e), Ls.multiplyScalar(-t);
2642
+ const n = jt.copy(Ds).add(Ls), r = ui.copy(this._targetEnd).add(n);
2643
2643
  return this.moveTo(r.x, r.y, r.z, i);
2644
2644
  }
2645
2645
  /**
@@ -2833,9 +2833,9 @@ class ks extends w1 {
2833
2833
  * @category Methods
2834
2834
  */
2835
2835
  setOrbitPoint(e, t, i) {
2836
- this._camera.updateMatrixWorld(), Ls.setFromMatrixColumn(this._camera.matrixWorldInverse, 0), Os.setFromMatrixColumn(this._camera.matrixWorldInverse, 1), ua.setFromMatrixColumn(this._camera.matrixWorldInverse, 2);
2836
+ this._camera.updateMatrixWorld(), Ds.setFromMatrixColumn(this._camera.matrixWorldInverse, 0), Ls.setFromMatrixColumn(this._camera.matrixWorldInverse, 1), ua.setFromMatrixColumn(this._camera.matrixWorldInverse, 2);
2837
2837
  const n = jt.set(e, t, i), r = n.distanceTo(this._camera.position), a = n.sub(this._camera.position);
2838
- Ls.multiplyScalar(a.x), Os.multiplyScalar(a.y), ua.multiplyScalar(a.z), jt.copy(Ls).add(Os).add(ua), jt.z = jt.z + r, this.dollyTo(r, !1), this.setFocalOffset(-jt.x, jt.y, -jt.z, !1), this.moveTo(e, t, i, !1);
2838
+ Ds.multiplyScalar(a.x), Ls.multiplyScalar(a.y), ua.multiplyScalar(a.z), jt.copy(Ds).add(Ls).add(ua), jt.z = jt.z + r, this.dollyTo(r, !1), this.setFocalOffset(-jt.x, jt.y, -jt.z, !1), this.moveTo(e, t, i, !1);
2839
2839
  }
2840
2840
  /**
2841
2841
  * Set the boundary box that encloses the target of the camera. box3 is in THREE.Box3
@@ -3051,7 +3051,7 @@ class ks extends w1 {
3051
3051
  }
3052
3052
  this._camera.zoom !== this._zoom && (this._camera.zoom = this._zoom, this._camera.updateProjectionMatrix(), this._updateNearPlaneCorners(), this._needsUpdate = !0), this._dragNeedsUpdate = !0;
3053
3053
  const c = this._collisionTest();
3054
- this._spherical.radius = Math.min(this._spherical.radius, c), this._spherical.makeSafe(), this._camera.position.setFromSpherical(this._spherical).applyQuaternion(this._yAxisUpSpaceInverse).add(this._target), this._camera.lookAt(this._target), (!Ri(this._focalOffset.x) || !Ri(this._focalOffset.y) || !Ri(this._focalOffset.z)) && (this._camera.updateMatrixWorld(), Ls.setFromMatrixColumn(this._camera.matrix, 0), Os.setFromMatrixColumn(this._camera.matrix, 1), ua.setFromMatrixColumn(this._camera.matrix, 2), Ls.multiplyScalar(this._focalOffset.x), Os.multiplyScalar(-this._focalOffset.y), ua.multiplyScalar(this._focalOffset.z), jt.copy(Ls).add(Os).add(ua), this._camera.position.add(jt)), this._boundaryEnclosesCamera && this._encloseToBoundary(this._camera.position.copy(this._target), jt.setFromSpherical(this._spherical).applyQuaternion(this._yAxisUpSpaceInverse), 1);
3054
+ this._spherical.radius = Math.min(this._spherical.radius, c), this._spherical.makeSafe(), this._camera.position.setFromSpherical(this._spherical).applyQuaternion(this._yAxisUpSpaceInverse).add(this._target), this._camera.lookAt(this._target), (!Ri(this._focalOffset.x) || !Ri(this._focalOffset.y) || !Ri(this._focalOffset.z)) && (this._camera.updateMatrixWorld(), Ds.setFromMatrixColumn(this._camera.matrix, 0), Ls.setFromMatrixColumn(this._camera.matrix, 1), ua.setFromMatrixColumn(this._camera.matrix, 2), Ds.multiplyScalar(this._focalOffset.x), Ls.multiplyScalar(-this._focalOffset.y), ua.multiplyScalar(this._focalOffset.z), jt.copy(Ds).add(Ls).add(ua), this._camera.position.add(jt)), this._boundaryEnclosesCamera && this._encloseToBoundary(this._camera.position.copy(this._target), jt.setFromSpherical(this._spherical).applyQuaternion(this._yAxisUpSpaceInverse), 1);
3055
3055
  const f = this._needsUpdate;
3056
3056
  return f && !this._updatedLastTime ? (this._hasRested = !1, this.dispatchEvent({ type: "wake" }), this.dispatchEvent({ type: "update" })) : f ? (this.dispatchEvent({ type: "update" }), Ri(t, this.restThreshold) && Ri(i, this.restThreshold) && Ri(n, this.restThreshold) && Ri(r.x, this.restThreshold) && Ri(r.y, this.restThreshold) && Ri(r.z, this.restThreshold) && Ri(a.x, this.restThreshold) && Ri(a.y, this.restThreshold) && Ri(a.z, this.restThreshold) && Ri(o, this.restThreshold) && !this._hasRested && (this._hasRested = !0, this.dispatchEvent({ type: "rest" }))) : !f && this._updatedLastTime && this.dispatchEvent({ type: "sleep" }), this._lastDistance = this._spherical.radius, this._lastZoom = this._zoom, this._updatedLastTime = f, this._needsUpdate = !1, f;
3057
3057
  }
@@ -3255,7 +3255,7 @@ class ks extends w1 {
3255
3255
  * Copyright 2010-2024 Three.js Authors
3256
3256
  * SPDX-License-Identifier: MIT
3257
3257
  */
3258
- const Hp = "171", S1 = 0, Eg = 1, A1 = 2, wv = 1, T1 = 2, Ns = 3, Ps = 0, Bn = 1, sn = 2, yn = 0, ko = 1, pc = 2, Pg = 3, Cg = 4, _v = 5, br = 100, E1 = 101, P1 = 102, C1 = 103, R1 = 104, Lf = 200, I1 = 201, D1 = 202, L1 = 203, Of = 204, Bf = 205, Mv = 206, O1 = 207, Sv = 208, B1 = 209, N1 = 210, z1 = 211, U1 = 212, k1 = 213, F1 = 214, Nf = 0, zf = 1, Uf = 2, Na = 3, kf = 4, Ff = 5, Vf = 6, Xf = 7, Cd = 0, V1 = 1, X1 = 2, ea = 0, Av = 1, Tv = 2, Ev = 3, Pv = 4, H1 = 5, Cv = 6, Rv = 7, Rg = "attached", Y1 = "detached", Yp = 300, za = 301, Ua = 302, gd = 303, yd = 304, Ec = 306, Cs = 1e3, _r = 1001, mc = 1002, yi = 1003, Gp = 1004, Po = 1005, Ii = 1006, tc = 1007, Fs = 1008, Pr = 1009, Iv = 1010, Dv = 1011, gc = 1012, Wp = 1013, Ts = 1014, On = 1015, Ni = 1016, Qp = 1017, qp = 1018, na = 1020, Lv = 35902, Ov = 1021, Bv = 1022, Hi = 1023, Nv = 1024, zv = 1025, ta = 1026, sa = 1027, Pc = 1028, Rd = 1029, Uv = 1030, Zp = 1031, jp = 1033, rd = 33776, ad = 33777, od = 33778, ld = 33779, Hf = 35840, Yf = 35841, Gf = 35842, Wf = 35843, Qf = 36196, qf = 37492, Zf = 37496, jf = 37808, Kf = 37809, $f = 37810, Jf = 37811, ep = 37812, tp = 37813, ip = 37814, np = 37815, sp = 37816, rp = 37817, ap = 37818, op = 37819, lp = 37820, cp = 37821, cd = 36492, hp = 36494, dp = 36495, kv = 36283, up = 36284, fp = 36285, pp = 36286, G1 = 2200, W1 = 2201, Q1 = 2202, yc = 2300, vc = 2301, yu = 2302, Co = 2400, Ro = 2401, vd = 2402, Kp = 2500, q1 = 2501, Z1 = 0, Fv = 1, mp = 2, j1 = 3200, Vv = 3201, Xa = 0, K1 = 1, wr = "", gn = "srgb", Nn = "srgb-linear", xd = "linear", Ai = "srgb", Ka = 7680, Ig = 519, $1 = 512, J1 = 513, e_ = 514, Xv = 515, t_ = 516, i_ = 517, n_ = 518, s_ = 519, gp = 35044, yp = "300 es", Mr = 2e3, bd = 2001;
3258
+ const Hp = "171", S1 = 0, Eg = 1, A1 = 2, wv = 1, T1 = 2, Bs = 3, Es = 0, Bn = 1, sn = 2, yn = 0, ko = 1, pc = 2, Pg = 3, Cg = 4, _v = 5, br = 100, E1 = 101, P1 = 102, C1 = 103, R1 = 104, Lf = 200, I1 = 201, D1 = 202, L1 = 203, Of = 204, Bf = 205, Mv = 206, O1 = 207, Sv = 208, B1 = 209, N1 = 210, z1 = 211, U1 = 212, k1 = 213, F1 = 214, Nf = 0, zf = 1, Uf = 2, Na = 3, kf = 4, Ff = 5, Vf = 6, Xf = 7, Cd = 0, V1 = 1, X1 = 2, ea = 0, Av = 1, Tv = 2, Ev = 3, Pv = 4, H1 = 5, Cv = 6, Rv = 7, Rg = "attached", Y1 = "detached", Yp = 300, za = 301, Ua = 302, gd = 303, yd = 304, Ec = 306, Ps = 1e3, _r = 1001, mc = 1002, yi = 1003, Gp = 1004, Po = 1005, Ii = 1006, tc = 1007, Fs = 1008, Pr = 1009, Iv = 1010, Dv = 1011, gc = 1012, Wp = 1013, As = 1014, On = 1015, Ni = 1016, Qp = 1017, qp = 1018, na = 1020, Lv = 35902, Ov = 1021, Bv = 1022, Hi = 1023, Nv = 1024, zv = 1025, ta = 1026, sa = 1027, Pc = 1028, Rd = 1029, Uv = 1030, Zp = 1031, jp = 1033, rd = 33776, ad = 33777, od = 33778, ld = 33779, Hf = 35840, Yf = 35841, Gf = 35842, Wf = 35843, Qf = 36196, qf = 37492, Zf = 37496, jf = 37808, Kf = 37809, $f = 37810, Jf = 37811, ep = 37812, tp = 37813, ip = 37814, np = 37815, sp = 37816, rp = 37817, ap = 37818, op = 37819, lp = 37820, cp = 37821, cd = 36492, hp = 36494, dp = 36495, kv = 36283, up = 36284, fp = 36285, pp = 36286, G1 = 2200, W1 = 2201, Q1 = 2202, yc = 2300, vc = 2301, yu = 2302, Co = 2400, Ro = 2401, vd = 2402, Kp = 2500, q1 = 2501, Z1 = 0, Fv = 1, mp = 2, j1 = 3200, Vv = 3201, Xa = 0, K1 = 1, wr = "", gn = "srgb", Nn = "srgb-linear", xd = "linear", Ai = "srgb", Ka = 7680, Ig = 519, $1 = 512, J1 = 513, e_ = 514, Xv = 515, t_ = 516, i_ = 517, n_ = 518, s_ = 519, gp = 35044, yp = "300 es", Mr = 2e3, bd = 2001;
3259
3259
  let Ir = class {
3260
3260
  addEventListener(e, t) {
3261
3261
  this._listeners === void 0 && (this._listeners = {});
@@ -4123,7 +4123,7 @@ class Wi extends Ir {
4123
4123
  return e;
4124
4124
  if (e.applyMatrix3(this.matrix), e.x < 0 || e.x > 1)
4125
4125
  switch (this.wrapS) {
4126
- case Cs:
4126
+ case Ps:
4127
4127
  e.x = e.x - Math.floor(e.x);
4128
4128
  break;
4129
4129
  case _r:
@@ -4135,7 +4135,7 @@ class Wi extends Ir {
4135
4135
  }
4136
4136
  if (e.y < 0 || e.y > 1)
4137
4137
  switch (this.wrapT) {
4138
- case Cs:
4138
+ case Ps:
4139
4139
  e.y = e.y - Math.floor(e.y);
4140
4140
  break;
4141
4141
  case _r:
@@ -6567,7 +6567,7 @@ lt.NAMES = Gv;
6567
6567
  let k_ = 0;
6568
6568
  class xn extends Ir {
6569
6569
  constructor() {
6570
- super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: k_++ }), this.uuid = us(), this.name = "", this.type = "Material", this.blending = ko, this.side = Ps, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = Of, this.blendDst = Bf, this.blendEquation = br, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new lt(0, 0, 0), this.blendAlpha = 0, this.depthFunc = Na, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Ig, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Ka, this.stencilZFail = Ka, this.stencilZPass = Ka, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
6570
+ super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: k_++ }), this.uuid = us(), this.name = "", this.type = "Material", this.blending = ko, this.side = Es, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = Of, this.blendDst = Bf, this.blendEquation = br, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new lt(0, 0, 0), this.blendAlpha = 0, this.depthFunc = Na, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Ig, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Ka, this.stencilZFail = Ka, this.stencilZPass = Ka, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
6571
6571
  }
6572
6572
  get alphaTest() {
6573
6573
  return this._alphaTest;
@@ -6612,7 +6612,7 @@ class xn extends Ir {
6612
6612
  generator: "Material.toJSON"
6613
6613
  }
6614
6614
  };
6615
- i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (i.dispersion = this.dispersion), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapRotation !== void 0 && (i.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== ko && (i.blending = this.blending), this.side !== Ps && (i.side = this.side), this.vertexColors === !0 && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = !0), this.blendSrc !== Of && (i.blendSrc = this.blendSrc), this.blendDst !== Bf && (i.blendDst = this.blendDst), this.blendEquation !== br && (i.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (i.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (i.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (i.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (i.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (i.blendAlpha = this.blendAlpha), this.depthFunc !== Na && (i.depthFunc = this.depthFunc), this.depthTest === !1 && (i.depthTest = this.depthTest), this.depthWrite === !1 && (i.depthWrite = this.depthWrite), this.colorWrite === !1 && (i.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (i.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Ig && (i.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (i.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (i.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== Ka && (i.stencilFail = this.stencilFail), this.stencilZFail !== Ka && (i.stencilZFail = this.stencilZFail), this.stencilZPass !== Ka && (i.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (i.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (i.rotation = this.rotation), this.polygonOffset === !0 && (i.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (i.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (i.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (i.linewidth = this.linewidth), this.dashSize !== void 0 && (i.dashSize = this.dashSize), this.gapSize !== void 0 && (i.gapSize = this.gapSize), this.scale !== void 0 && (i.scale = this.scale), this.dithering === !0 && (i.dithering = !0), this.alphaTest > 0 && (i.alphaTest = this.alphaTest), this.alphaHash === !0 && (i.alphaHash = !0), this.alphaToCoverage === !0 && (i.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (i.premultipliedAlpha = !0), this.forceSinglePass === !0 && (i.forceSinglePass = !0), this.wireframe === !0 && (i.wireframe = !0), this.wireframeLinewidth > 1 && (i.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (i.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (i.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (i.flatShading = !0), this.visible === !1 && (i.visible = !1), this.toneMapped === !1 && (i.toneMapped = !1), this.fog === !1 && (i.fog = !1), Object.keys(this.userData).length > 0 && (i.userData = this.userData);
6615
+ i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (i.dispersion = this.dispersion), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapRotation !== void 0 && (i.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== ko && (i.blending = this.blending), this.side !== Es && (i.side = this.side), this.vertexColors === !0 && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = !0), this.blendSrc !== Of && (i.blendSrc = this.blendSrc), this.blendDst !== Bf && (i.blendDst = this.blendDst), this.blendEquation !== br && (i.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (i.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (i.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (i.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (i.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (i.blendAlpha = this.blendAlpha), this.depthFunc !== Na && (i.depthFunc = this.depthFunc), this.depthTest === !1 && (i.depthTest = this.depthTest), this.depthWrite === !1 && (i.depthWrite = this.depthWrite), this.colorWrite === !1 && (i.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (i.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Ig && (i.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (i.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (i.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== Ka && (i.stencilFail = this.stencilFail), this.stencilZFail !== Ka && (i.stencilZFail = this.stencilZFail), this.stencilZPass !== Ka && (i.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (i.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (i.rotation = this.rotation), this.polygonOffset === !0 && (i.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (i.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (i.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (i.linewidth = this.linewidth), this.dashSize !== void 0 && (i.dashSize = this.dashSize), this.gapSize !== void 0 && (i.gapSize = this.gapSize), this.scale !== void 0 && (i.scale = this.scale), this.dithering === !0 && (i.dithering = !0), this.alphaTest > 0 && (i.alphaTest = this.alphaTest), this.alphaHash === !0 && (i.alphaHash = !0), this.alphaToCoverage === !0 && (i.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (i.premultipliedAlpha = !0), this.forceSinglePass === !0 && (i.forceSinglePass = !0), this.wireframe === !0 && (i.wireframe = !0), this.wireframeLinewidth > 1 && (i.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (i.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (i.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (i.flatShading = !0), this.visible === !1 && (i.visible = !1), this.toneMapped === !1 && (i.toneMapped = !1), this.fog === !1 && (i.fog = !1), Object.keys(this.userData).length > 0 && (i.userData = this.userData);
6616
6616
  function n(r) {
6617
6617
  const a = [];
6618
6618
  for (const o in r) {
@@ -7208,7 +7208,7 @@ class de extends fi {
7208
7208
  }
7209
7209
  function X_(s, e, t, i, n, r, a, o) {
7210
7210
  let c;
7211
- if (e.side === Bn ? c = i.intersectTriangle(a, r, n, !0, o) : c = i.intersectTriangle(n, r, a, e.side === Ps, o), c === null)
7211
+ if (e.side === Bn ? c = i.intersectTriangle(a, r, n, !0, o) : c = i.intersectTriangle(n, r, a, e.side === Es, o), c === null)
7212
7212
  return null;
7213
7213
  oh.copy(o), oh.applyMatrix4(s.matrixWorld);
7214
7214
  const d = t.ray.origin.distanceTo(oh);
@@ -8055,7 +8055,7 @@ class sm extends fi {
8055
8055
  super(), this.isBone = !0, this.type = "Bone";
8056
8056
  }
8057
8057
  }
8058
- class Es extends Wi {
8058
+ class Ts extends Wi {
8059
8059
  constructor(e = null, t = 1, i = 1, n, r, a, o, c, d = yi, f = yi, m, p) {
8060
8060
  super(null, a, o, c, d, f, n, r, m, p), this.isDataTexture = !0, this.image = { data: e, width: t, height: i }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
8061
8061
  }
@@ -8108,7 +8108,7 @@ class Ld {
8108
8108
  e = Math.ceil(e / 4) * 4, e = Math.max(e, 4);
8109
8109
  const t = new Float32Array(e * e * 4);
8110
8110
  t.set(this.boneMatrices);
8111
- const i = new Es(t, e, e, Hi, On);
8111
+ const i = new Ts(t, e, e, Hi, On);
8112
8112
  return i.needsUpdate = !0, this.boneMatrices = t, this.boneTexture = i, this;
8113
8113
  }
8114
8114
  getBoneByName(e) {
@@ -8216,7 +8216,7 @@ class rm extends de {
8216
8216
  }
8217
8217
  setMorphAt(e, t) {
8218
8218
  const i = t.morphTargetInfluences, n = i.length + 1;
8219
- this.morphTexture === null && (this.morphTexture = new Es(new Float32Array(n * this.count), n, this.count, Pc, On));
8219
+ this.morphTexture === null && (this.morphTexture = new Ts(new Float32Array(n * this.count), n, this.count, Pc, On));
8220
8220
  const r = this.morphTexture.source.data.data;
8221
8221
  let a = 0;
8222
8222
  for (let d = 0; d < i.length; d++)
@@ -8434,19 +8434,19 @@ class rM extends de {
8434
8434
  _initMatricesTexture() {
8435
8435
  let e = Math.sqrt(this._maxInstanceCount * 4);
8436
8436
  e = Math.ceil(e / 4) * 4, e = Math.max(e, 4);
8437
- const t = new Float32Array(e * e * 4), i = new Es(t, e, e, Hi, On);
8437
+ const t = new Float32Array(e * e * 4), i = new Ts(t, e, e, Hi, On);
8438
8438
  this._matricesTexture = i;
8439
8439
  }
8440
8440
  _initIndirectTexture() {
8441
8441
  let e = Math.sqrt(this._maxInstanceCount);
8442
8442
  e = Math.ceil(e);
8443
- const t = new Uint32Array(e * e), i = new Es(t, e, e, Rd, Ts);
8443
+ const t = new Uint32Array(e * e), i = new Ts(t, e, e, Rd, As);
8444
8444
  this._indirectTexture = i;
8445
8445
  }
8446
8446
  _initColorsTexture() {
8447
8447
  let e = Math.sqrt(this._maxInstanceCount);
8448
8448
  e = Math.ceil(e);
8449
- const t = new Float32Array(e * e * 4).fill(1), i = new Es(t, e, e, Hi, On);
8449
+ const t = new Float32Array(e * e * 4).fill(1), i = new Ts(t, e, e, Hi, On);
8450
8450
  i.colorSpace = si.workingColorSpace, this._colorsTexture = i;
8451
8451
  }
8452
8452
  _initializeGeometry(e) {
@@ -8972,7 +8972,7 @@ class Xo extends Wi {
8972
8972
  constructor(e, t, i, n, r, a, o, c, d, f = ta) {
8973
8973
  if (f !== ta && f !== sa)
8974
8974
  throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
8975
- i === void 0 && f === ta && (i = Ts), i === void 0 && f === sa && (i = na), super(null, n, r, a, o, c, f, i, d), this.isDepthTexture = !0, this.image = { width: e, height: t }, this.magFilter = o !== void 0 ? o : yi, this.minFilter = c !== void 0 ? c : yi, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
8975
+ i === void 0 && f === ta && (i = As), i === void 0 && f === sa && (i = na), super(null, n, r, a, o, c, f, i, d), this.isDepthTexture = !0, this.image = { width: e, height: t }, this.magFilter = o !== void 0 ? o : yi, this.minFilter = c !== void 0 ? c : yi, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
8976
8976
  }
8977
8977
  copy(e) {
8978
8978
  return super.copy(e), this.compareFunction = e.compareFunction, this;
@@ -11228,7 +11228,7 @@ class is extends xn {
11228
11228
  return super.copy(e), this.defines = { STANDARD: "" }, this.color.copy(e.color), this.roughness = e.roughness, this.metalness = e.metalness, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.roughnessMap = e.roughnessMap, this.metalnessMap = e.metalnessMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.envMapIntensity = e.envMapIntensity, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
11229
11229
  }
11230
11230
  }
11231
- class Is extends is {
11231
+ class Rs extends is {
11232
11232
  constructor(e) {
11233
11233
  super(), this.isMeshPhysicalMaterial = !0, this.defines = {
11234
11234
  STANDARD: "",
@@ -12594,7 +12594,7 @@ class Sm extends Dr {
12594
12594
  RawShaderMaterial: bm,
12595
12595
  ShaderMaterial: ri,
12596
12596
  PointsMaterial: Od,
12597
- MeshPhysicalMaterial: Is,
12597
+ MeshPhysicalMaterial: Rs,
12598
12598
  MeshStandardMaterial: is,
12599
12599
  MeshPhongMaterial: Ys,
12600
12600
  MeshToonMaterial: FM,
@@ -12867,7 +12867,7 @@ class lS extends Dr {
12867
12867
  const g = [];
12868
12868
  for (let b = 0, A = p.length; b < A; b++) {
12869
12869
  const _ = p[b], x = o(_);
12870
- x !== null && (x instanceof HTMLImageElement ? g.push(x) : g.push(new Es(x.data, x.width, x.height)));
12870
+ x !== null && (x instanceof HTMLImageElement ? g.push(x) : g.push(new Ts(x.data, x.width, x.height)));
12871
12871
  }
12872
12872
  n[m.uuid] = new Do(g);
12873
12873
  } else {
@@ -12900,7 +12900,7 @@ class lS extends Dr {
12900
12900
  const f = [];
12901
12901
  for (let m = 0, p = d.length; m < p; m++) {
12902
12902
  const g = d[m], b = await r(g);
12903
- b !== null && (b instanceof HTMLImageElement ? f.push(b) : f.push(new Es(b.data, b.width, b.height)));
12903
+ b !== null && (b instanceof HTMLImageElement ? f.push(b) : f.push(new Ts(b.data, b.width, b.height)));
12904
12904
  }
12905
12905
  i[c.uuid] = new Do(f);
12906
12906
  } else {
@@ -12922,7 +12922,7 @@ class lS extends Dr {
12922
12922
  o.image === void 0 && console.warn('THREE.ObjectLoader: No "image" specified for', o.uuid), t[o.image] === void 0 && console.warn("THREE.ObjectLoader: Undefined image", o.image);
12923
12923
  const c = t[o.image], d = c.data;
12924
12924
  let f;
12925
- Array.isArray(d) ? (f = new tm(), d.length === 6 && (f.needsUpdate = !0)) : (d && d.data ? f = new Es() : f = new Wi(), d && (f.needsUpdate = !0)), f.source = c, f.uuid = o.uuid, o.name !== void 0 && (f.name = o.name), o.mapping !== void 0 && (f.mapping = i(o.mapping, cS)), o.channel !== void 0 && (f.channel = o.channel), o.offset !== void 0 && f.offset.fromArray(o.offset), o.repeat !== void 0 && f.repeat.fromArray(o.repeat), o.center !== void 0 && f.center.fromArray(o.center), o.rotation !== void 0 && (f.rotation = o.rotation), o.wrap !== void 0 && (f.wrapS = i(o.wrap[0], S0), f.wrapT = i(o.wrap[1], S0)), o.format !== void 0 && (f.format = o.format), o.internalFormat !== void 0 && (f.internalFormat = o.internalFormat), o.type !== void 0 && (f.type = o.type), o.colorSpace !== void 0 && (f.colorSpace = o.colorSpace), o.minFilter !== void 0 && (f.minFilter = i(o.minFilter, A0)), o.magFilter !== void 0 && (f.magFilter = i(o.magFilter, A0)), o.anisotropy !== void 0 && (f.anisotropy = o.anisotropy), o.flipY !== void 0 && (f.flipY = o.flipY), o.generateMipmaps !== void 0 && (f.generateMipmaps = o.generateMipmaps), o.premultiplyAlpha !== void 0 && (f.premultiplyAlpha = o.premultiplyAlpha), o.unpackAlignment !== void 0 && (f.unpackAlignment = o.unpackAlignment), o.compareFunction !== void 0 && (f.compareFunction = o.compareFunction), o.userData !== void 0 && (f.userData = o.userData), n[o.uuid] = f;
12925
+ Array.isArray(d) ? (f = new tm(), d.length === 6 && (f.needsUpdate = !0)) : (d && d.data ? f = new Ts() : f = new Wi(), d && (f.needsUpdate = !0)), f.source = c, f.uuid = o.uuid, o.name !== void 0 && (f.name = o.name), o.mapping !== void 0 && (f.mapping = i(o.mapping, cS)), o.channel !== void 0 && (f.channel = o.channel), o.offset !== void 0 && f.offset.fromArray(o.offset), o.repeat !== void 0 && f.repeat.fromArray(o.repeat), o.center !== void 0 && f.center.fromArray(o.center), o.rotation !== void 0 && (f.rotation = o.rotation), o.wrap !== void 0 && (f.wrapS = i(o.wrap[0], S0), f.wrapT = i(o.wrap[1], S0)), o.format !== void 0 && (f.format = o.format), o.internalFormat !== void 0 && (f.internalFormat = o.internalFormat), o.type !== void 0 && (f.type = o.type), o.colorSpace !== void 0 && (f.colorSpace = o.colorSpace), o.minFilter !== void 0 && (f.minFilter = i(o.minFilter, A0)), o.magFilter !== void 0 && (f.magFilter = i(o.magFilter, A0)), o.anisotropy !== void 0 && (f.anisotropy = o.anisotropy), o.flipY !== void 0 && (f.flipY = o.flipY), o.generateMipmaps !== void 0 && (f.generateMipmaps = o.generateMipmaps), o.premultiplyAlpha !== void 0 && (f.premultiplyAlpha = o.premultiplyAlpha), o.unpackAlignment !== void 0 && (f.unpackAlignment = o.unpackAlignment), o.compareFunction !== void 0 && (f.compareFunction = o.compareFunction), o.userData !== void 0 && (f.userData = o.userData), n[o.uuid] = f;
12926
12926
  }
12927
12927
  return n;
12928
12928
  }
@@ -13078,7 +13078,7 @@ const cS = {
13078
13078
  EquirectangularRefractionMapping: yd,
13079
13079
  CubeUVReflectionMapping: Ec
13080
13080
  }, S0 = {
13081
- RepeatWrapping: Cs,
13081
+ RepeatWrapping: Ps,
13082
13082
  ClampToEdgeWrapping: _r,
13083
13083
  MirroredRepeatWrapping: mc
13084
13084
  }, A0 = {
@@ -14388,7 +14388,7 @@ function RS(s) {
14388
14388
  case Qp:
14389
14389
  case qp:
14390
14390
  return { byteLength: 2, components: 4 };
14391
- case Ts:
14391
+ case As:
14392
14392
  case Wp:
14393
14393
  case On:
14394
14394
  return { byteLength: 4, components: 1 };
@@ -18356,7 +18356,7 @@ void main() {
18356
18356
  alphaMapTransform: { value: /* @__PURE__ */ new Qt() },
18357
18357
  alphaTest: { value: 0 }
18358
18358
  }
18359
- }, zs = {
18359
+ }, Ns = {
18360
18360
  basic: {
18361
18361
  uniforms: /* @__PURE__ */ In([
18362
18362
  pt.common,
@@ -18580,9 +18580,9 @@ void main() {
18580
18580
  fragmentShader: Kt.shadow_frag
18581
18581
  }
18582
18582
  };
18583
- zs.physical = {
18583
+ Ns.physical = {
18584
18584
  uniforms: /* @__PURE__ */ In([
18585
- zs.standard.uniforms,
18585
+ Ns.standard.uniforms,
18586
18586
  {
18587
18587
  clearcoat: { value: 0 },
18588
18588
  clearcoatMap: { value: null },
@@ -18654,9 +18654,9 @@ function uE(s, e, t, i, n, r, a) {
18654
18654
  new Xi(1, 1, 1),
18655
18655
  new ri({
18656
18656
  name: "BackgroundCubeMaterial",
18657
- uniforms: Zo(zs.backgroundCube.uniforms),
18658
- vertexShader: zs.backgroundCube.vertexShader,
18659
- fragmentShader: zs.backgroundCube.fragmentShader,
18657
+ uniforms: Zo(Ns.backgroundCube.uniforms),
18658
+ vertexShader: Ns.backgroundCube.vertexShader,
18659
+ fragmentShader: Ns.backgroundCube.fragmentShader,
18660
18660
  side: Bn,
18661
18661
  depthTest: !1,
18662
18662
  depthWrite: !1,
@@ -18672,10 +18672,10 @@ function uE(s, e, t, i, n, r, a) {
18672
18672
  new ki(2, 2),
18673
18673
  new ri({
18674
18674
  name: "BackgroundMaterial",
18675
- uniforms: Zo(zs.background.uniforms),
18676
- vertexShader: zs.background.vertexShader,
18677
- fragmentShader: zs.background.fragmentShader,
18678
- side: Ps,
18675
+ uniforms: Zo(Ns.background.uniforms),
18676
+ vertexShader: Ns.background.vertexShader,
18677
+ fragmentShader: Ns.background.fragmentShader,
18678
+ side: Es,
18679
18679
  depthTest: !1,
18680
18680
  depthWrite: !1,
18681
18681
  fog: !1
@@ -20491,7 +20491,7 @@ function K0(s) {
20491
20491
  }
20492
20492
  function D2(s) {
20493
20493
  let e = "SHADOWMAP_TYPE_BASIC";
20494
- return s.shadowMapType === wv ? e = "SHADOWMAP_TYPE_PCF" : s.shadowMapType === T1 ? e = "SHADOWMAP_TYPE_PCF_SOFT" : s.shadowMapType === Ns && (e = "SHADOWMAP_TYPE_VSM"), e;
20494
+ return s.shadowMapType === wv ? e = "SHADOWMAP_TYPE_PCF" : s.shadowMapType === T1 ? e = "SHADOWMAP_TYPE_PCF_SOFT" : s.shadowMapType === Bs && (e = "SHADOWMAP_TYPE_VSM"), e;
20495
20495
  }
20496
20496
  function L2(s) {
20497
20497
  let e = "ENVMAP_TYPE_CUBE";
@@ -20925,7 +20925,7 @@ function V2(s, e, t, i, n, r, a) {
20925
20925
  ce.morphAttributes.position !== void 0 && (Re = 1), ce.morphAttributes.normal !== void 0 && (Re = 2), ce.morphAttributes.color !== void 0 && (Re = 3);
20926
20926
  let qe, Te, Me, $e;
20927
20927
  if (Ae) {
20928
- const kt = zs[Ae];
20928
+ const kt = Ns[Ae];
20929
20929
  qe = kt.vertexShader, Te = kt.fragmentShader;
20930
20930
  } else
20931
20931
  qe = N.vertexShader, Te = N.fragmentShader, c.update(N), Me = c.getVertexShaderID(N), $e = c.getFragmentShaderID(N);
@@ -21083,7 +21083,7 @@ function V2(s, e, t, i, n, r, a) {
21083
21083
  const L = b[N.type];
21084
21084
  let X;
21085
21085
  if (L) {
21086
- const $ = zs[L];
21086
+ const $ = Ns[L];
21087
21087
  X = ds.clone($.uniforms);
21088
21088
  } else
21089
21089
  X = N.uniforms;
@@ -21517,7 +21517,7 @@ void main() {
21517
21517
  }`;
21518
21518
  function J2(s, e, t) {
21519
21519
  let i = new Rc();
21520
- const n = new Se(), r = new Se(), a = new ai(), o = new wm({ depthPacking: Vv }), c = new lx(), d = {}, f = t.maxTextureSize, m = { [Ps]: Bn, [Bn]: Ps, [sn]: sn }, p = new ri({
21520
+ const n = new Se(), r = new Se(), a = new ai(), o = new wm({ depthPacking: Vv }), c = new lx(), d = {}, f = t.maxTextureSize, m = { [Es]: Bn, [Bn]: Es, [sn]: sn }, p = new ri({
21521
21521
  defines: {
21522
21522
  VSM_SAMPLES: 8
21523
21523
  },
@@ -21546,7 +21546,7 @@ function J2(s, e, t) {
21546
21546
  return;
21547
21547
  const N = s.getRenderTarget(), L = s.getActiveCubeFace(), X = s.getActiveMipmapLevel(), $ = s.state;
21548
21548
  $.setBlending(yn), $.buffers.color.setClear(1, 1, 1, 1), $.buffers.depth.setTest(!0), $.setScissorTest(!1);
21549
- const J = x !== Ns && this.type === Ns, ne = x === Ns && this.type !== Ns;
21549
+ const J = x !== Bs && this.type === Bs, ne = x === Bs && this.type !== Bs;
21550
21550
  for (let ce = 0, he = U.length; ce < he; ce++) {
21551
21551
  const ge = U[ce], le = ge.shadow;
21552
21552
  if (le === void 0) {
@@ -21558,7 +21558,7 @@ function J2(s, e, t) {
21558
21558
  n.copy(le.mapSize);
21559
21559
  const Ae = le.getFrameExtents();
21560
21560
  if (n.multiply(Ae), r.copy(le.mapSize), (n.x > f || n.y > f) && (n.x > f && (r.x = Math.floor(f / Ae.x), n.x = r.x * Ae.x, le.mapSize.x = r.x), n.y > f && (r.y = Math.floor(f / Ae.y), n.y = r.y * Ae.y, le.mapSize.y = r.y)), le.map === null || J === !0 || ne === !0) {
21561
- const at = this.type !== Ns ? { minFilter: yi, magFilter: yi } : {};
21561
+ const at = this.type !== Bs ? { minFilter: yi, magFilter: yi } : {};
21562
21562
  le.map !== null && le.map.dispose(), le.map = new vi(n.x, n.y, at), le.map.texture.name = ge.name + ".shadowMap", le.camera.updateProjectionMatrix();
21563
21563
  }
21564
21564
  s.setRenderTarget(le.map), s.clear();
@@ -21572,7 +21572,7 @@ function J2(s, e, t) {
21572
21572
  r.y * Re.w
21573
21573
  ), $.viewport(a), le.updateMatrices(ge, at), i = le.getFrustum(), S(F, V, le.camera, ge, this.type);
21574
21574
  }
21575
- le.isPointLightShadow !== !0 && this.type === Ns && E(le, V), le.needsUpdate = !1;
21575
+ le.isPointLightShadow !== !0 && this.type === Bs && E(le, V), le.needsUpdate = !1;
21576
21576
  }
21577
21577
  x = this.type, _.needsUpdate = !1, s.setRenderTarget(N, L, X);
21578
21578
  };
@@ -21592,7 +21592,7 @@ function J2(s, e, t) {
21592
21592
  let ce = ne[J];
21593
21593
  ce === void 0 && (ce = L.clone(), ne[J] = ce, F.addEventListener("dispose", D)), L = ce;
21594
21594
  }
21595
- if (L.visible = F.visible, L.wireframe = F.wireframe, N === Ns ? L.side = F.shadowSide !== null ? F.shadowSide : F.side : L.side = F.shadowSide !== null ? F.shadowSide : m[F.side], L.alphaMap = F.alphaMap, L.alphaTest = F.alphaTest, L.map = F.map, L.clipShadows = F.clipShadows, L.clippingPlanes = F.clippingPlanes, L.clipIntersection = F.clipIntersection, L.displacementMap = F.displacementMap, L.displacementScale = F.displacementScale, L.displacementBias = F.displacementBias, L.wireframeLinewidth = F.wireframeLinewidth, L.linewidth = F.linewidth, V.isPointLight === !0 && L.isMeshDistanceMaterial === !0) {
21595
+ if (L.visible = F.visible, L.wireframe = F.wireframe, N === Bs ? L.side = F.shadowSide !== null ? F.shadowSide : F.side : L.side = F.shadowSide !== null ? F.shadowSide : m[F.side], L.alphaMap = F.alphaMap, L.alphaTest = F.alphaTest, L.map = F.map, L.clipShadows = F.clipShadows, L.clippingPlanes = F.clippingPlanes, L.clipIntersection = F.clipIntersection, L.displacementMap = F.displacementMap, L.displacementScale = F.displacementScale, L.displacementBias = F.displacementBias, L.wireframeLinewidth = F.wireframeLinewidth, L.linewidth = F.linewidth, V.isPointLight === !0 && L.isMeshDistanceMaterial === !0) {
21596
21596
  const $ = s.properties.get(L);
21597
21597
  $.light = V;
21598
21598
  }
@@ -21601,7 +21601,7 @@ function J2(s, e, t) {
21601
21601
  function S(U, F, V, N, L) {
21602
21602
  if (U.visible === !1)
21603
21603
  return;
21604
- if (U.layers.test(F.layers) && (U.isMesh || U.isLine || U.isPoints) && (U.castShadow || U.receiveShadow && L === Ns) && (!U.frustumCulled || i.intersectsObject(U))) {
21604
+ if (U.layers.test(F.layers) && (U.isMesh || U.isLine || U.isPoints) && (U.castShadow || U.receiveShadow && L === Bs) && (!U.frustumCulled || i.intersectsObject(U))) {
21605
21605
  U.modelViewMatrix.multiplyMatrices(V.matrixWorldInverse, U.matrixWorld);
21606
21606
  const J = e.update(U), ne = U.material;
21607
21607
  if (Array.isArray(ne)) {
@@ -22080,7 +22080,7 @@ function iP(s, e, t, i, n, r, a) {
22080
22080
  }
22081
22081
  function S(z, Q) {
22082
22082
  let fe;
22083
- return z ? Q === null || Q === Ts || Q === na ? fe = s.DEPTH24_STENCIL8 : Q === On ? fe = s.DEPTH32F_STENCIL8 : Q === gc && (fe = s.DEPTH24_STENCIL8, console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : Q === null || Q === Ts || Q === na ? fe = s.DEPTH_COMPONENT24 : Q === On ? fe = s.DEPTH_COMPONENT32F : Q === gc && (fe = s.DEPTH_COMPONENT16), fe;
22083
+ return z ? Q === null || Q === As || Q === na ? fe = s.DEPTH24_STENCIL8 : Q === On ? fe = s.DEPTH32F_STENCIL8 : Q === gc && (fe = s.DEPTH24_STENCIL8, console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : Q === null || Q === As || Q === na ? fe = s.DEPTH_COMPONENT24 : Q === On ? fe = s.DEPTH_COMPONENT32F : Q === gc && (fe = s.DEPTH_COMPONENT16), fe;
22084
22084
  }
22085
22085
  function D(z, Q) {
22086
22086
  return _(z) === !0 || z.isFramebufferTexture && z.minFilter !== yi && z.minFilter !== Ii ? Math.log2(Math.max(Q.width, Q.height)) + 1 : z.mipmaps !== void 0 && z.mipmaps.length > 0 ? z.mipmaps.length : z.isCompressedTexture && Array.isArray(z.image) ? Q.mipmaps.length : 1;
@@ -22191,7 +22191,7 @@ function iP(s, e, t, i, n, r, a) {
22191
22191
  t.bindTexture(s.TEXTURE_CUBE_MAP, fe.__webglTexture, s.TEXTURE0 + Q);
22192
22192
  }
22193
22193
  const Ae = {
22194
- [Cs]: s.REPEAT,
22194
+ [Ps]: s.REPEAT,
22195
22195
  [_r]: s.CLAMP_TO_EDGE,
22196
22196
  [mc]: s.MIRRORED_REPEAT
22197
22197
  }, Ke = {
@@ -22612,7 +22612,7 @@ function nP(s, e) {
22612
22612
  return s.UNSIGNED_SHORT;
22613
22613
  if (i === Wp)
22614
22614
  return s.INT;
22615
- if (i === Ts)
22615
+ if (i === As)
22616
22616
  return s.UNSIGNED_INT;
22617
22617
  if (i === On)
22618
22618
  return s.FLOAT;
@@ -22943,7 +22943,7 @@ class lP extends Ir {
22943
22943
  );
22944
22944
  } else {
22945
22945
  let Me = null, $e = null, Pe = null;
22946
- _.depth && (Pe = _.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, Me = _.stencil ? sa : ta, $e = _.stencil ? na : Ts);
22946
+ _.depth && (Pe = _.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, Me = _.stencil ? sa : ta, $e = _.stencil ? na : As);
22947
22947
  const ct = {
22948
22948
  colorFormat: t.RGBA8,
22949
22949
  depthFormat: Pe,
@@ -23379,7 +23379,7 @@ class _x {
23379
23379
  ae = xe === jp || xe === Zp || xe === Rd;
23380
23380
  }
23381
23381
  if (ae) {
23382
- const xe = V.texture.type, Ge = xe === Pr || xe === Ts || xe === gc || xe === na || xe === Qp || xe === qp, st = gt.getClearColor(), Ye = gt.getClearAlpha(), dt = st.r, rt = st.g, et = st.b;
23382
+ const xe = V.texture.type, Ge = xe === Pr || xe === As || xe === gc || xe === na || xe === Qp || xe === qp, st = gt.getClearColor(), Ye = gt.getClearAlpha(), dt = st.r, rt = st.g, et = st.b;
23383
23383
  Ge ? (b[0] = dt, b[1] = rt, b[2] = et, b[3] = Ye, j.clearBufferuiv(j.COLOR, 0, b)) : (A[0] = dt, A[1] = rt, A[2] = et, A[3] = Ye, j.clearBufferiv(j.COLOR, 0, A));
23384
23384
  } else
23385
23385
  pe |= j.COLOR_BUFFER_BIT;
@@ -23462,7 +23462,7 @@ class _x {
23462
23462
  Nt.render(ft, It);
23463
23463
  };
23464
23464
  function kt(H, ie, ue) {
23465
- H.transparent === !0 && H.side === sn && H.forceSinglePass === !1 ? (H.side = Bn, H.needsUpdate = !0, Z(H, ie, ue), H.side = Ps, H.needsUpdate = !0, Z(H, ie, ue), H.side = sn) : Z(H, ie, ue);
23465
+ H.transparent === !0 && H.side === sn && H.forceSinglePass === !1 ? (H.side = Bn, H.needsUpdate = !0, Z(H, ie, ue), H.side = Es, H.needsUpdate = !0, Z(H, ie, ue), H.side = sn) : Z(H, ie, ue);
23466
23466
  }
23467
23467
  this.compile = function(H, ie, ue = null) {
23468
23468
  ue === null && (ue = H), x = Tt.get(ue), x.init(ie), P.push(x), ue.traverseVisible(function(ae) {
@@ -23620,7 +23620,7 @@ class _x {
23620
23620
  }
23621
23621
  }
23622
23622
  function W(H, ie, ue, pe, ae, xe) {
23623
- H.onBeforeRender(S, ie, ue, pe, ae, xe), H.modelViewMatrix.multiplyMatrices(ue.matrixWorldInverse, H.matrixWorld), H.normalMatrix.getNormalMatrix(H.modelViewMatrix), ae.onBeforeRender(S, ie, ue, pe, H, xe), ae.transparent === !0 && ae.side === sn && ae.forceSinglePass === !1 ? (ae.side = Bn, ae.needsUpdate = !0, S.renderBufferDirect(ue, ie, pe, ae, H, xe), ae.side = Ps, ae.needsUpdate = !0, S.renderBufferDirect(ue, ie, pe, ae, H, xe), ae.side = sn) : S.renderBufferDirect(ue, ie, pe, ae, H, xe), H.onAfterRender(S, ie, ue, pe, ae, xe);
23623
+ H.onBeforeRender(S, ie, ue, pe, ae, xe), H.modelViewMatrix.multiplyMatrices(ue.matrixWorldInverse, H.matrixWorld), H.normalMatrix.getNormalMatrix(H.modelViewMatrix), ae.onBeforeRender(S, ie, ue, pe, H, xe), ae.transparent === !0 && ae.side === sn && ae.forceSinglePass === !1 ? (ae.side = Bn, ae.needsUpdate = !0, S.renderBufferDirect(ue, ie, pe, ae, H, xe), ae.side = Es, ae.needsUpdate = !0, S.renderBufferDirect(ue, ie, pe, ae, H, xe), ae.side = sn) : S.renderBufferDirect(ue, ie, pe, ae, H, xe), H.onAfterRender(S, ie, ue, pe, ae, xe);
23624
23624
  }
23625
23625
  function Z(H, ie, ue) {
23626
23626
  ie.isScene !== !0 && (ie = Lt);
@@ -23978,7 +23978,7 @@ class fP {
23978
23978
  (f = this.camera) == null || f.getWorldDirection(o);
23979
23979
  const c = o.normalize(), d = n.clone().add(c.multiplyScalar(-a));
23980
23980
  //! before zoom to object, make sure turn off SSAO, anti alias for better performance
23981
- this.viralViewerApi.viralVisibilityManager.disableAmbientOcclusion(), this.viralViewerApi.viralVisibilityManager.disableAntiAlias();
23981
+ this.viralViewerApi.viralVisibilityManager.disableAmbientOcclusion(), this.viralViewerApi.viralVisibilityManager.disableSampling();
23982
23982
  //! Pan or set orbit point will change Focal Offset, it will effect and not trigger setLookAt function, to make it work reset it.
23983
23983
  (m = this.cameraControls) == null || m.setFocalOffset(0, 0, 0, !0), (p = this.cameraControls) == null || p.setLookAt(
23984
23984
  d.x,
@@ -25529,7 +25529,7 @@ function of(s, e, t) {
25529
25529
  return i[n];
25530
25530
  return !1;
25531
25531
  }
25532
- const Bh = new Xn(), Pi = new Y(0, 1, 0), cy = new Y(0, 0, 0), hy = new ot(), Nh = new Yi(), dd = new Yi(), Bs = new Y(), dy = new ot(), Zl = new Y(1, 0, 0), Sa = new Y(0, 1, 0), jl = new Y(0, 0, 1), zh = new Y(), Nl = new Y(), zl = new Y();
25532
+ const Bh = new Xn(), Pi = new Y(0, 1, 0), cy = new Y(0, 0, 0), hy = new ot(), Nh = new Yi(), dd = new Yi(), Os = new Y(), dy = new ot(), Zl = new Y(1, 0, 0), Sa = new Y(0, 1, 0), jl = new Y(0, 0, 1), zh = new Y(), Nl = new Y(), zl = new Y();
25533
25533
  class DP extends fi {
25534
25534
  constructor(e) {
25535
25535
  super(), this.isTransformControlsRoot = !0, this.controls = e, this.visible = !1;
@@ -25818,34 +25818,34 @@ class OP extends de {
25818
25818
  case "scale":
25819
25819
  switch (this.axis) {
25820
25820
  case "X":
25821
- Pi.copy(this.eye).cross(zh), Bs.copy(zh).cross(Pi);
25821
+ Pi.copy(this.eye).cross(zh), Os.copy(zh).cross(Pi);
25822
25822
  break;
25823
25823
  case "Y":
25824
- Pi.copy(this.eye).cross(Nl), Bs.copy(Nl).cross(Pi);
25824
+ Pi.copy(this.eye).cross(Nl), Os.copy(Nl).cross(Pi);
25825
25825
  break;
25826
25826
  case "Z":
25827
- Pi.copy(this.eye).cross(zl), Bs.copy(zl).cross(Pi);
25827
+ Pi.copy(this.eye).cross(zl), Os.copy(zl).cross(Pi);
25828
25828
  break;
25829
25829
  case "XY":
25830
- Bs.copy(zl);
25830
+ Os.copy(zl);
25831
25831
  break;
25832
25832
  case "YZ":
25833
- Bs.copy(zh);
25833
+ Os.copy(zh);
25834
25834
  break;
25835
25835
  case "XZ":
25836
- Pi.copy(zl), Bs.copy(Nl);
25836
+ Pi.copy(zl), Os.copy(Nl);
25837
25837
  break;
25838
25838
  case "XYZ":
25839
25839
  case "E":
25840
- Bs.set(0, 0, 0);
25840
+ Os.set(0, 0, 0);
25841
25841
  break;
25842
25842
  }
25843
25843
  break;
25844
25844
  case "rotate":
25845
25845
  default:
25846
- Bs.set(0, 0, 0);
25846
+ Os.set(0, 0, 0);
25847
25847
  }
25848
- Bs.length() === 0 ? this.quaternion.copy(this.cameraQuaternion) : (dy.lookAt(En.set(0, 0, 0), Bs, Pi), this.quaternion.setFromRotationMatrix(dy)), super.updateMatrixWorld(e);
25848
+ Os.length() === 0 ? this.quaternion.copy(this.cameraQuaternion) : (dy.lookAt(En.set(0, 0, 0), Os, Pi), this.quaternion.setFromRotationMatrix(dy)), super.updateMatrixWorld(e);
25849
25849
  }
25850
25850
  }
25851
25851
  class BP {
@@ -27067,7 +27067,7 @@ class KP {
27067
27067
  }
27068
27068
  getMaterialType(e) {
27069
27069
  const i = this.parser.json.materials[e];
27070
- return !i.extensions || !i.extensions[this.name] ? null : Is;
27070
+ return !i.extensions || !i.extensions[this.name] ? null : Rs;
27071
27071
  }
27072
27072
  extendMaterialParams(e, t) {
27073
27073
  const i = this.parser, n = i.json.materials[e];
@@ -27087,7 +27087,7 @@ class $P {
27087
27087
  }
27088
27088
  getMaterialType(e) {
27089
27089
  const i = this.parser.json.materials[e];
27090
- return !i.extensions || !i.extensions[this.name] ? null : Is;
27090
+ return !i.extensions || !i.extensions[this.name] ? null : Rs;
27091
27091
  }
27092
27092
  extendMaterialParams(e, t) {
27093
27093
  const n = this.parser.json.materials[e];
@@ -27103,7 +27103,7 @@ class JP {
27103
27103
  }
27104
27104
  getMaterialType(e) {
27105
27105
  const i = this.parser.json.materials[e];
27106
- return !i.extensions || !i.extensions[this.name] ? null : Is;
27106
+ return !i.extensions || !i.extensions[this.name] ? null : Rs;
27107
27107
  }
27108
27108
  extendMaterialParams(e, t) {
27109
27109
  const i = this.parser, n = i.json.materials[e];
@@ -27119,7 +27119,7 @@ class eC {
27119
27119
  }
27120
27120
  getMaterialType(e) {
27121
27121
  const i = this.parser.json.materials[e];
27122
- return !i.extensions || !i.extensions[this.name] ? null : Is;
27122
+ return !i.extensions || !i.extensions[this.name] ? null : Rs;
27123
27123
  }
27124
27124
  extendMaterialParams(e, t) {
27125
27125
  const i = this.parser, n = i.json.materials[e];
@@ -27141,7 +27141,7 @@ class tC {
27141
27141
  }
27142
27142
  getMaterialType(e) {
27143
27143
  const i = this.parser.json.materials[e];
27144
- return !i.extensions || !i.extensions[this.name] ? null : Is;
27144
+ return !i.extensions || !i.extensions[this.name] ? null : Rs;
27145
27145
  }
27146
27146
  extendMaterialParams(e, t) {
27147
27147
  const i = this.parser, n = i.json.materials[e];
@@ -27157,7 +27157,7 @@ class iC {
27157
27157
  }
27158
27158
  getMaterialType(e) {
27159
27159
  const i = this.parser.json.materials[e];
27160
- return !i.extensions || !i.extensions[this.name] ? null : Is;
27160
+ return !i.extensions || !i.extensions[this.name] ? null : Rs;
27161
27161
  }
27162
27162
  extendMaterialParams(e, t) {
27163
27163
  const i = this.parser, n = i.json.materials[e];
@@ -27175,7 +27175,7 @@ class nC {
27175
27175
  }
27176
27176
  getMaterialType(e) {
27177
27177
  const i = this.parser.json.materials[e];
27178
- return !i.extensions || !i.extensions[this.name] ? null : Is;
27178
+ return !i.extensions || !i.extensions[this.name] ? null : Rs;
27179
27179
  }
27180
27180
  extendMaterialParams(e, t) {
27181
27181
  const n = this.parser.json.materials[e];
@@ -27191,7 +27191,7 @@ class sC {
27191
27191
  }
27192
27192
  getMaterialType(e) {
27193
27193
  const i = this.parser.json.materials[e];
27194
- return !i.extensions || !i.extensions[this.name] ? null : Is;
27194
+ return !i.extensions || !i.extensions[this.name] ? null : Rs;
27195
27195
  }
27196
27196
  extendMaterialParams(e, t) {
27197
27197
  const i = this.parser, n = i.json.materials[e];
@@ -27209,7 +27209,7 @@ class rC {
27209
27209
  }
27210
27210
  getMaterialType(e) {
27211
27211
  const i = this.parser.json.materials[e];
27212
- return !i.extensions || !i.extensions[this.name] ? null : Is;
27212
+ return !i.extensions || !i.extensions[this.name] ? null : Rs;
27213
27213
  }
27214
27214
  extendMaterialParams(e, t) {
27215
27215
  const i = this.parser, n = i.json.materials[e];
@@ -27225,7 +27225,7 @@ class aC {
27225
27225
  }
27226
27226
  getMaterialType(e) {
27227
27227
  const i = this.parser.json.materials[e];
27228
- return !i.extensions || !i.extensions[this.name] ? null : Is;
27228
+ return !i.extensions || !i.extensions[this.name] ? null : Rs;
27229
27229
  }
27230
27230
  extendMaterialParams(e, t) {
27231
27231
  const i = this.parser, n = i.json.materials[e];
@@ -27513,7 +27513,7 @@ const os = {
27513
27513
  }, my = {
27514
27514
  33071: _r,
27515
27515
  33648: mc,
27516
- 10497: Cs
27516
+ 10497: Ps
27517
27517
  }, cf = {
27518
27518
  SCALAR: 1,
27519
27519
  VEC2: 2,
@@ -27557,7 +27557,7 @@ function xC(s) {
27557
27557
  roughness: 1,
27558
27558
  transparent: !1,
27559
27559
  depthTest: !0,
27560
- side: Ps
27560
+ side: Es
27561
27561
  })), s.DefaultMaterial;
27562
27562
  }
27563
27563
  function _a(s, e, t) {
@@ -27923,7 +27923,7 @@ class AC {
27923
27923
  const d = this.loadImageSource(t, i).then(function(f) {
27924
27924
  f.flipY = !1, f.name = a.name || o.name || "", f.name === "" && typeof o.uri == "string" && o.uri.startsWith("data:image/") === !1 && (f.name = o.uri);
27925
27925
  const p = (r.samplers || {})[a.sampler] || {};
27926
- return f.magFilter = py[p.magFilter] || Ii, f.minFilter = py[p.minFilter] || Fs, f.wrapS = my[p.wrapS] || Cs, f.wrapT = my[p.wrapT] || Cs, f.generateMipmaps = !f.isCompressedTexture && f.minFilter !== yi && f.minFilter !== Ii, n.associations.set(f, { textures: e }), f;
27926
+ return f.magFilter = py[p.magFilter] || Ii, f.minFilter = py[p.minFilter] || Fs, f.wrapS = my[p.wrapS] || Ps, f.wrapT = my[p.wrapT] || Ps, f.generateMipmaps = !f.isCompressedTexture && f.minFilter !== yi && f.minFilter !== Ii, n.associations.set(f, { textures: e }), f;
27927
27927
  }).catch(function() {
27928
27928
  return null;
27929
27929
  });
@@ -29258,7 +29258,7 @@ const PC = [
29258
29258
 
29259
29259
  }`
29260
29260
  };
29261
- class Ss extends qs {
29261
+ class Us extends qs {
29262
29262
  constructor(e, t, i, n, r = 32) {
29263
29263
  super(), this.width = i !== void 0 ? i : 512, this.height = n !== void 0 ? n : 512, this.clear = !0, this.needsSwap = !1, this.camera = t, this.scene = e, this.kernelRadius = 8, this.kernel = [], this.noiseTexture = null, this.output = 0, this.minDistance = 5e-3, this.maxDistance = 0.1, this._visibilityCache = /* @__PURE__ */ new Map(), this.generateSampleKernel(r), this.generateRandomKernelRotations();
29264
29264
  const a = new Xo();
@@ -29304,19 +29304,19 @@ class Ss extends qs {
29304
29304
  }
29305
29305
  render(e, t, i) {
29306
29306
  switch (this.overrideVisibility(), this.renderOverride(e, this.normalMaterial, this.normalRenderTarget, 7829503, 1), this.restoreVisibility(), this.ssaoMaterial.uniforms.kernelRadius.value = this.kernelRadius, this.ssaoMaterial.uniforms.minDistance.value = this.minDistance, this.ssaoMaterial.uniforms.maxDistance.value = this.maxDistance, this.renderPass(e, this.ssaoMaterial, this.ssaoRenderTarget), this.renderPass(e, this.blurMaterial, this.blurRenderTarget), this.output) {
29307
- case Ss.OUTPUT.SSAO:
29307
+ case Us.OUTPUT.SSAO:
29308
29308
  this.copyMaterial.uniforms.tDiffuse.value = this.ssaoRenderTarget.texture, this.copyMaterial.blending = yn, this.renderPass(e, this.copyMaterial, this.renderToScreen ? null : i);
29309
29309
  break;
29310
- case Ss.OUTPUT.Blur:
29310
+ case Us.OUTPUT.Blur:
29311
29311
  this.copyMaterial.uniforms.tDiffuse.value = this.blurRenderTarget.texture, this.copyMaterial.blending = yn, this.renderPass(e, this.copyMaterial, this.renderToScreen ? null : i);
29312
29312
  break;
29313
- case Ss.OUTPUT.Depth:
29313
+ case Us.OUTPUT.Depth:
29314
29314
  this.renderPass(e, this.depthRenderMaterial, this.renderToScreen ? null : i);
29315
29315
  break;
29316
- case Ss.OUTPUT.Normal:
29316
+ case Us.OUTPUT.Normal:
29317
29317
  this.copyMaterial.uniforms.tDiffuse.value = this.normalRenderTarget.texture, this.copyMaterial.blending = yn, this.renderPass(e, this.copyMaterial, this.renderToScreen ? null : i);
29318
29318
  break;
29319
- case Ss.OUTPUT.Default:
29319
+ case Us.OUTPUT.Default:
29320
29320
  this.copyMaterial.uniforms.tDiffuse.value = this.blurRenderTarget.texture, this.copyMaterial.blending = _v, this.renderPass(e, this.copyMaterial, this.renderToScreen ? null : i);
29321
29321
  break;
29322
29322
  default:
@@ -29351,7 +29351,7 @@ class Ss extends qs {
29351
29351
  const o = Math.random() * 2 - 1, c = Math.random() * 2 - 1, d = 0;
29352
29352
  r[a] = i.noise3d(o, c, d);
29353
29353
  }
29354
- this.noiseTexture = new Es(r, 4, 4, Pc, On), this.noiseTexture.wrapS = Cs, this.noiseTexture.wrapT = Cs, this.noiseTexture.needsUpdate = !0;
29354
+ this.noiseTexture = new Ts(r, 4, 4, Pc, On), this.noiseTexture.wrapS = Ps, this.noiseTexture.wrapT = Ps, this.noiseTexture.needsUpdate = !0;
29355
29355
  }
29356
29356
  overrideVisibility() {
29357
29357
  const e = this.scene, t = this._visibilityCache;
@@ -29367,7 +29367,7 @@ class Ss extends qs {
29367
29367
  }), t.clear();
29368
29368
  }
29369
29369
  }
29370
- Ss.OUTPUT = {
29370
+ Us.OUTPUT = {
29371
29371
  Default: 0,
29372
29372
  SSAO: 1,
29373
29373
  Blur: 2,
@@ -30856,7 +30856,7 @@ class UC extends qs {
30856
30856
  type: Ni,
30857
30857
  format: Hi,
30858
30858
  stencilBuffer: o
30859
- }), this.beautyRenderTarget.depthTexture = new Xo(this.width, this.height, o ? na : Ts), this.beautyRenderTarget.depthTexture.format = o ? sa : ta), !0;
30859
+ }), this.beautyRenderTarget.depthTexture = new Xo(this.width, this.height, o ? na : As), this.beautyRenderTarget.depthTexture.format = o ? sa : ta), !0;
30860
30860
  }
30861
30861
  }), this.samples = [], this.samplesDenoise = [], this.autoDetectTransparency = !0, this.frame = 0, this.lastViewMatrix = new ot(), this.lastProjectionMatrix = new ot(), this.beautyRenderTarget = new vi(this.width, this.height, {
30862
30862
  minFilter: Ii,
@@ -30864,7 +30864,7 @@ class UC extends qs {
30864
30864
  type: Ni,
30865
30865
  format: Hi,
30866
30866
  stencilBuffer: !1
30867
- }), this.beautyRenderTarget.depthTexture = new Xo(this.width, this.height, Ts), this.beautyRenderTarget.depthTexture.format = ta, this.configureEffectCompositer(this.configuration.logarithmicDepthBuffer, this.camera.isOrthographicCamera), this.configureSampleDependentPasses(), this.configureHalfResTargets(), this.detectTransparency(), this.configureTransparencyTarget(), this.writeTargetInternal = new vi(this.width, this.height, {
30867
+ }), this.beautyRenderTarget.depthTexture = new Xo(this.width, this.height, As), this.beautyRenderTarget.depthTexture.format = ta, this.configureEffectCompositer(this.configuration.logarithmicDepthBuffer, this.camera.isOrthographicCamera), this.configureSampleDependentPasses(), this.configureHalfResTargets(), this.detectTransparency(), this.configureTransparencyTarget(), this.writeTargetInternal = new vi(this.width, this.height, {
30868
30868
  minFilter: Ii,
30869
30869
  magFilter: Ii,
30870
30870
  depthBuffer: !1,
@@ -30883,7 +30883,7 @@ class UC extends qs {
30883
30883
  stencilBuffer: !1,
30884
30884
  depthBuffer: !1,
30885
30885
  alpha: !0
30886
- }), this.bluenoise = new Es(zC, 128, 128), this.accumulationQuad = new yo(new ri({
30886
+ }), this.bluenoise = new Ts(zC, 128, 128), this.accumulationQuad = new yo(new ri({
30887
30887
  uniforms: {
30888
30888
  frame: {
30889
30889
  value: 0
@@ -30909,7 +30909,7 @@ class UC extends qs {
30909
30909
  gl_FragColor = vec4(color.rgb, 1.0 / (frame + 1.0));
30910
30910
  }
30911
30911
  `
30912
- })), this.bluenoise.colorSpace = wr, this.bluenoise.wrapS = Cs, this.bluenoise.wrapT = Cs, this.bluenoise.minFilter = yi, this.bluenoise.magFilter = yi, this.bluenoise.needsUpdate = !0, this.lastTime = 0, this.timeRollingAverage = 0.99, this._r = new Se(), this._c = new lt();
30912
+ })), this.bluenoise.colorSpace = wr, this.bluenoise.wrapS = Ps, this.bluenoise.wrapT = Ps, this.bluenoise.minFilter = yi, this.bluenoise.magFilter = yi, this.bluenoise.needsUpdate = !0, this.lastTime = 0, this.timeRollingAverage = 0.99, this._r = new Se(), this._c = new lt();
30913
30913
  }
30914
30914
  configureHalfResTargets() {
30915
30915
  this.firstFrame(), this.configuration.halfRes ? (this.depthDownsampleTarget = new vi(this.width / 2, this.height / 2, {
@@ -30935,7 +30935,7 @@ class UC extends qs {
30935
30935
  magFilter: yi,
30936
30936
  type: Ni,
30937
30937
  format: Hi
30938
- }), this.transparencyRenderTargetDWTrue.depthTexture = new Xo(this.width, this.height, Ts), this.depthCopyPass = new yo(new ri({
30938
+ }), this.transparencyRenderTargetDWTrue.depthTexture = new Xo(this.width, this.height, As), this.depthCopyPass = new yo(new ri({
30939
30939
  uniforms: {
30940
30940
  depthTexture: {
30941
30941
  value: this.beautyRenderTarget.depthTexture
@@ -31213,7 +31213,7 @@ class FC {
31213
31213
  //! this pass cause slow render on weak machine, turn it off when camera moving
31214
31214
  this.initn8aoPass(e, t), this.sobelPass = new Kl(kC), this.sobelPass.uniforms.resolution.value.x = window.innerWidth, this.sobelPass.uniforms.resolution.value.y = window.innerHeight, this.sobelPass.enabled = !1, this.composer.addPass(this.sobelPass);
31215
31215
  //! this pass slow render too, turn it off when we dont use
31216
- this.initOutlinePass(e, t), this.initTAAPass(e, t);
31216
+ this.initOutlinePass(e, t);
31217
31217
  const i = new GP();
31218
31218
  this.composer.addPass(i);
31219
31219
  }
@@ -31240,7 +31240,7 @@ class FC {
31240
31240
  //#endregion
31241
31241
  //#region Anti Aliases Passes
31242
31242
  initSMAAPass() {
31243
- this.smaaPass = new VP(window.innerWidth * 3, window.innerHeight * 3), this.smaaPass.renderToScreen = !0, this.composer.addPass(this.smaaPass);
31243
+ this.smaaPass = new VP(window.innerWidth, window.innerHeight), this.smaaPass.renderToScreen = !0, this.composer.addPass(this.smaaPass);
31244
31244
  }
31245
31245
  initSSAAPass(e, t) {
31246
31246
  this.ssaaPass = new Tx(e, t), this.ssaaPass.unbiased = !0, this.ssaaPass.sampleLevel = 2, this.composer.addPass(this.ssaaPass);
@@ -31252,7 +31252,7 @@ class FC {
31252
31252
  ), this.composer.addPass(this.fxaaPass);
31253
31253
  }
31254
31254
  initTAAPass(e, t) {
31255
- this.taaPass = new CC(e, t), this.taaPass.sampleLevel = 3, this.taaPass.enabled = !1, this.composer.addPass(this.taaPass);
31255
+ this.taaPass = new CC(e, t), this.taaPass.sampleLevel = 3, this.taaPass.unbiased = !1, this.taaPass.enabled = !1, this.composer.addPass(this.taaPass);
31256
31256
  }
31257
31257
  enableTAA() {
31258
31258
  this.taaPass && (this.taaPass.enabled = !0);
@@ -31263,18 +31263,13 @@ class FC {
31263
31263
  //#endregion
31264
31264
  //#region SSAO
31265
31265
  initSSAOPass(e, t) {
31266
- this.ssaoPass = new Ss(
31267
- e,
31268
- t,
31269
- window.innerWidth,
31270
- window.innerHeight
31271
- ), this.ssaoPass.output = Ss.OUTPUT.Default, this.ssaoPass.kernelRadius = 1, this.ssaoPass.minDistance = 5e-4, this.ssaoPass.maxDistance = 0.3, this.ssaoPass.enabled = !0, this.composer.addPass(this.ssaoPass);
31266
+ this.ssaoPass = new Us(e, t), this.ssaoPass.enabled = !0, this.ssaoPass.renderToScreen = !0, this.composer.addPass(this.ssaoPass);
31272
31267
  }
31273
31268
  enableSSAO() {
31274
- this.ssaoPass && (this.ssaoPass.output = Ss.OUTPUT.SSAO, this.ssaoPass.kernelRadius = 64, this.ssaoPass.minDistance = 1e-3, this.ssaoPass.maxDistance = 0.02);
31269
+ this.ssaoPass && (this.ssaoPass.output = Us.OUTPUT.SSAO, this.ssaoPass.kernelRadius = 64, this.ssaoPass.minDistance = 1e-3, this.ssaoPass.maxDistance = 0.02);
31275
31270
  }
31276
31271
  disableSSAO() {
31277
- this.ssaoPass && (this.ssaoPass.output = Ss.OUTPUT.Default, this.ssaoPass.kernelRadius = 1, this.ssaoPass.minDistance = 5e-4, this.ssaoPass.maxDistance = 0.3);
31272
+ this.ssaoPass && (this.ssaoPass.output = Us.OUTPUT.Default, this.ssaoPass.kernelRadius = 1, this.ssaoPass.minDistance = 5e-4, this.ssaoPass.maxDistance = 0.3);
31278
31273
  }
31279
31274
  //#endregion
31280
31275
  //#region SOBEL
@@ -31325,7 +31320,7 @@ class VC {
31325
31320
  }), this.renderTimeout = null, this._t = 0, this.jitterOffsets = [], this.jitterIndex = 0, this.size = new Se(window.innerWidth, window.innerHeight), this.samples = 4, this.renderer.setPixelRatio(1), this.renderer.setSize(
31326
31321
  this.viralViewerApi.targetElement.offsetWidth,
31327
31322
  this.viralViewerApi.targetElement.offsetHeight
31328
- ), this.renderer.outputColorSpace = gn, this.renderer.shadowMap.enabled = !0, this.renderer.shadowMap.type = Ns, this.renderer.shadowMap.autoUpdate = !1, this.renderer.shadowMap.needsUpdate = !0, this.renderer.info.autoReset = !1, this.viralViewerApi.targetElement.appendChild(this.renderer.domElement), this.postProcessingRenderer = new FC(
31323
+ ), this.renderer.outputColorSpace = gn, this.renderer.shadowMap.enabled = !0, this.renderer.shadowMap.type = Bs, this.renderer.shadowMap.autoUpdate = !1, this.renderer.shadowMap.needsUpdate = !0, this.renderer.info.autoReset = !1, this.viralViewerApi.targetElement.appendChild(this.renderer.domElement), this.postProcessingRenderer = new FC(
31329
31324
  this.renderer,
31330
31325
  this.viralViewerApi
31331
31326
  ), this.jitterOffsets = this.generateJitterOffsets(), this.viralViewerApi.emit(gi.LOADED_RENDERER);
@@ -31655,13 +31650,13 @@ class WC {
31655
31650
  yr.ON_WAKE,
31656
31651
  "hide objects",
31657
31652
  () => {
31658
- this.viralViewerApi.viralVisibilityManager.disableAmbientOcclusion(), this.viralViewerApi.viralVisibilityManager.disableAntiAlias();
31653
+ this.viralViewerApi.viralVisibilityManager.disableAmbientOcclusion(), this.viralViewerApi.viralVisibilityManager.disableSampling();
31659
31654
  }
31660
31655
  ), this.viralViewerApi.viralCamera.addEventListener(
31661
31656
  yr.ON_SLEEP,
31662
31657
  "unhide objects",
31663
31658
  () => {
31664
- this.viralViewerApi.viralVisibilityManager.enableAmbientOcclusion(), this.viralViewerApi.viralVisibilityManager.enableAntiAlias(), this.viralViewerApi.viralRenderer.render();
31659
+ this.viralViewerApi.viralVisibilityManager.enableAmbientOcclusion(), this.viralViewerApi.viralVisibilityManager.enableSampling(2), this.viralViewerApi.viralRenderer.render();
31665
31660
  }
31666
31661
  ));
31667
31662
  }
@@ -32749,7 +32744,7 @@ ls.d = (s, e) => {
32749
32744
  var pi = {};
32750
32745
  (() => {
32751
32746
  ls.d(pi, { HY: () => d, K8: () => i, vF: () => _, jM: () => x, st: () => E, J7: () => Lt, KV: () => ct, Tl: () => Pe, gv: () => Ie, LR: () => Re, C9: () => we, zF: () => We, XL: () => it, uv: () => ut, vs: () => z, YJ: () => fe, i9: () => c, uD: () => o, lV: () => r, Sp: () => n, RJ: () => ns, SB: () => ps, TL: () => P, oe: () => S, AB: () => a, dZ: () => D, Gf: () => nt, gK: () => U, BT: () => N, bt: () => F, sX: () => V });
32752
- const s = (e = { AdditiveBlending: () => pc, Box3: () => qt, BufferAttribute: () => Ht, BufferGeometry: () => zt, CanvasTexture: () => bp, Color: () => lt, DataTexture: () => Es, EventDispatcher: () => Ir, Frustum: () => Rc, GLSL3: () => yp, LessEqualDepth: () => Na, LineBasicMaterial: () => zn, LineSegments: () => _n, LinearFilter: () => Ii, Matrix4: () => ot, NearestFilter: () => yi, NoBlending: () => yn, Object3D: () => fi, Points: () => Bd, RGBAFormat: () => Hi, RawShaderMaterial: () => bm, Scene: () => Cc, ShaderMaterial: () => ri, Sphere: () => $i, Texture: () => Wi, Uint8BufferAttribute: () => F_, Vector2: () => Se, Vector3: () => Y, Vector4: () => ai, WebGLRenderTarget: () => vi }, t = {}, ls.d(t, e), t);
32747
+ const s = (e = { AdditiveBlending: () => pc, Box3: () => qt, BufferAttribute: () => Ht, BufferGeometry: () => zt, CanvasTexture: () => bp, Color: () => lt, DataTexture: () => Ts, EventDispatcher: () => Ir, Frustum: () => Rc, GLSL3: () => yp, LessEqualDepth: () => Na, LineBasicMaterial: () => zn, LineSegments: () => _n, LinearFilter: () => Ii, Matrix4: () => ot, NearestFilter: () => yi, NoBlending: () => yn, Object3D: () => fi, Points: () => Bd, RGBAFormat: () => Hi, RawShaderMaterial: () => bm, Scene: () => Cc, ShaderMaterial: () => ri, Sphere: () => $i, Texture: () => Wi, Uint8BufferAttribute: () => F_, Vector2: () => Se, Vector3: () => Y, Vector4: () => ai, WebGLRenderTarget: () => vi }, t = {}, ls.d(t, e), t);
32753
32748
  var e, t, i, n, r, a, o, c;
32754
32749
  class d extends s.ShaderMaterial {
32755
32750
  constructor() {
@@ -43586,7 +43581,7 @@ const zR = function() {
43586
43581
  function mf(s) {
43587
43582
  return Math.abs(s) < kR;
43588
43583
  }
43589
- class Rs extends hs {
43584
+ class Cs extends hs {
43590
43585
  constructor(...e) {
43591
43586
  super(...e), this.isExtendedTriangle = !0, this.satAxes = new Array(4).fill().map(() => new Y()), this.satBounds = new Array(4).fill().map(() => new Rr()), this.points = [this.a, this.b, this.c], this.sphere = new $i(), this.plane = new Dn(), this.needsUpdate = !0;
43592
43587
  }
@@ -43604,7 +43599,7 @@ class Rs extends hs {
43604
43599
  g.subVectors(i, e), b.setFromPoints(g, n), this.sphere.setFromPoints(this.points), this.plane.setFromNormalAndCoplanarPoint(o, e), this.needsUpdate = !1;
43605
43600
  }
43606
43601
  }
43607
- Rs.prototype.closestPointToSegment = function() {
43602
+ Cs.prototype.closestPointToSegment = function() {
43608
43603
  const s = new Y(), e = new Y(), t = new Tr();
43609
43604
  return function(n, r = null, a = null) {
43610
43605
  const { start: o, end: c } = n, d = this.points;
@@ -43616,8 +43611,8 @@ Rs.prototype.closestPointToSegment = function() {
43616
43611
  return this.closestPointToPoint(o, s), f = o.distanceToSquared(s), f < m && (m = f, r && r.copy(s), a && a.copy(o)), this.closestPointToPoint(c, s), f = c.distanceToSquared(s), f < m && (m = f, r && r.copy(s), a && a.copy(c)), Math.sqrt(m);
43617
43612
  };
43618
43613
  }();
43619
- Rs.prototype.intersectsTriangle = function() {
43620
- const s = new Rs(), e = new Array(3), t = new Array(3), i = new Rr(), n = new Rr(), r = new Y(), a = new Y(), o = new Y(), c = new Y(), d = new Y(), f = new Tr(), m = new Tr(), p = new Tr(), g = new Y();
43614
+ Cs.prototype.intersectsTriangle = function() {
43615
+ const s = new Cs(), e = new Array(3), t = new Array(3), i = new Rr(), n = new Rr(), r = new Y(), a = new Y(), o = new Y(), c = new Y(), d = new Y(), f = new Tr(), m = new Tr(), p = new Tr(), g = new Y();
43621
43616
  function b(A, _, x) {
43622
43617
  const E = A.points;
43623
43618
  let P = 0, S = -1;
@@ -43690,13 +43685,13 @@ Rs.prototype.intersectsTriangle = function() {
43690
43685
  }
43691
43686
  };
43692
43687
  }();
43693
- Rs.prototype.distanceToPoint = function() {
43688
+ Cs.prototype.distanceToPoint = function() {
43694
43689
  const s = new Y();
43695
43690
  return function(t) {
43696
43691
  return this.closestPointToPoint(t, s), t.distanceTo(s);
43697
43692
  };
43698
43693
  }();
43699
- Rs.prototype.distanceToTriangle = function() {
43694
+ Cs.prototype.distanceToTriangle = function() {
43700
43695
  const s = new Y(), e = new Y(), t = ["a", "b", "c"], i = new Tr(), n = new Tr();
43701
43696
  return function(a, o = null, c = null) {
43702
43697
  const d = o || c ? i : null;
@@ -43768,7 +43763,7 @@ Un.prototype.intersectsBox = function() {
43768
43763
  };
43769
43764
  }();
43770
43765
  Un.prototype.intersectsTriangle = function() {
43771
- const s = new Rs(), e = new Array(3), t = new Rr(), i = new Rr(), n = new Y();
43766
+ const s = new Cs(), e = new Array(3), t = new Rr(), i = new Rr(), n = new Y();
43772
43767
  return function(a) {
43773
43768
  this.needsUpdate && this.update(), a.isExtendedTriangle ? a.needsUpdate && a.update() : (s.copy(a), s.update(), a = s);
43774
43769
  const o = this.satBounds, c = this.satAxes;
@@ -43864,11 +43859,11 @@ class Ox {
43864
43859
  }
43865
43860
  class FR extends Ox {
43866
43861
  constructor() {
43867
- super(() => new Rs());
43862
+ super(() => new Cs());
43868
43863
  }
43869
43864
  }
43870
43865
  const vn = /* @__PURE__ */ new FR();
43871
- function As(s, e) {
43866
+ function Ss(s, e) {
43872
43867
  return e[s + 15] === 65535;
43873
43868
  }
43874
43869
  function Er(s, e) {
@@ -43911,20 +43906,20 @@ function XR(s, e, t, i, n, r) {
43911
43906
  function Cp(s, e, t, i, n = null, r = 0, a = 0) {
43912
43907
  const { float32Array: o, uint16Array: c, uint32Array: d } = Qi;
43913
43908
  let f = s * 2;
43914
- if (As(f, c)) {
43909
+ if (Ss(f, c)) {
43915
43910
  const p = Er(s, d), g = ra(f, c);
43916
43911
  return es(s, o, jr), i(p, g, !1, a, r + s, jr);
43917
43912
  } else {
43918
43913
  let L = function($) {
43919
43914
  const { uint16Array: J, uint32Array: ne } = Qi;
43920
43915
  let ce = $ * 2;
43921
- for (; !As(ce, J); )
43916
+ for (; !Ss(ce, J); )
43922
43917
  $ = aa($), ce = $ * 2;
43923
43918
  return Er($, ne);
43924
43919
  }, X = function($) {
43925
43920
  const { uint16Array: J, uint32Array: ne } = Qi;
43926
43921
  let ce = $ * 2;
43927
- for (; !As(ce, J); )
43922
+ for (; !Ss(ce, J); )
43928
43923
  $ = oa($, ne), ce = $ * 2;
43929
43924
  return Er($, ne) + ra(ce, J);
43930
43925
  };
@@ -43936,7 +43931,7 @@ function Cp(s, e, t, i, n = null, r = 0, a = 0) {
43936
43931
  _ = x, x = $, E = P;
43937
43932
  }
43938
43933
  E || (E = jr, es(b, o, E));
43939
- const S = As(b * 2, c), D = t(E, S, _, a + 1, r + b);
43934
+ const S = Ss(b * 2, c), D = t(E, S, _, a + 1, r + b);
43940
43935
  let U;
43941
43936
  if (D === xy) {
43942
43937
  const $ = L(b), ne = X(b) - $;
@@ -43954,7 +43949,7 @@ function Cp(s, e, t, i, n = null, r = 0, a = 0) {
43954
43949
  if (U)
43955
43950
  return !0;
43956
43951
  P = No, es(A, o, P);
43957
- const F = As(A * 2, c), V = t(P, F, x, a + 1, r + A);
43952
+ const F = Ss(A * 2, c), V = t(P, F, x, a + 1, r + A);
43958
43953
  let N;
43959
43954
  if (V === xy) {
43960
43955
  const $ = L(A), ne = X(A) - $;
@@ -44123,7 +44118,7 @@ function JR(s, e, t, i, n) {
44123
44118
  }
44124
44119
  function Rp(s, e, t, i, n) {
44125
44120
  const { float32Array: r, uint16Array: a, uint32Array: o } = Qi, c = s * 2;
44126
- if (As(c, a)) {
44121
+ if (Ss(c, a)) {
44127
44122
  const f = Er(s, o), m = ra(c, a);
44128
44123
  WR(e, t, i, f, m, n);
44129
44124
  } else {
@@ -44142,7 +44137,7 @@ function t3(s, e, t, i) {
44142
44137
  function Ip(s, e, t, i) {
44143
44138
  const { float32Array: n, uint16Array: r, uint32Array: a } = Qi;
44144
44139
  let o = s * 2;
44145
- if (As(o, r)) {
44140
+ if (Ss(o, r)) {
44146
44141
  const d = Er(s, a), f = ra(o, r);
44147
44142
  return QR(e, t, i, d, f);
44148
44143
  } else {
@@ -44162,7 +44157,7 @@ function Ip(s, e, t, i) {
44162
44157
  return _ && E ? _.distance <= E.distance ? _ : E : _ || E || null;
44163
44158
  }
44164
44159
  }
44165
- const Kh = /* @__PURE__ */ new qt(), _o = /* @__PURE__ */ new Rs(), Mo = /* @__PURE__ */ new Rs(), Xl = /* @__PURE__ */ new ot(), Ry = /* @__PURE__ */ new Un(), $h = /* @__PURE__ */ new Un();
44160
+ const Kh = /* @__PURE__ */ new qt(), _o = /* @__PURE__ */ new Cs(), Mo = /* @__PURE__ */ new Cs(), Xl = /* @__PURE__ */ new ot(), Ry = /* @__PURE__ */ new Un(), $h = /* @__PURE__ */ new Un();
44166
44161
  function i3(s, e, t, i) {
44167
44162
  Qi.setBuffer(s._roots[e]);
44168
44163
  const n = Dp(0, s, t, i);
@@ -44171,7 +44166,7 @@ function i3(s, e, t, i) {
44171
44166
  function Dp(s, e, t, i, n = null) {
44172
44167
  const { float32Array: r, uint16Array: a, uint32Array: o } = Qi;
44173
44168
  let c = s * 2;
44174
- if (n === null && (t.boundingBox || t.computeBoundingBox(), Ry.set(t.boundingBox.min, t.boundingBox.max, i), n = Ry), As(c, a)) {
44169
+ if (n === null && (t.boundingBox || t.computeBoundingBox(), Ry.set(t.boundingBox.min, t.boundingBox.max, i), n = Ry), Ss(c, a)) {
44175
44170
  const f = e.geometry, m = f.index, p = f.attributes.position, g = t.index, b = t.attributes.position, A = Er(s, o), _ = ra(c, a);
44176
44171
  if (Xl.copy(i).invert(), t.boundsTree)
44177
44172
  return es(s, r, $h), $h.matrix.copy(Xl), $h.needsUpdate = !0, t.boundsTree.shapecast({
@@ -44323,7 +44318,7 @@ function h3(s, e, t, i, n) {
44323
44318
  }
44324
44319
  function Lp(s, e, t, i, n) {
44325
44320
  const { float32Array: r, uint16Array: a, uint32Array: o } = Qi, c = s * 2;
44326
- if (As(c, a)) {
44321
+ if (Ss(c, a)) {
44327
44322
  const f = Er(s, o), m = ra(c, a);
44328
44323
  jR(e, t, i, f, m, n);
44329
44324
  } else {
@@ -44342,7 +44337,7 @@ function u3(s, e, t, i) {
44342
44337
  function Op(s, e, t, i) {
44343
44338
  const { float32Array: n, uint16Array: r, uint32Array: a } = Qi;
44344
44339
  let o = s * 2;
44345
- if (As(o, r)) {
44340
+ if (Ss(o, r)) {
44346
44341
  const d = Er(s, a), f = ra(o, r);
44347
44342
  return KR(e, t, i, d, f);
44348
44343
  } else {
@@ -44362,7 +44357,7 @@ function Op(s, e, t, i) {
44362
44357
  return _ && E ? _.distance <= E.distance ? _ : E : _ || E || null;
44363
44358
  }
44364
44359
  }
44365
- const ed = /* @__PURE__ */ new qt(), So = /* @__PURE__ */ new Rs(), Ao = /* @__PURE__ */ new Rs(), Yl = /* @__PURE__ */ new ot(), Oy = /* @__PURE__ */ new Un(), td = /* @__PURE__ */ new Un();
44360
+ const ed = /* @__PURE__ */ new qt(), So = /* @__PURE__ */ new Cs(), Ao = /* @__PURE__ */ new Cs(), Yl = /* @__PURE__ */ new ot(), Oy = /* @__PURE__ */ new Un(), td = /* @__PURE__ */ new Un();
44366
44361
  function f3(s, e, t, i) {
44367
44362
  Qi.setBuffer(s._roots[e]);
44368
44363
  const n = Bp(0, s, t, i);
@@ -44371,7 +44366,7 @@ function f3(s, e, t, i) {
44371
44366
  function Bp(s, e, t, i, n = null) {
44372
44367
  const { float32Array: r, uint16Array: a, uint32Array: o } = Qi;
44373
44368
  let c = s * 2;
44374
- if (n === null && (t.boundingBox || t.computeBoundingBox(), Oy.set(t.boundingBox.min, t.boundingBox.max, i), n = Oy), As(c, a)) {
44369
+ if (n === null && (t.boundingBox || t.computeBoundingBox(), Oy.set(t.boundingBox.min, t.boundingBox.max, i), n = Oy), Ss(c, a)) {
44375
44370
  const f = e.geometry, m = f.index, p = f.attributes.position, g = t.index, b = t.attributes.position, A = Er(s, o), _ = ra(c, a);
44376
44371
  if (Yl.copy(i).invert(), t.boundsTree)
44377
44372
  return es(s, r, td), td.matrix.copy(Yl), td.needsUpdate = !0, t.boundsTree.shapecast({
@@ -44568,7 +44563,7 @@ class Rm {
44568
44563
  }
44569
44564
  }
44570
44565
  /* Core Cast Functions */
44571
- raycast(e, t = Ps) {
44566
+ raycast(e, t = Es) {
44572
44567
  const i = this._roots, n = this.geometry, r = [], a = t.isMaterial, o = Array.isArray(t), c = n.groups, d = a ? t.side : t, f = this.indirect ? h3 : JR;
44573
44568
  for (let m = 0, p = i.length; m < p; m++) {
44574
44569
  const g = o ? t[c[m].materialIndex].side : d, b = r.length;
@@ -44580,7 +44575,7 @@ class Rm {
44580
44575
  }
44581
44576
  return r;
44582
44577
  }
44583
- raycastFirst(e, t = Ps) {
44578
+ raycastFirst(e, t = Es) {
44584
44579
  const i = this._roots, n = this.geometry, r = t.isMaterial, a = Array.isArray(t);
44585
44580
  let o = null;
44586
44581
  const c = n.groups, d = r ? t.side : t, f = this.indirect ? u3 : t3;
@@ -45212,22 +45207,42 @@ class I3 {
45212
45207
  this.rain && (this.rain.visible = !1), this.viralViewerApi.viralAnimation.toggleRain(!1), this.viralViewerApi.viralRenderer.render();
45213
45208
  }
45214
45209
  //#endregion
45215
- //#region anti alias
45216
- enableAntiAlias() {
45217
- this.viralViewerApi.viralRenderer.postProcessingRenderer.enableTAA();
45210
+ //#region sampling
45211
+ /**
45212
+ * increase resolution to n, use for upscale resolution for anti alias
45213
+ * @param numberOfSampling number of scaling, default is 2
45214
+ */
45215
+ enableSampling(e = 2) {
45216
+ this.viralViewerApi.viralRenderer.renderer.setSize(
45217
+ window.innerWidth * e,
45218
+ window.innerHeight * e,
45219
+ !1
45220
+ ), this.viralViewerApi.viralRenderer.postProcessingRenderer.composer.setSize(
45221
+ window.innerWidth * e,
45222
+ window.innerHeight * e
45223
+ );
45218
45224
  }
45219
- disableAntiAlias() {
45220
- this.viralViewerApi.viralRenderer.postProcessingRenderer.disableTAA();
45225
+ disableSampling() {
45226
+ this.viralViewerApi.viralRenderer.renderer.setSize(
45227
+ window.innerWidth,
45228
+ window.innerHeight,
45229
+ !1
45230
+ ), this.viralViewerApi.viralRenderer.postProcessingRenderer.composer.setSize(
45231
+ window.innerWidth,
45232
+ window.innerHeight
45233
+ );
45221
45234
  }
45222
45235
  //#endregion
45223
45236
  //#region lod
45224
45237
  generateLOD() {
45225
- this.viralViewerApi.viralScene.mergedModel.children.forEach((e) => {
45226
- if (e.isMesh) {
45227
- const t = new jv(), i = ni.createLowResMesh(e, 0.5);
45228
- t.addLevel(e, 50), t.addLevel(i, 200), this.viralViewerApi.viralScene.mergedModel.add(t), this.viralViewerApi.viralScene.mergedModel.remove(e);
45238
+ this.viralViewerApi.viralScene.mergedModel.children.forEach(
45239
+ (e) => {
45240
+ if (e.isMesh) {
45241
+ const t = new jv(), i = ni.createLowResMesh(e, 0.5);
45242
+ t.addLevel(e, 50), t.addLevel(i, 200), this.viralViewerApi.viralScene.mergedModel.add(t), this.viralViewerApi.viralScene.mergedModel.remove(e);
45243
+ }
45229
45244
  }
45230
- });
45245
+ );
45231
45246
  }
45232
45247
  //#endregion
45233
45248
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viral-viewer-2",
3
- "version": "6.7.9",
3
+ "version": "6.8.0",
4
4
  "description": "",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",