@alxxsck/ai-assistant 3.4.2 → 3.5.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.
- package/dist/{Avatar-KB7fiXTT.js → Avatar-DvAwP_HS.js} +310 -305
- package/dist/{ChatWidgetContent-BK1Po0Bb.js → ChatWidgetContent-DBiBwNjJ.js} +2143 -1959
- package/dist/ai-assistant.css +1 -0
- package/dist/api/messages.api.types.d.ts +3 -0
- package/dist/avatar/Avatar.d.ts +3 -0
- package/dist/bridge-ai-chat-widget.es.js +1 -1
- package/dist/domain/message/scenario-photo-content.d.ts +1 -0
- package/dist/domain/ui/widget-geometry.d.ts +4 -3
- package/dist/i18n/messages.d.ts +12 -1
- package/dist/index-BcPWKJOI.js +2913 -0
- package/dist/{mount-eQG3ZeqK.js → mount-j9dyEXzG.js} +5928 -5750
- package/dist/ui/components/AvatarRotationControl.d.ts +1 -0
- package/dist/ui/components/ChatSurfaceFrameContext.d.ts +2 -0
- package/dist/ui/components/ScenarioPhotoCard.d.ts +4 -0
- package/package.json +1 -1
- package/dist/index-BdLdThTz.js +0 -2913
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as qs } from "./index-
|
|
1
|
+
import { l as qs } from "./index-BcPWKJOI.js";
|
|
2
2
|
var Dr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
|
-
const Lc = "182", Nd = 0, Tl = 1, Fd = 2,
|
|
3
|
+
const Lc = "182", Nd = 0, Tl = 1, Fd = 2, Ys = 1, Zu = 2, Wr = 3, ti = 0, qt = 1, Ln = 2, $n = 0, lr = 1, Al = 2, El = 3, wl = 4, Ud = 5, Ii = 100, Od = 101, kd = 102, Bd = 103, zd = 104, Hd = 200, Gd = 201, Vd = 202, Wd = 203, yo = 204, Mo = 205, Xd = 206, jd = 207, qd = 208, Yd = 209, Kd = 210, Jd = 211, Zd = 212, Qd = 213, $d = 214, To = 0, Ao = 1, Eo = 2, pr = 3, wo = 4, Ro = 5, Co = 6, Po = 7, Dc = 0, ef = 1, tf = 2, Un = 0, Qu = 1, $u = 2, eh = 3, th = 4, nh = 5, ih = 6, Nc = 7, Rl = "attached", nf = "detached", rh = 300, Bi = 301, mr = 302, Io = 303, Lo = 304, ga = 306, Ft = 1e3, Nn = 1001, ra = 1002, Tt = 1003, sh = 1004, Xr = 1005, At = 1006, Ks = 1007, Zn = 1008, en = 1009, ah = 1010, oh = 1011, ns = 1012, Fc = 1013, kn = 1014, un = 1015, ni = 1016, Uc = 1017, Oc = 1018, is = 1020, ch = 35902, lh = 35899, uh = 1021, hh = 1022, hn = 1023, ii = 1026, Di = 1027, kc = 1028, Bc = 1029, _r = 1030, zc = 1031, Hc = 1033, Js = 33776, Zs = 33777, Qs = 33778, $s = 33779, Do = 35840, No = 35841, Fo = 35842, Uo = 35843, Oo = 36196, ko = 37492, Bo = 37496, zo = 37488, Ho = 37489, Go = 37490, Vo = 37491, Wo = 37808, Xo = 37809, jo = 37810, qo = 37811, Yo = 37812, Ko = 37813, Jo = 37814, Zo = 37815, Qo = 37816, $o = 37817, ec = 37818, tc = 37819, nc = 37820, ic = 37821, rc = 36492, sc = 36494, ac = 36495, oc = 36283, cc = 36284, lc = 36285, uc = 36286, dh = 2200, rf = 2201, sf = 2202, rs = 2300, ss = 2301, Ca = 2302, ar = 2400, or = 2401, sa = 2402, Gc = 2500, af = 2501, of = 0, fh = 1, hc = 2, cf = 3200, Vc = 0, lf = 1, pi = "", nt = "srgb", Wt = "srgb-linear", aa = "linear", $e = "srgb", Wi = 7680, Cl = 519, uf = 512, hf = 513, df = 514, Wc = 515, ff = 516, pf = 517, Xc = 518, mf = 519, dc = 35044, Pl = "300 es", Fn = 2e3, oa = 2001;
|
|
4
4
|
function ph(s) {
|
|
5
5
|
for (let e = s.length - 1; e >= 0; --e)
|
|
6
6
|
if (s[e] >= 65535) return !0;
|
|
@@ -108,7 +108,7 @@ class zi {
|
|
|
108
108
|
}
|
|
109
109
|
const Dt = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
|
|
110
110
|
let Ll = 1234567;
|
|
111
|
-
const
|
|
111
|
+
const Kr = Math.PI / 180, gr = 180 / Math.PI;
|
|
112
112
|
function Sn() {
|
|
113
113
|
const s = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, n = Math.random() * 4294967295 | 0;
|
|
114
114
|
return (Dt[s & 255] + Dt[s >> 8 & 255] + Dt[s >> 16 & 255] + Dt[s >> 24 & 255] + "-" + Dt[e & 255] + Dt[e >> 8 & 255] + "-" + Dt[e >> 16 & 15 | 64] + Dt[e >> 24 & 255] + "-" + Dt[t & 63 | 128] + Dt[t >> 8 & 255] + "-" + Dt[t >> 16 & 255] + Dt[t >> 24 & 255] + Dt[n & 255] + Dt[n >> 8 & 255] + Dt[n >> 16 & 255] + Dt[n >> 24 & 255]).toLowerCase();
|
|
@@ -155,7 +155,7 @@ function Rf(s) {
|
|
|
155
155
|
return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;
|
|
156
156
|
}
|
|
157
157
|
function Cf(s) {
|
|
158
|
-
return s *
|
|
158
|
+
return s * Kr;
|
|
159
159
|
}
|
|
160
160
|
function Pf(s) {
|
|
161
161
|
return s * gr;
|
|
@@ -235,7 +235,7 @@ function et(s, e) {
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
const Ff = {
|
|
238
|
-
DEG2RAD:
|
|
238
|
+
DEG2RAD: Kr,
|
|
239
239
|
RAD2DEG: gr,
|
|
240
240
|
/**
|
|
241
241
|
* Generate a [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier)
|
|
@@ -4054,7 +4054,7 @@ class si {
|
|
|
4054
4054
|
intersectsTriangle(e) {
|
|
4055
4055
|
if (this.isEmpty())
|
|
4056
4056
|
return !1;
|
|
4057
|
-
this.getCenter(Nr), vs.subVectors(this.max, Nr), ji.subVectors(e.a, Nr), qi.subVectors(e.b, Nr),
|
|
4057
|
+
this.getCenter(Nr), vs.subVectors(this.max, Nr), ji.subVectors(e.a, Nr), qi.subVectors(e.b, Nr), Yi.subVectors(e.c, Nr), oi.subVectors(qi, ji), ci.subVectors(Yi, qi), Mi.subVectors(ji, Yi);
|
|
4058
4058
|
let t = [
|
|
4059
4059
|
0,
|
|
4060
4060
|
-oi.z,
|
|
@@ -4084,7 +4084,7 @@ class si {
|
|
|
4084
4084
|
Mi.x,
|
|
4085
4085
|
0
|
|
4086
4086
|
];
|
|
4087
|
-
return !Na(t, ji, qi,
|
|
4087
|
+
return !Na(t, ji, qi, Yi, vs) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !Na(t, ji, qi, Yi, vs)) ? !1 : (Ss.crossVectors(oi, ci), t = [Ss.x, Ss.y, Ss.z], Na(t, ji, qi, Yi, vs));
|
|
4088
4088
|
}
|
|
4089
4089
|
/**
|
|
4090
4090
|
* Clamps the given point within the bounds of this box.
|
|
@@ -4196,7 +4196,7 @@ const Wn = [
|
|
|
4196
4196
|
/* @__PURE__ */ new U(),
|
|
4197
4197
|
/* @__PURE__ */ new U(),
|
|
4198
4198
|
/* @__PURE__ */ new U()
|
|
4199
|
-
], mn = /* @__PURE__ */ new U(), xs = /* @__PURE__ */ new si(), ji = /* @__PURE__ */ new U(), qi = /* @__PURE__ */ new U(),
|
|
4199
|
+
], mn = /* @__PURE__ */ new U(), xs = /* @__PURE__ */ new si(), ji = /* @__PURE__ */ new U(), qi = /* @__PURE__ */ new U(), Yi = /* @__PURE__ */ new U(), oi = /* @__PURE__ */ new U(), ci = /* @__PURE__ */ new U(), Mi = /* @__PURE__ */ new U(), Nr = /* @__PURE__ */ new U(), vs = /* @__PURE__ */ new U(), Ss = /* @__PURE__ */ new U(), Ti = /* @__PURE__ */ new U();
|
|
4200
4200
|
function Na(s, e, t, n, i) {
|
|
4201
4201
|
for (let r = 0, a = s.length - 3; r <= a; r += 3) {
|
|
4202
4202
|
Ti.fromArray(s, r);
|
|
@@ -4885,7 +4885,7 @@ class Ne {
|
|
|
4885
4885
|
extractRotation(e) {
|
|
4886
4886
|
if (e.determinant() === 0)
|
|
4887
4887
|
return this.identity();
|
|
4888
|
-
const t = this.elements, n = e.elements, i = 1 /
|
|
4888
|
+
const t = this.elements, n = e.elements, i = 1 / Ki.setFromMatrixColumn(e, 0).length(), r = 1 / Ki.setFromMatrixColumn(e, 1).length(), a = 1 / Ki.setFromMatrixColumn(e, 2).length();
|
|
4889
4889
|
return t[0] = n[0] * i, t[1] = n[1] * i, t[2] = n[2] * i, t[3] = 0, t[4] = n[4] * r, t[5] = n[5] * r, t[6] = n[6] * r, t[7] = 0, t[8] = n[8] * a, t[9] = n[9] * a, t[10] = n[10] * a, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this;
|
|
4890
4890
|
}
|
|
4891
4891
|
/**
|
|
@@ -5301,8 +5301,8 @@ class Ne {
|
|
|
5301
5301
|
const i = this.elements;
|
|
5302
5302
|
if (e.x = i[12], e.y = i[13], e.z = i[14], this.determinant() === 0)
|
|
5303
5303
|
return n.set(1, 1, 1), t.identity(), this;
|
|
5304
|
-
let r =
|
|
5305
|
-
const a =
|
|
5304
|
+
let r = Ki.set(i[0], i[1], i[2]).length();
|
|
5305
|
+
const a = Ki.set(i[4], i[5], i[6]).length(), o = Ki.set(i[8], i[9], i[10]).length();
|
|
5306
5306
|
this.determinant() < 0 && (r = -r), _n.copy(this);
|
|
5307
5307
|
const u = 1 / r, d = 1 / a, c = 1 / o;
|
|
5308
5308
|
return _n.elements[0] *= u, _n.elements[1] *= u, _n.elements[2] *= u, _n.elements[4] *= d, _n.elements[5] *= d, _n.elements[6] *= d, _n.elements[8] *= c, _n.elements[9] *= c, _n.elements[10] *= c, t.setFromRotationMatrix(_n), n.x = r, n.y = a, n.z = o, this;
|
|
@@ -5398,7 +5398,7 @@ class Ne {
|
|
|
5398
5398
|
return e[t] = n[0], e[t + 1] = n[1], e[t + 2] = n[2], e[t + 3] = n[3], e[t + 4] = n[4], e[t + 5] = n[5], e[t + 6] = n[6], e[t + 7] = n[7], e[t + 8] = n[8], e[t + 9] = n[9], e[t + 10] = n[10], e[t + 11] = n[11], e[t + 12] = n[12], e[t + 13] = n[13], e[t + 14] = n[14], e[t + 15] = n[15], e;
|
|
5399
5399
|
}
|
|
5400
5400
|
}
|
|
5401
|
-
const
|
|
5401
|
+
const Ki = /* @__PURE__ */ new U(), _n = /* @__PURE__ */ new Ne(), Vf = /* @__PURE__ */ new U(0, 0, 0), Wf = /* @__PURE__ */ new U(1, 1, 1), ui = /* @__PURE__ */ new U(), Ts = /* @__PURE__ */ new U(), Qt = /* @__PURE__ */ new U(), Ul = /* @__PURE__ */ new Ne(), Ol = /* @__PURE__ */ new yn();
|
|
5402
5402
|
class An {
|
|
5403
5403
|
/**
|
|
5404
5404
|
* Constructs a new euler instance.
|
|
@@ -5670,7 +5670,7 @@ class _h {
|
|
|
5670
5670
|
}
|
|
5671
5671
|
}
|
|
5672
5672
|
let Xf = 0;
|
|
5673
|
-
const kl = /* @__PURE__ */ new U(), Ji = /* @__PURE__ */ new yn(), jn = /* @__PURE__ */ new Ne(), As = /* @__PURE__ */ new U(), Ur = /* @__PURE__ */ new U(), jf = /* @__PURE__ */ new U(), qf = /* @__PURE__ */ new yn(), Bl = /* @__PURE__ */ new U(1, 0, 0), zl = /* @__PURE__ */ new U(0, 1, 0), Hl = /* @__PURE__ */ new U(0, 0, 1), Gl = { type: "added" },
|
|
5673
|
+
const kl = /* @__PURE__ */ new U(), Ji = /* @__PURE__ */ new yn(), jn = /* @__PURE__ */ new Ne(), As = /* @__PURE__ */ new U(), Ur = /* @__PURE__ */ new U(), jf = /* @__PURE__ */ new U(), qf = /* @__PURE__ */ new yn(), Bl = /* @__PURE__ */ new U(1, 0, 0), zl = /* @__PURE__ */ new U(0, 1, 0), Hl = /* @__PURE__ */ new U(0, 0, 1), Gl = { type: "added" }, Yf = { type: "removed" }, Zi = { type: "childadded", child: null }, Ba = { type: "childremoved", child: null };
|
|
5674
5674
|
class ft extends zi {
|
|
5675
5675
|
/**
|
|
5676
5676
|
* Constructs a new 3D object.
|
|
@@ -6004,7 +6004,7 @@ class ft extends zi {
|
|
|
6004
6004
|
return this;
|
|
6005
6005
|
}
|
|
6006
6006
|
const t = this.children.indexOf(e);
|
|
6007
|
-
return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(
|
|
6007
|
+
return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(Yf), Ba.child = e, this.dispatchEvent(Ba), Ba.child = null), this;
|
|
6008
6008
|
}
|
|
6009
6009
|
/**
|
|
6010
6010
|
* Removes this 3D object from its current parent.
|
|
@@ -6328,7 +6328,7 @@ class ft extends zi {
|
|
|
6328
6328
|
ft.DEFAULT_UP = /* @__PURE__ */ new U(0, 1, 0);
|
|
6329
6329
|
ft.DEFAULT_MATRIX_AUTO_UPDATE = !0;
|
|
6330
6330
|
ft.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
|
|
6331
|
-
const gn = /* @__PURE__ */ new U(), qn = /* @__PURE__ */ new U(), za = /* @__PURE__ */ new U(),
|
|
6331
|
+
const gn = /* @__PURE__ */ new U(), qn = /* @__PURE__ */ new U(), za = /* @__PURE__ */ new U(), Yn = /* @__PURE__ */ new U(), Qi = /* @__PURE__ */ new U(), $i = /* @__PURE__ */ new U(), Vl = /* @__PURE__ */ new U(), Ha = /* @__PURE__ */ new U(), Ga = /* @__PURE__ */ new U(), Va = /* @__PURE__ */ new U(), Wa = /* @__PURE__ */ new ht(), Xa = /* @__PURE__ */ new ht(), ja = /* @__PURE__ */ new ht();
|
|
6332
6332
|
class xn {
|
|
6333
6333
|
/**
|
|
6334
6334
|
* Constructs a new triangle.
|
|
@@ -6385,7 +6385,7 @@ class xn {
|
|
|
6385
6385
|
* triangle, lies within the triangle or not.
|
|
6386
6386
|
*/
|
|
6387
6387
|
static containsPoint(e, t, n, i) {
|
|
6388
|
-
return this.getBarycoord(e, t, n, i,
|
|
6388
|
+
return this.getBarycoord(e, t, n, i, Yn) === null ? !1 : Yn.x >= 0 && Yn.y >= 0 && Yn.x + Yn.y <= 1;
|
|
6389
6389
|
}
|
|
6390
6390
|
/**
|
|
6391
6391
|
* Computes the value barycentrically interpolated for the given point on the
|
|
@@ -6402,7 +6402,7 @@ class xn {
|
|
|
6402
6402
|
* @return {?Vector3} The interpolated value.
|
|
6403
6403
|
*/
|
|
6404
6404
|
static getInterpolation(e, t, n, i, r, a, o, l) {
|
|
6405
|
-
return this.getBarycoord(e, t, n, i,
|
|
6405
|
+
return this.getBarycoord(e, t, n, i, Yn) === null ? (l.x = 0, l.y = 0, "z" in l && (l.z = 0), "w" in l && (l.w = 0), null) : (l.setScalar(0), l.addScaledVector(r, Yn.x), l.addScaledVector(a, Yn.y), l.addScaledVector(o, Yn.z), l);
|
|
6406
6406
|
}
|
|
6407
6407
|
/**
|
|
6408
6408
|
* Computes the value barycentrically interpolated for the given attribute and indices.
|
|
@@ -7238,13 +7238,13 @@ class Ce {
|
|
|
7238
7238
|
}
|
|
7239
7239
|
const Nt = /* @__PURE__ */ new Ce();
|
|
7240
7240
|
Ce.NAMES = gh;
|
|
7241
|
-
let
|
|
7241
|
+
let Kf = 0;
|
|
7242
7242
|
class Mn extends zi {
|
|
7243
7243
|
/**
|
|
7244
7244
|
* Constructs a new material.
|
|
7245
7245
|
*/
|
|
7246
7246
|
constructor() {
|
|
7247
|
-
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value:
|
|
7247
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Kf++ }), this.uuid = Sn(), this.name = "", this.type = "Material", this.blending = lr, this.side = ti, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = yo, this.blendDst = Mo, this.blendEquation = Ii, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new Ce(0, 0, 0), this.blendAlpha = 0, this.depthFunc = pr, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Cl, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Wi, this.stencilZFail = Wi, this.stencilZPass = Wi, 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.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
|
|
7248
7248
|
}
|
|
7249
7249
|
/**
|
|
7250
7250
|
* Sets the alpha value to be used when running an alpha test. The material
|
|
@@ -7783,7 +7783,7 @@ class Tn extends Vt {
|
|
|
7783
7783
|
}
|
|
7784
7784
|
}
|
|
7785
7785
|
let Zf = 0;
|
|
7786
|
-
const an = /* @__PURE__ */ new Ne(),
|
|
7786
|
+
const an = /* @__PURE__ */ new Ne(), Ya = /* @__PURE__ */ new ft(), er = /* @__PURE__ */ new U(), $t = /* @__PURE__ */ new si(), Or = /* @__PURE__ */ new si(), Ct = /* @__PURE__ */ new U();
|
|
7787
7787
|
class pn extends zi {
|
|
7788
7788
|
/**
|
|
7789
7789
|
* Constructs a new geometry.
|
|
@@ -7989,7 +7989,7 @@ class pn extends zi {
|
|
|
7989
7989
|
* @return {BufferGeometry} A reference to this instance.
|
|
7990
7990
|
*/
|
|
7991
7991
|
lookAt(e) {
|
|
7992
|
-
return
|
|
7992
|
+
return Ya.lookAt(e), Ya.updateMatrix(), this.applyMatrix4(Ya.matrix), this;
|
|
7993
7993
|
}
|
|
7994
7994
|
/**
|
|
7995
7995
|
* Center the geometry based on its bounding box.
|
|
@@ -8314,8 +8314,8 @@ class pn extends zi {
|
|
|
8314
8314
|
this.dispatchEvent({ type: "dispose" });
|
|
8315
8315
|
}
|
|
8316
8316
|
}
|
|
8317
|
-
const Wl = /* @__PURE__ */ new Ne(), Ai = /* @__PURE__ */ new ba(), Rs = /* @__PURE__ */ new Hn(), Xl = /* @__PURE__ */ new U(), Cs = /* @__PURE__ */ new U(), Ps = /* @__PURE__ */ new U(), Is = /* @__PURE__ */ new U(),
|
|
8318
|
-
class
|
|
8317
|
+
const Wl = /* @__PURE__ */ new Ne(), Ai = /* @__PURE__ */ new ba(), Rs = /* @__PURE__ */ new Hn(), Xl = /* @__PURE__ */ new U(), Cs = /* @__PURE__ */ new U(), Ps = /* @__PURE__ */ new U(), Is = /* @__PURE__ */ new U(), Ka = /* @__PURE__ */ new U(), Ls = /* @__PURE__ */ new U(), jl = /* @__PURE__ */ new U(), Ds = /* @__PURE__ */ new U();
|
|
8318
|
+
class Kt extends ft {
|
|
8319
8319
|
/**
|
|
8320
8320
|
* Constructs a new mesh.
|
|
8321
8321
|
*
|
|
@@ -8361,7 +8361,7 @@ class Yt extends ft {
|
|
|
8361
8361
|
Ls.set(0, 0, 0);
|
|
8362
8362
|
for (let l = 0, u = r.length; l < u; l++) {
|
|
8363
8363
|
const d = o[l], c = r[l];
|
|
8364
|
-
d !== 0 && (
|
|
8364
|
+
d !== 0 && (Ka.fromBufferAttribute(c, e), a ? Ls.addScaledVector(Ka, d) : Ls.addScaledVector(Ka.sub(t), d));
|
|
8365
8365
|
}
|
|
8366
8366
|
t.add(Ls);
|
|
8367
8367
|
}
|
|
@@ -8639,7 +8639,7 @@ class Sh extends ft {
|
|
|
8639
8639
|
return new this.constructor().copy(this);
|
|
8640
8640
|
}
|
|
8641
8641
|
}
|
|
8642
|
-
const di = /* @__PURE__ */ new U(), ql = /* @__PURE__ */ new We(),
|
|
8642
|
+
const di = /* @__PURE__ */ new U(), ql = /* @__PURE__ */ new We(), Yl = /* @__PURE__ */ new We();
|
|
8643
8643
|
class Ht extends Sh {
|
|
8644
8644
|
/**
|
|
8645
8645
|
* Constructs a new perspective camera.
|
|
@@ -8674,7 +8674,7 @@ class Ht extends Sh {
|
|
|
8674
8674
|
* @return {number} The computed focal length.
|
|
8675
8675
|
*/
|
|
8676
8676
|
getFocalLength() {
|
|
8677
|
-
const e = Math.tan(
|
|
8677
|
+
const e = Math.tan(Kr * 0.5 * this.fov);
|
|
8678
8678
|
return 0.5 * this.getFilmHeight() / e;
|
|
8679
8679
|
}
|
|
8680
8680
|
/**
|
|
@@ -8684,7 +8684,7 @@ class Ht extends Sh {
|
|
|
8684
8684
|
*/
|
|
8685
8685
|
getEffectiveFOV() {
|
|
8686
8686
|
return gr * 2 * Math.atan(
|
|
8687
|
-
Math.tan(
|
|
8687
|
+
Math.tan(Kr * 0.5 * this.fov) / this.zoom
|
|
8688
8688
|
);
|
|
8689
8689
|
}
|
|
8690
8690
|
/**
|
|
@@ -8724,7 +8724,7 @@ class Ht extends Sh {
|
|
|
8724
8724
|
* @returns {Vector2} The view size.
|
|
8725
8725
|
*/
|
|
8726
8726
|
getViewSize(e, t) {
|
|
8727
|
-
return this.getViewBounds(e, ql,
|
|
8727
|
+
return this.getViewBounds(e, ql, Yl), t.subVectors(Yl, ql);
|
|
8728
8728
|
}
|
|
8729
8729
|
/**
|
|
8730
8730
|
* Sets an offset in a larger frustum. This is useful for multi-window or
|
|
@@ -8792,7 +8792,7 @@ class Ht extends Sh {
|
|
|
8792
8792
|
*/
|
|
8793
8793
|
updateProjectionMatrix() {
|
|
8794
8794
|
const e = this.near;
|
|
8795
|
-
let t = e * Math.tan(
|
|
8795
|
+
let t = e * Math.tan(Kr * 0.5 * this.fov) / this.zoom, n = 2 * t, i = this.aspect * n, r = -0.5 * i;
|
|
8796
8796
|
const a = this.view;
|
|
8797
8797
|
if (this.view !== null && this.view.enabled) {
|
|
8798
8798
|
const l = a.fullWidth, u = a.fullHeight;
|
|
@@ -8862,7 +8862,7 @@ class ip extends ft {
|
|
|
8862
8862
|
n.texture.generateMipmaps = !1, e.setRenderTarget(n, 0, i), e.render(t, r), e.setRenderTarget(n, 1, i), e.render(t, a), e.setRenderTarget(n, 2, i), e.render(t, o), e.setRenderTarget(n, 3, i), e.render(t, l), e.setRenderTarget(n, 4, i), e.render(t, u), n.texture.generateMipmaps = g, e.setRenderTarget(n, 5, i), e.render(t, d), e.setRenderTarget(c, h, f), e.xr.enabled = m, n.texture.needsPMREMUpdate = !0;
|
|
8863
8863
|
}
|
|
8864
8864
|
}
|
|
8865
|
-
class
|
|
8865
|
+
class Yc extends Pt {
|
|
8866
8866
|
/**
|
|
8867
8867
|
* Constructs a new cube texture.
|
|
8868
8868
|
*
|
|
@@ -8902,7 +8902,7 @@ class yh extends On {
|
|
|
8902
8902
|
constructor(e = 1, t = {}) {
|
|
8903
8903
|
super(e, e, t), this.isWebGLCubeRenderTarget = !0;
|
|
8904
8904
|
const n = { width: e, height: e, depth: 1 }, i = [n, n, n, n, n, n];
|
|
8905
|
-
this.texture = new
|
|
8905
|
+
this.texture = new Yc(i), this._setTextureOptions(t), this.texture.isRenderTargetTexture = !0;
|
|
8906
8906
|
}
|
|
8907
8907
|
/**
|
|
8908
8908
|
* Converts the given equirectangular texture to a cube map.
|
|
@@ -8969,7 +8969,7 @@ class yh extends On {
|
|
|
8969
8969
|
blending: $n
|
|
8970
8970
|
});
|
|
8971
8971
|
r.uniforms.tEquirect.value = t;
|
|
8972
|
-
const a = new
|
|
8972
|
+
const a = new Kt(i, r), o = t.minFilter;
|
|
8973
8973
|
return t.minFilter === Zn && (t.minFilter = At), new ip(1, 10, this).update(e, a), t.minFilter = o, a.geometry.dispose(), a.material.dispose(), this;
|
|
8974
8974
|
}
|
|
8975
8975
|
/**
|
|
@@ -9249,7 +9249,7 @@ class ap {
|
|
|
9249
9249
|
}
|
|
9250
9250
|
}
|
|
9251
9251
|
const Bt = /* @__PURE__ */ new U();
|
|
9252
|
-
class
|
|
9252
|
+
class Kc {
|
|
9253
9253
|
/**
|
|
9254
9254
|
* Constructs a new interleaved buffer attribute.
|
|
9255
9255
|
*
|
|
@@ -9482,7 +9482,7 @@ class Yc {
|
|
|
9482
9482
|
}
|
|
9483
9483
|
return new Vt(new this.array.constructor(t), this.itemSize, this.normalized);
|
|
9484
9484
|
} else
|
|
9485
|
-
return e.interleavedBuffers === void 0 && (e.interleavedBuffers = {}), e.interleavedBuffers[this.data.uuid] === void 0 && (e.interleavedBuffers[this.data.uuid] = this.data.clone(e)), new
|
|
9485
|
+
return e.interleavedBuffers === void 0 && (e.interleavedBuffers = {}), e.interleavedBuffers[this.data.uuid] === void 0 && (e.interleavedBuffers[this.data.uuid] = this.data.clone(e)), new Kc(e.interleavedBuffers[this.data.uuid], this.itemSize, this.offset, this.normalized);
|
|
9486
9486
|
}
|
|
9487
9487
|
/**
|
|
9488
9488
|
* Serializes the buffer attribute into JSON.
|
|
@@ -9517,8 +9517,8 @@ class Yc {
|
|
|
9517
9517
|
};
|
|
9518
9518
|
}
|
|
9519
9519
|
}
|
|
9520
|
-
const
|
|
9521
|
-
class cp extends
|
|
9520
|
+
const Kl = /* @__PURE__ */ new U(), Jl = /* @__PURE__ */ new ht(), Zl = /* @__PURE__ */ new ht(), op = /* @__PURE__ */ new U(), Ql = /* @__PURE__ */ new Ne(), Fs = /* @__PURE__ */ new U(), Za = /* @__PURE__ */ new Hn(), $l = /* @__PURE__ */ new Ne(), Qa = /* @__PURE__ */ new ba();
|
|
9521
|
+
class cp extends Kt {
|
|
9522
9522
|
/**
|
|
9523
9523
|
* Constructs a new skinned mesh.
|
|
9524
9524
|
*
|
|
@@ -9606,12 +9606,12 @@ class cp extends Yt {
|
|
|
9606
9606
|
*/
|
|
9607
9607
|
applyBoneTransform(e, t) {
|
|
9608
9608
|
const n = this.skeleton, i = this.geometry;
|
|
9609
|
-
Jl.fromBufferAttribute(i.attributes.skinIndex, e), Zl.fromBufferAttribute(i.attributes.skinWeight, e),
|
|
9609
|
+
Jl.fromBufferAttribute(i.attributes.skinIndex, e), Zl.fromBufferAttribute(i.attributes.skinWeight, e), Kl.copy(t).applyMatrix4(this.bindMatrix), t.set(0, 0, 0);
|
|
9610
9610
|
for (let r = 0; r < 4; r++) {
|
|
9611
9611
|
const a = Zl.getComponent(r);
|
|
9612
9612
|
if (a !== 0) {
|
|
9613
9613
|
const o = Jl.getComponent(r);
|
|
9614
|
-
Ql.multiplyMatrices(n.bones[o].matrixWorld, n.boneInverses[o]), t.addScaledVector(op.copy(
|
|
9614
|
+
Ql.multiplyMatrices(n.bones[o].matrixWorld, n.boneInverses[o]), t.addScaledVector(op.copy(Kl).applyMatrix4(Ql), a);
|
|
9615
9615
|
}
|
|
9616
9616
|
}
|
|
9617
9617
|
return t.applyMatrix4(this.bindMatrixInverse);
|
|
@@ -9813,8 +9813,8 @@ class fc extends Vt {
|
|
|
9813
9813
|
return e.meshPerAttribute = this.meshPerAttribute, e.isInstancedBufferAttribute = !0, e;
|
|
9814
9814
|
}
|
|
9815
9815
|
}
|
|
9816
|
-
const ir = /* @__PURE__ */ new Ne(), tu = /* @__PURE__ */ new Ne(), Us = [], nu = /* @__PURE__ */ new si(), up = /* @__PURE__ */ new Ne(), kr = /* @__PURE__ */ new
|
|
9817
|
-
class hp extends
|
|
9816
|
+
const ir = /* @__PURE__ */ new Ne(), tu = /* @__PURE__ */ new Ne(), Us = [], nu = /* @__PURE__ */ new si(), up = /* @__PURE__ */ new Ne(), kr = /* @__PURE__ */ new Kt(), Br = /* @__PURE__ */ new Hn();
|
|
9817
|
+
class hp extends Kt {
|
|
9818
9818
|
/**
|
|
9819
9819
|
* Constructs a new instanced mesh.
|
|
9820
9820
|
*
|
|
@@ -11985,7 +11985,7 @@ class Hi {
|
|
|
11985
11985
|
}
|
|
11986
11986
|
}
|
|
11987
11987
|
Hi.DEFAULT_MATERIAL_NAME = "__DEFAULT";
|
|
11988
|
-
const
|
|
11988
|
+
const Kn = {};
|
|
11989
11989
|
class Cp extends Error {
|
|
11990
11990
|
constructor(e, t) {
|
|
11991
11991
|
super(e), this.response = t;
|
|
@@ -12016,15 +12016,15 @@ class Ph extends Hi {
|
|
|
12016
12016
|
return this.manager.itemStart(e), setTimeout(() => {
|
|
12017
12017
|
t && t(r), this.manager.itemEnd(e);
|
|
12018
12018
|
}, 0), r;
|
|
12019
|
-
if (
|
|
12020
|
-
|
|
12019
|
+
if (Kn[e] !== void 0) {
|
|
12020
|
+
Kn[e].push({
|
|
12021
12021
|
onLoad: t,
|
|
12022
12022
|
onProgress: n,
|
|
12023
12023
|
onError: i
|
|
12024
12024
|
});
|
|
12025
12025
|
return;
|
|
12026
12026
|
}
|
|
12027
|
-
|
|
12027
|
+
Kn[e] = [], Kn[e].push({
|
|
12028
12028
|
onLoad: t,
|
|
12029
12029
|
onProgress: n,
|
|
12030
12030
|
onError: i
|
|
@@ -12038,7 +12038,7 @@ class Ph extends Hi {
|
|
|
12038
12038
|
if (u.status === 200 || u.status === 0) {
|
|
12039
12039
|
if (u.status === 0 && Me("FileLoader: HTTP Status 0 received."), typeof ReadableStream > "u" || u.body === void 0 || u.body.getReader === void 0)
|
|
12040
12040
|
return u;
|
|
12041
|
-
const d =
|
|
12041
|
+
const d = Kn[e], c = u.body.getReader(), h = u.headers.get("X-File-Size") || u.headers.get("Content-Length"), f = h ? parseInt(h) : 0, m = f !== 0;
|
|
12042
12042
|
let g = 0;
|
|
12043
12043
|
const _ = new ReadableStream({
|
|
12044
12044
|
start(p) {
|
|
@@ -12085,17 +12085,17 @@ class Ph extends Hi {
|
|
|
12085
12085
|
}
|
|
12086
12086
|
}).then((u) => {
|
|
12087
12087
|
Qn.add(`file:${e}`, u);
|
|
12088
|
-
const d =
|
|
12089
|
-
delete
|
|
12088
|
+
const d = Kn[e];
|
|
12089
|
+
delete Kn[e];
|
|
12090
12090
|
for (let c = 0, h = d.length; c < h; c++) {
|
|
12091
12091
|
const f = d[c];
|
|
12092
12092
|
f.onLoad && f.onLoad(u);
|
|
12093
12093
|
}
|
|
12094
12094
|
}).catch((u) => {
|
|
12095
|
-
const d =
|
|
12095
|
+
const d = Kn[e];
|
|
12096
12096
|
if (d === void 0)
|
|
12097
12097
|
throw this.manager.itemError(e), u;
|
|
12098
|
-
delete
|
|
12098
|
+
delete Kn[e];
|
|
12099
12099
|
for (let c = 0, h = d.length; c < h; c++) {
|
|
12100
12100
|
const f = d[c];
|
|
12101
12101
|
f.onError && f.onError(u);
|
|
@@ -12217,7 +12217,7 @@ class Pp extends Hi {
|
|
|
12217
12217
|
* @return {CubeTexture} The cube texture.
|
|
12218
12218
|
*/
|
|
12219
12219
|
load(e, t, n, i) {
|
|
12220
|
-
const r = new
|
|
12220
|
+
const r = new Yc();
|
|
12221
12221
|
r.colorSpace = nt;
|
|
12222
12222
|
const a = new Ih(this.manager);
|
|
12223
12223
|
a.setCrossOrigin(this.crossOrigin), a.setPath(this.path);
|
|
@@ -12913,10 +12913,10 @@ class zp {
|
|
|
12913
12913
|
}
|
|
12914
12914
|
const nl = "\\[\\]\\.:\\/", Hp = new RegExp("[" + nl + "]", "g"), il = "[^" + nl + "]", Gp = "[^" + nl.replace("\\.", "") + "]", Vp = /* @__PURE__ */ /((?:WC+[\/:])*)/.source.replace("WC", il), Wp = /* @__PURE__ */ /(WCOD+)?/.source.replace("WCOD", Gp), Xp = /* @__PURE__ */ /(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC", il), jp = /* @__PURE__ */ /\.(WC+)(?:\[(.+)\])?/.source.replace("WC", il), qp = new RegExp(
|
|
12915
12915
|
"^" + Vp + Wp + Xp + jp + "$"
|
|
12916
|
-
),
|
|
12917
|
-
class
|
|
12916
|
+
), Yp = ["material", "materials", "bones", "map"];
|
|
12917
|
+
class Kp {
|
|
12918
12918
|
constructor(e, t, n) {
|
|
12919
|
-
const i = n ||
|
|
12919
|
+
const i = n || Ke.parseTrackName(t);
|
|
12920
12920
|
this._targetGroup = e, this._bindings = e.subscribe_(t, i);
|
|
12921
12921
|
}
|
|
12922
12922
|
getValue(e, t) {
|
|
@@ -12940,7 +12940,7 @@ class Yp {
|
|
|
12940
12940
|
e[t].unbind();
|
|
12941
12941
|
}
|
|
12942
12942
|
}
|
|
12943
|
-
class
|
|
12943
|
+
class Ke {
|
|
12944
12944
|
/**
|
|
12945
12945
|
* Constructs a new property binding.
|
|
12946
12946
|
*
|
|
@@ -12949,7 +12949,7 @@ class Ye {
|
|
|
12949
12949
|
* @param {?Object} [parsedPath] - The parsed path.
|
|
12950
12950
|
*/
|
|
12951
12951
|
constructor(e, t, n) {
|
|
12952
|
-
this.path = t, this.parsedPath = n ||
|
|
12952
|
+
this.path = t, this.parsedPath = n || Ke.parseTrackName(t), this.node = Ke.findNode(e, this.parsedPath.nodeName), this.rootNode = e, this.getValue = this._getValue_unbound, this.setValue = this._setValue_unbound;
|
|
12953
12953
|
}
|
|
12954
12954
|
/**
|
|
12955
12955
|
* Factory method for creating a property binding from the given parameters.
|
|
@@ -12961,7 +12961,7 @@ class Ye {
|
|
|
12961
12961
|
* @return {PropertyBinding|Composite} The created property binding or composite.
|
|
12962
12962
|
*/
|
|
12963
12963
|
static create(e, t, n) {
|
|
12964
|
-
return e && e.isAnimationObjectGroup ? new
|
|
12964
|
+
return e && e.isAnimationObjectGroup ? new Ke.Composite(e, t, n) : new Ke(e, t, n);
|
|
12965
12965
|
}
|
|
12966
12966
|
/**
|
|
12967
12967
|
* Replaces spaces with underscores and removes unsupported characters from
|
|
@@ -13006,7 +13006,7 @@ class Ye {
|
|
|
13006
13006
|
}, i = n.nodeName && n.nodeName.lastIndexOf(".");
|
|
13007
13007
|
if (i !== void 0 && i !== -1) {
|
|
13008
13008
|
const r = n.nodeName.substring(i + 1);
|
|
13009
|
-
|
|
13009
|
+
Yp.indexOf(r) !== -1 && (n.nodeName = n.nodeName.substring(0, i), n.objectName = r);
|
|
13010
13010
|
}
|
|
13011
13011
|
if (n.propertyName === null || n.propertyName.length === 0)
|
|
13012
13012
|
throw new Error("PropertyBinding: can not parse propertyName from trackName: " + e);
|
|
@@ -13126,7 +13126,7 @@ class Ye {
|
|
|
13126
13126
|
let e = this.node;
|
|
13127
13127
|
const t = this.parsedPath, n = t.objectName, i = t.propertyName;
|
|
13128
13128
|
let r = t.propertyIndex;
|
|
13129
|
-
if (e || (e =
|
|
13129
|
+
if (e || (e = Ke.findNode(this.rootNode, t.nodeName), this.node = e), this.getValue = this._getValue_unavailable, this.setValue = this._setValue_unavailable, !e) {
|
|
13130
13130
|
Me("PropertyBinding: No target node found for track: " + this.path + ".");
|
|
13131
13131
|
return;
|
|
13132
13132
|
}
|
|
@@ -13218,48 +13218,48 @@ class Ye {
|
|
|
13218
13218
|
this.node = null, this.getValue = this._getValue_unbound, this.setValue = this._setValue_unbound;
|
|
13219
13219
|
}
|
|
13220
13220
|
}
|
|
13221
|
-
|
|
13222
|
-
|
|
13221
|
+
Ke.Composite = Kp;
|
|
13222
|
+
Ke.prototype.BindingType = {
|
|
13223
13223
|
Direct: 0,
|
|
13224
13224
|
EntireArray: 1,
|
|
13225
13225
|
ArrayElement: 2,
|
|
13226
13226
|
HasFromToArray: 3
|
|
13227
13227
|
};
|
|
13228
|
-
|
|
13228
|
+
Ke.prototype.Versioning = {
|
|
13229
13229
|
None: 0,
|
|
13230
13230
|
NeedsUpdate: 1,
|
|
13231
13231
|
MatrixWorldNeedsUpdate: 2
|
|
13232
13232
|
};
|
|
13233
|
-
|
|
13234
|
-
|
|
13235
|
-
|
|
13236
|
-
|
|
13237
|
-
|
|
13233
|
+
Ke.prototype.GetterByBindingType = [
|
|
13234
|
+
Ke.prototype._getValue_direct,
|
|
13235
|
+
Ke.prototype._getValue_array,
|
|
13236
|
+
Ke.prototype._getValue_arrayElement,
|
|
13237
|
+
Ke.prototype._getValue_toArray
|
|
13238
13238
|
];
|
|
13239
|
-
|
|
13239
|
+
Ke.prototype.SetterByBindingTypeAndVersioning = [
|
|
13240
13240
|
[
|
|
13241
13241
|
// Direct
|
|
13242
|
-
|
|
13243
|
-
|
|
13244
|
-
|
|
13242
|
+
Ke.prototype._setValue_direct,
|
|
13243
|
+
Ke.prototype._setValue_direct_setNeedsUpdate,
|
|
13244
|
+
Ke.prototype._setValue_direct_setMatrixWorldNeedsUpdate
|
|
13245
13245
|
],
|
|
13246
13246
|
[
|
|
13247
13247
|
// EntireArray
|
|
13248
|
-
|
|
13249
|
-
|
|
13250
|
-
|
|
13248
|
+
Ke.prototype._setValue_array,
|
|
13249
|
+
Ke.prototype._setValue_array_setNeedsUpdate,
|
|
13250
|
+
Ke.prototype._setValue_array_setMatrixWorldNeedsUpdate
|
|
13251
13251
|
],
|
|
13252
13252
|
[
|
|
13253
13253
|
// ArrayElement
|
|
13254
|
-
|
|
13255
|
-
|
|
13256
|
-
|
|
13254
|
+
Ke.prototype._setValue_arrayElement,
|
|
13255
|
+
Ke.prototype._setValue_arrayElement_setNeedsUpdate,
|
|
13256
|
+
Ke.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate
|
|
13257
13257
|
],
|
|
13258
13258
|
[
|
|
13259
13259
|
// HasToFromArray
|
|
13260
|
-
|
|
13261
|
-
|
|
13262
|
-
|
|
13260
|
+
Ke.prototype._setValue_fromArray,
|
|
13261
|
+
Ke.prototype._setValue_fromArray_setNeedsUpdate,
|
|
13262
|
+
Ke.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate
|
|
13263
13263
|
]
|
|
13264
13264
|
];
|
|
13265
13265
|
class Jp {
|
|
@@ -13658,7 +13658,7 @@ class Qp extends zi {
|
|
|
13658
13658
|
}
|
|
13659
13659
|
const g = t && t._propertyBindings[c].binding.parsedPath;
|
|
13660
13660
|
m = new zp(
|
|
13661
|
-
|
|
13661
|
+
Ke.create(n, f, g),
|
|
13662
13662
|
h.ValueTypeName,
|
|
13663
13663
|
h.getValueSize()
|
|
13664
13664
|
), ++m.referenceCount, this._addInactiveBinding(m, l, f), a[c] = m;
|
|
@@ -13996,9 +13996,9 @@ function du(s, e, t, n) {
|
|
|
13996
13996
|
return Math.floor((s + 4) / 5) * Math.floor((e + 4) / 5) * 16;
|
|
13997
13997
|
case qo:
|
|
13998
13998
|
return Math.floor((s + 5) / 6) * Math.floor((e + 4) / 5) * 16;
|
|
13999
|
-
case Ko:
|
|
14000
|
-
return Math.floor((s + 5) / 6) * Math.floor((e + 5) / 6) * 16;
|
|
14001
13999
|
case Yo:
|
|
14000
|
+
return Math.floor((s + 5) / 6) * Math.floor((e + 5) / 6) * 16;
|
|
14001
|
+
case Ko:
|
|
14002
14002
|
return Math.floor((s + 7) / 8) * Math.floor((e + 4) / 5) * 16;
|
|
14003
14003
|
case Jo:
|
|
14004
14004
|
return Math.floor((s + 7) / 8) * Math.floor((e + 5) / 6) * 16;
|
|
@@ -14949,8 +14949,8 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi
|
|
|
14949
14949
|
#endif
|
|
14950
14950
|
}
|
|
14951
14951
|
#endif
|
|
14952
|
-
#endif`,
|
|
14953
|
-
material.diffuseColor = diffuseColor.rgb;`,
|
|
14952
|
+
#endif`, Ym = `ToonMaterial material;
|
|
14953
|
+
material.diffuseColor = diffuseColor.rgb;`, Km = `varying vec3 vViewPosition;
|
|
14954
14954
|
struct ToonMaterial {
|
|
14955
14955
|
vec3 diffuseColor;
|
|
14956
14956
|
};
|
|
@@ -16300,7 +16300,7 @@ vec3 NeutralToneMapping( vec3 color ) {
|
|
|
16300
16300
|
float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );
|
|
16301
16301
|
return mix( color, vec3( newPeak ), g );
|
|
16302
16302
|
}
|
|
16303
|
-
vec3 CustomToneMapping( vec3 color ) { return color; }`,
|
|
16303
|
+
vec3 CustomToneMapping( vec3 color ) { return color; }`, Y_ = `#ifdef USE_TRANSMISSION
|
|
16304
16304
|
material.transmission = transmission;
|
|
16305
16305
|
material.transmissionAlpha = 1.0;
|
|
16306
16306
|
material.thickness = thickness;
|
|
@@ -16321,7 +16321,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`, K_ = `#ifdef USE_TRANSM
|
|
|
16321
16321
|
material.attenuationColor, material.attenuationDistance );
|
|
16322
16322
|
material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );
|
|
16323
16323
|
totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );
|
|
16324
|
-
#endif`,
|
|
16324
|
+
#endif`, K_ = `#ifdef USE_TRANSMISSION
|
|
16325
16325
|
uniform float transmission;
|
|
16326
16326
|
uniform float thickness;
|
|
16327
16327
|
uniform float attenuationDistance;
|
|
@@ -17790,8 +17790,8 @@ void main() {
|
|
|
17790
17790
|
lights_lambert_fragment: Wm,
|
|
17791
17791
|
lights_lambert_pars_fragment: Xm,
|
|
17792
17792
|
lights_pars_begin: jm,
|
|
17793
|
-
lights_toon_fragment:
|
|
17794
|
-
lights_toon_pars_fragment:
|
|
17793
|
+
lights_toon_fragment: Ym,
|
|
17794
|
+
lights_toon_pars_fragment: Km,
|
|
17795
17795
|
lights_phong_fragment: Jm,
|
|
17796
17796
|
lights_phong_pars_fragment: Zm,
|
|
17797
17797
|
lights_physical_fragment: Qm,
|
|
@@ -17844,8 +17844,8 @@ void main() {
|
|
|
17844
17844
|
specularmap_pars_fragment: X_,
|
|
17845
17845
|
tonemapping_fragment: j_,
|
|
17846
17846
|
tonemapping_pars_fragment: q_,
|
|
17847
|
-
transmission_fragment:
|
|
17848
|
-
transmission_pars_fragment:
|
|
17847
|
+
transmission_fragment: Y_,
|
|
17848
|
+
transmission_pars_fragment: K_,
|
|
17849
17849
|
uv_pars_fragment: J_,
|
|
17850
17850
|
uv_pars_vertex: Z_,
|
|
17851
17851
|
uv_vertex: Q_,
|
|
@@ -18341,7 +18341,7 @@ function Fg(s, e, t, n, i, r, a) {
|
|
|
18341
18341
|
}
|
|
18342
18342
|
function _(S, y) {
|
|
18343
18343
|
const T = m(y);
|
|
18344
|
-
T && (T.isCubeTexture || T.mapping === ga) ? (d === void 0 && (d = new
|
|
18344
|
+
T && (T.isCubeTexture || T.mapping === ga) ? (d === void 0 && (d = new Kt(
|
|
18345
18345
|
new fs(1, 1, 1),
|
|
18346
18346
|
new Bn({
|
|
18347
18347
|
name: "BackgroundCubeMaterial",
|
|
@@ -18360,7 +18360,7 @@ function Fg(s, e, t, n, i, r, a) {
|
|
|
18360
18360
|
get: function() {
|
|
18361
18361
|
return this.uniforms.envMap.value;
|
|
18362
18362
|
}
|
|
18363
|
-
}), i.update(d)), wi.copy(y.backgroundRotation), wi.x *= -1, wi.y *= -1, wi.z *= -1, T.isCubeTexture && T.isRenderTargetTexture === !1 && (wi.y *= -1, wi.z *= -1), d.material.uniforms.envMap.value = T, d.material.uniforms.flipEnvMap.value = T.isCubeTexture && T.isRenderTargetTexture === !1 ? -1 : 1, d.material.uniforms.backgroundBlurriness.value = y.backgroundBlurriness, d.material.uniforms.backgroundIntensity.value = y.backgroundIntensity, d.material.uniforms.backgroundRotation.value.setFromMatrix4(Ng.makeRotationFromEuler(wi)), d.material.toneMapped = Ge.getTransfer(T.colorSpace) !== $e, (c !== T || h !== T.version || f !== s.toneMapping) && (d.material.needsUpdate = !0, c = T, h = T.version, f = s.toneMapping), d.layers.enableAll(), S.unshift(d, d.geometry, d.material, 0, 0, null)) : T && T.isTexture && (u === void 0 && (u = new
|
|
18363
|
+
}), i.update(d)), wi.copy(y.backgroundRotation), wi.x *= -1, wi.y *= -1, wi.z *= -1, T.isCubeTexture && T.isRenderTargetTexture === !1 && (wi.y *= -1, wi.z *= -1), d.material.uniforms.envMap.value = T, d.material.uniforms.flipEnvMap.value = T.isCubeTexture && T.isRenderTargetTexture === !1 ? -1 : 1, d.material.uniforms.backgroundBlurriness.value = y.backgroundBlurriness, d.material.uniforms.backgroundIntensity.value = y.backgroundIntensity, d.material.uniforms.backgroundRotation.value.setFromMatrix4(Ng.makeRotationFromEuler(wi)), d.material.toneMapped = Ge.getTransfer(T.colorSpace) !== $e, (c !== T || h !== T.version || f !== s.toneMapping) && (d.material.needsUpdate = !0, c = T, h = T.version, f = s.toneMapping), d.layers.enableAll(), S.unshift(d, d.geometry, d.material, 0, 0, null)) : T && T.isTexture && (u === void 0 && (u = new Kt(
|
|
18364
18364
|
new xa(2, 2),
|
|
18365
18365
|
new Bn({
|
|
18366
18366
|
name: "BackgroundMaterial",
|
|
@@ -18904,12 +18904,12 @@ class mu {
|
|
|
18904
18904
|
return i;
|
|
18905
18905
|
}
|
|
18906
18906
|
_compileMaterial(e) {
|
|
18907
|
-
const t = new
|
|
18907
|
+
const t = new Kt(new pn(), e);
|
|
18908
18908
|
this._renderer.compile(t, Hr);
|
|
18909
18909
|
}
|
|
18910
18910
|
_sceneToCubeUV(e, t, n, i, r) {
|
|
18911
18911
|
const l = new Ht(90, 1, t, n), u = [1, -1, 1, 1, 1, 1], d = [1, 1, 1, -1, -1, -1], c = this._renderer, h = c.autoClear, f = c.toneMapping;
|
|
18912
|
-
c.getClearColor(pu), c.toneMapping = Un, c.autoClear = !1, c.state.buffers.depth.getReversed() && (c.setRenderTarget(i), c.clearDepth(), c.setRenderTarget(null)), this._backgroundBox === null && (this._backgroundBox = new
|
|
18912
|
+
c.getClearColor(pu), c.toneMapping = Un, c.autoClear = !1, c.state.buffers.depth.getReversed() && (c.setRenderTarget(i), c.clearDepth(), c.setRenderTarget(null)), this._backgroundBox === null && (this._backgroundBox = new Kt(
|
|
18913
18913
|
new fs(),
|
|
18914
18914
|
new Ni({
|
|
18915
18915
|
name: "PMREM.Background",
|
|
@@ -19061,7 +19061,7 @@ function Vg(s) {
|
|
|
19061
19061
|
y.set(A, p * m * E);
|
|
19062
19062
|
}
|
|
19063
19063
|
const T = new pn();
|
|
19064
|
-
T.setAttribute("position", new Vt(b, g)), T.setAttribute("uv", new Vt(S, _)), T.setAttribute("faceIndex", new Vt(y, p)), n.push(new
|
|
19064
|
+
T.setAttribute("position", new Vt(b, g)), T.setAttribute("uv", new Vt(S, _)), T.setAttribute("faceIndex", new Vt(y, p)), n.push(new Kt(T, null)), i > mi && i--;
|
|
19065
19065
|
}
|
|
19066
19066
|
return { lodMeshes: n, sizeLods: e, sigmas: t };
|
|
19067
19067
|
}
|
|
@@ -19484,7 +19484,7 @@ function qg(s) {
|
|
|
19484
19484
|
}
|
|
19485
19485
|
};
|
|
19486
19486
|
}
|
|
19487
|
-
function
|
|
19487
|
+
function Yg(s, e, t, n) {
|
|
19488
19488
|
const i = {}, r = /* @__PURE__ */ new WeakMap();
|
|
19489
19489
|
function a(c) {
|
|
19490
19490
|
const h = c.target;
|
|
@@ -19542,7 +19542,7 @@ function Kg(s, e, t, n) {
|
|
|
19542
19542
|
getWireframeAttribute: d
|
|
19543
19543
|
};
|
|
19544
19544
|
}
|
|
19545
|
-
function
|
|
19545
|
+
function Kg(s, e, t) {
|
|
19546
19546
|
let n;
|
|
19547
19547
|
function i(h) {
|
|
19548
19548
|
n = h;
|
|
@@ -19774,7 +19774,7 @@ function eb(s, e, t, n, i) {
|
|
|
19774
19774
|
),
|
|
19775
19775
|
depthTest: !1,
|
|
19776
19776
|
depthWrite: !1
|
|
19777
|
-
}), u = new
|
|
19777
|
+
}), u = new Kt(o, l), d = new va(-1, 1, 1, -1, 0, 1);
|
|
19778
19778
|
let c = null, h = null, f = !1, m, g = null, _ = [], p = !1;
|
|
19779
19779
|
this.setSize = function(b, S) {
|
|
19780
19780
|
r.setSize(b, S), a.setSize(b, S);
|
|
@@ -19820,7 +19820,7 @@ function eb(s, e, t, n, i) {
|
|
|
19820
19820
|
r.dispose(), a.dispose(), o.dispose(), l.dispose();
|
|
19821
19821
|
};
|
|
19822
19822
|
}
|
|
19823
|
-
const Fh = /* @__PURE__ */ new Pt(), gc = /* @__PURE__ */ new cs(1, 1), Uh = /* @__PURE__ */ new mh(), Oh = /* @__PURE__ */ new Hf(), kh = /* @__PURE__ */ new
|
|
19823
|
+
const Fh = /* @__PURE__ */ new Pt(), gc = /* @__PURE__ */ new cs(1, 1), Uh = /* @__PURE__ */ new mh(), Oh = /* @__PURE__ */ new Hf(), kh = /* @__PURE__ */ new Yc(), xu = [], vu = [], Su = new Float32Array(16), yu = new Float32Array(9), Mu = new Float32Array(4);
|
|
19824
19824
|
function Pr(s, e, t) {
|
|
19825
19825
|
const n = s[0];
|
|
19826
19826
|
if (n <= 0 || n > 0) return s;
|
|
@@ -20334,7 +20334,7 @@ function qb(s, e) {
|
|
|
20334
20334
|
`);
|
|
20335
20335
|
}
|
|
20336
20336
|
const Eu = /* @__PURE__ */ new Le();
|
|
20337
|
-
function
|
|
20337
|
+
function Yb(s) {
|
|
20338
20338
|
Ge._getMatrix(Eu, Ge.workingColorSpace, s);
|
|
20339
20339
|
const e = `mat3( ${Eu.elements.map((t) => t.toFixed(4))} )`;
|
|
20340
20340
|
switch (Ge.getTransfer(s)) {
|
|
@@ -20360,8 +20360,8 @@ function wu(s, e, t) {
|
|
|
20360
20360
|
} else
|
|
20361
20361
|
return r;
|
|
20362
20362
|
}
|
|
20363
|
-
function
|
|
20364
|
-
const t =
|
|
20363
|
+
function Kb(s, e) {
|
|
20364
|
+
const t = Yb(e);
|
|
20365
20365
|
return [
|
|
20366
20366
|
`vec4 ${s}( vec4 value ) {`,
|
|
20367
20367
|
` return ${t[1]}( vec4( value.rgb * ${t[0]}, value.a ) );`,
|
|
@@ -20484,7 +20484,7 @@ function Iu(s) {
|
|
|
20484
20484
|
#define LOW_PRECISION`), e;
|
|
20485
20485
|
}
|
|
20486
20486
|
const o0 = {
|
|
20487
|
-
[
|
|
20487
|
+
[Ys]: "SHADOWMAP_TYPE_PCF",
|
|
20488
20488
|
[Wr]: "SHADOWMAP_TYPE_VSM"
|
|
20489
20489
|
};
|
|
20490
20490
|
function c0(s) {
|
|
@@ -20747,7 +20747,7 @@ function _0(s, e, t, n) {
|
|
|
20747
20747
|
t.opaque ? "#define OPAQUE" : "",
|
|
20748
20748
|
De.colorspace_pars_fragment,
|
|
20749
20749
|
// this code is required here because it is used by the various encoding/decoding function defined below
|
|
20750
|
-
|
|
20750
|
+
Kb("linearToOutputTexel", t.outputColorSpace),
|
|
20751
20751
|
Qb(),
|
|
20752
20752
|
t.useDepthPacking ? "#define DEPTH_PACKING " + t.depthPacking : "",
|
|
20753
20753
|
`
|
|
@@ -20906,7 +20906,7 @@ function v0(s, e, t, n, i, r, a) {
|
|
|
20906
20906
|
Fe = Ze.vertexShader, pt = Ze.fragmentShader;
|
|
20907
20907
|
} else
|
|
20908
20908
|
Fe = v.vertexShader, pt = v.fragmentShader, l.update(v), ut = l.getVertexShaderID(v), q = l.getFragmentShaderID(v);
|
|
20909
|
-
const Z = s.getRenderTarget(), pe = s.state.buffers.depth.getReversed(), Ie = F.isInstancedMesh === !0, ge = F.isBatchedMesh === !0, je = !!v.map, Rt = !!v.matcap, Xe = !!V, Je = !!v.aoMap, it = !!v.lightMap, Ue = !!v.bumpMap, vt = !!v.normalMap, P = !!v.displacementMap, St = !!v.emissiveMap,
|
|
20909
|
+
const Z = s.getRenderTarget(), pe = s.state.buffers.depth.getReversed(), Ie = F.isInstancedMesh === !0, ge = F.isBatchedMesh === !0, je = !!v.map, Rt = !!v.matcap, Xe = !!V, Je = !!v.aoMap, it = !!v.lightMap, Ue = !!v.bumpMap, vt = !!v.normalMap, P = !!v.displacementMap, St = !!v.emissiveMap, Ye = !!v.metalnessMap, ot = !!v.roughnessMap, xe = v.anisotropy > 0, w = v.clearcoat > 0, x = v.dispersion > 0, D = v.iridescence > 0, j = v.sheen > 0, K = v.transmission > 0, W = xe && !!v.anisotropyMap, Se = w && !!v.clearcoatMap, ne = w && !!v.clearcoatNormalMap, be = w && !!v.clearcoatRoughnessMap, Re = D && !!v.iridescenceMap, $ = D && !!v.iridescenceThicknessMap, re = j && !!v.sheenColorMap, _e = j && !!v.sheenRoughnessMap, ve = !!v.specularMap, ie = !!v.specularColorMap, Oe = !!v.specularIntensityMap, L = K && !!v.transmissionMap, le = K && !!v.thicknessMap, ee = !!v.gradientMap, de = !!v.alphaMap, Q = v.alphaTest > 0, Y = !!v.alphaHash, te = !!v.extensions;
|
|
20910
20910
|
let Pe = Un;
|
|
20911
20911
|
v.toneMapped && (Z === null || Z.isXRRenderTarget === !0) && (Pe = s.toneMapping);
|
|
20912
20912
|
const ct = {
|
|
@@ -20941,7 +20941,7 @@ function v0(s, e, t, n, i, r, a) {
|
|
|
20941
20941
|
emissiveMap: St,
|
|
20942
20942
|
normalMapObjectSpace: vt && v.normalMapType === lf,
|
|
20943
20943
|
normalMapTangentSpace: vt && v.normalMapType === Vc,
|
|
20944
|
-
metalnessMap:
|
|
20944
|
+
metalnessMap: Ye,
|
|
20945
20945
|
roughnessMap: ot,
|
|
20946
20946
|
anisotropy: xe,
|
|
20947
20947
|
anisotropyMap: W,
|
|
@@ -20959,14 +20959,14 @@ function v0(s, e, t, n, i, r, a) {
|
|
|
20959
20959
|
specularMap: ve,
|
|
20960
20960
|
specularColorMap: ie,
|
|
20961
20961
|
specularIntensityMap: Oe,
|
|
20962
|
-
transmission:
|
|
20962
|
+
transmission: K,
|
|
20963
20963
|
transmissionMap: L,
|
|
20964
20964
|
thicknessMap: le,
|
|
20965
20965
|
gradientMap: ee,
|
|
20966
20966
|
opaque: v.transparent === !1 && v.blending === lr && v.alphaToCoverage === !1,
|
|
20967
20967
|
alphaMap: de,
|
|
20968
20968
|
alphaTest: Q,
|
|
20969
|
-
alphaHash:
|
|
20969
|
+
alphaHash: Y,
|
|
20970
20970
|
combine: v.combine,
|
|
20971
20971
|
//
|
|
20972
20972
|
mapUv: je && g(v.map.channel),
|
|
@@ -20976,7 +20976,7 @@ function v0(s, e, t, n, i, r, a) {
|
|
|
20976
20976
|
normalMapUv: vt && g(v.normalMap.channel),
|
|
20977
20977
|
displacementMapUv: P && g(v.displacementMap.channel),
|
|
20978
20978
|
emissiveMapUv: St && g(v.emissiveMap.channel),
|
|
20979
|
-
metalnessMapUv:
|
|
20979
|
+
metalnessMapUv: Ye && g(v.metalnessMap.channel),
|
|
20980
20980
|
roughnessMapUv: ot && g(v.roughnessMap.channel),
|
|
20981
20981
|
anisotropyMapUv: W && g(v.anisotropyMap.channel),
|
|
20982
20982
|
clearcoatMapUv: Se && g(v.clearcoatMap.channel),
|
|
@@ -21518,12 +21518,12 @@ function N0(s, e, t) {
|
|
|
21518
21518
|
3
|
|
21519
21519
|
)
|
|
21520
21520
|
);
|
|
21521
|
-
const g = new
|
|
21522
|
-
this.enabled = !1, this.autoUpdate = !0, this.needsUpdate = !1, this.type =
|
|
21521
|
+
const g = new Kt(m, h), _ = this;
|
|
21522
|
+
this.enabled = !1, this.autoUpdate = !0, this.needsUpdate = !1, this.type = Ys;
|
|
21523
21523
|
let p = this.type;
|
|
21524
21524
|
this.render = function(E, R, I) {
|
|
21525
21525
|
if (_.enabled === !1 || _.autoUpdate === !1 && _.needsUpdate === !1 || E.length === 0) return;
|
|
21526
|
-
E.type === Zu && (Me("WebGLShadowMap: PCFSoftShadowMap has been deprecated. Using PCFShadowMap instead."), E.type =
|
|
21526
|
+
E.type === Zu && (Me("WebGLShadowMap: PCFSoftShadowMap has been deprecated. Using PCFShadowMap instead."), E.type = Ys);
|
|
21527
21527
|
const v = s.getRenderTarget(), A = s.getActiveCubeFace(), C = s.getActiveMipmapLevel(), k = s.state;
|
|
21528
21528
|
k.setBlending($n), k.buffers.depth.getReversed() === !0 ? k.buffers.color.setClear(0, 0, 0, 0) : k.buffers.color.setClear(1, 1, 1, 1), k.buffers.depth.setTest(!0), k.setScissorTest(!1);
|
|
21529
21529
|
const F = p !== this.type;
|
|
@@ -21555,7 +21555,7 @@ function N0(s, e, t) {
|
|
|
21555
21555
|
} else {
|
|
21556
21556
|
G.isPointLight ? (V.map = new yh(i.x), V.map.depthTexture = new bp(i.x, kn)) : (V.map = new On(i.x, i.y), V.map.depthTexture = new cs(i.x, i.y, kn)), V.map.depthTexture.name = G.name + ".shadowMap", V.map.depthTexture.format = ii;
|
|
21557
21557
|
const ae = s.state.buffers.depth.getReversed();
|
|
21558
|
-
this.type ===
|
|
21558
|
+
this.type === Ys ? (V.map.depthTexture.compareFunction = ae ? Xc : Wc, V.map.depthTexture.minFilter = At, V.map.depthTexture.magFilter = At) : (V.map.depthTexture.compareFunction = null, V.map.depthTexture.minFilter = Tt, V.map.depthTexture.magFilter = Tt);
|
|
21559
21559
|
}
|
|
21560
21560
|
V.camera.updateProjectionMatrix();
|
|
21561
21561
|
}
|
|
@@ -21663,8 +21663,8 @@ function U0(s, e) {
|
|
|
21663
21663
|
setLocked: function(Q) {
|
|
21664
21664
|
L = Q;
|
|
21665
21665
|
},
|
|
21666
|
-
setClear: function(Q,
|
|
21667
|
-
ct === !0 && (Q *= Pe,
|
|
21666
|
+
setClear: function(Q, Y, te, Pe, ct) {
|
|
21667
|
+
ct === !0 && (Q *= Pe, Y *= Pe, te *= Pe), le.set(Q, Y, te, Pe), de.equals(le) === !1 && (s.clearColor(Q, Y, te, Pe), de.copy(le));
|
|
21668
21668
|
},
|
|
21669
21669
|
reset: function() {
|
|
21670
21670
|
L = !1, ee = null, de.set(-1, 0, 0, 0);
|
|
@@ -21674,10 +21674,10 @@ function U0(s, e) {
|
|
|
21674
21674
|
function n() {
|
|
21675
21675
|
let L = !1, le = !1, ee = null, de = null, Q = null;
|
|
21676
21676
|
return {
|
|
21677
|
-
setReversed: function(
|
|
21678
|
-
if (le !==
|
|
21677
|
+
setReversed: function(Y) {
|
|
21678
|
+
if (le !== Y) {
|
|
21679
21679
|
const te = e.get("EXT_clip_control");
|
|
21680
|
-
|
|
21680
|
+
Y ? te.clipControlEXT(te.LOWER_LEFT_EXT, te.ZERO_TO_ONE_EXT) : te.clipControlEXT(te.LOWER_LEFT_EXT, te.NEGATIVE_ONE_TO_ONE_EXT), le = Y;
|
|
21681
21681
|
const Pe = Q;
|
|
21682
21682
|
Q = null, this.setClear(Pe);
|
|
21683
21683
|
}
|
|
@@ -21685,15 +21685,15 @@ function U0(s, e) {
|
|
|
21685
21685
|
getReversed: function() {
|
|
21686
21686
|
return le;
|
|
21687
21687
|
},
|
|
21688
|
-
setTest: function(
|
|
21689
|
-
|
|
21688
|
+
setTest: function(Y) {
|
|
21689
|
+
Y ? Z(s.DEPTH_TEST) : pe(s.DEPTH_TEST);
|
|
21690
21690
|
},
|
|
21691
|
-
setMask: function(
|
|
21692
|
-
ee !==
|
|
21691
|
+
setMask: function(Y) {
|
|
21692
|
+
ee !== Y && !L && (s.depthMask(Y), ee = Y);
|
|
21693
21693
|
},
|
|
21694
|
-
setFunc: function(
|
|
21695
|
-
if (le && (
|
|
21696
|
-
switch (
|
|
21694
|
+
setFunc: function(Y) {
|
|
21695
|
+
if (le && (Y = F0[Y]), de !== Y) {
|
|
21696
|
+
switch (Y) {
|
|
21697
21697
|
case To:
|
|
21698
21698
|
s.depthFunc(s.NEVER);
|
|
21699
21699
|
break;
|
|
@@ -21721,14 +21721,14 @@ function U0(s, e) {
|
|
|
21721
21721
|
default:
|
|
21722
21722
|
s.depthFunc(s.LEQUAL);
|
|
21723
21723
|
}
|
|
21724
|
-
de =
|
|
21724
|
+
de = Y;
|
|
21725
21725
|
}
|
|
21726
21726
|
},
|
|
21727
|
-
setLocked: function(
|
|
21728
|
-
L =
|
|
21727
|
+
setLocked: function(Y) {
|
|
21728
|
+
L = Y;
|
|
21729
21729
|
},
|
|
21730
|
-
setClear: function(
|
|
21731
|
-
Q !==
|
|
21730
|
+
setClear: function(Y) {
|
|
21731
|
+
Q !== Y && (le && (Y = 1 - Y), s.clearDepth(Y), Q = Y);
|
|
21732
21732
|
},
|
|
21733
21733
|
reset: function() {
|
|
21734
21734
|
L = !1, ee = null, de = null, Q = null, le = !1;
|
|
@@ -21736,7 +21736,7 @@ function U0(s, e) {
|
|
|
21736
21736
|
};
|
|
21737
21737
|
}
|
|
21738
21738
|
function i() {
|
|
21739
|
-
let L = !1, le = null, ee = null, de = null, Q = null,
|
|
21739
|
+
let L = !1, le = null, ee = null, de = null, Q = null, Y = null, te = null, Pe = null, ct = null;
|
|
21740
21740
|
return {
|
|
21741
21741
|
setTest: function(Ze) {
|
|
21742
21742
|
L || (Ze ? Z(s.STENCIL_TEST) : pe(s.STENCIL_TEST));
|
|
@@ -21748,7 +21748,7 @@ function U0(s, e) {
|
|
|
21748
21748
|
(ee !== Ze || de !== wn || Q !== Vn) && (s.stencilFunc(Ze, wn, Vn), ee = Ze, de = wn, Q = Vn);
|
|
21749
21749
|
},
|
|
21750
21750
|
setOp: function(Ze, wn, Vn) {
|
|
21751
|
-
(
|
|
21751
|
+
(Y !== Ze || te !== wn || Pe !== Vn) && (s.stencilOp(Ze, wn, Vn), Y = Ze, te = wn, Pe = Vn);
|
|
21752
21752
|
},
|
|
21753
21753
|
setLocked: function(Ze) {
|
|
21754
21754
|
L = Ze;
|
|
@@ -21757,7 +21757,7 @@ function U0(s, e) {
|
|
|
21757
21757
|
ct !== Ze && (s.clearStencil(Ze), ct = Ze);
|
|
21758
21758
|
},
|
|
21759
21759
|
reset: function() {
|
|
21760
|
-
L = !1, le = null, ee = null, de = null, Q = null,
|
|
21760
|
+
L = !1, le = null, ee = null, de = null, Q = null, Y = null, te = null, Pe = null, ct = null;
|
|
21761
21761
|
}
|
|
21762
21762
|
};
|
|
21763
21763
|
}
|
|
@@ -21770,11 +21770,11 @@ function U0(s, e) {
|
|
|
21770
21770
|
let ue = null, ae = {};
|
|
21771
21771
|
const he = s.getParameter(s.SCISSOR_BOX), ke = s.getParameter(s.VIEWPORT), Fe = new ht().fromArray(he), pt = new ht().fromArray(ke);
|
|
21772
21772
|
function ut(L, le, ee, de) {
|
|
21773
|
-
const Q = new Uint8Array(4),
|
|
21774
|
-
s.bindTexture(L,
|
|
21773
|
+
const Q = new Uint8Array(4), Y = s.createTexture();
|
|
21774
|
+
s.bindTexture(L, Y), s.texParameteri(L, s.TEXTURE_MIN_FILTER, s.NEAREST), s.texParameteri(L, s.TEXTURE_MAG_FILTER, s.NEAREST);
|
|
21775
21775
|
for (let te = 0; te < ee; te++)
|
|
21776
21776
|
L === s.TEXTURE_3D || L === s.TEXTURE_2D_ARRAY ? s.texImage3D(le, 0, s.RGBA, 1, 1, de, 0, s.RGBA, s.UNSIGNED_BYTE, Q) : s.texImage2D(le + te, 0, s.RGBA, 1, 1, 0, s.RGBA, s.UNSIGNED_BYTE, Q);
|
|
21777
|
-
return
|
|
21777
|
+
return Y;
|
|
21778
21778
|
}
|
|
21779
21779
|
const q = {};
|
|
21780
21780
|
q[s.TEXTURE_2D] = ut(s.TEXTURE_2D, s.TEXTURE_2D, 1), q[s.TEXTURE_CUBE_MAP] = ut(s.TEXTURE_CUBE_MAP, s.TEXTURE_CUBE_MAP_POSITIVE_X, 6), q[s.TEXTURE_2D_ARRAY] = ut(s.TEXTURE_2D_ARRAY, s.TEXTURE_2D_ARRAY, 1, 1), q[s.TEXTURE_3D] = ut(s.TEXTURE_3D, s.TEXTURE_3D, 1, 1), r.setClear(0, 0, 0, 1), a.setClear(1), o.setClear(0), Z(s.DEPTH_TEST), a.setFunc(pr), Ue(!1), vt(Tl), Z(s.CULL_FACE), Je($n);
|
|
@@ -21793,8 +21793,8 @@ function U0(s, e) {
|
|
|
21793
21793
|
ee = h.get(le), ee === void 0 && (ee = [], h.set(le, ee));
|
|
21794
21794
|
const Q = L.textures;
|
|
21795
21795
|
if (ee.length !== Q.length || ee[0] !== s.COLOR_ATTACHMENT0) {
|
|
21796
|
-
for (let
|
|
21797
|
-
ee[
|
|
21796
|
+
for (let Y = 0, te = Q.length; Y < te; Y++)
|
|
21797
|
+
ee[Y] = s.COLOR_ATTACHMENT0 + Y;
|
|
21798
21798
|
ee.length = Q.length, de = !0;
|
|
21799
21799
|
}
|
|
21800
21800
|
} else
|
|
@@ -21815,19 +21815,19 @@ function U0(s, e) {
|
|
|
21815
21815
|
[Gd]: s.ONE,
|
|
21816
21816
|
[Vd]: s.SRC_COLOR,
|
|
21817
21817
|
[yo]: s.SRC_ALPHA,
|
|
21818
|
-
[
|
|
21818
|
+
[Kd]: s.SRC_ALPHA_SATURATE,
|
|
21819
21819
|
[qd]: s.DST_COLOR,
|
|
21820
21820
|
[Xd]: s.DST_ALPHA,
|
|
21821
21821
|
[Wd]: s.ONE_MINUS_SRC_COLOR,
|
|
21822
21822
|
[Mo]: s.ONE_MINUS_SRC_ALPHA,
|
|
21823
|
-
[
|
|
21823
|
+
[Yd]: s.ONE_MINUS_DST_COLOR,
|
|
21824
21824
|
[jd]: s.ONE_MINUS_DST_ALPHA,
|
|
21825
21825
|
[Jd]: s.CONSTANT_COLOR,
|
|
21826
21826
|
[Zd]: s.ONE_MINUS_CONSTANT_COLOR,
|
|
21827
21827
|
[Qd]: s.CONSTANT_ALPHA,
|
|
21828
21828
|
[$d]: s.ONE_MINUS_CONSTANT_ALPHA
|
|
21829
21829
|
};
|
|
21830
|
-
function Je(L, le, ee, de, Q,
|
|
21830
|
+
function Je(L, le, ee, de, Q, Y, te, Pe, ct, Ze) {
|
|
21831
21831
|
if (L === $n) {
|
|
21832
21832
|
g === !0 && (pe(s.BLEND), g = !1);
|
|
21833
21833
|
return;
|
|
@@ -21874,7 +21874,7 @@ function U0(s, e) {
|
|
|
21874
21874
|
}
|
|
21875
21875
|
return;
|
|
21876
21876
|
}
|
|
21877
|
-
Q = Q || le,
|
|
21877
|
+
Q = Q || le, Y = Y || ee, te = te || de, (le !== p || Q !== y) && (s.blendEquationSeparate(Rt[le], Rt[Q]), p = le, y = Q), (ee !== b || de !== S || Y !== T || te !== E) && (s.blendFuncSeparate(Xe[ee], Xe[de], Xe[Y], Xe[te]), b = ee, S = de, T = Y, E = te), (Pe.equals(R) === !1 || ct !== I) && (s.blendColor(Pe.r, Pe.g, Pe.b, ct), R.copy(Pe), I = ct), _ = L, v = !1;
|
|
21878
21878
|
}
|
|
21879
21879
|
function it(L, le) {
|
|
21880
21880
|
L.side === Ln ? pe(s.CULL_FACE) : Z(s.CULL_FACE);
|
|
@@ -21895,7 +21895,7 @@ function U0(s, e) {
|
|
|
21895
21895
|
function St(L, le, ee) {
|
|
21896
21896
|
L ? (Z(s.POLYGON_OFFSET_FILL), (F !== le || z !== ee) && (s.polygonOffset(le, ee), F = le, z = ee)) : pe(s.POLYGON_OFFSET_FILL);
|
|
21897
21897
|
}
|
|
21898
|
-
function
|
|
21898
|
+
function Ye(L) {
|
|
21899
21899
|
L ? Z(s.SCISSOR_TEST) : pe(s.SCISSOR_TEST);
|
|
21900
21900
|
}
|
|
21901
21901
|
function ot(L) {
|
|
@@ -21931,7 +21931,7 @@ function U0(s, e) {
|
|
|
21931
21931
|
we("WebGLState:", L);
|
|
21932
21932
|
}
|
|
21933
21933
|
}
|
|
21934
|
-
function
|
|
21934
|
+
function K() {
|
|
21935
21935
|
try {
|
|
21936
21936
|
s.texSubImage3D(...arguments);
|
|
21937
21937
|
} catch (L) {
|
|
@@ -22016,7 +22016,7 @@ function U0(s, e) {
|
|
|
22016
22016
|
setCullFace: vt,
|
|
22017
22017
|
setLineWidth: P,
|
|
22018
22018
|
setPolygonOffset: St,
|
|
22019
|
-
setScissorTest:
|
|
22019
|
+
setScissorTest: Ye,
|
|
22020
22020
|
activeTexture: ot,
|
|
22021
22021
|
bindTexture: xe,
|
|
22022
22022
|
unbindTexture: w,
|
|
@@ -22029,7 +22029,7 @@ function U0(s, e) {
|
|
|
22029
22029
|
texStorage2D: ne,
|
|
22030
22030
|
texStorage3D: be,
|
|
22031
22031
|
texSubImage2D: j,
|
|
22032
|
-
texSubImage3D:
|
|
22032
|
+
texSubImage3D: K,
|
|
22033
22033
|
compressedTexSubImage2D: W,
|
|
22034
22034
|
compressedTexSubImage3D: Se,
|
|
22035
22035
|
scissor: re,
|
|
@@ -22051,15 +22051,15 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22051
22051
|
}
|
|
22052
22052
|
function g(w, x, D) {
|
|
22053
22053
|
let j = 1;
|
|
22054
|
-
const
|
|
22055
|
-
if ((
|
|
22054
|
+
const K = xe(w);
|
|
22055
|
+
if ((K.width > D || K.height > D) && (j = D / Math.max(K.width, K.height)), j < 1)
|
|
22056
22056
|
if (typeof HTMLImageElement < "u" && w instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && w instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && w instanceof ImageBitmap || typeof VideoFrame < "u" && w instanceof VideoFrame) {
|
|
22057
|
-
const W = Math.floor(j *
|
|
22057
|
+
const W = Math.floor(j * K.width), Se = Math.floor(j * K.height);
|
|
22058
22058
|
c === void 0 && (c = m(W, Se));
|
|
22059
22059
|
const ne = x ? m(W, Se) : c;
|
|
22060
|
-
return ne.width = W, ne.height = Se, ne.getContext("2d").drawImage(w, 0, 0, W, Se), Me("WebGLRenderer: Texture has been resized from (" +
|
|
22060
|
+
return ne.width = W, ne.height = Se, ne.getContext("2d").drawImage(w, 0, 0, W, Se), Me("WebGLRenderer: Texture has been resized from (" + K.width + "x" + K.height + ") to (" + W + "x" + Se + ")."), ne;
|
|
22061
22061
|
} else
|
|
22062
|
-
return "data" in w && Me("WebGLRenderer: Image in DataTexture is too big (" +
|
|
22062
|
+
return "data" in w && Me("WebGLRenderer: Image in DataTexture is too big (" + K.width + "x" + K.height + ")."), w;
|
|
22063
22063
|
return w;
|
|
22064
22064
|
}
|
|
22065
22065
|
function _(w) {
|
|
@@ -22071,14 +22071,14 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22071
22071
|
function b(w) {
|
|
22072
22072
|
return w.isWebGLCubeRenderTarget ? s.TEXTURE_CUBE_MAP : w.isWebGL3DRenderTarget ? s.TEXTURE_3D : w.isWebGLArrayRenderTarget || w.isCompressedArrayTexture ? s.TEXTURE_2D_ARRAY : s.TEXTURE_2D;
|
|
22073
22073
|
}
|
|
22074
|
-
function S(w, x, D, j,
|
|
22074
|
+
function S(w, x, D, j, K = !1) {
|
|
22075
22075
|
if (w !== null) {
|
|
22076
22076
|
if (s[w] !== void 0) return s[w];
|
|
22077
22077
|
Me("WebGLRenderer: Attempt to use non-existing WebGL internal format '" + w + "'");
|
|
22078
22078
|
}
|
|
22079
22079
|
let W = x;
|
|
22080
22080
|
if (x === s.RED && (D === s.FLOAT && (W = s.R32F), D === s.HALF_FLOAT && (W = s.R16F), D === s.UNSIGNED_BYTE && (W = s.R8)), x === s.RED_INTEGER && (D === s.UNSIGNED_BYTE && (W = s.R8UI), D === s.UNSIGNED_SHORT && (W = s.R16UI), D === s.UNSIGNED_INT && (W = s.R32UI), D === s.BYTE && (W = s.R8I), D === s.SHORT && (W = s.R16I), D === s.INT && (W = s.R32I)), x === s.RG && (D === s.FLOAT && (W = s.RG32F), D === s.HALF_FLOAT && (W = s.RG16F), D === s.UNSIGNED_BYTE && (W = s.RG8)), x === s.RG_INTEGER && (D === s.UNSIGNED_BYTE && (W = s.RG8UI), D === s.UNSIGNED_SHORT && (W = s.RG16UI), D === s.UNSIGNED_INT && (W = s.RG32UI), D === s.BYTE && (W = s.RG8I), D === s.SHORT && (W = s.RG16I), D === s.INT && (W = s.RG32I)), x === s.RGB_INTEGER && (D === s.UNSIGNED_BYTE && (W = s.RGB8UI), D === s.UNSIGNED_SHORT && (W = s.RGB16UI), D === s.UNSIGNED_INT && (W = s.RGB32UI), D === s.BYTE && (W = s.RGB8I), D === s.SHORT && (W = s.RGB16I), D === s.INT && (W = s.RGB32I)), x === s.RGBA_INTEGER && (D === s.UNSIGNED_BYTE && (W = s.RGBA8UI), D === s.UNSIGNED_SHORT && (W = s.RGBA16UI), D === s.UNSIGNED_INT && (W = s.RGBA32UI), D === s.BYTE && (W = s.RGBA8I), D === s.SHORT && (W = s.RGBA16I), D === s.INT && (W = s.RGBA32I)), x === s.RGB && (D === s.UNSIGNED_INT_5_9_9_9_REV && (W = s.RGB9_E5), D === s.UNSIGNED_INT_10F_11F_11F_REV && (W = s.R11F_G11F_B10F)), x === s.RGBA) {
|
|
22081
|
-
const Se =
|
|
22081
|
+
const Se = K ? aa : Ge.getTransfer(j);
|
|
22082
22082
|
D === s.FLOAT && (W = s.RGBA32F), D === s.HALF_FLOAT && (W = s.RGBA16F), D === s.UNSIGNED_BYTE && (W = Se === $e ? s.SRGB8_ALPHA8 : s.RGBA8), D === s.UNSIGNED_SHORT_4_4_4_4 && (W = s.RGBA4), D === s.UNSIGNED_SHORT_5_5_5_1 && (W = s.RGB5_A1);
|
|
22083
22083
|
}
|
|
22084
22084
|
return (W === s.R16F || W === s.R32F || W === s.RG16F || W === s.RG32F || W === s.RGBA16F || W === s.RGBA32F) && e.get("EXT_color_buffer_float"), W;
|
|
@@ -22103,8 +22103,8 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22103
22103
|
if (x.__webglInit === void 0) return;
|
|
22104
22104
|
const D = w.source, j = h.get(D);
|
|
22105
22105
|
if (j) {
|
|
22106
|
-
const
|
|
22107
|
-
|
|
22106
|
+
const K = j[x.__cacheKey];
|
|
22107
|
+
K.usedTimes--, K.usedTimes === 0 && v(w), Object.keys(j).length === 0 && h.delete(D);
|
|
22108
22108
|
}
|
|
22109
22109
|
n.remove(w);
|
|
22110
22110
|
}
|
|
@@ -22119,7 +22119,7 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22119
22119
|
if (w.depthTexture && (w.depthTexture.dispose(), n.remove(w.depthTexture)), w.isWebGLCubeRenderTarget)
|
|
22120
22120
|
for (let j = 0; j < 6; j++) {
|
|
22121
22121
|
if (Array.isArray(x.__webglFramebuffer[j]))
|
|
22122
|
-
for (let
|
|
22122
|
+
for (let K = 0; K < x.__webglFramebuffer[j].length; K++) s.deleteFramebuffer(x.__webglFramebuffer[j][K]);
|
|
22123
22123
|
else
|
|
22124
22124
|
s.deleteFramebuffer(x.__webglFramebuffer[j]);
|
|
22125
22125
|
x.__webglDepthbuffer && s.deleteRenderbuffer(x.__webglDepthbuffer[j]);
|
|
@@ -22135,7 +22135,7 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22135
22135
|
x.__webglDepthRenderbuffer && s.deleteRenderbuffer(x.__webglDepthRenderbuffer);
|
|
22136
22136
|
}
|
|
22137
22137
|
const D = w.textures;
|
|
22138
|
-
for (let j = 0,
|
|
22138
|
+
for (let j = 0, K = D.length; j < K; j++) {
|
|
22139
22139
|
const W = n.get(D[j]);
|
|
22140
22140
|
W.__webglTexture && (s.deleteTexture(W.__webglTexture), a.memory.textures--), n.remove(D[j]);
|
|
22141
22141
|
}
|
|
@@ -22155,7 +22155,7 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22155
22155
|
}
|
|
22156
22156
|
function X(w, x) {
|
|
22157
22157
|
const D = n.get(w);
|
|
22158
|
-
if (w.isVideoTexture &&
|
|
22158
|
+
if (w.isVideoTexture && Ye(w), w.isRenderTargetTexture === !1 && w.isExternalTexture !== !0 && w.version > 0 && D.__version !== w.version) {
|
|
22159
22159
|
const j = w.image;
|
|
22160
22160
|
if (j === null)
|
|
22161
22161
|
Me("WebGLRenderer: Texture marked for update but no image data found.");
|
|
@@ -22201,7 +22201,7 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22201
22201
|
[sh]: s.NEAREST_MIPMAP_NEAREST,
|
|
22202
22202
|
[Xr]: s.NEAREST_MIPMAP_LINEAR,
|
|
22203
22203
|
[At]: s.LINEAR,
|
|
22204
|
-
[
|
|
22204
|
+
[Ks]: s.LINEAR_MIPMAP_NEAREST,
|
|
22205
22205
|
[Zn]: s.LINEAR_MIPMAP_LINEAR
|
|
22206
22206
|
}, he = {
|
|
22207
22207
|
[uf]: s.NEVER,
|
|
@@ -22214,7 +22214,7 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22214
22214
|
[pf]: s.NOTEQUAL
|
|
22215
22215
|
};
|
|
22216
22216
|
function ke(w, x) {
|
|
22217
|
-
if (x.type === un && e.has("OES_texture_float_linear") === !1 && (x.magFilter === At || x.magFilter ===
|
|
22217
|
+
if (x.type === un && e.has("OES_texture_float_linear") === !1 && (x.magFilter === At || x.magFilter === Ks || x.magFilter === Xr || x.magFilter === Zn || x.minFilter === At || x.minFilter === Ks || x.minFilter === Xr || x.minFilter === Zn) && Me("WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), s.texParameteri(w, s.TEXTURE_WRAP_S, ue[x.wrapS]), s.texParameteri(w, s.TEXTURE_WRAP_T, ue[x.wrapT]), (w === s.TEXTURE_3D || w === s.TEXTURE_2D_ARRAY) && s.texParameteri(w, s.TEXTURE_WRAP_R, ue[x.wrapR]), s.texParameteri(w, s.TEXTURE_MAG_FILTER, ae[x.magFilter]), s.texParameteri(w, s.TEXTURE_MIN_FILTER, ae[x.minFilter]), x.compareFunction && (s.texParameteri(w, s.TEXTURE_COMPARE_MODE, s.COMPARE_REF_TO_TEXTURE), s.texParameteri(w, s.TEXTURE_COMPARE_FUNC, he[x.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
|
|
22218
22218
|
if (x.magFilter === Tt || x.minFilter !== Xr && x.minFilter !== Zn || x.type === un && e.has("OES_texture_float_linear") === !1) return;
|
|
22219
22219
|
if (x.anisotropy > 1 || n.get(x).__currentAnisotropy) {
|
|
22220
22220
|
const D = e.get("EXT_texture_filter_anisotropic");
|
|
@@ -22226,16 +22226,16 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22226
22226
|
let D = !1;
|
|
22227
22227
|
w.__webglInit === void 0 && (w.__webglInit = !0, x.addEventListener("dispose", E));
|
|
22228
22228
|
const j = x.source;
|
|
22229
|
-
let
|
|
22230
|
-
|
|
22229
|
+
let K = h.get(j);
|
|
22230
|
+
K === void 0 && (K = {}, h.set(j, K));
|
|
22231
22231
|
const W = z(x);
|
|
22232
22232
|
if (W !== w.__cacheKey) {
|
|
22233
|
-
|
|
22233
|
+
K[W] === void 0 && (K[W] = {
|
|
22234
22234
|
texture: s.createTexture(),
|
|
22235
22235
|
usedTimes: 0
|
|
22236
|
-
}, a.memory.textures++, D = !0),
|
|
22237
|
-
const Se =
|
|
22238
|
-
Se !== void 0 && (
|
|
22236
|
+
}, a.memory.textures++, D = !0), K[W].usedTimes++;
|
|
22237
|
+
const Se = K[w.__cacheKey];
|
|
22238
|
+
Se !== void 0 && (K[w.__cacheKey].usedTimes--, Se.usedTimes === 0 && v(x)), w.__cacheKey = W, w.__webglTexture = K[W].texture;
|
|
22239
22239
|
}
|
|
22240
22240
|
return D;
|
|
22241
22241
|
}
|
|
@@ -22269,10 +22269,10 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22269
22269
|
function q(w, x, D) {
|
|
22270
22270
|
let j = s.TEXTURE_2D;
|
|
22271
22271
|
(x.isDataArrayTexture || x.isCompressedArrayTexture) && (j = s.TEXTURE_2D_ARRAY), x.isData3DTexture && (j = s.TEXTURE_3D);
|
|
22272
|
-
const
|
|
22272
|
+
const K = Fe(w, x), W = x.source;
|
|
22273
22273
|
t.bindTexture(j, w.__webglTexture, s.TEXTURE0 + D);
|
|
22274
22274
|
const Se = n.get(W);
|
|
22275
|
-
if (W.version !== Se.__version ||
|
|
22275
|
+
if (W.version !== Se.__version || K === !0) {
|
|
22276
22276
|
t.activeTexture(s.TEXTURE0 + D);
|
|
22277
22277
|
const ne = Ge.getPrimaries(Ge.workingColorSpace), be = x.colorSpace === pi ? null : Ge.getPrimaries(x.colorSpace), Re = x.colorSpace === pi || ne === be ? s.NONE : s.BROWSER_DEFAULT_WEBGL;
|
|
22278
22278
|
s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL, x.flipY), s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL, x.premultiplyAlpha), s.pixelStorei(s.UNPACK_ALIGNMENT, x.unpackAlignment), s.pixelStorei(s.UNPACK_COLORSPACE_CONVERSION_WEBGL, Re);
|
|
@@ -22282,13 +22282,13 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22282
22282
|
let ve = S(x.internalFormat, re, _e, x.colorSpace, x.isVideoTexture);
|
|
22283
22283
|
ke(j, x);
|
|
22284
22284
|
let ie;
|
|
22285
|
-
const Oe = x.mipmaps, L = x.isVideoTexture !== !0, le = Se.__version === void 0 ||
|
|
22285
|
+
const Oe = x.mipmaps, L = x.isVideoTexture !== !0, le = Se.__version === void 0 || K === !0, ee = W.dataReady, de = T(x, $);
|
|
22286
22286
|
if (x.isDepthTexture)
|
|
22287
22287
|
ve = y(x.format === Di, x.type), le && (L ? t.texStorage2D(s.TEXTURE_2D, 1, ve, $.width, $.height) : t.texImage2D(s.TEXTURE_2D, 0, ve, $.width, $.height, 0, re, _e, null));
|
|
22288
22288
|
else if (x.isDataTexture)
|
|
22289
22289
|
if (Oe.length > 0) {
|
|
22290
22290
|
L && le && t.texStorage2D(s.TEXTURE_2D, de, ve, Oe[0].width, Oe[0].height);
|
|
22291
|
-
for (let Q = 0,
|
|
22291
|
+
for (let Q = 0, Y = Oe.length; Q < Y; Q++)
|
|
22292
22292
|
ie = Oe[Q], L ? ee && t.texSubImage2D(s.TEXTURE_2D, Q, 0, 0, ie.width, ie.height, re, _e, ie.data) : t.texImage2D(s.TEXTURE_2D, Q, ve, ie.width, ie.height, 0, re, _e, ie.data);
|
|
22293
22293
|
x.generateMipmaps = !1;
|
|
22294
22294
|
} else
|
|
@@ -22296,7 +22296,7 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22296
22296
|
else if (x.isCompressedTexture)
|
|
22297
22297
|
if (x.isCompressedArrayTexture) {
|
|
22298
22298
|
L && le && t.texStorage3D(s.TEXTURE_2D_ARRAY, de, ve, Oe[0].width, Oe[0].height, $.depth);
|
|
22299
|
-
for (let Q = 0,
|
|
22299
|
+
for (let Q = 0, Y = Oe.length; Q < Y; Q++)
|
|
22300
22300
|
if (ie = Oe[Q], x.format !== hn)
|
|
22301
22301
|
if (re !== null)
|
|
22302
22302
|
if (L) {
|
|
@@ -22321,7 +22321,7 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22321
22321
|
L ? ee && t.texSubImage3D(s.TEXTURE_2D_ARRAY, Q, 0, 0, 0, ie.width, ie.height, $.depth, re, _e, ie.data) : t.texImage3D(s.TEXTURE_2D_ARRAY, Q, ve, ie.width, ie.height, $.depth, 0, re, _e, ie.data);
|
|
22322
22322
|
} else {
|
|
22323
22323
|
L && le && t.texStorage2D(s.TEXTURE_2D, de, ve, Oe[0].width, Oe[0].height);
|
|
22324
|
-
for (let Q = 0,
|
|
22324
|
+
for (let Q = 0, Y = Oe.length; Q < Y; Q++)
|
|
22325
22325
|
ie = Oe[Q], x.format !== hn ? re !== null ? L ? ee && t.compressedTexSubImage2D(s.TEXTURE_2D, Q, 0, 0, ie.width, ie.height, re, ie.data) : t.compressedTexImage2D(s.TEXTURE_2D, Q, ve, ie.width, ie.height, 0, ie.data) : Me("WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()") : L ? ee && t.texSubImage2D(s.TEXTURE_2D, Q, 0, 0, ie.width, ie.height, re, _e, ie.data) : t.texImage2D(s.TEXTURE_2D, Q, ve, ie.width, ie.height, 0, re, _e, ie.data);
|
|
22326
22326
|
}
|
|
22327
22327
|
else if (x.isDataArrayTexture)
|
|
@@ -22329,12 +22329,12 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22329
22329
|
if (le && t.texStorage3D(s.TEXTURE_2D_ARRAY, de, ve, $.width, $.height, $.depth), ee)
|
|
22330
22330
|
if (x.layerUpdates.size > 0) {
|
|
22331
22331
|
const Q = du($.width, $.height, x.format, x.type);
|
|
22332
|
-
for (const
|
|
22332
|
+
for (const Y of x.layerUpdates) {
|
|
22333
22333
|
const te = $.data.subarray(
|
|
22334
|
-
|
|
22335
|
-
(
|
|
22334
|
+
Y * Q / $.data.BYTES_PER_ELEMENT,
|
|
22335
|
+
(Y + 1) * Q / $.data.BYTES_PER_ELEMENT
|
|
22336
22336
|
);
|
|
22337
|
-
t.texSubImage3D(s.TEXTURE_2D_ARRAY, 0, 0, 0,
|
|
22337
|
+
t.texSubImage3D(s.TEXTURE_2D_ARRAY, 0, 0, 0, Y, $.width, $.height, 1, re, _e, te);
|
|
22338
22338
|
}
|
|
22339
22339
|
x.clearLayerUpdates();
|
|
22340
22340
|
} else
|
|
@@ -22348,16 +22348,16 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22348
22348
|
if (L)
|
|
22349
22349
|
t.texStorage2D(s.TEXTURE_2D, de, ve, $.width, $.height);
|
|
22350
22350
|
else {
|
|
22351
|
-
let Q = $.width,
|
|
22351
|
+
let Q = $.width, Y = $.height;
|
|
22352
22352
|
for (let te = 0; te < de; te++)
|
|
22353
|
-
t.texImage2D(s.TEXTURE_2D, te, ve, Q,
|
|
22353
|
+
t.texImage2D(s.TEXTURE_2D, te, ve, Q, Y, 0, re, _e, null), Q >>= 1, Y >>= 1;
|
|
22354
22354
|
}
|
|
22355
22355
|
} else if (Oe.length > 0) {
|
|
22356
22356
|
if (L && le) {
|
|
22357
22357
|
const Q = xe(Oe[0]);
|
|
22358
22358
|
t.texStorage2D(s.TEXTURE_2D, de, ve, Q.width, Q.height);
|
|
22359
22359
|
}
|
|
22360
|
-
for (let Q = 0,
|
|
22360
|
+
for (let Q = 0, Y = Oe.length; Q < Y; Q++)
|
|
22361
22361
|
ie = Oe[Q], L ? ee && t.texSubImage2D(s.TEXTURE_2D, Q, 0, 0, re, _e, ie) : t.texImage2D(s.TEXTURE_2D, Q, ve, re, _e, ie);
|
|
22362
22362
|
x.generateMipmaps = !1;
|
|
22363
22363
|
} else if (L) {
|
|
@@ -22374,70 +22374,70 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22374
22374
|
}
|
|
22375
22375
|
function Z(w, x, D) {
|
|
22376
22376
|
if (x.image.length !== 6) return;
|
|
22377
|
-
const j = Fe(w, x),
|
|
22377
|
+
const j = Fe(w, x), K = x.source;
|
|
22378
22378
|
t.bindTexture(s.TEXTURE_CUBE_MAP, w.__webglTexture, s.TEXTURE0 + D);
|
|
22379
|
-
const W = n.get(
|
|
22380
|
-
if (
|
|
22379
|
+
const W = n.get(K);
|
|
22380
|
+
if (K.version !== W.__version || j === !0) {
|
|
22381
22381
|
t.activeTexture(s.TEXTURE0 + D);
|
|
22382
22382
|
const Se = Ge.getPrimaries(Ge.workingColorSpace), ne = x.colorSpace === pi ? null : Ge.getPrimaries(x.colorSpace), be = x.colorSpace === pi || Se === ne ? s.NONE : s.BROWSER_DEFAULT_WEBGL;
|
|
22383
22383
|
s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL, x.flipY), s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL, x.premultiplyAlpha), s.pixelStorei(s.UNPACK_ALIGNMENT, x.unpackAlignment), s.pixelStorei(s.UNPACK_COLORSPACE_CONVERSION_WEBGL, be);
|
|
22384
22384
|
const Re = x.isCompressedTexture || x.image[0].isCompressedTexture, $ = x.image[0] && x.image[0].isDataTexture, re = [];
|
|
22385
|
-
for (let
|
|
22386
|
-
!Re && !$ ? re[
|
|
22387
|
-
const _e = re[0], ve = r.convert(x.format, x.colorSpace), ie = r.convert(x.type), Oe = S(x.internalFormat, ve, ie, x.colorSpace), L = x.isVideoTexture !== !0, le = W.__version === void 0 || j === !0, ee =
|
|
22385
|
+
for (let Y = 0; Y < 6; Y++)
|
|
22386
|
+
!Re && !$ ? re[Y] = g(x.image[Y], !0, i.maxCubemapSize) : re[Y] = $ ? x.image[Y].image : x.image[Y], re[Y] = ot(x, re[Y]);
|
|
22387
|
+
const _e = re[0], ve = r.convert(x.format, x.colorSpace), ie = r.convert(x.type), Oe = S(x.internalFormat, ve, ie, x.colorSpace), L = x.isVideoTexture !== !0, le = W.__version === void 0 || j === !0, ee = K.dataReady;
|
|
22388
22388
|
let de = T(x, _e);
|
|
22389
22389
|
ke(s.TEXTURE_CUBE_MAP, x);
|
|
22390
22390
|
let Q;
|
|
22391
22391
|
if (Re) {
|
|
22392
22392
|
L && le && t.texStorage2D(s.TEXTURE_CUBE_MAP, de, Oe, _e.width, _e.height);
|
|
22393
|
-
for (let
|
|
22394
|
-
Q = re[
|
|
22393
|
+
for (let Y = 0; Y < 6; Y++) {
|
|
22394
|
+
Q = re[Y].mipmaps;
|
|
22395
22395
|
for (let te = 0; te < Q.length; te++) {
|
|
22396
22396
|
const Pe = Q[te];
|
|
22397
|
-
x.format !== hn ? ve !== null ? L ? ee && t.compressedTexSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X +
|
|
22397
|
+
x.format !== hn ? ve !== null ? L ? ee && t.compressedTexSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + Y, te, 0, 0, Pe.width, Pe.height, ve, Pe.data) : t.compressedTexImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + Y, te, Oe, Pe.width, Pe.height, 0, Pe.data) : Me("WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()") : L ? ee && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + Y, te, 0, 0, Pe.width, Pe.height, ve, ie, Pe.data) : t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + Y, te, Oe, Pe.width, Pe.height, 0, ve, ie, Pe.data);
|
|
22398
22398
|
}
|
|
22399
22399
|
}
|
|
22400
22400
|
} else {
|
|
22401
22401
|
if (Q = x.mipmaps, L && le) {
|
|
22402
22402
|
Q.length > 0 && de++;
|
|
22403
|
-
const
|
|
22404
|
-
t.texStorage2D(s.TEXTURE_CUBE_MAP, de, Oe,
|
|
22403
|
+
const Y = xe(re[0]);
|
|
22404
|
+
t.texStorage2D(s.TEXTURE_CUBE_MAP, de, Oe, Y.width, Y.height);
|
|
22405
22405
|
}
|
|
22406
|
-
for (let
|
|
22406
|
+
for (let Y = 0; Y < 6; Y++)
|
|
22407
22407
|
if ($) {
|
|
22408
|
-
L ? ee && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X +
|
|
22408
|
+
L ? ee && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + Y, 0, 0, 0, re[Y].width, re[Y].height, ve, ie, re[Y].data) : t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + Y, 0, Oe, re[Y].width, re[Y].height, 0, ve, ie, re[Y].data);
|
|
22409
22409
|
for (let te = 0; te < Q.length; te++) {
|
|
22410
|
-
const ct = Q[te].image[
|
|
22411
|
-
L ? ee && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X +
|
|
22410
|
+
const ct = Q[te].image[Y].image;
|
|
22411
|
+
L ? ee && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + Y, te + 1, 0, 0, ct.width, ct.height, ve, ie, ct.data) : t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + Y, te + 1, Oe, ct.width, ct.height, 0, ve, ie, ct.data);
|
|
22412
22412
|
}
|
|
22413
22413
|
} else {
|
|
22414
|
-
L ? ee && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X +
|
|
22414
|
+
L ? ee && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + Y, 0, 0, 0, ve, ie, re[Y]) : t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + Y, 0, Oe, ve, ie, re[Y]);
|
|
22415
22415
|
for (let te = 0; te < Q.length; te++) {
|
|
22416
22416
|
const Pe = Q[te];
|
|
22417
|
-
L ? ee && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X +
|
|
22417
|
+
L ? ee && t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + Y, te + 1, 0, 0, ve, ie, Pe.image[Y]) : t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + Y, te + 1, Oe, ve, ie, Pe.image[Y]);
|
|
22418
22418
|
}
|
|
22419
22419
|
}
|
|
22420
22420
|
}
|
|
22421
|
-
_(x) && p(s.TEXTURE_CUBE_MAP), W.__version =
|
|
22421
|
+
_(x) && p(s.TEXTURE_CUBE_MAP), W.__version = K.version, x.onUpdate && x.onUpdate(x);
|
|
22422
22422
|
}
|
|
22423
22423
|
w.__version = x.version;
|
|
22424
22424
|
}
|
|
22425
|
-
function pe(w, x, D, j,
|
|
22425
|
+
function pe(w, x, D, j, K, W) {
|
|
22426
22426
|
const Se = r.convert(D.format, D.colorSpace), ne = r.convert(D.type), be = S(D.internalFormat, Se, ne, D.colorSpace), Re = n.get(x), $ = n.get(D);
|
|
22427
22427
|
if ($.__renderTarget = x, !Re.__hasExternalTextures) {
|
|
22428
22428
|
const re = Math.max(1, x.width >> W), _e = Math.max(1, x.height >> W);
|
|
22429
|
-
|
|
22429
|
+
K === s.TEXTURE_3D || K === s.TEXTURE_2D_ARRAY ? t.texImage3D(K, W, be, re, _e, x.depth, 0, Se, ne, null) : t.texImage2D(K, W, be, re, _e, 0, Se, ne, null);
|
|
22430
22430
|
}
|
|
22431
|
-
t.bindFramebuffer(s.FRAMEBUFFER, w), St(x) ? o.framebufferTexture2DMultisampleEXT(s.FRAMEBUFFER, j,
|
|
22431
|
+
t.bindFramebuffer(s.FRAMEBUFFER, w), St(x) ? o.framebufferTexture2DMultisampleEXT(s.FRAMEBUFFER, j, K, $.__webglTexture, 0, P(x)) : (K === s.TEXTURE_2D || K >= s.TEXTURE_CUBE_MAP_POSITIVE_X && K <= s.TEXTURE_CUBE_MAP_NEGATIVE_Z) && s.framebufferTexture2D(s.FRAMEBUFFER, j, K, $.__webglTexture, W), t.bindFramebuffer(s.FRAMEBUFFER, null);
|
|
22432
22432
|
}
|
|
22433
22433
|
function Ie(w, x, D) {
|
|
22434
22434
|
if (s.bindRenderbuffer(s.RENDERBUFFER, w), x.depthBuffer) {
|
|
22435
|
-
const j = x.depthTexture,
|
|
22435
|
+
const j = x.depthTexture, K = j && j.isDepthTexture ? j.type : null, W = y(x.stencilBuffer, K), Se = x.stencilBuffer ? s.DEPTH_STENCIL_ATTACHMENT : s.DEPTH_ATTACHMENT;
|
|
22436
22436
|
St(x) ? o.renderbufferStorageMultisampleEXT(s.RENDERBUFFER, P(x), W, x.width, x.height) : D ? s.renderbufferStorageMultisample(s.RENDERBUFFER, P(x), W, x.width, x.height) : s.renderbufferStorage(s.RENDERBUFFER, W, x.width, x.height), s.framebufferRenderbuffer(s.FRAMEBUFFER, Se, s.RENDERBUFFER, w);
|
|
22437
22437
|
} else {
|
|
22438
22438
|
const j = x.textures;
|
|
22439
|
-
for (let
|
|
22440
|
-
const W = j[
|
|
22439
|
+
for (let K = 0; K < j.length; K++) {
|
|
22440
|
+
const W = j[K], Se = r.convert(W.format, W.colorSpace), ne = r.convert(W.type), be = S(W.internalFormat, Se, ne, W.colorSpace);
|
|
22441
22441
|
St(x) ? o.renderbufferStorageMultisampleEXT(s.RENDERBUFFER, P(x), be, x.width, x.height) : D ? s.renderbufferStorageMultisample(s.RENDERBUFFER, P(x), be, x.width, x.height) : s.renderbufferStorage(s.RENDERBUFFER, be, x.width, x.height);
|
|
22442
22442
|
}
|
|
22443
22443
|
}
|
|
@@ -22447,10 +22447,10 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22447
22447
|
const j = x.isWebGLCubeRenderTarget === !0;
|
|
22448
22448
|
if (t.bindFramebuffer(s.FRAMEBUFFER, w), !(x.depthTexture && x.depthTexture.isDepthTexture))
|
|
22449
22449
|
throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");
|
|
22450
|
-
const
|
|
22451
|
-
if (
|
|
22452
|
-
if (
|
|
22453
|
-
|
|
22450
|
+
const K = n.get(x.depthTexture);
|
|
22451
|
+
if (K.__renderTarget = x, (!K.__webglTexture || x.depthTexture.image.width !== x.width || x.depthTexture.image.height !== x.height) && (x.depthTexture.image.width = x.width, x.depthTexture.image.height = x.height, x.depthTexture.needsUpdate = !0), j) {
|
|
22452
|
+
if (K.__webglInit === void 0 && (K.__webglInit = !0, x.depthTexture.addEventListener("dispose", E)), K.__webglTexture === void 0) {
|
|
22453
|
+
K.__webglTexture = s.createTexture(), t.bindTexture(s.TEXTURE_CUBE_MAP, K.__webglTexture), ke(s.TEXTURE_CUBE_MAP, x.depthTexture);
|
|
22454
22454
|
const Re = r.convert(x.depthTexture.format), $ = r.convert(x.depthTexture.type);
|
|
22455
22455
|
let re;
|
|
22456
22456
|
x.depthTexture.format === ii ? re = s.DEPTH_COMPONENT24 : x.depthTexture.format === Di && (re = s.DEPTH24_STENCIL8);
|
|
@@ -22459,7 +22459,7 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22459
22459
|
}
|
|
22460
22460
|
} else
|
|
22461
22461
|
X(x.depthTexture, 0);
|
|
22462
|
-
const W =
|
|
22462
|
+
const W = K.__webglTexture, Se = P(x), ne = j ? s.TEXTURE_CUBE_MAP_POSITIVE_X + D : s.TEXTURE_2D, be = x.depthTexture.format === Di ? s.DEPTH_STENCIL_ATTACHMENT : s.DEPTH_ATTACHMENT;
|
|
22463
22463
|
if (x.depthTexture.format === ii)
|
|
22464
22464
|
St(x) ? o.framebufferTexture2DMultisampleEXT(s.FRAMEBUFFER, be, ne, W, 0, Se) : s.framebufferTexture2D(s.FRAMEBUFFER, be, ne, W, 0);
|
|
22465
22465
|
else if (x.depthTexture.format === Di)
|
|
@@ -22472,10 +22472,10 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22472
22472
|
if (x.__boundDepthTexture !== w.depthTexture) {
|
|
22473
22473
|
const j = w.depthTexture;
|
|
22474
22474
|
if (x.__depthDisposeCallback && x.__depthDisposeCallback(), j) {
|
|
22475
|
-
const
|
|
22476
|
-
delete x.__boundDepthTexture, delete x.__depthDisposeCallback, j.removeEventListener("dispose",
|
|
22475
|
+
const K = () => {
|
|
22476
|
+
delete x.__boundDepthTexture, delete x.__depthDisposeCallback, j.removeEventListener("dispose", K);
|
|
22477
22477
|
};
|
|
22478
|
-
j.addEventListener("dispose",
|
|
22478
|
+
j.addEventListener("dispose", K), x.__depthDisposeCallback = K;
|
|
22479
22479
|
}
|
|
22480
22480
|
x.__boundDepthTexture = j;
|
|
22481
22481
|
}
|
|
@@ -22493,16 +22493,16 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22493
22493
|
if (t.bindFramebuffer(s.FRAMEBUFFER, x.__webglFramebuffer[j]), x.__webglDepthbuffer[j] === void 0)
|
|
22494
22494
|
x.__webglDepthbuffer[j] = s.createRenderbuffer(), Ie(x.__webglDepthbuffer[j], w, !1);
|
|
22495
22495
|
else {
|
|
22496
|
-
const
|
|
22497
|
-
s.bindRenderbuffer(s.RENDERBUFFER, W), s.framebufferRenderbuffer(s.FRAMEBUFFER,
|
|
22496
|
+
const K = w.stencilBuffer ? s.DEPTH_STENCIL_ATTACHMENT : s.DEPTH_ATTACHMENT, W = x.__webglDepthbuffer[j];
|
|
22497
|
+
s.bindRenderbuffer(s.RENDERBUFFER, W), s.framebufferRenderbuffer(s.FRAMEBUFFER, K, s.RENDERBUFFER, W);
|
|
22498
22498
|
}
|
|
22499
22499
|
} else {
|
|
22500
22500
|
const j = w.texture.mipmaps;
|
|
22501
22501
|
if (j && j.length > 0 ? t.bindFramebuffer(s.FRAMEBUFFER, x.__webglFramebuffer[0]) : t.bindFramebuffer(s.FRAMEBUFFER, x.__webglFramebuffer), x.__webglDepthbuffer === void 0)
|
|
22502
22502
|
x.__webglDepthbuffer = s.createRenderbuffer(), Ie(x.__webglDepthbuffer, w, !1);
|
|
22503
22503
|
else {
|
|
22504
|
-
const
|
|
22505
|
-
s.bindRenderbuffer(s.RENDERBUFFER, W), s.framebufferRenderbuffer(s.FRAMEBUFFER,
|
|
22504
|
+
const K = w.stencilBuffer ? s.DEPTH_STENCIL_ATTACHMENT : s.DEPTH_ATTACHMENT, W = x.__webglDepthbuffer;
|
|
22505
|
+
s.bindRenderbuffer(s.RENDERBUFFER, W), s.framebufferRenderbuffer(s.FRAMEBUFFER, K, s.RENDERBUFFER, W);
|
|
22506
22506
|
}
|
|
22507
22507
|
}
|
|
22508
22508
|
t.bindFramebuffer(s.FRAMEBUFFER, null);
|
|
@@ -22514,7 +22514,7 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22514
22514
|
function Xe(w) {
|
|
22515
22515
|
const x = w.texture, D = n.get(w), j = n.get(x);
|
|
22516
22516
|
w.addEventListener("dispose", R);
|
|
22517
|
-
const
|
|
22517
|
+
const K = w.textures, W = w.isWebGLCubeRenderTarget === !0, Se = K.length > 1;
|
|
22518
22518
|
if (Se || (j.__webglTexture === void 0 && (j.__webglTexture = s.createTexture()), j.__version = x.version, a.memory.textures++), W) {
|
|
22519
22519
|
D.__webglFramebuffer = [];
|
|
22520
22520
|
for (let ne = 0; ne < 6; ne++)
|
|
@@ -22532,14 +22532,14 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22532
22532
|
} else
|
|
22533
22533
|
D.__webglFramebuffer = s.createFramebuffer();
|
|
22534
22534
|
if (Se)
|
|
22535
|
-
for (let ne = 0, be =
|
|
22536
|
-
const Re = n.get(
|
|
22535
|
+
for (let ne = 0, be = K.length; ne < be; ne++) {
|
|
22536
|
+
const Re = n.get(K[ne]);
|
|
22537
22537
|
Re.__webglTexture === void 0 && (Re.__webglTexture = s.createTexture(), a.memory.textures++);
|
|
22538
22538
|
}
|
|
22539
22539
|
if (w.samples > 0 && St(w) === !1) {
|
|
22540
22540
|
D.__webglMultisampledFramebuffer = s.createFramebuffer(), D.__webglColorRenderbuffer = [], t.bindFramebuffer(s.FRAMEBUFFER, D.__webglMultisampledFramebuffer);
|
|
22541
|
-
for (let ne = 0; ne <
|
|
22542
|
-
const be =
|
|
22541
|
+
for (let ne = 0; ne < K.length; ne++) {
|
|
22542
|
+
const be = K[ne];
|
|
22543
22543
|
D.__webglColorRenderbuffer[ne] = s.createRenderbuffer(), s.bindRenderbuffer(s.RENDERBUFFER, D.__webglColorRenderbuffer[ne]);
|
|
22544
22544
|
const Re = r.convert(be.format, be.colorSpace), $ = r.convert(be.type), re = S(be.internalFormat, Re, $, be.colorSpace, w.isXRRenderTarget === !0), _e = P(w);
|
|
22545
22545
|
s.renderbufferStorageMultisample(s.RENDERBUFFER, _e, re, w.width, w.height), s.framebufferRenderbuffer(s.FRAMEBUFFER, s.COLOR_ATTACHMENT0 + ne, s.RENDERBUFFER, D.__webglColorRenderbuffer[ne]);
|
|
@@ -22557,8 +22557,8 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22557
22557
|
pe(D.__webglFramebuffer[ne], w, x, s.COLOR_ATTACHMENT0, s.TEXTURE_CUBE_MAP_POSITIVE_X + ne, 0);
|
|
22558
22558
|
_(x) && p(s.TEXTURE_CUBE_MAP), t.unbindTexture();
|
|
22559
22559
|
} else if (Se) {
|
|
22560
|
-
for (let ne = 0, be =
|
|
22561
|
-
const Re =
|
|
22560
|
+
for (let ne = 0, be = K.length; ne < be; ne++) {
|
|
22561
|
+
const Re = K[ne], $ = n.get(Re);
|
|
22562
22562
|
let re = s.TEXTURE_2D;
|
|
22563
22563
|
(w.isWebGL3DRenderTarget || w.isWebGLArrayRenderTarget) && (re = w.isWebGL3DRenderTarget ? s.TEXTURE_3D : s.TEXTURE_2D_ARRAY), t.bindTexture(re, $.__webglTexture), ke(re, Re), pe(D.__webglFramebuffer, w, Re, s.COLOR_ATTACHMENT0 + ne, re, 0), _(Re) && p(re);
|
|
22564
22564
|
}
|
|
@@ -22577,9 +22577,9 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22577
22577
|
function Je(w) {
|
|
22578
22578
|
const x = w.textures;
|
|
22579
22579
|
for (let D = 0, j = x.length; D < j; D++) {
|
|
22580
|
-
const
|
|
22581
|
-
if (_(
|
|
22582
|
-
const W = b(w), Se = n.get(
|
|
22580
|
+
const K = x[D];
|
|
22581
|
+
if (_(K)) {
|
|
22582
|
+
const W = b(w), Se = n.get(K).__webglTexture;
|
|
22583
22583
|
t.bindTexture(W, Se), p(W), t.unbindTexture();
|
|
22584
22584
|
}
|
|
22585
22585
|
}
|
|
@@ -22589,7 +22589,7 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22589
22589
|
if (w.samples > 0) {
|
|
22590
22590
|
if (St(w) === !1) {
|
|
22591
22591
|
const x = w.textures, D = w.width, j = w.height;
|
|
22592
|
-
let
|
|
22592
|
+
let K = s.COLOR_BUFFER_BIT;
|
|
22593
22593
|
const W = w.stencilBuffer ? s.DEPTH_STENCIL_ATTACHMENT : s.DEPTH_ATTACHMENT, Se = n.get(w), ne = x.length > 1;
|
|
22594
22594
|
if (ne)
|
|
22595
22595
|
for (let Re = 0; Re < x.length; Re++)
|
|
@@ -22598,12 +22598,12 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22598
22598
|
const be = w.texture.mipmaps;
|
|
22599
22599
|
be && be.length > 0 ? t.bindFramebuffer(s.DRAW_FRAMEBUFFER, Se.__webglFramebuffer[0]) : t.bindFramebuffer(s.DRAW_FRAMEBUFFER, Se.__webglFramebuffer);
|
|
22600
22600
|
for (let Re = 0; Re < x.length; Re++) {
|
|
22601
|
-
if (w.resolveDepthBuffer && (w.depthBuffer && (
|
|
22601
|
+
if (w.resolveDepthBuffer && (w.depthBuffer && (K |= s.DEPTH_BUFFER_BIT), w.stencilBuffer && w.resolveStencilBuffer && (K |= s.STENCIL_BUFFER_BIT)), ne) {
|
|
22602
22602
|
s.framebufferRenderbuffer(s.READ_FRAMEBUFFER, s.COLOR_ATTACHMENT0, s.RENDERBUFFER, Se.__webglColorRenderbuffer[Re]);
|
|
22603
22603
|
const $ = n.get(x[Re]).__webglTexture;
|
|
22604
22604
|
s.framebufferTexture2D(s.DRAW_FRAMEBUFFER, s.COLOR_ATTACHMENT0, s.TEXTURE_2D, $, 0);
|
|
22605
22605
|
}
|
|
22606
|
-
s.blitFramebuffer(0, 0, D, j, 0, 0, D, j,
|
|
22606
|
+
s.blitFramebuffer(0, 0, D, j, 0, 0, D, j, K, s.NEAREST), l === !0 && (it.length = 0, Ue.length = 0, it.push(s.COLOR_ATTACHMENT0 + Re), w.depthBuffer && w.resolveDepthBuffer === !1 && (it.push(W), Ue.push(W), s.invalidateFramebuffer(s.DRAW_FRAMEBUFFER, Ue)), s.invalidateFramebuffer(s.READ_FRAMEBUFFER, it));
|
|
22607
22607
|
}
|
|
22608
22608
|
if (t.bindFramebuffer(s.READ_FRAMEBUFFER, null), t.bindFramebuffer(s.DRAW_FRAMEBUFFER, null), ne)
|
|
22609
22609
|
for (let Re = 0; Re < x.length; Re++) {
|
|
@@ -22625,13 +22625,13 @@ function O0(s, e, t, n, i, r, a) {
|
|
|
22625
22625
|
const x = n.get(w);
|
|
22626
22626
|
return w.samples > 0 && e.has("WEBGL_multisampled_render_to_texture") === !0 && x.__useRenderToTexture !== !1;
|
|
22627
22627
|
}
|
|
22628
|
-
function
|
|
22628
|
+
function Ye(w) {
|
|
22629
22629
|
const x = a.render.frame;
|
|
22630
22630
|
d.get(w) !== x && (d.set(w, x), w.update());
|
|
22631
22631
|
}
|
|
22632
22632
|
function ot(w, x) {
|
|
22633
|
-
const D = w.colorSpace, j = w.format,
|
|
22634
|
-
return w.isCompressedTexture === !0 || w.isVideoTexture === !0 || D !== Wt && D !== pi && (Ge.getTransfer(D) === $e ? (j !== hn ||
|
|
22633
|
+
const D = w.colorSpace, j = w.format, K = w.type;
|
|
22634
|
+
return w.isCompressedTexture === !0 || w.isVideoTexture === !0 || D !== Wt && D !== pi && (Ge.getTransfer(D) === $e ? (j !== hn || K !== en) && Me("WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : we("WebGLTextures: Unsupported texture color space:", D)), x;
|
|
22635
22635
|
}
|
|
22636
22636
|
function xe(w) {
|
|
22637
22637
|
return typeof HTMLImageElement < "u" && w instanceof HTMLImageElement ? (u.width = w.naturalWidth || w.width, u.height = w.naturalHeight || w.height) : typeof VideoFrame < "u" && w instanceof VideoFrame ? (u.width = w.displayWidth, u.height = w.displayHeight) : (u.width = w.width, u.height = w.height), u;
|
|
@@ -22700,14 +22700,14 @@ function k0(s, e) {
|
|
|
22700
22700
|
if (n === Vo) return r.COMPRESSED_SIGNED_RG11_EAC;
|
|
22701
22701
|
} else
|
|
22702
22702
|
return null;
|
|
22703
|
-
if (n === Wo || n === Xo || n === jo || n === qo || n ===
|
|
22703
|
+
if (n === Wo || n === Xo || n === jo || n === qo || n === Yo || n === Ko || n === Jo || n === Zo || n === Qo || n === $o || n === ec || n === tc || n === nc || n === ic)
|
|
22704
22704
|
if (r = e.get("WEBGL_compressed_texture_astc"), r !== null) {
|
|
22705
22705
|
if (n === Wo) return a === $e ? r.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR : r.COMPRESSED_RGBA_ASTC_4x4_KHR;
|
|
22706
22706
|
if (n === Xo) return a === $e ? r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR : r.COMPRESSED_RGBA_ASTC_5x4_KHR;
|
|
22707
22707
|
if (n === jo) return a === $e ? r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR : r.COMPRESSED_RGBA_ASTC_5x5_KHR;
|
|
22708
22708
|
if (n === qo) return a === $e ? r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR : r.COMPRESSED_RGBA_ASTC_6x5_KHR;
|
|
22709
|
-
if (n ===
|
|
22710
|
-
if (n ===
|
|
22709
|
+
if (n === Yo) return a === $e ? r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR : r.COMPRESSED_RGBA_ASTC_6x6_KHR;
|
|
22710
|
+
if (n === Ko) return a === $e ? r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR : r.COMPRESSED_RGBA_ASTC_8x5_KHR;
|
|
22711
22711
|
if (n === Jo) return a === $e ? r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR : r.COMPRESSED_RGBA_ASTC_8x6_KHR;
|
|
22712
22712
|
if (n === Zo) return a === $e ? r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR : r.COMPRESSED_RGBA_ASTC_8x8_KHR;
|
|
22713
22713
|
if (n === Qo) return a === $e ? r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR : r.COMPRESSED_RGBA_ASTC_10x5_KHR;
|
|
@@ -22798,7 +22798,7 @@ class H0 {
|
|
|
22798
22798
|
depthHeight: { value: t.w }
|
|
22799
22799
|
}
|
|
22800
22800
|
});
|
|
22801
|
-
this.mesh = new
|
|
22801
|
+
this.mesh = new Kt(new xa(20, 20), n);
|
|
22802
22802
|
}
|
|
22803
22803
|
return this.mesh;
|
|
22804
22804
|
}
|
|
@@ -22961,12 +22961,12 @@ class G0 extends zi {
|
|
|
22961
22961
|
const J = new U(), ue = new U();
|
|
22962
22962
|
function ae(q, Z, pe) {
|
|
22963
22963
|
J.setFromMatrixPosition(Z.matrixWorld), ue.setFromMatrixPosition(pe.matrixWorld);
|
|
22964
|
-
const Ie = J.distanceTo(ue), ge = Z.projectionMatrix.elements, je = pe.projectionMatrix.elements, Rt = ge[14] / (ge[10] - 1), Xe = ge[14] / (ge[10] + 1), Je = (ge[9] + 1) / ge[5], it = (ge[9] - 1) / ge[5], Ue = (ge[8] - 1) / ge[0], vt = (je[8] + 1) / je[0], P = Rt * Ue, St = Rt * vt,
|
|
22965
|
-
if (Z.matrixWorld.decompose(q.position, q.quaternion, q.scale), q.translateX(ot), q.translateZ(
|
|
22964
|
+
const Ie = J.distanceTo(ue), ge = Z.projectionMatrix.elements, je = pe.projectionMatrix.elements, Rt = ge[14] / (ge[10] - 1), Xe = ge[14] / (ge[10] + 1), Je = (ge[9] + 1) / ge[5], it = (ge[9] - 1) / ge[5], Ue = (ge[8] - 1) / ge[0], vt = (je[8] + 1) / je[0], P = Rt * Ue, St = Rt * vt, Ye = Ie / (-Ue + vt), ot = Ye * -Ue;
|
|
22965
|
+
if (Z.matrixWorld.decompose(q.position, q.quaternion, q.scale), q.translateX(ot), q.translateZ(Ye), q.matrixWorld.compose(q.position, q.quaternion, q.scale), q.matrixWorldInverse.copy(q.matrixWorld).invert(), ge[10] === -1)
|
|
22966
22966
|
q.projectionMatrix.copy(Z.projectionMatrix), q.projectionMatrixInverse.copy(Z.projectionMatrixInverse);
|
|
22967
22967
|
else {
|
|
22968
|
-
const xe = Rt +
|
|
22969
|
-
q.projectionMatrix.makePerspective(x, D, j,
|
|
22968
|
+
const xe = Rt + Ye, w = Xe + Ye, x = P - ot, D = St + (Ie - ot), j = Je * Xe / w * xe, K = it * Xe / w * xe;
|
|
22969
|
+
q.projectionMatrix.makePerspective(x, D, j, K, xe, w), q.projectionMatrixInverse.copy(q.projectionMatrix).invert();
|
|
22970
22970
|
}
|
|
22971
22971
|
}
|
|
22972
22972
|
function he(q, Z) {
|
|
@@ -23731,7 +23731,7 @@ let Rn = null;
|
|
|
23731
23731
|
function q0() {
|
|
23732
23732
|
return Rn === null && (Rn = new Jc(j0, 16, 16, _r, ni), Rn.name = "DFG_LUT", Rn.minFilter = At, Rn.magFilter = At, Rn.wrapS = Nn, Rn.wrapT = Nn, Rn.generateMipmaps = !1, Rn.needsUpdate = !0), Rn;
|
|
23733
23733
|
}
|
|
23734
|
-
class
|
|
23734
|
+
class Y0 {
|
|
23735
23735
|
/**
|
|
23736
23736
|
* Constructs a new WebGL renderer.
|
|
23737
23737
|
*
|
|
@@ -23827,21 +23827,21 @@ class K0 {
|
|
|
23827
23827
|
} catch (M) {
|
|
23828
23828
|
throw we("WebGLRenderer: " + M.message), M;
|
|
23829
23829
|
}
|
|
23830
|
-
let
|
|
23831
|
-
function
|
|
23832
|
-
|
|
23830
|
+
let Ye, ot, xe, w, x, D, j, K, W, Se, ne, be, Re, $, re, _e, ve, ie, Oe, L, le, ee, de, Q;
|
|
23831
|
+
function Y() {
|
|
23832
|
+
Ye = new qg(P), Ye.init(), ee = new k0(P, Ye), ot = new kg(P, Ye, e, ee), xe = new U0(P, Ye), ot.reversedDepthBuffer && h && xe.buffers.depth.setReversed(!0), w = new Jg(P), x = new S0(), D = new O0(P, Ye, xe, x, ot, ee, w), j = new zg(v), K = new jg(v), W = new em(P), de = new Ug(P, W), Se = new Yg(P, W, w, de), ne = new Qg(P, Se, W, w), Oe = new Zg(P, ot, D), _e = new Bg(x), be = new v0(v, j, K, Ye, ot, de, _e), Re = new W0(v, x), $ = new M0(), re = new C0(Ye), ie = new Fg(v, j, K, xe, ne, m, l), ve = new N0(v, ne, ot), Q = new X0(P, w, ot, xe), L = new Og(P, Ye, w), le = new Kg(P, Ye, w), w.programs = be.programs, v.capabilities = ot, v.extensions = Ye, v.properties = x, v.renderLists = $, v.shadowMap = ve, v.state = xe, v.info = w;
|
|
23833
23833
|
}
|
|
23834
|
-
|
|
23834
|
+
Y(), g !== en && (I = new eb(g, t.width, t.height, i, r));
|
|
23835
23835
|
const te = new G0(v, P);
|
|
23836
23836
|
this.xr = te, this.getContext = function() {
|
|
23837
23837
|
return P;
|
|
23838
23838
|
}, this.getContextAttributes = function() {
|
|
23839
23839
|
return P.getContextAttributes();
|
|
23840
23840
|
}, this.forceContextLoss = function() {
|
|
23841
|
-
const M =
|
|
23841
|
+
const M = Ye.get("WEBGL_lose_context");
|
|
23842
23842
|
M && M.loseContext();
|
|
23843
23843
|
}, this.forceContextRestore = function() {
|
|
23844
|
-
const M =
|
|
23844
|
+
const M = Ye.get("WEBGL_lose_context");
|
|
23845
23845
|
M && M.restoreContext();
|
|
23846
23846
|
}, this.getPixelRatio = function() {
|
|
23847
23847
|
return Fe;
|
|
@@ -23920,7 +23920,7 @@ class K0 {
|
|
|
23920
23920
|
}, this.clearStencil = function() {
|
|
23921
23921
|
this.clear(!1, !1, !0);
|
|
23922
23922
|
}, this.dispose = function() {
|
|
23923
|
-
t.removeEventListener("webglcontextlost", Pe, !1), t.removeEventListener("webglcontextrestored", ct, !1), t.removeEventListener("webglcontextcreationerror", Ze, !1), ie.dispose(), $.dispose(), re.dispose(), x.dispose(), j.dispose(),
|
|
23923
|
+
t.removeEventListener("webglcontextlost", Pe, !1), t.removeEventListener("webglcontextrestored", ct, !1), t.removeEventListener("webglcontextcreationerror", Ze, !1), ie.dispose(), $.dispose(), re.dispose(), x.dispose(), j.dispose(), K.dispose(), ne.dispose(), de.dispose(), Q.dispose(), be.dispose(), te.dispose(), te.removeEventListener("sessionstart", gl), te.removeEventListener("sessionend", bl), Si.stop();
|
|
23924
23924
|
};
|
|
23925
23925
|
function Pe(M) {
|
|
23926
23926
|
M.preventDefault(), ca("WebGLRenderer: Context Lost."), A = !0;
|
|
@@ -23928,7 +23928,7 @@ class K0 {
|
|
|
23928
23928
|
function ct() {
|
|
23929
23929
|
ca("WebGLRenderer: Context Restored."), A = !1;
|
|
23930
23930
|
const M = w.autoReset, N = ve.enabled, H = ve.autoUpdate, B = ve.needsUpdate, O = ve.type;
|
|
23931
|
-
|
|
23931
|
+
Y(), w.autoReset = M, ve.enabled = N, ve.autoUpdate = H, ve.needsUpdate = B, ve.type = O;
|
|
23932
23932
|
}
|
|
23933
23933
|
function Ze(M) {
|
|
23934
23934
|
we("WebGLRenderer: A WebGL context could not be created. Reason: ", M.statusMessage);
|
|
@@ -23971,7 +23971,7 @@ class K0 {
|
|
|
23971
23971
|
if (O.isBatchedMesh)
|
|
23972
23972
|
if (O._multiDrawInstances !== null)
|
|
23973
23973
|
os("WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."), rt.renderMultiDrawInstances(O._multiDrawStarts, O._multiDrawCounts, O._multiDrawCount, O._multiDrawInstances);
|
|
23974
|
-
else if (
|
|
23974
|
+
else if (Ye.get("WEBGL_multi_draw"))
|
|
23975
23975
|
rt.renderMultiDraw(O._multiDrawStarts, O._multiDrawCounts, O._multiDrawCount);
|
|
23976
23976
|
else {
|
|
23977
23977
|
const Ae = O._multiDrawStarts, Qe = O._multiDrawCounts, qe = O._multiDrawCount, Jt = me ? W.get(me).bytesPerElement : 1, Vi = x.get(B).currentProgram.getUniforms();
|
|
@@ -24021,7 +24021,7 @@ class K0 {
|
|
|
24021
24021
|
}
|
|
24022
24022
|
setTimeout(se, 10);
|
|
24023
24023
|
}
|
|
24024
|
-
|
|
24024
|
+
Ye.get("KHR_parallel_shader_compile") !== null ? se() : setTimeout(se, 10);
|
|
24025
24025
|
});
|
|
24026
24026
|
};
|
|
24027
24027
|
let Ea = null;
|
|
@@ -24107,7 +24107,7 @@ class K0 {
|
|
|
24107
24107
|
if ((H.isScene === !0 ? H.overrideMaterial : null) !== null)
|
|
24108
24108
|
return;
|
|
24109
24109
|
if (T.state.transmissionRenderTarget[B.id] === void 0) {
|
|
24110
|
-
const Be =
|
|
24110
|
+
const Be = Ye.has("EXT_color_buffer_half_float") || Ye.has("EXT_color_buffer_float");
|
|
24111
24111
|
T.state.transmissionRenderTarget[B.id] = new On(1, 1, {
|
|
24112
24112
|
generateMipmaps: !0,
|
|
24113
24113
|
type: Be ? ni : en,
|
|
@@ -24126,7 +24126,7 @@ class K0 {
|
|
|
24126
24126
|
const Ee = v.toneMapping;
|
|
24127
24127
|
v.toneMapping = Un;
|
|
24128
24128
|
const Te = B.viewport;
|
|
24129
|
-
if (B.viewport !== void 0 && (B.viewport = void 0), T.setupLightsView(B), ge === !0 && _e.setGlobalState(v.clippingPlanes, B), gs(M, H, B), D.updateMultisampleRenderTarget(se), D.updateRenderTargetMipmap(se),
|
|
24129
|
+
if (B.viewport !== void 0 && (B.viewport = void 0), T.setupLightsView(B), ge === !0 && _e.setGlobalState(v.clippingPlanes, B), gs(M, H, B), D.updateMultisampleRenderTarget(se), D.updateRenderTargetMipmap(se), Ye.has("WEBGL_multisampled_render_to_texture") === !1) {
|
|
24130
24130
|
let Be = !1;
|
|
24131
24131
|
for (let tt = 0, gt = N.length; tt < gt; tt++) {
|
|
24132
24132
|
const bt = N[tt], { object: rt, geometry: Ae, material: Qe, group: qe } = bt;
|
|
@@ -24154,7 +24154,7 @@ class K0 {
|
|
|
24154
24154
|
N.isScene !== !0 && (N = it);
|
|
24155
24155
|
const B = x.get(M), O = T.state.lights, se = T.state.shadowsArray, fe = O.state.version, ce = be.getParameters(M, O.state, se, N, H), me = be.getProgramCacheKey(ce);
|
|
24156
24156
|
let ye = B.programs;
|
|
24157
|
-
B.environment = M.isMeshStandardMaterial ? N.environment : null, B.fog = N.fog, B.envMap = (M.isMeshStandardMaterial ?
|
|
24157
|
+
B.environment = M.isMeshStandardMaterial ? N.environment : null, B.fog = N.fog, B.envMap = (M.isMeshStandardMaterial ? K : j).get(M.envMap || B.environment), B.envMapRotation = B.environment !== null && M.envMap === null ? N.environmentRotation : M.envMapRotation, ye === void 0 && (M.addEventListener("dispose", wn), ye = /* @__PURE__ */ new Map(), B.programs = ye);
|
|
24158
24158
|
let Ee = ye.get(me);
|
|
24159
24159
|
if (Ee !== void 0) {
|
|
24160
24160
|
if (B.currentProgram === Ee && B.lightsStateVersion === fe)
|
|
@@ -24177,7 +24177,7 @@ class K0 {
|
|
|
24177
24177
|
}
|
|
24178
24178
|
function Rd(M, N, H, B, O) {
|
|
24179
24179
|
N.isScene !== !0 && (N = it), D.resetTextureUnits();
|
|
24180
|
-
const se = N.fog, fe = B.isMeshStandardMaterial ? N.environment : null, ce = F === null ? v.outputColorSpace : F.isXRRenderTarget === !0 ? F.texture.colorSpace : Wt, me = (B.isMeshStandardMaterial ?
|
|
24180
|
+
const se = N.fog, fe = B.isMeshStandardMaterial ? N.environment : null, ce = F === null ? v.outputColorSpace : F.isXRRenderTarget === !0 ? F.texture.colorSpace : Wt, me = (B.isMeshStandardMaterial ? K : j).get(B.envMap || fe), ye = B.vertexColors === !0 && !!H.attributes.color && H.attributes.color.itemSize === 4, Ee = !!H.attributes.tangent && (!!B.normalMap || B.anisotropy > 0), Te = !!H.morphAttributes.position, Be = !!H.morphAttributes.normal, tt = !!H.morphAttributes.color;
|
|
24181
24181
|
let gt = Un;
|
|
24182
24182
|
B.toneMapped && (F === null || F.isXRRenderTarget === !0) && (gt = v.toneMapping);
|
|
24183
24183
|
const bt = H.morphAttributes.position || H.morphAttributes.normal || H.morphAttributes.color, rt = bt !== void 0 ? bt.length : 0, Ae = x.get(B), Qe = T.state.lights;
|
|
@@ -24394,7 +24394,7 @@ class K0 {
|
|
|
24394
24394
|
}
|
|
24395
24395
|
var uo = {};
|
|
24396
24396
|
var Uu;
|
|
24397
|
-
function
|
|
24397
|
+
function K0() {
|
|
24398
24398
|
return Uu || (Uu = 1, (function(s) {
|
|
24399
24399
|
(function() {
|
|
24400
24400
|
var e = function() {
|
|
@@ -25574,7 +25574,7 @@ function Y0() {
|
|
|
25574
25574
|
})();
|
|
25575
25575
|
})(uo)), uo;
|
|
25576
25576
|
}
|
|
25577
|
-
var Xs =
|
|
25577
|
+
var Xs = K0();
|
|
25578
25578
|
function Jn(s) {
|
|
25579
25579
|
if (s === void 0)
|
|
25580
25580
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -25604,7 +25604,7 @@ var yr = {
|
|
|
25604
25604
|
return typeof e > "u";
|
|
25605
25605
|
}, zn = function(e) {
|
|
25606
25606
|
return typeof e == "object";
|
|
25607
|
-
},
|
|
25607
|
+
}, Yt = function(e) {
|
|
25608
25608
|
return e !== !1;
|
|
25609
25609
|
}, sl = function() {
|
|
25610
25610
|
return typeof window < "u";
|
|
@@ -25630,7 +25630,7 @@ var yr = {
|
|
|
25630
25630
|
kill: !1
|
|
25631
25631
|
}, ox = {
|
|
25632
25632
|
suppressEvents: !0
|
|
25633
|
-
}, ol = {}, gi = [], Sc = {},
|
|
25633
|
+
}, ol = {}, gi = [], Sc = {}, Yh, ln = {}, fo = {}, ku = 30, na = [], cl = "", ll = function(e) {
|
|
25634
25634
|
var t = e[0], n, i;
|
|
25635
25635
|
if (zn(t) || xt(t) || (e = [e]), !(n = (t._gsap || {}).harness)) {
|
|
25636
25636
|
for (i = na.length; i-- && !na[i].targetTest(t); )
|
|
@@ -25650,7 +25650,7 @@ var yr = {
|
|
|
25650
25650
|
return Math.round(e * 1e5) / 1e5 || 0;
|
|
25651
25651
|
}, mt = function(e) {
|
|
25652
25652
|
return Math.round(e * 1e7) / 1e7 || 0;
|
|
25653
|
-
},
|
|
25653
|
+
}, Kh = function(e, t) {
|
|
25654
25654
|
var n = t.charAt(0), i = parseFloat(t.substr(2));
|
|
25655
25655
|
return e = parseFloat(e), n === "+" ? e + i : n === "-" ? e - i : n === "*" ? e * i : e / i;
|
|
25656
25656
|
}, ux = function(e, t) {
|
|
@@ -25694,7 +25694,7 @@ var yr = {
|
|
|
25694
25694
|
return n;
|
|
25695
25695
|
}, $r = function(e) {
|
|
25696
25696
|
var t = e.parent || _t, n = e.keyframes ? hx(Ut(e.keyframes)) : rn;
|
|
25697
|
-
if (
|
|
25697
|
+
if (Yt(e.inherit))
|
|
25698
25698
|
for (; t; )
|
|
25699
25699
|
n(e, t.vars.defaults), t = t.parent || t._dp;
|
|
25700
25700
|
return e;
|
|
@@ -25754,7 +25754,7 @@ var yr = {
|
|
|
25754
25754
|
}, nd = function(e, t, n, i, r) {
|
|
25755
25755
|
if (fl(e, t, r), !e._initted)
|
|
25756
25756
|
return 1;
|
|
25757
|
-
if (!n && e._pt && !Lt && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) &&
|
|
25757
|
+
if (!n && e._pt && !Lt && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && Yh !== vn.frame)
|
|
25758
25758
|
return gi.push(e), e._lazy = [r, i], 1;
|
|
25759
25759
|
}, mx = function s(e) {
|
|
25760
25760
|
var t = e.parent;
|
|
@@ -25801,8 +25801,8 @@ var yr = {
|
|
|
25801
25801
|
var i = ri(t[1]), r = (i ? 2 : 1) + (e < 2 ? 0 : 1), a = t[r], o, l;
|
|
25802
25802
|
if (i && (a.duration = t[1]), a.parent = n, e) {
|
|
25803
25803
|
for (o = a, l = n; l && !("immediateRender" in o); )
|
|
25804
|
-
o = l.vars.defaults || {}, l =
|
|
25805
|
-
a.immediateRender =
|
|
25804
|
+
o = l.vars.defaults || {}, l = Yt(l.vars.inherit) && l.parent;
|
|
25805
|
+
a.immediateRender = Yt(o.immediateRender), e < 2 ? a.runBackwards = 1 : a.startAt = t[r - 1];
|
|
25806
25806
|
}
|
|
25807
25807
|
return new Mt(t[0], a, t[r + 1]);
|
|
25808
25808
|
}, vi = function(e, t) {
|
|
@@ -25982,7 +25982,7 @@ var yr = {
|
|
|
25982
25982
|
qh(t, i), e.register && e.register(It, i, Ir);
|
|
25983
25983
|
} else
|
|
25984
25984
|
ud.push(e);
|
|
25985
|
-
}, st = 255,
|
|
25985
|
+
}, st = 255, Yr = {
|
|
25986
25986
|
aqua: [0, st, st],
|
|
25987
25987
|
lime: [0, st, 0],
|
|
25988
25988
|
silver: [192, 192, 192],
|
|
@@ -26005,10 +26005,10 @@ var yr = {
|
|
|
26005
26005
|
}, po = function(e, t, n) {
|
|
26006
26006
|
return e += e < 0 ? 1 : e > 1 ? -1 : 0, (e * 6 < 1 ? t + (n - t) * e * 6 : e < 0.5 ? n : e * 3 < 2 ? t + (n - t) * (2 / 3 - e) * 6 : t) * st + 0.5 | 0;
|
|
26007
26007
|
}, dd = function(e, t, n) {
|
|
26008
|
-
var i = e ? ri(e) ? [e >> 16, e >> 8 & st, e & st] : 0 :
|
|
26008
|
+
var i = e ? ri(e) ? [e >> 16, e >> 8 & st, e & st] : 0 : Yr.black, r, a, o, l, u, d, c, h, f, m;
|
|
26009
26009
|
if (!i) {
|
|
26010
|
-
if (e.substr(-1) === "," && (e = e.substr(0, e.length - 1)),
|
|
26011
|
-
i =
|
|
26010
|
+
if (e.substr(-1) === "," && (e = e.substr(0, e.length - 1)), Yr[e])
|
|
26011
|
+
i = Yr[e];
|
|
26012
26012
|
else if (e.charAt(0) === "#") {
|
|
26013
26013
|
if (e.length < 6 && (r = e.charAt(1), a = e.charAt(2), o = e.charAt(3), e = "#" + r + r + a + a + o + o + (e.length === 5 ? e.charAt(4) + e.charAt(4) : "")), e.length === 9)
|
|
26014
26014
|
return i = parseInt(e.substr(1, 6), 16), [i >> 16, i >> 8 & st, i & st, parseInt(e.substr(7), 16) / 255];
|
|
@@ -26019,7 +26019,7 @@ var yr = {
|
|
|
26019
26019
|
else if (~e.indexOf("="))
|
|
26020
26020
|
return i = e.match(nx), n && i.length < 4 && (i[3] = 1), i;
|
|
26021
26021
|
} else
|
|
26022
|
-
i = e.match(Ou) ||
|
|
26022
|
+
i = e.match(Ou) || Yr.transparent;
|
|
26023
26023
|
i = i.map(Number);
|
|
26024
26024
|
}
|
|
26025
26025
|
return t && !m && (r = i[0] / st, a = i[1] / st, o = i[2] / st, c = Math.max(r, a, o), h = Math.min(r, a, o), d = (c + h) / 2, c === h ? l = u = 0 : (f = c - h, u = d > 0.5 ? f / (2 - c - h) : f / (c + h), l = c === r ? (a - o) / f + (a < o ? 6 : 0) : c === a ? (o - r) / f + 2 : (r - a) / f + 4, l *= 60), i[0] = ~~(l + 0.5), i[1] = ~~(u * 100 + 0.5), i[2] = ~~(d * 100 + 0.5)), n && i.length < 4 && (i[3] = 1), i;
|
|
@@ -26044,7 +26044,7 @@ var yr = {
|
|
|
26044
26044
|
return i + u[c];
|
|
26045
26045
|
}, dr = (function() {
|
|
26046
26046
|
var s = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", e;
|
|
26047
|
-
for (e in
|
|
26047
|
+
for (e in Yr)
|
|
26048
26048
|
s += "|" + e + "\\b";
|
|
26049
26049
|
return new RegExp(s + ")", "gi");
|
|
26050
26050
|
})(), wx = /hsl[a]?\(/, Rx = function(e) {
|
|
@@ -26247,7 +26247,7 @@ var Nx = function(e, t) {
|
|
|
26247
26247
|
}
|
|
26248
26248
|
return this._start;
|
|
26249
26249
|
}, e.endTime = function(n) {
|
|
26250
|
-
return this._start + (
|
|
26250
|
+
return this._start + (Yt(n) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
|
|
26251
26251
|
}, e.rawTime = function(n) {
|
|
26252
26252
|
var i = this.parent || this._dp;
|
|
26253
26253
|
return i ? n && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? pa(i.rawTime(n), this) : this._tTime : this._tTime;
|
|
@@ -26270,9 +26270,9 @@ var Nx = function(e, t) {
|
|
|
26270
26270
|
}, e.yoyo = function(n) {
|
|
26271
26271
|
return arguments.length ? (this._yoyo = n, this) : this._yoyo;
|
|
26272
26272
|
}, e.seek = function(n, i) {
|
|
26273
|
-
return this.totalTime(on(this, n),
|
|
26273
|
+
return this.totalTime(on(this, n), Yt(i));
|
|
26274
26274
|
}, e.restart = function(n, i) {
|
|
26275
|
-
return this.play().totalTime(n ? -this._delay : 0,
|
|
26275
|
+
return this.play().totalTime(n ? -this._delay : 0, Yt(i)), this._dur || (this._zTime = -at), this;
|
|
26276
26276
|
}, e.play = function(n, i) {
|
|
26277
26277
|
return n != null && this.seek(n, i), this.reversed(!1).paused(!1);
|
|
26278
26278
|
}, e.reverse = function(n, i) {
|
|
@@ -26328,7 +26328,7 @@ var Gt = /* @__PURE__ */ (function(s) {
|
|
|
26328
26328
|
Bh(e, s);
|
|
26329
26329
|
function e(n, i) {
|
|
26330
26330
|
var r;
|
|
26331
|
-
return n === void 0 && (n = {}), r = s.call(this, n) || this, r.labels = {}, r.smoothChildTiming = !!n.smoothChildTiming, r.autoRemoveChildren = !!n.autoRemoveChildren, r._sort =
|
|
26331
|
+
return n === void 0 && (n = {}), r = s.call(this, n) || this, r.labels = {}, r.smoothChildTiming = !!n.smoothChildTiming, r.autoRemoveChildren = !!n.autoRemoveChildren, r._sort = Yt(n.sortChildren), _t && Dn(n.parent || _t, Jn(r), i), n.reversed && r.reverse(), n.paused && r.paused(!0), n.scrollTrigger && td(Jn(r), n.scrollTrigger), r;
|
|
26332
26332
|
}
|
|
26333
26333
|
var t = e.prototype;
|
|
26334
26334
|
return t.to = function(i, r, a) {
|
|
@@ -26344,9 +26344,9 @@ var Gt = /* @__PURE__ */ (function(s) {
|
|
|
26344
26344
|
}, t.staggerTo = function(i, r, a, o, l, u, d) {
|
|
26345
26345
|
return a.duration = r, a.stagger = a.stagger || o, a.onComplete = u, a.onCompleteParams = d, a.parent = this, new Mt(i, a, on(this, l)), this;
|
|
26346
26346
|
}, t.staggerFrom = function(i, r, a, o, l, u, d) {
|
|
26347
|
-
return a.runBackwards = 1, $r(a).immediateRender =
|
|
26347
|
+
return a.runBackwards = 1, $r(a).immediateRender = Yt(a.immediateRender), this.staggerTo(i, r, a, o, l, u, d);
|
|
26348
26348
|
}, t.staggerFromTo = function(i, r, a, o, l, u, d, c) {
|
|
26349
|
-
return o.startAt = a, $r(o).immediateRender =
|
|
26349
|
+
return o.startAt = a, $r(o).immediateRender = Yt(o.immediateRender), this.staggerTo(i, r, o, l, u, d, c);
|
|
26350
26350
|
}, t.render = function(i, r, a) {
|
|
26351
26351
|
var o = this._time, l = this._dirty ? this.totalDuration() : this._tDur, u = this._dur, d = i <= 0 ? 0 : mt(i), c = this._zTime < 0 != i < 0 && (this._initted || !u), h, f, m, g, _, p, b, S, y, T, E, R;
|
|
26352
26352
|
if (this !== _t && d > l && i >= 0 && (d = l), d !== this._tTime || a || c) {
|
|
@@ -26504,7 +26504,7 @@ var Gt = /* @__PURE__ */ (function(s) {
|
|
|
26504
26504
|
}
|
|
26505
26505
|
return a._tDur;
|
|
26506
26506
|
}, e.updateRoot = function(i) {
|
|
26507
|
-
if (_t._ts && (Jh(_t, pa(i, _t)),
|
|
26507
|
+
if (_t._ts && (Jh(_t, pa(i, _t)), Yh = vn.frame), vn.frame >= ku) {
|
|
26508
26508
|
ku += yr.autoSleep || 120;
|
|
26509
26509
|
var r = _t._first;
|
|
26510
26510
|
if ((!r || !r._ts) && yr.autoSleep && vn._listeners.length < 2) {
|
|
@@ -26528,14 +26528,14 @@ var Fx = function(e, t, n, i, r, a, o) {
|
|
|
26528
26528
|
p: g || d === 1 ? g : ",",
|
|
26529
26529
|
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
26530
26530
|
s: _,
|
|
26531
|
-
c: m.charAt(1) === "=" ?
|
|
26531
|
+
c: m.charAt(1) === "=" ? Kh(_, m) - _ : parseFloat(m) - _,
|
|
26532
26532
|
m: f && f < 4 ? Math.round : 0
|
|
26533
26533
|
}, u = ho.lastIndex);
|
|
26534
26534
|
return l.c = u < i.length ? i.substring(u, i.length) : "", l.fp = o, (ix.test(i) || p) && (l.e = 0), this._pt = l, l;
|
|
26535
26535
|
}, dl = function(e, t, n, i, r, a, o, l, u, d) {
|
|
26536
26536
|
xt(i) && (i = i(r || 0, e, a));
|
|
26537
26537
|
var c = e[t], h = n !== "get" ? n : xt(c) ? u ? e[t.indexOf("set") || !xt(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](u) : e[t]() : c, f = xt(c) ? u ? Hx : xd : pl, m;
|
|
26538
|
-
if (Ot(i) && (~i.indexOf("random(") && (i = hl(i)), i.charAt(1) === "=" && (m =
|
|
26538
|
+
if (Ot(i) && (~i.indexOf("random(") && (i = hl(i)), i.charAt(1) === "=" && (m = Kh(h, i) + (xi(h) || 0), (m || m === 0) && (i = m))), !d || h !== i || wc)
|
|
26539
26539
|
return !isNaN(h * i) && i !== "" ? (m = new Ir(this._pt, e, t, +h || 0, i - (h || 0), typeof c == "boolean" ? Vx : Sd, 0, f), u && (m.fp = u), o && m.modifier(o, this, e), this._pt = m) : (!c && !(t in e) && jh(t, i), Fx.call(this, e, t, h, i, f, l || yr.stringFilter, u));
|
|
26540
26540
|
}, Ux = function(e, t, n, i, r) {
|
|
26541
26541
|
if (xt(e) && (e = ts(e, r, t, n, i)), !zn(e) || e.style && e.nodeType || Ut(e) || Gh(e))
|
|
@@ -26559,7 +26559,7 @@ var Fx = function(e, t, n, i, r, a, o) {
|
|
|
26559
26559
|
overwrite: !1,
|
|
26560
26560
|
parent: p,
|
|
26561
26561
|
immediateRender: !0,
|
|
26562
|
-
lazy: !g &&
|
|
26562
|
+
lazy: !g && Yt(l),
|
|
26563
26563
|
startAt: null,
|
|
26564
26564
|
delay: 0,
|
|
26565
26565
|
onUpdate: u && function() {
|
|
@@ -26575,7 +26575,7 @@ var Fx = function(e, t, n, i, r, a, o) {
|
|
|
26575
26575
|
overwrite: !1,
|
|
26576
26576
|
data: "isFromStart",
|
|
26577
26577
|
//we tag the tween with as "isFromStart" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a "from()" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:"height", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.
|
|
26578
|
-
lazy: o && !g &&
|
|
26578
|
+
lazy: o && !g && Yt(l),
|
|
26579
26579
|
immediateRender: o,
|
|
26580
26580
|
//zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)
|
|
26581
26581
|
stagger: 0,
|
|
@@ -26586,7 +26586,7 @@ var Fx = function(e, t, n, i, r, a, o) {
|
|
|
26586
26586
|
else if (!t)
|
|
26587
26587
|
return;
|
|
26588
26588
|
}
|
|
26589
|
-
for (e._pt = e._ptCache = 0, l = m &&
|
|
26589
|
+
for (e._pt = e._ptCache = 0, l = m && Yt(l) || l && !m, E = 0; E < _.length; E++) {
|
|
26590
26590
|
if (v = _[E], C = v._gsap || ll(_)[E]._gsap, e._ptLookup[E] = z = {}, Sc[C.id] && gi.length && da(), X = b === _ ? E : b.indexOf(v), k && (F = new k()).init(v, G || T, e, X, b) !== !1 && (e._pt = I = new Ir(e._pt, v, F.name, 0, 1, F.render, F, 0, F.priority), F._props.forEach(function(J) {
|
|
26591
26591
|
z[J] = I;
|
|
26592
26592
|
}), F.priority && (A = 1)), !k || G)
|
|
@@ -26594,7 +26594,7 @@ var Fx = function(e, t, n, i, r, a, o) {
|
|
|
26594
26594
|
ln[R] && (F = Ox(R, T, e, X, v, b)) ? F.priority && (A = 1) : z[R] = I = dl.call(e, v, R, "get", T[R], X, b, 0, i.stringFilter);
|
|
26595
26595
|
e._op && e._op[E] && e.kill(v, e._op[E]), S && e._pt && (_i = e, _t.killTweensOf(v, z, e.globalTime(t)), V = !e.parent, _i = 0), e._pt && l && (Sc[C.id] = 1);
|
|
26596
26596
|
}
|
|
26597
|
-
A &&
|
|
26597
|
+
A && Yx(e), e._onInit && e._onInit(e);
|
|
26598
26598
|
}
|
|
26599
26599
|
e._onUpdate = u, e._initted = (!e._op || e._pt) && !V, h && t <= 0 && y.render(dn, !0, !0);
|
|
26600
26600
|
}, kx = function(e, t, n, i, r, a, o, l) {
|
|
@@ -26690,7 +26690,7 @@ var Mt = /* @__PURE__ */ (function(s) {
|
|
|
26690
26690
|
u || o.duration(u = y.duration());
|
|
26691
26691
|
} else
|
|
26692
26692
|
o.timeline = 0;
|
|
26693
|
-
return f === !0 && !rl && (_i = Jn(o), _t.killTweensOf(S), _i = 0), Dn(b, Jn(o), r), i.reversed && o.reverse(), i.paused && o.paused(!0), (c || !u && !m && o._start === mt(b._time) &&
|
|
26693
|
+
return f === !0 && !rl && (_i = Jn(o), _t.killTweensOf(S), _i = 0), Dn(b, Jn(o), r), i.reversed && o.reverse(), i.paused && o.paused(!0), (c || !u && !m && o._start === mt(b._time) && Yt(c) && px(Jn(o)) && b.data !== "nested") && (o._tTime = -at, o.render(Math.max(0, -d) || 0)), _ && td(Jn(o), _), o;
|
|
26694
26694
|
}
|
|
26695
26695
|
var t = e.prototype;
|
|
26696
26696
|
return t.render = function(i, r, a) {
|
|
@@ -26822,7 +26822,7 @@ var pl = function(e, t, n) {
|
|
|
26822
26822
|
return !n;
|
|
26823
26823
|
}, qx = function(e, t, n, i) {
|
|
26824
26824
|
i.mSet(e, t, i.m.call(i.tween, n, i.mt), i);
|
|
26825
|
-
},
|
|
26825
|
+
}, Yx = function(e) {
|
|
26826
26826
|
for (var t = e._pt, n, i, r, a; t; ) {
|
|
26827
26827
|
for (n = t._next, i = r; i && i.pr > t.pr; )
|
|
26828
26828
|
i = i._next;
|
|
@@ -26851,8 +26851,8 @@ _t = new Gt({
|
|
|
26851
26851
|
smoothChildTiming: !0
|
|
26852
26852
|
});
|
|
26853
26853
|
yr.stringFilter = Rx;
|
|
26854
|
-
var ki = [], ia = {},
|
|
26855
|
-
return (ia[e] ||
|
|
26854
|
+
var ki = [], ia = {}, Kx = [], Wu = 0, Jx = 0, go = function(e) {
|
|
26855
|
+
return (ia[e] || Kx).map(function(t) {
|
|
26856
26856
|
return t();
|
|
26857
26857
|
});
|
|
26858
26858
|
}, Rc = function() {
|
|
@@ -27020,7 +27020,7 @@ var ki = [], ia = {}, Yx = [], Wu = 0, Jx = 0, go = function(e) {
|
|
|
27020
27020
|
exportRoot: function(e, t) {
|
|
27021
27021
|
e === void 0 && (e = {});
|
|
27022
27022
|
var n = new Gt(e), i, r;
|
|
27023
|
-
for (n.smoothChildTiming =
|
|
27023
|
+
for (n.smoothChildTiming = Yt(e.smoothChildTiming), _t.remove(n), n._dp = 0, n._time = n._tTime = _t._time, i = _t._first; i; )
|
|
27024
27024
|
r = i._next, (t || !(!i._dur && i instanceof Mt && i.vars.onComplete === i._targets[0])) && Dn(n, i, i._start - i._delay), i = r;
|
|
27025
27025
|
return Dn(_t, n, 0), n;
|
|
27026
27026
|
},
|
|
@@ -27925,10 +27925,10 @@ const cn = {
|
|
|
27925
27925
|
9728: Tt,
|
|
27926
27926
|
9729: At,
|
|
27927
27927
|
9984: sh,
|
|
27928
|
-
9985:
|
|
27928
|
+
9985: Ks,
|
|
27929
27929
|
9986: Xr,
|
|
27930
27930
|
9987: Zn
|
|
27931
|
-
},
|
|
27931
|
+
}, Yu = {
|
|
27932
27932
|
33071: Nn,
|
|
27933
27933
|
33648: ra,
|
|
27934
27934
|
10497: Ft
|
|
@@ -28324,7 +28324,7 @@ class Dv {
|
|
|
28324
28324
|
if (f && f !== c) {
|
|
28325
28325
|
const p = Math.floor(h / f), b = "InterleavedBuffer:" + i.bufferView + ":" + i.componentType + ":" + p + ":" + i.count;
|
|
28326
28326
|
let S = t.cache.get(b);
|
|
28327
|
-
S || (g = new u(o, p * f, i.count * f / d), S = new ap(g, f / d), t.cache.add(b, S)), _ = new
|
|
28327
|
+
S || (g = new u(o, p * f, i.count * f / d), S = new ap(g, f / d), t.cache.add(b, S)), _ = new Kc(S, l, h % f / d, m);
|
|
28328
28328
|
} else
|
|
28329
28329
|
o === null ? g = new u(i.count * l) : g = new u(o, h, i.count * l), _ = new Vt(g, l, m);
|
|
28330
28330
|
if (i.sparse !== void 0) {
|
|
@@ -28362,7 +28362,7 @@ class Dv {
|
|
|
28362
28362
|
const u = this.loadImageSource(t, n).then(function(d) {
|
|
28363
28363
|
d.flipY = !1, d.name = a.name || o.name || "", d.name === "" && typeof o.uri == "string" && o.uri.startsWith("data:image/") === !1 && (d.name = o.uri);
|
|
28364
28364
|
const h = (r.samplers || {})[a.sampler] || {};
|
|
28365
|
-
return d.magFilter = qu[h.magFilter] || At, d.minFilter = qu[h.minFilter] || Zn, d.wrapS =
|
|
28365
|
+
return d.magFilter = qu[h.magFilter] || At, d.minFilter = qu[h.minFilter] || Zn, d.wrapS = Yu[h.wrapS] || Ft, d.wrapT = Yu[h.wrapT] || Ft, d.generateMipmaps = !d.isCompressedTexture && d.minFilter !== Tt && d.minFilter !== At, i.associations.set(d, { textures: e }), d;
|
|
28366
28366
|
}).catch(function() {
|
|
28367
28367
|
return null;
|
|
28368
28368
|
});
|
|
@@ -28504,7 +28504,7 @@ class Dv {
|
|
|
28504
28504
|
* @return {string}
|
|
28505
28505
|
*/
|
|
28506
28506
|
createUniqueName(e) {
|
|
28507
|
-
const t =
|
|
28507
|
+
const t = Ke.sanitizeNodeName(e || "");
|
|
28508
28508
|
return t in this.nodeNamesUsed ? t + "_" + ++this.nodeNamesUsed[t] : (this.nodeNamesUsed[t] = 0, t);
|
|
28509
28509
|
}
|
|
28510
28510
|
/**
|
|
@@ -28520,7 +28520,7 @@ class Dv {
|
|
|
28520
28520
|
const t = this, n = this.extensions, i = this.primitiveCache;
|
|
28521
28521
|
function r(o) {
|
|
28522
28522
|
return n[He.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(o, t).then(function(l) {
|
|
28523
|
-
return
|
|
28523
|
+
return Ku(l, o, t);
|
|
28524
28524
|
});
|
|
28525
28525
|
}
|
|
28526
28526
|
const a = [];
|
|
@@ -28530,7 +28530,7 @@ class Dv {
|
|
|
28530
28530
|
a.push(c.promise);
|
|
28531
28531
|
else {
|
|
28532
28532
|
let h;
|
|
28533
|
-
u.extensions && u.extensions[He.KHR_DRACO_MESH_COMPRESSION] ? h = r(u) : h =
|
|
28533
|
+
u.extensions && u.extensions[He.KHR_DRACO_MESH_COMPRESSION] ? h = r(u) : h = Ku(new pn(), u, t), i[d] = { primitive: u, promise: h }, a.push(h);
|
|
28534
28534
|
}
|
|
28535
28535
|
}
|
|
28536
28536
|
return Promise.all(a);
|
|
@@ -28555,7 +28555,7 @@ class Dv {
|
|
|
28555
28555
|
let p;
|
|
28556
28556
|
const b = u[f];
|
|
28557
28557
|
if (_.mode === cn.TRIANGLES || _.mode === cn.TRIANGLE_STRIP || _.mode === cn.TRIANGLE_FAN || _.mode === void 0)
|
|
28558
|
-
p = r.isSkinnedMesh === !0 ? new cp(g, b) : new
|
|
28558
|
+
p = r.isSkinnedMesh === !0 ? new cp(g, b) : new Kt(g, b), p.isSkinnedMesh === !0 && p.normalizeSkinWeights(), _.mode === cn.TRIANGLE_STRIP ? p.geometry = Xu(p.geometry, fh) : _.mode === cn.TRIANGLE_FAN && (p.geometry = Xu(p.geometry, hc));
|
|
28559
28559
|
else if (_.mode === cn.LINES)
|
|
28560
28560
|
p = new mp(g, b);
|
|
28561
28561
|
else if (_.mode === cn.LINE_STRIP)
|
|
@@ -28847,7 +28847,7 @@ function Nv(s, e, t) {
|
|
|
28847
28847
|
const a = new Hn();
|
|
28848
28848
|
i.getCenter(a.center), a.radius = i.min.distanceTo(i.max) / 2, s.boundingSphere = a;
|
|
28849
28849
|
}
|
|
28850
|
-
function
|
|
28850
|
+
function Ku(s, e, t) {
|
|
28851
28851
|
const n = e.attributes, i = [];
|
|
28852
28852
|
function r(a, o) {
|
|
28853
28853
|
return t.getDependency("accessor", a).then(function(l) {
|
|
@@ -29425,10 +29425,10 @@ const Wv = [
|
|
|
29425
29425
|
function Xv(s) {
|
|
29426
29426
|
return Wv.filter((e) => !s[e]);
|
|
29427
29427
|
}
|
|
29428
|
-
const jv = 1, qv = 5922928,
|
|
29428
|
+
const jv = 1, qv = 5922928, Yv = 4, Kv = 16773858, Jv = 3.2, Zv = 9357055, Qv = 2, $v = [-120, 150, -130], eS = 16775149, tS = 9e4, nS = 300, iS = 0.52, rS = 0.88, sS = 2, aS = [20, 190, 135], oS = 120, cS = 14674431, lS = 6968672, uS = 0.7, hS = 1e3;
|
|
29429
29429
|
class fS extends EventTarget {
|
|
29430
29430
|
constructor(e, t, n) {
|
|
29431
|
-
super(), this.canvas = e, this.videoContainer = t, this.api = n, this.renderer = new
|
|
29431
|
+
super(), this.canvas = e, this.videoContainer = t, this.api = n, this.renderer = new Y0({
|
|
29432
29432
|
canvas: this.canvas,
|
|
29433
29433
|
antialias: !0,
|
|
29434
29434
|
powerPreference: "high-performance",
|
|
@@ -29465,9 +29465,9 @@ class fS extends EventTarget {
|
|
|
29465
29465
|
fov: 50
|
|
29466
29466
|
},
|
|
29467
29467
|
compactAssistant: {
|
|
29468
|
-
position: new U(0,
|
|
29469
|
-
lookAt: new U(-7,
|
|
29470
|
-
fov:
|
|
29468
|
+
position: new U(0, 140, 200),
|
|
29469
|
+
lookAt: new U(-7, 122, 0),
|
|
29470
|
+
fov: 32
|
|
29471
29471
|
},
|
|
29472
29472
|
video: {
|
|
29473
29473
|
position: new U(0, 125, 200),
|
|
@@ -29476,6 +29476,8 @@ class fS extends EventTarget {
|
|
|
29476
29476
|
}
|
|
29477
29477
|
};
|
|
29478
29478
|
framingMode = "default";
|
|
29479
|
+
model;
|
|
29480
|
+
rotationYaw = 0;
|
|
29479
29481
|
locale;
|
|
29480
29482
|
animationFrame = null;
|
|
29481
29483
|
renderingEnabled = !0;
|
|
@@ -29503,8 +29505,8 @@ class fS extends EventTarget {
|
|
|
29503
29505
|
t.catch(() => {
|
|
29504
29506
|
}), this.textureLoader = new Lh(this.loadingManager), this.initSounds("en");
|
|
29505
29507
|
const n = new sp();
|
|
29506
|
-
this.scene = n, this.lightAmbient = new Up(qv,
|
|
29507
|
-
const i = 1024, r = new _c(
|
|
29508
|
+
this.scene = n, this.lightAmbient = new Up(qv, Yv), n.add(this.lightAmbient);
|
|
29509
|
+
const i = 1024, r = new _c(Kv, Jv);
|
|
29508
29510
|
r.position.set(50, 170, 50), r.target.position.set(0, 80, 0), r.castShadow = !0, this.lightDirectional = r, this.scene.add(this.lightDirectional), n.add(r.target), r.shadow.bias = -5e-4, r.shadow.normalBias = 0.1, r.shadow.mapSize.width = i, r.shadow.mapSize.height = i, r.shadow.camera.near = 30, r.shadow.camera.far = 230, r.shadow.camera.left = -50, r.shadow.camera.right = 50, r.shadow.camera.top = 75, r.shadow.camera.bottom = -70;
|
|
29509
29511
|
const a = new _c(Zv, Qv);
|
|
29510
29512
|
a.position.set(...$v), a.target.position.set(0, 80, 0), this.lightRim = a, n.add(this.lightRim), n.add(a.target);
|
|
@@ -29585,8 +29587,8 @@ class fS extends EventTarget {
|
|
|
29585
29587
|
this.api.resolveAssetPath("models/female_rig.glb"),
|
|
29586
29588
|
async (C) => {
|
|
29587
29589
|
const k = C.scene;
|
|
29588
|
-
n.add(k), k.traverse((X) => {
|
|
29589
|
-
X instanceof
|
|
29590
|
+
this.model = k, k.rotation.y = this.rotationYaw, n.add(k), k.traverse((X) => {
|
|
29591
|
+
X instanceof Kt && (X.castShadow = !0, X.receiveShadow = !0);
|
|
29590
29592
|
});
|
|
29591
29593
|
const F = Vv(k), z = Xv(F);
|
|
29592
29594
|
if (z.length > 0)
|
|
@@ -29689,6 +29691,9 @@ class fS extends EventTarget {
|
|
|
29689
29691
|
const t = e === "chat-surface" ? this.cameraParams.chatSurface : e === "compact-assistant" ? this.cameraParams.compactAssistant : this.cameraParams.default, n = window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1;
|
|
29690
29692
|
this.setCamera(t, void 0, n ? 0 : 0.28);
|
|
29691
29693
|
}
|
|
29694
|
+
setRotationYaw(e) {
|
|
29695
|
+
this.rotationYaw = e, this.model && (this.model.rotation.y = e);
|
|
29696
|
+
}
|
|
29692
29697
|
width = 0;
|
|
29693
29698
|
height = 0;
|
|
29694
29699
|
onResize = (e, t) => {
|