vis-core 0.28.0-beta.3 → 0.28.0-beta.5
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/editor/command/Commands.d.ts +2 -0
- package/dist/editor/command/CopyMaterial.d.ts +12 -0
- package/dist/editor/command/SetObjectMaterial.d.ts +14 -0
- package/dist/editor/index.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -13
- package/dist/index.module.js +624 -492
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.module.js
CHANGED
|
@@ -12,7 +12,7 @@ var Gn = (m, t) => (t = Symbol[m]) ? t : Symbol.for("Symbol." + m), An = (m) =>
|
|
|
12
12
|
kn.call(t, r) && Zn(m, r, t[r]);
|
|
13
13
|
return m;
|
|
14
14
|
}, Ui = (m, t) => In(m, zn(t));
|
|
15
|
-
var
|
|
15
|
+
var T0 = (m, t, r) => Zn(m, typeof t != "symbol" ? t + "" : t, r);
|
|
16
16
|
var fn = (m, t, r) => Kn(Nn(m), r, t);
|
|
17
17
|
var U0 = (m, t, r) => new Promise((d, g) => {
|
|
18
18
|
var v = (I) => {
|
|
@@ -88,7 +88,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
|
|
|
88
88
|
).toString(CryptoJS.enc.Utf8), Pe = JSON.parse(Se), Ne = Date.now();
|
|
89
89
|
return !Pe.s || Pe.s > Ne ? (this.token = void 0, "") : Pe.e && Pe.e < Ne ? (this.token = void 0, "") : (Pe.isValid = O, Pe);
|
|
90
90
|
}
|
|
91
|
-
}, version = "0.28.0-beta.
|
|
91
|
+
}, version = "0.28.0-beta.5";
|
|
92
92
|
/**
|
|
93
93
|
* @license
|
|
94
94
|
* Copyright 2010-2025 Three.js Authors
|
|
@@ -14010,17 +14010,17 @@ class ExtrudeGeometry extends BufferGeometry {
|
|
|
14010
14010
|
const O0 = 10000000000000001e-36;
|
|
14011
14011
|
let J0 = h0[0];
|
|
14012
14012
|
for (let A0 = 1; A0 <= h0.length; A0++) {
|
|
14013
|
-
const N0 = A0 % h0.length,
|
|
14014
|
-
Math.abs(
|
|
14015
|
-
Math.abs(
|
|
14013
|
+
const N0 = A0 % h0.length, _0 = h0[N0], a0 = _0.x - J0.x, s0 = _0.y - J0.y, v0 = a0 * a0 + s0 * s0, C0 = Math.max(
|
|
14014
|
+
Math.abs(_0.x),
|
|
14015
|
+
Math.abs(_0.y),
|
|
14016
14016
|
Math.abs(J0.x),
|
|
14017
14017
|
Math.abs(J0.y)
|
|
14018
|
-
), E0 = O0 *
|
|
14018
|
+
), E0 = O0 * C0 * C0;
|
|
14019
14019
|
if (v0 <= E0) {
|
|
14020
14020
|
h0.splice(N0, 1), A0--;
|
|
14021
14021
|
continue;
|
|
14022
14022
|
}
|
|
14023
|
-
J0 =
|
|
14023
|
+
J0 = _0;
|
|
14024
14024
|
}
|
|
14025
14025
|
}
|
|
14026
14026
|
r0(kt), Kt.forEach(r0);
|
|
@@ -14035,17 +14035,17 @@ class ExtrudeGeometry extends BufferGeometry {
|
|
|
14035
14035
|
const e0 = kt.length;
|
|
14036
14036
|
function Yt(h0, xi, O0) {
|
|
14037
14037
|
let J0, A0, N0;
|
|
14038
|
-
const
|
|
14038
|
+
const _0 = h0.x - xi.x, a0 = h0.y - xi.y, s0 = O0.x - h0.x, v0 = O0.y - h0.y, C0 = _0 * _0 + a0 * a0, E0 = _0 * v0 - a0 * s0;
|
|
14039
14039
|
if (Math.abs(E0) > Number.EPSILON) {
|
|
14040
|
-
const w0 = Math.sqrt(
|
|
14041
|
-
J0 = ui +
|
|
14040
|
+
const w0 = Math.sqrt(C0), vi = Math.sqrt(s0 * s0 + v0 * v0), ui = xi.x - a0 / w0, Ci = xi.y + _0 / w0, Ei = O0.x - v0 / vi, j0 = O0.y + s0 / vi, Xi = ((Ei - ui) * v0 - (j0 - Ci) * s0) / (_0 * v0 - a0 * s0);
|
|
14041
|
+
J0 = ui + _0 * Xi - h0.x, A0 = Ci + a0 * Xi - h0.y;
|
|
14042
14042
|
const wi = J0 * J0 + A0 * A0;
|
|
14043
14043
|
if (wi <= 2)
|
|
14044
14044
|
return new Vector2(J0, A0);
|
|
14045
14045
|
N0 = Math.sqrt(wi / 2);
|
|
14046
14046
|
} else {
|
|
14047
14047
|
let w0 = !1;
|
|
14048
|
-
|
|
14048
|
+
_0 > Number.EPSILON ? s0 > Number.EPSILON && (w0 = !0) : _0 < -Number.EPSILON ? s0 < -Number.EPSILON && (w0 = !0) : Math.sign(a0) === Math.sign(v0) && (w0 = !0), w0 ? (J0 = -a0, A0 = _0, N0 = Math.sqrt(C0)) : (J0 = _0, A0 = a0, N0 = Math.sqrt(C0 / 2));
|
|
14049
14049
|
}
|
|
14050
14050
|
return new Vector2(J0 / N0, A0 / N0);
|
|
14051
14051
|
}
|
|
@@ -14057,8 +14057,8 @@ class ExtrudeGeometry extends BufferGeometry {
|
|
|
14057
14057
|
for (let h0 = 0, xi = l0; h0 < xi; h0++) {
|
|
14058
14058
|
const O0 = Kt[h0];
|
|
14059
14059
|
f0 = [];
|
|
14060
|
-
for (let J0 = 0, A0 = O0.length, N0 = A0 - 1,
|
|
14061
|
-
N0 === A0 && (N0 = 0),
|
|
14060
|
+
for (let J0 = 0, A0 = O0.length, N0 = A0 - 1, _0 = J0 + 1; J0 < A0; J0++, N0++, _0++)
|
|
14061
|
+
N0 === A0 && (N0 = 0), _0 === A0 && (_0 = 0), f0[J0] = Yt(O0[J0], O0[N0], O0[_0]);
|
|
14062
14062
|
b0.push(f0), P0 = P0.concat(f0);
|
|
14063
14063
|
}
|
|
14064
14064
|
let q0;
|
|
@@ -14068,16 +14068,16 @@ class ExtrudeGeometry extends BufferGeometry {
|
|
|
14068
14068
|
const h0 = [], xi = [];
|
|
14069
14069
|
for (let O0 = 0; O0 < He; O0++) {
|
|
14070
14070
|
const J0 = O0 / He, A0 = Ne * Math.cos(J0 * Math.PI / 2), N0 = ke * Math.sin(J0 * Math.PI / 2) + ht;
|
|
14071
|
-
for (let
|
|
14072
|
-
const s0 = Ut(n0[
|
|
14071
|
+
for (let _0 = 0, a0 = n0.length; _0 < a0; _0++) {
|
|
14072
|
+
const s0 = Ut(n0[_0], o0[_0], N0);
|
|
14073
14073
|
Ti(s0.x, s0.y, -A0), J0 === 0 && h0.push(s0);
|
|
14074
14074
|
}
|
|
14075
|
-
for (let
|
|
14076
|
-
const s0 = Kt[
|
|
14077
|
-
f0 = b0[
|
|
14075
|
+
for (let _0 = 0, a0 = l0; _0 < a0; _0++) {
|
|
14076
|
+
const s0 = Kt[_0];
|
|
14077
|
+
f0 = b0[_0];
|
|
14078
14078
|
const v0 = [];
|
|
14079
|
-
for (let
|
|
14080
|
-
const w0 = Ut(s0[
|
|
14079
|
+
for (let C0 = 0, E0 = s0.length; C0 < E0; C0++) {
|
|
14080
|
+
const w0 = Ut(s0[C0], f0[C0], N0);
|
|
14081
14081
|
Ti(w0.x, w0.y, -A0), J0 === 0 && v0.push(w0);
|
|
14082
14082
|
}
|
|
14083
14083
|
J0 === 0 && xi.push(v0);
|
|
@@ -14098,14 +14098,14 @@ class ExtrudeGeometry extends BufferGeometry {
|
|
|
14098
14098
|
for (let h0 = He - 1; h0 >= 0; h0--) {
|
|
14099
14099
|
const xi = h0 / He, O0 = Ne * Math.cos(xi * Math.PI / 2), J0 = ke * Math.sin(xi * Math.PI / 2) + ht;
|
|
14100
14100
|
for (let A0 = 0, N0 = n0.length; A0 < N0; A0++) {
|
|
14101
|
-
const
|
|
14102
|
-
Ti(
|
|
14101
|
+
const _0 = Ut(n0[A0], o0[A0], J0);
|
|
14102
|
+
Ti(_0.x, _0.y, Se + O0);
|
|
14103
14103
|
}
|
|
14104
14104
|
for (let A0 = 0, N0 = Kt.length; A0 < N0; A0++) {
|
|
14105
|
-
const
|
|
14105
|
+
const _0 = Kt[A0];
|
|
14106
14106
|
f0 = b0[A0];
|
|
14107
|
-
for (let a0 = 0, s0 =
|
|
14108
|
-
const v0 = Ut(
|
|
14107
|
+
for (let a0 = 0, s0 = _0.length; a0 < s0; a0++) {
|
|
14108
|
+
const v0 = Ut(_0[a0], f0[a0], J0);
|
|
14109
14109
|
xt ? Ti(v0.x, v0.y + ct[ye - 1].y, ct[ye - 1].x + O0) : Ti(v0.x, v0.y, Se + O0);
|
|
14110
14110
|
}
|
|
14111
14111
|
}
|
|
@@ -14152,9 +14152,9 @@ class ExtrudeGeometry extends BufferGeometry {
|
|
|
14152
14152
|
const J0 = O0;
|
|
14153
14153
|
let A0 = O0 - 1;
|
|
14154
14154
|
A0 < 0 && (A0 = h0.length - 1);
|
|
14155
|
-
for (let N0 = 0,
|
|
14156
|
-
const a0 = e0 * N0, s0 = e0 * (N0 + 1), v0 = xi + J0 + a0,
|
|
14157
|
-
Fi(v0,
|
|
14155
|
+
for (let N0 = 0, _0 = ye + He * 2; N0 < _0; N0++) {
|
|
14156
|
+
const a0 = e0 * N0, s0 = e0 * (N0 + 1), v0 = xi + J0 + a0, C0 = xi + A0 + a0, E0 = xi + A0 + s0, w0 = xi + J0 + s0;
|
|
14157
|
+
Fi(v0, C0, E0, w0);
|
|
14158
14158
|
}
|
|
14159
14159
|
}
|
|
14160
14160
|
}
|
|
@@ -28598,7 +28598,7 @@ function WebGLPrograms(m, t, r, d, g, v, C) {
|
|
|
28598
28598
|
q0 = ji.vertexShader, G0 = ji.fragmentShader;
|
|
28599
28599
|
} else
|
|
28600
28600
|
q0 = Ft.vertexShader, G0 = Ft.fragmentShader, I.update(Ft), I0 = I.getVertexShaderID(Ft), F0 = I.getFragmentShaderID(Ft);
|
|
28601
|
-
const D0 = m.getRenderTarget(), Si = m.state.buffers.depth.getReversed(), Ti = r0.isInstancedMesh === !0, Mi = r0.isBatchedMesh === !0, Fi = !!Ft.map, Ni = !!Ft.matcap, B0 = !!e0, h0 = !!Ft.aoMap, xi = !!Ft.lightMap, O0 = !!Ft.bumpMap, J0 = !!Ft.normalMap, A0 = !!Ft.displacementMap, N0 = !!Ft.emissiveMap,
|
|
28601
|
+
const D0 = m.getRenderTarget(), Si = m.state.buffers.depth.getReversed(), Ti = r0.isInstancedMesh === !0, Mi = r0.isBatchedMesh === !0, Fi = !!Ft.map, Ni = !!Ft.matcap, B0 = !!e0, h0 = !!Ft.aoMap, xi = !!Ft.lightMap, O0 = !!Ft.bumpMap, J0 = !!Ft.normalMap, A0 = !!Ft.displacementMap, N0 = !!Ft.emissiveMap, _0 = !!Ft.metalnessMap, a0 = !!Ft.roughnessMap, s0 = Ft.anisotropy > 0, v0 = Ft.clearcoat > 0, C0 = Ft.dispersion > 0, E0 = Ft.iridescence > 0, w0 = Ft.sheen > 0, vi = Ft.transmission > 0, ui = s0 && !!Ft.anisotropyMap, Ci = v0 && !!Ft.clearcoatMap, Ei = v0 && !!Ft.clearcoatNormalMap, j0 = v0 && !!Ft.clearcoatRoughnessMap, Xi = E0 && !!Ft.iridescenceMap, wi = E0 && !!Ft.iridescenceThicknessMap, Ii = w0 && !!Ft.sheenColorMap, Zi = w0 && !!Ft.sheenRoughnessMap, Yi = !!Ft.specularMap, zi = !!Ft.specularColorMap, Ki = !!Ft.specularIntensityMap, L0 = vi && !!Ft.transmissionMap, k0 = vi && !!Ft.thicknessMap, K0 = !!Ft.gradientMap, bi = !!Ft.alphaMap, Ri = Ft.alphaTest > 0, _i = !!Ft.alphaHash, Bi = !!Ft.extensions;
|
|
28602
28602
|
let qi = NoToneMapping;
|
|
28603
28603
|
Ft.toneMapped && (D0 === null || D0.isXRRenderTarget === !0) && (qi = m.toneMapping);
|
|
28604
28604
|
const sn = {
|
|
@@ -28634,7 +28634,7 @@ function WebGLPrograms(m, t, r, d, g, v, C) {
|
|
|
28634
28634
|
emissiveMap: N0,
|
|
28635
28635
|
normalMapObjectSpace: J0 && Ft.normalMapType === ObjectSpaceNormalMap,
|
|
28636
28636
|
normalMapTangentSpace: J0 && Ft.normalMapType === TangentSpaceNormalMap,
|
|
28637
|
-
metalnessMap:
|
|
28637
|
+
metalnessMap: _0,
|
|
28638
28638
|
roughnessMap: a0,
|
|
28639
28639
|
anisotropy: s0,
|
|
28640
28640
|
anisotropyMap: ui,
|
|
@@ -28642,7 +28642,7 @@ function WebGLPrograms(m, t, r, d, g, v, C) {
|
|
|
28642
28642
|
clearcoatMap: Ci,
|
|
28643
28643
|
clearcoatNormalMap: Ei,
|
|
28644
28644
|
clearcoatRoughnessMap: j0,
|
|
28645
|
-
dispersion:
|
|
28645
|
+
dispersion: C0,
|
|
28646
28646
|
iridescence: E0,
|
|
28647
28647
|
iridescenceMap: Xi,
|
|
28648
28648
|
iridescenceThicknessMap: wi,
|
|
@@ -28669,7 +28669,7 @@ function WebGLPrograms(m, t, r, d, g, v, C) {
|
|
|
28669
28669
|
normalMapUv: J0 && ht(Ft.normalMap.channel),
|
|
28670
28670
|
displacementMapUv: A0 && ht(Ft.displacementMap.channel),
|
|
28671
28671
|
emissiveMapUv: N0 && ht(Ft.emissiveMap.channel),
|
|
28672
|
-
metalnessMapUv:
|
|
28672
|
+
metalnessMapUv: _0 && ht(Ft.metalnessMap.channel),
|
|
28673
28673
|
roughnessMapUv: a0 && ht(Ft.roughnessMap.channel),
|
|
28674
28674
|
anisotropyMapUv: ui && ht(Ft.anisotropyMap.channel),
|
|
28675
28675
|
clearcoatMapUv: Ci && ht(Ft.clearcoatMap.channel),
|
|
@@ -29548,7 +29548,7 @@ function WebGLState(m, t) {
|
|
|
29548
29548
|
function N0(L0, k0, K0) {
|
|
29549
29549
|
L0 ? (D0(m.POLYGON_OFFSET_FILL), (r0 !== k0 || l0 !== K0) && (m.polygonOffset(k0, K0), r0 = k0, l0 = K0)) : Si(m.POLYGON_OFFSET_FILL);
|
|
29550
29550
|
}
|
|
29551
|
-
function
|
|
29551
|
+
function _0(L0) {
|
|
29552
29552
|
L0 ? D0(m.SCISSOR_TEST) : Si(m.SCISSOR_TEST);
|
|
29553
29553
|
}
|
|
29554
29554
|
function a0(L0) {
|
|
@@ -29563,7 +29563,7 @@ function WebGLState(m, t) {
|
|
|
29563
29563
|
const L0 = b0[o0];
|
|
29564
29564
|
L0 !== void 0 && L0.type !== void 0 && (m.bindTexture(L0.type, null), L0.type = void 0, L0.texture = void 0);
|
|
29565
29565
|
}
|
|
29566
|
-
function
|
|
29566
|
+
function C0() {
|
|
29567
29567
|
try {
|
|
29568
29568
|
m.compressedTexImage2D(...arguments);
|
|
29569
29569
|
} catch (L0) {
|
|
@@ -29669,11 +29669,11 @@ function WebGLState(m, t) {
|
|
|
29669
29669
|
setCullFace: J0,
|
|
29670
29670
|
setLineWidth: A0,
|
|
29671
29671
|
setPolygonOffset: N0,
|
|
29672
|
-
setScissorTest:
|
|
29672
|
+
setScissorTest: _0,
|
|
29673
29673
|
activeTexture: a0,
|
|
29674
29674
|
bindTexture: s0,
|
|
29675
29675
|
unbindTexture: v0,
|
|
29676
|
-
compressedTexImage2D:
|
|
29676
|
+
compressedTexImage2D: C0,
|
|
29677
29677
|
compressedTexImage3D: E0,
|
|
29678
29678
|
texImage2D: Xi,
|
|
29679
29679
|
texImage3D: wi,
|
|
@@ -29706,11 +29706,11 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
29706
29706
|
) : createElementNS("canvas");
|
|
29707
29707
|
}
|
|
29708
29708
|
function ht(a0, s0, v0) {
|
|
29709
|
-
let
|
|
29710
|
-
const E0 =
|
|
29711
|
-
if ((E0.width > v0 || E0.height > v0) && (
|
|
29709
|
+
let C0 = 1;
|
|
29710
|
+
const E0 = _0(a0);
|
|
29711
|
+
if ((E0.width > v0 || E0.height > v0) && (C0 = v0 / Math.max(E0.width, E0.height)), C0 < 1)
|
|
29712
29712
|
if (typeof HTMLImageElement != "undefined" && a0 instanceof HTMLImageElement || typeof HTMLCanvasElement != "undefined" && a0 instanceof HTMLCanvasElement || typeof ImageBitmap != "undefined" && a0 instanceof ImageBitmap || typeof VideoFrame != "undefined" && a0 instanceof VideoFrame) {
|
|
29713
|
-
const w0 = Math.floor(
|
|
29713
|
+
const w0 = Math.floor(C0 * E0.width), vi = Math.floor(C0 * E0.height);
|
|
29714
29714
|
Se === void 0 && (Se = ke(w0, vi));
|
|
29715
29715
|
const ui = s0 ? ke(w0, vi) : Se;
|
|
29716
29716
|
return ui.width = w0, ui.height = vi, ui.getContext("2d").drawImage(a0, 0, 0, w0, vi), console.warn("THREE.WebGLRenderer: Texture has been resized from (" + E0.width + "x" + E0.height + ") to (" + w0 + "x" + vi + ")."), ui;
|
|
@@ -29727,14 +29727,14 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
29727
29727
|
function at(a0) {
|
|
29728
29728
|
return a0.isWebGLCubeRenderTarget ? m.TEXTURE_CUBE_MAP : a0.isWebGL3DRenderTarget ? m.TEXTURE_3D : a0.isWebGLArrayRenderTarget || a0.isCompressedArrayTexture ? m.TEXTURE_2D_ARRAY : m.TEXTURE_2D;
|
|
29729
29729
|
}
|
|
29730
|
-
function ct(a0, s0, v0,
|
|
29730
|
+
function ct(a0, s0, v0, C0, E0 = !1) {
|
|
29731
29731
|
if (a0 !== null) {
|
|
29732
29732
|
if (m[a0] !== void 0) return m[a0];
|
|
29733
29733
|
console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '" + a0 + "'");
|
|
29734
29734
|
}
|
|
29735
29735
|
let w0 = s0;
|
|
29736
29736
|
if (s0 === m.RED && (v0 === m.FLOAT && (w0 = m.R32F), v0 === m.HALF_FLOAT && (w0 = m.R16F), v0 === m.UNSIGNED_BYTE && (w0 = m.R8)), s0 === m.RED_INTEGER && (v0 === m.UNSIGNED_BYTE && (w0 = m.R8UI), v0 === m.UNSIGNED_SHORT && (w0 = m.R16UI), v0 === m.UNSIGNED_INT && (w0 = m.R32UI), v0 === m.BYTE && (w0 = m.R8I), v0 === m.SHORT && (w0 = m.R16I), v0 === m.INT && (w0 = m.R32I)), s0 === m.RG && (v0 === m.FLOAT && (w0 = m.RG32F), v0 === m.HALF_FLOAT && (w0 = m.RG16F), v0 === m.UNSIGNED_BYTE && (w0 = m.RG8)), s0 === m.RG_INTEGER && (v0 === m.UNSIGNED_BYTE && (w0 = m.RG8UI), v0 === m.UNSIGNED_SHORT && (w0 = m.RG16UI), v0 === m.UNSIGNED_INT && (w0 = m.RG32UI), v0 === m.BYTE && (w0 = m.RG8I), v0 === m.SHORT && (w0 = m.RG16I), v0 === m.INT && (w0 = m.RG32I)), s0 === m.RGB_INTEGER && (v0 === m.UNSIGNED_BYTE && (w0 = m.RGB8UI), v0 === m.UNSIGNED_SHORT && (w0 = m.RGB16UI), v0 === m.UNSIGNED_INT && (w0 = m.RGB32UI), v0 === m.BYTE && (w0 = m.RGB8I), v0 === m.SHORT && (w0 = m.RGB16I), v0 === m.INT && (w0 = m.RGB32I)), s0 === m.RGBA_INTEGER && (v0 === m.UNSIGNED_BYTE && (w0 = m.RGBA8UI), v0 === m.UNSIGNED_SHORT && (w0 = m.RGBA16UI), v0 === m.UNSIGNED_INT && (w0 = m.RGBA32UI), v0 === m.BYTE && (w0 = m.RGBA8I), v0 === m.SHORT && (w0 = m.RGBA16I), v0 === m.INT && (w0 = m.RGBA32I)), s0 === m.RGB && v0 === m.UNSIGNED_INT_5_9_9_9_REV && (w0 = m.RGB9_E5), s0 === m.RGBA) {
|
|
29737
|
-
const vi = E0 ? LinearTransfer : ColorManagement.getTransfer(
|
|
29737
|
+
const vi = E0 ? LinearTransfer : ColorManagement.getTransfer(C0);
|
|
29738
29738
|
v0 === m.FLOAT && (w0 = m.RGBA32F), v0 === m.HALF_FLOAT && (w0 = m.RGBA16F), v0 === m.UNSIGNED_BYTE && (w0 = vi === SRGBTransfer ? m.SRGB8_ALPHA8 : m.RGBA8), v0 === m.UNSIGNED_SHORT_4_4_4_4 && (w0 = m.RGBA4), v0 === m.UNSIGNED_SHORT_5_5_5_1 && (w0 = m.RGB5_A1);
|
|
29739
29739
|
}
|
|
29740
29740
|
return (w0 === m.R16F || w0 === m.R32F || w0 === m.RG16F || w0 === m.RG32F || w0 === m.RGBA16F || w0 === m.RGBA32F) && t.get("EXT_color_buffer_float"), w0;
|
|
@@ -29757,43 +29757,43 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
29757
29757
|
function Pt(a0) {
|
|
29758
29758
|
const s0 = d.get(a0);
|
|
29759
29759
|
if (s0.__webglInit === void 0) return;
|
|
29760
|
-
const v0 = a0.source,
|
|
29761
|
-
if (
|
|
29762
|
-
const E0 =
|
|
29763
|
-
E0.usedTimes--, E0.usedTimes === 0 && Ft(a0), Object.keys(
|
|
29760
|
+
const v0 = a0.source, C0 = Pe.get(v0);
|
|
29761
|
+
if (C0) {
|
|
29762
|
+
const E0 = C0[s0.__cacheKey];
|
|
29763
|
+
E0.usedTimes--, E0.usedTimes === 0 && Ft(a0), Object.keys(C0).length === 0 && Pe.delete(v0);
|
|
29764
29764
|
}
|
|
29765
29765
|
d.remove(a0);
|
|
29766
29766
|
}
|
|
29767
29767
|
function Ft(a0) {
|
|
29768
29768
|
const s0 = d.get(a0);
|
|
29769
29769
|
m.deleteTexture(s0.__webglTexture);
|
|
29770
|
-
const v0 = a0.source,
|
|
29771
|
-
delete
|
|
29770
|
+
const v0 = a0.source, C0 = Pe.get(v0);
|
|
29771
|
+
delete C0[s0.__cacheKey], C.memory.textures--;
|
|
29772
29772
|
}
|
|
29773
29773
|
function kt(a0) {
|
|
29774
29774
|
const s0 = d.get(a0);
|
|
29775
29775
|
if (a0.depthTexture && (a0.depthTexture.dispose(), d.remove(a0.depthTexture)), a0.isWebGLCubeRenderTarget)
|
|
29776
|
-
for (let
|
|
29777
|
-
if (Array.isArray(s0.__webglFramebuffer[
|
|
29778
|
-
for (let E0 = 0; E0 < s0.__webglFramebuffer[
|
|
29776
|
+
for (let C0 = 0; C0 < 6; C0++) {
|
|
29777
|
+
if (Array.isArray(s0.__webglFramebuffer[C0]))
|
|
29778
|
+
for (let E0 = 0; E0 < s0.__webglFramebuffer[C0].length; E0++) m.deleteFramebuffer(s0.__webglFramebuffer[C0][E0]);
|
|
29779
29779
|
else
|
|
29780
|
-
m.deleteFramebuffer(s0.__webglFramebuffer[
|
|
29781
|
-
s0.__webglDepthbuffer && m.deleteRenderbuffer(s0.__webglDepthbuffer[
|
|
29780
|
+
m.deleteFramebuffer(s0.__webglFramebuffer[C0]);
|
|
29781
|
+
s0.__webglDepthbuffer && m.deleteRenderbuffer(s0.__webglDepthbuffer[C0]);
|
|
29782
29782
|
}
|
|
29783
29783
|
else {
|
|
29784
29784
|
if (Array.isArray(s0.__webglFramebuffer))
|
|
29785
|
-
for (let
|
|
29785
|
+
for (let C0 = 0; C0 < s0.__webglFramebuffer.length; C0++) m.deleteFramebuffer(s0.__webglFramebuffer[C0]);
|
|
29786
29786
|
else
|
|
29787
29787
|
m.deleteFramebuffer(s0.__webglFramebuffer);
|
|
29788
29788
|
if (s0.__webglDepthbuffer && m.deleteRenderbuffer(s0.__webglDepthbuffer), s0.__webglMultisampledFramebuffer && m.deleteFramebuffer(s0.__webglMultisampledFramebuffer), s0.__webglColorRenderbuffer)
|
|
29789
|
-
for (let
|
|
29790
|
-
s0.__webglColorRenderbuffer[
|
|
29789
|
+
for (let C0 = 0; C0 < s0.__webglColorRenderbuffer.length; C0++)
|
|
29790
|
+
s0.__webglColorRenderbuffer[C0] && m.deleteRenderbuffer(s0.__webglColorRenderbuffer[C0]);
|
|
29791
29791
|
s0.__webglDepthRenderbuffer && m.deleteRenderbuffer(s0.__webglDepthRenderbuffer);
|
|
29792
29792
|
}
|
|
29793
29793
|
const v0 = a0.textures;
|
|
29794
|
-
for (let
|
|
29795
|
-
const w0 = d.get(v0[
|
|
29796
|
-
w0.__webglTexture && (m.deleteTexture(w0.__webglTexture), C.memory.textures--), d.remove(v0[
|
|
29794
|
+
for (let C0 = 0, E0 = v0.length; C0 < E0; C0++) {
|
|
29795
|
+
const w0 = d.get(v0[C0]);
|
|
29796
|
+
w0.__webglTexture && (m.deleteTexture(w0.__webglTexture), C.memory.textures--), d.remove(v0[C0]);
|
|
29797
29797
|
}
|
|
29798
29798
|
d.remove(a0);
|
|
29799
29799
|
}
|
|
@@ -29812,10 +29812,10 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
29812
29812
|
function n0(a0, s0) {
|
|
29813
29813
|
const v0 = d.get(a0);
|
|
29814
29814
|
if (a0.isVideoTexture && A0(a0), a0.isRenderTargetTexture === !1 && a0.version > 0 && v0.__version !== a0.version) {
|
|
29815
|
-
const
|
|
29816
|
-
if (
|
|
29815
|
+
const C0 = a0.image;
|
|
29816
|
+
if (C0 === null)
|
|
29817
29817
|
console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");
|
|
29818
|
-
else if (
|
|
29818
|
+
else if (C0.complete === !1)
|
|
29819
29819
|
console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");
|
|
29820
29820
|
else {
|
|
29821
29821
|
G0(v0, a0, s0);
|
|
@@ -29881,9 +29881,9 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
29881
29881
|
function q0(a0, s0) {
|
|
29882
29882
|
let v0 = !1;
|
|
29883
29883
|
a0.__webglInit === void 0 && (a0.__webglInit = !0, s0.addEventListener("dispose", Lt));
|
|
29884
|
-
const
|
|
29885
|
-
let E0 = Pe.get(
|
|
29886
|
-
E0 === void 0 && (E0 = {}, Pe.set(
|
|
29884
|
+
const C0 = s0.source;
|
|
29885
|
+
let E0 = Pe.get(C0);
|
|
29886
|
+
E0 === void 0 && (E0 = {}, Pe.set(C0, E0));
|
|
29887
29887
|
const w0 = l0(s0);
|
|
29888
29888
|
if (w0 !== a0.__cacheKey) {
|
|
29889
29889
|
E0[w0] === void 0 && (E0[w0] = {
|
|
@@ -29896,10 +29896,10 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
29896
29896
|
return v0;
|
|
29897
29897
|
}
|
|
29898
29898
|
function G0(a0, s0, v0) {
|
|
29899
|
-
let
|
|
29900
|
-
(s0.isDataArrayTexture || s0.isCompressedArrayTexture) && (
|
|
29899
|
+
let C0 = m.TEXTURE_2D;
|
|
29900
|
+
(s0.isDataArrayTexture || s0.isCompressedArrayTexture) && (C0 = m.TEXTURE_2D_ARRAY), s0.isData3DTexture && (C0 = m.TEXTURE_3D);
|
|
29901
29901
|
const E0 = q0(a0, s0), w0 = s0.source;
|
|
29902
|
-
r.bindTexture(
|
|
29902
|
+
r.bindTexture(C0, a0.__webglTexture, m.TEXTURE0 + v0);
|
|
29903
29903
|
const vi = d.get(w0);
|
|
29904
29904
|
if (w0.version !== vi.__version || E0 === !0) {
|
|
29905
29905
|
r.activeTexture(m.TEXTURE0 + v0);
|
|
@@ -29909,7 +29909,7 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
29909
29909
|
j0 = N0(s0, j0);
|
|
29910
29910
|
const Xi = v.convert(s0.format, s0.colorSpace), wi = v.convert(s0.type);
|
|
29911
29911
|
let Ii = ct(s0.internalFormat, Xi, wi, s0.colorSpace, s0.isVideoTexture);
|
|
29912
|
-
P0(
|
|
29912
|
+
P0(C0, s0);
|
|
29913
29913
|
let Zi;
|
|
29914
29914
|
const Yi = s0.mipmaps, zi = s0.isVideoTexture !== !0, Ki = vi.__version === void 0 || E0 === !0, L0 = w0.dataReady, k0 = Gt(s0, j0);
|
|
29915
29915
|
if (s0.isDepthTexture)
|
|
@@ -29983,7 +29983,7 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
29983
29983
|
}
|
|
29984
29984
|
} else if (Yi.length > 0) {
|
|
29985
29985
|
if (zi && Ki) {
|
|
29986
|
-
const K0 =
|
|
29986
|
+
const K0 = _0(Yi[0]);
|
|
29987
29987
|
r.texStorage2D(m.TEXTURE_2D, k0, Ii, K0.width, K0.height);
|
|
29988
29988
|
}
|
|
29989
29989
|
for (let K0 = 0, bi = Yi.length; K0 < bi; K0++)
|
|
@@ -29991,29 +29991,29 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
29991
29991
|
s0.generateMipmaps = !1;
|
|
29992
29992
|
} else if (zi) {
|
|
29993
29993
|
if (Ki) {
|
|
29994
|
-
const K0 =
|
|
29994
|
+
const K0 = _0(j0);
|
|
29995
29995
|
r.texStorage2D(m.TEXTURE_2D, k0, Ii, K0.width, K0.height);
|
|
29996
29996
|
}
|
|
29997
29997
|
L0 && r.texSubImage2D(m.TEXTURE_2D, 0, 0, 0, Xi, wi, j0);
|
|
29998
29998
|
} else
|
|
29999
29999
|
r.texImage2D(m.TEXTURE_2D, 0, Ii, Xi, wi, j0);
|
|
30000
|
-
He(s0) && Fe(
|
|
30000
|
+
He(s0) && Fe(C0), vi.__version = w0.version, s0.onUpdate && s0.onUpdate(s0);
|
|
30001
30001
|
}
|
|
30002
30002
|
a0.__version = s0.version;
|
|
30003
30003
|
}
|
|
30004
30004
|
function I0(a0, s0, v0) {
|
|
30005
30005
|
if (s0.image.length !== 6) return;
|
|
30006
|
-
const
|
|
30006
|
+
const C0 = q0(a0, s0), E0 = s0.source;
|
|
30007
30007
|
r.bindTexture(m.TEXTURE_CUBE_MAP, a0.__webglTexture, m.TEXTURE0 + v0);
|
|
30008
30008
|
const w0 = d.get(E0);
|
|
30009
|
-
if (E0.version !== w0.__version ||
|
|
30009
|
+
if (E0.version !== w0.__version || C0 === !0) {
|
|
30010
30010
|
r.activeTexture(m.TEXTURE0 + v0);
|
|
30011
30011
|
const vi = ColorManagement.getPrimaries(ColorManagement.workingColorSpace), ui = s0.colorSpace === NoColorSpace ? null : ColorManagement.getPrimaries(s0.colorSpace), Ci = s0.colorSpace === NoColorSpace || vi === ui ? m.NONE : m.BROWSER_DEFAULT_WEBGL;
|
|
30012
30012
|
m.pixelStorei(m.UNPACK_FLIP_Y_WEBGL, s0.flipY), m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL, s0.premultiplyAlpha), m.pixelStorei(m.UNPACK_ALIGNMENT, s0.unpackAlignment), m.pixelStorei(m.UNPACK_COLORSPACE_CONVERSION_WEBGL, Ci);
|
|
30013
30013
|
const Ei = s0.isCompressedTexture || s0.image[0].isCompressedTexture, j0 = s0.image[0] && s0.image[0].isDataTexture, Xi = [];
|
|
30014
30014
|
for (let bi = 0; bi < 6; bi++)
|
|
30015
30015
|
!Ei && !j0 ? Xi[bi] = ht(s0.image[bi], !0, g.maxCubemapSize) : Xi[bi] = j0 ? s0.image[bi].image : s0.image[bi], Xi[bi] = N0(s0, Xi[bi]);
|
|
30016
|
-
const wi = Xi[0], Ii = v.convert(s0.format, s0.colorSpace), Zi = v.convert(s0.type), Yi = ct(s0.internalFormat, Ii, Zi, s0.colorSpace), zi = s0.isVideoTexture !== !0, Ki = w0.__version === void 0 ||
|
|
30016
|
+
const wi = Xi[0], Ii = v.convert(s0.format, s0.colorSpace), Zi = v.convert(s0.type), Yi = ct(s0.internalFormat, Ii, Zi, s0.colorSpace), zi = s0.isVideoTexture !== !0, Ki = w0.__version === void 0 || C0 === !0, L0 = E0.dataReady;
|
|
30017
30017
|
let k0 = Gt(s0, wi);
|
|
30018
30018
|
P0(m.TEXTURE_CUBE_MAP, s0);
|
|
30019
30019
|
let K0;
|
|
@@ -30029,7 +30029,7 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
30029
30029
|
} else {
|
|
30030
30030
|
if (K0 = s0.mipmaps, zi && Ki) {
|
|
30031
30031
|
K0.length > 0 && k0++;
|
|
30032
|
-
const bi =
|
|
30032
|
+
const bi = _0(Xi[0]);
|
|
30033
30033
|
r.texStorage2D(m.TEXTURE_CUBE_MAP, k0, Yi, bi.width, bi.height);
|
|
30034
30034
|
}
|
|
30035
30035
|
for (let bi = 0; bi < 6; bi++)
|
|
@@ -30051,22 +30051,22 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
30051
30051
|
}
|
|
30052
30052
|
a0.__version = s0.version;
|
|
30053
30053
|
}
|
|
30054
|
-
function F0(a0, s0, v0,
|
|
30054
|
+
function F0(a0, s0, v0, C0, E0, w0) {
|
|
30055
30055
|
const vi = v.convert(v0.format, v0.colorSpace), ui = v.convert(v0.type), Ci = ct(v0.internalFormat, vi, ui, v0.colorSpace), Ei = d.get(s0), j0 = d.get(v0);
|
|
30056
30056
|
if (j0.__renderTarget = s0, !Ei.__hasExternalTextures) {
|
|
30057
30057
|
const Xi = Math.max(1, s0.width >> w0), wi = Math.max(1, s0.height >> w0);
|
|
30058
30058
|
E0 === m.TEXTURE_3D || E0 === m.TEXTURE_2D_ARRAY ? r.texImage3D(E0, w0, Ci, Xi, wi, s0.depth, 0, vi, ui, null) : r.texImage2D(E0, w0, Ci, Xi, wi, 0, vi, ui, null);
|
|
30059
30059
|
}
|
|
30060
|
-
r.bindFramebuffer(m.FRAMEBUFFER, a0), J0(s0) ? w.framebufferTexture2DMultisampleEXT(m.FRAMEBUFFER,
|
|
30060
|
+
r.bindFramebuffer(m.FRAMEBUFFER, a0), J0(s0) ? w.framebufferTexture2DMultisampleEXT(m.FRAMEBUFFER, C0, E0, j0.__webglTexture, 0, O0(s0)) : (E0 === m.TEXTURE_2D || E0 >= m.TEXTURE_CUBE_MAP_POSITIVE_X && E0 <= m.TEXTURE_CUBE_MAP_NEGATIVE_Z) && m.framebufferTexture2D(m.FRAMEBUFFER, C0, E0, j0.__webglTexture, w0), r.bindFramebuffer(m.FRAMEBUFFER, null);
|
|
30061
30061
|
}
|
|
30062
30062
|
function D0(a0, s0, v0) {
|
|
30063
30063
|
if (m.bindRenderbuffer(m.RENDERBUFFER, a0), s0.depthBuffer) {
|
|
30064
|
-
const
|
|
30064
|
+
const C0 = s0.depthTexture, E0 = C0 && C0.isDepthTexture ? C0.type : null, w0 = xt(s0.stencilBuffer, E0), vi = s0.stencilBuffer ? m.DEPTH_STENCIL_ATTACHMENT : m.DEPTH_ATTACHMENT, ui = O0(s0);
|
|
30065
30065
|
J0(s0) ? w.renderbufferStorageMultisampleEXT(m.RENDERBUFFER, ui, w0, s0.width, s0.height) : v0 ? m.renderbufferStorageMultisample(m.RENDERBUFFER, ui, w0, s0.width, s0.height) : m.renderbufferStorage(m.RENDERBUFFER, w0, s0.width, s0.height), m.framebufferRenderbuffer(m.FRAMEBUFFER, vi, m.RENDERBUFFER, a0);
|
|
30066
30066
|
} else {
|
|
30067
|
-
const
|
|
30068
|
-
for (let E0 = 0; E0 <
|
|
30069
|
-
const w0 =
|
|
30067
|
+
const C0 = s0.textures;
|
|
30068
|
+
for (let E0 = 0; E0 < C0.length; E0++) {
|
|
30069
|
+
const w0 = C0[E0], vi = v.convert(w0.format, w0.colorSpace), ui = v.convert(w0.type), Ci = ct(w0.internalFormat, vi, ui, w0.colorSpace), Ei = O0(s0);
|
|
30070
30070
|
v0 && J0(s0) === !1 ? m.renderbufferStorageMultisample(m.RENDERBUFFER, Ei, Ci, s0.width, s0.height) : J0(s0) ? w.renderbufferStorageMultisampleEXT(m.RENDERBUFFER, Ei, Ci, s0.width, s0.height) : m.renderbufferStorage(m.RENDERBUFFER, Ci, s0.width, s0.height);
|
|
30071
30071
|
}
|
|
30072
30072
|
}
|
|
@@ -30076,9 +30076,9 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
30076
30076
|
if (s0 && s0.isWebGLCubeRenderTarget) throw new Error("Depth Texture with cube render targets is not supported");
|
|
30077
30077
|
if (r.bindFramebuffer(m.FRAMEBUFFER, a0), !(s0.depthTexture && s0.depthTexture.isDepthTexture))
|
|
30078
30078
|
throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");
|
|
30079
|
-
const
|
|
30080
|
-
|
|
30081
|
-
const E0 =
|
|
30079
|
+
const C0 = d.get(s0.depthTexture);
|
|
30080
|
+
C0.__renderTarget = s0, (!C0.__webglTexture || s0.depthTexture.image.width !== s0.width || s0.depthTexture.image.height !== s0.height) && (s0.depthTexture.image.width = s0.width, s0.depthTexture.image.height = s0.height, s0.depthTexture.needsUpdate = !0), n0(s0.depthTexture, 0);
|
|
30081
|
+
const E0 = C0.__webglTexture, w0 = O0(s0);
|
|
30082
30082
|
if (s0.depthTexture.format === DepthFormat)
|
|
30083
30083
|
J0(s0) ? w.framebufferTexture2DMultisampleEXT(m.FRAMEBUFFER, m.DEPTH_ATTACHMENT, m.TEXTURE_2D, E0, 0, w0) : m.framebufferTexture2D(m.FRAMEBUFFER, m.DEPTH_ATTACHMENT, m.TEXTURE_2D, E0, 0);
|
|
30084
30084
|
else if (s0.depthTexture.format === DepthStencilFormat)
|
|
@@ -30089,31 +30089,31 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
30089
30089
|
function Ti(a0) {
|
|
30090
30090
|
const s0 = d.get(a0), v0 = a0.isWebGLCubeRenderTarget === !0;
|
|
30091
30091
|
if (s0.__boundDepthTexture !== a0.depthTexture) {
|
|
30092
|
-
const
|
|
30093
|
-
if (s0.__depthDisposeCallback && s0.__depthDisposeCallback(),
|
|
30092
|
+
const C0 = a0.depthTexture;
|
|
30093
|
+
if (s0.__depthDisposeCallback && s0.__depthDisposeCallback(), C0) {
|
|
30094
30094
|
const E0 = () => {
|
|
30095
|
-
delete s0.__boundDepthTexture, delete s0.__depthDisposeCallback,
|
|
30095
|
+
delete s0.__boundDepthTexture, delete s0.__depthDisposeCallback, C0.removeEventListener("dispose", E0);
|
|
30096
30096
|
};
|
|
30097
|
-
|
|
30097
|
+
C0.addEventListener("dispose", E0), s0.__depthDisposeCallback = E0;
|
|
30098
30098
|
}
|
|
30099
|
-
s0.__boundDepthTexture =
|
|
30099
|
+
s0.__boundDepthTexture = C0;
|
|
30100
30100
|
}
|
|
30101
30101
|
if (a0.depthTexture && !s0.__autoAllocateDepthBuffer) {
|
|
30102
30102
|
if (v0) throw new Error("target.depthTexture not supported in Cube render targets");
|
|
30103
|
-
const
|
|
30104
|
-
|
|
30103
|
+
const C0 = a0.texture.mipmaps;
|
|
30104
|
+
C0 && C0.length > 0 ? Si(s0.__webglFramebuffer[0], a0) : Si(s0.__webglFramebuffer, a0);
|
|
30105
30105
|
} else if (v0) {
|
|
30106
30106
|
s0.__webglDepthbuffer = [];
|
|
30107
|
-
for (let
|
|
30108
|
-
if (r.bindFramebuffer(m.FRAMEBUFFER, s0.__webglFramebuffer[
|
|
30109
|
-
s0.__webglDepthbuffer[
|
|
30107
|
+
for (let C0 = 0; C0 < 6; C0++)
|
|
30108
|
+
if (r.bindFramebuffer(m.FRAMEBUFFER, s0.__webglFramebuffer[C0]), s0.__webglDepthbuffer[C0] === void 0)
|
|
30109
|
+
s0.__webglDepthbuffer[C0] = m.createRenderbuffer(), D0(s0.__webglDepthbuffer[C0], a0, !1);
|
|
30110
30110
|
else {
|
|
30111
|
-
const E0 = a0.stencilBuffer ? m.DEPTH_STENCIL_ATTACHMENT : m.DEPTH_ATTACHMENT, w0 = s0.__webglDepthbuffer[
|
|
30111
|
+
const E0 = a0.stencilBuffer ? m.DEPTH_STENCIL_ATTACHMENT : m.DEPTH_ATTACHMENT, w0 = s0.__webglDepthbuffer[C0];
|
|
30112
30112
|
m.bindRenderbuffer(m.RENDERBUFFER, w0), m.framebufferRenderbuffer(m.FRAMEBUFFER, E0, m.RENDERBUFFER, w0);
|
|
30113
30113
|
}
|
|
30114
30114
|
} else {
|
|
30115
|
-
const
|
|
30116
|
-
if (
|
|
30115
|
+
const C0 = a0.texture.mipmaps;
|
|
30116
|
+
if (C0 && C0.length > 0 ? r.bindFramebuffer(m.FRAMEBUFFER, s0.__webglFramebuffer[0]) : r.bindFramebuffer(m.FRAMEBUFFER, s0.__webglFramebuffer), s0.__webglDepthbuffer === void 0)
|
|
30117
30117
|
s0.__webglDepthbuffer = m.createRenderbuffer(), D0(s0.__webglDepthbuffer, a0, !1);
|
|
30118
30118
|
else {
|
|
30119
30119
|
const E0 = a0.stencilBuffer ? m.DEPTH_STENCIL_ATTACHMENT : m.DEPTH_ATTACHMENT, w0 = s0.__webglDepthbuffer;
|
|
@@ -30123,14 +30123,14 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
30123
30123
|
r.bindFramebuffer(m.FRAMEBUFFER, null);
|
|
30124
30124
|
}
|
|
30125
30125
|
function Mi(a0, s0, v0) {
|
|
30126
|
-
const
|
|
30127
|
-
s0 !== void 0 && F0(
|
|
30126
|
+
const C0 = d.get(a0);
|
|
30127
|
+
s0 !== void 0 && F0(C0.__webglFramebuffer, a0, a0.texture, m.COLOR_ATTACHMENT0, m.TEXTURE_2D, 0), v0 !== void 0 && Ti(a0);
|
|
30128
30128
|
}
|
|
30129
30129
|
function Fi(a0) {
|
|
30130
|
-
const s0 = a0.texture, v0 = d.get(a0),
|
|
30130
|
+
const s0 = a0.texture, v0 = d.get(a0), C0 = d.get(s0);
|
|
30131
30131
|
a0.addEventListener("dispose", Wt);
|
|
30132
30132
|
const E0 = a0.textures, w0 = a0.isWebGLCubeRenderTarget === !0, vi = E0.length > 1;
|
|
30133
|
-
if (vi || (
|
|
30133
|
+
if (vi || (C0.__webglTexture === void 0 && (C0.__webglTexture = m.createTexture()), C0.__version = s0.version, C.memory.textures++), w0) {
|
|
30134
30134
|
v0.__webglFramebuffer = [];
|
|
30135
30135
|
for (let ui = 0; ui < 6; ui++)
|
|
30136
30136
|
if (s0.mipmaps && s0.mipmaps.length > 0) {
|
|
@@ -30163,7 +30163,7 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
30163
30163
|
}
|
|
30164
30164
|
}
|
|
30165
30165
|
if (w0) {
|
|
30166
|
-
r.bindTexture(m.TEXTURE_CUBE_MAP,
|
|
30166
|
+
r.bindTexture(m.TEXTURE_CUBE_MAP, C0.__webglTexture), P0(m.TEXTURE_CUBE_MAP, s0);
|
|
30167
30167
|
for (let ui = 0; ui < 6; ui++)
|
|
30168
30168
|
if (s0.mipmaps && s0.mipmaps.length > 0)
|
|
30169
30169
|
for (let Ci = 0; Ci < s0.mipmaps.length; Ci++)
|
|
@@ -30179,7 +30179,7 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
30179
30179
|
r.unbindTexture();
|
|
30180
30180
|
} else {
|
|
30181
30181
|
let ui = m.TEXTURE_2D;
|
|
30182
|
-
if ((a0.isWebGL3DRenderTarget || a0.isWebGLArrayRenderTarget) && (ui = a0.isWebGL3DRenderTarget ? m.TEXTURE_3D : m.TEXTURE_2D_ARRAY), r.bindTexture(ui,
|
|
30182
|
+
if ((a0.isWebGL3DRenderTarget || a0.isWebGLArrayRenderTarget) && (ui = a0.isWebGL3DRenderTarget ? m.TEXTURE_3D : m.TEXTURE_2D_ARRAY), r.bindTexture(ui, C0.__webglTexture), P0(ui, s0), s0.mipmaps && s0.mipmaps.length > 0)
|
|
30183
30183
|
for (let Ci = 0; Ci < s0.mipmaps.length; Ci++)
|
|
30184
30184
|
F0(v0.__webglFramebuffer[Ci], a0, s0, m.COLOR_ATTACHMENT0, ui, Ci);
|
|
30185
30185
|
else
|
|
@@ -30190,7 +30190,7 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
30190
30190
|
}
|
|
30191
30191
|
function Ni(a0) {
|
|
30192
30192
|
const s0 = a0.textures;
|
|
30193
|
-
for (let v0 = 0,
|
|
30193
|
+
for (let v0 = 0, C0 = s0.length; v0 < C0; v0++) {
|
|
30194
30194
|
const E0 = s0[v0];
|
|
30195
30195
|
if (He(E0)) {
|
|
30196
30196
|
const w0 = at(a0), vi = d.get(E0).__webglTexture;
|
|
@@ -30202,7 +30202,7 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
30202
30202
|
function xi(a0) {
|
|
30203
30203
|
if (a0.samples > 0) {
|
|
30204
30204
|
if (J0(a0) === !1) {
|
|
30205
|
-
const s0 = a0.textures, v0 = a0.width,
|
|
30205
|
+
const s0 = a0.textures, v0 = a0.width, C0 = a0.height;
|
|
30206
30206
|
let E0 = m.COLOR_BUFFER_BIT;
|
|
30207
30207
|
const w0 = a0.stencilBuffer ? m.DEPTH_STENCIL_ATTACHMENT : m.DEPTH_ATTACHMENT, vi = d.get(a0), ui = s0.length > 1;
|
|
30208
30208
|
if (ui)
|
|
@@ -30217,7 +30217,7 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
30217
30217
|
const j0 = d.get(s0[Ei]).__webglTexture;
|
|
30218
30218
|
m.framebufferTexture2D(m.DRAW_FRAMEBUFFER, m.COLOR_ATTACHMENT0, m.TEXTURE_2D, j0, 0);
|
|
30219
30219
|
}
|
|
30220
|
-
m.blitFramebuffer(0, 0, v0,
|
|
30220
|
+
m.blitFramebuffer(0, 0, v0, C0, 0, 0, v0, C0, E0, m.NEAREST), I === !0 && (B0.length = 0, h0.length = 0, B0.push(m.COLOR_ATTACHMENT0 + Ei), a0.depthBuffer && a0.resolveDepthBuffer === !1 && (B0.push(w0), h0.push(w0), m.invalidateFramebuffer(m.DRAW_FRAMEBUFFER, h0)), m.invalidateFramebuffer(m.READ_FRAMEBUFFER, B0));
|
|
30221
30221
|
}
|
|
30222
30222
|
if (r.bindFramebuffer(m.READ_FRAMEBUFFER, null), r.bindFramebuffer(m.DRAW_FRAMEBUFFER, null), ui)
|
|
30223
30223
|
for (let Ei = 0; Ei < s0.length; Ei++) {
|
|
@@ -30244,10 +30244,10 @@ function WebGLTextures(m, t, r, d, g, v, C) {
|
|
|
30244
30244
|
ye.get(a0) !== s0 && (ye.set(a0, s0), a0.update());
|
|
30245
30245
|
}
|
|
30246
30246
|
function N0(a0, s0) {
|
|
30247
|
-
const v0 = a0.colorSpace,
|
|
30248
|
-
return a0.isCompressedTexture === !0 || a0.isVideoTexture === !0 || v0 !== LinearSRGBColorSpace && v0 !== NoColorSpace && (ColorManagement.getTransfer(v0) === SRGBTransfer ? (
|
|
30247
|
+
const v0 = a0.colorSpace, C0 = a0.format, E0 = a0.type;
|
|
30248
|
+
return a0.isCompressedTexture === !0 || a0.isVideoTexture === !0 || v0 !== LinearSRGBColorSpace && v0 !== NoColorSpace && (ColorManagement.getTransfer(v0) === SRGBTransfer ? (C0 !== RGBAFormat || E0 !== UnsignedByteType) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", v0)), s0;
|
|
30249
30249
|
}
|
|
30250
|
-
function
|
|
30250
|
+
function _0(a0) {
|
|
30251
30251
|
return typeof HTMLImageElement != "undefined" && a0 instanceof HTMLImageElement ? (O.width = a0.naturalWidth || a0.width, O.height = a0.naturalHeight || a0.height) : typeof VideoFrame != "undefined" && a0 instanceof VideoFrame ? (O.width = a0.displayWidth, O.height = a0.displayHeight) : (O.width = a0.width, O.height = a0.height), O;
|
|
30252
30252
|
}
|
|
30253
30253
|
this.allocateTextureUnit = r0, this.resetTextureUnits = i0, this.setTexture2D = n0, this.setTexture2DArray = Ut, this.setTexture3D = e0, this.setTextureCube = Yt, this.rebindTextures = Mi, this.setupRenderTarget = Fi, this.updateRenderTargetMipmap = Ni, this.updateMultisampleRenderTarget = xi, this.setupDepthRenderbuffer = Ti, this.setupFrameBufferTexture = F0, this.useMultisampledRTT = J0;
|
|
@@ -30572,8 +30572,8 @@ class WebXRManager extends EventDispatcher {
|
|
|
30572
30572
|
if (I0.matrixWorld.decompose(G0.position, G0.quaternion, G0.scale), G0.translateX(N0), G0.translateZ(A0), G0.matrixWorld.compose(G0.position, G0.quaternion, G0.scale), G0.matrixWorldInverse.copy(G0.matrixWorld).invert(), Si[10] === -1)
|
|
30573
30573
|
G0.projectionMatrix.copy(I0.projectionMatrix), G0.projectionMatrixInverse.copy(I0.projectionMatrixInverse);
|
|
30574
30574
|
else {
|
|
30575
|
-
const
|
|
30576
|
-
G0.projectionMatrix.makePerspective(s0, v0,
|
|
30575
|
+
const _0 = Mi + A0, a0 = Fi + A0, s0 = O0 - N0, v0 = J0 + (D0 - N0), C0 = Ni * Fi / a0 * _0, E0 = B0 * Fi / a0 * _0;
|
|
30576
|
+
G0.projectionMatrix.makePerspective(s0, v0, C0, E0, _0, a0), G0.projectionMatrixInverse.copy(G0.projectionMatrix).invert();
|
|
30577
30577
|
}
|
|
30578
30578
|
}
|
|
30579
30579
|
function o0(G0, I0) {
|
|
@@ -30888,9 +30888,9 @@ class WebGLRenderer {
|
|
|
30888
30888
|
} catch (t0) {
|
|
30889
30889
|
throw console.error("THREE.WebGLRenderer: " + t0.message), t0;
|
|
30890
30890
|
}
|
|
30891
|
-
let O0, J0, A0, N0,
|
|
30891
|
+
let O0, J0, A0, N0, _0, a0, s0, v0, C0, E0, w0, vi, ui, Ci, Ei, j0, Xi, wi, Ii, Zi, Yi, zi, Ki, L0;
|
|
30892
30892
|
function k0() {
|
|
30893
|
-
O0 = new WebGLExtensions(h0), O0.init(), zi = new WebGLUtils(h0, O0), J0 = new WebGLCapabilities(h0, O0, t, zi), A0 = new WebGLState(h0, O0), J0.reverseDepthBuffer && Pe && A0.buffers.depth.setReversed(!0), N0 = new WebGLInfo(h0),
|
|
30893
|
+
O0 = new WebGLExtensions(h0), O0.init(), zi = new WebGLUtils(h0, O0), J0 = new WebGLCapabilities(h0, O0, t, zi), A0 = new WebGLState(h0, O0), J0.reverseDepthBuffer && Pe && A0.buffers.depth.setReversed(!0), N0 = new WebGLInfo(h0), _0 = new WebGLProperties(), a0 = new WebGLTextures(h0, O0, A0, _0, J0, zi, N0), s0 = new WebGLCubeMaps(xt), v0 = new WebGLCubeUVMaps(xt), C0 = new WebGLAttributes(h0), Ki = new WebGLBindingStates(h0, C0), E0 = new WebGLGeometries(h0, C0, N0, Ki), w0 = new WebGLObjects(h0, E0, C0, N0), Ii = new WebGLMorphtargets(h0, J0, a0), j0 = new WebGLClipping(_0), vi = new WebGLPrograms(xt, s0, v0, O0, J0, Ki, j0), ui = new WebGLMaterials(xt, _0), Ci = new WebGLRenderLists(), Ei = new WebGLRenderStates(O0), wi = new WebGLBackground(xt, s0, v0, A0, w0, Ne, I), Xi = new WebGLShadowMap(xt, w0, J0), L0 = new WebGLUniformsGroups(h0, N0, J0, A0), Zi = new WebGLBufferRenderer(h0, O0, N0), Yi = new WebGLIndexedBufferRenderer(h0, O0, N0), N0.programs = vi.programs, xt.capabilities = J0, xt.extensions = O0, xt.properties = _0, xt.renderLists = Ci, xt.shadowMap = Xi, xt.state = A0, xt.info = N0;
|
|
30894
30894
|
}
|
|
30895
30895
|
k0();
|
|
30896
30896
|
const K0 = new WebXRManager(xt, h0);
|
|
@@ -30955,8 +30955,8 @@ class WebGLRenderer {
|
|
|
30955
30955
|
m0 = M0 === RGBAIntegerFormat || M0 === RGIntegerFormat || M0 === RedIntegerFormat;
|
|
30956
30956
|
}
|
|
30957
30957
|
if (m0) {
|
|
30958
|
-
const M0 = Pt.texture.type,
|
|
30959
|
-
|
|
30958
|
+
const M0 = Pt.texture.type, R0 = M0 === UnsignedByteType || M0 === UnsignedIntType || M0 === UnsignedShortType || M0 === UnsignedInt248Type || M0 === UnsignedShort4444Type || M0 === UnsignedShort5551Type, V0 = wi.getClearColor(), H0 = wi.getClearAlpha(), $0 = V0.r, Q0 = V0.g, yi = V0.b;
|
|
30959
|
+
R0 ? (ke[0] = $0, ke[1] = Q0, ke[2] = yi, ke[3] = H0, h0.clearBufferuiv(h0.COLOR, 0, ke)) : (ht[0] = $0, ht[1] = Q0, ht[2] = yi, ht[3] = H0, h0.clearBufferiv(h0.COLOR, 0, ht));
|
|
30960
30960
|
} else
|
|
30961
30961
|
S0 |= h0.COLOR_BUFFER_BIT;
|
|
30962
30962
|
}
|
|
@@ -30968,7 +30968,7 @@ class WebGLRenderer {
|
|
|
30968
30968
|
}, this.clearStencil = function() {
|
|
30969
30969
|
this.clear(!1, !1, !0);
|
|
30970
30970
|
}, this.dispose = function() {
|
|
30971
|
-
r.removeEventListener("webglcontextlost", bi, !1), r.removeEventListener("webglcontextrestored", Ri, !1), r.removeEventListener("webglcontextcreationerror", _i, !1), wi.dispose(), Ci.dispose(), Ei.dispose(),
|
|
30971
|
+
r.removeEventListener("webglcontextlost", bi, !1), r.removeEventListener("webglcontextrestored", Ri, !1), r.removeEventListener("webglcontextcreationerror", _i, !1), wi.dispose(), Ci.dispose(), Ei.dispose(), _0.dispose(), s0.dispose(), v0.dispose(), w0.dispose(), Ki.dispose(), L0.dispose(), vi.dispose(), K0.dispose(), K0.removeEventListener("sessionstart", Mn), K0.removeEventListener("sessionend", Ln), ln.stop();
|
|
30972
30972
|
};
|
|
30973
30973
|
function bi(t0) {
|
|
30974
30974
|
t0.preventDefault(), console.log("THREE.WebGLRenderer: Context Lost."), Gt = !0;
|
|
@@ -30986,18 +30986,18 @@ class WebGLRenderer {
|
|
|
30986
30986
|
d0.removeEventListener("dispose", Bi), qi(d0);
|
|
30987
30987
|
}
|
|
30988
30988
|
function qi(t0) {
|
|
30989
|
-
sn(t0),
|
|
30989
|
+
sn(t0), _0.remove(t0);
|
|
30990
30990
|
}
|
|
30991
30991
|
function sn(t0) {
|
|
30992
|
-
const d0 =
|
|
30992
|
+
const d0 = _0.get(t0).programs;
|
|
30993
30993
|
d0 !== void 0 && (d0.forEach(function(u0) {
|
|
30994
30994
|
vi.releaseProgram(u0);
|
|
30995
30995
|
}), t0.isShaderMaterial && vi.releaseShaderCache(t0));
|
|
30996
30996
|
}
|
|
30997
30997
|
this.renderBufferDirect = function(t0, d0, u0, S0, m0, M0) {
|
|
30998
30998
|
d0 === null && (d0 = Fi);
|
|
30999
|
-
const
|
|
31000
|
-
A0.setMaterial(S0,
|
|
30999
|
+
const R0 = m0.isMesh && m0.matrixWorld.determinant() < 0, V0 = _n(t0, d0, u0, S0, m0);
|
|
31000
|
+
A0.setMaterial(S0, R0);
|
|
31001
31001
|
let H0 = u0.index, $0 = 1;
|
|
31002
31002
|
if (S0.wireframe === !0) {
|
|
31003
31003
|
if (H0 = E0.getWireframeAttribute(u0), H0 === void 0) return;
|
|
@@ -31010,7 +31010,7 @@ class WebGLRenderer {
|
|
|
31010
31010
|
if (Wi < 0 || Wi === 1 / 0) return;
|
|
31011
31011
|
Ki.setup(m0, S0, V0, u0, H0);
|
|
31012
31012
|
let Ai, ki = Zi;
|
|
31013
|
-
if (H0 !== null && (Ai =
|
|
31013
|
+
if (H0 !== null && (Ai = C0.get(H0), ki = Yi, ki.setIndex(Ai)), m0.isMesh)
|
|
31014
31014
|
S0.wireframe === !0 ? (A0.setLineWidth(S0.wireframeLinewidth * B0()), ki.setMode(h0.LINES)) : ki.setMode(h0.TRIANGLES);
|
|
31015
31015
|
else if (m0.isLine) {
|
|
31016
31016
|
let Vi = S0.linewidth;
|
|
@@ -31022,7 +31022,7 @@ class WebGLRenderer {
|
|
|
31022
31022
|
else if (O0.get("WEBGL_multi_draw"))
|
|
31023
31023
|
ki.renderMultiDraw(m0._multiDrawStarts, m0._multiDrawCounts, m0._multiDrawCount);
|
|
31024
31024
|
else {
|
|
31025
|
-
const Vi = m0._multiDrawStarts, Di = m0._multiDrawCounts, Pi = m0._multiDrawCount, Qi = H0 ?
|
|
31025
|
+
const Vi = m0._multiDrawStarts, Di = m0._multiDrawCounts, Pi = m0._multiDrawCount, Qi = H0 ? C0.get(H0).bytesPerElement : 1, tn = _0.get(S0).currentProgram.getUniforms();
|
|
31026
31026
|
for (let Ji = 0; Ji < Pi; Ji++)
|
|
31027
31027
|
tn.setValue(h0, "_gl_DrawID", Ji), ki.render(Vi[Ji] / Qi, Di[Ji]);
|
|
31028
31028
|
}
|
|
@@ -31050,8 +31050,8 @@ class WebGLRenderer {
|
|
|
31050
31050
|
const M0 = m0.material;
|
|
31051
31051
|
if (M0)
|
|
31052
31052
|
if (Array.isArray(M0))
|
|
31053
|
-
for (let
|
|
31054
|
-
const V0 = M0[
|
|
31053
|
+
for (let R0 = 0; R0 < M0.length; R0++) {
|
|
31054
|
+
const V0 = M0[R0];
|
|
31055
31055
|
ji(V0, u0, m0), S0.add(V0);
|
|
31056
31056
|
}
|
|
31057
31057
|
else
|
|
@@ -31061,8 +31061,8 @@ class WebGLRenderer {
|
|
|
31061
31061
|
const S0 = this.compile(t0, d0, u0);
|
|
31062
31062
|
return new Promise((m0) => {
|
|
31063
31063
|
function M0() {
|
|
31064
|
-
if (S0.forEach(function(
|
|
31065
|
-
|
|
31064
|
+
if (S0.forEach(function(R0) {
|
|
31065
|
+
_0.get(R0).currentProgram.isReady() && S0.delete(R0);
|
|
31066
31066
|
}), S0.size === 0) {
|
|
31067
31067
|
m0(t0);
|
|
31068
31068
|
return;
|
|
@@ -31102,13 +31102,13 @@ class WebGLRenderer {
|
|
|
31102
31102
|
if (Fe.setupLights(), d0.isArrayCamera) {
|
|
31103
31103
|
const M0 = d0.cameras;
|
|
31104
31104
|
if (m0.length > 0)
|
|
31105
|
-
for (let
|
|
31106
|
-
const H0 = M0[
|
|
31105
|
+
for (let R0 = 0, V0 = M0.length; R0 < V0; R0++) {
|
|
31106
|
+
const H0 = M0[R0];
|
|
31107
31107
|
Tn(S0, m0, t0, H0);
|
|
31108
31108
|
}
|
|
31109
31109
|
Ni && wi.render(t0);
|
|
31110
|
-
for (let
|
|
31111
|
-
const H0 = M0[
|
|
31110
|
+
for (let R0 = 0, V0 = M0.length; R0 < V0; R0++) {
|
|
31111
|
+
const H0 = M0[R0];
|
|
31112
31112
|
xn(He, t0, H0, H0.viewport);
|
|
31113
31113
|
}
|
|
31114
31114
|
} else
|
|
@@ -31127,27 +31127,27 @@ class WebGLRenderer {
|
|
|
31127
31127
|
else if (t0.isSprite) {
|
|
31128
31128
|
if (!t0.frustumCulled || G0.intersectsSprite(t0)) {
|
|
31129
31129
|
S0 && Mi.setFromMatrixPosition(t0.matrixWorld).applyMatrix4(Si);
|
|
31130
|
-
const
|
|
31131
|
-
V0.visible && He.push(t0,
|
|
31130
|
+
const R0 = w0.update(t0), V0 = t0.material;
|
|
31131
|
+
V0.visible && He.push(t0, R0, V0, u0, Mi.z, null);
|
|
31132
31132
|
}
|
|
31133
31133
|
} else if ((t0.isMesh || t0.isLine || t0.isPoints) && (!t0.frustumCulled || G0.intersectsObject(t0))) {
|
|
31134
|
-
const
|
|
31135
|
-
if (S0 && (t0.boundingSphere !== void 0 ? (t0.boundingSphere === null && t0.computeBoundingSphere(), Mi.copy(t0.boundingSphere.center)) : (
|
|
31136
|
-
const H0 =
|
|
31134
|
+
const R0 = w0.update(t0), V0 = t0.material;
|
|
31135
|
+
if (S0 && (t0.boundingSphere !== void 0 ? (t0.boundingSphere === null && t0.computeBoundingSphere(), Mi.copy(t0.boundingSphere.center)) : (R0.boundingSphere === null && R0.computeBoundingSphere(), Mi.copy(R0.boundingSphere.center)), Mi.applyMatrix4(t0.matrixWorld).applyMatrix4(Si)), Array.isArray(V0)) {
|
|
31136
|
+
const H0 = R0.groups;
|
|
31137
31137
|
for (let $0 = 0, Q0 = H0.length; $0 < Q0; $0++) {
|
|
31138
31138
|
const yi = H0[$0], gi = V0[yi.materialIndex];
|
|
31139
|
-
gi && gi.visible && He.push(t0,
|
|
31139
|
+
gi && gi.visible && He.push(t0, R0, gi, u0, Mi.z, yi);
|
|
31140
31140
|
}
|
|
31141
|
-
} else V0.visible && He.push(t0,
|
|
31141
|
+
} else V0.visible && He.push(t0, R0, V0, u0, Mi.z, null);
|
|
31142
31142
|
}
|
|
31143
31143
|
}
|
|
31144
31144
|
const M0 = t0.children;
|
|
31145
|
-
for (let
|
|
31146
|
-
gn(M0[
|
|
31145
|
+
for (let R0 = 0, V0 = M0.length; R0 < V0; R0++)
|
|
31146
|
+
gn(M0[R0], d0, u0, S0);
|
|
31147
31147
|
}
|
|
31148
31148
|
function xn(t0, d0, u0, S0) {
|
|
31149
|
-
const m0 = t0.opaque, M0 = t0.transmissive,
|
|
31150
|
-
Fe.setupLightsView(u0), I0 === !0 && j0.setGlobalState(xt.clippingPlanes, u0), S0 && A0.viewport(Kt.copy(S0)), m0.length > 0 && pn(m0, d0, u0), M0.length > 0 && pn(M0, d0, u0),
|
|
31149
|
+
const m0 = t0.opaque, M0 = t0.transmissive, R0 = t0.transparent;
|
|
31150
|
+
Fe.setupLightsView(u0), I0 === !0 && j0.setGlobalState(xt.clippingPlanes, u0), S0 && A0.viewport(Kt.copy(S0)), m0.length > 0 && pn(m0, d0, u0), M0.length > 0 && pn(M0, d0, u0), R0.length > 0 && pn(R0, d0, u0), A0.buffers.depth.setTest(!0), A0.buffers.depth.setMask(!0), A0.buffers.color.setMask(!0), A0.setPolygonOffset(!1);
|
|
31151
31151
|
}
|
|
31152
31152
|
function Tn(t0, d0, u0, S0) {
|
|
31153
31153
|
if ((u0.isScene === !0 ? u0.overrideMaterial : null) !== null)
|
|
@@ -31162,8 +31162,8 @@ class WebGLRenderer {
|
|
|
31162
31162
|
resolveStencilBuffer: !1,
|
|
31163
31163
|
colorSpace: ColorManagement.workingColorSpace
|
|
31164
31164
|
}));
|
|
31165
|
-
const M0 = Fe.state.transmissionRenderTarget[S0.id],
|
|
31166
|
-
M0.setSize(
|
|
31165
|
+
const M0 = Fe.state.transmissionRenderTarget[S0.id], R0 = S0.viewport || Kt;
|
|
31166
|
+
M0.setSize(R0.z * xt.transmissionResolutionScale, R0.w * xt.transmissionResolutionScale);
|
|
31167
31167
|
const V0 = xt.getRenderTarget();
|
|
31168
31168
|
xt.setRenderTarget(M0), xt.getClearColor(l0), n0 = xt.getClearAlpha(), n0 < 1 && xt.setClearColor(16777215, 0.5), xt.clear(), Ni && wi.render(u0);
|
|
31169
31169
|
const H0 = xt.toneMapping;
|
|
@@ -31185,8 +31185,8 @@ class WebGLRenderer {
|
|
|
31185
31185
|
function pn(t0, d0, u0) {
|
|
31186
31186
|
const S0 = d0.isScene === !0 ? d0.overrideMaterial : null;
|
|
31187
31187
|
for (let m0 = 0, M0 = t0.length; m0 < M0; m0++) {
|
|
31188
|
-
const
|
|
31189
|
-
let Q0 =
|
|
31188
|
+
const R0 = t0[m0], V0 = R0.object, H0 = R0.geometry, $0 = R0.group;
|
|
31189
|
+
let Q0 = R0.material;
|
|
31190
31190
|
Q0.allowOverride === !0 && S0 !== null && (Q0 = S0), V0.layers.test(u0.layers) && Cn(V0, d0, u0, H0, Q0, $0);
|
|
31191
31191
|
}
|
|
31192
31192
|
}
|
|
@@ -31195,17 +31195,17 @@ class WebGLRenderer {
|
|
|
31195
31195
|
}
|
|
31196
31196
|
function mn(t0, d0, u0) {
|
|
31197
31197
|
d0.isScene !== !0 && (d0 = Fi);
|
|
31198
|
-
const S0 =
|
|
31198
|
+
const S0 = _0.get(t0), m0 = Fe.state.lights, M0 = Fe.state.shadowsArray, R0 = m0.state.version, V0 = vi.getParameters(t0, m0.state, M0, d0, u0), H0 = vi.getProgramCacheKey(V0);
|
|
31199
31199
|
let $0 = S0.programs;
|
|
31200
31200
|
S0.environment = t0.isMeshStandardMaterial ? d0.environment : null, S0.fog = d0.fog, S0.envMap = (t0.isMeshStandardMaterial ? v0 : s0).get(t0.envMap || S0.environment), S0.envMapRotation = S0.environment !== null && t0.envMap === null ? d0.environmentRotation : t0.envMapRotation, $0 === void 0 && (t0.addEventListener("dispose", Bi), $0 = /* @__PURE__ */ new Map(), S0.programs = $0);
|
|
31201
31201
|
let Q0 = $0.get(H0);
|
|
31202
31202
|
if (Q0 !== void 0) {
|
|
31203
|
-
if (S0.currentProgram === Q0 && S0.lightsStateVersion ===
|
|
31203
|
+
if (S0.currentProgram === Q0 && S0.lightsStateVersion === R0)
|
|
31204
31204
|
return vn(t0, V0), Q0;
|
|
31205
31205
|
} else
|
|
31206
31206
|
V0.uniforms = vi.getUniforms(t0), t0.onBeforeCompile(V0, xt), Q0 = vi.acquireProgram(V0, H0), $0.set(H0, Q0), S0.uniforms = V0.uniforms;
|
|
31207
31207
|
const yi = S0.uniforms;
|
|
31208
|
-
return (!t0.isShaderMaterial && !t0.isRawShaderMaterial || t0.clipping === !0) && (yi.clippingPlanes = j0.uniform), vn(t0, V0), S0.needsLights = hn(t0), S0.lightsStateVersion =
|
|
31208
|
+
return (!t0.isShaderMaterial && !t0.isRawShaderMaterial || t0.clipping === !0) && (yi.clippingPlanes = j0.uniform), vn(t0, V0), S0.needsLights = hn(t0), S0.lightsStateVersion = R0, S0.needsLights && (yi.ambientLightColor.value = m0.state.ambient, yi.lightProbe.value = m0.state.probe, yi.directionalLights.value = m0.state.directional, yi.directionalLightShadows.value = m0.state.directionalShadow, yi.spotLights.value = m0.state.spot, yi.spotLightShadows.value = m0.state.spotShadow, yi.rectAreaLights.value = m0.state.rectArea, yi.ltc_1.value = m0.state.rectAreaLTC1, yi.ltc_2.value = m0.state.rectAreaLTC2, yi.pointLights.value = m0.state.point, yi.pointLightShadows.value = m0.state.pointShadow, yi.hemisphereLights.value = m0.state.hemi, yi.directionalShadowMap.value = m0.state.directionalShadowMap, yi.directionalShadowMatrix.value = m0.state.directionalShadowMatrix, yi.spotShadowMap.value = m0.state.spotShadowMap, yi.spotLightMatrix.value = m0.state.spotLightMatrix, yi.spotLightMap.value = m0.state.spotLightMap, yi.pointShadowMap.value = m0.state.pointShadowMap, yi.pointShadowMatrix.value = m0.state.pointShadowMatrix), S0.currentProgram = Q0, S0.uniformsList = null, Q0;
|
|
31209
31209
|
}
|
|
31210
31210
|
function Sn(t0) {
|
|
31211
31211
|
if (t0.uniformsList === null) {
|
|
@@ -31215,15 +31215,15 @@ class WebGLRenderer {
|
|
|
31215
31215
|
return t0.uniformsList;
|
|
31216
31216
|
}
|
|
31217
31217
|
function vn(t0, d0) {
|
|
31218
|
-
const u0 =
|
|
31218
|
+
const u0 = _0.get(t0);
|
|
31219
31219
|
u0.outputColorSpace = d0.outputColorSpace, u0.batching = d0.batching, u0.batchingColor = d0.batchingColor, u0.instancing = d0.instancing, u0.instancingColor = d0.instancingColor, u0.instancingMorph = d0.instancingMorph, u0.skinning = d0.skinning, u0.morphTargets = d0.morphTargets, u0.morphNormals = d0.morphNormals, u0.morphColors = d0.morphColors, u0.morphTargetsCount = d0.morphTargetsCount, u0.numClippingPlanes = d0.numClippingPlanes, u0.numIntersection = d0.numClipIntersection, u0.vertexAlphas = d0.vertexAlphas, u0.vertexTangents = d0.vertexTangents, u0.toneMapping = d0.toneMapping;
|
|
31220
31220
|
}
|
|
31221
31221
|
function _n(t0, d0, u0, S0, m0) {
|
|
31222
31222
|
d0.isScene !== !0 && (d0 = Fi), a0.resetTextureUnits();
|
|
31223
|
-
const M0 = d0.fog,
|
|
31223
|
+
const M0 = d0.fog, R0 = S0.isMeshStandardMaterial ? d0.environment : null, V0 = Pt === null ? xt.outputColorSpace : Pt.isXRRenderTarget === !0 ? Pt.texture.colorSpace : LinearSRGBColorSpace, H0 = (S0.isMeshStandardMaterial ? v0 : s0).get(S0.envMap || R0), $0 = S0.vertexColors === !0 && !!u0.attributes.color && u0.attributes.color.itemSize === 4, Q0 = !!u0.attributes.tangent && (!!S0.normalMap || S0.anisotropy > 0), yi = !!u0.morphAttributes.position, gi = !!u0.morphAttributes.normal, Li = !!u0.morphAttributes.color;
|
|
31224
31224
|
let Wi = NoToneMapping;
|
|
31225
31225
|
S0.toneMapped && (Pt === null || Pt.isXRRenderTarget === !0) && (Wi = xt.toneMapping);
|
|
31226
|
-
const Ai = u0.morphAttributes.position || u0.morphAttributes.normal || u0.morphAttributes.color, ki = Ai !== void 0 ? Ai.length : 0, Vi =
|
|
31226
|
+
const Ai = u0.morphAttributes.position || u0.morphAttributes.normal || u0.morphAttributes.color, ki = Ai !== void 0 ? Ai.length : 0, Vi = _0.get(S0), Di = Fe.state.lights;
|
|
31227
31227
|
if (I0 === !0 && (F0 === !0 || t0 !== kt)) {
|
|
31228
31228
|
const $i = t0 === kt && S0.id === Ft;
|
|
31229
31229
|
j0.setState(S0, t0, $i);
|
|
@@ -31272,56 +31272,56 @@ class WebGLRenderer {
|
|
|
31272
31272
|
}, this.getRenderTarget = function() {
|
|
31273
31273
|
return Pt;
|
|
31274
31274
|
}, this.setRenderTargetTextures = function(t0, d0, u0) {
|
|
31275
|
-
const S0 =
|
|
31276
|
-
S0.__autoAllocateDepthBuffer = t0.resolveDepthBuffer === !1, S0.__autoAllocateDepthBuffer === !1 && (S0.__useRenderToTexture = !1),
|
|
31275
|
+
const S0 = _0.get(t0);
|
|
31276
|
+
S0.__autoAllocateDepthBuffer = t0.resolveDepthBuffer === !1, S0.__autoAllocateDepthBuffer === !1 && (S0.__useRenderToTexture = !1), _0.get(t0.texture).__webglTexture = d0, _0.get(t0.depthTexture).__webglTexture = S0.__autoAllocateDepthBuffer ? void 0 : u0, S0.__hasExternalTextures = !0;
|
|
31277
31277
|
}, this.setRenderTargetFramebuffer = function(t0, d0) {
|
|
31278
|
-
const u0 =
|
|
31278
|
+
const u0 = _0.get(t0);
|
|
31279
31279
|
u0.__webglFramebuffer = d0, u0.__useDefaultFramebuffer = d0 === void 0;
|
|
31280
31280
|
};
|
|
31281
31281
|
const qt = h0.createFramebuffer();
|
|
31282
31282
|
this.setRenderTarget = function(t0, d0 = 0, u0 = 0) {
|
|
31283
31283
|
Pt = t0, Lt = d0, Wt = u0;
|
|
31284
|
-
let S0 = !0, m0 = null, M0 = !1,
|
|
31284
|
+
let S0 = !0, m0 = null, M0 = !1, R0 = !1;
|
|
31285
31285
|
if (t0) {
|
|
31286
|
-
const H0 =
|
|
31286
|
+
const H0 = _0.get(t0);
|
|
31287
31287
|
if (H0.__useDefaultFramebuffer !== void 0)
|
|
31288
31288
|
A0.bindFramebuffer(h0.FRAMEBUFFER, null), S0 = !1;
|
|
31289
31289
|
else if (H0.__webglFramebuffer === void 0)
|
|
31290
31290
|
a0.setupRenderTarget(t0);
|
|
31291
31291
|
else if (H0.__hasExternalTextures)
|
|
31292
|
-
a0.rebindTextures(t0,
|
|
31292
|
+
a0.rebindTextures(t0, _0.get(t0.texture).__webglTexture, _0.get(t0.depthTexture).__webglTexture);
|
|
31293
31293
|
else if (t0.depthBuffer) {
|
|
31294
31294
|
const yi = t0.depthTexture;
|
|
31295
31295
|
if (H0.__boundDepthTexture !== yi) {
|
|
31296
|
-
if (yi !== null &&
|
|
31296
|
+
if (yi !== null && _0.has(yi) && (t0.width !== yi.image.width || t0.height !== yi.image.height))
|
|
31297
31297
|
throw new Error("WebGLRenderTarget: Attached DepthTexture is initialized to the incorrect size.");
|
|
31298
31298
|
a0.setupDepthRenderbuffer(t0);
|
|
31299
31299
|
}
|
|
31300
31300
|
}
|
|
31301
31301
|
const $0 = t0.texture;
|
|
31302
|
-
($0.isData3DTexture || $0.isDataArrayTexture || $0.isCompressedArrayTexture) && (
|
|
31303
|
-
const Q0 =
|
|
31304
|
-
t0.isWebGLCubeRenderTarget ? (Array.isArray(Q0[d0]) ? m0 = Q0[d0][u0] : m0 = Q0[d0], M0 = !0) : t0.samples > 0 && a0.useMultisampledRTT(t0) === !1 ? m0 =
|
|
31302
|
+
($0.isData3DTexture || $0.isDataArrayTexture || $0.isCompressedArrayTexture) && (R0 = !0);
|
|
31303
|
+
const Q0 = _0.get(t0).__webglFramebuffer;
|
|
31304
|
+
t0.isWebGLCubeRenderTarget ? (Array.isArray(Q0[d0]) ? m0 = Q0[d0][u0] : m0 = Q0[d0], M0 = !0) : t0.samples > 0 && a0.useMultisampledRTT(t0) === !1 ? m0 = _0.get(t0).__webglMultisampledFramebuffer : Array.isArray(Q0) ? m0 = Q0[u0] : m0 = Q0, Kt.copy(t0.viewport), i0.copy(t0.scissor), r0 = t0.scissorTest;
|
|
31305
31305
|
} else
|
|
31306
31306
|
Kt.copy(f0).multiplyScalar(Yt).floor(), i0.copy(P0).multiplyScalar(Yt).floor(), r0 = q0;
|
|
31307
31307
|
if (u0 !== 0 && (m0 = qt), A0.bindFramebuffer(h0.FRAMEBUFFER, m0) && S0 && A0.drawBuffers(t0, m0), A0.viewport(Kt), A0.scissor(i0), A0.setScissorTest(r0), M0) {
|
|
31308
|
-
const H0 =
|
|
31308
|
+
const H0 = _0.get(t0.texture);
|
|
31309
31309
|
h0.framebufferTexture2D(h0.FRAMEBUFFER, h0.COLOR_ATTACHMENT0, h0.TEXTURE_CUBE_MAP_POSITIVE_X + d0, H0.__webglTexture, u0);
|
|
31310
|
-
} else if (
|
|
31311
|
-
const H0 =
|
|
31310
|
+
} else if (R0) {
|
|
31311
|
+
const H0 = _0.get(t0.texture), $0 = d0;
|
|
31312
31312
|
h0.framebufferTextureLayer(h0.FRAMEBUFFER, h0.COLOR_ATTACHMENT0, H0.__webglTexture, u0, $0);
|
|
31313
31313
|
} else if (t0 !== null && u0 !== 0) {
|
|
31314
|
-
const H0 =
|
|
31314
|
+
const H0 = _0.get(t0.texture);
|
|
31315
31315
|
h0.framebufferTexture2D(h0.FRAMEBUFFER, h0.COLOR_ATTACHMENT0, h0.TEXTURE_2D, H0.__webglTexture, u0);
|
|
31316
31316
|
}
|
|
31317
31317
|
Ft = -1;
|
|
31318
|
-
}, this.readRenderTargetPixels = function(t0, d0, u0, S0, m0, M0,
|
|
31318
|
+
}, this.readRenderTargetPixels = function(t0, d0, u0, S0, m0, M0, R0) {
|
|
31319
31319
|
if (!(t0 && t0.isWebGLRenderTarget)) {
|
|
31320
31320
|
console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
|
|
31321
31321
|
return;
|
|
31322
31322
|
}
|
|
31323
|
-
let V0 =
|
|
31324
|
-
if (t0.isWebGLCubeRenderTarget &&
|
|
31323
|
+
let V0 = _0.get(t0).__webglFramebuffer;
|
|
31324
|
+
if (t0.isWebGLCubeRenderTarget && R0 !== void 0 && (V0 = V0[R0]), V0) {
|
|
31325
31325
|
A0.bindFramebuffer(h0.FRAMEBUFFER, V0);
|
|
31326
31326
|
try {
|
|
31327
31327
|
const H0 = t0.texture, $0 = H0.format, Q0 = H0.type;
|
|
@@ -31335,16 +31335,16 @@ class WebGLRenderer {
|
|
|
31335
31335
|
}
|
|
31336
31336
|
d0 >= 0 && d0 <= t0.width - S0 && u0 >= 0 && u0 <= t0.height - m0 && h0.readPixels(d0, u0, S0, m0, zi.convert($0), zi.convert(Q0), M0);
|
|
31337
31337
|
} finally {
|
|
31338
|
-
const H0 = Pt !== null ?
|
|
31338
|
+
const H0 = Pt !== null ? _0.get(Pt).__webglFramebuffer : null;
|
|
31339
31339
|
A0.bindFramebuffer(h0.FRAMEBUFFER, H0);
|
|
31340
31340
|
}
|
|
31341
31341
|
}
|
|
31342
|
-
}, this.readRenderTargetPixelsAsync = function(t0, d0, u0, S0, m0, M0,
|
|
31342
|
+
}, this.readRenderTargetPixelsAsync = function(t0, d0, u0, S0, m0, M0, R0) {
|
|
31343
31343
|
return U0(this, null, function* () {
|
|
31344
31344
|
if (!(t0 && t0.isWebGLRenderTarget))
|
|
31345
31345
|
throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
|
|
31346
|
-
let V0 =
|
|
31347
|
-
if (t0.isWebGLCubeRenderTarget &&
|
|
31346
|
+
let V0 = _0.get(t0).__webglFramebuffer;
|
|
31347
|
+
if (t0.isWebGLCubeRenderTarget && R0 !== void 0 && (V0 = V0[R0]), V0)
|
|
31348
31348
|
if (d0 >= 0 && d0 <= t0.width - S0 && u0 >= 0 && u0 <= t0.height - m0) {
|
|
31349
31349
|
A0.bindFramebuffer(h0.FRAMEBUFFER, V0);
|
|
31350
31350
|
const H0 = t0.texture, $0 = H0.format, Q0 = H0.type;
|
|
@@ -31354,7 +31354,7 @@ class WebGLRenderer {
|
|
|
31354
31354
|
throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");
|
|
31355
31355
|
const yi = h0.createBuffer();
|
|
31356
31356
|
h0.bindBuffer(h0.PIXEL_PACK_BUFFER, yi), h0.bufferData(h0.PIXEL_PACK_BUFFER, M0.byteLength, h0.STREAM_READ), h0.readPixels(d0, u0, S0, m0, zi.convert($0), zi.convert(Q0), 0);
|
|
31357
|
-
const gi = Pt !== null ?
|
|
31357
|
+
const gi = Pt !== null ? _0.get(Pt).__webglFramebuffer : null;
|
|
31358
31358
|
A0.bindFramebuffer(h0.FRAMEBUFFER, gi);
|
|
31359
31359
|
const Li = h0.fenceSync(h0.SYNC_GPU_COMMANDS_COMPLETE, 0);
|
|
31360
31360
|
return h0.flush(), yield probeAsync(h0, Li, 4), h0.bindBuffer(h0.PIXEL_PACK_BUFFER, yi), h0.getBufferSubData(h0.PIXEL_PACK_BUFFER, 0, M0), h0.deleteBuffer(yi), h0.deleteSync(Li), M0;
|
|
@@ -31362,19 +31362,19 @@ class WebGLRenderer {
|
|
|
31362
31362
|
throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.");
|
|
31363
31363
|
});
|
|
31364
31364
|
}, this.copyFramebufferToTexture = function(t0, d0 = null, u0 = 0) {
|
|
31365
|
-
const S0 = Math.pow(2, -u0), m0 = Math.floor(t0.image.width * S0), M0 = Math.floor(t0.image.height * S0),
|
|
31366
|
-
a0.setTexture2D(t0, 0), h0.copyTexSubImage2D(h0.TEXTURE_2D, u0, 0, 0,
|
|
31365
|
+
const S0 = Math.pow(2, -u0), m0 = Math.floor(t0.image.width * S0), M0 = Math.floor(t0.image.height * S0), R0 = d0 !== null ? d0.x : 0, V0 = d0 !== null ? d0.y : 0;
|
|
31366
|
+
a0.setTexture2D(t0, 0), h0.copyTexSubImage2D(h0.TEXTURE_2D, u0, 0, 0, R0, V0, m0, M0), A0.unbindTexture();
|
|
31367
31367
|
};
|
|
31368
31368
|
const c0 = h0.createFramebuffer(), g0 = h0.createFramebuffer();
|
|
31369
31369
|
this.copyTextureToTexture = function(t0, d0, u0 = null, S0 = null, m0 = 0, M0 = null) {
|
|
31370
31370
|
M0 === null && (m0 !== 0 ? (warnOnce("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), M0 = m0, m0 = 0) : M0 = 0);
|
|
31371
|
-
let
|
|
31371
|
+
let R0, V0, H0, $0, Q0, yi, gi, Li, Wi;
|
|
31372
31372
|
const Ai = t0.isCompressedTexture ? t0.mipmaps[M0] : t0.image;
|
|
31373
31373
|
if (u0 !== null)
|
|
31374
|
-
|
|
31374
|
+
R0 = u0.max.x - u0.min.x, V0 = u0.max.y - u0.min.y, H0 = u0.isBox3 ? u0.max.z - u0.min.z : 1, $0 = u0.min.x, Q0 = u0.min.y, yi = u0.isBox3 ? u0.min.z : 0;
|
|
31375
31375
|
else {
|
|
31376
31376
|
const rn = Math.pow(2, -m0);
|
|
31377
|
-
|
|
31377
|
+
R0 = Math.floor(Ai.width * rn), V0 = Math.floor(Ai.height * rn), t0.isDataArrayTexture ? H0 = Ai.depth : t0.isData3DTexture ? H0 = Math.floor(Ai.depth * rn) : H0 = 1, $0 = 0, Q0 = 0, yi = 0;
|
|
31378
31378
|
}
|
|
31379
31379
|
S0 !== null ? (gi = S0.x, Li = S0.y, Wi = S0.z) : (gi = 0, Li = 0, Wi = 0);
|
|
31380
31380
|
const ki = zi.convert(d0.format), Vi = zi.convert(d0.type);
|
|
@@ -31384,24 +31384,24 @@ class WebGLRenderer {
|
|
|
31384
31384
|
h0.pixelStorei(h0.UNPACK_ROW_LENGTH, Ai.width), h0.pixelStorei(h0.UNPACK_IMAGE_HEIGHT, Ai.height), h0.pixelStorei(h0.UNPACK_SKIP_PIXELS, $0), h0.pixelStorei(h0.UNPACK_SKIP_ROWS, Q0), h0.pixelStorei(h0.UNPACK_SKIP_IMAGES, yi);
|
|
31385
31385
|
const Hi = t0.isDataArrayTexture || t0.isData3DTexture, en = d0.isDataArrayTexture || d0.isData3DTexture;
|
|
31386
31386
|
if (t0.isDepthTexture) {
|
|
31387
|
-
const rn =
|
|
31387
|
+
const rn = _0.get(t0), $i = _0.get(d0), nn = _0.get(rn.__renderTarget), Rn = _0.get($i.__renderTarget);
|
|
31388
31388
|
A0.bindFramebuffer(h0.READ_FRAMEBUFFER, nn.__webglFramebuffer), A0.bindFramebuffer(h0.DRAW_FRAMEBUFFER, Rn.__webglFramebuffer);
|
|
31389
31389
|
for (let dn = 0; dn < H0; dn++)
|
|
31390
|
-
Hi && (h0.framebufferTextureLayer(h0.READ_FRAMEBUFFER, h0.COLOR_ATTACHMENT0,
|
|
31390
|
+
Hi && (h0.framebufferTextureLayer(h0.READ_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, _0.get(t0).__webglTexture, m0, yi + dn), h0.framebufferTextureLayer(h0.DRAW_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, _0.get(d0).__webglTexture, M0, Wi + dn)), h0.blitFramebuffer($0, Q0, R0, V0, gi, Li, R0, V0, h0.DEPTH_BUFFER_BIT, h0.NEAREST);
|
|
31391
31391
|
A0.bindFramebuffer(h0.READ_FRAMEBUFFER, null), A0.bindFramebuffer(h0.DRAW_FRAMEBUFFER, null);
|
|
31392
|
-
} else if (m0 !== 0 || t0.isRenderTargetTexture ||
|
|
31393
|
-
const rn =
|
|
31392
|
+
} else if (m0 !== 0 || t0.isRenderTargetTexture || _0.has(t0)) {
|
|
31393
|
+
const rn = _0.get(t0), $i = _0.get(d0);
|
|
31394
31394
|
A0.bindFramebuffer(h0.READ_FRAMEBUFFER, c0), A0.bindFramebuffer(h0.DRAW_FRAMEBUFFER, g0);
|
|
31395
31395
|
for (let nn = 0; nn < H0; nn++)
|
|
31396
|
-
Hi ? h0.framebufferTextureLayer(h0.READ_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, rn.__webglTexture, m0, yi + nn) : h0.framebufferTexture2D(h0.READ_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, h0.TEXTURE_2D, rn.__webglTexture, m0), en ? h0.framebufferTextureLayer(h0.DRAW_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, $i.__webglTexture, M0, Wi + nn) : h0.framebufferTexture2D(h0.DRAW_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, h0.TEXTURE_2D, $i.__webglTexture, M0), m0 !== 0 ? h0.blitFramebuffer($0, Q0,
|
|
31396
|
+
Hi ? h0.framebufferTextureLayer(h0.READ_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, rn.__webglTexture, m0, yi + nn) : h0.framebufferTexture2D(h0.READ_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, h0.TEXTURE_2D, rn.__webglTexture, m0), en ? h0.framebufferTextureLayer(h0.DRAW_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, $i.__webglTexture, M0, Wi + nn) : h0.framebufferTexture2D(h0.DRAW_FRAMEBUFFER, h0.COLOR_ATTACHMENT0, h0.TEXTURE_2D, $i.__webglTexture, M0), m0 !== 0 ? h0.blitFramebuffer($0, Q0, R0, V0, gi, Li, R0, V0, h0.COLOR_BUFFER_BIT, h0.NEAREST) : en ? h0.copyTexSubImage3D(Di, M0, gi, Li, Wi + nn, $0, Q0, R0, V0) : h0.copyTexSubImage2D(Di, M0, gi, Li, $0, Q0, R0, V0);
|
|
31397
31397
|
A0.bindFramebuffer(h0.READ_FRAMEBUFFER, null), A0.bindFramebuffer(h0.DRAW_FRAMEBUFFER, null);
|
|
31398
31398
|
} else
|
|
31399
|
-
en ? t0.isDataTexture || t0.isData3DTexture ? h0.texSubImage3D(Di, M0, gi, Li, Wi,
|
|
31399
|
+
en ? t0.isDataTexture || t0.isData3DTexture ? h0.texSubImage3D(Di, M0, gi, Li, Wi, R0, V0, H0, ki, Vi, Ai.data) : d0.isCompressedArrayTexture ? h0.compressedTexSubImage3D(Di, M0, gi, Li, Wi, R0, V0, H0, ki, Ai.data) : h0.texSubImage3D(Di, M0, gi, Li, Wi, R0, V0, H0, ki, Vi, Ai) : t0.isDataTexture ? h0.texSubImage2D(h0.TEXTURE_2D, M0, gi, Li, R0, V0, ki, Vi, Ai.data) : t0.isCompressedTexture ? h0.compressedTexSubImage2D(h0.TEXTURE_2D, M0, gi, Li, Ai.width, Ai.height, ki, Ai.data) : h0.texSubImage2D(h0.TEXTURE_2D, M0, gi, Li, R0, V0, ki, Vi, Ai);
|
|
31400
31400
|
h0.pixelStorei(h0.UNPACK_ROW_LENGTH, Pi), h0.pixelStorei(h0.UNPACK_IMAGE_HEIGHT, Qi), h0.pixelStorei(h0.UNPACK_SKIP_PIXELS, tn), h0.pixelStorei(h0.UNPACK_SKIP_ROWS, Ji), h0.pixelStorei(h0.UNPACK_SKIP_IMAGES, Oi), M0 === 0 && d0.generateMipmaps && h0.generateMipmap(Di), A0.unbindTexture();
|
|
31401
31401
|
}, this.copyTextureToTexture3D = function(t0, d0, u0 = null, S0 = null, m0 = 0) {
|
|
31402
31402
|
return warnOnce('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'), this.copyTextureToTexture(t0, d0, u0, S0, m0);
|
|
31403
31403
|
}, this.initRenderTarget = function(t0) {
|
|
31404
|
-
|
|
31404
|
+
_0.get(t0).__webglFramebuffer === void 0 && a0.setupRenderTarget(t0);
|
|
31405
31405
|
}, this.initTexture = function(t0) {
|
|
31406
31406
|
t0.isCubeTexture ? a0.setTextureCube(t0, 0) : t0.isData3DTexture ? a0.setTexture3D(t0, 0) : t0.isDataArrayTexture || t0.isCompressedArrayTexture ? a0.setTexture2DArray(t0, 0) : a0.setTexture2D(t0, 0), A0.unbindTexture();
|
|
31407
31407
|
}, this.resetState = function() {
|
|
@@ -38751,17 +38751,17 @@ class SimplexNoise {
|
|
|
38751
38751
|
noise4d(t, r, d, g) {
|
|
38752
38752
|
const v = this.grad4, C = this.simplex, w = this.perm, I = (Math.sqrt(5) - 1) / 4, O = (5 - Math.sqrt(5)) / 20;
|
|
38753
38753
|
let ye, Se, Pe, Ne, ke;
|
|
38754
|
-
const ht = (t + r + d + g) * I, He = Math.floor(t + ht), Fe = Math.floor(r + ht), at = Math.floor(d + ht), ct = Math.floor(g + ht), xt = (He + Fe + at + ct) * O, Gt = He - xt, Lt = Fe - xt, Wt = at - xt, Pt = ct - xt, Ft = t - Gt, kt = r - Lt, Kt = d - Wt, i0 = g - Pt, r0 = Ft > kt ? 32 : 0, l0 = Ft > Kt ? 16 : 0, n0 = kt > Kt ? 8 : 0, Ut = Ft > i0 ? 4 : 0, e0 = kt > i0 ? 2 : 0, Yt = Kt > i0 ? 1 : 0, o0 = r0 + l0 + n0 + Ut + e0 + Yt, b0 = C[o0][0] >= 3 ? 1 : 0, f0 = C[o0][1] >= 3 ? 1 : 0, P0 = C[o0][2] >= 3 ? 1 : 0, q0 = C[o0][3] >= 3 ? 1 : 0, G0 = C[o0][0] >= 2 ? 1 : 0, I0 = C[o0][1] >= 2 ? 1 : 0, F0 = C[o0][2] >= 2 ? 1 : 0, D0 = C[o0][3] >= 2 ? 1 : 0, Si = C[o0][0] >= 1 ? 1 : 0, Ti = C[o0][1] >= 1 ? 1 : 0, Mi = C[o0][2] >= 1 ? 1 : 0, Fi = C[o0][3] >= 1 ? 1 : 0, Ni = Ft - b0 + O, B0 = kt - f0 + O, h0 = Kt - P0 + O, xi = i0 - q0 + O, O0 = Ft - G0 + 2 * O, J0 = kt - I0 + 2 * O, A0 = Kt - F0 + 2 * O, N0 = i0 - D0 + 2 * O,
|
|
38754
|
+
const ht = (t + r + d + g) * I, He = Math.floor(t + ht), Fe = Math.floor(r + ht), at = Math.floor(d + ht), ct = Math.floor(g + ht), xt = (He + Fe + at + ct) * O, Gt = He - xt, Lt = Fe - xt, Wt = at - xt, Pt = ct - xt, Ft = t - Gt, kt = r - Lt, Kt = d - Wt, i0 = g - Pt, r0 = Ft > kt ? 32 : 0, l0 = Ft > Kt ? 16 : 0, n0 = kt > Kt ? 8 : 0, Ut = Ft > i0 ? 4 : 0, e0 = kt > i0 ? 2 : 0, Yt = Kt > i0 ? 1 : 0, o0 = r0 + l0 + n0 + Ut + e0 + Yt, b0 = C[o0][0] >= 3 ? 1 : 0, f0 = C[o0][1] >= 3 ? 1 : 0, P0 = C[o0][2] >= 3 ? 1 : 0, q0 = C[o0][3] >= 3 ? 1 : 0, G0 = C[o0][0] >= 2 ? 1 : 0, I0 = C[o0][1] >= 2 ? 1 : 0, F0 = C[o0][2] >= 2 ? 1 : 0, D0 = C[o0][3] >= 2 ? 1 : 0, Si = C[o0][0] >= 1 ? 1 : 0, Ti = C[o0][1] >= 1 ? 1 : 0, Mi = C[o0][2] >= 1 ? 1 : 0, Fi = C[o0][3] >= 1 ? 1 : 0, Ni = Ft - b0 + O, B0 = kt - f0 + O, h0 = Kt - P0 + O, xi = i0 - q0 + O, O0 = Ft - G0 + 2 * O, J0 = kt - I0 + 2 * O, A0 = Kt - F0 + 2 * O, N0 = i0 - D0 + 2 * O, _0 = Ft - Si + 3 * O, a0 = kt - Ti + 3 * O, s0 = Kt - Mi + 3 * O, v0 = i0 - Fi + 3 * O, C0 = Ft - 1 + 4 * O, E0 = kt - 1 + 4 * O, w0 = Kt - 1 + 4 * O, vi = i0 - 1 + 4 * O, ui = He & 255, Ci = Fe & 255, Ei = at & 255, j0 = ct & 255, Xi = w[ui + w[Ci + w[Ei + w[j0]]]] % 32, wi = w[ui + b0 + w[Ci + f0 + w[Ei + P0 + w[j0 + q0]]]] % 32, Ii = w[ui + G0 + w[Ci + I0 + w[Ei + F0 + w[j0 + D0]]]] % 32, Zi = w[ui + Si + w[Ci + Ti + w[Ei + Mi + w[j0 + Fi]]]] % 32, Yi = w[ui + 1 + w[Ci + 1 + w[Ei + 1 + w[j0 + 1]]]] % 32;
|
|
38755
38755
|
let zi = 0.6 - Ft * Ft - kt * kt - Kt * Kt - i0 * i0;
|
|
38756
38756
|
zi < 0 ? ye = 0 : (zi *= zi, ye = zi * zi * this._dot4(v[Xi], Ft, kt, Kt, i0));
|
|
38757
38757
|
let Ki = 0.6 - Ni * Ni - B0 * B0 - h0 * h0 - xi * xi;
|
|
38758
38758
|
Ki < 0 ? Se = 0 : (Ki *= Ki, Se = Ki * Ki * this._dot4(v[wi], Ni, B0, h0, xi));
|
|
38759
38759
|
let L0 = 0.6 - O0 * O0 - J0 * J0 - A0 * A0 - N0 * N0;
|
|
38760
38760
|
L0 < 0 ? Pe = 0 : (L0 *= L0, Pe = L0 * L0 * this._dot4(v[Ii], O0, J0, A0, N0));
|
|
38761
|
-
let k0 = 0.6 -
|
|
38762
|
-
k0 < 0 ? Ne = 0 : (k0 *= k0, Ne = k0 * k0 * this._dot4(v[Zi],
|
|
38763
|
-
let K0 = 0.6 -
|
|
38764
|
-
return K0 < 0 ? ke = 0 : (K0 *= K0, ke = K0 * K0 * this._dot4(v[Yi],
|
|
38761
|
+
let k0 = 0.6 - _0 * _0 - a0 * a0 - s0 * s0 - v0 * v0;
|
|
38762
|
+
k0 < 0 ? Ne = 0 : (k0 *= k0, Ne = k0 * k0 * this._dot4(v[Zi], _0, a0, s0, v0));
|
|
38763
|
+
let K0 = 0.6 - C0 * C0 - E0 * E0 - w0 * w0 - vi * vi;
|
|
38764
|
+
return K0 < 0 ? ke = 0 : (K0 *= K0, ke = K0 * K0 * this._dot4(v[Yi], C0, E0, w0, vi)), 27 * (ye + Se + Pe + Ne + ke);
|
|
38765
38765
|
}
|
|
38766
38766
|
// private
|
|
38767
38767
|
_dot(t, r, d) {
|
|
@@ -45228,8 +45228,8 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45228
45228
|
for (; t0 <= d0; t0++) {
|
|
45229
45229
|
if (S0.value - c0.value > g0) return !1;
|
|
45230
45230
|
r0(6, m0, M0, qt, S0);
|
|
45231
|
-
const
|
|
45232
|
-
if (m0 = i0.c, M0 = i0.lc, u0[t0] =
|
|
45231
|
+
const R0 = i0.l;
|
|
45232
|
+
if (m0 = i0.c, M0 = i0.lc, u0[t0] = R0, R0 == 63) {
|
|
45233
45233
|
if (S0.value - c0.value > g0)
|
|
45234
45234
|
throw new Error("Something wrong with hufUnpackEncTable");
|
|
45235
45235
|
r0(8, m0, M0, qt, S0);
|
|
@@ -45238,8 +45238,8 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45238
45238
|
throw new Error("Something wrong with hufUnpackEncTable");
|
|
45239
45239
|
for (; V0--; ) u0[t0++] = 0;
|
|
45240
45240
|
t0--;
|
|
45241
|
-
} else if (
|
|
45242
|
-
let V0 =
|
|
45241
|
+
} else if (R0 >= 59) {
|
|
45242
|
+
let V0 = R0 - 59 + 2;
|
|
45243
45243
|
if (t0 + V0 > d0 + 1)
|
|
45244
45244
|
throw new Error("Something wrong with hufUnpackEncTable");
|
|
45245
45245
|
for (; V0--; ) u0[t0++] = 0;
|
|
@@ -45291,11 +45291,11 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45291
45291
|
function q0(qt, c0, g0, t0, d0, u0, S0, m0, M0) {
|
|
45292
45292
|
if (qt == c0) {
|
|
45293
45293
|
t0 < 8 && (f0(g0, t0, d0, u0), g0 = b0.c, t0 = b0.lc), t0 -= 8;
|
|
45294
|
-
let
|
|
45295
|
-
if (
|
|
45294
|
+
let R0 = g0 >> t0;
|
|
45295
|
+
if (R0 = new Uint8Array([R0])[0], m0.value + R0 > M0)
|
|
45296
45296
|
return !1;
|
|
45297
45297
|
const V0 = S0[m0.value - 1];
|
|
45298
|
-
for (;
|
|
45298
|
+
for (; R0-- > 0; )
|
|
45299
45299
|
S0[m0.value++] = V0;
|
|
45300
45300
|
} else if (m0.value < M0)
|
|
45301
45301
|
S0[m0.value++] = qt;
|
|
@@ -45321,11 +45321,11 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45321
45321
|
}
|
|
45322
45322
|
function Ti(qt, c0, g0, t0, d0, u0, S0) {
|
|
45323
45323
|
const m0 = S0 < 16384, M0 = g0 > d0 ? d0 : g0;
|
|
45324
|
-
let
|
|
45325
|
-
for (;
|
|
45326
|
-
for (
|
|
45324
|
+
let R0 = 1, V0, H0;
|
|
45325
|
+
for (; R0 <= M0; ) R0 <<= 1;
|
|
45326
|
+
for (R0 >>= 1, V0 = R0, R0 >>= 1; R0 >= 1; ) {
|
|
45327
45327
|
H0 = 0;
|
|
45328
|
-
const $0 = H0 + u0 * (d0 - V0), Q0 = u0 *
|
|
45328
|
+
const $0 = H0 + u0 * (d0 - V0), Q0 = u0 * R0, yi = u0 * V0, gi = t0 * R0, Li = t0 * V0;
|
|
45329
45329
|
let Wi, Ai, ki, Vi;
|
|
45330
45330
|
for (; H0 <= $0; H0 += yi) {
|
|
45331
45331
|
let Di = H0;
|
|
@@ -45334,12 +45334,12 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45334
45334
|
const Qi = Di + gi, tn = Di + Q0, Ji = tn + gi;
|
|
45335
45335
|
m0 ? (D0(qt[Di + c0], qt[tn + c0]), Wi = F0.a, ki = F0.b, D0(qt[Qi + c0], qt[Ji + c0]), Ai = F0.a, Vi = F0.b, D0(Wi, Ai), qt[Di + c0] = F0.a, qt[Qi + c0] = F0.b, D0(ki, Vi), qt[tn + c0] = F0.a, qt[Ji + c0] = F0.b) : (Si(qt[Di + c0], qt[tn + c0]), Wi = F0.a, ki = F0.b, Si(qt[Qi + c0], qt[Ji + c0]), Ai = F0.a, Vi = F0.b, Si(Wi, Ai), qt[Di + c0] = F0.a, qt[Qi + c0] = F0.b, Si(ki, Vi), qt[tn + c0] = F0.a, qt[Ji + c0] = F0.b);
|
|
45336
45336
|
}
|
|
45337
|
-
if (g0 &
|
|
45337
|
+
if (g0 & R0) {
|
|
45338
45338
|
const Qi = Di + Q0;
|
|
45339
45339
|
m0 ? D0(qt[Di + c0], qt[Qi + c0]) : Si(qt[Di + c0], qt[Qi + c0]), Wi = F0.a, qt[Qi + c0] = F0.b, qt[Di + c0] = Wi;
|
|
45340
45340
|
}
|
|
45341
45341
|
}
|
|
45342
|
-
if (d0 &
|
|
45342
|
+
if (d0 & R0) {
|
|
45343
45343
|
let Di = H0;
|
|
45344
45344
|
const Pi = H0 + t0 * (g0 - V0);
|
|
45345
45345
|
for (; Di <= Pi; Di += Li) {
|
|
@@ -45347,18 +45347,18 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45347
45347
|
m0 ? D0(qt[Di + c0], qt[Qi + c0]) : Si(qt[Di + c0], qt[Qi + c0]), Wi = F0.a, qt[Qi + c0] = F0.b, qt[Di + c0] = Wi;
|
|
45348
45348
|
}
|
|
45349
45349
|
}
|
|
45350
|
-
V0 =
|
|
45350
|
+
V0 = R0, R0 >>= 1;
|
|
45351
45351
|
}
|
|
45352
45352
|
return H0;
|
|
45353
45353
|
}
|
|
45354
45354
|
function Mi(qt, c0, g0, t0, d0, u0, S0, m0, M0) {
|
|
45355
|
-
let
|
|
45355
|
+
let R0 = 0, V0 = 0;
|
|
45356
45356
|
const H0 = S0, $0 = Math.trunc(t0.value + (d0 + 7) / 8);
|
|
45357
45357
|
for (; t0.value < $0; )
|
|
45358
|
-
for (f0(
|
|
45359
|
-
const yi =
|
|
45358
|
+
for (f0(R0, V0, g0, t0), R0 = b0.c, V0 = b0.lc; V0 >= 14; ) {
|
|
45359
|
+
const yi = R0 >> V0 - 14 & 16383, gi = c0[yi];
|
|
45360
45360
|
if (gi.len)
|
|
45361
|
-
V0 -= gi.len, q0(gi.lit, u0,
|
|
45361
|
+
V0 -= gi.len, q0(gi.lit, u0, R0, V0, g0, t0, m0, M0, H0), R0 = P0.c, V0 = P0.lc;
|
|
45362
45362
|
else {
|
|
45363
45363
|
if (!gi.p)
|
|
45364
45364
|
throw new Error("hufDecode issues");
|
|
@@ -45366,9 +45366,9 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45366
45366
|
for (Li = 0; Li < gi.lit; Li++) {
|
|
45367
45367
|
const Wi = e0(qt[gi.p[Li]]);
|
|
45368
45368
|
for (; V0 < Wi && t0.value < $0; )
|
|
45369
|
-
f0(
|
|
45370
|
-
if (V0 >= Wi && Yt(qt[gi.p[Li]]) == (
|
|
45371
|
-
V0 -= Wi, q0(gi.p[Li], u0,
|
|
45369
|
+
f0(R0, V0, g0, t0), R0 = b0.c, V0 = b0.lc;
|
|
45370
|
+
if (V0 >= Wi && Yt(qt[gi.p[Li]]) == (R0 >> V0 - Wi & (1 << Wi) - 1)) {
|
|
45371
|
+
V0 -= Wi, q0(gi.p[Li], u0, R0, V0, g0, t0, m0, M0, H0), R0 = P0.c, V0 = P0.lc;
|
|
45372
45372
|
break;
|
|
45373
45373
|
}
|
|
45374
45374
|
}
|
|
@@ -45377,27 +45377,27 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45377
45377
|
}
|
|
45378
45378
|
}
|
|
45379
45379
|
const Q0 = 8 - d0 & 7;
|
|
45380
|
-
for (
|
|
45381
|
-
const yi = c0[
|
|
45380
|
+
for (R0 >>= Q0, V0 -= Q0; V0 > 0; ) {
|
|
45381
|
+
const yi = c0[R0 << 14 - V0 & 16383];
|
|
45382
45382
|
if (yi.len)
|
|
45383
|
-
V0 -= yi.len, q0(yi.lit, u0,
|
|
45383
|
+
V0 -= yi.len, q0(yi.lit, u0, R0, V0, g0, t0, m0, M0, H0), R0 = P0.c, V0 = P0.lc;
|
|
45384
45384
|
else
|
|
45385
45385
|
throw new Error("hufDecode issues");
|
|
45386
45386
|
}
|
|
45387
45387
|
return !0;
|
|
45388
45388
|
}
|
|
45389
45389
|
function Fi(qt, c0, g0, t0, d0, u0) {
|
|
45390
|
-
const S0 = { value: 0 }, m0 = g0.value, M0 = Ii(c0, g0),
|
|
45390
|
+
const S0 = { value: 0 }, m0 = g0.value, M0 = Ii(c0, g0), R0 = Ii(c0, g0);
|
|
45391
45391
|
g0.value += 4;
|
|
45392
45392
|
const V0 = Ii(c0, g0);
|
|
45393
|
-
if (g0.value += 4, M0 < 0 || M0 >= 65537 ||
|
|
45393
|
+
if (g0.value += 4, M0 < 0 || M0 >= 65537 || R0 < 0 || R0 >= 65537)
|
|
45394
45394
|
throw new Error("Something wrong with HUF_ENCSIZE");
|
|
45395
45395
|
const H0 = new Array(65537), $0 = new Array(16384);
|
|
45396
45396
|
Kt($0);
|
|
45397
45397
|
const Q0 = t0 - (g0.value - m0);
|
|
45398
|
-
if (Ut(qt, g0, Q0, M0,
|
|
45398
|
+
if (Ut(qt, g0, Q0, M0, R0, H0), V0 > 8 * (t0 - (g0.value - m0)))
|
|
45399
45399
|
throw new Error("Something wrong with hufUncompress");
|
|
45400
|
-
o0(H0, M0,
|
|
45400
|
+
o0(H0, M0, R0, $0), Mi(H0, $0, qt, g0, V0, R0, u0, d0, S0);
|
|
45401
45401
|
}
|
|
45402
45402
|
function Ni(qt, c0, g0) {
|
|
45403
45403
|
for (let t0 = 0; t0 < g0; ++t0)
|
|
@@ -45439,8 +45439,8 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45439
45439
|
}
|
|
45440
45440
|
function O0(qt, c0, g0, t0, d0, u0) {
|
|
45441
45441
|
let S0 = new DataView(u0.buffer);
|
|
45442
|
-
const m0 = g0[qt.idx[0]].width, M0 = g0[qt.idx[0]].height,
|
|
45443
|
-
for (let Pi = 0; Pi <
|
|
45442
|
+
const m0 = g0[qt.idx[0]].width, M0 = g0[qt.idx[0]].height, R0 = 3, V0 = Math.floor(m0 / 8), H0 = Math.ceil(m0 / 8), $0 = Math.ceil(M0 / 8), Q0 = m0 - (H0 - 1) * 8, yi = M0 - ($0 - 1) * 8, gi = { value: 0 }, Li = new Array(R0), Wi = new Array(R0), Ai = new Array(R0), ki = new Array(R0), Vi = new Array(R0);
|
|
45443
|
+
for (let Pi = 0; Pi < R0; ++Pi)
|
|
45444
45444
|
Vi[Pi] = c0[qt.idx[Pi]], Li[Pi] = Pi < 1 ? 0 : Li[Pi - 1] + H0 * $0, Wi[Pi] = new Float32Array(64), Ai[Pi] = new Uint16Array(64), ki[Pi] = new Uint16Array(H0 * 64);
|
|
45445
45445
|
for (let Pi = 0; Pi < $0; ++Pi) {
|
|
45446
45446
|
let Qi = 8;
|
|
@@ -45448,14 +45448,14 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45448
45448
|
let tn = 8;
|
|
45449
45449
|
for (let Oi = 0; Oi < H0; ++Oi) {
|
|
45450
45450
|
Oi == H0 - 1 && (tn = Q0);
|
|
45451
|
-
for (let Hi = 0; Hi <
|
|
45451
|
+
for (let Hi = 0; Hi < R0; ++Hi)
|
|
45452
45452
|
Ai[Hi].fill(0), Ai[Hi][0] = d0[Li[Hi]++], J0(gi, t0, Ai[Hi]), A0(Ai[Hi], Wi[Hi]), N0(Wi[Hi]);
|
|
45453
|
-
|
|
45454
|
-
for (let Hi = 0; Hi <
|
|
45453
|
+
_0(Wi);
|
|
45454
|
+
for (let Hi = 0; Hi < R0; ++Hi)
|
|
45455
45455
|
a0(Wi[Hi], ki[Hi], Oi * 64);
|
|
45456
45456
|
}
|
|
45457
45457
|
let Ji = 0;
|
|
45458
|
-
for (let Oi = 0; Oi <
|
|
45458
|
+
for (let Oi = 0; Oi < R0; ++Oi) {
|
|
45459
45459
|
const Hi = g0[qt.idx[Oi]].type;
|
|
45460
45460
|
for (let en = 8 * Pi; en < 8 * Pi + Qi; ++en) {
|
|
45461
45461
|
Ji = Vi[Oi][en];
|
|
@@ -45474,7 +45474,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45474
45474
|
}
|
|
45475
45475
|
const Di = new Uint16Array(m0);
|
|
45476
45476
|
S0 = new DataView(u0.buffer);
|
|
45477
|
-
for (let Pi = 0; Pi <
|
|
45477
|
+
for (let Pi = 0; Pi < R0; ++Pi) {
|
|
45478
45478
|
g0[qt.idx[Pi]].decoded = !0;
|
|
45479
45479
|
const Qi = g0[qt.idx[Pi]].type;
|
|
45480
45480
|
if (g0[Pi].type == 2)
|
|
@@ -45496,15 +45496,15 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45496
45496
|
c0[0] = k0(qt[0]), c0[1] = k0(qt[1]), c0[2] = k0(qt[5]), c0[3] = k0(qt[6]), c0[4] = k0(qt[14]), c0[5] = k0(qt[15]), c0[6] = k0(qt[27]), c0[7] = k0(qt[28]), c0[8] = k0(qt[2]), c0[9] = k0(qt[4]), c0[10] = k0(qt[7]), c0[11] = k0(qt[13]), c0[12] = k0(qt[16]), c0[13] = k0(qt[26]), c0[14] = k0(qt[29]), c0[15] = k0(qt[42]), c0[16] = k0(qt[3]), c0[17] = k0(qt[8]), c0[18] = k0(qt[12]), c0[19] = k0(qt[17]), c0[20] = k0(qt[25]), c0[21] = k0(qt[30]), c0[22] = k0(qt[41]), c0[23] = k0(qt[43]), c0[24] = k0(qt[9]), c0[25] = k0(qt[11]), c0[26] = k0(qt[18]), c0[27] = k0(qt[24]), c0[28] = k0(qt[31]), c0[29] = k0(qt[40]), c0[30] = k0(qt[44]), c0[31] = k0(qt[53]), c0[32] = k0(qt[10]), c0[33] = k0(qt[19]), c0[34] = k0(qt[23]), c0[35] = k0(qt[32]), c0[36] = k0(qt[39]), c0[37] = k0(qt[45]), c0[38] = k0(qt[52]), c0[39] = k0(qt[54]), c0[40] = k0(qt[20]), c0[41] = k0(qt[22]), c0[42] = k0(qt[33]), c0[43] = k0(qt[38]), c0[44] = k0(qt[46]), c0[45] = k0(qt[51]), c0[46] = k0(qt[55]), c0[47] = k0(qt[60]), c0[48] = k0(qt[21]), c0[49] = k0(qt[34]), c0[50] = k0(qt[37]), c0[51] = k0(qt[47]), c0[52] = k0(qt[50]), c0[53] = k0(qt[56]), c0[54] = k0(qt[59]), c0[55] = k0(qt[61]), c0[56] = k0(qt[35]), c0[57] = k0(qt[36]), c0[58] = k0(qt[48]), c0[59] = k0(qt[49]), c0[60] = k0(qt[57]), c0[61] = k0(qt[58]), c0[62] = k0(qt[62]), c0[63] = k0(qt[63]);
|
|
45497
45497
|
}
|
|
45498
45498
|
function N0(qt) {
|
|
45499
|
-
const c0 = 0.5 * Math.cos(0.7853975), g0 = 0.5 * Math.cos(3.14159 / 16), t0 = 0.5 * Math.cos(3.14159 / 8), d0 = 0.5 * Math.cos(3 * 3.14159 / 16), u0 = 0.5 * Math.cos(5 * 3.14159 / 16), S0 = 0.5 * Math.cos(3 * 3.14159 / 8), m0 = 0.5 * Math.cos(7 * 3.14159 / 16), M0 = new Array(4),
|
|
45499
|
+
const c0 = 0.5 * Math.cos(0.7853975), g0 = 0.5 * Math.cos(3.14159 / 16), t0 = 0.5 * Math.cos(3.14159 / 8), d0 = 0.5 * Math.cos(3 * 3.14159 / 16), u0 = 0.5 * Math.cos(5 * 3.14159 / 16), S0 = 0.5 * Math.cos(3 * 3.14159 / 8), m0 = 0.5 * Math.cos(7 * 3.14159 / 16), M0 = new Array(4), R0 = new Array(4), V0 = new Array(4), H0 = new Array(4);
|
|
45500
45500
|
for (let $0 = 0; $0 < 8; ++$0) {
|
|
45501
45501
|
const Q0 = $0 * 8;
|
|
45502
|
-
M0[0] = t0 * qt[Q0 + 2], M0[1] = S0 * qt[Q0 + 2], M0[2] = t0 * qt[Q0 + 6], M0[3] = S0 * qt[Q0 + 6],
|
|
45502
|
+
M0[0] = t0 * qt[Q0 + 2], M0[1] = S0 * qt[Q0 + 2], M0[2] = t0 * qt[Q0 + 6], M0[3] = S0 * qt[Q0 + 6], R0[0] = g0 * qt[Q0 + 1] + d0 * qt[Q0 + 3] + u0 * qt[Q0 + 5] + m0 * qt[Q0 + 7], R0[1] = d0 * qt[Q0 + 1] - m0 * qt[Q0 + 3] - g0 * qt[Q0 + 5] - u0 * qt[Q0 + 7], R0[2] = u0 * qt[Q0 + 1] - g0 * qt[Q0 + 3] + m0 * qt[Q0 + 5] + d0 * qt[Q0 + 7], R0[3] = m0 * qt[Q0 + 1] - u0 * qt[Q0 + 3] + d0 * qt[Q0 + 5] - g0 * qt[Q0 + 7], V0[0] = c0 * (qt[Q0 + 0] + qt[Q0 + 4]), V0[3] = c0 * (qt[Q0 + 0] - qt[Q0 + 4]), V0[1] = M0[0] + M0[3], V0[2] = M0[1] - M0[2], H0[0] = V0[0] + V0[1], H0[1] = V0[3] + V0[2], H0[2] = V0[3] - V0[2], H0[3] = V0[0] - V0[1], qt[Q0 + 0] = H0[0] + R0[0], qt[Q0 + 1] = H0[1] + R0[1], qt[Q0 + 2] = H0[2] + R0[2], qt[Q0 + 3] = H0[3] + R0[3], qt[Q0 + 4] = H0[3] - R0[3], qt[Q0 + 5] = H0[2] - R0[2], qt[Q0 + 6] = H0[1] - R0[1], qt[Q0 + 7] = H0[0] - R0[0];
|
|
45503
45503
|
}
|
|
45504
45504
|
for (let $0 = 0; $0 < 8; ++$0)
|
|
45505
|
-
M0[0] = t0 * qt[16 + $0], M0[1] = S0 * qt[16 + $0], M0[2] = t0 * qt[48 + $0], M0[3] = S0 * qt[48 + $0],
|
|
45505
|
+
M0[0] = t0 * qt[16 + $0], M0[1] = S0 * qt[16 + $0], M0[2] = t0 * qt[48 + $0], M0[3] = S0 * qt[48 + $0], R0[0] = g0 * qt[8 + $0] + d0 * qt[24 + $0] + u0 * qt[40 + $0] + m0 * qt[56 + $0], R0[1] = d0 * qt[8 + $0] - m0 * qt[24 + $0] - g0 * qt[40 + $0] - u0 * qt[56 + $0], R0[2] = u0 * qt[8 + $0] - g0 * qt[24 + $0] + m0 * qt[40 + $0] + d0 * qt[56 + $0], R0[3] = m0 * qt[8 + $0] - u0 * qt[24 + $0] + d0 * qt[40 + $0] - g0 * qt[56 + $0], V0[0] = c0 * (qt[$0] + qt[32 + $0]), V0[3] = c0 * (qt[$0] - qt[32 + $0]), V0[1] = M0[0] + M0[3], V0[2] = M0[1] - M0[2], H0[0] = V0[0] + V0[1], H0[1] = V0[3] + V0[2], H0[2] = V0[3] - V0[2], H0[3] = V0[0] - V0[1], qt[0 + $0] = H0[0] + R0[0], qt[8 + $0] = H0[1] + R0[1], qt[16 + $0] = H0[2] + R0[2], qt[24 + $0] = H0[3] + R0[3], qt[32 + $0] = H0[3] - R0[3], qt[40 + $0] = H0[2] - R0[2], qt[48 + $0] = H0[1] - R0[1], qt[56 + $0] = H0[0] - R0[0];
|
|
45506
45506
|
}
|
|
45507
|
-
function
|
|
45507
|
+
function _0(qt) {
|
|
45508
45508
|
for (let c0 = 0; c0 < 64; ++c0) {
|
|
45509
45509
|
const g0 = qt[0][c0], t0 = qt[1][c0], d0 = qt[2][c0];
|
|
45510
45510
|
qt[0][c0] = g0 + 1.5747 * d0, qt[1][c0] = g0 - 0.1873 * t0 - 0.4682 * d0, qt[2][c0] = g0 + 1.8556 * t0;
|
|
@@ -45520,7 +45520,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45520
45520
|
function v0(qt) {
|
|
45521
45521
|
return new DataView(qt.array.buffer, qt.offset.value, qt.size);
|
|
45522
45522
|
}
|
|
45523
|
-
function
|
|
45523
|
+
function C0(qt) {
|
|
45524
45524
|
const c0 = qt.viewer.buffer.slice(qt.offset.value, qt.offset.value + qt.size), g0 = new Uint8Array(xi(c0)), t0 = new Uint8Array(g0.length);
|
|
45525
45525
|
return B0(g0), h0(g0, t0), new DataView(t0.buffer);
|
|
45526
45526
|
}
|
|
@@ -45540,7 +45540,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45540
45540
|
if (m0 <= M0)
|
|
45541
45541
|
for (let yi = 0; yi < M0 - m0 + 1; yi++)
|
|
45542
45542
|
d0[yi + m0] = Yi(c0, g0);
|
|
45543
|
-
const
|
|
45543
|
+
const R0 = new Uint16Array(65536), V0 = kt(d0, R0), H0 = Ii(c0, g0);
|
|
45544
45544
|
Fi(qt.array, c0, g0, H0, t0, u0);
|
|
45545
45545
|
for (let yi = 0; yi < qt.inputChannels.length; ++yi) {
|
|
45546
45546
|
const gi = S0[yi];
|
|
@@ -45555,7 +45555,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45555
45555
|
V0
|
|
45556
45556
|
);
|
|
45557
45557
|
}
|
|
45558
|
-
Ni(
|
|
45558
|
+
Ni(R0, t0, u0);
|
|
45559
45559
|
let $0 = 0;
|
|
45560
45560
|
const Q0 = new Uint8Array(t0.buffer.byteLength);
|
|
45561
45561
|
for (let yi = 0; yi < qt.lines; yi++)
|
|
@@ -45569,7 +45569,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45569
45569
|
const c0 = qt.array.slice(qt.offset.value, qt.offset.value + qt.size), g0 = unzlibSync(c0), t0 = qt.inputChannels.length * qt.lines * qt.columns * qt.totalBytes, d0 = new ArrayBuffer(t0), u0 = new DataView(d0);
|
|
45570
45570
|
let S0 = 0, m0 = 0;
|
|
45571
45571
|
const M0 = new Array(4);
|
|
45572
|
-
for (let
|
|
45572
|
+
for (let R0 = 0; R0 < qt.lines; R0++)
|
|
45573
45573
|
for (let V0 = 0; V0 < qt.inputChannels.length; V0++) {
|
|
45574
45574
|
let H0 = 0;
|
|
45575
45575
|
switch (qt.inputChannels[V0].pixelType) {
|
|
@@ -45623,14 +45623,14 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45623
45623
|
const Li = M0[gi] = {}, Wi = m0[gi];
|
|
45624
45624
|
Li.name = Wi.name, Li.compression = 0, Li.decoded = !1, Li.type = Wi.pixelType, Li.pLinear = Wi.pLinear, Li.width = qt.columns, Li.height = qt.lines;
|
|
45625
45625
|
}
|
|
45626
|
-
const
|
|
45626
|
+
const R0 = {
|
|
45627
45627
|
idx: new Array(3)
|
|
45628
45628
|
};
|
|
45629
45629
|
for (let gi = 0; gi < qt.inputChannels.length; ++gi) {
|
|
45630
45630
|
const Li = M0[gi];
|
|
45631
45631
|
for (let Wi = 0; Wi < u0.length; ++Wi) {
|
|
45632
45632
|
const Ai = u0[Wi];
|
|
45633
|
-
Li.name == Ai.name && (Li.compression = Ai.compression, Ai.index >= 0 && (
|
|
45633
|
+
Li.name == Ai.name && (Li.compression = Ai.compression, Ai.index >= 0 && (R0.idx[Ai.index] = gi), Li.offset = gi);
|
|
45634
45634
|
}
|
|
45635
45635
|
}
|
|
45636
45636
|
let V0, H0, $0;
|
|
@@ -45663,7 +45663,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45663
45663
|
for (let gi = 0; gi < qt.lines; ++gi)
|
|
45664
45664
|
for (let Li = 0; Li < M0.length; ++Li)
|
|
45665
45665
|
yi[Li].push(Q0), Q0 += M0[Li].width * qt.type * 2;
|
|
45666
|
-
O0(
|
|
45666
|
+
O0(R0, yi, M0, V0, H0, t0);
|
|
45667
45667
|
for (let gi = 0; gi < M0.length; ++gi) {
|
|
45668
45668
|
const Li = M0[gi];
|
|
45669
45669
|
if (!Li.decoded)
|
|
@@ -45754,20 +45754,20 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45754
45754
|
for (; g0.value < d0 + t0 - 1; ) {
|
|
45755
45755
|
const S0 = Ci(c0, g0), m0 = wi(qt, g0), M0 = Yi(qt, g0);
|
|
45756
45756
|
g0.value += 3;
|
|
45757
|
-
const
|
|
45757
|
+
const R0 = wi(qt, g0), V0 = wi(qt, g0);
|
|
45758
45758
|
u0.push({
|
|
45759
45759
|
name: S0,
|
|
45760
45760
|
pixelType: m0,
|
|
45761
45761
|
pLinear: M0,
|
|
45762
|
-
xSampling:
|
|
45762
|
+
xSampling: R0,
|
|
45763
45763
|
ySampling: V0
|
|
45764
45764
|
});
|
|
45765
45765
|
}
|
|
45766
45766
|
return g0.value += 1, u0;
|
|
45767
45767
|
}
|
|
45768
45768
|
function _i(qt, c0) {
|
|
45769
|
-
const g0 = Ki(qt, c0), t0 = Ki(qt, c0), d0 = Ki(qt, c0), u0 = Ki(qt, c0), S0 = Ki(qt, c0), m0 = Ki(qt, c0), M0 = Ki(qt, c0),
|
|
45770
|
-
return { redX: g0, redY: t0, greenX: d0, greenY: u0, blueX: S0, blueY: m0, whiteX: M0, whiteY:
|
|
45769
|
+
const g0 = Ki(qt, c0), t0 = Ki(qt, c0), d0 = Ki(qt, c0), u0 = Ki(qt, c0), S0 = Ki(qt, c0), m0 = Ki(qt, c0), M0 = Ki(qt, c0), R0 = Ki(qt, c0);
|
|
45770
|
+
return { redX: g0, redY: t0, greenX: d0, greenY: u0, blueX: S0, blueY: m0, whiteX: M0, whiteY: R0 };
|
|
45771
45771
|
}
|
|
45772
45772
|
function Bi(qt, c0) {
|
|
45773
45773
|
const g0 = [
|
|
@@ -45921,7 +45921,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45921
45921
|
const u0 = qt.columns * qt.totalBytes, m0 = qt.size < qt.lines * u0 ? qt.uncompress(qt) : v0(qt);
|
|
45922
45922
|
c0.value += qt.size;
|
|
45923
45923
|
for (let M0 = 0; M0 < qt.blockHeight; M0++) {
|
|
45924
|
-
const
|
|
45924
|
+
const R0 = t0 * qt.blockHeight, V0 = M0 + qt.scanOrder(R0);
|
|
45925
45925
|
if (V0 >= qt.height) continue;
|
|
45926
45926
|
const H0 = M0 * u0, $0 = (qt.height - 1 - V0) * qt.outLineWidth;
|
|
45927
45927
|
for (let Q0 = 0; Q0 < qt.inputChannels.length; Q0++) {
|
|
@@ -45955,8 +45955,8 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45955
45955
|
if (S0 === "")
|
|
45956
45956
|
u0 = !1;
|
|
45957
45957
|
else {
|
|
45958
|
-
const m0 = Ci(c0, g0), M0 = Ii(qt, g0),
|
|
45959
|
-
|
|
45958
|
+
const m0 = Ci(c0, g0), M0 = Ii(qt, g0), R0 = Ln(qt, c0, g0, m0, M0);
|
|
45959
|
+
R0 === void 0 ? console.warn(`THREE.EXRLoader: Skipped unknown header attribute type '${m0}'.`) : t0[S0] = R0;
|
|
45960
45960
|
}
|
|
45961
45961
|
}
|
|
45962
45962
|
if (d0 & -7)
|
|
@@ -45988,7 +45988,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
45988
45988
|
u0.blockHeight = 1, u0.uncompress = v0;
|
|
45989
45989
|
break;
|
|
45990
45990
|
case "RLE_COMPRESSION":
|
|
45991
|
-
u0.blockHeight = 1, u0.uncompress =
|
|
45991
|
+
u0.blockHeight = 1, u0.uncompress = C0;
|
|
45992
45992
|
break;
|
|
45993
45993
|
case "ZIPS_COMPRESSION":
|
|
45994
45994
|
u0.blockHeight = 1, u0.uncompress = E0;
|
|
@@ -46060,10 +46060,10 @@ class EXRLoader extends DataTextureLoader {
|
|
|
46060
46060
|
console.error("THREE.EXRLoader: unsupported type: ", d0);
|
|
46061
46061
|
break;
|
|
46062
46062
|
}
|
|
46063
|
-
let
|
|
46063
|
+
let R0 = 0;
|
|
46064
46064
|
for (const V0 of qt.channels)
|
|
46065
|
-
u0.decodeChannels[V0.name] !== void 0 && (u0.channelByteOffsets[V0.name] =
|
|
46066
|
-
if (u0.totalBytes =
|
|
46065
|
+
u0.decodeChannels[V0.name] !== void 0 && (u0.channelByteOffsets[V0.name] = R0), R0 += V0.pixelType * 2;
|
|
46066
|
+
if (u0.totalBytes = R0, u0.outLineWidth = u0.width * u0.outputChannels, qt.lineOrder === "INCREASING_Y" ? u0.scanOrder = (V0) => V0 : u0.scanOrder = (V0) => u0.height - 1 - V0, u0.outputChannels == 4 ? (u0.format = RGBAFormat, u0.colorSpace = LinearSRGBColorSpace) : (u0.format = RedFormat, u0.colorSpace = NoColorSpace), qt.spec.singleTile) {
|
|
46067
46067
|
u0.blockHeight = qt.tiles.ySize, u0.blockWidth = qt.tiles.xSize;
|
|
46068
46068
|
const V0 = gn(qt.tiles, u0.width, u0.height), H0 = xn(V0, u0.width, qt.tiles.xSize, qt.tiles.roundingMode), $0 = xn(V0, u0.height, qt.tiles.ySize, qt.tiles.roundingMode);
|
|
46069
46069
|
u0.tileCount = H0[0] * $0[0];
|
|
@@ -48771,8 +48771,8 @@ if (typeof document != "undefined") {
|
|
|
48771
48771
|
var B0 = this.props;
|
|
48772
48772
|
if (e0 === 1 && Yt === 0 && o0 === 0 && b0 === 0 && f0 === 0 && P0 === 1 && q0 === 0 && G0 === 0 && I0 === 0 && F0 === 0 && D0 === 1 && Si === 0)
|
|
48773
48773
|
return B0[12] = B0[12] * e0 + B0[15] * Ti, B0[13] = B0[13] * P0 + B0[15] * Mi, B0[14] = B0[14] * D0 + B0[15] * Fi, B0[15] *= Ni, this._identityCalculated = !1, this;
|
|
48774
|
-
var h0 = B0[0], xi = B0[1], O0 = B0[2], J0 = B0[3], A0 = B0[4], N0 = B0[5],
|
|
48775
|
-
return B0[0] = h0 * e0 + xi * f0 + O0 * I0 + J0 * Ti, B0[1] = h0 * Yt + xi * P0 + O0 * F0 + J0 * Mi, B0[2] = h0 * o0 + xi * q0 + O0 * D0 + J0 * Fi, B0[3] = h0 * b0 + xi * G0 + O0 * Si + J0 * Ni, B0[4] = A0 * e0 + N0 * f0 +
|
|
48774
|
+
var h0 = B0[0], xi = B0[1], O0 = B0[2], J0 = B0[3], A0 = B0[4], N0 = B0[5], _0 = B0[6], a0 = B0[7], s0 = B0[8], v0 = B0[9], C0 = B0[10], E0 = B0[11], w0 = B0[12], vi = B0[13], ui = B0[14], Ci = B0[15];
|
|
48775
|
+
return B0[0] = h0 * e0 + xi * f0 + O0 * I0 + J0 * Ti, B0[1] = h0 * Yt + xi * P0 + O0 * F0 + J0 * Mi, B0[2] = h0 * o0 + xi * q0 + O0 * D0 + J0 * Fi, B0[3] = h0 * b0 + xi * G0 + O0 * Si + J0 * Ni, B0[4] = A0 * e0 + N0 * f0 + _0 * I0 + a0 * Ti, B0[5] = A0 * Yt + N0 * P0 + _0 * F0 + a0 * Mi, B0[6] = A0 * o0 + N0 * q0 + _0 * D0 + a0 * Fi, B0[7] = A0 * b0 + N0 * G0 + _0 * Si + a0 * Ni, B0[8] = s0 * e0 + v0 * f0 + C0 * I0 + E0 * Ti, B0[9] = s0 * Yt + v0 * P0 + C0 * F0 + E0 * Mi, B0[10] = s0 * o0 + v0 * q0 + C0 * D0 + E0 * Fi, B0[11] = s0 * b0 + v0 * G0 + C0 * Si + E0 * Ni, B0[12] = w0 * e0 + vi * f0 + ui * I0 + Ci * Ti, B0[13] = w0 * Yt + vi * P0 + ui * F0 + Ci * Mi, B0[14] = w0 * o0 + vi * q0 + ui * D0 + Ci * Fi, B0[15] = w0 * b0 + vi * G0 + ui * Si + Ci * Ni, this._identityCalculated = !1, this;
|
|
48776
48776
|
}
|
|
48777
48777
|
function He() {
|
|
48778
48778
|
return this._identityCalculated || (this._identity = !(this.props[0] !== 1 || this.props[1] !== 0 || this.props[2] !== 0 || this.props[3] !== 0 || this.props[4] !== 0 || this.props[5] !== 1 || this.props[6] !== 0 || this.props[7] !== 0 || this.props[8] !== 0 || this.props[9] !== 0 || this.props[10] !== 1 || this.props[11] !== 0 || this.props[12] !== 0 || this.props[13] !== 0 || this.props[14] !== 0 || this.props[15] !== 1), this._identityCalculated = !0), this._identity;
|
|
@@ -51152,25 +51152,25 @@ if (typeof document != "undefined") {
|
|
|
51152
51152
|
Se = Pe.length, I = 0, O = 0;
|
|
51153
51153
|
var l0 = m.finalSize * 1.2 * 0.714, n0 = !0, Ut, e0, Yt, o0, b0;
|
|
51154
51154
|
o0 = d.length;
|
|
51155
|
-
var f0, P0 = -1, q0, G0, I0, F0 = ke, D0 = ct, Si = at, Ti = -1, Mi, Fi, Ni, B0, h0, xi, O0, J0, A0 = "", N0 = this.defaultPropsArray,
|
|
51155
|
+
var f0, P0 = -1, q0, G0, I0, F0 = ke, D0 = ct, Si = at, Ti = -1, Mi, Fi, Ni, B0, h0, xi, O0, J0, A0 = "", N0 = this.defaultPropsArray, _0;
|
|
51156
51156
|
if (m.j === 2 || m.j === 1) {
|
|
51157
|
-
var a0 = 0, s0 = 0, v0 = m.j === 2 ? -0.5 : -1,
|
|
51157
|
+
var a0 = 0, s0 = 0, v0 = m.j === 2 ? -0.5 : -1, C0 = 0, E0 = !0;
|
|
51158
51158
|
for (ye = 0; ye < Se; ye += 1)
|
|
51159
51159
|
if (Pe[ye].n) {
|
|
51160
|
-
for (a0 && (a0 += s0);
|
|
51161
|
-
Pe[
|
|
51160
|
+
for (a0 && (a0 += s0); C0 < ye; )
|
|
51161
|
+
Pe[C0].animatorJustifyOffset = a0, C0 += 1;
|
|
51162
51162
|
a0 = 0, E0 = !0;
|
|
51163
51163
|
} else {
|
|
51164
51164
|
for (Yt = 0; Yt < o0; Yt += 1)
|
|
51165
51165
|
Ut = d[Yt].a, Ut.t.propType && (E0 && m.j === 2 && (s0 += Ut.t.v * v0), e0 = d[Yt].s, f0 = e0.getMult(Pe[ye].anIndexes[Yt], g.a[Yt].s.totalChars), f0.length ? a0 += Ut.t.v * f0[0] * v0 : a0 += Ut.t.v * f0 * v0);
|
|
51166
51166
|
E0 = !1;
|
|
51167
51167
|
}
|
|
51168
|
-
for (a0 && (a0 += s0);
|
|
51169
|
-
Pe[
|
|
51168
|
+
for (a0 && (a0 += s0); C0 < ye; )
|
|
51169
|
+
Pe[C0].animatorJustifyOffset = a0, C0 += 1;
|
|
51170
51170
|
}
|
|
51171
51171
|
for (ye = 0; ye < Se; ye += 1) {
|
|
51172
51172
|
if (v.reset(), Mi = 1, Pe[ye].n)
|
|
51173
|
-
I = 0, O += m.yOffset, O += n0 ? 1 : 0, ke = F0, n0 = !1, this._hasMaskedPath && (ct = D0, at = Si, Gt = Lt[ct].points, xt = Gt[at - 1], ht = Gt[at], Wt = ht.partialLength, He = 0), A0 = "", J0 = "", xi = "",
|
|
51173
|
+
I = 0, O += m.yOffset, O += n0 ? 1 : 0, ke = F0, n0 = !1, this._hasMaskedPath && (ct = D0, at = Si, Gt = Lt[ct].points, xt = Gt[at - 1], ht = Gt[at], Wt = ht.partialLength, He = 0), A0 = "", J0 = "", xi = "", _0 = "", N0 = this.defaultPropsArray;
|
|
51174
51174
|
else {
|
|
51175
51175
|
if (this._hasMaskedPath) {
|
|
51176
51176
|
if (Ti !== Pe[ye].line) {
|
|
@@ -51230,9 +51230,9 @@ if (typeof document != "undefined") {
|
|
|
51230
51230
|
}
|
|
51231
51231
|
v.translate(0, -m.ls), v.translate(q0, 0, 0), v.translate(r[0] * Pe[ye].an * 5e-3, r[1] * l0 * 0.01, 0), I += Pe[ye].l + m.tr * 1e-3 * m.finalSize;
|
|
51232
51232
|
}
|
|
51233
|
-
C === "html" ? A0 = v.toCSS() : C === "svg" ? A0 = v.to2dCSS() : N0 = [v.props[0], v.props[1], v.props[2], v.props[3], v.props[4], v.props[5], v.props[6], v.props[7], v.props[8], v.props[9], v.props[10], v.props[11], v.props[12], v.props[13], v.props[14], v.props[15]],
|
|
51233
|
+
C === "html" ? A0 = v.toCSS() : C === "svg" ? A0 = v.to2dCSS() : N0 = [v.props[0], v.props[1], v.props[2], v.props[3], v.props[4], v.props[5], v.props[6], v.props[7], v.props[8], v.props[9], v.props[10], v.props[11], v.props[12], v.props[13], v.props[14], v.props[15]], _0 = Mi;
|
|
51234
51234
|
}
|
|
51235
|
-
w <= ye ? (b0 = new LetterProps(
|
|
51235
|
+
w <= ye ? (b0 = new LetterProps(_0, xi, O0, J0, A0, N0), this.renderedLetters.push(b0), w += 1, this.lettersChangedFlag = !0) : (b0 = this.renderedLetters[ye], this.lettersChangedFlag = b0.update(_0, xi, O0, J0, A0, N0) || this.lettersChangedFlag);
|
|
51236
51236
|
}
|
|
51237
51237
|
}
|
|
51238
51238
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -55836,6 +55836,13 @@ class mi {
|
|
|
55836
55836
|
}
|
|
55837
55837
|
return g ? r : null;
|
|
55838
55838
|
}
|
|
55839
|
+
copy(t, r) {
|
|
55840
|
+
const d = this.get(t);
|
|
55841
|
+
if (!d)
|
|
55842
|
+
return console.warn(`Material with key "${t}" not found.`), null;
|
|
55843
|
+
const g = d.clone();
|
|
55844
|
+
return this.add(r, g), g;
|
|
55845
|
+
}
|
|
55839
55846
|
copyMultiple(t, r) {
|
|
55840
55847
|
const d = {}, g = `${t}#`;
|
|
55841
55848
|
for (const [v, C] of this.materials.entries())
|
|
@@ -56448,77 +56455,77 @@ class Z extends BufferGeometry {
|
|
|
56448
56455
|
const e0 = n0.holes;
|
|
56449
56456
|
if (!ShapeUtils.isClockWise(Ut)) {
|
|
56450
56457
|
Ut = Ut.reverse();
|
|
56451
|
-
for (let N0 = 0,
|
|
56458
|
+
for (let N0 = 0, _0 = e0.length; N0 < _0; N0++) {
|
|
56452
56459
|
const a0 = e0[N0];
|
|
56453
56460
|
ShapeUtils.isClockWise(a0) && (e0[N0] = a0.reverse());
|
|
56454
56461
|
}
|
|
56455
56462
|
}
|
|
56456
56463
|
function Yt(N0) {
|
|
56457
|
-
const
|
|
56464
|
+
const _0 = 10000000000000001e-36;
|
|
56458
56465
|
let a0 = N0[0];
|
|
56459
56466
|
for (let s0 = 1; s0 <= N0.length; s0++) {
|
|
56460
|
-
const v0 = s0 % N0.length,
|
|
56461
|
-
Math.abs(
|
|
56462
|
-
Math.abs(
|
|
56467
|
+
const v0 = s0 % N0.length, C0 = N0[v0], E0 = C0.x - a0.x, w0 = C0.y - a0.y, vi = E0 * E0 + w0 * w0, ui = Math.max(
|
|
56468
|
+
Math.abs(C0.x),
|
|
56469
|
+
Math.abs(C0.y),
|
|
56463
56470
|
Math.abs(a0.x),
|
|
56464
56471
|
Math.abs(a0.y)
|
|
56465
|
-
), Ci =
|
|
56472
|
+
), Ci = _0 * ui * ui;
|
|
56466
56473
|
if (vi <= Ci) {
|
|
56467
56474
|
N0.splice(v0, 1), s0--;
|
|
56468
56475
|
continue;
|
|
56469
56476
|
}
|
|
56470
|
-
a0 =
|
|
56477
|
+
a0 = C0;
|
|
56471
56478
|
}
|
|
56472
56479
|
}
|
|
56473
56480
|
Yt(Ut), e0.forEach(Yt);
|
|
56474
56481
|
const o0 = e0.length, b0 = Ut;
|
|
56475
56482
|
for (let N0 = 0; N0 < o0; N0++) {
|
|
56476
|
-
const
|
|
56477
|
-
Ut = Ut.concat(
|
|
56483
|
+
const _0 = e0[N0];
|
|
56484
|
+
Ut = Ut.concat(_0);
|
|
56478
56485
|
}
|
|
56479
|
-
function f0(N0,
|
|
56480
|
-
return
|
|
56486
|
+
function f0(N0, _0, a0) {
|
|
56487
|
+
return _0 || console.error("THREE.ExtrudeGeometry: vec does not exist"), N0.clone().addScaledVector(_0, a0);
|
|
56481
56488
|
}
|
|
56482
56489
|
const P0 = Ut.length;
|
|
56483
|
-
function q0(N0,
|
|
56484
|
-
let s0, v0,
|
|
56485
|
-
const E0 = N0.x -
|
|
56490
|
+
function q0(N0, _0, a0) {
|
|
56491
|
+
let s0, v0, C0;
|
|
56492
|
+
const E0 = N0.x - _0.x, w0 = N0.y - _0.y, vi = a0.x - N0.x, ui = a0.y - N0.y, Ci = E0 * E0 + w0 * w0, Ei = E0 * ui - w0 * vi;
|
|
56486
56493
|
if (Math.abs(Ei) > Number.EPSILON) {
|
|
56487
56494
|
const j0 = Math.sqrt(Ci), Xi = Math.sqrt(
|
|
56488
56495
|
vi * vi + ui * ui
|
|
56489
|
-
), wi =
|
|
56496
|
+
), wi = _0.x - w0 / j0, Ii = _0.y + E0 / j0, Zi = a0.x - ui / Xi, Yi = a0.y + vi / Xi, zi = ((Zi - wi) * ui - (Yi - Ii) * vi) / (E0 * ui - w0 * vi);
|
|
56490
56497
|
s0 = wi + E0 * zi - N0.x, v0 = Ii + w0 * zi - N0.y;
|
|
56491
56498
|
const Ki = s0 * s0 + v0 * v0;
|
|
56492
56499
|
if (Ki <= 2)
|
|
56493
56500
|
return new Vector2(s0, v0);
|
|
56494
|
-
|
|
56501
|
+
C0 = Math.sqrt(Ki / 2);
|
|
56495
56502
|
} else {
|
|
56496
56503
|
let j0 = !1;
|
|
56497
|
-
E0 > Number.EPSILON ? vi > Number.EPSILON && (j0 = !0) : E0 < -Number.EPSILON ? vi < -Number.EPSILON && (j0 = !0) : Math.sign(w0) === Math.sign(ui) && (j0 = !0), j0 ? (s0 = -w0, v0 = E0,
|
|
56504
|
+
E0 > Number.EPSILON ? vi > Number.EPSILON && (j0 = !0) : E0 < -Number.EPSILON ? vi < -Number.EPSILON && (j0 = !0) : Math.sign(w0) === Math.sign(ui) && (j0 = !0), j0 ? (s0 = -w0, v0 = E0, C0 = Math.sqrt(Ci)) : (s0 = E0, v0 = w0, C0 = Math.sqrt(Ci / 2));
|
|
56498
56505
|
}
|
|
56499
|
-
return new Vector2(s0 /
|
|
56506
|
+
return new Vector2(s0 / C0, v0 / C0);
|
|
56500
56507
|
}
|
|
56501
56508
|
const G0 = [];
|
|
56502
|
-
for (let N0 = 0,
|
|
56503
|
-
a0 ===
|
|
56509
|
+
for (let N0 = 0, _0 = b0.length, a0 = _0 - 1, s0 = N0 + 1; N0 < _0; N0++, a0++, s0++)
|
|
56510
|
+
a0 === _0 && (a0 = 0), s0 === _0 && (s0 = 0), G0[N0] = q0(b0[N0], b0[a0], b0[s0]);
|
|
56504
56511
|
const I0 = [];
|
|
56505
56512
|
let F0, D0 = G0.concat();
|
|
56506
|
-
for (let N0 = 0,
|
|
56513
|
+
for (let N0 = 0, _0 = o0; N0 < _0; N0++) {
|
|
56507
56514
|
const a0 = e0[N0];
|
|
56508
56515
|
F0 = [];
|
|
56509
|
-
for (let s0 = 0, v0 = a0.length,
|
|
56510
|
-
|
|
56516
|
+
for (let s0 = 0, v0 = a0.length, C0 = v0 - 1, E0 = s0 + 1; s0 < v0; s0++, C0++, E0++)
|
|
56517
|
+
C0 === v0 && (C0 = 0), E0 === v0 && (E0 = 0), F0[s0] = q0(a0[s0], a0[C0], a0[E0]);
|
|
56511
56518
|
I0.push(F0), D0 = D0.concat(F0);
|
|
56512
56519
|
}
|
|
56513
56520
|
let Si;
|
|
56514
56521
|
if (ct === 0)
|
|
56515
56522
|
Si = ShapeUtils.triangulateShape(b0, e0);
|
|
56516
56523
|
else {
|
|
56517
|
-
const N0 = [],
|
|
56524
|
+
const N0 = [], _0 = [];
|
|
56518
56525
|
for (let a0 = 0; a0 < ct; a0++) {
|
|
56519
|
-
const s0 = a0 / ct, v0 = He * Math.cos(s0 * Math.PI / 2),
|
|
56526
|
+
const s0 = a0 / ct, v0 = He * Math.cos(s0 * Math.PI / 2), C0 = Fe * Math.sin(s0 * Math.PI / 2) + at;
|
|
56520
56527
|
for (let E0 = 0, w0 = b0.length; E0 < w0; E0++) {
|
|
56521
|
-
const vi = f0(b0[E0], G0[E0],
|
|
56528
|
+
const vi = f0(b0[E0], G0[E0], C0);
|
|
56522
56529
|
h0(vi.x, vi.y, -v0), s0 === 0 && N0.push(vi);
|
|
56523
56530
|
}
|
|
56524
56531
|
for (let E0 = 0, w0 = o0; E0 < w0; E0++) {
|
|
@@ -56526,34 +56533,34 @@ class Z extends BufferGeometry {
|
|
|
56526
56533
|
F0 = I0[E0];
|
|
56527
56534
|
const ui = [];
|
|
56528
56535
|
for (let Ci = 0, Ei = vi.length; Ci < Ei; Ci++) {
|
|
56529
|
-
const j0 = f0(vi[Ci], F0[Ci],
|
|
56536
|
+
const j0 = f0(vi[Ci], F0[Ci], C0);
|
|
56530
56537
|
h0(j0.x, j0.y, -v0), s0 === 0 && ui.push(j0);
|
|
56531
56538
|
}
|
|
56532
|
-
s0 === 0 &&
|
|
56539
|
+
s0 === 0 && _0.push(ui);
|
|
56533
56540
|
}
|
|
56534
56541
|
}
|
|
56535
56542
|
Si = ShapeUtils.triangulateShape(
|
|
56536
56543
|
N0,
|
|
56537
|
-
|
|
56544
|
+
_0
|
|
56538
56545
|
);
|
|
56539
56546
|
}
|
|
56540
56547
|
const Ti = Si.length, Mi = Fe + at;
|
|
56541
56548
|
for (let N0 = 0; N0 < P0; N0++) {
|
|
56542
|
-
const
|
|
56543
|
-
kt ? (r0.copy(Kt.normals[0]).multiplyScalar(
|
|
56549
|
+
const _0 = ht ? f0(Ut[N0], D0[N0], Mi) : Ut[N0];
|
|
56550
|
+
kt ? (r0.copy(Kt.normals[0]).multiplyScalar(_0.x), i0.copy(Kt.binormals[0]).multiplyScalar(_0.y), l0.copy(Ft[0]).add(r0).add(i0), h0(l0.x, l0.y, l0.z)) : h0(_0.x, _0.y, 0);
|
|
56544
56551
|
}
|
|
56545
56552
|
for (let N0 = 1; N0 <= Ne; N0++)
|
|
56546
|
-
for (let
|
|
56547
|
-
const a0 = ht ? f0(Ut[
|
|
56553
|
+
for (let _0 = 0; _0 < P0; _0++) {
|
|
56554
|
+
const a0 = ht ? f0(Ut[_0], D0[_0], Mi) : Ut[_0];
|
|
56548
56555
|
kt ? (r0.copy(Kt.normals[N0]).multiplyScalar(a0.x), i0.copy(Kt.binormals[N0]).multiplyScalar(a0.y), l0.copy(Ft[N0]).add(r0).add(i0), h0(l0.x, l0.y, l0.z)) : h0(a0.x, a0.y, ke / Ne * N0);
|
|
56549
56556
|
}
|
|
56550
56557
|
for (let N0 = ct - 1; N0 >= 0; N0--) {
|
|
56551
|
-
const
|
|
56552
|
-
for (let v0 = 0,
|
|
56558
|
+
const _0 = N0 / ct, a0 = He * Math.cos(_0 * Math.PI / 2), s0 = Fe * Math.sin(_0 * Math.PI / 2) + at;
|
|
56559
|
+
for (let v0 = 0, C0 = b0.length; v0 < C0; v0++) {
|
|
56553
56560
|
const E0 = f0(b0[v0], G0[v0], s0);
|
|
56554
56561
|
h0(E0.x, E0.y, ke + a0);
|
|
56555
56562
|
}
|
|
56556
|
-
for (let v0 = 0,
|
|
56563
|
+
for (let v0 = 0, C0 = e0.length; v0 < C0; v0++) {
|
|
56557
56564
|
const E0 = e0[v0];
|
|
56558
56565
|
F0 = I0[v0];
|
|
56559
56566
|
for (let w0 = 0, vi = E0.length; w0 < vi; w0++) {
|
|
@@ -56570,26 +56577,26 @@ class Z extends BufferGeometry {
|
|
|
56570
56577
|
function Fi() {
|
|
56571
56578
|
const N0 = g.length / 3;
|
|
56572
56579
|
if (ht) {
|
|
56573
|
-
let
|
|
56580
|
+
let _0 = 0, a0 = P0 * _0;
|
|
56574
56581
|
if (Wt)
|
|
56575
56582
|
for (let s0 = 0; s0 < Ti; s0++) {
|
|
56576
56583
|
const v0 = Si[s0];
|
|
56577
56584
|
xi(v0[2] + a0, v0[1] + a0, v0[0] + a0);
|
|
56578
56585
|
}
|
|
56579
|
-
if (
|
|
56586
|
+
if (_0 = Ne + ct * 2, a0 = P0 * _0, Lt)
|
|
56580
56587
|
for (let s0 = 0; s0 < Ti; s0++) {
|
|
56581
56588
|
const v0 = Si[s0];
|
|
56582
56589
|
xi(v0[0] + a0, v0[1] + a0, v0[2] + a0);
|
|
56583
56590
|
}
|
|
56584
56591
|
} else {
|
|
56585
56592
|
if (Wt)
|
|
56586
|
-
for (let
|
|
56587
|
-
const a0 = Si[
|
|
56593
|
+
for (let _0 = 0; _0 < Ti; _0++) {
|
|
56594
|
+
const a0 = Si[_0];
|
|
56588
56595
|
xi(a0[2], a0[1], a0[0]);
|
|
56589
56596
|
}
|
|
56590
56597
|
if (Lt)
|
|
56591
|
-
for (let
|
|
56592
|
-
const a0 = Si[
|
|
56598
|
+
for (let _0 = 0; _0 < Ti; _0++) {
|
|
56599
|
+
const a0 = Si[_0];
|
|
56593
56600
|
xi(
|
|
56594
56601
|
a0[0] + P0 * Ne,
|
|
56595
56602
|
a0[1] + P0 * Ne,
|
|
@@ -56601,31 +56608,31 @@ class Z extends BufferGeometry {
|
|
|
56601
56608
|
}
|
|
56602
56609
|
function Ni() {
|
|
56603
56610
|
const N0 = g.length / 3;
|
|
56604
|
-
let
|
|
56605
|
-
B0(b0,
|
|
56611
|
+
let _0 = 0;
|
|
56612
|
+
B0(b0, _0), _0 += b0.length;
|
|
56606
56613
|
for (let a0 = 0, s0 = e0.length; a0 < s0; a0++) {
|
|
56607
56614
|
const v0 = e0[a0];
|
|
56608
|
-
B0(v0,
|
|
56615
|
+
B0(v0, _0), _0 += v0.length;
|
|
56609
56616
|
}
|
|
56610
56617
|
d.addGroup(N0, g.length / 3 - N0, 1);
|
|
56611
56618
|
}
|
|
56612
|
-
function B0(N0,
|
|
56619
|
+
function B0(N0, _0) {
|
|
56613
56620
|
let a0 = N0.length;
|
|
56614
56621
|
for (; --a0 >= 0; ) {
|
|
56615
56622
|
const s0 = a0;
|
|
56616
56623
|
let v0 = a0 - 1;
|
|
56617
56624
|
v0 < 0 && (v0 = N0.length - 1);
|
|
56618
|
-
for (let
|
|
56619
|
-
const w0 = P0 *
|
|
56625
|
+
for (let C0 = 0, E0 = Ne + ct * 2; C0 < E0; C0++) {
|
|
56626
|
+
const w0 = P0 * C0, vi = P0 * (C0 + 1), ui = _0 + s0 + w0, Ci = _0 + v0 + w0, Ei = _0 + v0 + vi, j0 = _0 + s0 + vi;
|
|
56620
56627
|
O0(ui, Ci, Ei, j0);
|
|
56621
56628
|
}
|
|
56622
56629
|
}
|
|
56623
56630
|
}
|
|
56624
|
-
function h0(N0,
|
|
56625
|
-
Se.push(N0), Se.push(
|
|
56631
|
+
function h0(N0, _0, a0) {
|
|
56632
|
+
Se.push(N0), Se.push(_0), Se.push(a0);
|
|
56626
56633
|
}
|
|
56627
|
-
function xi(N0,
|
|
56628
|
-
J0(N0), J0(
|
|
56634
|
+
function xi(N0, _0, a0) {
|
|
56635
|
+
J0(N0), J0(_0), J0(a0);
|
|
56629
56636
|
const s0 = g.length / 3, v0 = Gt.generateTopUV(
|
|
56630
56637
|
d,
|
|
56631
56638
|
g,
|
|
@@ -56635,9 +56642,9 @@ class Z extends BufferGeometry {
|
|
|
56635
56642
|
);
|
|
56636
56643
|
A0(v0[0]), A0(v0[1]), A0(v0[2]);
|
|
56637
56644
|
}
|
|
56638
|
-
function O0(N0,
|
|
56639
|
-
J0(N0), J0(
|
|
56640
|
-
const v0 = g.length / 3,
|
|
56645
|
+
function O0(N0, _0, a0, s0) {
|
|
56646
|
+
J0(N0), J0(_0), J0(s0), J0(_0), J0(a0), J0(s0);
|
|
56647
|
+
const v0 = g.length / 3, C0 = Gt.generateSideWallUV(
|
|
56641
56648
|
d,
|
|
56642
56649
|
g,
|
|
56643
56650
|
v0 - 6,
|
|
@@ -56645,7 +56652,7 @@ class Z extends BufferGeometry {
|
|
|
56645
56652
|
v0 - 2,
|
|
56646
56653
|
v0 - 1
|
|
56647
56654
|
);
|
|
56648
|
-
A0(
|
|
56655
|
+
A0(C0[0]), A0(C0[1]), A0(C0[3]), A0(C0[1]), A0(C0[2]), A0(C0[3]);
|
|
56649
56656
|
}
|
|
56650
56657
|
function J0(N0) {
|
|
56651
56658
|
g.push(Se[N0 * 3 + 0]), g.push(Se[N0 * 3 + 1]), g.push(Se[N0 * 3 + 2]);
|
|
@@ -57343,8 +57350,8 @@ class Light extends Ze {
|
|
|
57343
57350
|
class Point extends ft$1 {
|
|
57344
57351
|
constructor(r) {
|
|
57345
57352
|
super();
|
|
57346
|
-
|
|
57347
|
-
|
|
57353
|
+
T0(this, "options");
|
|
57354
|
+
T0(this, "scaleValue", 1);
|
|
57348
57355
|
this.options = fi({
|
|
57349
57356
|
sprite: !0
|
|
57350
57357
|
}, r);
|
|
@@ -57421,11 +57428,11 @@ let map;
|
|
|
57421
57428
|
class Arc extends ft$1 {
|
|
57422
57429
|
constructor(r) {
|
|
57423
57430
|
super();
|
|
57424
|
-
|
|
57425
|
-
|
|
57426
|
-
|
|
57427
|
-
|
|
57428
|
-
|
|
57431
|
+
T0(this, "options");
|
|
57432
|
+
T0(this, "line");
|
|
57433
|
+
T0(this, "helperMesh");
|
|
57434
|
+
T0(this, "helperMeshPosition");
|
|
57435
|
+
T0(this, "pickTube", null);
|
|
57429
57436
|
this.options = fi({
|
|
57430
57437
|
color: "#ffffff",
|
|
57431
57438
|
lineWidth: 6,
|
|
@@ -57583,7 +57590,7 @@ class Arc extends ft$1 {
|
|
|
57583
57590
|
class CrossPlane extends ft$1 {
|
|
57584
57591
|
constructor(r) {
|
|
57585
57592
|
super();
|
|
57586
|
-
|
|
57593
|
+
T0(this, "options");
|
|
57587
57594
|
this.options = fi({}, r);
|
|
57588
57595
|
}
|
|
57589
57596
|
create() {
|
|
@@ -57626,7 +57633,7 @@ class PlaneShadow extends ft$1 {
|
|
|
57626
57633
|
class Model extends ft$1 {
|
|
57627
57634
|
constructor(r) {
|
|
57628
57635
|
super();
|
|
57629
|
-
|
|
57636
|
+
T0(this, "options");
|
|
57630
57637
|
this.options = fi({}, r);
|
|
57631
57638
|
}
|
|
57632
57639
|
create() {
|
|
@@ -57714,9 +57721,9 @@ class Ring extends ft$1 {
|
|
|
57714
57721
|
class Sphere extends ft$1 {
|
|
57715
57722
|
constructor() {
|
|
57716
57723
|
super(...arguments);
|
|
57717
|
-
|
|
57718
|
-
|
|
57719
|
-
|
|
57724
|
+
T0(this, "radius", 100);
|
|
57725
|
+
T0(this, "material");
|
|
57726
|
+
T0(this, "options");
|
|
57720
57727
|
}
|
|
57721
57728
|
create() {
|
|
57722
57729
|
var d;
|
|
@@ -57765,7 +57772,7 @@ class TorusKnot extends ft$1 {
|
|
|
57765
57772
|
class Tube extends ft$1 {
|
|
57766
57773
|
constructor(r) {
|
|
57767
57774
|
super();
|
|
57768
|
-
|
|
57775
|
+
T0(this, "options");
|
|
57769
57776
|
this.options = r;
|
|
57770
57777
|
}
|
|
57771
57778
|
create() {
|
|
@@ -58002,10 +58009,10 @@ function createAreaLightMaterial(m) {
|
|
|
58002
58009
|
}
|
|
58003
58010
|
class Event {
|
|
58004
58011
|
constructor() {
|
|
58005
|
-
|
|
58006
|
-
|
|
58007
|
-
|
|
58008
|
-
|
|
58012
|
+
T0(this, "event", new EventEmitter());
|
|
58013
|
+
T0(this, "eventHandlers", {});
|
|
58014
|
+
T0(this, "on", this.event.on.bind(this.event));
|
|
58015
|
+
T0(this, "emit", this.event.emit.bind(this.event));
|
|
58009
58016
|
}
|
|
58010
58017
|
addListener(t, r, d, g = !1) {
|
|
58011
58018
|
r in this.eventHandlers || (this.eventHandlers[r] = []), this.eventHandlers[r].push({
|
|
@@ -58036,9 +58043,9 @@ class Event {
|
|
|
58036
58043
|
class Camera extends Event {
|
|
58037
58044
|
constructor() {
|
|
58038
58045
|
super(...arguments);
|
|
58039
|
-
|
|
58040
|
-
|
|
58041
|
-
|
|
58046
|
+
T0(this, "container");
|
|
58047
|
+
T0(this, "pencil");
|
|
58048
|
+
T0(this, "cameraState", {});
|
|
58042
58049
|
}
|
|
58043
58050
|
setSaveCamera(r) {
|
|
58044
58051
|
const d = this.pencil, g = d.cameraPositon, v = d.cameraTarget;
|
|
@@ -58144,12 +58151,12 @@ class Camera extends Event {
|
|
|
58144
58151
|
}
|
|
58145
58152
|
class Command {
|
|
58146
58153
|
constructor(t) {
|
|
58147
|
-
|
|
58148
|
-
|
|
58149
|
-
|
|
58150
|
-
|
|
58151
|
-
|
|
58152
|
-
|
|
58154
|
+
T0(this, "id");
|
|
58155
|
+
T0(this, "updatable");
|
|
58156
|
+
T0(this, "type");
|
|
58157
|
+
T0(this, "name");
|
|
58158
|
+
T0(this, "editor");
|
|
58159
|
+
T0(this, "json", {});
|
|
58153
58160
|
this.id = -1, this.updatable = !1, this.type = "", this.name = "", this.editor = t;
|
|
58154
58161
|
}
|
|
58155
58162
|
toJSON() {
|
|
@@ -58595,8 +58602,8 @@ class SetVector extends Command {
|
|
|
58595
58602
|
class AddVis extends Command {
|
|
58596
58603
|
constructor(r, d, g) {
|
|
58597
58604
|
super(r);
|
|
58598
|
-
|
|
58599
|
-
|
|
58605
|
+
T0(this, "visType");
|
|
58606
|
+
T0(this, "visOptions");
|
|
58600
58607
|
this.type = "AddVis", this.visType = d, this.visOptions = g, d !== void 0 && (this.name = `Add Vis: ${d}`);
|
|
58601
58608
|
}
|
|
58602
58609
|
execute() {
|
|
@@ -58619,10 +58626,10 @@ class AddVis extends Command {
|
|
|
58619
58626
|
class AddObject extends Command {
|
|
58620
58627
|
constructor(r, d, g) {
|
|
58621
58628
|
super(r);
|
|
58622
|
-
|
|
58623
|
-
|
|
58624
|
-
|
|
58625
|
-
|
|
58629
|
+
T0(this, "objectType");
|
|
58630
|
+
T0(this, "objectOptions");
|
|
58631
|
+
T0(this, "obj");
|
|
58632
|
+
T0(this, "addObjectUuid");
|
|
58626
58633
|
this.type = "AddObject", this.objectType = d, this.objectOptions = g, d !== void 0 && (this.name = `Add Object: ${d}`);
|
|
58627
58634
|
}
|
|
58628
58635
|
execute() {
|
|
@@ -58652,8 +58659,8 @@ class AddObject extends Command {
|
|
|
58652
58659
|
class RemoveObject extends Command {
|
|
58653
58660
|
constructor(r, d) {
|
|
58654
58661
|
super(r);
|
|
58655
|
-
|
|
58656
|
-
|
|
58662
|
+
T0(this, "object");
|
|
58663
|
+
T0(this, "objectUuid");
|
|
58657
58664
|
this.type = "RemoveObject", this.name = "Remove Object", this.object = d, this.objectUuid = this.editor.uuidByBaseObject(d);
|
|
58658
58665
|
}
|
|
58659
58666
|
execute() {
|
|
@@ -58675,9 +58682,9 @@ class RemoveObject extends Command {
|
|
|
58675
58682
|
class CopyObject extends Command {
|
|
58676
58683
|
constructor(r, d) {
|
|
58677
58684
|
super(r);
|
|
58678
|
-
|
|
58679
|
-
|
|
58680
|
-
|
|
58685
|
+
T0(this, "object");
|
|
58686
|
+
T0(this, "copyObject", null);
|
|
58687
|
+
T0(this, "copyObjectUuid");
|
|
58681
58688
|
this.type = "CopyObject", this.name = "Copy Object", this.object = d;
|
|
58682
58689
|
}
|
|
58683
58690
|
execute() {
|
|
@@ -58707,12 +58714,82 @@ class CopyObject extends Command {
|
|
|
58707
58714
|
r && !r.copyObjectUuid && (r.copyObjectUuid = this.copyObjectUuid);
|
|
58708
58715
|
}
|
|
58709
58716
|
}
|
|
58717
|
+
class CopyMaterial extends Command {
|
|
58718
|
+
constructor(r, d) {
|
|
58719
|
+
super(r);
|
|
58720
|
+
T0(this, "originKey");
|
|
58721
|
+
T0(this, "copyKey");
|
|
58722
|
+
this.type = "CopyMaterial", this.name = "Copy Material", this.originKey = d;
|
|
58723
|
+
}
|
|
58724
|
+
execute() {
|
|
58725
|
+
return U0(this, null, function* () {
|
|
58726
|
+
this.copyKey = `material_${this.id}`, this.editor.pencil.mList.copy(this.originKey, this.copyKey);
|
|
58727
|
+
});
|
|
58728
|
+
}
|
|
58729
|
+
undo() {
|
|
58730
|
+
return U0(this, null, function* () {
|
|
58731
|
+
this.editor.pencil.mList.remove(this.copyKey);
|
|
58732
|
+
});
|
|
58733
|
+
}
|
|
58734
|
+
toJSON() {
|
|
58735
|
+
const r = super.toJSON();
|
|
58736
|
+
return r.originKey = this.originKey, r.copyKey = this.copyKey, r;
|
|
58737
|
+
}
|
|
58738
|
+
fromJSON(r) {
|
|
58739
|
+
super.fromJSON(r), this.originKey = r.originKey, this.copyKey = r.copyKey;
|
|
58740
|
+
}
|
|
58741
|
+
}
|
|
58742
|
+
class SetObjectMaterial extends Command {
|
|
58743
|
+
constructor(r, d, g, v) {
|
|
58744
|
+
var w;
|
|
58745
|
+
super(r);
|
|
58746
|
+
T0(this, "object");
|
|
58747
|
+
T0(this, "oldValue");
|
|
58748
|
+
T0(this, "newValue");
|
|
58749
|
+
T0(this, "materialSlot");
|
|
58750
|
+
this.type = "SetObjectMaterial", this.name = "Set Object Material", this.object = d, this.materialSlot = g;
|
|
58751
|
+
const C = this.editor.getObjectMaterial(
|
|
58752
|
+
d,
|
|
58753
|
+
g
|
|
58754
|
+
);
|
|
58755
|
+
this.oldValue = (w = this.editor.pencil) == null ? void 0 : w.mList.getKey(C), this.newValue = v;
|
|
58756
|
+
}
|
|
58757
|
+
execute() {
|
|
58758
|
+
return U0(this, null, function* () {
|
|
58759
|
+
const r = this.editor.pencil.mList;
|
|
58760
|
+
r.get(this.newValue) && (this.editor.setObjectMaterial(
|
|
58761
|
+
this.object,
|
|
58762
|
+
this.materialSlot,
|
|
58763
|
+
r.get(this.newValue),
|
|
58764
|
+
!0
|
|
58765
|
+
), this.editor.emit("materialChanged", this.object));
|
|
58766
|
+
});
|
|
58767
|
+
}
|
|
58768
|
+
undo() {
|
|
58769
|
+
return U0(this, null, function* () {
|
|
58770
|
+
const r = this.editor.pencil.mList;
|
|
58771
|
+
this.editor.setObjectMaterial(
|
|
58772
|
+
this.object,
|
|
58773
|
+
this.materialSlot,
|
|
58774
|
+
r.get(this.oldValue),
|
|
58775
|
+
!0
|
|
58776
|
+
), this.editor.emit("materialChanged", this.object);
|
|
58777
|
+
});
|
|
58778
|
+
}
|
|
58779
|
+
toJSON() {
|
|
58780
|
+
const r = super.toJSON();
|
|
58781
|
+
return r.objectUuid = this.editor.uuidByObject(this.object), r.oldType = this.oldValue, r.newType = this.newValue, r.materialSlot = this.materialSlot, r;
|
|
58782
|
+
}
|
|
58783
|
+
fromJSON(r) {
|
|
58784
|
+
super.fromJSON(r), this.object = this.editor.objectByUuid(r.objectUuid), this.oldValue = r.oldValue, this.newValue = r.newValue, this.materialSlot = r.materialSlot;
|
|
58785
|
+
}
|
|
58786
|
+
}
|
|
58710
58787
|
class SetSetting extends Command {
|
|
58711
58788
|
constructor(r, d, g) {
|
|
58712
58789
|
super(r);
|
|
58713
|
-
|
|
58714
|
-
|
|
58715
|
-
|
|
58790
|
+
T0(this, "attributeName");
|
|
58791
|
+
T0(this, "newValue");
|
|
58792
|
+
T0(this, "oldValue");
|
|
58716
58793
|
this.type = "SetSetting", this.updatable = !0, this.name = `Set Setting.${d}`, this.attributeName = d, this.newValue = g, r.viewport.vis && (this.oldValue = r.viewport.vis.settings[d]);
|
|
58717
58794
|
}
|
|
58718
58795
|
execute() {
|
|
@@ -58820,6 +58897,7 @@ const Commands = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
58820
58897
|
__proto__: null,
|
|
58821
58898
|
AddObject,
|
|
58822
58899
|
AddVis,
|
|
58900
|
+
CopyMaterial,
|
|
58823
58901
|
CopyObject,
|
|
58824
58902
|
RemoveObject,
|
|
58825
58903
|
SetColor,
|
|
@@ -58830,6 +58908,7 @@ const Commands = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
58830
58908
|
SetMaterialMapVector,
|
|
58831
58909
|
SetMaterialValue,
|
|
58832
58910
|
SetMaterialVector,
|
|
58911
|
+
SetObjectMaterial,
|
|
58833
58912
|
SetPosition,
|
|
58834
58913
|
SetRotation,
|
|
58835
58914
|
SetScale,
|
|
@@ -58841,12 +58920,12 @@ const Commands = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
58841
58920
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
58842
58921
|
class History {
|
|
58843
58922
|
constructor(t) {
|
|
58844
|
-
|
|
58845
|
-
|
|
58846
|
-
|
|
58847
|
-
|
|
58848
|
-
|
|
58849
|
-
|
|
58923
|
+
T0(this, "editor");
|
|
58924
|
+
T0(this, "undos");
|
|
58925
|
+
T0(this, "redos");
|
|
58926
|
+
T0(this, "lastCmdTime");
|
|
58927
|
+
T0(this, "idCounter");
|
|
58928
|
+
T0(this, "historyDisabled");
|
|
58850
58929
|
this.editor = t, this.undos = [], this.redos = [], this.lastCmdTime = Date.now(), this.idCounter = 0, this.historyDisabled = !1;
|
|
58851
58930
|
}
|
|
58852
58931
|
execute(t, r) {
|
|
@@ -58975,12 +59054,12 @@ class History {
|
|
|
58975
59054
|
}
|
|
58976
59055
|
class Viewport {
|
|
58977
59056
|
constructor(t, r) {
|
|
58978
|
-
|
|
58979
|
-
|
|
58980
|
-
|
|
58981
|
-
|
|
58982
|
-
|
|
58983
|
-
|
|
59057
|
+
T0(this, "editor");
|
|
59058
|
+
T0(this, "vis");
|
|
59059
|
+
T0(this, "extendsOptions", {});
|
|
59060
|
+
T0(this, "cameraState", {});
|
|
59061
|
+
T0(this, "delLoadObj");
|
|
59062
|
+
T0(this, "options");
|
|
58984
59063
|
this.options = r, this.editor = t;
|
|
58985
59064
|
}
|
|
58986
59065
|
setSaveCamera(t) {
|
|
@@ -59074,6 +59153,14 @@ class Viewport {
|
|
|
59074
59153
|
this.editor.execute(new CopyObject(this.editor, d));
|
|
59075
59154
|
});
|
|
59076
59155
|
}
|
|
59156
|
+
// async setObjectMaterialType(uuid: string, type: string) {
|
|
59157
|
+
// const {vis} = this;
|
|
59158
|
+
// if (!vis) {
|
|
59159
|
+
// return;
|
|
59160
|
+
// }
|
|
59161
|
+
// const obj = this.editor.baseObjectByUuid(uuid);
|
|
59162
|
+
// this.editor.execute(new SetObjectMaterialType(this.editor, obj!, type));
|
|
59163
|
+
// }
|
|
59077
59164
|
setExtendsOptions(t, r) {
|
|
59078
59165
|
this.extendsOptions[t] = r, this.vis.extendsOptions[t] = r, this.editor.emit("optionsChanged"), setTimeout(() => {
|
|
59079
59166
|
const d = this.editor.toJSON();
|
|
@@ -59347,6 +59434,50 @@ function applyFixes(m, t) {
|
|
|
59347
59434
|
C.objectUuid === "building" && (C.objectUuid = "building#group");
|
|
59348
59435
|
});
|
|
59349
59436
|
}
|
|
59437
|
+
},
|
|
59438
|
+
{
|
|
59439
|
+
version: "0.28.1",
|
|
59440
|
+
fix: () => {
|
|
59441
|
+
const C = [], w = {}, I = [];
|
|
59442
|
+
return t.h.u.forEach((O) => {
|
|
59443
|
+
O.attributeName === "name" && O.newValue && O.newValue.includes("级板块") && (C.push(O.objectUuid), console.log("cpMap", O.newValue, O.objectUuid));
|
|
59444
|
+
}), t.h.u.forEach((O, ye) => {
|
|
59445
|
+
if (O.type === "CopyObject" && O.objectUuid.includes("extrudePolygon")) {
|
|
59446
|
+
const Se = O.copyObjectUuid.replace(
|
|
59447
|
+
O.copyObjectUuid[0],
|
|
59448
|
+
O.copyObjectUuid[0].toLowerCase()
|
|
59449
|
+
);
|
|
59450
|
+
if (!C.includes(Se)) {
|
|
59451
|
+
delete O.type;
|
|
59452
|
+
return;
|
|
59453
|
+
}
|
|
59454
|
+
w[Se] = `material_${O.id}`, I.push(Se), t.h.u[ye] = [
|
|
59455
|
+
{
|
|
59456
|
+
type: "CopyMaterial",
|
|
59457
|
+
id: O.id,
|
|
59458
|
+
originKey: "plane#topMat",
|
|
59459
|
+
copyKey: `material_${O.id}`
|
|
59460
|
+
},
|
|
59461
|
+
{
|
|
59462
|
+
type: "SetObjectMaterial",
|
|
59463
|
+
id: O.id + 0.1,
|
|
59464
|
+
objectUuid: O.objectUuid,
|
|
59465
|
+
materialSlot: 0,
|
|
59466
|
+
newValue: `material_${O.id}`,
|
|
59467
|
+
oldValue: "plane#topMat"
|
|
59468
|
+
}
|
|
59469
|
+
], console.log(
|
|
59470
|
+
`Fix CopyObject ${O.objectUuid}and change type to CopyMaterial and SetObjectMaterial`,
|
|
59471
|
+
t.h.u[ye]
|
|
59472
|
+
);
|
|
59473
|
+
}
|
|
59474
|
+
}), t.h.u.forEach((O) => {
|
|
59475
|
+
if (I.includes(O.objectUuid) && O.type.includes("Material")) {
|
|
59476
|
+
const ye = O.objectUuid;
|
|
59477
|
+
O.objectUuid = w[ye], console.log(`Fix objectUuid ${ye} to ${w[ye]}`, O);
|
|
59478
|
+
}
|
|
59479
|
+
}), t.h.u = t.h.u.flat(), !1;
|
|
59480
|
+
}
|
|
59350
59481
|
}
|
|
59351
59482
|
];
|
|
59352
59483
|
let d = 0, g = r.length - 1, v = r.length;
|
|
@@ -59355,7 +59486,7 @@ function applyFixes(m, t) {
|
|
|
59355
59486
|
compareVersion(r[C].version, m) > 0 ? (v = C, g = C - 1) : d = C + 1;
|
|
59356
59487
|
}
|
|
59357
59488
|
for (let C = v; C < r.length; C++)
|
|
59358
|
-
r[C].fix()
|
|
59489
|
+
r[C].fix() !== !1 && (t.c.version = r[C].version);
|
|
59359
59490
|
}
|
|
59360
59491
|
const fixJSON = (m) => {
|
|
59361
59492
|
var t;
|
|
@@ -59375,8 +59506,8 @@ const fixJSON = (m) => {
|
|
|
59375
59506
|
};
|
|
59376
59507
|
class Hooks {
|
|
59377
59508
|
constructor(t) {
|
|
59378
|
-
|
|
59379
|
-
|
|
59509
|
+
T0(this, "editor");
|
|
59510
|
+
T0(this, "events", {
|
|
59380
59511
|
beforeSetVisOptions: [],
|
|
59381
59512
|
beforeExecuteUndo: [],
|
|
59382
59513
|
afterExecuteUndo: [],
|
|
@@ -59386,7 +59517,7 @@ class Hooks {
|
|
|
59386
59517
|
afterFromJSON: [],
|
|
59387
59518
|
errorFromJSON: []
|
|
59388
59519
|
});
|
|
59389
|
-
|
|
59520
|
+
T0(this, "source", "");
|
|
59390
59521
|
this.editor = t, this.addEvents({
|
|
59391
59522
|
beforeFromJSON: () => {
|
|
59392
59523
|
window.postMessage({ type: "vis-core.fromJSON.start" }), console.time("vis-core:time.fromJSON");
|
|
@@ -59441,8 +59572,8 @@ class Hooks {
|
|
|
59441
59572
|
}
|
|
59442
59573
|
class Config {
|
|
59443
59574
|
constructor(t) {
|
|
59444
|
-
|
|
59445
|
-
|
|
59575
|
+
T0(this, "editor");
|
|
59576
|
+
T0(this, "meta", {
|
|
59446
59577
|
name: "",
|
|
59447
59578
|
key: "",
|
|
59448
59579
|
open: !1,
|
|
@@ -59491,20 +59622,20 @@ const jsonFetch = (m, t, r = !1) => {
|
|
|
59491
59622
|
};
|
|
59492
59623
|
class Editor {
|
|
59493
59624
|
constructor(t) {
|
|
59494
|
-
|
|
59495
|
-
|
|
59496
|
-
|
|
59497
|
-
|
|
59498
|
-
|
|
59499
|
-
|
|
59500
|
-
|
|
59501
|
-
|
|
59502
|
-
|
|
59503
|
-
|
|
59504
|
-
|
|
59505
|
-
|
|
59506
|
-
|
|
59507
|
-
|
|
59625
|
+
T0(this, "selected", null);
|
|
59626
|
+
T0(this, "playing", !0);
|
|
59627
|
+
T0(this, "currentMaterialSlot", 0);
|
|
59628
|
+
T0(this, "events", new EventEmitter());
|
|
59629
|
+
T0(this, "history");
|
|
59630
|
+
T0(this, "viewport");
|
|
59631
|
+
T0(this, "hooks");
|
|
59632
|
+
T0(this, "config");
|
|
59633
|
+
T0(this, "pencil");
|
|
59634
|
+
T0(this, "on", this.events.on.bind(this.events));
|
|
59635
|
+
T0(this, "emit", this.events.emit.bind(this.events));
|
|
59636
|
+
T0(this, "options");
|
|
59637
|
+
T0(this, "selectOption", []);
|
|
59638
|
+
T0(this, "_dispose", !1);
|
|
59508
59639
|
this.options = fi({
|
|
59509
59640
|
assetsPrefix: "",
|
|
59510
59641
|
processUndosMaxFrameTime: Number.MAX_VALUE
|
|
@@ -59536,9 +59667,9 @@ class Editor {
|
|
|
59536
59667
|
);
|
|
59537
59668
|
return r || this.uuidByObject(t);
|
|
59538
59669
|
}
|
|
59539
|
-
setObjectMaterial(t, r, d) {
|
|
59540
|
-
let
|
|
59541
|
-
Array.isArray(t.material) && r !== void 0 ? (
|
|
59670
|
+
setObjectMaterial(t, r, d, g = !1) {
|
|
59671
|
+
let v = t.material;
|
|
59672
|
+
Array.isArray(t.material) && r !== void 0 ? (v = t.material[r], g && (t.material = [...t.material], console.log(t.material)), t.material[r] = d) : t.material = d, v && v.onBeforeCompile && (d.onBeforeCompile = v.onBeforeCompile);
|
|
59542
59673
|
}
|
|
59543
59674
|
uuidByObject(t) {
|
|
59544
59675
|
var r;
|
|
@@ -59614,6 +59745,7 @@ class Editor {
|
|
|
59614
59745
|
name: g.object3d.name,
|
|
59615
59746
|
object: g.object3d,
|
|
59616
59747
|
visible: Pe ? !0 : g.object3d.visible,
|
|
59748
|
+
useMaterialType: g.useMaterialType,
|
|
59617
59749
|
disabledCR: O,
|
|
59618
59750
|
disabledTC: Se,
|
|
59619
59751
|
disabledVisible: Pe,
|
|
@@ -60089,7 +60221,7 @@ const BLOCKLISTED_GPUS = [
|
|
|
60089
60221
|
];
|
|
60090
60222
|
class Benchmarks {
|
|
60091
60223
|
constructor(t) {
|
|
60092
|
-
|
|
60224
|
+
T0(this, "renderer");
|
|
60093
60225
|
this.renderer = t;
|
|
60094
60226
|
}
|
|
60095
60227
|
query() {
|
|
@@ -60121,8 +60253,8 @@ class Benchmarks {
|
|
|
60121
60253
|
}
|
|
60122
60254
|
class WebGL {
|
|
60123
60255
|
constructor() {
|
|
60124
|
-
|
|
60125
|
-
|
|
60256
|
+
T0(this, "rawRenderer");
|
|
60257
|
+
T0(this, "renderer");
|
|
60126
60258
|
const t = this.getRawRenderer();
|
|
60127
60259
|
this.rawRenderer = t;
|
|
60128
60260
|
const r = this.getRenderer();
|
|
@@ -60245,30 +60377,30 @@ class Base extends Camera {
|
|
|
60245
60377
|
constructor(r) {
|
|
60246
60378
|
var d;
|
|
60247
60379
|
super();
|
|
60248
|
-
|
|
60249
|
-
|
|
60250
|
-
|
|
60251
|
-
|
|
60252
|
-
|
|
60253
|
-
|
|
60254
|
-
|
|
60255
|
-
|
|
60256
|
-
|
|
60257
|
-
|
|
60258
|
-
|
|
60259
|
-
|
|
60260
|
-
|
|
60261
|
-
|
|
60262
|
-
|
|
60263
|
-
|
|
60264
|
-
|
|
60265
|
-
|
|
60266
|
-
|
|
60267
|
-
|
|
60268
|
-
|
|
60269
|
-
|
|
60270
|
-
|
|
60271
|
-
|
|
60380
|
+
T0(this, "playing", !0);
|
|
60381
|
+
T0(this, "leftTruck", !0);
|
|
60382
|
+
T0(this, "options");
|
|
60383
|
+
T0(this, "showState", !1);
|
|
60384
|
+
T0(this, "settings", {});
|
|
60385
|
+
T0(this, "delLoadArr");
|
|
60386
|
+
T0(this, "extendsOptions", {});
|
|
60387
|
+
T0(this, "leadObjs", objs$3);
|
|
60388
|
+
T0(this, "lead");
|
|
60389
|
+
T0(this, "mList");
|
|
60390
|
+
T0(this, "workerOnce", !0);
|
|
60391
|
+
T0(this, "tier0", !1);
|
|
60392
|
+
T0(this, "pmremGenerator", null);
|
|
60393
|
+
T0(this, "re", null);
|
|
60394
|
+
T0(this, "roomEnvMap");
|
|
60395
|
+
T0(this, "visName");
|
|
60396
|
+
T0(this, "editor");
|
|
60397
|
+
T0(this, "publicDir", {});
|
|
60398
|
+
T0(this, "_baseObjectByUuid");
|
|
60399
|
+
T0(this, "_objectByUuid");
|
|
60400
|
+
T0(this, "observeScale", null);
|
|
60401
|
+
T0(this, "sceneActive", -1);
|
|
60402
|
+
T0(this, "initSettingsObj");
|
|
60403
|
+
T0(this, "mouseButtonsActiveStore", null);
|
|
60272
60404
|
if (this.container = r.container, this.options = fi({
|
|
60273
60405
|
assetsPrefix: "",
|
|
60274
60406
|
editor: !0,
|
|
@@ -60616,7 +60748,7 @@ class Base extends Camera {
|
|
|
60616
60748
|
super.dispose(), this.editor && (this.editor.viewport.vis = void 0, this.editor.dispose()), this.publicDir = {}, this.options.pencil ? this.pencil.removePage(this.sceneActive) : this.options.pencil2 || (r = this.pencil) == null || r.dispose(), (d = this.pmremGenerator) == null || d.dispose(), (g = this.re) == null || g.dispose(), (v = this.observeScale) == null || v.disconnect();
|
|
60617
60749
|
}
|
|
60618
60750
|
}
|
|
60619
|
-
|
|
60751
|
+
T0(Base, "VisName", "base");
|
|
60620
60752
|
function clipGeojson(m, t) {
|
|
60621
60753
|
const r = flatten$3(m).features, d = flatten$3(t).features, g = {
|
|
60622
60754
|
type: "FeatureCollection",
|
|
@@ -60655,10 +60787,10 @@ const getBoxMultiPoly = (m) => {
|
|
|
60655
60787
|
class Building extends ft$1 {
|
|
60656
60788
|
constructor(r) {
|
|
60657
60789
|
super();
|
|
60658
|
-
|
|
60659
|
-
|
|
60660
|
-
|
|
60661
|
-
|
|
60790
|
+
T0(this, "options");
|
|
60791
|
+
T0(this, "building", {});
|
|
60792
|
+
T0(this, "outJson", /* @__PURE__ */ new Map());
|
|
60793
|
+
T0(this, "worldPositionZ", {
|
|
60662
60794
|
value: 0
|
|
60663
60795
|
});
|
|
60664
60796
|
this.options = fi({}, r);
|
|
@@ -60800,10 +60932,10 @@ class Building extends ft$1 {
|
|
|
60800
60932
|
class Road extends ft$1 {
|
|
60801
60933
|
constructor(r) {
|
|
60802
60934
|
super();
|
|
60803
|
-
|
|
60804
|
-
|
|
60805
|
-
|
|
60806
|
-
|
|
60935
|
+
T0(this, "options");
|
|
60936
|
+
T0(this, "outJson", /* @__PURE__ */ new Map());
|
|
60937
|
+
T0(this, "linePrimary", []);
|
|
60938
|
+
T0(this, "lineSecondary", []);
|
|
60807
60939
|
this.options = fi({}, r);
|
|
60808
60940
|
}
|
|
60809
60941
|
create() {
|
|
@@ -60881,9 +61013,9 @@ class Road extends ft$1 {
|
|
|
60881
61013
|
class Area extends ft$1 {
|
|
60882
61014
|
constructor(r) {
|
|
60883
61015
|
super();
|
|
60884
|
-
|
|
60885
|
-
|
|
60886
|
-
|
|
61016
|
+
T0(this, "options");
|
|
61017
|
+
T0(this, "area", []);
|
|
61018
|
+
T0(this, "outJson", /* @__PURE__ */ new Map());
|
|
60887
61019
|
this.options = fi({}, r);
|
|
60888
61020
|
}
|
|
60889
61021
|
create() {
|
|
@@ -61430,9 +61562,9 @@ Water.WaterShader = {
|
|
|
61430
61562
|
class CityPlane extends ft$1 {
|
|
61431
61563
|
constructor(r) {
|
|
61432
61564
|
super();
|
|
61433
|
-
|
|
61434
|
-
|
|
61435
|
-
|
|
61565
|
+
T0(this, "options");
|
|
61566
|
+
T0(this, "plane");
|
|
61567
|
+
T0(this, "water");
|
|
61436
61568
|
this.options = fi({
|
|
61437
61569
|
color: "#0C4557",
|
|
61438
61570
|
map: null
|
|
@@ -61476,12 +61608,12 @@ function getCanvasTexture(m) {
|
|
|
61476
61608
|
class Target extends ft$1 {
|
|
61477
61609
|
constructor(r) {
|
|
61478
61610
|
super();
|
|
61479
|
-
|
|
61480
|
-
|
|
61481
|
-
|
|
61482
|
-
|
|
61483
|
-
|
|
61484
|
-
|
|
61611
|
+
T0(this, "options");
|
|
61612
|
+
T0(this, "time", { value: 0 });
|
|
61613
|
+
T0(this, "offset", new Vector2(0, 0));
|
|
61614
|
+
T0(this, "timer", null);
|
|
61615
|
+
T0(this, "inTween", null);
|
|
61616
|
+
T0(this, "outTween", null);
|
|
61485
61617
|
this.options = r;
|
|
61486
61618
|
}
|
|
61487
61619
|
createWave(r) {
|
|
@@ -139828,18 +139960,18 @@ const continentsBbox = continentsBboxObj, continentsM49 = {
|
|
|
139828
139960
|
class City$1 extends Base {
|
|
139829
139961
|
constructor() {
|
|
139830
139962
|
super(...arguments);
|
|
139831
|
-
|
|
139832
|
-
|
|
139833
|
-
|
|
139834
|
-
|
|
139963
|
+
T0(this, "leadObjs", objs$2);
|
|
139964
|
+
T0(this, "adcode", 0);
|
|
139965
|
+
T0(this, "pcenter", [104, 37.5]);
|
|
139966
|
+
T0(this, "pscale", 5e4);
|
|
139835
139967
|
// pscale = 50000 / 1000;
|
|
139836
|
-
|
|
139837
|
-
|
|
139838
|
-
|
|
139839
|
-
|
|
139840
|
-
|
|
139841
|
-
|
|
139842
|
-
|
|
139968
|
+
T0(this, "projection");
|
|
139969
|
+
T0(this, "group");
|
|
139970
|
+
T0(this, "building");
|
|
139971
|
+
T0(this, "road");
|
|
139972
|
+
T0(this, "innerAreaGroup");
|
|
139973
|
+
T0(this, "outAreaGroup");
|
|
139974
|
+
T0(this, "multiplyScalar", 1);
|
|
139843
139975
|
}
|
|
139844
139976
|
setOptions(r) {
|
|
139845
139977
|
super.setOptions(fi({
|
|
@@ -140262,11 +140394,11 @@ class City$1 extends Base {
|
|
|
140262
140394
|
};
|
|
140263
140395
|
}
|
|
140264
140396
|
}
|
|
140265
|
-
|
|
140397
|
+
T0(City$1, "VisName", "city");
|
|
140266
140398
|
class City extends City$1 {
|
|
140267
140399
|
constructor() {
|
|
140268
140400
|
super(...arguments);
|
|
140269
|
-
|
|
140401
|
+
T0(this, "multiplyScalar", 1 / 1e3);
|
|
140270
140402
|
}
|
|
140271
140403
|
fixNearFar(r = 0.01, d) {
|
|
140272
140404
|
this.pencil.camera.near = r * this.multiplyScalar, d && (this.pencil.camera.far = d * this.multiplyScalar), this.pencil.camera.updateProjectionMatrix();
|
|
@@ -140280,14 +140412,14 @@ let PlaneMap$1 = class extends ft$1 {
|
|
|
140280
140412
|
constructor(r) {
|
|
140281
140413
|
var d;
|
|
140282
140414
|
super();
|
|
140283
|
-
|
|
140284
|
-
|
|
140285
|
-
|
|
140286
|
-
|
|
140287
|
-
|
|
140288
|
-
|
|
140289
|
-
|
|
140290
|
-
|
|
140415
|
+
T0(this, "options");
|
|
140416
|
+
T0(this, "isActive", !0);
|
|
140417
|
+
T0(this, "groupArr", []);
|
|
140418
|
+
T0(this, "areaArr", []);
|
|
140419
|
+
T0(this, "lineArr");
|
|
140420
|
+
T0(this, "mergeSideArea", null);
|
|
140421
|
+
T0(this, "extrudelineArr");
|
|
140422
|
+
T0(this, "splitPolygons", 0);
|
|
140291
140423
|
this.options = fi({
|
|
140292
140424
|
areaGroup: !0,
|
|
140293
140425
|
hasSide: !0,
|
|
@@ -140616,8 +140748,8 @@ let PlaneMap$1 = class extends ft$1 {
|
|
|
140616
140748
|
class ContinentsBg extends ft$1 {
|
|
140617
140749
|
constructor(r) {
|
|
140618
140750
|
super();
|
|
140619
|
-
|
|
140620
|
-
|
|
140751
|
+
T0(this, "options");
|
|
140752
|
+
T0(this, "mapArr", []);
|
|
140621
140753
|
this.options = r;
|
|
140622
140754
|
}
|
|
140623
140755
|
create() {
|
|
@@ -140691,8 +140823,8 @@ class ContinentsBg extends ft$1 {
|
|
|
140691
140823
|
class PlaneMap extends ft$1 {
|
|
140692
140824
|
constructor(r) {
|
|
140693
140825
|
super();
|
|
140694
|
-
|
|
140695
|
-
|
|
140826
|
+
T0(this, "options");
|
|
140827
|
+
T0(this, "extrudePolygon");
|
|
140696
140828
|
this.options = fi({
|
|
140697
140829
|
depth: 2
|
|
140698
140830
|
}, r);
|
|
@@ -141149,25 +141281,25 @@ const objs$1 = Ui(fi({}, objs$3), {
|
|
|
141149
141281
|
}, yn = class yn extends Base {
|
|
141150
141282
|
constructor() {
|
|
141151
141283
|
super(...arguments);
|
|
141152
|
-
|
|
141153
|
-
|
|
141154
|
-
|
|
141155
|
-
|
|
141156
|
-
|
|
141157
|
-
|
|
141158
|
-
|
|
141159
|
-
|
|
141160
|
-
|
|
141161
|
-
|
|
141162
|
-
|
|
141163
|
-
|
|
141164
|
-
|
|
141284
|
+
T0(this, "leadObjs", objs$1);
|
|
141285
|
+
T0(this, "mapHistory", []);
|
|
141286
|
+
T0(this, "activePlaneMap", null);
|
|
141287
|
+
T0(this, "isAnimating", !1);
|
|
141288
|
+
T0(this, "parentBg", []);
|
|
141289
|
+
T0(this, "continentsBg");
|
|
141290
|
+
T0(this, "group");
|
|
141291
|
+
T0(this, "projection");
|
|
141292
|
+
T0(this, "pcenter", [104, 37.5]);
|
|
141293
|
+
T0(this, "pscale", 5e4 / 1e3);
|
|
141294
|
+
T0(this, "meters");
|
|
141295
|
+
T0(this, "cityVis", null);
|
|
141296
|
+
T0(this, "extendsOptions", {
|
|
141165
141297
|
mapDepth: () => this.getOptionsDepth(this.options.adcode),
|
|
141166
141298
|
equirectangular: () => this.options.projectionType === "equirectangular",
|
|
141167
141299
|
mapBoundary: () => this.options.mapBoundary,
|
|
141168
141300
|
mergeSide: () => this.options.mergeSide
|
|
141169
141301
|
});
|
|
141170
|
-
|
|
141302
|
+
T0(this, "initSettingsObj", {
|
|
141171
141303
|
label: !1,
|
|
141172
141304
|
labelLite: !1,
|
|
141173
141305
|
shadowMap: !1
|
|
@@ -141176,9 +141308,9 @@ const objs$1 = Ui(fi({}, objs$3), {
|
|
|
141176
141308
|
// '测试边框宽度:::caId': 0,
|
|
141177
141309
|
// '测试添加面.btn:::caId': 0,
|
|
141178
141310
|
});
|
|
141179
|
-
|
|
141180
|
-
|
|
141181
|
-
|
|
141311
|
+
T0(this, "caId");
|
|
141312
|
+
T0(this, "shadowMapLight");
|
|
141313
|
+
T0(this, "planeShadow");
|
|
141182
141314
|
}
|
|
141183
141315
|
get mapObj() {
|
|
141184
141316
|
return this.mapHistory[this.mapHistory.length - 1];
|
|
@@ -142163,12 +142295,12 @@ const objs$1 = Ui(fi({}, objs$3), {
|
|
|
142163
142295
|
}), this.parentBg.length = 0, (g = this.continentsBg) == null || g.dispose(), this.continentsBg = void 0, this.mapHistory.length = 0, super.dispose();
|
|
142164
142296
|
}
|
|
142165
142297
|
};
|
|
142166
|
-
|
|
142298
|
+
T0(yn, "VisName", "map");
|
|
142167
142299
|
let index$1 = yn;
|
|
142168
142300
|
class Earth extends Sphere {
|
|
142169
142301
|
constructor(r) {
|
|
142170
142302
|
super();
|
|
142171
|
-
|
|
142303
|
+
T0(this, "options");
|
|
142172
142304
|
this.options = fi({
|
|
142173
142305
|
radius: 30,
|
|
142174
142306
|
rotationY: 0
|
|
@@ -142182,9 +142314,9 @@ class Earth extends Sphere {
|
|
|
142182
142314
|
class Countries extends ft$1 {
|
|
142183
142315
|
constructor(r) {
|
|
142184
142316
|
super();
|
|
142185
|
-
|
|
142186
|
-
|
|
142187
|
-
|
|
142317
|
+
T0(this, "options");
|
|
142318
|
+
T0(this, "areaArr", []);
|
|
142319
|
+
T0(this, "lineArr", []);
|
|
142188
142320
|
this.options = fi({
|
|
142189
142321
|
start: 30,
|
|
142190
142322
|
depth: 1.4,
|
|
@@ -142273,7 +142405,7 @@ class Countries extends ft$1 {
|
|
|
142273
142405
|
class SphereShadow extends ft$1 {
|
|
142274
142406
|
constructor(r) {
|
|
142275
142407
|
super();
|
|
142276
|
-
|
|
142408
|
+
T0(this, "options");
|
|
142277
142409
|
this.options = fi({
|
|
142278
142410
|
radius: 30
|
|
142279
142411
|
}, r);
|
|
@@ -142521,13 +142653,13 @@ const objs = Ui(fi({}, objs$3), {
|
|
|
142521
142653
|
}, Symbol.toStringTag, { value: "Module" })), Xn = class Xn extends Base {
|
|
142522
142654
|
constructor() {
|
|
142523
142655
|
super(...arguments);
|
|
142524
|
-
|
|
142525
|
-
|
|
142526
|
-
|
|
142656
|
+
T0(this, "leadObjs", objs);
|
|
142657
|
+
T0(this, "leftTruck", !1);
|
|
142658
|
+
T0(this, "extendsOptions", {
|
|
142527
142659
|
mapDepth: () => this.options.mapDepth
|
|
142528
142660
|
});
|
|
142529
|
-
|
|
142530
|
-
|
|
142661
|
+
T0(this, "map");
|
|
142662
|
+
T0(this, "autoRotateSpeed", 0);
|
|
142531
142663
|
}
|
|
142532
142664
|
get mapArea() {
|
|
142533
142665
|
return this.map.areaArr;
|
|
@@ -142655,7 +142787,7 @@ const objs = Ui(fi({}, objs$3), {
|
|
|
142655
142787
|
});
|
|
142656
142788
|
}
|
|
142657
142789
|
};
|
|
142658
|
-
|
|
142790
|
+
T0(Xn, "VisName", "earth");
|
|
142659
142791
|
let index = Xn;
|
|
142660
142792
|
const ec = (m, t) => {
|
|
142661
142793
|
const r = stringToUtf8ByteArray(m), d = stringToUtf8ByteArray(t).map(function(g, v) {
|