@needle-tools/engine 3.47.6 → 3.47.7
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/CHANGELOG.md +5 -0
- package/dist/needle-engine.js +449 -455
- package/dist/needle-engine.light.js +410 -416
- package/dist/needle-engine.light.min.js +28 -26
- package/dist/needle-engine.light.umd.cjs +70 -68
- package/dist/needle-engine.min.js +28 -26
- package/dist/needle-engine.umd.cjs +71 -69
- package/lib/engine/engine_element.js +13 -20
- package/lib/engine/engine_element.js.map +1 -1
- package/lib/engine/engine_scenetools.js +2 -1
- package/lib/engine/engine_scenetools.js.map +1 -1
- package/lib/engine/engine_utils_format.d.ts +2 -2
- package/lib/engine/engine_utils_format.js +26 -4
- package/lib/engine/engine_utils_format.js.map +1 -1
- package/lib/engine/webcomponents/needle menu/needle-menu.js +2 -0
- package/lib/engine/webcomponents/needle menu/needle-menu.js.map +1 -1
- package/package.json +1 -1
- package/src/engine/engine_element.ts +16 -17
- package/src/engine/engine_scenetools.ts +2 -1
- package/src/engine/engine_utils_format.ts +27 -5
- package/src/engine/webcomponents/needle menu/needle-menu.ts +2 -0
package/dist/needle-engine.js
CHANGED
|
@@ -15,7 +15,7 @@ var uc = (g, A, e) => (fR(g, A, "access private method"), e);
|
|
|
15
15
|
* Copyright 2010-2023 Three.js Authors
|
|
16
16
|
* SPDX-License-Identifier: MIT
|
|
17
17
|
*/
|
|
18
|
-
const gC = "162", $c = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, AQ = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, I3 = 0, Bb = 1, o3 = 2, jj = 3, $j = 0, eJ = 1, tJ = 2, da = 3, ag = 0,
|
|
18
|
+
const gC = "162", $c = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, AQ = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, I3 = 0, Bb = 1, o3 = 2, jj = 3, $j = 0, eJ = 1, tJ = 2, da = 3, ag = 0, Gi = 1, yt = 2, ki = 0, UB = 1, HQ = 2, cb = 3, Qb = 4, iJ = 5, pB = 100, s3 = 101, n3 = 102, lb = 103, yS = 104, a3 = 200, r3 = 201, C3 = 202, B3 = 203, wS = 204, mS = 205, c3 = 206, Q3 = 207, l3 = 208, h3 = 209, E3 = 210, d3 = 211, u3 = 212, p3 = 213, f3 = 214, gJ = 0, HG = 1, Rf = 2, YQ = 3, YE = 4, YG = 5, OG = 6, UD = 7, ND = 0, D3 = 1, y3 = 2, fo = 0, Ed = 1, FD = 2, w3 = 3, bD = 4, m3 = 5, dd = 6, OQ = 7, hb = "attached", S3 = "detached", PG = 300, IC = 301, PB = 302, Do = 303, OE = 304, ud = 306, Oo = 1e3, dg = 1001, oC = 1002, be = 1003, PE = 1004, A8 = 1004, Lr = 1005, e8 = 1005, qe = 1006, SQ = 1007, t8 = 1007, _o = 1008, i8 = 1008, Mi = 1009, SS = 1010, IJ = 1011, KD = 1012, GQ = 1013, YI = 1014, si = 1015, Kg = 1016, oJ = 1017, sJ = 1018, $r = 1020, G3 = 1021, bt = 1023, ZG = 1024, k3 = 1025, NB = 1026, ZB = 1027, rl = 1028, WG = 1029, VG = 1030, xD = 1031, ZE = 1033, bm = 33776, Km = 33777, xm = 33778, Jm = 33779, Eb = 35840, db = 35841, ub = 35842, pb = 35843, nJ = 36196, fb = 37492, Db = 37496, yb = 37808, wb = 37809, mb = 37810, Sb = 37811, Gb = 37812, kb = 37813, Mb = 37814, Rb = 37815, Ub = 37816, Nb = 37817, Fb = 37818, bb = 37819, Kb = 37820, xb = 37821, vm = 36492, Jb = 36494, vb = 36495, M3 = 36283, Lb = 36284, qb = 36285, _b = 36286, Uf = 2200, aJ = 2201, R3 = 2202, WB = 2300, Ta = 2301, Lm = 2302, BQ = 2400, cQ = 2401, Nf = 2402, XG = 2500, rJ = 2501, U3 = 0, CJ = 1, GS = 2, N3 = 3e3, Tb = 3001, wI = 3200, zG = 3201, Ac = 0, F3 = 1, qo = "", De = "srgb", Ht = "srgb-linear", jG = "display-p3", JD = "display-p3-linear", Ff = "linear", ti = "srgb", bf = "rec709", Kf = "p3", b3 = 0, QB = 7680, K3 = 7681, x3 = 7682, J3 = 7683, v3 = 34055, L3 = 34056, q3 = 5386, Hb = 512, _3 = 513, T3 = 514, H3 = 515, Y3 = 516, O3 = 517, P3 = 518, kS = 519, Z3 = 512, W3 = 513, V3 = 514, BJ = 515, X3 = 516, z3 = 517, j3 = 518, $3 = 519, xf = 35044, LI = 35048, g8 = 35040, I8 = 35045, o8 = 35049, s8 = 35041, n8 = 35046, a8 = 35050, r8 = 35042, C8 = "100", MS = "300 es", RS = 1035, Ua = 2e3, Jf = 2001;
|
|
19
19
|
let gI = class {
|
|
20
20
|
addEventListener(A, e) {
|
|
21
21
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -769,7 +769,7 @@ function wR(g) {
|
|
|
769
769
|
} : (console.warn("THREE.Texture: Unable to serialize Texture."), {});
|
|
770
770
|
}
|
|
771
771
|
let M8 = 0, Pe = class qm extends gI {
|
|
772
|
-
constructor(A = qm.DEFAULT_IMAGE, e = qm.DEFAULT_MAPPING, t = dg, i = dg, I = qe, o = _o, s = bt, n =
|
|
772
|
+
constructor(A = qm.DEFAULT_IMAGE, e = qm.DEFAULT_MAPPING, t = dg, i = dg, I = qe, o = _o, s = bt, n = Mi, a = qm.DEFAULT_ANISOTROPY, r = qo) {
|
|
773
773
|
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: M8++ }), this.uuid = ps(), this.name = "", this.source = new Zr(A), this.mipmaps = [], this.mapping = e, this.channel = 0, this.wrapS = t, this.wrapT = i, this.magFilter = I, this.minFilter = o, this.anisotropy = a, this.format = s, this.internalFormat = null, this.type = n, this.offset = new tA(0, 0), this.repeat = new tA(1, 1), this.center = new tA(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Le(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = r, this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1;
|
|
774
774
|
}
|
|
775
775
|
get image() {
|
|
@@ -3993,7 +3993,7 @@ let EA = class extends pA {
|
|
|
3993
3993
|
};
|
|
3994
3994
|
function V8(g, A, e, t, i, I, o, s) {
|
|
3995
3995
|
let n;
|
|
3996
|
-
if (A.side ===
|
|
3996
|
+
if (A.side === Gi ? n = t.intersectTriangle(o, I, i, !0, s) : n = t.intersectTriangle(i, I, o, A.side === ag, s), n === null)
|
|
3997
3997
|
return null;
|
|
3998
3998
|
ew.copy(s), ew.applyMatrix4(g.matrixWorld);
|
|
3999
3999
|
const a = e.ray.origin.distanceTo(ew);
|
|
@@ -4404,8 +4404,8 @@ class dJ extends $e {
|
|
|
4404
4404
|
uniforms: VE(t.uniforms),
|
|
4405
4405
|
vertexShader: t.vertexShader,
|
|
4406
4406
|
fragmentShader: t.fragmentShader,
|
|
4407
|
-
side:
|
|
4408
|
-
blending:
|
|
4407
|
+
side: Gi,
|
|
4408
|
+
blending: ki
|
|
4409
4409
|
});
|
|
4410
4410
|
I.uniforms.tEquirect.value = e;
|
|
4411
4411
|
const o = new EA(i, I), s = e.minFilter;
|
|
@@ -8816,7 +8816,7 @@ function J7(g, A, e, t, i, I, o) {
|
|
|
8816
8816
|
uniforms: VE(fI.backgroundCube.uniforms),
|
|
8817
8817
|
vertexShader: fI.backgroundCube.vertexShader,
|
|
8818
8818
|
fragmentShader: fI.backgroundCube.fragmentShader,
|
|
8819
|
-
side:
|
|
8819
|
+
side: Gi,
|
|
8820
8820
|
depthTest: !1,
|
|
8821
8821
|
depthWrite: !1,
|
|
8822
8822
|
fog: !1
|
|
@@ -9404,7 +9404,7 @@ class Pb {
|
|
|
9404
9404
|
r.getClearColor(q_), r.toneMapping = fo, r.autoClear = !1;
|
|
9405
9405
|
const Q = new At({
|
|
9406
9406
|
name: "PMREM.Background",
|
|
9407
|
-
side:
|
|
9407
|
+
side: Gi,
|
|
9408
9408
|
depthWrite: !1,
|
|
9409
9409
|
depthTest: !1
|
|
9410
9410
|
}), l = new EA(new gi(), Q);
|
|
@@ -9616,7 +9616,7 @@ function H7(g, A, e) {
|
|
|
9616
9616
|
}
|
|
9617
9617
|
`
|
|
9618
9618
|
),
|
|
9619
|
-
blending:
|
|
9619
|
+
blending: ki,
|
|
9620
9620
|
depthTest: !1,
|
|
9621
9621
|
depthWrite: !1
|
|
9622
9622
|
});
|
|
@@ -9651,7 +9651,7 @@ function Y_() {
|
|
|
9651
9651
|
}
|
|
9652
9652
|
`
|
|
9653
9653
|
),
|
|
9654
|
-
blending:
|
|
9654
|
+
blending: ki,
|
|
9655
9655
|
depthTest: !1,
|
|
9656
9656
|
depthWrite: !1
|
|
9657
9657
|
});
|
|
@@ -9684,7 +9684,7 @@ function O_() {
|
|
|
9684
9684
|
}
|
|
9685
9685
|
`
|
|
9686
9686
|
),
|
|
9687
|
-
blending:
|
|
9687
|
+
blending: ki,
|
|
9688
9688
|
depthTest: !1,
|
|
9689
9689
|
depthWrite: !1
|
|
9690
9690
|
});
|
|
@@ -11332,7 +11332,7 @@ function cAA(g, A, e, t, i, I, o) {
|
|
|
11332
11332
|
decodeVideoTexture: ne && w.map.isVideoTexture === !0 && Ut.getTransfer(w.map.colorSpace) === ti,
|
|
11333
11333
|
premultipliedAlpha: w.premultipliedAlpha,
|
|
11334
11334
|
doubleSided: w.side === yt,
|
|
11335
|
-
flipSided: w.side ===
|
|
11335
|
+
flipSided: w.side === Gi,
|
|
11336
11336
|
useDepthPacking: w.depthPacking >= 0,
|
|
11337
11337
|
depthPacking: w.depthPacking || 0,
|
|
11338
11338
|
index0AttributeName: w.index0AttributeName,
|
|
@@ -11808,7 +11808,7 @@ void main() {
|
|
|
11808
11808
|
}`;
|
|
11809
11809
|
function mAA(g, A, e) {
|
|
11810
11810
|
let t = new PQ();
|
|
11811
|
-
const i = new tA(), I = new tA(), o = new $A(), s = new qD({ depthPacking: zG }), n = new pJ(), a = {}, r = e.maxTextureSize, C = { [ag]:
|
|
11811
|
+
const i = new tA(), I = new tA(), o = new $A(), s = new qD({ depthPacking: zG }), n = new pJ(), a = {}, r = e.maxTextureSize, C = { [ag]: Gi, [Gi]: ag, [yt]: yt }, c = new Je({
|
|
11812
11812
|
defines: {
|
|
11813
11813
|
VSM_SAMPLES: 8
|
|
11814
11814
|
},
|
|
@@ -11836,7 +11836,7 @@ function mAA(g, A, e) {
|
|
|
11836
11836
|
if (h.enabled === !1 || h.autoUpdate === !1 && h.needsUpdate === !1 || y.length === 0)
|
|
11837
11837
|
return;
|
|
11838
11838
|
const U = g.getRenderTarget(), w = g.getActiveCubeFace(), M = g.getActiveMipmapLevel(), b = g.state;
|
|
11839
|
-
b.setBlending(
|
|
11839
|
+
b.setBlending(ki), b.buffers.color.setClear(1, 1, 1, 1), b.buffers.depth.setTest(!0), b.setScissorTest(!1);
|
|
11840
11840
|
const J = E !== da && this.type === da, F = E === da && this.type !== da;
|
|
11841
11841
|
for (let T = 0, x = y.length; T < x; T++) {
|
|
11842
11842
|
const L = y[T], _ = L.shadow;
|
|
@@ -12005,11 +12005,11 @@ function SAA(g, A, e) {
|
|
|
12005
12005
|
setMask: function(rt) {
|
|
12006
12006
|
xA !== rt && !AA && (g.stencilMask(rt), xA = rt);
|
|
12007
12007
|
},
|
|
12008
|
-
setFunc: function(rt,
|
|
12009
|
-
(cA !== rt || OA !==
|
|
12008
|
+
setFunc: function(rt, Ni, Yi) {
|
|
12009
|
+
(cA !== rt || OA !== Ni || zA !== Yi) && (g.stencilFunc(rt, Ni, Yi), cA = rt, OA = Ni, zA = Yi);
|
|
12010
12010
|
},
|
|
12011
|
-
setOp: function(rt,
|
|
12012
|
-
(st !== rt || Nt !==
|
|
12011
|
+
setOp: function(rt, Ni, Yi) {
|
|
12012
|
+
(st !== rt || Nt !== Ni || ui !== Yi) && (g.stencilOp(rt, Ni, Yi), st = rt, Nt = Ni, ui = Yi);
|
|
12013
12013
|
},
|
|
12014
12014
|
setLocked: function(rt) {
|
|
12015
12015
|
AA = rt;
|
|
@@ -12038,7 +12038,7 @@ function SAA(g, A, e) {
|
|
|
12038
12038
|
return st;
|
|
12039
12039
|
}
|
|
12040
12040
|
const HA = {};
|
|
12041
|
-
HA[g.TEXTURE_2D] = qA(g.TEXTURE_2D, g.TEXTURE_2D, 1), HA[g.TEXTURE_CUBE_MAP] = qA(g.TEXTURE_CUBE_MAP, g.TEXTURE_CUBE_MAP_POSITIVE_X, 6), t && (HA[g.TEXTURE_2D_ARRAY] = qA(g.TEXTURE_2D_ARRAY, g.TEXTURE_2D_ARRAY, 1, 1), HA[g.TEXTURE_3D] = qA(g.TEXTURE_3D, g.TEXTURE_3D, 1, 1)), s.setClear(0, 0, 0, 1), n.setClear(1), a.setClear(0), WA(g.DEPTH_TEST), n.setFunc(YQ), te(!1), Ce(Bb), WA(g.CULL_FACE), RA(
|
|
12041
|
+
HA[g.TEXTURE_2D] = qA(g.TEXTURE_2D, g.TEXTURE_2D, 1), HA[g.TEXTURE_CUBE_MAP] = qA(g.TEXTURE_CUBE_MAP, g.TEXTURE_CUBE_MAP_POSITIVE_X, 6), t && (HA[g.TEXTURE_2D_ARRAY] = qA(g.TEXTURE_2D_ARRAY, g.TEXTURE_2D_ARRAY, 1, 1), HA[g.TEXTURE_3D] = qA(g.TEXTURE_3D, g.TEXTURE_3D, 1, 1)), s.setClear(0, 0, 0, 1), n.setClear(1), a.setClear(0), WA(g.DEPTH_TEST), n.setFunc(YQ), te(!1), Ce(Bb), WA(g.CULL_FACE), RA(ki);
|
|
12042
12042
|
function WA(AA) {
|
|
12043
12043
|
c[AA] !== !0 && (g.enable(AA), c[AA] = !0);
|
|
12044
12044
|
}
|
|
@@ -12100,7 +12100,7 @@ function SAA(g, A, e) {
|
|
|
12100
12100
|
[f3]: g.ONE_MINUS_CONSTANT_ALPHA
|
|
12101
12101
|
};
|
|
12102
12102
|
function RA(AA, xA, cA, OA, zA, st, Nt, ui, pi, rt) {
|
|
12103
|
-
if (AA ===
|
|
12103
|
+
if (AA === ki) {
|
|
12104
12104
|
E === !0 && (re(g.BLEND), E = !1);
|
|
12105
12105
|
return;
|
|
12106
12106
|
}
|
|
@@ -12150,8 +12150,8 @@ function SAA(g, A, e) {
|
|
|
12150
12150
|
}
|
|
12151
12151
|
function ge(AA, xA) {
|
|
12152
12152
|
AA.side === yt ? re(g.CULL_FACE) : WA(g.CULL_FACE);
|
|
12153
|
-
let cA = AA.side ===
|
|
12154
|
-
xA && (cA = !cA), te(cA), AA.blending === UB && AA.transparent === !1 ? RA(
|
|
12153
|
+
let cA = AA.side === Gi;
|
|
12154
|
+
xA && (cA = !cA), te(cA), AA.blending === UB && AA.transparent === !1 ? RA(ki) : RA(AA.blending, AA.blendEquation, AA.blendSrc, AA.blendDst, AA.blendEquationAlpha, AA.blendSrcAlpha, AA.blendDstAlpha, AA.blendColor, AA.blendAlpha, AA.premultipliedAlpha), n.setFunc(AA.depthFunc), n.setTest(AA.depthTest), n.setMask(AA.depthWrite), s.setMask(AA.colorWrite);
|
|
12155
12155
|
const OA = AA.stencilWrite;
|
|
12156
12156
|
a.setTest(OA), OA && (a.setMask(AA.stencilWriteMask), a.setFunc(AA.stencilFunc, AA.stencilRef, AA.stencilFuncMask), a.setOp(AA.stencilFail, AA.stencilZFail, AA.stencilZPass)), Y(AA.polygonOffset, AA.polygonOffsetFactor, AA.polygonOffsetUnits), AA.alphaToCoverage === !0 ? WA(g.SAMPLE_ALPHA_TO_COVERAGE) : re(g.SAMPLE_ALPHA_TO_COVERAGE);
|
|
12157
12157
|
}
|
|
@@ -12824,7 +12824,7 @@ function GAA(g, A, e, t, i, I, o) {
|
|
|
12824
12824
|
}
|
|
12825
12825
|
function Ce(Y, v) {
|
|
12826
12826
|
const fA = Y.colorSpace, wA = Y.format, bA = Y.type;
|
|
12827
|
-
return Y.isCompressedTexture === !0 || Y.isVideoTexture === !0 || Y.format === RS || fA !== Ht && fA !== qo && (Ut.getTransfer(fA) === ti ? s === !1 ? A.has("EXT_sRGB") === !0 && wA === bt ? (Y.format = RS, Y.minFilter = qe, Y.generateMipmaps = !1) : v = QJ.sRGBToLinear(v) : (wA !== bt || bA !==
|
|
12827
|
+
return Y.isCompressedTexture === !0 || Y.isVideoTexture === !0 || Y.format === RS || fA !== Ht && fA !== qo && (Ut.getTransfer(fA) === ti ? s === !1 ? A.has("EXT_sRGB") === !0 && wA === bt ? (Y.format = RS, Y.minFilter = qe, Y.generateMipmaps = !1) : v = QJ.sRGBToLinear(v) : (wA !== bt || bA !== Mi) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", fA)), v;
|
|
12828
12828
|
}
|
|
12829
12829
|
function He(Y) {
|
|
12830
12830
|
return typeof HTMLImageElement < "u" && Y instanceof HTMLImageElement ? (r.width = Y.naturalWidth || Y.width, r.height = Y.naturalHeight || Y.height) : typeof VideoFrame < "u" && Y instanceof VideoFrame ? (r.width = Y.displayWidth, r.height = Y.displayHeight) : (r.width = Y.width, r.height = Y.height), r;
|
|
@@ -12836,7 +12836,7 @@ function d4(g, A, e) {
|
|
|
12836
12836
|
function i(I, o = qo) {
|
|
12837
12837
|
let s;
|
|
12838
12838
|
const n = Ut.getTransfer(o);
|
|
12839
|
-
if (I ===
|
|
12839
|
+
if (I === Mi)
|
|
12840
12840
|
return g.UNSIGNED_BYTE;
|
|
12841
12841
|
if (I === oJ)
|
|
12842
12842
|
return g.UNSIGNED_SHORT_4_4_4_4;
|
|
@@ -13188,7 +13188,7 @@ class NAA extends gI {
|
|
|
13188
13188
|
Q.framebufferHeight,
|
|
13189
13189
|
{
|
|
13190
13190
|
format: bt,
|
|
13191
|
-
type:
|
|
13191
|
+
type: Mi,
|
|
13192
13192
|
colorSpace: A.outputColorSpace,
|
|
13193
13193
|
stencilBuffer: h.stencil
|
|
13194
13194
|
}
|
|
@@ -13206,7 +13206,7 @@ class NAA extends gI {
|
|
|
13206
13206
|
c.textureHeight,
|
|
13207
13207
|
{
|
|
13208
13208
|
format: bt,
|
|
13209
|
-
type:
|
|
13209
|
+
type: Mi,
|
|
13210
13210
|
depthTexture: new fd(c.textureWidth, c.textureHeight, SA, void 0, void 0, void 0, void 0, void 0, void 0, DA),
|
|
13211
13211
|
stencilBuffer: h.stencil,
|
|
13212
13212
|
colorSpace: A.outputColorSpace,
|
|
@@ -13339,7 +13339,7 @@ function bAA(g, A) {
|
|
|
13339
13339
|
E.isMeshBasicMaterial || E.isMeshLambertMaterial ? I(h, E) : E.isMeshToonMaterial ? (I(h, E), C(h, E)) : E.isMeshPhongMaterial ? (I(h, E), r(h, E)) : E.isMeshStandardMaterial ? (I(h, E), c(h, E), E.isMeshPhysicalMaterial && Q(h, E, f)) : E.isMeshMatcapMaterial ? (I(h, E), l(h, E)) : E.isMeshDepthMaterial ? I(h, E) : E.isMeshDistanceMaterial ? (I(h, E), d(h, E)) : E.isMeshNormalMaterial ? I(h, E) : E.isLineBasicMaterial ? (o(h, E), E.isLineDashedMaterial && s(h, E)) : E.isPointsMaterial ? n(h, E, u, p) : E.isSpriteMaterial ? a(h, E) : E.isShadowMaterial ? (h.color.value.copy(E.color), h.opacity.value = E.opacity) : E.isShaderMaterial && (E.uniformsNeedUpdate = !1);
|
|
13340
13340
|
}
|
|
13341
13341
|
function I(h, E) {
|
|
13342
|
-
h.opacity.value = E.opacity, E.color && h.diffuse.value.copy(E.color), E.emissive && h.emissive.value.copy(E.emissive).multiplyScalar(E.emissiveIntensity), E.map && (h.map.value = E.map, e(E.map, h.mapTransform)), E.alphaMap && (h.alphaMap.value = E.alphaMap, e(E.alphaMap, h.alphaMapTransform)), E.bumpMap && (h.bumpMap.value = E.bumpMap, e(E.bumpMap, h.bumpMapTransform), h.bumpScale.value = E.bumpScale, E.side ===
|
|
13342
|
+
h.opacity.value = E.opacity, E.color && h.diffuse.value.copy(E.color), E.emissive && h.emissive.value.copy(E.emissive).multiplyScalar(E.emissiveIntensity), E.map && (h.map.value = E.map, e(E.map, h.mapTransform)), E.alphaMap && (h.alphaMap.value = E.alphaMap, e(E.alphaMap, h.alphaMapTransform)), E.bumpMap && (h.bumpMap.value = E.bumpMap, e(E.bumpMap, h.bumpMapTransform), h.bumpScale.value = E.bumpScale, E.side === Gi && (h.bumpScale.value *= -1)), E.normalMap && (h.normalMap.value = E.normalMap, e(E.normalMap, h.normalMapTransform), h.normalScale.value.copy(E.normalScale), E.side === Gi && h.normalScale.value.negate()), E.displacementMap && (h.displacementMap.value = E.displacementMap, e(E.displacementMap, h.displacementMapTransform), h.displacementScale.value = E.displacementScale, h.displacementBias.value = E.displacementBias), E.emissiveMap && (h.emissiveMap.value = E.emissiveMap, e(E.emissiveMap, h.emissiveMapTransform)), E.specularMap && (h.specularMap.value = E.specularMap, e(E.specularMap, h.specularMapTransform)), E.alphaTest > 0 && (h.alphaTest.value = E.alphaTest);
|
|
13343
13343
|
const u = A.get(E), p = u.envMap, f = u.envMapRotation;
|
|
13344
13344
|
if (p && (h.envMap.value = p, mc.copy(f), mc.x *= -1, mc.y *= -1, mc.z *= -1, p.isCubeTexture && p.isRenderTargetTexture === !1 && (mc.y *= -1, mc.z *= -1), h.envMapRotation.value.setFromMatrix4(FAA.makeRotationFromEuler(mc)), h.flipEnvMap.value = p.isCubeTexture && p.isRenderTargetTexture === !1 ? -1 : 1, h.reflectivity.value = E.reflectivity, h.ior.value = E.ior, h.refractionRatio.value = E.refractionRatio), E.lightMap) {
|
|
13345
13345
|
h.lightMap.value = E.lightMap;
|
|
@@ -13370,7 +13370,7 @@ function bAA(g, A) {
|
|
|
13370
13370
|
h.metalness.value = E.metalness, E.metalnessMap && (h.metalnessMap.value = E.metalnessMap, e(E.metalnessMap, h.metalnessMapTransform)), h.roughness.value = E.roughness, E.roughnessMap && (h.roughnessMap.value = E.roughnessMap, e(E.roughnessMap, h.roughnessMapTransform)), A.get(E).envMap && (h.envMapIntensity.value = E.envMapIntensity);
|
|
13371
13371
|
}
|
|
13372
13372
|
function Q(h, E, u) {
|
|
13373
|
-
h.ior.value = E.ior, E.sheen > 0 && (h.sheenColor.value.copy(E.sheenColor).multiplyScalar(E.sheen), h.sheenRoughness.value = E.sheenRoughness, E.sheenColorMap && (h.sheenColorMap.value = E.sheenColorMap, e(E.sheenColorMap, h.sheenColorMapTransform)), E.sheenRoughnessMap && (h.sheenRoughnessMap.value = E.sheenRoughnessMap, e(E.sheenRoughnessMap, h.sheenRoughnessMapTransform))), E.clearcoat > 0 && (h.clearcoat.value = E.clearcoat, h.clearcoatRoughness.value = E.clearcoatRoughness, E.clearcoatMap && (h.clearcoatMap.value = E.clearcoatMap, e(E.clearcoatMap, h.clearcoatMapTransform)), E.clearcoatRoughnessMap && (h.clearcoatRoughnessMap.value = E.clearcoatRoughnessMap, e(E.clearcoatRoughnessMap, h.clearcoatRoughnessMapTransform)), E.clearcoatNormalMap && (h.clearcoatNormalMap.value = E.clearcoatNormalMap, e(E.clearcoatNormalMap, h.clearcoatNormalMapTransform), h.clearcoatNormalScale.value.copy(E.clearcoatNormalScale), E.side ===
|
|
13373
|
+
h.ior.value = E.ior, E.sheen > 0 && (h.sheenColor.value.copy(E.sheenColor).multiplyScalar(E.sheen), h.sheenRoughness.value = E.sheenRoughness, E.sheenColorMap && (h.sheenColorMap.value = E.sheenColorMap, e(E.sheenColorMap, h.sheenColorMapTransform)), E.sheenRoughnessMap && (h.sheenRoughnessMap.value = E.sheenRoughnessMap, e(E.sheenRoughnessMap, h.sheenRoughnessMapTransform))), E.clearcoat > 0 && (h.clearcoat.value = E.clearcoat, h.clearcoatRoughness.value = E.clearcoatRoughness, E.clearcoatMap && (h.clearcoatMap.value = E.clearcoatMap, e(E.clearcoatMap, h.clearcoatMapTransform)), E.clearcoatRoughnessMap && (h.clearcoatRoughnessMap.value = E.clearcoatRoughnessMap, e(E.clearcoatRoughnessMap, h.clearcoatRoughnessMapTransform)), E.clearcoatNormalMap && (h.clearcoatNormalMap.value = E.clearcoatNormalMap, e(E.clearcoatNormalMap, h.clearcoatNormalMapTransform), h.clearcoatNormalScale.value.copy(E.clearcoatNormalScale), E.side === Gi && h.clearcoatNormalScale.value.negate())), E.iridescence > 0 && (h.iridescence.value = E.iridescence, h.iridescenceIOR.value = E.iridescenceIOR, h.iridescenceThicknessMinimum.value = E.iridescenceThicknessRange[0], h.iridescenceThicknessMaximum.value = E.iridescenceThicknessRange[1], E.iridescenceMap && (h.iridescenceMap.value = E.iridescenceMap, e(E.iridescenceMap, h.iridescenceMapTransform)), E.iridescenceThicknessMap && (h.iridescenceThicknessMap.value = E.iridescenceThicknessMap, e(E.iridescenceThicknessMap, h.iridescenceThicknessMapTransform))), E.transmission > 0 && (h.transmission.value = E.transmission, h.transmissionSamplerMap.value = u.texture, h.transmissionSamplerSize.value.set(u.width, u.height), E.transmissionMap && (h.transmissionMap.value = E.transmissionMap, e(E.transmissionMap, h.transmissionMapTransform)), h.thickness.value = E.thickness, E.thicknessMap && (h.thicknessMap.value = E.thicknessMap, e(E.thicknessMap, h.thicknessMapTransform)), h.attenuationDistance.value = E.attenuationDistance, h.attenuationColor.value.copy(E.attenuationColor)), E.anisotropy > 0 && (h.anisotropyVector.value.set(E.anisotropy * Math.cos(E.anisotropyRotation), E.anisotropy * Math.sin(E.anisotropyRotation)), E.anisotropyMap && (h.anisotropyMap.value = E.anisotropyMap, e(E.anisotropyMap, h.anisotropyMapTransform))), h.specularIntensity.value = E.specularIntensity, h.specularColor.value.copy(E.specularColor), E.specularColorMap && (h.specularColorMap.value = E.specularColorMap, e(E.specularColorMap, h.specularColorMapTransform)), E.specularIntensityMap && (h.specularIntensityMap.value = E.specularIntensityMap, e(E.specularIntensityMap, h.specularIntensityMapTransform));
|
|
13374
13374
|
}
|
|
13375
13375
|
function l(h, E) {
|
|
13376
13376
|
E.matcap && (h.matcap.value = E.matcap);
|
|
@@ -13632,7 +13632,7 @@ class uC {
|
|
|
13632
13632
|
z = uA === ZE || uA === xD || uA === WG;
|
|
13633
13633
|
}
|
|
13634
13634
|
if (z) {
|
|
13635
|
-
const uA = G.texture.type, lA = uA ===
|
|
13635
|
+
const uA = G.texture.type, lA = uA === Mi || uA === YI || uA === KD || uA === $r || uA === oJ || uA === sJ, mA = me.getClearColor(), KA = me.getClearAlpha(), JA = mA.r, ZA = mA.g, ee = mA.b;
|
|
13636
13636
|
lA ? (Q[0] = JA, Q[1] = ZA, Q[2] = ee, Q[3] = KA, W.clearBufferuiv(W.COLOR, 0, Q)) : (l[0] = JA, l[1] = ZA, l[2] = ee, l[3] = KA, W.clearBufferiv(W.COLOR, 0, l));
|
|
13637
13637
|
} else
|
|
13638
13638
|
X |= W.COLOR_BUFFER_BIT;
|
|
@@ -13645,7 +13645,7 @@ class uC {
|
|
|
13645
13645
|
}, this.clearStencil = function() {
|
|
13646
13646
|
this.clear(!1, !1, !0);
|
|
13647
13647
|
}, this.dispose = function() {
|
|
13648
|
-
e.removeEventListener("webglcontextlost", CA, !1), e.removeEventListener("webglcontextrestored", AA, !1), e.removeEventListener("webglcontextcreationerror", xA, !1), we.dispose(), Qe.dispose(), te.dispose(), He.dispose(), Y.dispose(), wA.dispose(), he.dispose(), ae.dispose(), bA.dispose(), P.dispose(), P.removeEventListener("sessionstart", pi), P.removeEventListener("sessionend", rt), SA && (SA.dispose(), SA = null),
|
|
13648
|
+
e.removeEventListener("webglcontextlost", CA, !1), e.removeEventListener("webglcontextrestored", AA, !1), e.removeEventListener("webglcontextcreationerror", xA, !1), we.dispose(), Qe.dispose(), te.dispose(), He.dispose(), Y.dispose(), wA.dispose(), he.dispose(), ae.dispose(), bA.dispose(), P.dispose(), P.removeEventListener("sessionstart", pi), P.removeEventListener("sessionend", rt), SA && (SA.dispose(), SA = null), Ni.stop();
|
|
13649
13649
|
};
|
|
13650
13650
|
function CA(N) {
|
|
13651
13651
|
N.preventDefault(), console.log("THREE.WebGLRenderer: Context Lost."), f = !0;
|
|
@@ -13707,7 +13707,7 @@ class uC {
|
|
|
13707
13707
|
Xe.render(ie, Me);
|
|
13708
13708
|
};
|
|
13709
13709
|
function st(N, H, O) {
|
|
13710
|
-
N.transparent === !0 && N.side === yt && N.forceSinglePass === !1 ? (N.side =
|
|
13710
|
+
N.transparent === !0 && N.side === yt && N.forceSinglePass === !1 ? (N.side = Gi, N.needsUpdate = !0, It(N, H, O), N.side = ag, N.needsUpdate = !0, It(N, H, O), N.side = yt) : It(N, H, O);
|
|
13711
13711
|
}
|
|
13712
13712
|
this.compile = function(N, H, O = null) {
|
|
13713
13713
|
O === null && (O = N), h = Qe.get(O), h.init(), u.push(h), O.traverseVisible(function(z) {
|
|
@@ -13747,14 +13747,14 @@ class uC {
|
|
|
13747
13747
|
Nt && Nt(N);
|
|
13748
13748
|
}
|
|
13749
13749
|
function pi() {
|
|
13750
|
-
|
|
13750
|
+
Ni.stop();
|
|
13751
13751
|
}
|
|
13752
13752
|
function rt() {
|
|
13753
|
-
|
|
13753
|
+
Ni.start();
|
|
13754
13754
|
}
|
|
13755
|
-
const
|
|
13756
|
-
|
|
13757
|
-
Nt = N, P.setAnimationLoop(N), N === null ?
|
|
13755
|
+
const Ni = new B4();
|
|
13756
|
+
Ni.setAnimationLoop(ui), typeof self < "u" && Ni.setContext(self), this.setAnimationLoop = function(N) {
|
|
13757
|
+
Nt = N, P.setAnimationLoop(N), N === null ? Ni.stop() : Ni.start();
|
|
13758
13758
|
}, P.addEventListener("sessionstart", pi), P.addEventListener("sessionend", rt), this.render = function(N, H) {
|
|
13759
13759
|
if (H !== void 0 && H.isCamera !== !0) {
|
|
13760
13760
|
console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");
|
|
@@ -13762,7 +13762,7 @@ class uC {
|
|
|
13762
13762
|
}
|
|
13763
13763
|
if (f === !0)
|
|
13764
13764
|
return;
|
|
13765
|
-
N.matrixWorldAutoUpdate === !0 && N.updateMatrixWorld(), H.parent === null && H.matrixWorldAutoUpdate === !0 && H.updateMatrixWorld(), P.enabled === !0 && P.isPresenting === !0 && (P.cameraAutoUpdate === !0 && P.updateCamera(H), H = P.getCamera()), N.isScene === !0 && N.onBeforeRender(p, N, H, G), h = Qe.get(N, u.length), h.init(), u.push(h), qA.multiplyMatrices(H.projectionMatrix, H.matrixWorldInverse), UA.setFromProjectionMatrix(qA), DA = this.localClippingEnabled, oA = vA.init(this.clippingPlanes, DA), d = we.get(N, E.length), d.init(), E.push(d),
|
|
13765
|
+
N.matrixWorldAutoUpdate === !0 && N.updateMatrixWorld(), H.parent === null && H.matrixWorldAutoUpdate === !0 && H.updateMatrixWorld(), P.enabled === !0 && P.isPresenting === !0 && (P.cameraAutoUpdate === !0 && P.updateCamera(H), H = P.getCamera()), N.isScene === !0 && N.onBeforeRender(p, N, H, G), h = Qe.get(N, u.length), h.init(), u.push(h), qA.multiplyMatrices(H.projectionMatrix, H.matrixWorldInverse), UA.setFromProjectionMatrix(qA), DA = this.localClippingEnabled, oA = vA.init(this.clippingPlanes, DA), d = we.get(N, E.length), d.init(), E.push(d), Yi(N, H, 0, p.sortObjects), d.finish(), p.sortObjects === !0 && d.sort(_, Z), this.info.render.frame++, oA === !0 && vA.beginShadows();
|
|
13766
13766
|
const O = h.state.shadowsArray;
|
|
13767
13767
|
if (PA.render(O, N, H), oA === !0 && vA.endShadows(), this.info.autoReset === !0 && this.info.reset(), (P.enabled === !1 || P.isPresenting === !1 || P.hasDepthSensing() === !1) && me.render(d, N), h.setupLights(p._useLegacyLights), H.isArrayCamera) {
|
|
13768
13768
|
const X = H.cameras;
|
|
@@ -13774,7 +13774,7 @@ class uC {
|
|
|
13774
13774
|
jo(d, N, H);
|
|
13775
13775
|
G !== null && (Ce.updateMultisampleRenderTarget(G), Ce.updateRenderTargetMipmap(G)), N.isScene === !0 && N.onAfterRender(p, N, H), he.resetDefaultState(), k = -1, U = null, u.pop(), u.length > 0 ? h = u[u.length - 1] : h = null, E.pop(), E.length > 0 ? d = E[E.length - 1] : d = null;
|
|
13776
13776
|
};
|
|
13777
|
-
function
|
|
13777
|
+
function Yi(N, H, O, X) {
|
|
13778
13778
|
if (N.visible === !1)
|
|
13779
13779
|
return;
|
|
13780
13780
|
if (N.layers.test(H.layers)) {
|
|
@@ -13804,7 +13804,7 @@ class uC {
|
|
|
13804
13804
|
}
|
|
13805
13805
|
const uA = N.children;
|
|
13806
13806
|
for (let lA = 0, mA = uA.length; lA < mA; lA++)
|
|
13807
|
-
|
|
13807
|
+
Yi(uA[lA], H, O, X);
|
|
13808
13808
|
}
|
|
13809
13809
|
function jo(N, H, O, X) {
|
|
13810
13810
|
const z = N.opaque, uA = N.transmissive, lA = N.transparent;
|
|
@@ -13816,7 +13816,7 @@ class uC {
|
|
|
13816
13816
|
const uA = _A.isWebGL2;
|
|
13817
13817
|
SA === null && (SA = new $e(1, 1, {
|
|
13818
13818
|
generateMipmaps: !0,
|
|
13819
|
-
type: GA.has("EXT_color_buffer_half_float") ? Kg :
|
|
13819
|
+
type: GA.has("EXT_color_buffer_half_float") ? Kg : Mi,
|
|
13820
13820
|
minFilter: _o,
|
|
13821
13821
|
samples: uA ? 4 : 0
|
|
13822
13822
|
})), p.getDrawingBufferSize(HA), uA ? SA.setSize(HA.x, HA.y) : SA.setSize(US(HA.x), US(HA.y));
|
|
@@ -13829,7 +13829,7 @@ class uC {
|
|
|
13829
13829
|
const ee = H[JA], ie = ee.object, ce = ee.geometry, Me = ee.material, kt = ee.group;
|
|
13830
13830
|
if (Me.side === yt && ie.layers.test(X.layers)) {
|
|
13831
13831
|
const Xe = Me.side;
|
|
13832
|
-
Me.side =
|
|
13832
|
+
Me.side = Gi, Me.needsUpdate = !0, NC(ie, O, X, ce, Me, kt), Me.side = Xe, Me.needsUpdate = !0, KA = !0;
|
|
13833
13833
|
}
|
|
13834
13834
|
}
|
|
13835
13835
|
KA === !0 && (Ce.updateMultisampleRenderTarget(SA), Ce.updateRenderTargetMipmap(SA)), p.setRenderTarget(lA), p.setClearColor(J, F), p.toneMapping = mA;
|
|
@@ -13842,7 +13842,7 @@ class uC {
|
|
|
13842
13842
|
}
|
|
13843
13843
|
}
|
|
13844
13844
|
function NC(N, H, O, X, z, uA) {
|
|
13845
|
-
N.onBeforeRender(p, H, O, X, z, uA), N.modelViewMatrix.multiplyMatrices(O.matrixWorldInverse, N.matrixWorld), N.normalMatrix.getNormalMatrix(N.modelViewMatrix), z.onBeforeRender(p, H, O, X, N, uA), z.transparent === !0 && z.side === yt && z.forceSinglePass === !1 ? (z.side =
|
|
13845
|
+
N.onBeforeRender(p, H, O, X, z, uA), N.modelViewMatrix.multiplyMatrices(O.matrixWorldInverse, N.matrixWorld), N.normalMatrix.getNormalMatrix(N.modelViewMatrix), z.onBeforeRender(p, H, O, X, N, uA), z.transparent === !0 && z.side === yt && z.forceSinglePass === !1 ? (z.side = Gi, z.needsUpdate = !0, p.renderBufferDirect(O, H, X, z, N, uA), z.side = ag, z.needsUpdate = !0, p.renderBufferDirect(O, H, X, z, N, uA), z.side = yt) : p.renderBufferDirect(O, H, X, z, N, uA), N.onAfterRender(p, H, O, X, z, uA);
|
|
13846
13846
|
}
|
|
13847
13847
|
function It(N, H, O) {
|
|
13848
13848
|
H.isScene !== !0 && (H = re);
|
|
@@ -13876,8 +13876,8 @@ class uC {
|
|
|
13876
13876
|
X.toneMapped && (G === null || G.isXRRenderTarget === !0) && (Me = p.toneMapping);
|
|
13877
13877
|
const kt = O.morphAttributes.position || O.morphAttributes.normal || O.morphAttributes.color, Xe = kt !== void 0 ? kt.length : 0, Fe = te.get(X), vt = h.state.lights;
|
|
13878
13878
|
if (oA === !0 && (DA === !0 || N !== U)) {
|
|
13879
|
-
const
|
|
13880
|
-
vA.setState(X, N,
|
|
13879
|
+
const Fi = N === U && X.id === k;
|
|
13880
|
+
vA.setState(X, N, Fi);
|
|
13881
13881
|
}
|
|
13882
13882
|
let Se = !1;
|
|
13883
13883
|
X.version === Fe.__version ? (Fe.needsLights && Fe.lightsStateVersion !== vt.state.version || Fe.outputColorSpace !== mA || z.isBatchedMesh && Fe.batching === !1 || !z.isBatchedMesh && Fe.batching === !0 || z.isInstancedMesh && Fe.instancing === !1 || !z.isInstancedMesh && Fe.instancing === !0 || z.isSkinnedMesh && Fe.skinning === !1 || !z.isSkinnedMesh && Fe.skinning === !0 || z.isInstancedMesh && Fe.instancingColor === !0 && z.instanceColor === null || z.isInstancedMesh && Fe.instancingColor === !1 && z.instanceColor !== null || z.isInstancedMesh && Fe.instancingMorph === !0 && z.morphTexture === null || z.isInstancedMesh && Fe.instancingMorph === !1 && z.morphTexture !== null || Fe.envMap !== KA || X.fog === !0 && Fe.fog !== uA || Fe.numClippingPlanes !== void 0 && (Fe.numClippingPlanes !== vA.numPlanes || Fe.numIntersection !== vA.numIntersection) || Fe.vertexAlphas !== JA || Fe.vertexTangents !== ZA || Fe.morphTargets !== ee || Fe.morphNormals !== ie || Fe.morphColors !== ce || Fe.toneMapping !== Me || _A.isWebGL2 === !0 && Fe.morphTargetsCount !== Xe) && (Se = !0) : (Se = !0, Fe.__version = X.version);
|
|
@@ -13887,8 +13887,8 @@ class uC {
|
|
|
13887
13887
|
const je = Wt.getUniforms(), nI = Fe.uniforms;
|
|
13888
13888
|
if (RA.useProgram(Wt.program) && (Io = !0, fi = !0, mt = !0), X.id !== k && (k = X.id, fi = !0), Io || U !== N) {
|
|
13889
13889
|
je.setValue(W, "projectionMatrix", N.projectionMatrix), je.setValue(W, "viewMatrix", N.matrixWorldInverse);
|
|
13890
|
-
const
|
|
13891
|
-
|
|
13890
|
+
const Fi = je.map.cameraPosition;
|
|
13891
|
+
Fi !== void 0 && Fi.setValue(W, WA.setFromMatrixPosition(N.matrixWorld)), _A.logarithmicDepthBuffer && je.setValue(
|
|
13892
13892
|
W,
|
|
13893
13893
|
"logDepthBufFC",
|
|
13894
13894
|
2 / (Math.log(N.far + 1) / Math.LN2)
|
|
@@ -13896,16 +13896,16 @@ class uC {
|
|
|
13896
13896
|
}
|
|
13897
13897
|
if (z.isSkinnedMesh) {
|
|
13898
13898
|
je.setOptional(W, z, "bindMatrix"), je.setOptional(W, z, "bindMatrixInverse");
|
|
13899
|
-
const
|
|
13900
|
-
|
|
13899
|
+
const Fi = z.skeleton;
|
|
13900
|
+
Fi && (_A.floatVertexTextures ? (Fi.boneTexture === null && Fi.computeBoneTexture(), je.setValue(W, "boneTexture", Fi.boneTexture, Ce)) : console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."));
|
|
13901
13901
|
}
|
|
13902
13902
|
z.isBatchedMesh && (je.setOptional(W, z, "batchingTexture"), je.setValue(W, "batchingTexture", z._matricesTexture, Ce));
|
|
13903
13903
|
const ir = O.morphAttributes;
|
|
13904
13904
|
if ((ir.position !== void 0 || ir.normal !== void 0 || ir.color !== void 0 && _A.isWebGL2 === !0) && LA.update(z, O, Wt), (fi || Fe.receiveShadow !== z.receiveShadow) && (Fe.receiveShadow = z.receiveShadow, je.setValue(W, "receiveShadow", z.receiveShadow)), X.isMeshGouraudMaterial && X.envMap !== null && (nI.envMap.value = KA, nI.flipEnvMap.value = KA.isCubeTexture && KA.isRenderTargetTexture === !1 ? -1 : 1), fi && (je.setValue(W, "toneMappingExposure", p.toneMappingExposure), Fe.needsLights && q(nI, mt), uA && X.fog === !0 && NA.refreshFogUniforms(nI, uA), NA.refreshMaterialUniforms(nI, X, L, x, SA), Tm.upload(W, au(Fe), nI, Ce)), X.isShaderMaterial && X.uniformsNeedUpdate === !0 && (Tm.upload(W, au(Fe), nI, Ce), X.uniformsNeedUpdate = !1), X.isSpriteMaterial && je.setValue(W, "center", z.center), je.setValue(W, "modelViewMatrix", z.modelViewMatrix), je.setValue(W, "normalMatrix", z.normalMatrix), je.setValue(W, "modelMatrix", z.matrixWorld), X.isShaderMaterial || X.isRawShaderMaterial) {
|
|
13905
|
-
const
|
|
13906
|
-
for (let FC = 0, Vj =
|
|
13905
|
+
const Fi = X.uniformsGroups;
|
|
13906
|
+
for (let FC = 0, Vj = Fi.length; FC < Vj; FC++)
|
|
13907
13907
|
if (_A.isWebGL2) {
|
|
13908
|
-
const u_ =
|
|
13908
|
+
const u_ = Fi[FC];
|
|
13909
13909
|
ae.update(u_, Wt), ae.bind(u_, Wt);
|
|
13910
13910
|
} else
|
|
13911
13911
|
console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2.");
|
|
@@ -13966,7 +13966,7 @@ class uC {
|
|
|
13966
13966
|
return;
|
|
13967
13967
|
}
|
|
13968
13968
|
const ee = ZA === Kg && (GA.has("EXT_color_buffer_half_float") || _A.isWebGL2 && GA.has("EXT_color_buffer_float"));
|
|
13969
|
-
if (ZA !==
|
|
13969
|
+
if (ZA !== Mi && XA.convert(ZA) !== W.getParameter(W.IMPLEMENTATION_COLOR_READ_TYPE) && // Edge and Chrome Mac < 52 (#9513)
|
|
13970
13970
|
!(ZA === si && (_A.isWebGL2 || GA.has("OES_texture_float") || GA.has("WEBGL_color_buffer_float"))) && // Chrome Mac >= 52 and Firefox
|
|
13971
13971
|
!ee) {
|
|
13972
13972
|
console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");
|
|
@@ -14924,7 +14924,7 @@ let jt = class extends Ye {
|
|
|
14924
14924
|
}
|
|
14925
14925
|
};
|
|
14926
14926
|
const pT = /* @__PURE__ */ new m(), fT = /* @__PURE__ */ new m(), DT = /* @__PURE__ */ new QA(), $R = /* @__PURE__ */ new Mo(), Qw = /* @__PURE__ */ new hi();
|
|
14927
|
-
let
|
|
14927
|
+
let Si = class extends pA {
|
|
14928
14928
|
constructor(A = new de(), e = new jt()) {
|
|
14929
14929
|
super(), this.isLine = !0, this.type = "Line", this.geometry = A, this.material = e, this.updateMorphTargets();
|
|
14930
14930
|
}
|
|
@@ -15002,7 +15002,7 @@ let Gi = class extends pA {
|
|
|
15002
15002
|
}
|
|
15003
15003
|
};
|
|
15004
15004
|
const yT = /* @__PURE__ */ new m(), wT = /* @__PURE__ */ new m();
|
|
15005
|
-
let WI = class extends
|
|
15005
|
+
let WI = class extends Si {
|
|
15006
15006
|
constructor(A, e) {
|
|
15007
15007
|
super(A, e), this.isLineSegments = !0, this.type = "LineSegments";
|
|
15008
15008
|
}
|
|
@@ -15017,7 +15017,7 @@ let WI = class extends Gi {
|
|
|
15017
15017
|
console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
|
|
15018
15018
|
return this;
|
|
15019
15019
|
}
|
|
15020
|
-
}, mJ = class extends
|
|
15020
|
+
}, mJ = class extends Si {
|
|
15021
15021
|
constructor(A, e) {
|
|
15022
15022
|
super(A, e), this.isLineLoop = !0, this.type = "LineLoop";
|
|
15023
15023
|
}
|
|
@@ -16314,7 +16314,7 @@ function WQ(g, A) {
|
|
|
16314
16314
|
A || (A = g);
|
|
16315
16315
|
let e = g, t;
|
|
16316
16316
|
do
|
|
16317
|
-
if (t = !1, !e.steiner && (rk(e, e.next) ||
|
|
16317
|
+
if (t = !1, !e.steiner && (rk(e, e.next) || Ji(e.prev, e, e.next) === 0)) {
|
|
16318
16318
|
if (Tf(e), e = A = e.prev, e === e.next)
|
|
16319
16319
|
break;
|
|
16320
16320
|
t = !0;
|
|
@@ -16341,12 +16341,12 @@ function qf(g, A, e, t, i, I, o) {
|
|
|
16341
16341
|
}
|
|
16342
16342
|
function eeA(g) {
|
|
16343
16343
|
const A = g.prev, e = g, t = g.next;
|
|
16344
|
-
if (
|
|
16344
|
+
if (Ji(A, e, t) >= 0)
|
|
16345
16345
|
return !1;
|
|
16346
16346
|
const i = A.x, I = e.x, o = t.x, s = A.y, n = e.y, a = t.y, r = i < I ? i < o ? i : o : I < o ? I : o, C = s < n ? s < a ? s : a : n < a ? n : a, c = i > I ? i > o ? i : o : I > o ? I : o, Q = s > n ? s > a ? s : a : n > a ? n : a;
|
|
16347
16347
|
let l = t.next;
|
|
16348
16348
|
for (; l !== A; ) {
|
|
16349
|
-
if (l.x >= r && l.x <= c && l.y >= C && l.y <= Q && CE(i, s, I, n, o, a, l.x, l.y) &&
|
|
16349
|
+
if (l.x >= r && l.x <= c && l.y >= C && l.y <= Q && CE(i, s, I, n, o, a, l.x, l.y) && Ji(l.prev, l, l.next) >= 0)
|
|
16350
16350
|
return !1;
|
|
16351
16351
|
l = l.next;
|
|
16352
16352
|
}
|
|
@@ -16354,22 +16354,22 @@ function eeA(g) {
|
|
|
16354
16354
|
}
|
|
16355
16355
|
function teA(g, A, e, t) {
|
|
16356
16356
|
const i = g.prev, I = g, o = g.next;
|
|
16357
|
-
if (
|
|
16357
|
+
if (Ji(i, I, o) >= 0)
|
|
16358
16358
|
return !1;
|
|
16359
16359
|
const s = i.x, n = I.x, a = o.x, r = i.y, C = I.y, c = o.y, Q = s < n ? s < a ? s : a : n < a ? n : a, l = r < C ? r < c ? r : c : C < c ? C : c, d = s > n ? s > a ? s : a : n > a ? n : a, h = r > C ? r > c ? r : c : C > c ? C : c, E = Vb(Q, l, A, e, t), u = Vb(d, h, A, e, t);
|
|
16360
16360
|
let p = g.prevZ, f = g.nextZ;
|
|
16361
16361
|
for (; p && p.z >= E && f && f.z <= u; ) {
|
|
16362
|
-
if (p.x >= Q && p.x <= d && p.y >= l && p.y <= h && p !== i && p !== o && CE(s, r, n, C, a, c, p.x, p.y) &&
|
|
16362
|
+
if (p.x >= Q && p.x <= d && p.y >= l && p.y <= h && p !== i && p !== o && CE(s, r, n, C, a, c, p.x, p.y) && Ji(p.prev, p, p.next) >= 0 || (p = p.prevZ, f.x >= Q && f.x <= d && f.y >= l && f.y <= h && f !== i && f !== o && CE(s, r, n, C, a, c, f.x, f.y) && Ji(f.prev, f, f.next) >= 0))
|
|
16363
16363
|
return !1;
|
|
16364
16364
|
f = f.nextZ;
|
|
16365
16365
|
}
|
|
16366
16366
|
for (; p && p.z >= E; ) {
|
|
16367
|
-
if (p.x >= Q && p.x <= d && p.y >= l && p.y <= h && p !== i && p !== o && CE(s, r, n, C, a, c, p.x, p.y) &&
|
|
16367
|
+
if (p.x >= Q && p.x <= d && p.y >= l && p.y <= h && p !== i && p !== o && CE(s, r, n, C, a, c, p.x, p.y) && Ji(p.prev, p, p.next) >= 0)
|
|
16368
16368
|
return !1;
|
|
16369
16369
|
p = p.prevZ;
|
|
16370
16370
|
}
|
|
16371
16371
|
for (; f && f.z <= u; ) {
|
|
16372
|
-
if (f.x >= Q && f.x <= d && f.y >= l && f.y <= h && f !== i && f !== o && CE(s, r, n, C, a, c, f.x, f.y) &&
|
|
16372
|
+
if (f.x >= Q && f.x <= d && f.y >= l && f.y <= h && f !== i && f !== o && CE(s, r, n, C, a, c, f.x, f.y) && Ji(f.prev, f, f.next) >= 0)
|
|
16373
16373
|
return !1;
|
|
16374
16374
|
f = f.nextZ;
|
|
16375
16375
|
}
|
|
@@ -16439,7 +16439,7 @@ function neA(g, A) {
|
|
|
16439
16439
|
return i;
|
|
16440
16440
|
}
|
|
16441
16441
|
function aeA(g, A) {
|
|
16442
|
-
return
|
|
16442
|
+
return Ji(g.prev, g, A.prev) < 0 && Ji(A.next, g, g.next) < 0;
|
|
16443
16443
|
}
|
|
16444
16444
|
function reA(g, A, e, t) {
|
|
16445
16445
|
let i = g;
|
|
@@ -16478,17 +16478,17 @@ function CE(g, A, e, t, i, I, o, s) {
|
|
|
16478
16478
|
function ceA(g, A) {
|
|
16479
16479
|
return g.next.i !== A.i && g.prev.i !== A.i && !QeA(g, A) && // dones't intersect other edges
|
|
16480
16480
|
(_f(g, A) && _f(A, g) && leA(g, A) && // locally visible
|
|
16481
|
-
(
|
|
16482
|
-
rk(g, A) &&
|
|
16481
|
+
(Ji(g.prev, g, A.prev) || Ji(g, A.prev, A)) || // does not create opposite-facing sectors
|
|
16482
|
+
rk(g, A) && Ji(g.prev, g, g.next) > 0 && Ji(A.prev, A, A.next) > 0);
|
|
16483
16483
|
}
|
|
16484
|
-
function
|
|
16484
|
+
function Ji(g, A, e) {
|
|
16485
16485
|
return (A.y - g.y) * (e.x - A.x) - (A.x - g.x) * (e.y - A.y);
|
|
16486
16486
|
}
|
|
16487
16487
|
function rk(g, A) {
|
|
16488
16488
|
return g.x === A.x && g.y === A.y;
|
|
16489
16489
|
}
|
|
16490
16490
|
function U4(g, A, e, t) {
|
|
16491
|
-
const i = Dw(
|
|
16491
|
+
const i = Dw(Ji(g, A, e)), I = Dw(Ji(g, A, t)), o = Dw(Ji(e, t, g)), s = Dw(Ji(e, t, A));
|
|
16492
16492
|
return !!(i !== I && o !== s || i === 0 && fw(g, e, A) || I === 0 && fw(g, t, A) || o === 0 && fw(e, g, t) || s === 0 && fw(e, A, t));
|
|
16493
16493
|
}
|
|
16494
16494
|
function fw(g, A, e) {
|
|
@@ -16507,7 +16507,7 @@ function QeA(g, A) {
|
|
|
16507
16507
|
return !1;
|
|
16508
16508
|
}
|
|
16509
16509
|
function _f(g, A) {
|
|
16510
|
-
return
|
|
16510
|
+
return Ji(g.prev, g, g.next) < 0 ? Ji(g, A, g.next) >= 0 && Ji(g, g.prev, A) >= 0 : Ji(g, A, g.prev) < 0 || Ji(g, g.next, A) < 0;
|
|
16511
16511
|
}
|
|
16512
16512
|
function leA(g, A) {
|
|
16513
16513
|
let e = g, t = !1;
|
|
@@ -19230,7 +19230,7 @@ class NeA extends yg {
|
|
|
19230
19230
|
o = new yJ();
|
|
19231
19231
|
break;
|
|
19232
19232
|
case "Line":
|
|
19233
|
-
o = new
|
|
19233
|
+
o = new Si(s(A.geometry), n(A.material));
|
|
19234
19234
|
break;
|
|
19235
19235
|
case "LineLoop":
|
|
19236
19236
|
o = new mJ(s(A.geometry), n(A.material));
|
|
@@ -21137,7 +21137,7 @@ class j4 extends pA {
|
|
|
21137
21137
|
0
|
|
21138
21138
|
], 3));
|
|
21139
21139
|
const I = new jt({ fog: !1, toneMapped: !1 });
|
|
21140
|
-
this.lightPlane = new
|
|
21140
|
+
this.lightPlane = new Si(i, I), this.add(this.lightPlane), i = new de(), i.setAttribute("position", new oe([0, 0, 0, 0, 0, 1], 3)), this.targetLine = new Si(i, I), this.add(this.targetLine), this.update();
|
|
21141
21141
|
}
|
|
21142
21142
|
dispose() {
|
|
21143
21143
|
this.lightPlane.geometry.dispose(), this.lightPlane.material.dispose(), this.targetLine.geometry.dispose(), this.targetLine.material.dispose();
|
|
@@ -21146,7 +21146,7 @@ class j4 extends pA {
|
|
|
21146
21146
|
this.light.updateWorldMatrix(!0, !1), this.light.target.updateWorldMatrix(!0, !1), XT.setFromMatrixPosition(this.light.matrixWorld), Sw.setFromMatrixPosition(this.light.target.matrixWorld), zT.subVectors(Sw, XT), this.lightPlane.lookAt(Sw), this.color !== void 0 ? (this.lightPlane.material.color.set(this.color), this.targetLine.material.color.set(this.color)) : (this.lightPlane.material.color.copy(this.light.color), this.targetLine.material.color.copy(this.light.color)), this.targetLine.lookAt(Sw), this.targetLine.scale.z = zT.length();
|
|
21147
21147
|
}
|
|
21148
21148
|
}
|
|
21149
|
-
const Gw = /* @__PURE__ */ new m(),
|
|
21149
|
+
const Gw = /* @__PURE__ */ new m(), Oi = /* @__PURE__ */ new vD();
|
|
21150
21150
|
class $4 extends WI {
|
|
21151
21151
|
constructor(A) {
|
|
21152
21152
|
const e = new de(), t = new jt({ color: 16777215, vertexColors: !0, toneMapped: !1 }), i = [], I = [], o = {};
|
|
@@ -21167,7 +21167,7 @@ class $4 extends WI {
|
|
|
21167
21167
|
}
|
|
21168
21168
|
update() {
|
|
21169
21169
|
const A = this.geometry, e = this.pointMap, t = 1, i = 1;
|
|
21170
|
-
|
|
21170
|
+
Oi.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse), eg("c", e, A, Oi, 0, 0, -1), eg("t", e, A, Oi, 0, 0, 1), eg("n1", e, A, Oi, -t, -i, -1), eg("n2", e, A, Oi, t, -i, -1), eg("n3", e, A, Oi, -t, i, -1), eg("n4", e, A, Oi, t, i, -1), eg("f1", e, A, Oi, -t, -i, 1), eg("f2", e, A, Oi, t, -i, 1), eg("f3", e, A, Oi, -t, i, 1), eg("f4", e, A, Oi, t, i, 1), eg("u1", e, A, Oi, t * 0.7, i * 1.1, -1), eg("u2", e, A, Oi, -t * 0.7, i * 1.1, -1), eg("u3", e, A, Oi, 0, i * 2, -1), eg("cf1", e, A, Oi, -t, 0, 1), eg("cf2", e, A, Oi, t, 0, 1), eg("cf3", e, A, Oi, 0, -i, 1), eg("cf4", e, A, Oi, 0, i, 1), eg("cn1", e, A, Oi, -t, 0, -1), eg("cn2", e, A, Oi, t, 0, -1), eg("cn3", e, A, Oi, 0, -i, -1), eg("cn4", e, A, Oi, 0, i, -1), A.getAttribute("position").needsUpdate = !0;
|
|
21171
21171
|
}
|
|
21172
21172
|
dispose() {
|
|
21173
21173
|
this.geometry.dispose(), this.material.dispose();
|
|
@@ -21217,7 +21217,7 @@ class PJ extends WI {
|
|
|
21217
21217
|
this.geometry.dispose(), this.material.dispose();
|
|
21218
21218
|
}
|
|
21219
21219
|
}
|
|
21220
|
-
class otA extends
|
|
21220
|
+
class otA extends Si {
|
|
21221
21221
|
constructor(A, e = 1, t = 16776960) {
|
|
21222
21222
|
const i = t, I = [1, -1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, 1, 1, 0], o = new de();
|
|
21223
21223
|
o.setAttribute("position", new oe(I, 3)), o.computeBoundingSphere(), super(o, new jt({ color: i, toneMapped: !1 })), this.type = "PlaneHelper", this.plane = A, this.size = e;
|
|
@@ -21236,7 +21236,7 @@ let Mw, sU;
|
|
|
21236
21236
|
class stA extends pA {
|
|
21237
21237
|
// dir is assumed to be normalized
|
|
21238
21238
|
constructor(A = new m(0, 0, 1), e = new m(0, 0, 0), t = 1, i = 16776960, I = t * 0.2, o = I * 0.2) {
|
|
21239
|
-
super(), this.type = "ArrowHelper", Mw === void 0 && (Mw = new de(), Mw.setAttribute("position", new oe([0, 0, 0, 0, 1, 0], 3)), sU = new ig(0, 0.5, 1, 5, 1), sU.translate(0, -0.5, 0)), this.position.copy(e), this.line = new
|
|
21239
|
+
super(), this.type = "ArrowHelper", Mw === void 0 && (Mw = new de(), Mw.setAttribute("position", new oe([0, 0, 0, 0, 1, 0], 3)), sU = new ig(0, 0.5, 1, 5, 1), sU.translate(0, -0.5, 0)), this.position.copy(e), this.line = new Si(Mw, new jt({ color: i, toneMapped: !1 })), this.line.matrixAutoUpdate = !1, this.add(this.line), this.cone = new EA(sU, new At({ color: i, toneMapped: !1 })), this.cone.matrixAutoUpdate = !1, this.add(this.cone), this.setDirection(A), this.setLength(t, I, o);
|
|
21240
21240
|
}
|
|
21241
21241
|
setDirection(A) {
|
|
21242
21242
|
if (A.y > 0.99999)
|
|
@@ -21454,7 +21454,7 @@ const atA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
21454
21454
|
AudioListener: Z4,
|
|
21455
21455
|
AudioLoader: bS,
|
|
21456
21456
|
AxesHelper: wo,
|
|
21457
|
-
BackSide:
|
|
21457
|
+
BackSide: Gi,
|
|
21458
21458
|
BasicDepthPacking: wI,
|
|
21459
21459
|
BasicShadowMap: $j,
|
|
21460
21460
|
BatchedMesh: NS,
|
|
@@ -21598,7 +21598,7 @@ const atA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
21598
21598
|
LessStencilFunc: _3,
|
|
21599
21599
|
Light: tc,
|
|
21600
21600
|
LightProbe: Y4,
|
|
21601
|
-
Line:
|
|
21601
|
+
Line: Si,
|
|
21602
21602
|
Line3: fs,
|
|
21603
21603
|
LineBasicMaterial: jt,
|
|
21604
21604
|
LineCurve: MJ,
|
|
@@ -21657,7 +21657,7 @@ const atA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
21657
21657
|
NeverCompare: Z3,
|
|
21658
21658
|
NeverDepth: gJ,
|
|
21659
21659
|
NeverStencilFunc: Hb,
|
|
21660
|
-
NoBlending:
|
|
21660
|
+
NoBlending: ki,
|
|
21661
21661
|
NoColorSpace: qo,
|
|
21662
21662
|
NoToneMapping: fo,
|
|
21663
21663
|
NormalAnimationBlendMode: XG,
|
|
@@ -21811,7 +21811,7 @@ const atA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
21811
21811
|
UniformsGroup: XeA,
|
|
21812
21812
|
UniformsLib: TA,
|
|
21813
21813
|
UniformsUtils: pd,
|
|
21814
|
-
UnsignedByteType:
|
|
21814
|
+
UnsignedByteType: Mi,
|
|
21815
21815
|
UnsignedInt248Type: $r,
|
|
21816
21816
|
UnsignedIntType: YI,
|
|
21817
21817
|
UnsignedShort4444Type: oJ,
|
|
@@ -22881,8 +22881,8 @@ var LtA = (g) => {
|
|
|
22881
22881
|
var A = {};
|
|
22882
22882
|
return Zn.d(A, g), A;
|
|
22883
22883
|
};
|
|
22884
|
-
const VA = LtA({ BackSide: () =>
|
|
22885
|
-
class
|
|
22884
|
+
const VA = LtA({ BackSide: () => Gi, BufferAttribute: () => jA, BufferGeometry: () => de, Color: () => yA, DoubleSide: () => yt, EventDispatcher: () => gI, FileLoader: () => mI, FrontSide: () => ag, LinearFilter: () => qe, Mesh: () => EA, MeshBasicMaterial: () => At, Object3D: () => pA, Plane: () => Fg, PlaneGeometry: () => wg, ShaderMaterial: () => Je, Texture: () => Pe, TextureLoader: () => va, Vector2: () => tA, Vector3: () => m, Vector4: () => $A });
|
|
22885
|
+
class Ri extends xt {
|
|
22886
22886
|
/**
|
|
22887
22887
|
*
|
|
22888
22888
|
* @param {string} propertyId
|
|
@@ -22959,7 +22959,7 @@ class Ui extends xt {
|
|
|
22959
22959
|
return e ? e[`_${this._id}`].getInheritedInput(e) : this.getDefaultValue();
|
|
22960
22960
|
}
|
|
22961
22961
|
}
|
|
22962
|
-
class Mk extends
|
|
22962
|
+
class Mk extends Ri {
|
|
22963
22963
|
constructor(A, e) {
|
|
22964
22964
|
super(A, e, !1), this._input = new VA.Vector4(0, 0, 0, 0), this._inline = null, this._value = new VA.Vector4(0, 0, 0, 0);
|
|
22965
22965
|
}
|
|
@@ -23841,7 +23841,7 @@ function jtA(g, A) {
|
|
|
23841
23841
|
A._needsUpdate = !0, g._glyphs._needsProcess = !0, A._fontVariant.removeEventListener("ready", A._handleFontReadyClosure), A._handleFontReadyClosure = null;
|
|
23842
23842
|
};
|
|
23843
23843
|
}
|
|
23844
|
-
class $tA extends
|
|
23844
|
+
class $tA extends Ri {
|
|
23845
23845
|
constructor(A) {
|
|
23846
23846
|
super("display", A), this._value = "flex", this._allowsInherit = !1, this._needsUpdate = !1, this.isValidValue = eiA;
|
|
23847
23847
|
}
|
|
@@ -23853,7 +23853,7 @@ const AiA = ["none", "flex"];
|
|
|
23853
23853
|
function eiA(g) {
|
|
23854
23854
|
return AiA.indexOf(g) === -1 ? (console.warn(`(.style) display value '${g}' is not valid. Aborted`), !1) : !0;
|
|
23855
23855
|
}
|
|
23856
|
-
class tiA extends
|
|
23856
|
+
class tiA extends Ri {
|
|
23857
23857
|
constructor(A) {
|
|
23858
23858
|
super("boxSizing", A), this._allowsInherit = !1, this.isValidValue = giA;
|
|
23859
23859
|
}
|
|
@@ -23865,7 +23865,7 @@ const iiA = ["border-box", "content-box"];
|
|
|
23865
23865
|
function giA(g) {
|
|
23866
23866
|
return iiA.indexOf(g) === -1 ? (console.warn(`(.style) boxSizing value '${g}' is not valid. Aborted`), !1) : !0;
|
|
23867
23867
|
}
|
|
23868
|
-
class Zf extends
|
|
23868
|
+
class Zf extends Ri {
|
|
23869
23869
|
constructor(A, e) {
|
|
23870
23870
|
super(A, e, !1), this._value = new VA.Color(), this.output = this._outputValue;
|
|
23871
23871
|
}
|
|
@@ -23880,7 +23880,7 @@ class Zf extends Ui {
|
|
|
23880
23880
|
this._input = this._inline = A, this._needsUpdate = !0;
|
|
23881
23881
|
}
|
|
23882
23882
|
}
|
|
23883
|
-
class cU extends
|
|
23883
|
+
class cU extends Ri {
|
|
23884
23884
|
/**
|
|
23885
23885
|
*
|
|
23886
23886
|
* @param {string} propertyId
|
|
@@ -23896,7 +23896,7 @@ class cU extends Ui {
|
|
|
23896
23896
|
function IiA(g) {
|
|
23897
23897
|
return g < 0 && g > 1 ? (console.warn(`(.style) styleFactorProperty('${this.id}') value '${g}' is not valid)`), !1) : !0;
|
|
23898
23898
|
}
|
|
23899
|
-
class oiA extends
|
|
23899
|
+
class oiA extends Ri {
|
|
23900
23900
|
constructor(A) {
|
|
23901
23901
|
super("backgroundImage", A, !0), this._input = null, this._allowsInherit = !1, this._textureSize = new VA.Vector2(1, 1), this.isValidValue = siA;
|
|
23902
23902
|
}
|
|
@@ -23930,7 +23930,7 @@ class oiA extends Ui {
|
|
|
23930
23930
|
function siA(g) {
|
|
23931
23931
|
return !0;
|
|
23932
23932
|
}
|
|
23933
|
-
class niA extends
|
|
23933
|
+
class niA extends Ri {
|
|
23934
23934
|
constructor(A) {
|
|
23935
23935
|
super("backgroundSize", A, !0), this.isValidValue = riA, this.output = this._outputValue;
|
|
23936
23936
|
}
|
|
@@ -23939,7 +23939,7 @@ const aiA = ["cover", "contain", "stretch"];
|
|
|
23939
23939
|
function riA(g) {
|
|
23940
23940
|
return aiA.indexOf(g) === -1 ? (console.warn(`(.style) backgroundSize value '${g}' is not valid. Aborted`), !1) : !0;
|
|
23941
23941
|
}
|
|
23942
|
-
class CiA extends
|
|
23942
|
+
class CiA extends Ri {
|
|
23943
23943
|
constructor(A) {
|
|
23944
23944
|
super("overflow", A, !0), this.isValidValue = ciA, this._clippingPlanes = null, this._renderStrategy = this._emptyRender;
|
|
23945
23945
|
}
|
|
@@ -24427,12 +24427,12 @@ class diA extends xt {
|
|
|
24427
24427
|
const uiA = ["start", "center", "end", "stretch"], piA = function(g) {
|
|
24428
24428
|
return uiA.indexOf(g) === -1 ? (console.warn(`(.style) alignItems value '${g}' is not valid. Aborted`), !1) : !0;
|
|
24429
24429
|
};
|
|
24430
|
-
class ev extends
|
|
24430
|
+
class ev extends Ri {
|
|
24431
24431
|
constructor() {
|
|
24432
24432
|
super("alignItems", "inherit", !0), this.isValidValue = piA;
|
|
24433
24433
|
}
|
|
24434
24434
|
}
|
|
24435
|
-
class tv extends
|
|
24435
|
+
class tv extends Ri {
|
|
24436
24436
|
constructor() {
|
|
24437
24437
|
super("textAlign", "inherit", !0), this.isValidValue = DiA;
|
|
24438
24438
|
}
|
|
@@ -24440,7 +24440,7 @@ class tv extends Ui {
|
|
|
24440
24440
|
const fiA = ["left", "right", "center", "justify", "justify-left", "justify-right", "justify-center"], DiA = function(g) {
|
|
24441
24441
|
return fiA.indexOf(g) === -1 ? (console.warn(`(.style) textAlign value '${g}' is not valid. Aborted`), !1) : !0;
|
|
24442
24442
|
};
|
|
24443
|
-
class iv extends
|
|
24443
|
+
class iv extends Ri {
|
|
24444
24444
|
constructor() {
|
|
24445
24445
|
super("flexDirection", "inherit", !0), this.isValid = wiA;
|
|
24446
24446
|
}
|
|
@@ -24449,7 +24449,7 @@ const yiA = ["row", "row-reverse", "column", "column-reverse"];
|
|
|
24449
24449
|
function wiA(g) {
|
|
24450
24450
|
return yiA.indexOf(g) === -1 ? (console.warn(`(.style) flexDirection value '${g}' is not valid. Aborted`), !1) : !0;
|
|
24451
24451
|
}
|
|
24452
|
-
class gv extends
|
|
24452
|
+
class gv extends Ri {
|
|
24453
24453
|
constructor() {
|
|
24454
24454
|
super("justifyContent", "inherit", !0), this.isValidValue = SiA;
|
|
24455
24455
|
}
|
|
@@ -24458,7 +24458,7 @@ const miA = ["start", "center", "end", "space-between", "space-around", "space-e
|
|
|
24458
24458
|
function SiA(g) {
|
|
24459
24459
|
return miA.indexOf(g) === -1 ? (console.warn(`(.style) justifyContent value '${g}' is not valid. Aborted`), !1) : !0;
|
|
24460
24460
|
}
|
|
24461
|
-
class GiA extends
|
|
24461
|
+
class GiA extends Ri {
|
|
24462
24462
|
constructor() {
|
|
24463
24463
|
super("order", 0, !0), this._value = 0, this._input = 0, this._allowsInherit = !1;
|
|
24464
24464
|
}
|
|
@@ -24467,7 +24467,7 @@ class GiA extends Ui {
|
|
|
24467
24467
|
this._value = this._inheritedInput, A._parent._value && (A._parent._value._children._needsProcess = !0);
|
|
24468
24468
|
}
|
|
24469
24469
|
}
|
|
24470
|
-
class EZ extends
|
|
24470
|
+
class EZ extends Ri {
|
|
24471
24471
|
constructor() {
|
|
24472
24472
|
super("position", "static", !0), this._allowsInherit = !1, this._value = "static", this._needsUpdate = !1, this.computeOutputValue = this._computeFromInherited, this.isValidValue = MiA;
|
|
24473
24473
|
}
|
|
@@ -24479,7 +24479,7 @@ const kiA = ["static", "absolute"];
|
|
|
24479
24479
|
function MiA(g) {
|
|
24480
24480
|
return kiA.indexOf(g) === -1 ? (console.warn(`(.style) position value '${g}' is not valid. Aborted`), !1) : !0;
|
|
24481
24481
|
}
|
|
24482
|
-
class dZ extends
|
|
24482
|
+
class dZ extends Ri {
|
|
24483
24483
|
/**
|
|
24484
24484
|
*
|
|
24485
24485
|
* @param {string} propertyId
|
|
@@ -24571,7 +24571,7 @@ class uZ extends mr {
|
|
|
24571
24571
|
this._value = e;
|
|
24572
24572
|
}
|
|
24573
24573
|
}
|
|
24574
|
-
class pZ extends
|
|
24574
|
+
class pZ extends Ri {
|
|
24575
24575
|
constructor(A) {
|
|
24576
24576
|
super("fontStyle", A, !0), this.isValidValue = FiA;
|
|
24577
24577
|
}
|
|
@@ -24580,7 +24580,7 @@ const NiA = ["normal", "italic"];
|
|
|
24580
24580
|
function FiA(g) {
|
|
24581
24581
|
return NiA.indexOf(g) === -1 ? (console.warn(`(.style) fontStyle value '${g}' is not valid. Aborted`), !1) : !0;
|
|
24582
24582
|
}
|
|
24583
|
-
class fZ extends
|
|
24583
|
+
class fZ extends Ri {
|
|
24584
24584
|
constructor() {
|
|
24585
24585
|
super("fontWeight", "inherit", !0), this.isValid = KiA;
|
|
24586
24586
|
}
|
|
@@ -25396,7 +25396,7 @@ const sgA = {
|
|
|
25396
25396
|
setMissingCharacterHandler: IgA,
|
|
25397
25397
|
missingCharacter: ogA
|
|
25398
25398
|
}, jQ = sgA;
|
|
25399
|
-
class mZ extends
|
|
25399
|
+
class mZ extends Ri {
|
|
25400
25400
|
constructor() {
|
|
25401
25401
|
super("fontFamily", "inherit", !0);
|
|
25402
25402
|
}
|
|
@@ -25429,7 +25429,7 @@ class mZ extends Ui {
|
|
|
25429
25429
|
return e ? e[`_${this._id}`].getInheritedInput(e) : this.getDefaultValue();
|
|
25430
25430
|
}
|
|
25431
25431
|
}
|
|
25432
|
-
class SZ extends
|
|
25432
|
+
class SZ extends Ri {
|
|
25433
25433
|
/**
|
|
25434
25434
|
*
|
|
25435
25435
|
*/
|
|
@@ -25440,7 +25440,7 @@ class SZ extends Ui {
|
|
|
25440
25440
|
super.update(A, e), A._layouter._needsProcess = !0;
|
|
25441
25441
|
}
|
|
25442
25442
|
}
|
|
25443
|
-
class GZ extends
|
|
25443
|
+
class GZ extends Ri {
|
|
25444
25444
|
constructor() {
|
|
25445
25445
|
super("whiteSpace", "inherit"), this.isValidValue = agA;
|
|
25446
25446
|
}
|
|
@@ -25449,12 +25449,12 @@ const ngA = ["normal", "nowrap", "pre", "pre-line", "pre-wrap"];
|
|
|
25449
25449
|
function agA(g) {
|
|
25450
25450
|
return ngA.indexOf(g) === -1 ? (console.warn(`(.style) whiteSpace value '${g}' is not valid. Aborted`), !1) : !0;
|
|
25451
25451
|
}
|
|
25452
|
-
class kZ extends
|
|
25452
|
+
class kZ extends Ri {
|
|
25453
25453
|
constructor() {
|
|
25454
25454
|
super("letterSpacing", "inherit", !0);
|
|
25455
25455
|
}
|
|
25456
25456
|
}
|
|
25457
|
-
class rgA extends
|
|
25457
|
+
class rgA extends Ri {
|
|
25458
25458
|
constructor() {
|
|
25459
25459
|
super("fontSize", "inherit", !0);
|
|
25460
25460
|
}
|
|
@@ -25469,7 +25469,7 @@ class CgA extends Ql {
|
|
|
25469
25469
|
super("invertAlpha", "inherit");
|
|
25470
25470
|
}
|
|
25471
25471
|
}
|
|
25472
|
-
class Nk extends
|
|
25472
|
+
class Nk extends Ri {
|
|
25473
25473
|
constructor() {
|
|
25474
25474
|
super("fontKerning", "inherit"), this.isValidValue = cgA;
|
|
25475
25475
|
}
|
|
@@ -27847,7 +27847,7 @@ class YZ extends kZ {
|
|
|
27847
27847
|
super._computeFromInherited(A), A._fontSize._needsProcess = !0, A._layouter._needsProcess = !0;
|
|
27848
27848
|
}
|
|
27849
27849
|
}
|
|
27850
|
-
class OZ extends
|
|
27850
|
+
class OZ extends Ri {
|
|
27851
27851
|
constructor() {
|
|
27852
27852
|
super("fontSize", "inherit", !0), this._allowsInherit = !1;
|
|
27853
27853
|
}
|
|
@@ -29479,14 +29479,14 @@ function sW(g, ...A) {
|
|
|
29479
29479
|
}
|
|
29480
29480
|
}
|
|
29481
29481
|
const RoA = gA("nodevlogs");
|
|
29482
|
-
function
|
|
29482
|
+
function vi(g, A = gn.Log) {
|
|
29483
29483
|
Na(A, g);
|
|
29484
29484
|
}
|
|
29485
29485
|
function $t(g) {
|
|
29486
|
-
|
|
29486
|
+
vi(g, gn.Warn);
|
|
29487
29487
|
}
|
|
29488
29488
|
function yv(g) {
|
|
29489
|
-
|
|
29489
|
+
vi(g, gn.Error);
|
|
29490
29490
|
}
|
|
29491
29491
|
let aK, fU;
|
|
29492
29492
|
function se() {
|
|
@@ -29676,13 +29676,13 @@ function LoA() {
|
|
|
29676
29676
|
return g || null;
|
|
29677
29677
|
}
|
|
29678
29678
|
const BW = gA("debugdefines");
|
|
29679
|
-
md('if(!globalThis[""3.47.
|
|
29679
|
+
md('if(!globalThis[""3.47.7""]) globalThis[""3.47.7""] = "0.0.0";');
|
|
29680
29680
|
md('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
|
|
29681
|
-
md('if(!globalThis[""
|
|
29682
|
-
md('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.47.
|
|
29681
|
+
md('if(!globalThis[""Wed Sep 04 2024 16:25:34 GMT+0200 (Central European Summer Time)""]) globalThis[""Wed Sep 04 2024 16:25:34 GMT+0200 (Central European Summer Time)""] = "unknown";');
|
|
29682
|
+
md('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.47.7";');
|
|
29683
29683
|
md('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
29684
|
-
md('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "
|
|
29685
|
-
const On = "3.47.
|
|
29684
|
+
md('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Wed Sep 04 2024 16:25:34 GMT+0200 (Central European Summer Time)";');
|
|
29685
|
+
const On = "3.47.7", wv = "undefined", cW = "Wed Sep 04 2024 16:25:34 GMT+0200 (Central European Summer Time)";
|
|
29686
29686
|
BW && console.log(`Engine version: ${On} (generator: ${wv})
|
|
29687
29687
|
Project built at ${cW}`);
|
|
29688
29688
|
const xB = "needle_isActiveInHierarchy", Vh = "builtin_components", Pm = "needle_editor_guid";
|
|
@@ -29983,7 +29983,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
29983
29983
|
inputBuffer: new kA(null),
|
|
29984
29984
|
opacity: new kA(1)
|
|
29985
29985
|
},
|
|
29986
|
-
blending:
|
|
29986
|
+
blending: ki,
|
|
29987
29987
|
toneMapped: !1,
|
|
29988
29988
|
depthWrite: !1,
|
|
29989
29989
|
depthTest: !1,
|
|
@@ -30108,7 +30108,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
30108
30108
|
* @param {Number} frameBufferType - The type of the main frame buffers.
|
|
30109
30109
|
*/
|
|
30110
30110
|
initialize(g, A, e) {
|
|
30111
|
-
e !== void 0 && (this.renderTarget.texture.type = e, e !==
|
|
30111
|
+
e !== void 0 && (this.renderTarget.texture.type = e, e !== Mi ? this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1" : g !== null && g.outputColorSpace === De && (this.renderTarget.texture.colorSpace = De));
|
|
30112
30112
|
}
|
|
30113
30113
|
}, mH = /* @__PURE__ */ new yA(), xk = class extends SI {
|
|
30114
30114
|
/**
|
|
@@ -30327,7 +30327,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
30327
30327
|
setRenderer(g) {
|
|
30328
30328
|
if (this.renderer = g, g !== null) {
|
|
30329
30329
|
const A = g.getSize(new tA()), e = g.getContext().getContextAttributes().alpha, t = this.inputBuffer.texture.type;
|
|
30330
|
-
t ===
|
|
30330
|
+
t === Mi && g.outputColorSpace === De && (this.inputBuffer.texture.colorSpace = De, this.outputBuffer.texture.colorSpace = De, this.inputBuffer.dispose(), this.outputBuffer.dispose()), g.autoClear = !1, this.setSize(A.width, A.height);
|
|
30331
30331
|
for (const i of this.passes)
|
|
30332
30332
|
i.initialize(g, e, t);
|
|
30333
30333
|
}
|
|
@@ -30393,7 +30393,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
30393
30393
|
depthBuffer: g,
|
|
30394
30394
|
type: e
|
|
30395
30395
|
}, s = new $e(I.width, I.height, o);
|
|
30396
|
-
return t > 0 && (s.ignoreDepthForMultisampleCopy = !1, s.samples = t), e ===
|
|
30396
|
+
return t > 0 && (s.ignoreDepthForMultisampleCopy = !1, s.samples = t), e === Mi && i !== null && i.outputColorSpace === De && (s.texture.colorSpace = De), s.texture.name = "EffectComposer.Buffer", s.texture.generateMipmaps = !1, s;
|
|
30397
30397
|
}
|
|
30398
30398
|
/**
|
|
30399
30399
|
* Can be used to change the main scene for all registered passes and effects.
|
|
@@ -30530,7 +30530,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
30530
30530
|
case yt:
|
|
30531
30531
|
e = this.materialsFlatShadedDoubleSide;
|
|
30532
30532
|
break;
|
|
30533
|
-
case
|
|
30533
|
+
case Gi:
|
|
30534
30534
|
e = this.materialsFlatShadedBackSide;
|
|
30535
30535
|
break;
|
|
30536
30536
|
default:
|
|
@@ -30542,7 +30542,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
30542
30542
|
case yt:
|
|
30543
30543
|
e = this.materialsDoubleSide;
|
|
30544
30544
|
break;
|
|
30545
|
-
case
|
|
30545
|
+
case Gi:
|
|
30546
30546
|
e = this.materialsBackSide;
|
|
30547
30547
|
break;
|
|
30548
30548
|
default:
|
|
@@ -30589,7 +30589,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
30589
30589
|
e.uniforms = Object.assign({}, g.uniforms), e.side = ag;
|
|
30590
30590
|
A[2].skinning = !0, this.materialsBackSide = A.map((e) => {
|
|
30591
30591
|
const t = this.cloneMaterial(e);
|
|
30592
|
-
return t.uniforms = Object.assign({}, g.uniforms), t.side =
|
|
30592
|
+
return t.uniforms = Object.assign({}, g.uniforms), t.side = Gi, t;
|
|
30593
30593
|
}), this.materialsDoubleSide = A.map((e) => {
|
|
30594
30594
|
const t = this.cloneMaterial(e);
|
|
30595
30595
|
return t.uniforms = Object.assign({}, g.uniforms), t.side = yt, t;
|
|
@@ -30598,7 +30598,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
30598
30598
|
return t.uniforms = Object.assign({}, g.uniforms), t.flatShading = !0, t;
|
|
30599
30599
|
}), this.materialsFlatShadedBackSide = A.map((e) => {
|
|
30600
30600
|
const t = this.cloneMaterial(e);
|
|
30601
|
-
return t.uniforms = Object.assign({}, g.uniforms), t.flatShading = !0, t.side =
|
|
30601
|
+
return t.uniforms = Object.assign({}, g.uniforms), t.flatShading = !0, t.side = Gi, t;
|
|
30602
30602
|
}), this.materialsFlatShadedDoubleSide = A.map((e) => {
|
|
30603
30603
|
const t = this.cloneMaterial(e);
|
|
30604
30604
|
return t.uniforms = Object.assign({}, g.uniforms), t.flatShading = !0, t.side = yt, t;
|
|
@@ -31230,7 +31230,7 @@ varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;void mai
|
|
|
31230
31230
|
scale: new kA(1),
|
|
31231
31231
|
kernel: new kA(0)
|
|
31232
31232
|
},
|
|
31233
|
-
blending:
|
|
31233
|
+
blending: ki,
|
|
31234
31234
|
toneMapped: !1,
|
|
31235
31235
|
depthWrite: !1,
|
|
31236
31236
|
depthTest: !1,
|
|
@@ -31558,7 +31558,7 @@ varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;void mai
|
|
|
31558
31558
|
* @param {Number} frameBufferType - The type of the main frame buffers.
|
|
31559
31559
|
*/
|
|
31560
31560
|
initialize(g, A, e) {
|
|
31561
|
-
e !== void 0 && (this.renderTargetA.texture.type = e, this.renderTargetB.texture.type = e, e !==
|
|
31561
|
+
e !== void 0 && (this.renderTargetA.texture.type = e, this.renderTargetB.texture.type = e, e !== Mi ? (this.blurMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1", this.copyMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1") : g !== null && g.outputColorSpace === De && (this.renderTargetA.texture.colorSpace = De, this.renderTargetB.texture.colorSpace = De));
|
|
31562
31562
|
}
|
|
31563
31563
|
/**
|
|
31564
31564
|
* An auto sizing flag.
|
|
@@ -31610,7 +31610,7 @@ gl_FragColor=vec4(l);
|
|
|
31610
31610
|
smoothing: new kA(1),
|
|
31611
31611
|
range: new kA(null)
|
|
31612
31612
|
},
|
|
31613
|
-
blending:
|
|
31613
|
+
blending: ki,
|
|
31614
31614
|
toneMapped: !1,
|
|
31615
31615
|
depthWrite: !1,
|
|
31616
31616
|
depthTest: !1,
|
|
@@ -31857,7 +31857,7 @@ gl_FragColor=vec4(l);
|
|
|
31857
31857
|
* @param {Number} frameBufferType - The type of the main frame buffers.
|
|
31858
31858
|
*/
|
|
31859
31859
|
initialize(g, A, e) {
|
|
31860
|
-
e !== void 0 && e !==
|
|
31860
|
+
e !== void 0 && e !== Mi && (this.renderTarget.texture.type = e, this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1");
|
|
31861
31861
|
}
|
|
31862
31862
|
}, YsA = `#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
31863
31863
|
uniform mediump sampler2D inputBuffer;
|
|
@@ -31879,7 +31879,7 @@ varying vec2 vUv;varying vec2 vUv00;varying vec2 vUv01;varying vec2 vUv02;varyin
|
|
|
31879
31879
|
inputBuffer: new kA(null),
|
|
31880
31880
|
texelSize: new kA(new tA())
|
|
31881
31881
|
},
|
|
31882
|
-
blending:
|
|
31882
|
+
blending: ki,
|
|
31883
31883
|
toneMapped: !1,
|
|
31884
31884
|
depthWrite: !1,
|
|
31885
31885
|
depthTest: !1,
|
|
@@ -31924,7 +31924,7 @@ uniform float radius;varying vec2 vUv;varying vec2 vUv0;varying vec2 vUv1;varyin
|
|
|
31924
31924
|
texelSize: new kA(new tA()),
|
|
31925
31925
|
radius: new kA(0.85)
|
|
31926
31926
|
},
|
|
31927
|
-
blending:
|
|
31927
|
+
blending: ki,
|
|
31928
31928
|
toneMapped: !1,
|
|
31929
31929
|
depthWrite: !1,
|
|
31930
31930
|
depthTest: !1,
|
|
@@ -32068,7 +32068,7 @@ uniform float radius;varying vec2 vUv;varying vec2 vUv0;varying vec2 vUv1;varyin
|
|
|
32068
32068
|
const t = this.downsamplingMipmaps.concat(this.upsamplingMipmaps);
|
|
32069
32069
|
for (const i of t)
|
|
32070
32070
|
i.texture.type = e;
|
|
32071
|
-
if (e !==
|
|
32071
|
+
if (e !== Mi)
|
|
32072
32072
|
this.downsamplingMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1", this.upsamplingMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1";
|
|
32073
32073
|
else if (g !== null && g.outputColorSpace === De)
|
|
32074
32074
|
for (const i of t)
|
|
@@ -32801,7 +32801,7 @@ vec4 maxValue=texture2D(inputBuffer,vUv);for(int i=0;i<8;++i){vec4 kernel=kernel
|
|
|
32801
32801
|
kernel16: new kA(null),
|
|
32802
32802
|
scale: new kA(1)
|
|
32803
32803
|
},
|
|
32804
|
-
blending:
|
|
32804
|
+
blending: ki,
|
|
32805
32805
|
toneMapped: !1,
|
|
32806
32806
|
depthWrite: !1,
|
|
32807
32807
|
depthTest: !1,
|
|
@@ -32953,7 +32953,7 @@ float signedDistance=linearDepth-focusDistance;float magnitude=smoothstep(0.0,fo
|
|
|
32953
32953
|
cameraNear: new kA(0.3),
|
|
32954
32954
|
cameraFar: new kA(1e3)
|
|
32955
32955
|
},
|
|
32956
|
-
blending:
|
|
32956
|
+
blending: ki,
|
|
32957
32957
|
toneMapped: !1,
|
|
32958
32958
|
depthWrite: !1,
|
|
32959
32959
|
depthTest: !1,
|
|
@@ -33170,7 +33170,7 @@ gl_FragColor=mask*texture2D(inputBuffer,vUv);
|
|
|
33170
33170
|
inputBuffer: new kA(null),
|
|
33171
33171
|
strength: new kA(1)
|
|
33172
33172
|
},
|
|
33173
|
-
blending:
|
|
33173
|
+
blending: ki,
|
|
33174
33174
|
toneMapped: !1,
|
|
33175
33175
|
depthWrite: !1,
|
|
33176
33176
|
depthTest: !1,
|
|
@@ -33201,7 +33201,7 @@ gl_FragColor=mask*texture2D(inputBuffer,vUv);
|
|
|
33201
33201
|
* @type {Texture}
|
|
33202
33202
|
*/
|
|
33203
33203
|
set maskTexture(g) {
|
|
33204
|
-
this.uniforms.maskTexture.value = g, delete this.defines.MASK_PRECISION_HIGH, g.type !==
|
|
33204
|
+
this.uniforms.maskTexture.value = g, delete this.defines.MASK_PRECISION_HIGH, g.type !== Mi && (this.defines.MASK_PRECISION_HIGH = "1"), this.needsUpdate = !0;
|
|
33205
33205
|
}
|
|
33206
33206
|
/**
|
|
33207
33207
|
* Sets the mask texture.
|
|
@@ -33348,7 +33348,7 @@ gl_FragColor=mask*texture2D(inputBuffer,vUv);
|
|
|
33348
33348
|
* @param {Number} frameBufferType - The type of the main frame buffers.
|
|
33349
33349
|
*/
|
|
33350
33350
|
initialize(g, A, e) {
|
|
33351
|
-
e !== void 0 && e !==
|
|
33351
|
+
e !== void 0 && e !== Mi && (this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1");
|
|
33352
33352
|
}
|
|
33353
33353
|
}, onA = `#ifdef FRAMEBUFFER_PRECISION_HIGH
|
|
33354
33354
|
uniform mediump sampler2D nearColorBuffer;uniform mediump sampler2D farColorBuffer;
|
|
@@ -33579,7 +33579,7 @@ vec4 result=inputColor*(1.0-cocNearFar.y)+colorFar;result=mix(result,colorNear,c
|
|
|
33579
33579
|
* @param {Number} frameBufferType - The type of the main frame buffers.
|
|
33580
33580
|
*/
|
|
33581
33581
|
initialize(g, A, e) {
|
|
33582
|
-
this.cocPass.initialize(g, A, e), this.maskPass.initialize(g, A, e), this.bokehNearBasePass.initialize(g, A, e), this.bokehNearFillPass.initialize(g, A, e), this.bokehFarBasePass.initialize(g, A, e), this.bokehFarFillPass.initialize(g, A, e), this.blurPass.initialize(g, A,
|
|
33582
|
+
this.cocPass.initialize(g, A, e), this.maskPass.initialize(g, A, e), this.bokehNearBasePass.initialize(g, A, e), this.bokehNearFillPass.initialize(g, A, e), this.bokehFarBasePass.initialize(g, A, e), this.bokehFarFillPass.initialize(g, A, e), this.blurPass.initialize(g, A, Mi), g.capabilities.logarithmicDepthBuffer && (this.cocPass.fullscreenMaterial.defines.LOG_DEPTH = "1"), e !== void 0 && (this.renderTarget.texture.type = e, this.renderTargetNear.texture.type = e, this.renderTargetFar.texture.type = e, this.renderTargetMasked.texture.type = e, g !== null && g.outputColorSpace === De && (this.renderTarget.texture.colorSpace = De, this.renderTargetNear.texture.colorSpace = De, this.renderTargetFar.texture.colorSpace = De, this.renderTargetMasked.texture.colorSpace = De));
|
|
33583
33583
|
}
|
|
33584
33584
|
};
|
|
33585
33585
|
function snA(g, A, e) {
|
|
@@ -33590,7 +33590,7 @@ function snA(g, A, e) {
|
|
|
33590
33590
|
[bt, 4]
|
|
33591
33591
|
]);
|
|
33592
33592
|
let i;
|
|
33593
|
-
if (t.has(A) || console.error("Invalid noise texture format"), e ===
|
|
33593
|
+
if (t.has(A) || console.error("Invalid noise texture format"), e === Mi) {
|
|
33594
33594
|
i = new Uint8Array(g * t.get(A));
|
|
33595
33595
|
for (let I = 0, o = i.length; I < o; ++I)
|
|
33596
33596
|
i[I] = Math.random() * 255 + 0.5;
|
|
@@ -33613,7 +33613,7 @@ var nnA = class extends ZI {
|
|
|
33613
33613
|
* @param {Number} [format=LuminanceFormat] - The texture format.
|
|
33614
33614
|
* @param {Number} [type=UnsignedByteType] - The texture type.
|
|
33615
33615
|
*/
|
|
33616
|
-
constructor(g, A, e = ZG, t =
|
|
33616
|
+
constructor(g, A, e = ZG, t = Mi) {
|
|
33617
33617
|
super(snA(g * A, e, t), g, A, e, t), this.needsUpdate = !0;
|
|
33618
33618
|
}
|
|
33619
33619
|
}, $p = {
|
|
@@ -33680,7 +33680,7 @@ if(keep){gl_FragColor=texture2D(inputBuffer,vUv);}else{discard;}}`, rnA = class
|
|
|
33680
33680
|
depthBuffer1: new kA(null),
|
|
33681
33681
|
cameraNearFar: new kA(new tA(1, 1))
|
|
33682
33682
|
},
|
|
33683
|
-
blending:
|
|
33683
|
+
blending: ki,
|
|
33684
33684
|
toneMapped: !1,
|
|
33685
33685
|
depthWrite: !1,
|
|
33686
33686
|
depthTest: !1,
|
|
@@ -34520,7 +34520,7 @@ gl_Position=vec4(position.xy,1.0,1.0);}`, EnA = class extends Je {
|
|
|
34520
34520
|
predicationBuffer: new kA(null),
|
|
34521
34521
|
texelSize: new kA(g)
|
|
34522
34522
|
},
|
|
34523
|
-
blending:
|
|
34523
|
+
blending: ki,
|
|
34524
34524
|
toneMapped: !1,
|
|
34525
34525
|
depthWrite: !1,
|
|
34526
34526
|
depthTest: !1,
|
|
@@ -34860,7 +34860,7 @@ vec2 d;vec3 coords;coords.x=searchXLeft(vOffset[0].xy,vOffset[2].x);coords.y=vOf
|
|
|
34860
34860
|
resolution: new kA(A),
|
|
34861
34861
|
texelSize: new kA(g)
|
|
34862
34862
|
},
|
|
34863
|
-
blending:
|
|
34863
|
+
blending: ki,
|
|
34864
34864
|
toneMapped: !1,
|
|
34865
34865
|
depthWrite: !1,
|
|
34866
34866
|
depthTest: !1,
|
|
@@ -35353,7 +35353,7 @@ ao=clamp(1.0-pow(1.0-ao,abs(intensity)),0.0,1.0);
|
|
|
35353
35353
|
fade: new kA(0.01),
|
|
35354
35354
|
bias: new kA(0)
|
|
35355
35355
|
},
|
|
35356
|
-
blending:
|
|
35356
|
+
blending: ki,
|
|
35357
35357
|
toneMapped: !1,
|
|
35358
35358
|
depthWrite: !1,
|
|
35359
35359
|
depthTest: !1,
|
|
@@ -35894,7 +35894,7 @@ gl_FragColor=vec4(n[index],d[index]);}`, GnA = "uniform vec2 texelSize;varying v
|
|
|
35894
35894
|
normalBuffer: new kA(null),
|
|
35895
35895
|
texelSize: new kA(new tA())
|
|
35896
35896
|
},
|
|
35897
|
-
blending:
|
|
35897
|
+
blending: ki,
|
|
35898
35898
|
toneMapped: !1,
|
|
35899
35899
|
depthWrite: !1,
|
|
35900
35900
|
depthTest: !1,
|
|
@@ -36702,7 +36702,7 @@ l0=max(minLuminance,l0);l1=max(minLuminance,l1);float adaptedLum=l0+(l1-l0)*(1.0
|
|
|
36702
36702
|
extensions: {
|
|
36703
36703
|
shaderTextureLOD: !0
|
|
36704
36704
|
},
|
|
36705
|
-
blending:
|
|
36705
|
+
blending: ki,
|
|
36706
36706
|
toneMapped: !1,
|
|
36707
36707
|
depthWrite: !1,
|
|
36708
36708
|
depthTest: !1,
|
|
@@ -37399,7 +37399,7 @@ return orthographicDepthToViewZ(depth,cameraNear,cameraFar);
|
|
|
37399
37399
|
aspect: new kA(1),
|
|
37400
37400
|
time: new kA(0)
|
|
37401
37401
|
},
|
|
37402
|
-
blending:
|
|
37402
|
+
blending: ki,
|
|
37403
37403
|
toneMapped: !1,
|
|
37404
37404
|
depthWrite: !1,
|
|
37405
37405
|
depthTest: !1,
|
|
@@ -37811,7 +37811,7 @@ var UH = class extends SI {
|
|
|
37811
37811
|
this.renderer = g;
|
|
37812
37812
|
for (const t of this.effects)
|
|
37813
37813
|
t.initialize(g, A, e);
|
|
37814
|
-
this.updateMaterial(), e !== void 0 && e !==
|
|
37814
|
+
this.updateMaterial(), e !== void 0 && e !== Mi && (this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1");
|
|
37815
37815
|
}
|
|
37816
37816
|
/**
|
|
37817
37817
|
* Deletes disposable objects.
|
|
@@ -38265,9 +38265,9 @@ const RaA = {
|
|
|
38265
38265
|
normalize: Lt,
|
|
38266
38266
|
denormalize: Tn
|
|
38267
38267
|
};
|
|
38268
|
-
class
|
|
38268
|
+
class Li {
|
|
38269
38269
|
constructor(A = 0, e = 0) {
|
|
38270
|
-
|
|
38270
|
+
Li.prototype.isVector2 = !0, this.x = A, this.y = e;
|
|
38271
38271
|
}
|
|
38272
38272
|
get width() {
|
|
38273
38273
|
return this.x;
|
|
@@ -38818,7 +38818,7 @@ function MU(g) {
|
|
|
38818
38818
|
let xaA = 0;
|
|
38819
38819
|
class zg extends Lk {
|
|
38820
38820
|
constructor(A = zg.DEFAULT_IMAGE, e = zg.DEFAULT_MAPPING, t = EQ, i = EQ, I = eD, o = vk, s = mB, n = Vs, a = zg.DEFAULT_ANISOTROPY, r = YS) {
|
|
38821
|
-
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: xaA++ }), this.uuid = Wn(), this.name = "", this.source = new KaA(A), this.mipmaps = [], this.mapping = e, this.channel = 0, this.wrapS = t, this.wrapT = i, this.magFilter = I, this.minFilter = o, this.anisotropy = a, this.format = s, this.internalFormat = null, this.type = n, this.offset = new
|
|
38821
|
+
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: xaA++ }), this.uuid = Wn(), this.name = "", this.source = new KaA(A), this.mipmaps = [], this.mapping = e, this.channel = 0, this.wrapS = t, this.wrapT = i, this.magFilter = I, this.minFilter = o, this.anisotropy = a, this.format = s, this.internalFormat = null, this.type = n, this.offset = new Li(0, 0), this.repeat = new Li(1, 1), this.center = new Li(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new fC(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = r, this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.pmremVersion = 0;
|
|
38822
38822
|
}
|
|
38823
38823
|
get image() {
|
|
38824
38824
|
return this.source.data;
|
|
@@ -41340,7 +41340,7 @@ class QE extends JB {
|
|
|
41340
41340
|
return super.copy(A), this.color.copy(A.color), this.map = A.map, this.lightMap = A.lightMap, this.lightMapIntensity = A.lightMapIntensity, this.aoMap = A.aoMap, this.aoMapIntensity = A.aoMapIntensity, this.specularMap = A.specularMap, this.alphaMap = A.alphaMap, this.envMap = A.envMap, this.envMapRotation.copy(A.envMapRotation), this.combine = A.combine, this.reflectivity = A.reflectivity, this.refractionRatio = A.refractionRatio, this.wireframe = A.wireframe, this.wireframeLinewidth = A.wireframeLinewidth, this.wireframeLinecap = A.wireframeLinecap, this.wireframeLinejoin = A.wireframeLinejoin, this.fog = A.fog, this;
|
|
41341
41341
|
}
|
|
41342
41342
|
}
|
|
41343
|
-
const cg = /* @__PURE__ */ new dA(), Vw = /* @__PURE__ */ new
|
|
41343
|
+
const cg = /* @__PURE__ */ new dA(), Vw = /* @__PURE__ */ new Li();
|
|
41344
41344
|
class ys {
|
|
41345
41345
|
constructor(A, e, t = !1) {
|
|
41346
41346
|
if (Array.isArray(A))
|
|
@@ -41616,7 +41616,7 @@ class $n extends Lk {
|
|
|
41616
41616
|
const o = this.getAttribute("tangent"), s = [], n = [];
|
|
41617
41617
|
for (let k = 0; k < t.count; k++)
|
|
41618
41618
|
s[k] = new dA(), n[k] = new dA();
|
|
41619
|
-
const a = new dA(), r = new dA(), C = new dA(), c = new
|
|
41619
|
+
const a = new dA(), r = new dA(), C = new dA(), c = new Li(), Q = new Li(), l = new Li(), d = new dA(), h = new dA();
|
|
41620
41620
|
function E(k, U, w) {
|
|
41621
41621
|
a.fromBufferAttribute(t, k), r.fromBufferAttribute(t, U), C.fromBufferAttribute(t, w), c.fromBufferAttribute(I, k), Q.fromBufferAttribute(I, U), l.fromBufferAttribute(I, w), r.sub(a), C.sub(a), Q.sub(c), l.sub(c);
|
|
41622
41622
|
const M = 1 / (Q.x * l.y - l.x * Q.y);
|
|
@@ -41791,7 +41791,7 @@ class $n extends Lk {
|
|
|
41791
41791
|
this.dispatchEvent({ type: "dispose" });
|
|
41792
41792
|
}
|
|
41793
41793
|
}
|
|
41794
|
-
const sY = /* @__PURE__ */ new ht(), Fc = /* @__PURE__ */ new qk(), Xw = /* @__PURE__ */ new ta(), nY = /* @__PURE__ */ new dA(), hh = /* @__PURE__ */ new dA(), Eh = /* @__PURE__ */ new dA(), dh = /* @__PURE__ */ new dA(), HU = /* @__PURE__ */ new dA(), zw = /* @__PURE__ */ new dA(), jw = /* @__PURE__ */ new
|
|
41794
|
+
const sY = /* @__PURE__ */ new ht(), Fc = /* @__PURE__ */ new qk(), Xw = /* @__PURE__ */ new ta(), nY = /* @__PURE__ */ new dA(), hh = /* @__PURE__ */ new dA(), Eh = /* @__PURE__ */ new dA(), dh = /* @__PURE__ */ new dA(), HU = /* @__PURE__ */ new dA(), zw = /* @__PURE__ */ new dA(), jw = /* @__PURE__ */ new Li(), $w = /* @__PURE__ */ new Li(), A0 = /* @__PURE__ */ new Li(), aY = /* @__PURE__ */ new dA(), rY = /* @__PURE__ */ new dA(), CY = /* @__PURE__ */ new dA(), e0 = /* @__PURE__ */ new dA(), t0 = /* @__PURE__ */ new dA();
|
|
41795
41795
|
class vB extends sg {
|
|
41796
41796
|
constructor(A = new $n(), e = new QE()) {
|
|
41797
41797
|
super(), this.isMesh = !0, this.type = "Mesh", this.geometry = A, this.material = e, this.updateMorphTargets();
|
|
@@ -41883,7 +41883,7 @@ function i0(g, A, e, t, i, I, o, s, n, a) {
|
|
|
41883
41883
|
g.getVertexPosition(s, hh), g.getVertexPosition(n, Eh), g.getVertexPosition(a, dh);
|
|
41884
41884
|
const r = XaA(g, A, e, t, hh, Eh, dh, e0);
|
|
41885
41885
|
if (r) {
|
|
41886
|
-
i && (jw.fromBufferAttribute(i, s), $w.fromBufferAttribute(i, n), A0.fromBufferAttribute(i, a), r.uv = Ga.getInterpolation(e0, hh, Eh, dh, jw, $w, A0, new
|
|
41886
|
+
i && (jw.fromBufferAttribute(i, s), $w.fromBufferAttribute(i, n), A0.fromBufferAttribute(i, a), r.uv = Ga.getInterpolation(e0, hh, Eh, dh, jw, $w, A0, new Li())), I && (jw.fromBufferAttribute(I, s), $w.fromBufferAttribute(I, n), A0.fromBufferAttribute(I, a), r.uv1 = Ga.getInterpolation(e0, hh, Eh, dh, jw, $w, A0, new Li())), o && (aY.fromBufferAttribute(o, s), rY.fromBufferAttribute(o, n), CY.fromBufferAttribute(o, a), r.normal = Ga.getInterpolation(e0, hh, Eh, dh, aY, rY, CY, new dA()), r.normal.dot(t.direction) > 0 && r.normal.multiplyScalar(-1));
|
|
41887
41887
|
const C = {
|
|
41888
41888
|
a: s,
|
|
41889
41889
|
b: n,
|
|
@@ -41915,7 +41915,7 @@ let _W = class extends sg {
|
|
|
41915
41915
|
return new this.constructor().copy(this);
|
|
41916
41916
|
}
|
|
41917
41917
|
};
|
|
41918
|
-
const VC = /* @__PURE__ */ new dA(), BY = /* @__PURE__ */ new
|
|
41918
|
+
const VC = /* @__PURE__ */ new dA(), BY = /* @__PURE__ */ new Li(), cY = /* @__PURE__ */ new Li();
|
|
41919
41919
|
class Kv extends _W {
|
|
41920
41920
|
constructor(A = 50, e = 1, t = 0.1, i = 2e3) {
|
|
41921
41921
|
super(), this.isPerspectiveCamera = !0, this.type = "PerspectiveCamera", this.fov = A, this.zoom = 1, this.near = t, this.far = i, this.focus = 10, this.aspect = e, this.view = null, this.filmGauge = 35, this.filmOffset = 0, this.updateProjectionMatrix();
|
|
@@ -42805,7 +42805,7 @@ class rrA extends _k {
|
|
|
42805
42805
|
}
|
|
42806
42806
|
class Tk extends JB {
|
|
42807
42807
|
constructor(A) {
|
|
42808
|
-
super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new Dg(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Dg(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = caA, this.normalScale = new
|
|
42808
|
+
super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new Dg(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Dg(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = caA, this.normalScale = new Li(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Gd(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(A);
|
|
42809
42809
|
}
|
|
42810
42810
|
copy(A) {
|
|
42811
42811
|
return super.copy(A), this.defines = { STANDARD: "" }, this.color.copy(A.color), this.roughness = A.roughness, this.metalness = A.metalness, this.map = A.map, this.lightMap = A.lightMap, this.lightMapIntensity = A.lightMapIntensity, this.aoMap = A.aoMap, this.aoMapIntensity = A.aoMapIntensity, this.emissive.copy(A.emissive), this.emissiveMap = A.emissiveMap, this.emissiveIntensity = A.emissiveIntensity, this.bumpMap = A.bumpMap, this.bumpScale = A.bumpScale, this.normalMap = A.normalMap, this.normalMapType = A.normalMapType, this.normalScale.copy(A.normalScale), this.displacementMap = A.displacementMap, this.displacementScale = A.displacementScale, this.displacementBias = A.displacementBias, this.roughnessMap = A.roughnessMap, this.metalnessMap = A.metalnessMap, this.alphaMap = A.alphaMap, this.envMap = A.envMap, this.envMapRotation.copy(A.envMapRotation), this.envMapIntensity = A.envMapIntensity, this.wireframe = A.wireframe, this.wireframeLinewidth = A.wireframeLinewidth, this.wireframeLinecap = A.wireframeLinecap, this.wireframeLinejoin = A.wireframeLinejoin, this.flatShading = A.flatShading, this.fog = A.fog, this;
|
|
@@ -42816,7 +42816,7 @@ class Wa extends Tk {
|
|
|
42816
42816
|
super(), this.isMeshPhysicalMaterial = !0, this.defines = {
|
|
42817
42817
|
STANDARD: "",
|
|
42818
42818
|
PHYSICAL: ""
|
|
42819
|
-
}, this.type = "MeshPhysicalMaterial", this.anisotropyRotation = 0, this.anisotropyMap = null, this.clearcoatMap = null, this.clearcoatRoughness = 0, this.clearcoatRoughnessMap = null, this.clearcoatNormalScale = new
|
|
42819
|
+
}, this.type = "MeshPhysicalMaterial", this.anisotropyRotation = 0, this.anisotropyMap = null, this.clearcoatMap = null, this.clearcoatRoughness = 0, this.clearcoatRoughnessMap = null, this.clearcoatNormalScale = new Li(1, 1), this.clearcoatNormalMap = null, this.ior = 1.5, Object.defineProperty(this, "reflectivity", {
|
|
42820
42820
|
get: function() {
|
|
42821
42821
|
return _I(2.5 * (this.ior - 1) / (this.ior + 1), 0, 1);
|
|
42822
42822
|
},
|
|
@@ -43719,7 +43719,7 @@ let qv = class extends sg {
|
|
|
43719
43719
|
const VU = /* @__PURE__ */ new ht(), MY = /* @__PURE__ */ new dA(), RY = /* @__PURE__ */ new dA();
|
|
43720
43720
|
class _v {
|
|
43721
43721
|
constructor(A) {
|
|
43722
|
-
this.camera = A, this.intensity = 1, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new
|
|
43722
|
+
this.camera = A, this.intensity = 1, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new Li(512, 512), this.map = null, this.mapPass = null, this.matrix = new ht(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new $aA(), this._frameExtents = new Li(1, 1), this._viewportCount = 1, this._viewports = [
|
|
43723
43723
|
new zs(0, 0, 1, 1)
|
|
43724
43724
|
];
|
|
43725
43725
|
}
|
|
@@ -43802,7 +43802,7 @@ class mrA extends qv {
|
|
|
43802
43802
|
const UY = /* @__PURE__ */ new ht(), Ru = /* @__PURE__ */ new dA(), XU = /* @__PURE__ */ new dA();
|
|
43803
43803
|
class SrA extends _v {
|
|
43804
43804
|
constructor() {
|
|
43805
|
-
super(new Kv(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new
|
|
43805
|
+
super(new Kv(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new Li(4, 2), this._viewportCount = 6, this._viewports = [
|
|
43806
43806
|
// These viewports map a cube-map onto a 2D texture with the
|
|
43807
43807
|
// following orientation:
|
|
43808
43808
|
//
|
|
@@ -44581,7 +44581,7 @@ let HrA = class {
|
|
|
44581
44581
|
const I = [], o = i.extensions[this.name];
|
|
44582
44582
|
if (o.clearcoatFactor !== void 0 && (e.clearcoat = o.clearcoatFactor), o.clearcoatTexture !== void 0 && I.push(t.assignTexture(e, "clearcoatMap", o.clearcoatTexture)), o.clearcoatRoughnessFactor !== void 0 && (e.clearcoatRoughness = o.clearcoatRoughnessFactor), o.clearcoatRoughnessTexture !== void 0 && I.push(t.assignTexture(e, "clearcoatRoughnessMap", o.clearcoatRoughnessTexture)), o.clearcoatNormalTexture !== void 0 && (I.push(t.assignTexture(e, "clearcoatNormalMap", o.clearcoatNormalTexture)), o.clearcoatNormalTexture.scale !== void 0)) {
|
|
44583
44583
|
const s = o.clearcoatNormalTexture.scale;
|
|
44584
|
-
e.clearcoatNormalScale = new
|
|
44584
|
+
e.clearcoatNormalScale = new Li(s, s);
|
|
44585
44585
|
}
|
|
44586
44586
|
return Promise.all(I);
|
|
44587
44587
|
}
|
|
@@ -45526,7 +45526,7 @@ let pCA = class {
|
|
|
45526
45526
|
}
|
|
45527
45527
|
I.doubleSided === !0 && (s.side = VnA);
|
|
45528
45528
|
const r = I.alphaMode || jU.OPAQUE;
|
|
45529
|
-
if (r === jU.BLEND ? (s.transparent = !0, s.depthWrite = !1) : (s.transparent = !1, r === jU.MASK && (s.alphaTest = I.alphaCutoff !== void 0 ? I.alphaCutoff : 0.5)), I.normalTexture !== void 0 && o !== QE && (a.push(e.assignTexture(s, "normalMap", I.normalTexture)), s.normalScale = new
|
|
45529
|
+
if (r === jU.BLEND ? (s.transparent = !0, s.depthWrite = !1) : (s.transparent = !1, r === jU.MASK && (s.alphaTest = I.alphaCutoff !== void 0 ? I.alphaCutoff : 0.5)), I.normalTexture !== void 0 && o !== QE && (a.push(e.assignTexture(s, "normalMap", I.normalTexture)), s.normalScale = new Li(1, 1), I.normalTexture.scale !== void 0)) {
|
|
45530
45530
|
const C = I.normalTexture.scale;
|
|
45531
45531
|
s.normalScale.set(C, C);
|
|
45532
45532
|
}
|
|
@@ -47911,7 +47911,7 @@ let tBA = class {
|
|
|
47911
47911
|
}
|
|
47912
47912
|
};
|
|
47913
47913
|
const kg = gA("debuginput");
|
|
47914
|
-
var Zv = /* @__PURE__ */ ((g) => (g.Mouse = "mouse", g.Touch = "touch", g.Controller = "controller", g.Hand = "hand", g))(Zv || {}),
|
|
47914
|
+
var Zv = /* @__PURE__ */ ((g) => (g.Mouse = "mouse", g.Touch = "touch", g.Controller = "controller", g.Hand = "hand", g))(Zv || {}), xi = /* @__PURE__ */ ((g) => (g.PointerDown = "pointerdown", g.PointerUp = "pointerup", g.PointerMove = "pointermove", g.KeyDown = "keydown", g.KeyUp = "keyup", g.KeyPressed = "keypress", g))(xi || {});
|
|
47915
47915
|
class rB extends PointerEvent {
|
|
47916
47916
|
constructor(e, t, i) {
|
|
47917
47917
|
super(e, i);
|
|
@@ -48130,7 +48130,7 @@ class IBA {
|
|
|
48130
48130
|
return;
|
|
48131
48131
|
A.target instanceof HTMLElement && A.target.setPointerCapture(A.pointerId);
|
|
48132
48132
|
const e = this.getPointerId(A);
|
|
48133
|
-
kg &&
|
|
48133
|
+
kg && vi(`pointer down #${e}, identifier:${A.pointerId}`);
|
|
48134
48134
|
const t = this.getAndUpdateSpatialObjectForScreenPosition(e, A.clientX, A.clientY), i = new rB("pointerdown", A, { origin: this, mode: "screen", deviceIndex: 0, pointerId: e, button: A.button, clientX: A.clientX, clientY: A.clientY, pointerType: A.pointerType, buttonName: this.getButtonName(A), device: t, pressure: A.pressure });
|
|
48135
48135
|
this.onDown(i);
|
|
48136
48136
|
});
|
|
@@ -48491,13 +48491,13 @@ class IBA {
|
|
|
48491
48491
|
createInputEvent(A) {
|
|
48492
48492
|
switch (A.type) {
|
|
48493
48493
|
case "pointerdown":
|
|
48494
|
-
kg &&
|
|
48494
|
+
kg && vi("Create Pointer down"), this.onDownButton(A.deviceIndex, A.button), this.onDown(A);
|
|
48495
48495
|
break;
|
|
48496
48496
|
case "pointermove":
|
|
48497
|
-
kg &&
|
|
48497
|
+
kg && vi("Create Pointer move"), this.onMove(A);
|
|
48498
48498
|
break;
|
|
48499
48499
|
case "pointerup":
|
|
48500
|
-
kg &&
|
|
48500
|
+
kg && vi("Create Pointer up"), this.onUp(A), this.onReleaseButton(A.deviceIndex, A.button);
|
|
48501
48501
|
break;
|
|
48502
48502
|
}
|
|
48503
48503
|
}
|
|
@@ -48769,17 +48769,17 @@ class EV {
|
|
|
48769
48769
|
return;
|
|
48770
48770
|
this.onUpdateFrame(A.frame), this._hasSelectEvent = !0;
|
|
48771
48771
|
const e = (i = this._layout) == null ? void 0 : i.selectComponentId, t = (s = (o = (I = this._layout) == null ? void 0 : I.components[e]) == null ? void 0 : o.gamepadIndices) == null ? void 0 : s.button;
|
|
48772
|
-
t !== void 0 && (this._selectButtonIndex = t), !Q0 && (dr && ye.DrawDirection(this.rayWorldPosition, fe(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 16711680, 10), this.emitPointerEvent(
|
|
48772
|
+
t !== void 0 && (this._selectButtonIndex = t), !Q0 && (dr && ye.DrawDirection(this.rayWorldPosition, fe(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 16711680, 10), this.emitPointerEvent(xi.PointerDown, this._selectButtonIndex || 0, "xr-standard-trigger", !0, A));
|
|
48773
48773
|
});
|
|
48774
48774
|
B(this, "onSelectEnd", (A) => {
|
|
48775
|
-
this.emitPointerUpEvent && (Q0 || this.inputSource === A.inputSource && this.emitPointerEvent(
|
|
48775
|
+
this.emitPointerUpEvent && (Q0 || this.inputSource === A.inputSource && this.emitPointerEvent(xi.PointerUp, this._selectButtonIndex || 0, "xr-standard-trigger", !0, A));
|
|
48776
48776
|
});
|
|
48777
48777
|
B(this, "onSequeezeStart", (A) => {
|
|
48778
48778
|
var e, t, i;
|
|
48779
|
-
this.emitPointerDownEvent && this.inputSource === A.inputSource && (this._squeezeButtonIndex = (i = (t = (e = this._layout) == null ? void 0 : e.components["xr-standard-squeeze"]) == null ? void 0 : t.gamepadIndices) == null ? void 0 : i.button, this._squeezeButtonIndex !== void 0 && (dr && ye.DrawDirection(this.rayWorldPosition, fe(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 255, 10), this.emitPointerEvent(
|
|
48779
|
+
this.emitPointerDownEvent && this.inputSource === A.inputSource && (this._squeezeButtonIndex = (i = (t = (e = this._layout) == null ? void 0 : e.components["xr-standard-squeeze"]) == null ? void 0 : t.gamepadIndices) == null ? void 0 : i.button, this._squeezeButtonIndex !== void 0 && (dr && ye.DrawDirection(this.rayWorldPosition, fe(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 255, 10), this.emitPointerEvent(xi.PointerDown, this._squeezeButtonIndex || 0, "xr-standard-squeeze", !0, A)));
|
|
48780
48780
|
});
|
|
48781
48781
|
B(this, "onSequeezeEnd", (A) => {
|
|
48782
|
-
this.emitPointerUpEvent && this.inputSource === A.inputSource && this._squeezeButtonIndex !== void 0 && this.emitPointerEvent(
|
|
48782
|
+
this.emitPointerUpEvent && this.inputSource === A.inputSource && this._squeezeButtonIndex !== void 0 && this.emitPointerEvent(xi.PointerUp, this._squeezeButtonIndex || 0, "xr-standard-squeeze", !0, A);
|
|
48783
48783
|
});
|
|
48784
48784
|
/** Index = button index */
|
|
48785
48785
|
B(this, "states", {});
|
|
@@ -49260,7 +49260,7 @@ Pinch: ${(I = this.getGesture("pinch")) == null ? void 0 : I.value.toFixed(3)}`)
|
|
|
49260
49260
|
}
|
|
49261
49261
|
emitPointerEvent(A, e, t, i, I = null, o) {
|
|
49262
49262
|
if (!this.emitEvents) {
|
|
49263
|
-
dr && A !==
|
|
49263
|
+
dr && A !== xi.PointerMove && console.warn("Pointer events are disabled for this controller", this.index, A, e);
|
|
49264
49264
|
return;
|
|
49265
49265
|
}
|
|
49266
49266
|
if (this.xr.mode === "immersive-vr" || this.xr.isPassThrough) {
|
|
@@ -57102,7 +57102,7 @@ class LcA {
|
|
|
57102
57102
|
else if (h.mode === Zs.LINES)
|
|
57103
57103
|
E = new WI(d, u);
|
|
57104
57104
|
else if (h.mode === Zs.LINE_STRIP)
|
|
57105
|
-
E = new
|
|
57105
|
+
E = new Si(d, u);
|
|
57106
57106
|
else if (h.mode === Zs.LINE_LOOP)
|
|
57107
57107
|
E = new mJ(d, u);
|
|
57108
57108
|
else if (h.mode === Zs.POINTS)
|
|
@@ -58131,7 +58131,7 @@ const Kr = class {
|
|
|
58131
58131
|
C.onBeforeXR && C.onBeforeXR(A, e);
|
|
58132
58132
|
for (const C of this._sessionRequestStartListeners)
|
|
58133
58133
|
C({ mode: A, init: e });
|
|
58134
|
-
Qg &&
|
|
58134
|
+
Qg && vi("Requesting " + A + " session (" + Date.now() + ")"), this._currentSessionRequest = (a = navigator.xr) == null ? void 0 : a.requestSession(A, e), this._currentSessionRequestMode = A;
|
|
58135
58135
|
const I = await ((r = this._currentSessionRequest) == null ? void 0 : r.catch((C) => {
|
|
58136
58136
|
console.error(C, "Code: " + C.code), C.code === 9 && $t("Make sure your device has the required permissions (e.g. camera access)"), console.log("If the specified XR configuration is not supported (e.g. entering AR doesnt work) - make sure you access the website on a secure connection (HTTPS) and your device has the required permissions (e.g. camera access)"), location.protocol === "http:" && $t("XR requires a secure connection (HTTPS)");
|
|
58137
58137
|
}));
|
|
@@ -58712,7 +58712,7 @@ class ci {
|
|
|
58712
58712
|
static getLine(A) {
|
|
58713
58713
|
let e = this.linesCache.pop();
|
|
58714
58714
|
if (!e) {
|
|
58715
|
-
e = new
|
|
58715
|
+
e = new Si();
|
|
58716
58716
|
let t = e.geometry.getAttribute("position");
|
|
58717
58717
|
t || (t = new jA(new Float32Array(2 * 3), 3), e.geometry.setAttribute("position", t));
|
|
58718
58718
|
}
|
|
@@ -58721,7 +58721,7 @@ class ci {
|
|
|
58721
58721
|
static getCircle(A) {
|
|
58722
58722
|
let e = this.circlesCache.pop();
|
|
58723
58723
|
if (!e) {
|
|
58724
|
-
e = new
|
|
58724
|
+
e = new Si();
|
|
58725
58725
|
let t = e.geometry.getAttribute("position");
|
|
58726
58726
|
if (!t) {
|
|
58727
58727
|
t = new jA(new Float32Array(DN * 3), 3), e.geometry.setAttribute("position", t);
|
|
@@ -58938,7 +58938,7 @@ const bG = class {
|
|
|
58938
58938
|
intersect(A, e, t, i) {
|
|
58939
58939
|
var I, o, s;
|
|
58940
58940
|
for (const n of e) {
|
|
58941
|
-
if (!n || n.visible === !1 || ye.isGizmo(n) || i.lineThreshold !== void 0 && i.lineThreshold < 0 && n instanceof
|
|
58941
|
+
if (!n || n.visible === !1 || ye.isGizmo(n) || i.lineThreshold !== void 0 && i.lineThreshold < 0 && n instanceof Si)
|
|
58942
58942
|
continue;
|
|
58943
58943
|
let a = !0;
|
|
58944
58944
|
const r = n, C = r.geometry;
|
|
@@ -58961,7 +58961,7 @@ const bG = class {
|
|
|
58961
58961
|
}
|
|
58962
58962
|
intersectSphere(A, e, t, i, I, o, s, n) {
|
|
58963
58963
|
let a = A && A.isMesh && A.layers.test(i) && !ye.isGizmo(A);
|
|
58964
|
-
a && (a = A.visible), a && (a = !(A instanceof
|
|
58964
|
+
a && (a = A.visible), a && (a = !(A instanceof Si)), a && (a = !(A instanceof jE));
|
|
58965
58965
|
const r = A, C = r.geometry;
|
|
58966
58966
|
if (a && n) {
|
|
58967
58967
|
const c = n(A);
|
|
@@ -60403,7 +60403,7 @@ class jQA {
|
|
|
60403
60403
|
}
|
|
60404
60404
|
}
|
|
60405
60405
|
}
|
|
60406
|
-
const _c = new ic(), JI = new m(), jC = new m(),
|
|
60406
|
+
const _c = new ic(), JI = new m(), jC = new m(), wi = new MA(), V2 = {
|
|
60407
60407
|
X: new m(1, 0, 0),
|
|
60408
60408
|
Y: new m(0, 1, 0),
|
|
60409
60409
|
Z: new m(0, 0, 1)
|
|
@@ -60458,7 +60458,7 @@ class $QA extends pA {
|
|
|
60458
60458
|
const o = kN(this._plane, _c, !0);
|
|
60459
60459
|
if (o) {
|
|
60460
60460
|
if (this.pointEnd.copy(o.point).sub(this.worldPositionStart), t === "translate")
|
|
60461
|
-
this._offset.copy(this.pointEnd).sub(this.pointStart), I === "local" && e !== "XYZ" && this._offset.applyQuaternion(this._worldQuaternionInv), e.indexOf("X") === -1 && (this._offset.x = 0), e.indexOf("Y") === -1 && (this._offset.y = 0), e.indexOf("Z") === -1 && (this._offset.z = 0), I === "local" && e !== "XYZ" ? this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale) : this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale), i.position.copy(this._offset).add(this._positionStart), this.translationSnap && (I === "local" && (i.position.applyQuaternion(
|
|
60461
|
+
this._offset.copy(this.pointEnd).sub(this.pointStart), I === "local" && e !== "XYZ" && this._offset.applyQuaternion(this._worldQuaternionInv), e.indexOf("X") === -1 && (this._offset.x = 0), e.indexOf("Y") === -1 && (this._offset.y = 0), e.indexOf("Z") === -1 && (this._offset.z = 0), I === "local" && e !== "XYZ" ? this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale) : this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale), i.position.copy(this._offset).add(this._positionStart), this.translationSnap && (I === "local" && (i.position.applyQuaternion(wi.copy(this._quaternionStart).invert()), e.search("X") !== -1 && (i.position.x = Math.round(i.position.x / this.translationSnap) * this.translationSnap), e.search("Y") !== -1 && (i.position.y = Math.round(i.position.y / this.translationSnap) * this.translationSnap), e.search("Z") !== -1 && (i.position.z = Math.round(i.position.z / this.translationSnap) * this.translationSnap), i.position.applyQuaternion(this._quaternionStart)), I === "world" && (i.parent && i.position.add(JI.setFromMatrixPosition(i.parent.matrixWorld)), e.search("X") !== -1 && (i.position.x = Math.round(i.position.x / this.translationSnap) * this.translationSnap), e.search("Y") !== -1 && (i.position.y = Math.round(i.position.y / this.translationSnap) * this.translationSnap), e.search("Z") !== -1 && (i.position.z = Math.round(i.position.z / this.translationSnap) * this.translationSnap), i.parent && i.position.sub(JI.setFromMatrixPosition(i.parent.matrixWorld))));
|
|
60462
60462
|
else if (t === "scale") {
|
|
60463
60463
|
if (e.search("XYZ") !== -1) {
|
|
60464
60464
|
let s = this.pointEnd.length() / this.pointStart.length();
|
|
@@ -60470,7 +60470,7 @@ class $QA extends pA {
|
|
|
60470
60470
|
this._offset.copy(this.pointEnd).sub(this.pointStart);
|
|
60471
60471
|
const s = 20 / this.worldPosition.distanceTo(JI.setFromMatrixPosition(this.camera.matrixWorld));
|
|
60472
60472
|
let n = !1;
|
|
60473
|
-
e === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(JI.copy(this.rotationAxis).cross(this.eye)) * s) : (e === "X" || e === "Y" || e === "Z") && (this.rotationAxis.copy(V2[e]), JI.copy(V2[e]), I === "local" && JI.applyQuaternion(this.worldQuaternion), JI.cross(this.eye), JI.length() === 0 ? n = !0 : this.rotationAngle = this._offset.dot(JI.normalize()) * s), (e === "E" || n) && (this.rotationAxis.copy(this.eye), this.rotationAngle = this.pointEnd.angleTo(this.pointStart), this._startNorm.copy(this.pointStart).normalize(), this._endNorm.copy(this.pointEnd).normalize(), this.rotationAngle *= this._endNorm.cross(this._startNorm).dot(this.eye) < 0 ? 1 : -1), this.rotationSnap && (this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap), I === "local" && e !== "E" && e !== "XYZE" ? (i.quaternion.copy(this._quaternionStart), i.quaternion.multiply(
|
|
60473
|
+
e === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(JI.copy(this.rotationAxis).cross(this.eye)) * s) : (e === "X" || e === "Y" || e === "Z") && (this.rotationAxis.copy(V2[e]), JI.copy(V2[e]), I === "local" && JI.applyQuaternion(this.worldQuaternion), JI.cross(this.eye), JI.length() === 0 ? n = !0 : this.rotationAngle = this._offset.dot(JI.normalize()) * s), (e === "E" || n) && (this.rotationAxis.copy(this.eye), this.rotationAngle = this.pointEnd.angleTo(this.pointStart), this._startNorm.copy(this.pointStart).normalize(), this._endNorm.copy(this.pointEnd).normalize(), this.rotationAngle *= this._endNorm.cross(this._startNorm).dot(this.eye) < 0 ? 1 : -1), this.rotationSnap && (this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap), I === "local" && e !== "E" && e !== "XYZE" ? (i.quaternion.copy(this._quaternionStart), i.quaternion.multiply(wi.setFromAxisAngle(this.rotationAxis, this.rotationAngle)).normalize()) : (this.rotationAxis.applyQuaternion(this._parentQuaternionInv), i.quaternion.copy(wi.setFromAxisAngle(this.rotationAxis, this.rotationAngle)), i.quaternion.multiply(this._quaternionStart).normalize());
|
|
60474
60474
|
}
|
|
60475
60475
|
this.dispatchEvent(GN), this.dispatchEvent(j2);
|
|
60476
60476
|
}
|
|
@@ -60676,16 +60676,16 @@ class oL extends pA {
|
|
|
60676
60676
|
[new EA(new Wr(0.01, 2), i), null, null, null, "helper"]
|
|
60677
60677
|
],
|
|
60678
60678
|
DELTA: [
|
|
60679
|
-
[new
|
|
60679
|
+
[new Si(f(), i), null, null, null, "helper"]
|
|
60680
60680
|
],
|
|
60681
60681
|
X: [
|
|
60682
|
-
[new
|
|
60682
|
+
[new Si(E, i.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
|
|
60683
60683
|
],
|
|
60684
60684
|
Y: [
|
|
60685
|
-
[new
|
|
60685
|
+
[new Si(E, i.clone()), [0, -1e3, 0], [0, 0, Math.PI / 2], [1e6, 1, 1], "helper"]
|
|
60686
60686
|
],
|
|
60687
60687
|
Z: [
|
|
60688
|
-
[new
|
|
60688
|
+
[new Si(E, i.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]
|
|
60689
60689
|
]
|
|
60690
60690
|
}, k = {
|
|
60691
60691
|
XYZE: [
|
|
@@ -60705,7 +60705,7 @@ class oL extends pA {
|
|
|
60705
60705
|
]
|
|
60706
60706
|
}, U = {
|
|
60707
60707
|
AXIS: [
|
|
60708
|
-
[new
|
|
60708
|
+
[new Si(E, i.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
|
|
60709
60709
|
]
|
|
60710
60710
|
}, w = {
|
|
60711
60711
|
XYZE: [
|
|
@@ -60778,13 +60778,13 @@ class oL extends pA {
|
|
|
60778
60778
|
]
|
|
60779
60779
|
}, J = {
|
|
60780
60780
|
X: [
|
|
60781
|
-
[new
|
|
60781
|
+
[new Si(E, i.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
|
|
60782
60782
|
],
|
|
60783
60783
|
Y: [
|
|
60784
|
-
[new
|
|
60784
|
+
[new Si(E, i.clone()), [0, -1e3, 0], [0, 0, Math.PI / 2], [1e6, 1, 1], "helper"]
|
|
60785
60785
|
],
|
|
60786
60786
|
Z: [
|
|
60787
|
-
[new
|
|
60787
|
+
[new Si(E, i.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]
|
|
60788
60788
|
]
|
|
60789
60789
|
};
|
|
60790
60790
|
function F(T) {
|
|
@@ -60811,10 +60811,10 @@ class oL extends pA {
|
|
|
60811
60811
|
o.visible = !0, o.rotation.set(0, 0, 0), o.position.copy(this.worldPosition);
|
|
60812
60812
|
let s;
|
|
60813
60813
|
if (this.camera.isOrthographicCamera ? s = (this.camera.top - this.camera.bottom) / this.camera.zoom : s = this.worldPosition.distanceTo(this.cameraPosition) * Math.min(1.9 * Math.tan(Math.PI * this.camera.fov / 360) / this.camera.zoom, 7), o.scale.set(1, 1, 1).multiplyScalar(s * this.size / 4), o.tag === "helper") {
|
|
60814
|
-
o.visible = !1, o.name === "AXIS" ? (o.visible = !!this.axis, this.axis === "X" && (
|
|
60814
|
+
o.visible = !1, o.name === "AXIS" ? (o.visible = !!this.axis, this.axis === "X" && (wi.setFromEuler(y0.set(0, 0, 0)), o.quaternion.copy(t).multiply(wi), Math.abs(Vt.copy(wp).applyQuaternion(t).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Y" && (wi.setFromEuler(y0.set(0, 0, Math.PI / 2)), o.quaternion.copy(t).multiply(wi), Math.abs(Vt.copy(tQ).applyQuaternion(t).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Z" && (wi.setFromEuler(y0.set(0, Math.PI / 2, 0)), o.quaternion.copy(t).multiply(wi), Math.abs(Vt.copy(mp).applyQuaternion(t).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "XYZE" && (wi.setFromEuler(y0.set(0, Math.PI / 2, 0)), Vt.copy(this.rotationAxis), o.quaternion.setFromRotationMatrix(A1.lookAt($2, Vt, tQ)), o.quaternion.multiply(wi), o.visible = this.dragging), this.axis === "E" && (o.visible = !1)) : o.name === "START" ? (o.position.copy(this.worldPositionStart), o.visible = this.dragging) : o.name === "END" ? (o.position.copy(this.worldPosition), o.visible = this.dragging) : o.name === "DELTA" ? (o.position.copy(this.worldPositionStart), o.quaternion.copy(this.worldQuaternionStart), JI.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), JI.applyQuaternion(this.worldQuaternionStart.clone().invert()), o.scale.copy(JI), o.visible = this.dragging) : (o.quaternion.copy(t), this.dragging ? o.position.copy(this.worldPositionStart) : o.position.copy(this.worldPosition), this.axis && (o.visible = this.axis.search(o.name) !== -1));
|
|
60815
60815
|
continue;
|
|
60816
60816
|
}
|
|
60817
|
-
o.quaternion.copy(t), this.mode === "translate" || this.mode === "scale" ? (o.name === "X" && Math.abs(Vt.copy(wp).applyQuaternion(t).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Y" && Math.abs(Vt.copy(tQ).applyQuaternion(t).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Z" && Math.abs(Vt.copy(mp).applyQuaternion(t).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XY" && Math.abs(Vt.copy(mp).applyQuaternion(t).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "YZ" && Math.abs(Vt.copy(wp).applyQuaternion(t).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XZ" && Math.abs(Vt.copy(tQ).applyQuaternion(t).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1)) : this.mode === "rotate" && (w0.copy(t), Vt.copy(this.eye).applyQuaternion(
|
|
60817
|
+
o.quaternion.copy(t), this.mode === "translate" || this.mode === "scale" ? (o.name === "X" && Math.abs(Vt.copy(wp).applyQuaternion(t).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Y" && Math.abs(Vt.copy(tQ).applyQuaternion(t).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Z" && Math.abs(Vt.copy(mp).applyQuaternion(t).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XY" && Math.abs(Vt.copy(mp).applyQuaternion(t).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "YZ" && Math.abs(Vt.copy(wp).applyQuaternion(t).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XZ" && Math.abs(Vt.copy(tQ).applyQuaternion(t).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1)) : this.mode === "rotate" && (w0.copy(t), Vt.copy(this.eye).applyQuaternion(wi.copy(t).invert()), o.name.search("E") !== -1 && o.quaternion.setFromRotationMatrix(A1.lookAt(this.eye, $2, tQ)), o.name === "X" && (wi.setFromAxisAngle(wp, Math.atan2(-Vt.y, Vt.z)), wi.multiplyQuaternions(w0, wi), o.quaternion.copy(wi)), o.name === "Y" && (wi.setFromAxisAngle(tQ, Math.atan2(Vt.x, Vt.z)), wi.multiplyQuaternions(w0, wi), o.quaternion.copy(wi)), o.name === "Z" && (wi.setFromAxisAngle(mp, Math.atan2(Vt.y, Vt.x)), wi.multiplyQuaternions(w0, wi), o.quaternion.copy(wi))), o.visible = o.visible && (o.name.indexOf("X") === -1 || this.showX), o.visible = o.visible && (o.name.indexOf("Y") === -1 || this.showY), o.visible = o.visible && (o.name.indexOf("Z") === -1 || this.showZ), o.visible = o.visible && (o.name.indexOf("E") === -1 || this.showX && this.showY && this.showZ), o.material._color = o.material._color || o.material.color.clone(), o.material._opacity = o.material._opacity || o.material.opacity, o.material.color.copy(o.material._color), o.material.opacity = o.material._opacity, this.enabled && this.axis && (o.name === this.axis || this.axis.split("").some(function(n) {
|
|
60818
60818
|
return o.name === n;
|
|
60819
60819
|
})) && (o.material.color.setHex(16776960), o.material.opacity = 1);
|
|
60820
60820
|
}
|
|
@@ -63017,15 +63017,15 @@ class CD extends vJ {
|
|
|
63017
63017
|
for (let nI = 8 * Se; nI < 8 * Se + Wt; ++nI) {
|
|
63018
63018
|
fi = Fe[mt][nI];
|
|
63019
63019
|
for (let ir = 0; ir < mA; ++ir) {
|
|
63020
|
-
const
|
|
63021
|
-
X.setUint16(fi + 0 * 2 * je, Xe[mt][
|
|
63020
|
+
const Fi = ir * 64 + (nI & 7) * 8;
|
|
63021
|
+
X.setUint16(fi + 0 * 2 * je, Xe[mt][Fi + 0], !0), X.setUint16(fi + 1 * 2 * je, Xe[mt][Fi + 1], !0), X.setUint16(fi + 2 * 2 * je, Xe[mt][Fi + 2], !0), X.setUint16(fi + 3 * 2 * je, Xe[mt][Fi + 3], !0), X.setUint16(fi + 4 * 2 * je, Xe[mt][Fi + 4], !0), X.setUint16(fi + 5 * 2 * je, Xe[mt][Fi + 5], !0), X.setUint16(fi + 6 * 2 * je, Xe[mt][Fi + 6], !0), X.setUint16(fi + 7 * 2 * je, Xe[mt][Fi + 7], !0), fi += 8 * 2 * je;
|
|
63022
63022
|
}
|
|
63023
63023
|
}
|
|
63024
63024
|
if (mA != KA)
|
|
63025
63025
|
for (let nI = 8 * Se; nI < 8 * Se + Wt; ++nI) {
|
|
63026
|
-
const ir = Fe[mt][nI] + 8 * mA * 2 * je,
|
|
63026
|
+
const ir = Fe[mt][nI] + 8 * mA * 2 * je, Fi = mA * 64 + (nI & 7) * 8;
|
|
63027
63027
|
for (let FC = 0; FC < Io; ++FC)
|
|
63028
|
-
X.setUint16(ir + FC * 2 * je, Xe[mt][
|
|
63028
|
+
X.setUint16(ir + FC * 2 * je, Xe[mt][Fi + FC], !0);
|
|
63029
63029
|
}
|
|
63030
63030
|
}
|
|
63031
63031
|
}
|
|
@@ -63388,7 +63388,7 @@ class CD extends vJ {
|
|
|
63388
63388
|
return $.value += H, "skipped";
|
|
63389
63389
|
$.value += H;
|
|
63390
63390
|
}
|
|
63391
|
-
function
|
|
63391
|
+
function Ni(K, q, $) {
|
|
63392
63392
|
const N = {};
|
|
63393
63393
|
if (K.getUint32(0, !0) != 20000630)
|
|
63394
63394
|
throw new Error("THREE.EXRLoader: Provided file doesn't appear to be in OpenEXR format.");
|
|
@@ -63414,7 +63414,7 @@ class CD extends vJ {
|
|
|
63414
63414
|
throw console.error("THREE.EXRHeader:", N), new Error("THREE.EXRLoader: Provided file is currently unsupported.");
|
|
63415
63415
|
return N;
|
|
63416
63416
|
}
|
|
63417
|
-
function
|
|
63417
|
+
function Yi(K, q, $, N, H) {
|
|
63418
63418
|
const O = {
|
|
63419
63419
|
size: 0,
|
|
63420
63420
|
viewer: q,
|
|
@@ -63497,7 +63497,7 @@ class CD extends vJ {
|
|
|
63497
63497
|
}
|
|
63498
63498
|
return O.bytesPerLine = O.width * O.inputSize * O.channels, O.outputChannels == 4 ? (O.format = bt, O.colorSpace = Ht) : (O.format = rl, O.colorSpace = qo), O;
|
|
63499
63499
|
}
|
|
63500
|
-
const jo = new DataView(A), UC = new Uint8Array(A), $o = { value: 0 }, NC =
|
|
63500
|
+
const jo = new DataView(A), UC = new Uint8Array(A), $o = { value: 0 }, NC = Ni(jo, A, $o), It = Yi(NC, jo, UC, $o, this.type), au = { value: 0 }, vy = { R: 0, G: 1, B: 2, A: 3, Y: 0 };
|
|
63501
63501
|
for (let K = 0; K < It.height / It.scanlineBlockSize; K++) {
|
|
63502
63502
|
const q = le(jo, $o);
|
|
63503
63503
|
It.size = le(jo, $o), It.lines = q + It.scanlineBlockSize > It.height ? It.height - q : It.scanlineBlockSize;
|
|
@@ -65340,6 +65340,7 @@ const r_ = class extends HTMLElement {
|
|
|
65340
65340
|
}
|
|
65341
65341
|
.compact .options {
|
|
65342
65342
|
flex-wrap: wrap;
|
|
65343
|
+
gap: .3rem;
|
|
65343
65344
|
}
|
|
65344
65345
|
.compact .top .options {
|
|
65345
65346
|
height: auto;
|
|
@@ -65403,6 +65404,7 @@ const r_ = class extends HTMLElement {
|
|
|
65403
65404
|
.compact .options > button {
|
|
65404
65405
|
display: flex;
|
|
65405
65406
|
flex-basis: 100%;
|
|
65407
|
+
min-height: 3rem;
|
|
65406
65408
|
}
|
|
65407
65409
|
.compact .options > button.row2 {
|
|
65408
65410
|
//border: 1px solid red !important;
|
|
@@ -66266,7 +66268,7 @@ Start a coroutine from a component by calling "this.startCoroutine(myCoroutine()
|
|
|
66266
66268
|
try {
|
|
66267
66269
|
performance.mark("update.start"), this.internalStep(A, e), this._renderlooperrors = 0, performance.mark("update.end"), performance.measure("NE Frame", "update.start", "update.end");
|
|
66268
66270
|
} catch (t) {
|
|
66269
|
-
this._renderlooperrors += 1, (se() || Rg) && (t instanceof Error || t instanceof TypeError) &&
|
|
66271
|
+
this._renderlooperrors += 1, (se() || Rg) && (t instanceof Error || t instanceof TypeError) && vi("Caught unhandled exception during render-loop - see console for details.", gn.Error), console.error("Frame #" + this.time.frame + `
|
|
66270
66272
|
`, t), this._renderlooperrors >= 3 && (console.warn("Stopping render loop due to error"), this.renderer.setAnimationLoop(null)), this.domElement.dispatchEvent(new CustomEvent("error", { detail: t }));
|
|
66271
66273
|
}
|
|
66272
66274
|
else
|
|
@@ -67575,7 +67577,7 @@ class vhA {
|
|
|
67575
67577
|
color: 3342591,
|
|
67576
67578
|
linewidth: 1
|
|
67577
67579
|
});
|
|
67578
|
-
return new
|
|
67580
|
+
return new Si(t, i);
|
|
67579
67581
|
}
|
|
67580
67582
|
// parse the model node for transform data
|
|
67581
67583
|
getTransformData(A, e) {
|
|
@@ -69538,7 +69540,7 @@ async function sEA(g, A = 1 / 0, e = null, t = void 0) {
|
|
|
69538
69540
|
const I = new _e(), o = new tI();
|
|
69539
69541
|
o.add(N0), e || (e = U0 = new uC({ antialias: !1, alpha: !0, premultipliedAlpha: !1, preserveDrawingBuffer: !0 }));
|
|
69540
69542
|
const s = Math.min(g.image.width, A), n = Math.min(g.image.height, A);
|
|
69541
|
-
ro && (ro.width !== s || ro.height !== n) && (ro.dispose(), ro = null), ro || (ro = new $e(s, n, { format: bt, type:
|
|
69543
|
+
ro && (ro.width !== s || ro.height !== n) && (ro.dispose(), ro = null), ro || (ro = new $e(s, n, { format: bt, type: Mi, minFilter: qe, magFilter: qe })), e.setRenderTarget(ro), e.setSize(s, n), e.clear(), e.render(o, I), U0 && (U0.dispose(), U0 = null);
|
|
69542
69544
|
const a = new Uint8ClampedArray(ro.width * ro.height * 4);
|
|
69543
69545
|
e.readRenderTargetPixels(ro, 0, 0, ro.width, ro.height, a);
|
|
69544
69546
|
const r = new ImageData(a, ro.width, ro.height, void 0), C = await createImageBitmap(r, { premultiplyAlpha: "none" });
|
|
@@ -71668,36 +71670,36 @@ let DX = class extends gI {
|
|
|
71668
71670
|
P.copy(ui).sub(t.target), P.applyQuaternion(CA), s.setFromVector3(P), t.autoRotate && I === i.NONE && J(M(Nt)), t.enableDamping ? (s.theta += n.theta * t.dampingFactor, s.phi += n.phi * t.dampingFactor) : (s.theta += n.theta, s.phi += n.phi);
|
|
71669
71671
|
let pi = t.minAzimuthAngle, rt = t.maxAzimuthAngle;
|
|
71670
71672
|
isFinite(pi) && isFinite(rt) && (pi < -Math.PI ? pi += zA : pi > Math.PI && (pi -= zA), rt < -Math.PI ? rt += zA : rt > Math.PI && (rt -= zA), pi <= rt ? s.theta = Math.max(pi, Math.min(rt, s.theta)) : s.theta = s.theta > (pi + rt) / 2 ? Math.max(pi, s.theta) : Math.min(rt, s.theta)), s.phi = Math.max(t.minPolarAngle, Math.min(t.maxPolarAngle, s.phi)), s.makeSafe(), t.enableDamping === !0 ? t.target.addScaledVector(C, t.dampingFactor) : t.target.add(C), t.target.sub(t.cursor), t.target.clampLength(t.minTargetRadius, t.maxTargetRadius), t.target.add(t.cursor);
|
|
71671
|
-
let
|
|
71673
|
+
let Ni = !1;
|
|
71672
71674
|
if (t.zoomToCursor && G || t.object.isOrthographicCamera)
|
|
71673
71675
|
s.radius = sA(s.radius);
|
|
71674
71676
|
else {
|
|
71675
71677
|
t.enableDamping ? r = Ct.lerp(r, a, t.dampingFactor) : r = a, s.radius = sA(s.radius * r);
|
|
71676
|
-
const
|
|
71677
|
-
s.radius = sA(s.radius * a),
|
|
71678
|
+
const Yi = s.radius;
|
|
71679
|
+
s.radius = sA(s.radius * a), Ni = Yi != s.radius;
|
|
71678
71680
|
}
|
|
71679
71681
|
if (P.setFromSpherical(s), P.applyQuaternion(AA), ui.copy(t.target).add(P), t.object.parent ? t.object.parent.worldToLocal(ui) : t.object.position.copy(ui), t.object.lookAt(t.target), t.enableDamping === !0 ? (n.theta *= 1 - t.dampingFactor, n.phi *= 1 - t.dampingFactor, C.multiplyScalar(1 - t.dampingFactor)) : (n.set(0, 0, 0), C.set(0, 0, 0)), t.zoomToCursor && G) {
|
|
71680
|
-
let
|
|
71682
|
+
let Yi = null;
|
|
71681
71683
|
if (t.object.isPerspectiveCamera) {
|
|
71682
71684
|
const jo = P.length();
|
|
71683
|
-
|
|
71684
|
-
const UC = jo -
|
|
71685
|
-
t.object.position.addScaledVector(D, UC), t.object.updateMatrixWorld(),
|
|
71685
|
+
Yi = sA(jo * a);
|
|
71686
|
+
const UC = jo - Yi;
|
|
71687
|
+
t.object.position.addScaledVector(D, UC), t.object.updateMatrixWorld(), Ni = !!UC;
|
|
71686
71688
|
} else if (t.object.isOrthographicCamera) {
|
|
71687
71689
|
const jo = new m(y.x, y.y, 0);
|
|
71688
71690
|
jo.unproject(t.object);
|
|
71689
71691
|
const UC = t.object.zoom;
|
|
71690
|
-
t.object.zoom = Math.max(t.minZoom, Math.min(t.maxZoom, t.object.zoom / a)), t.object.updateProjectionMatrix(),
|
|
71692
|
+
t.object.zoom = Math.max(t.minZoom, Math.min(t.maxZoom, t.object.zoom / a)), t.object.updateProjectionMatrix(), Ni = UC !== t.object.zoom;
|
|
71691
71693
|
const $o = new m(y.x, y.y, 0);
|
|
71692
|
-
$o.unproject(t.object), t.object.position.sub($o).add(jo), t.object.updateMatrixWorld(),
|
|
71694
|
+
$o.unproject(t.object), t.object.position.sub($o).add(jo), t.object.updateMatrixWorld(), Yi = P.length();
|
|
71693
71695
|
} else
|
|
71694
71696
|
console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), t.zoomToCursor = !1;
|
|
71695
|
-
|
|
71697
|
+
Yi !== null && (this.screenSpacePanning ? t.target.set(0, 0, -1).transformDirection(t.object.matrix).multiplyScalar(Yi).add(t.object.position) : (K0.origin.copy(t.object.position), K0.direction.set(0, 0, -1).transformDirection(t.object.matrix), Math.abs(t.object.up.dot(K0.direction)) < xEA ? A.lookAt(t.target) : (P1.setFromNormalAndCoplanarPoint(t.object.up, t.target), K0.intersectPlane(P1, t.target))));
|
|
71696
71698
|
} else if (t.object.isOrthographicCamera) {
|
|
71697
|
-
const
|
|
71698
|
-
t.object.zoom = Math.max(t.minZoom, Math.min(t.maxZoom, t.object.zoom / a)),
|
|
71699
|
+
const Yi = t.object.zoom;
|
|
71700
|
+
t.object.zoom = Math.max(t.minZoom, Math.min(t.maxZoom, t.object.zoom / a)), Yi !== t.object.zoom && (t.object.updateProjectionMatrix(), Ni = !0);
|
|
71699
71701
|
}
|
|
71700
|
-
return a = 1, G = !1,
|
|
71702
|
+
return a = 1, G = !1, Ni || xA.distanceToSquared(t.object.position) > o || 8 * (1 - cA.dot(t.object.quaternion)) > o || OA.distanceToSquared(t.target) > o ? (t.dispatchEvent(Y1), xA.copy(t.object.position), cA.copy(t.object.quaternion), OA.copy(t.target), !0) : !1;
|
|
71701
71703
|
};
|
|
71702
71704
|
}(), this.dispose = function() {
|
|
71703
71705
|
t.domElement.removeEventListener("contextmenu", LA), t.domElement.removeEventListener("pointerdown", He), t.domElement.removeEventListener("pointercancel", v), t.domElement.removeEventListener("wheel", bA), t.domElement.removeEventListener("pointermove", Y), window.removeEventListener("pointerup", v), t.domElement.getRootNode().removeEventListener("keydown", we, { capture: !0 }), t._domElementKeyEvents !== null && (t._domElementKeyEvents.removeEventListener("keydown", vA), t._domElementKeyEvents = null);
|
|
@@ -72444,7 +72446,7 @@ function YEA(g, A, e, t, i) {
|
|
|
72444
72446
|
if (!i && !t && !g.onValidate)
|
|
72445
72447
|
return;
|
|
72446
72448
|
if (e !== void 0) {
|
|
72447
|
-
console.error("Invalid usage of validate decorator. Only fields can be validated.", g, A, e),
|
|
72449
|
+
console.error("Invalid usage of validate decorator. Only fields can be validated.", g, A, e), vi("Invalid usage of validate decorator. Only fields can be validated. Property: " + A, gn.Error);
|
|
72448
72450
|
return;
|
|
72449
72451
|
}
|
|
72450
72452
|
let I = "";
|
|
@@ -73392,7 +73394,7 @@ const ua = class extends FA {
|
|
|
73392
73394
|
if (e === void 0 || e.propagationStopped || e.defaultPrevented || e.used)
|
|
73393
73395
|
return;
|
|
73394
73396
|
const t = new oy(this.context.input, e);
|
|
73395
|
-
this._currentPointerEventName = e.type, t.inputSource = this.context.input, t.isClick = e.isClick, t.isDoubleClick = e.isDoubleClick, t.isDown = e.type ==
|
|
73397
|
+
this._currentPointerEventName = e.type, t.inputSource = this.context.input, t.isClick = e.isClick, t.isDoubleClick = e.isDoubleClick, t.isDown = e.type == xi.PointerDown, t.isUp = e.type == xi.PointerUp, t.isPressed = this.context.input.getPointerPressed(e.pointerId), Gr && (t.isDown ? console.log("DOWN", t.pointerId) : t.isUp && console.log("UP", t.pointerId), t.isClick && console.log("CLICK", t.pointerId));
|
|
73396
73398
|
const i = new rC();
|
|
73397
73399
|
e.hasRay ? i.ray = e.ray : i.screenPoint = this.context.input.getPointerPositionRC(e.pointerId);
|
|
73398
73400
|
const I = this.performRaycast(i);
|
|
@@ -73405,7 +73407,7 @@ const ua = class extends FA {
|
|
|
73405
73407
|
hits: I
|
|
73406
73408
|
});
|
|
73407
73409
|
}
|
|
73408
|
-
Gr && t.isClick &&
|
|
73410
|
+
Gr && t.isClick && vi("EventSystem: " + t.pointerId + " - " + this.context.time.frame + " - Up:" + t.isUp + ", Down:" + t.isDown);
|
|
73409
73411
|
const o = {
|
|
73410
73412
|
sender: this,
|
|
73411
73413
|
args: t,
|
|
@@ -73508,10 +73510,10 @@ const ua = class extends FA {
|
|
|
73508
73510
|
t !== void 0 && t !== -1 && ((I = this.raycaster) == null || I.splice(t, 1));
|
|
73509
73511
|
}
|
|
73510
73512
|
onEnable() {
|
|
73511
|
-
this.context.input.addEventListener(
|
|
73513
|
+
this.context.input.addEventListener(xi.PointerDown, this.onPointerEvent), this.context.input.addEventListener(xi.PointerUp, this.onPointerEvent), this.context.input.addEventListener(xi.PointerMove, this.onPointerEvent);
|
|
73512
73514
|
}
|
|
73513
73515
|
onDisable() {
|
|
73514
|
-
this.context.input.removeEventListener(
|
|
73516
|
+
this.context.input.removeEventListener(xi.PointerDown, this.onPointerEvent), this.context.input.removeEventListener(xi.PointerUp, this.onPointerEvent), this.context.input.removeEventListener(xi.PointerMove, this.onPointerEvent);
|
|
73515
73517
|
}
|
|
73516
73518
|
onBeforeRender() {
|
|
73517
73519
|
this.resetMeshUIStates();
|
|
@@ -73697,7 +73699,7 @@ const ua = class extends FA {
|
|
|
73697
73699
|
/** invoke the pointerMove event on all captured handlers */
|
|
73698
73700
|
invokePointerCapture(e) {
|
|
73699
73701
|
var t;
|
|
73700
|
-
if (e.event.type ===
|
|
73702
|
+
if (e.event.type === xi.PointerMove) {
|
|
73701
73703
|
const i = e.pointerId, I = this._capturedPointer[i];
|
|
73702
73704
|
if (I) {
|
|
73703
73705
|
Gr && console.log("Captured", i, I);
|
|
@@ -73779,7 +73781,7 @@ class DB {
|
|
|
73779
73781
|
}
|
|
73780
73782
|
}
|
|
73781
73783
|
B(DB, "lastSelected", null), B(DB, "lastUpdateFrame", []), B(DB, "needsUpdate", !1);
|
|
73782
|
-
var tdA = Object.defineProperty, idA = Object.getOwnPropertyDescriptor,
|
|
73784
|
+
var tdA = Object.defineProperty, idA = Object.getOwnPropertyDescriptor, Ui = (g, A, e, t) => {
|
|
73783
73785
|
for (var i = t > 1 ? void 0 : t ? idA(A, e) : A, I = g.length - 1, o; I >= 0; I--)
|
|
73784
73786
|
(o = g[I]) && (i = (t ? o(A, e, i) : o(i)) || i);
|
|
73785
73787
|
return t && i && tdA(A, e, i), i;
|
|
@@ -74144,76 +74146,76 @@ class Jt extends FA {
|
|
|
74144
74146
|
// private onPositionDrag(){
|
|
74145
74147
|
// }
|
|
74146
74148
|
}
|
|
74147
|
-
|
|
74149
|
+
Ui([
|
|
74148
74150
|
S()
|
|
74149
74151
|
], Jt.prototype, "autoTarget", 2);
|
|
74150
|
-
|
|
74152
|
+
Ui([
|
|
74151
74153
|
S()
|
|
74152
74154
|
], Jt.prototype, "autoFit", 2);
|
|
74153
|
-
|
|
74155
|
+
Ui([
|
|
74154
74156
|
S()
|
|
74155
74157
|
], Jt.prototype, "enableRotate", 2);
|
|
74156
|
-
|
|
74158
|
+
Ui([
|
|
74157
74159
|
S()
|
|
74158
74160
|
], Jt.prototype, "autoRotate", 2);
|
|
74159
|
-
|
|
74161
|
+
Ui([
|
|
74160
74162
|
S()
|
|
74161
74163
|
], Jt.prototype, "autoRotateSpeed", 2);
|
|
74162
|
-
|
|
74164
|
+
Ui([
|
|
74163
74165
|
S()
|
|
74164
74166
|
], Jt.prototype, "minAzimuthAngle", 2);
|
|
74165
|
-
|
|
74167
|
+
Ui([
|
|
74166
74168
|
S()
|
|
74167
74169
|
], Jt.prototype, "maxAzimuthAngle", 2);
|
|
74168
|
-
|
|
74170
|
+
Ui([
|
|
74169
74171
|
S()
|
|
74170
74172
|
], Jt.prototype, "minPolarAngle", 2);
|
|
74171
|
-
|
|
74173
|
+
Ui([
|
|
74172
74174
|
S()
|
|
74173
74175
|
], Jt.prototype, "maxPolarAngle", 2);
|
|
74174
|
-
|
|
74176
|
+
Ui([
|
|
74175
74177
|
S()
|
|
74176
74178
|
], Jt.prototype, "enableKeys", 2);
|
|
74177
|
-
|
|
74179
|
+
Ui([
|
|
74178
74180
|
S()
|
|
74179
74181
|
], Jt.prototype, "enableDamping", 2);
|
|
74180
|
-
|
|
74182
|
+
Ui([
|
|
74181
74183
|
S()
|
|
74182
74184
|
], Jt.prototype, "dampingFactor", 2);
|
|
74183
|
-
|
|
74185
|
+
Ui([
|
|
74184
74186
|
S()
|
|
74185
74187
|
], Jt.prototype, "enableZoom", 2);
|
|
74186
|
-
|
|
74188
|
+
Ui([
|
|
74187
74189
|
S()
|
|
74188
74190
|
], Jt.prototype, "minZoom", 2);
|
|
74189
|
-
|
|
74191
|
+
Ui([
|
|
74190
74192
|
S()
|
|
74191
74193
|
], Jt.prototype, "maxZoom", 2);
|
|
74192
|
-
|
|
74194
|
+
Ui([
|
|
74193
74195
|
S()
|
|
74194
74196
|
], Jt.prototype, "zoomSpeed", 2);
|
|
74195
|
-
|
|
74197
|
+
Ui([
|
|
74196
74198
|
S()
|
|
74197
74199
|
], Jt.prototype, "enablePan", 2);
|
|
74198
|
-
|
|
74200
|
+
Ui([
|
|
74199
74201
|
S(Fd)
|
|
74200
74202
|
], Jt.prototype, "lookAtConstraint", 2);
|
|
74201
|
-
|
|
74203
|
+
Ui([
|
|
74202
74204
|
S()
|
|
74203
74205
|
], Jt.prototype, "lookAtConstraint01", 2);
|
|
74204
|
-
|
|
74206
|
+
Ui([
|
|
74205
74207
|
S()
|
|
74206
74208
|
], Jt.prototype, "allowInterrupt", 2);
|
|
74207
|
-
|
|
74209
|
+
Ui([
|
|
74208
74210
|
S()
|
|
74209
74211
|
], Jt.prototype, "middleClickToFocus", 2);
|
|
74210
|
-
|
|
74212
|
+
Ui([
|
|
74211
74213
|
S()
|
|
74212
74214
|
], Jt.prototype, "doubleClickToFocus", 2);
|
|
74213
|
-
|
|
74215
|
+
Ui([
|
|
74214
74216
|
S()
|
|
74215
74217
|
], Jt.prototype, "clickBackgroundToFitScene", 2);
|
|
74216
|
-
|
|
74218
|
+
Ui([
|
|
74217
74219
|
S()
|
|
74218
74220
|
], Jt.prototype, "targetLerpDuration", 2);
|
|
74219
74221
|
var IdA = Object.defineProperty, odA = Object.getOwnPropertyDescriptor, Ro = (g, A, e, t) => {
|
|
@@ -74476,7 +74478,7 @@ const Up = (Gm = class extends FA {
|
|
|
74476
74478
|
if (typeof e._transparent == "boolean")
|
|
74477
74479
|
return e._transparent;
|
|
74478
74480
|
const t = e.environmentBlendMode;
|
|
74479
|
-
BB &&
|
|
74481
|
+
BB && vi("Environment blend mode: " + t + " on " + navigator.userAgent);
|
|
74480
74482
|
let i = t === "additive" || t === "alpha-blend";
|
|
74481
74483
|
return A.isInAR && t === "opaque" && ((o = navigator.userAgent) != null && o.includes("OculusBrowser") || (s = navigator.userAgent) != null && s.includes("Mozilla") && ((n = navigator.userAgent) != null && n.includes("Mobile WebXRViewer/v2"))) && (i = !0), e._transparent = i, i;
|
|
74482
74484
|
}
|
|
@@ -74579,7 +74581,7 @@ class qQ extends FA {
|
|
|
74579
74581
|
e && (e.removeFromParent(), e.filter && e.filter.disconnect(), e.gain && e.gain.disconnect());
|
|
74580
74582
|
}
|
|
74581
74583
|
}
|
|
74582
|
-
class adA extends
|
|
74584
|
+
class adA extends Si {
|
|
74583
74585
|
constructor(A, e = 1, t = 16, i = 2) {
|
|
74584
74586
|
const I = new de(), o = t + i * 2, s = new Float32Array((o * 3 + 3) * 3);
|
|
74585
74587
|
I.setAttribute("position", new jA(s, 3));
|
|
@@ -80272,7 +80274,7 @@ class Cc extends FA {
|
|
|
80272
80274
|
Tc && console.warn("Button Up", (t = this.animationTriggers) == null ? void 0 : t.highlightedTrigger, this.animator, this._isHovered), this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this._isHovered ? this.animationTriggers.highlightedTrigger : this.animationTriggers.normalTrigger) : this.transition === 1 && this.colors && ((i = this._image) == null || i.setState(this._isHovered ? "hovered" : "normal")));
|
|
80273
80275
|
}
|
|
80274
80276
|
onPointerClick(e) {
|
|
80275
|
-
if (this.interactable && !(e.button !== 0 && e.event.pointerType === Zv.Mouse) && (Tc && (console.warn("Button Click", this.onClick),
|
|
80277
|
+
if (this.interactable && !(e.button !== 0 && e.event.pointerType === Zv.Mouse) && (Tc && (console.warn("Button Click", this.onClick), vi("CLICKED button " + this.name + " at " + this.context.time.frameCount)), this.onClick && this.onClick.listenerCount > 0 && (this.onClick.invoke(), e.use(), Tc))) {
|
|
80276
80278
|
const t = this.gameObject.worldPosition;
|
|
80277
80279
|
t.add(this.gameObject.worldUp.multiplyScalar(1 + Math.random() * 0.5)), ye.DrawLabel(t, "CLICK:" + Date.now(), 0.1, 1 + Math.random() * 0.5);
|
|
80278
80280
|
}
|
|
@@ -80856,7 +80858,7 @@ LL([
|
|
|
80856
80858
|
LL([
|
|
80857
80859
|
S()
|
|
80858
80860
|
], el.prototype, "blocksRaycasts", 2);
|
|
80859
|
-
var XuA = Object.defineProperty, zuA = Object.getOwnPropertyDescriptor,
|
|
80861
|
+
var XuA = Object.defineProperty, zuA = Object.getOwnPropertyDescriptor, _i = (g, A, e, t) => {
|
|
80860
80862
|
for (var i = t > 1 ? void 0 : t ? zuA(A, e) : A, I = g.length - 1, o; I >= 0; I--)
|
|
80861
80863
|
(o = g[I]) && (i = (t ? o(A, e, i) : o(i)) || i);
|
|
80862
80864
|
return t && i && XuA(A, e, i), i;
|
|
@@ -80918,16 +80920,16 @@ class Ld extends FA {
|
|
|
80918
80920
|
}
|
|
80919
80921
|
}
|
|
80920
80922
|
}
|
|
80921
|
-
|
|
80923
|
+
_i([
|
|
80922
80924
|
S(pA)
|
|
80923
80925
|
], Ld.prototype, "object", 2);
|
|
80924
|
-
|
|
80926
|
+
_i([
|
|
80925
80927
|
S(pA)
|
|
80926
80928
|
], Ld.prototype, "target", 2);
|
|
80927
|
-
|
|
80929
|
+
_i([
|
|
80928
80930
|
S()
|
|
80929
80931
|
], Ld.prototype, "duration", 2);
|
|
80930
|
-
|
|
80932
|
+
_i([
|
|
80931
80933
|
S()
|
|
80932
80934
|
], Ld.prototype, "relativeMotion", 2);
|
|
80933
80935
|
var km;
|
|
@@ -81028,17 +81030,17 @@ const ha = (km = class extends FA {
|
|
|
81028
81030
|
}
|
|
81029
81031
|
}, B(km, "_materialTriggersPerId", {}), B(km, "variantSwitchIndex", 0), km);
|
|
81030
81032
|
let uy = ha;
|
|
81031
|
-
|
|
81033
|
+
_i([
|
|
81032
81034
|
S(Ye)
|
|
81033
81035
|
], uy.prototype, "materialToSwitch", 2);
|
|
81034
|
-
|
|
81036
|
+
_i([
|
|
81035
81037
|
S(Ye)
|
|
81036
81038
|
], uy.prototype, "variantMaterial", 2);
|
|
81037
|
-
|
|
81039
|
+
_i([
|
|
81038
81040
|
S()
|
|
81039
81041
|
], uy.prototype, "fadeDuration", 2);
|
|
81040
81042
|
var Yh;
|
|
81041
|
-
const
|
|
81043
|
+
const bi = (Yh = class extends FA {
|
|
81042
81044
|
constructor() {
|
|
81043
81045
|
super(...arguments);
|
|
81044
81046
|
B(this, "target");
|
|
@@ -81062,7 +81064,7 @@ const Ki = (Yh = class extends FA {
|
|
|
81062
81064
|
e.uuid === this.gameObject.uuid && (this.selfModel = e, this.selfModelClone = e.clone());
|
|
81063
81065
|
}
|
|
81064
81066
|
beforeCreateDocument() {
|
|
81065
|
-
this.target && (this.gameObject[
|
|
81067
|
+
this.target && (this.gameObject[bi.wasVisible] === void 0 && (this.gameObject[bi.wasVisible] = this.gameObject.activeSelf), this.target[bi.wasVisible] === void 0 && (this.target[bi.wasVisible] = this.target.activeSelf), this.stateBeforeCreatingDocument = this.gameObject[bi.wasVisible], this.targetStateBeforeCreatingDocument = this.target[bi.wasVisible], this.gameObject.visible = !0, this.target.visible = !0);
|
|
81066
81068
|
}
|
|
81067
81069
|
afterCreateDocument(A, e) {
|
|
81068
81070
|
if (!this.target)
|
|
@@ -81075,16 +81077,16 @@ const Ki = (Yh = class extends FA {
|
|
|
81075
81077
|
if (I = !this.targetStateBeforeCreatingDocument, !this.selfModelClone.geometry)
|
|
81076
81078
|
(!this.selfModel.parent || this.selfModel.parent.isEmpty()) && cX.createEmptyParent(this.selfModel), this.toggleModel = this.selfModel.deepClone(), this.toggleModel.name += "_toggle", this.selfModel.parent.add(this.toggleModel);
|
|
81077
81079
|
else {
|
|
81078
|
-
if (!this.gameObject[
|
|
81080
|
+
if (!this.gameObject[bi.toggleClone]) {
|
|
81079
81081
|
const n = this.selfModelClone.clone();
|
|
81080
|
-
n.matrix.identity(), n.name += "_toggle" +
|
|
81082
|
+
n.matrix.identity(), n.name += "_toggle" + bi.clonedToggleIndex++, t.add(n), this.gameObject[bi.toggleClone] = n, console.warn("USDZExport: Toggle " + this.gameObject.name + " doesn't have geometry. It will be deep cloned and nested behaviours will likely not work.");
|
|
81081
81083
|
}
|
|
81082
|
-
const s = this.gameObject[
|
|
81083
|
-
if (!this.gameObject[
|
|
81084
|
+
const s = this.gameObject[bi.toggleClone];
|
|
81085
|
+
if (!this.gameObject[bi.reverseToggleClone]) {
|
|
81084
81086
|
const n = this.selfModelClone.clone();
|
|
81085
|
-
n.matrix.identity(), n.name += "_toggleReverse" +
|
|
81087
|
+
n.matrix.identity(), n.name += "_toggleReverse" + bi.clonedToggleIndex++, t.add(n), this.gameObject[bi.reverseToggleClone] = n;
|
|
81086
81088
|
}
|
|
81087
|
-
this.toggleModel = this.gameObject[
|
|
81089
|
+
this.toggleModel = this.gameObject[bi.reverseToggleClone], (!this.toggleModel.geometry || !s.geometry) && console.error("triggers without childs and without geometry won't work!", this, t.geometry), i = s, t.geometry = null, t.material = null;
|
|
81088
81090
|
}
|
|
81089
81091
|
if (this.toggleModel) {
|
|
81090
81092
|
if (this.toggleOnClick) {
|
|
@@ -81118,20 +81120,20 @@ const Ki = (Yh = class extends FA {
|
|
|
81118
81120
|
}
|
|
81119
81121
|
}
|
|
81120
81122
|
afterSerialize(A, e) {
|
|
81121
|
-
this.gameObject[
|
|
81123
|
+
this.gameObject[bi.wasVisible] !== void 0 && (this.gameObject.visible = this.gameObject[bi.wasVisible], delete this.gameObject[bi.wasVisible]), this.target && this.target[bi.wasVisible] !== void 0 && (this.target.visible = this.target[bi.wasVisible], delete this.target[bi.wasVisible]), delete this.gameObject[bi.toggleClone], delete this.gameObject[bi.reverseToggleClone];
|
|
81122
81124
|
}
|
|
81123
81125
|
}, B(Yh, "clonedToggleIndex", 0), B(Yh, "wasVisible", Symbol("usdz_SetActiveOnClick_wasVisible")), B(Yh, "toggleClone", Symbol("clone for toggling")), B(Yh, "reverseToggleClone", Symbol("clone for reverse toggling")), Yh);
|
|
81124
|
-
let qd =
|
|
81125
|
-
|
|
81126
|
+
let qd = bi;
|
|
81127
|
+
_i([
|
|
81126
81128
|
S(pA)
|
|
81127
81129
|
], qd.prototype, "target", 2);
|
|
81128
|
-
|
|
81130
|
+
_i([
|
|
81129
81131
|
S()
|
|
81130
81132
|
], qd.prototype, "toggleOnClick", 2);
|
|
81131
|
-
|
|
81133
|
+
_i([
|
|
81132
81134
|
S()
|
|
81133
81135
|
], qd.prototype, "targetState", 2);
|
|
81134
|
-
|
|
81136
|
+
_i([
|
|
81135
81137
|
S()
|
|
81136
81138
|
], qd.prototype, "hideSelf", 2);
|
|
81137
81139
|
class $X extends FA {
|
|
@@ -81175,13 +81177,13 @@ class py extends FA {
|
|
|
81175
81177
|
afterCreateDocument(e, t) {
|
|
81176
81178
|
}
|
|
81177
81179
|
}
|
|
81178
|
-
|
|
81180
|
+
_i([
|
|
81179
81181
|
S()
|
|
81180
81182
|
], py.prototype, "target", 2);
|
|
81181
|
-
|
|
81183
|
+
_i([
|
|
81182
81184
|
S()
|
|
81183
81185
|
], py.prototype, "duration", 2);
|
|
81184
|
-
|
|
81186
|
+
_i([
|
|
81185
81187
|
S()
|
|
81186
81188
|
], py.prototype, "motionType", 2);
|
|
81187
81189
|
class tl extends FA {
|
|
@@ -81245,13 +81247,13 @@ class tl extends FA {
|
|
|
81245
81247
|
}
|
|
81246
81248
|
}
|
|
81247
81249
|
}
|
|
81248
|
-
|
|
81250
|
+
_i([
|
|
81249
81251
|
S(ji)
|
|
81250
81252
|
], tl.prototype, "target", 2);
|
|
81251
|
-
|
|
81253
|
+
_i([
|
|
81252
81254
|
S(URL)
|
|
81253
81255
|
], tl.prototype, "clip", 2);
|
|
81254
|
-
|
|
81256
|
+
_i([
|
|
81255
81257
|
S()
|
|
81256
81258
|
], tl.prototype, "toggleOnClick", 2);
|
|
81257
81259
|
var Mm;
|
|
@@ -81426,10 +81428,10 @@ const Ea = (Mm = class extends FA {
|
|
|
81426
81428
|
}
|
|
81427
81429
|
}, B(Mm, "animationActions", []), B(Mm, "rootsWithExclusivePlayback", /* @__PURE__ */ new Set()), Mm);
|
|
81428
81430
|
let rd = Ea;
|
|
81429
|
-
|
|
81431
|
+
_i([
|
|
81430
81432
|
S(XI)
|
|
81431
81433
|
], rd.prototype, "animator", 2);
|
|
81432
|
-
|
|
81434
|
+
_i([
|
|
81433
81435
|
S()
|
|
81434
81436
|
], rd.prototype, "stateName", 2);
|
|
81435
81437
|
class fy extends FA {
|
|
@@ -81442,7 +81444,7 @@ class fy extends FA {
|
|
|
81442
81444
|
getDuration() {
|
|
81443
81445
|
}
|
|
81444
81446
|
}
|
|
81445
|
-
|
|
81447
|
+
_i([
|
|
81446
81448
|
S(pA)
|
|
81447
81449
|
], fy.prototype, "target", 2);
|
|
81448
81450
|
class uM extends FA {
|
|
@@ -81451,7 +81453,7 @@ class uM extends FA {
|
|
|
81451
81453
|
B(this, "target");
|
|
81452
81454
|
}
|
|
81453
81455
|
}
|
|
81454
|
-
|
|
81456
|
+
_i([
|
|
81455
81457
|
S(fy)
|
|
81456
81458
|
], uM.prototype, "target", 2);
|
|
81457
81459
|
class pM extends fy {
|
|
@@ -81472,10 +81474,10 @@ class pM extends fy {
|
|
|
81472
81474
|
return this.duration;
|
|
81473
81475
|
}
|
|
81474
81476
|
}
|
|
81475
|
-
|
|
81477
|
+
_i([
|
|
81476
81478
|
S()
|
|
81477
81479
|
], pM.prototype, "type", 2);
|
|
81478
|
-
|
|
81480
|
+
_i([
|
|
81479
81481
|
S()
|
|
81480
81482
|
], pM.prototype, "duration", 2);
|
|
81481
81483
|
class Az extends uM {
|
|
@@ -82541,7 +82543,7 @@ class SpA {
|
|
|
82541
82543
|
this.objectToWorldMatrix.copy(A.matrixWorld), IG(this.objectToWorldMatrix, this.objectToWorld), this.worldToObjectMatrix.copy(A.matrixWorld).invert(), IG(this.worldToObjectMatrix, this.worldToObject);
|
|
82542
82544
|
}
|
|
82543
82545
|
}
|
|
82544
|
-
const
|
|
82546
|
+
const yi = class extends Ek {
|
|
82545
82547
|
constructor(e, ...t) {
|
|
82546
82548
|
super(...t);
|
|
82547
82549
|
B(this, "identifier");
|
|
@@ -82605,7 +82607,7 @@ const wi = class extends Ek {
|
|
|
82605
82607
|
}
|
|
82606
82608
|
onUpdateUniforms(e, t) {
|
|
82607
82609
|
const i = Ke.Current;
|
|
82608
|
-
if (e && (
|
|
82610
|
+
if (e && (yi.viewProjection && this.uniforms[this._viewProjectionName] && (yi.viewProjection.copy(e.projectionMatrix).multiply(e.matrixWorldInverse), IG(yi.viewProjection, yi._viewProjectionValues)), yi.viewMatrix && this.uniforms[this._viewMatrixName] && (yi.viewMatrix.copy(e.matrixWorldInverse), IG(yi.viewMatrix, yi._viewMatrixValues)), this.uniforms[yi._worldSpaceCameraPosName] && yi._worldSpaceCameraPos.setFromMatrixPosition(e.matrixWorld)), this.uniforms._TimeParameters && (this.uniforms._TimeParameters.value = i.sceneLighting.timeVec4), this.uniforms._Time) {
|
|
82609
82611
|
const n = this.uniforms._Time.value;
|
|
82610
82612
|
n.x = i.sceneLighting.timeVec4.x / 20, n.y = i.sceneLighting.timeVec4.x, n.z = i.sceneLighting.timeVec4.x * 2, n.w = i.sceneLighting.timeVec4.x * 3;
|
|
82611
82613
|
}
|
|
@@ -82623,12 +82625,12 @@ const wi = class extends Ek {
|
|
|
82623
82625
|
}
|
|
82624
82626
|
const I = i.mainLight;
|
|
82625
82627
|
if (I) {
|
|
82626
|
-
const n = Te(I.gameObject,
|
|
82627
|
-
this.uniforms._MainLightPosition = { value: n.normalize() },
|
|
82628
|
+
const n = Te(I.gameObject, yi._mainLightPosition);
|
|
82629
|
+
this.uniforms._MainLightPosition = { value: n.normalize() }, yi._mainLightColor.set(I.color.r, I.color.g, I.color.b, 0), this.uniforms._MainLightColor = { value: yi._mainLightColor };
|
|
82628
82630
|
const a = I.intensity;
|
|
82629
|
-
|
|
82631
|
+
yi._lightData.z = a, this.uniforms.unity_LightData = { value: yi._lightData };
|
|
82630
82632
|
}
|
|
82631
|
-
if (e && (
|
|
82633
|
+
if (e && (yi.viewProjection && this.uniforms[this._viewProjectionName] && (this.uniforms[this._viewProjectionName].value = yi._viewProjectionValues), yi.viewMatrix && this.uniforms[this._viewMatrixName] && (this.uniforms[this._viewMatrixName].value = yi._viewMatrixValues), this.uniforms[yi._worldSpaceCameraPosName] && (this.uniforms[yi._worldSpaceCameraPosName] = { value: yi._worldSpaceCameraPos }), i.mainCameraComponent)) {
|
|
82632
82634
|
if (this.uniforms._ProjectionParams) {
|
|
82633
82635
|
const n = this.uniforms._ProjectionParams.value;
|
|
82634
82636
|
n.x = 1, n.y = i.mainCameraComponent.nearClipPlane, n.z = i.mainCameraComponent.farClipPlane, n.w = 1 / n.z, this.uniforms._ProjectionParams.value = n;
|
|
@@ -82656,7 +82658,7 @@ const wi = class extends Ek {
|
|
|
82656
82658
|
this.uniformsNeedUpdate = !0;
|
|
82657
82659
|
}
|
|
82658
82660
|
};
|
|
82659
|
-
let Ls =
|
|
82661
|
+
let Ls = yi;
|
|
82660
82662
|
B(Ls, "viewProjection", new QA()), B(Ls, "_viewProjectionValues", []), B(Ls, "viewMatrix", new QA()), B(Ls, "_viewMatrixValues", []), B(Ls, "_worldSpaceCameraPosName", "_WorldSpaceCameraPos"), B(Ls, "_worldSpaceCameraPos", new m()), B(Ls, "_mainLightColor", new $A()), B(Ls, "_mainLightPosition", new m()), B(Ls, "_lightData", new $A());
|
|
82661
82663
|
class GpA {
|
|
82662
82664
|
constructor(A, e) {
|
|
@@ -82770,7 +82772,7 @@ class GpA {
|
|
|
82770
82772
|
l.side = yt;
|
|
82771
82773
|
break;
|
|
82772
82774
|
case 1:
|
|
82773
|
-
l.side =
|
|
82775
|
+
l.side = Gi;
|
|
82774
82776
|
break;
|
|
82775
82777
|
case 2:
|
|
82776
82778
|
l.side = ag;
|
|
@@ -84654,7 +84656,7 @@ nA([
|
|
|
84654
84656
|
nA([
|
|
84655
84657
|
S()
|
|
84656
84658
|
], Yt.prototype, "strengthZMultiplier", 2);
|
|
84657
|
-
class
|
|
84659
|
+
class Ti {
|
|
84658
84660
|
constructor() {
|
|
84659
84661
|
B(this, "enabled");
|
|
84660
84662
|
B(this, "attachRibbonToTransform", !1);
|
|
@@ -84688,64 +84690,64 @@ class Hi {
|
|
|
84688
84690
|
}
|
|
84689
84691
|
nA([
|
|
84690
84692
|
S()
|
|
84691
|
-
],
|
|
84693
|
+
], Ti.prototype, "enabled", 2);
|
|
84692
84694
|
nA([
|
|
84693
84695
|
S()
|
|
84694
|
-
],
|
|
84696
|
+
], Ti.prototype, "attachRibbonToTransform", 2);
|
|
84695
84697
|
nA([
|
|
84696
84698
|
S(Xo)
|
|
84697
|
-
],
|
|
84699
|
+
], Ti.prototype, "colorOverLifetime", 2);
|
|
84698
84700
|
nA([
|
|
84699
84701
|
S(Xo)
|
|
84700
|
-
],
|
|
84702
|
+
], Ti.prototype, "colorOverTrail", 2);
|
|
84701
84703
|
nA([
|
|
84702
84704
|
S()
|
|
84703
|
-
],
|
|
84705
|
+
], Ti.prototype, "dieWithParticles", 2);
|
|
84704
84706
|
nA([
|
|
84705
84707
|
S()
|
|
84706
|
-
],
|
|
84708
|
+
], Ti.prototype, "inheritParticleColor", 2);
|
|
84707
84709
|
nA([
|
|
84708
84710
|
S(ue)
|
|
84709
|
-
],
|
|
84711
|
+
], Ti.prototype, "lifetime", 2);
|
|
84710
84712
|
nA([
|
|
84711
84713
|
S()
|
|
84712
|
-
],
|
|
84714
|
+
], Ti.prototype, "lifetimeMultiplier", 2);
|
|
84713
84715
|
nA([
|
|
84714
84716
|
S()
|
|
84715
|
-
],
|
|
84717
|
+
], Ti.prototype, "minVertexDistance", 2);
|
|
84716
84718
|
nA([
|
|
84717
84719
|
S()
|
|
84718
|
-
],
|
|
84720
|
+
], Ti.prototype, "mode", 2);
|
|
84719
84721
|
nA([
|
|
84720
84722
|
S()
|
|
84721
|
-
],
|
|
84723
|
+
], Ti.prototype, "ratio", 2);
|
|
84722
84724
|
nA([
|
|
84723
84725
|
S()
|
|
84724
|
-
],
|
|
84726
|
+
], Ti.prototype, "ribbonCount", 2);
|
|
84725
84727
|
nA([
|
|
84726
84728
|
S()
|
|
84727
|
-
],
|
|
84729
|
+
], Ti.prototype, "shadowBias", 2);
|
|
84728
84730
|
nA([
|
|
84729
84731
|
S()
|
|
84730
|
-
],
|
|
84732
|
+
], Ti.prototype, "sizeAffectsLifetime", 2);
|
|
84731
84733
|
nA([
|
|
84732
84734
|
S()
|
|
84733
|
-
],
|
|
84735
|
+
], Ti.prototype, "sizeAffectsWidth", 2);
|
|
84734
84736
|
nA([
|
|
84735
84737
|
S()
|
|
84736
|
-
],
|
|
84738
|
+
], Ti.prototype, "splitSubEmitterRibbons", 2);
|
|
84737
84739
|
nA([
|
|
84738
84740
|
S()
|
|
84739
|
-
],
|
|
84741
|
+
], Ti.prototype, "textureMode", 2);
|
|
84740
84742
|
nA([
|
|
84741
84743
|
S(ue)
|
|
84742
|
-
],
|
|
84744
|
+
], Ti.prototype, "widthOverTrail", 2);
|
|
84743
84745
|
nA([
|
|
84744
84746
|
S()
|
|
84745
|
-
],
|
|
84747
|
+
], Ti.prototype, "widthOverTrailMultiplier", 2);
|
|
84746
84748
|
nA([
|
|
84747
84749
|
S()
|
|
84748
|
-
],
|
|
84750
|
+
], Ti.prototype, "worldSpace", 2);
|
|
84749
84751
|
class Ag {
|
|
84750
84752
|
constructor() {
|
|
84751
84753
|
B(this, "enabled");
|
|
@@ -85413,7 +85415,7 @@ const Qz = (Ib = class extends FA {
|
|
|
85413
85415
|
depthWrite: !0,
|
|
85414
85416
|
stencilWrite: !0,
|
|
85415
85417
|
colorWrite: !1,
|
|
85416
|
-
side:
|
|
85418
|
+
side: Gi
|
|
85417
85419
|
})).translateY(-1e-4), this.occluderMesh.renderOrder = -100, this.occluderMesh.layers.set(2), this.shadowsRoot.add(this.occluderMesh), this.blurPlane = new EA(A), this.blurPlane.visible = !1, this.shadowGroup.add(this.blurPlane);
|
|
85418
85420
|
const t = 0, i = 1;
|
|
85419
85421
|
this.shadowCamera = new Za(-1 / 2, 1 / 2, 1 / 2, -1 / 2, t, i), this.shadowCamera.layers.enableAll(), this.shadowCamera.rotation.x = Math.PI / 2, this.shadowGroup.add(this.shadowCamera), this.depthMaterial = new qD(), this.depthMaterial.userData.darkness = { value: this.darkness }, this.depthMaterial.blending = iJ, this.depthMaterial.blendEquation = yS, this.depthMaterial.onBeforeCompile = (I) => {
|
|
@@ -85592,7 +85594,7 @@ const CO = [], sF = new Array(), E_ = class {
|
|
|
85592
85594
|
const A = "https://oculus.com/open_url/?url=", e = document.createElement("button");
|
|
85593
85595
|
return this._sendToQuestButton = e, e.dataset.needle = "webxr-sendtoquest-button", e.innerText = "Open on Quest", e.prepend(TI("share_windows")), e.title = "Click to send this page to the Oculus Browser on your Quest", e.addEventListener("click", () => {
|
|
85594
85596
|
const i = encodeURIComponent(window.location.href), I = A + i;
|
|
85595
|
-
window.open(I) == null &&
|
|
85597
|
+
window.open(I) == null && vi("This page doesn't allow popups. Please paste " + I + " into your browser.");
|
|
85596
85598
|
}), this.listenToXRSessionState(e), this.hideElementDuringXRSession(e), GE() || (t = navigator.xr) == null || t.addEventListener("devicechange", () => {
|
|
85597
85599
|
var i;
|
|
85598
85600
|
(i = navigator.xr) != null && i.isSessionSupported("immersive-vr") ? e.style.display = "none" : e.style.display = "";
|
|
@@ -88785,12 +88787,12 @@ const wx = (Fm = class extends FA {
|
|
|
88785
88787
|
onEnable() {
|
|
88786
88788
|
var t;
|
|
88787
88789
|
const A = zQ(), e = Xp();
|
|
88788
|
-
(Ks || A && e) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = uO(this.context), this.link.addEventListener("message", this.lastCallback)), Ks &&
|
|
88790
|
+
(Ks || A && e) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = uO(this.context), this.link.addEventListener("message", this.lastCallback)), Ks && vi("USDZ Exporter enabled: " + this.name), (t = document.getElementById("open-in-ar")) == null || t.addEventListener("click", this.onClickedOpenInARElement);
|
|
88789
88791
|
}
|
|
88790
88792
|
/** @internal */
|
|
88791
88793
|
onDisable() {
|
|
88792
88794
|
var A, e, t;
|
|
88793
|
-
(A = this.button) == null || A.remove(), (e = this.link) == null || e.removeEventListener("message", this.lastCallback), Ks &&
|
|
88795
|
+
(A = this.button) == null || A.remove(), (e = this.link) == null || e.removeEventListener("message", this.lastCallback), Ks && vi("USDZ Exporter disabled: " + this.name), (t = document.getElementById("open-in-ar")) == null || t.removeEventListener("click", this.onClickedOpenInARElement);
|
|
88794
88796
|
}
|
|
88795
88797
|
/**
|
|
88796
88798
|
* Creates an USDZ file from the current scene or assigned objectToExport and opens it in QuickLook.
|
|
@@ -88858,7 +88860,7 @@ const wx = (Fm = class extends FA {
|
|
|
88858
88860
|
}));
|
|
88859
88861
|
}
|
|
88860
88862
|
}
|
|
88861
|
-
Ks &&
|
|
88863
|
+
Ks && vi("Progressive Loading: " + i.length), await Promise.all(i), Ks && vi("Progressive Loading: done"), Bt.end("export-usdz-textures");
|
|
88862
88864
|
const o = HI.Global.Mask;
|
|
88863
88865
|
HI.Global.Set(Pr.AR);
|
|
88864
88866
|
const s = new IEA(), n = new rM(this.quickLookCompatible), a = [n, ...this.extensions], r = { self: this, exporter: s, extensions: a, object: A };
|
|
@@ -88925,7 +88927,7 @@ const wx = (Fm = class extends FA {
|
|
|
88925
88927
|
const t = new URLSearchParams(this.link.href);
|
|
88926
88928
|
if (t) {
|
|
88927
88929
|
const i = t.get("callToActionURL");
|
|
88928
|
-
Ks &&
|
|
88930
|
+
Ks && vi("Quicklook url: " + i), i && (KQ() ? globalThis.open(i, "_blank") : console.warn("Quicklook closed: custom redirects require a Needle Engine Pro license: https://needle.tools/pricing", i));
|
|
88929
88931
|
}
|
|
88930
88932
|
}
|
|
88931
88933
|
}
|
|
@@ -89654,7 +89656,7 @@ const d_ = class {
|
|
|
89654
89656
|
B(this, "_requireUpdateGroundPlane", !0);
|
|
89655
89657
|
B(this, "_didDragOnGroundPlaneLastFrame", !1);
|
|
89656
89658
|
this._camera = A;
|
|
89657
|
-
const e = new
|
|
89659
|
+
const e = new Si(d_.geometry), t = e.material;
|
|
89658
89660
|
t.color = new yA(0.4, 0.4, 0.4), e.layers.set(2), e.name = "line", e.scale.y = 1, this._groundLine = e;
|
|
89659
89661
|
const i = new En(0.5, 22, 22), I = new At({ color: t.color }), o = new EA(i, I);
|
|
89660
89662
|
o.visible = !1, o.layers.set(2), this._groundMarker = o;
|
|
@@ -92693,7 +92695,7 @@ class ky extends FA {
|
|
|
92693
92695
|
}
|
|
92694
92696
|
this._validateUrl();
|
|
92695
92697
|
let e = this.url;
|
|
92696
|
-
switch (!e.startsWith("mailto:") && e.includes("@") && (e = "mailto:" + e), se() &&
|
|
92698
|
+
switch (!e.startsWith("mailto:") && e.includes("@") && (e = "mailto:" + e), se() && vi("Open URL: " + e), this.mode) {
|
|
92697
92699
|
case 0:
|
|
92698
92700
|
Xp(), globalThis.open(e, "_blank");
|
|
92699
92701
|
break;
|
|
@@ -97283,7 +97285,7 @@ Ry.addSignature([hA.Boolean], [hA.Boolean], function(g, A, e, t) {
|
|
|
97283
97285
|
t[0] = e[0];
|
|
97284
97286
|
});
|
|
97285
97287
|
console.log("%c Particle system powered by three.quarks. https://quarks.art/", "font-size: 16px; font-weight: bold;");
|
|
97286
|
-
var EwA = Object.defineProperty, dwA = Object.getOwnPropertyDescriptor,
|
|
97288
|
+
var EwA = Object.defineProperty, dwA = Object.getOwnPropertyDescriptor, Hi = (g, A, e, t) => {
|
|
97287
97289
|
for (var i = t > 1 ? void 0 : t ? dwA(A, e) : A, I = g.length - 1, o; I >= 0; I--)
|
|
97288
97290
|
(o = g[I]) && (i = (t ? o(A, e, i) : o(i)) || i);
|
|
97289
97291
|
return t && i && EwA(A, e, i), i;
|
|
@@ -97316,7 +97318,7 @@ class oa extends FA {
|
|
|
97316
97318
|
}
|
|
97317
97319
|
getMaterial(e = !1) {
|
|
97318
97320
|
let t = e === !0 && this.trailMaterial ? this.trailMaterial : this.particleMaterial;
|
|
97319
|
-
return t && e && t.side === ag && (t = t.clone(), t.side =
|
|
97321
|
+
return t && e && t.side === ag && (t = t.clone(), t.side = Gi, e ? this.trailMaterial = t : this.particleMaterial = t), t && !uwA && t._didRequestTextureLOD === void 0 && (t._didRequestTextureLOD = 0, pwA && console.log("Load material LOD", t.name), wt.assignTextureLOD(t, 0)), t;
|
|
97320
97322
|
}
|
|
97321
97323
|
getMesh(e) {
|
|
97322
97324
|
let t = null;
|
|
@@ -97329,28 +97331,28 @@ class oa extends FA {
|
|
|
97329
97331
|
return new EA(t, this.getMaterial());
|
|
97330
97332
|
}
|
|
97331
97333
|
}
|
|
97332
|
-
|
|
97334
|
+
Hi([
|
|
97333
97335
|
S()
|
|
97334
97336
|
], oa.prototype, "renderMode", 2);
|
|
97335
|
-
|
|
97337
|
+
Hi([
|
|
97336
97338
|
S(Ye)
|
|
97337
97339
|
], oa.prototype, "particleMaterial", 2);
|
|
97338
|
-
|
|
97340
|
+
Hi([
|
|
97339
97341
|
S(Ye)
|
|
97340
97342
|
], oa.prototype, "trailMaterial", 2);
|
|
97341
|
-
|
|
97343
|
+
Hi([
|
|
97342
97344
|
S()
|
|
97343
97345
|
], oa.prototype, "maxParticleSize", 2);
|
|
97344
|
-
|
|
97346
|
+
Hi([
|
|
97345
97347
|
S()
|
|
97346
97348
|
], oa.prototype, "minParticleSize", 2);
|
|
97347
|
-
|
|
97349
|
+
Hi([
|
|
97348
97350
|
S()
|
|
97349
97351
|
], oa.prototype, "velocityScale", 2);
|
|
97350
|
-
|
|
97352
|
+
Hi([
|
|
97351
97353
|
S()
|
|
97352
97354
|
], oa.prototype, "cameraVelocityScale", 2);
|
|
97353
|
-
|
|
97355
|
+
Hi([
|
|
97354
97356
|
S()
|
|
97355
97357
|
], oa.prototype, "lengthScale", 2);
|
|
97356
97358
|
class tm {
|
|
@@ -98016,49 +98018,49 @@ const lS = class extends FA {
|
|
|
98016
98018
|
}
|
|
98017
98019
|
};
|
|
98018
98020
|
let Lg = lS;
|
|
98019
|
-
|
|
98021
|
+
Hi([
|
|
98020
98022
|
S(wM)
|
|
98021
98023
|
], Lg.prototype, "colorOverLifetime", 2);
|
|
98022
|
-
|
|
98024
|
+
Hi([
|
|
98023
98025
|
S(Ao)
|
|
98024
98026
|
], Lg.prototype, "main", 2);
|
|
98025
|
-
|
|
98027
|
+
Hi([
|
|
98026
98028
|
S(wC)
|
|
98027
98029
|
], Lg.prototype, "emission", 2);
|
|
98028
|
-
|
|
98030
|
+
Hi([
|
|
98029
98031
|
S(ml)
|
|
98030
98032
|
], Lg.prototype, "sizeOverLifetime", 2);
|
|
98031
|
-
|
|
98033
|
+
Hi([
|
|
98032
98034
|
S($i)
|
|
98033
98035
|
], Lg.prototype, "shape", 2);
|
|
98034
|
-
|
|
98036
|
+
Hi([
|
|
98035
98037
|
S(Yt)
|
|
98036
98038
|
], Lg.prototype, "noise", 2);
|
|
98037
|
-
|
|
98038
|
-
S(
|
|
98039
|
+
Hi([
|
|
98040
|
+
S(Ti)
|
|
98039
98041
|
], Lg.prototype, "trails", 2);
|
|
98040
|
-
|
|
98042
|
+
Hi([
|
|
98041
98043
|
S(Ag)
|
|
98042
98044
|
], Lg.prototype, "velocityOverLifetime", 2);
|
|
98043
|
-
|
|
98045
|
+
Hi([
|
|
98044
98046
|
S(qg)
|
|
98045
98047
|
], Lg.prototype, "limitVelocityOverLifetime", 2);
|
|
98046
|
-
|
|
98048
|
+
Hi([
|
|
98047
98049
|
S(Sl)
|
|
98048
98050
|
], Lg.prototype, "inheritVelocity", 2);
|
|
98049
|
-
|
|
98051
|
+
Hi([
|
|
98050
98052
|
S(Td)
|
|
98051
98053
|
], Lg.prototype, "colorBySpeed", 2);
|
|
98052
|
-
|
|
98054
|
+
Hi([
|
|
98053
98055
|
S(eo)
|
|
98054
98056
|
], Lg.prototype, "textureSheetAnimation", 2);
|
|
98055
|
-
|
|
98057
|
+
Hi([
|
|
98056
98058
|
S(Ia)
|
|
98057
98059
|
], Lg.prototype, "rotationOverLifetime", 2);
|
|
98058
|
-
|
|
98060
|
+
Hi([
|
|
98059
98061
|
S(pn)
|
|
98060
98062
|
], Lg.prototype, "rotationBySpeed", 2);
|
|
98061
|
-
|
|
98063
|
+
Hi([
|
|
98062
98064
|
S(zo)
|
|
98063
98065
|
], Lg.prototype, "sizeBySpeed", 2);
|
|
98064
98066
|
class fG {
|
|
@@ -100118,7 +100120,7 @@ class sI extends FA {
|
|
|
100118
100120
|
}
|
|
100119
100121
|
/** @internal */
|
|
100120
100122
|
async onEnable() {
|
|
100121
|
-
if (globalThis.addEventListener("popstate", this.onPopState), this.context.input.addEventListener(
|
|
100123
|
+
if (globalThis.addEventListener("popstate", this.onPopState), this.context.input.addEventListener(xi.KeyDown, this.onInputKeyDown), this.context.input.addEventListener(xi.PointerMove, this.onInputPointerMove), this.context.input.addEventListener(xi.PointerUp, this.onInputPointerUp), this._engineElementOverserver || (this._engineElementOverserver = new MutationObserver((e) => {
|
|
100122
100124
|
for (const t of e)
|
|
100123
100125
|
if (t.type === "attributes" && t.attributeName === hS) {
|
|
100124
100126
|
const i = this.context.domElement.getAttribute(hS);
|
|
@@ -100151,7 +100153,7 @@ class sI extends FA {
|
|
|
100151
100153
|
/** @internal */
|
|
100152
100154
|
onDisable() {
|
|
100153
100155
|
var e;
|
|
100154
|
-
if (globalThis.removeEventListener("popstate", this.onPopState), this.context.input.removeEventListener(
|
|
100156
|
+
if (globalThis.removeEventListener("popstate", this.onPopState), this.context.input.removeEventListener(xi.KeyDown, this.onInputKeyDown), this.context.input.removeEventListener(xi.PointerMove, this.onInputPointerMove), this.context.input.removeEventListener(xi.PointerUp, this.onInputPointerUp), (e = this._preloadScheduler) == null || e.stop(), this._menuButtons) {
|
|
100155
100157
|
for (const t of this._menuButtons)
|
|
100156
100158
|
t.remove();
|
|
100157
100159
|
this._menuButtons = void 0;
|
|
@@ -102301,9 +102303,9 @@ class F0A {
|
|
|
102301
102303
|
i.key === "Escape" && this.spectator.stopSpectating();
|
|
102302
102304
|
});
|
|
102303
102305
|
let t = 0;
|
|
102304
|
-
this.context.input.addEventListener(
|
|
102306
|
+
this.context.input.addEventListener(xi.PointerDown, (i) => {
|
|
102305
102307
|
t = this.context.time.time;
|
|
102306
|
-
}), this.context.input.addEventListener(
|
|
102308
|
+
}), this.context.input.addEventListener(xi.PointerUp, (i) => {
|
|
102307
102309
|
const I = this.context.time.time - t;
|
|
102308
102310
|
I > 1 ? this.spectator.stopSpectating() : this.context.input.getPointerClicked(0) && I < 0.3 && this.trySelectObject();
|
|
102309
102311
|
});
|
|
@@ -102625,7 +102627,7 @@ class tr extends FA {
|
|
|
102625
102627
|
const t = this.getViewOnlyUrl();
|
|
102626
102628
|
t != null && t.length ? navigator.canShare({ url: t }) ? (i = navigator.share({ url: t })) == null || i.catch((I) => {
|
|
102627
102629
|
console.warn(I);
|
|
102628
|
-
}) : (navigator.clipboard.writeText(t),
|
|
102630
|
+
}) : (navigator.clipboard.writeText(t), vi("View only URL copied to clipboard")) : $t("Could not create view only URL");
|
|
102629
102631
|
}, e.title = "Copy the view only URL: A page accessed by the view only URL can not be modified by visiting users.", e.textContent = "Share View URL", e.prepend(TI("visibility"));
|
|
102630
102632
|
}
|
|
102631
102633
|
this.context.menu.appendChild(this._viewOnlyButton);
|
|
@@ -103122,7 +103124,7 @@ class VM extends FA {
|
|
|
103122
103124
|
awake() {
|
|
103123
103125
|
var e;
|
|
103124
103126
|
NF && (console.log("PostprocessingManager Awake", this), console.log("Press P to toggle post processing"), window.addEventListener("keydown", (t) => {
|
|
103125
|
-
t.key === "p" && (this.enabled = !this.enabled,
|
|
103127
|
+
t.key === "p" && (this.enabled = !this.enabled, vi("Toggle PostProcessing " + this.name + ": Enabled=" + this.enabled), this.markDirty());
|
|
103126
103128
|
})), (e = this.sharedProfile) == null || e.init();
|
|
103127
103129
|
}
|
|
103128
103130
|
onEnable() {
|
|
@@ -104204,7 +104206,7 @@ const hmA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
104204
104206
|
TextureSheetAnimationModule: eo,
|
|
104205
104207
|
TiltShiftEffect: MC,
|
|
104206
104208
|
ToneMappingEffect: il,
|
|
104207
|
-
TrailModule:
|
|
104209
|
+
TrailModule: Ti,
|
|
104208
104210
|
TransformData: Ng,
|
|
104209
104211
|
TransformGizmo: $d,
|
|
104210
104212
|
TriggerBuilder: yI,
|
|
@@ -104433,7 +104435,7 @@ j.add("TextExtension", SM);
|
|
|
104433
104435
|
j.add("TextureSheetAnimationModule", eo);
|
|
104434
104436
|
j.add("TiltShiftEffect", MC);
|
|
104435
104437
|
j.add("ToneMappingEffect", il);
|
|
104436
|
-
j.add("TrailModule",
|
|
104438
|
+
j.add("TrailModule", Ti);
|
|
104437
104439
|
j.add("TransformData", Ng);
|
|
104438
104440
|
j.add("TransformGizmo", $d);
|
|
104439
104441
|
j.add("TriggerBuilder", yI);
|
|
@@ -104550,7 +104552,7 @@ async function _x(g, A, e, t) {
|
|
|
104550
104552
|
}
|
|
104551
104553
|
if (Ap.length > 0) {
|
|
104552
104554
|
const o = Ap.join(", ");
|
|
104553
|
-
console.warn("unknown components: " + o), Ap.length = 0, Zo() &&
|
|
104555
|
+
console.warn("unknown components: " + o), Ap.length = 0, Zo() && vi(`<strong>Unknown components in scene</strong>:
|
|
104554
104556
|
|
|
104555
104557
|
${o}
|
|
104556
104558
|
|
|
@@ -104573,7 +104575,7 @@ async function ymA(g, A = !0) {
|
|
|
104573
104575
|
const i = g, I = new URL(i, globalThis.location.origin);
|
|
104574
104576
|
let o = null;
|
|
104575
104577
|
const s = I.searchParams.get("filetype");
|
|
104576
|
-
switch (s && (o = s.toUpperCase()), o != null && o.length || (o = (t = I.pathname.split(".").pop()) == null ? void 0 : t.toUpperCase()), o) {
|
|
104578
|
+
switch (s && (o = s.toUpperCase()), o != null && o.length || (o = (t = I.pathname.split(".").pop()) == null ? void 0 : t.toUpperCase()), console.debug("Use file extension to determine type: " + o), o) {
|
|
104577
104579
|
case "GLTF":
|
|
104578
104580
|
return "gltf";
|
|
104579
104581
|
case "VRM":
|
|
@@ -104588,6 +104590,8 @@ async function ymA(g, A = !0) {
|
|
|
104588
104590
|
return "usda";
|
|
104589
104591
|
case "USDZ":
|
|
104590
104592
|
return "usdz";
|
|
104593
|
+
case "OBJ":
|
|
104594
|
+
return "obj";
|
|
104591
104595
|
}
|
|
104592
104596
|
}
|
|
104593
104597
|
const e = await fetch(g, {
|
|
@@ -104608,7 +104612,7 @@ function wmA(g) {
|
|
|
104608
104612
|
const A = new Uint8Array(g);
|
|
104609
104613
|
return gj && console.warn(`Trying to determine file type from binary data
|
|
104610
104614
|
`, '"' + new TextDecoder().decode(g) + `"
|
|
104611
|
-
`, A), A[0] == 103 && A[1] == 108 && A[2] == 84 && A[3] == 70 ? "glb" : A[0] == 80 && A[1] == 75 && A[2] == 3 && A[3] == 4 ? "usdz" : A[0] == 80 && A[1] == 88 && A[2] == 82 && A[3] == 45 && A[4] == 85 && A[5] == 83 && A[6] == 68 && A[7] == 67 ? "usd" : A[0] == 35 && A[1] == 117 && A[2] == 115 && A[3] == 100 && A[4] == 97 ? "usda" : A[0] == 75 && A[1] == 97 && A[2] == 121 && A[3] == 100 && A[4] == 97 && A[5] == 114 && A[6] == 97 && A[7] == 32 ? "fbx" : A[0] == 35 && A[1] == 32 && A[2] == 66 && A[3] == 108 && A[4] == 101 && A[5] == 110 && A[6] == 100 && A[7] == 101 && A[8] == 114 && A[9] == 32 ? "obj" : "unknown";
|
|
104615
|
+
`, A), A[0] == 103 && A[1] == 108 && A[2] == 84 && A[3] == 70 ? (console.debug("GLTF detected"), "glb") : A[0] == 80 && A[1] == 75 && A[2] == 3 && A[3] == 4 ? (console.debug("USDZ detected"), "usdz") : A[0] == 80 && A[1] == 88 && A[2] == 82 && A[3] == 45 && A[4] == 85 && A[5] == 83 && A[6] == 68 && A[7] == 67 ? (console.debug("Binary USD detected"), "usd") : A[0] == 35 && A[1] == 117 && A[2] == 115 && A[3] == 100 && A[4] == 97 ? (console.debug("ASCII USD detected"), "usda") : A[0] == 75 && A[1] == 97 && A[2] == 121 && A[3] == 100 && A[4] == 97 && A[5] == 114 && A[6] == 97 && A[7] == 32 ? (console.debug("Binary FBX detected"), "fbx") : A[0] == 59 && A[1] == 32 && A[2] == 70 && A[3] == 66 && A[4] == 88 && A[5] == 32 ? (console.debug("ASCII FBX detected"), "fbx") : A[0] == 35 && A[1] == 32 && A[2] == 66 && A[3] == 108 && A[4] == 101 && A[5] == 110 && A[6] == 100 && A[7] == 101 && A[8] == 114 && A[9] == 32 || A[0] == 35 && A[1] == 32 && A[2] == 65 && A[3] == 108 && A[4] == 105 && A[5] == 97 && A[6] == 115 && A[7] == 32 && A[8] == 79 && A[9] == 66 && A[10] == 74 ? (console.debug("OBJ detected"), "obj") : (console.debug("Could not determine file type from binary data", A), "unknown");
|
|
104612
104616
|
}
|
|
104613
104617
|
class Ij {
|
|
104614
104618
|
createBuiltinComponents(A, e, t, i, I) {
|
|
@@ -104656,9 +104660,9 @@ async function nj(g, A, e, t, i) {
|
|
|
104656
104660
|
}
|
|
104657
104661
|
async function aj(g, A) {
|
|
104658
104662
|
const e = await ymA(g) || "unknown";
|
|
104659
|
-
switch (e) {
|
|
104663
|
+
switch (console.debug("Determined file type: " + e + " for url", g), e) {
|
|
104660
104664
|
case "unknown":
|
|
104661
|
-
return console.warn("Unknown file type:", g), new aC();
|
|
104665
|
+
return console.warn("Unknown file type. Assuming glTF:", g), new aC();
|
|
104662
104666
|
case "fbx":
|
|
104663
104667
|
return new oX();
|
|
104664
104668
|
case "obj":
|
|
@@ -104764,7 +104768,7 @@ function GmA(g) {
|
|
|
104764
104768
|
if (new URL(g, window.location.href).href.startsWith("file://")) {
|
|
104765
104769
|
const e = `Hi - it looks like you are trying to load a local file which will not work. You need to use a webserver to serve your files.
|
|
104766
104770
|
Please refer to the documentation on <a href="https://fwd.needle.tools/needle-engine/docs/local-server">https://docs.needle.tools</a> or ask for help in our <a href="https://discord.needle.tools">discord community</a>`;
|
|
104767
|
-
|
|
104771
|
+
vi(e), console.warn(e);
|
|
104768
104772
|
}
|
|
104769
104773
|
}
|
|
104770
104774
|
function Bj(g) {
|
|
@@ -104787,7 +104791,7 @@ function cj(g, A) {
|
|
|
104787
104791
|
}
|
|
104788
104792
|
}
|
|
104789
104793
|
tZ(Ij);
|
|
104790
|
-
const
|
|
104794
|
+
const Pi = gA("debugwebcomponent"), yP = "needle-engine", Qj = "vr", lj = "desktop", kmA = [gX, Qj, lj], ep = "ar-session-active", tp = "desktop-session-active", MmA = [
|
|
104791
104795
|
"hash",
|
|
104792
104796
|
"src",
|
|
104793
104797
|
"camera-controls",
|
|
@@ -104956,11 +104960,11 @@ class hj extends HTMLElement {
|
|
|
104956
104960
|
* @internal
|
|
104957
104961
|
*/
|
|
104958
104962
|
async connectedCallback() {
|
|
104959
|
-
if (
|
|
104963
|
+
if (Pi && console.log("<needle-engine> connected"), this.addEventListener("xr-session-started", this.onXRSessionStarted), this.onSetupDesktop(), !this.getAttribute("src")) {
|
|
104960
104964
|
const t = globalThis["needle:codegen_files"];
|
|
104961
|
-
|
|
104965
|
+
Pi && console.log('src is null, trying to load from globalThis["needle:codegen_files"]', t), t && (Pi && console.log('globalThis["needle:codegen_files"]', t), this.setAttribute("src", t));
|
|
104962
104966
|
}
|
|
104963
|
-
|
|
104967
|
+
Pi && console.log("src", this.getAttribute("src"));
|
|
104964
104968
|
const e = this._loadId;
|
|
104965
104969
|
setTimeout(() => {
|
|
104966
104970
|
this.isConnected !== !1 && e === this._loadId && this.onLoad();
|
|
@@ -104973,15 +104977,15 @@ class hj extends HTMLElement {
|
|
|
104973
104977
|
var i;
|
|
104974
104978
|
this.removeEventListener("xr-session-started", this.onXRSessionStarted), this._didFullyLoad = !1;
|
|
104975
104979
|
const e = this.getAttribute("keep-alive"), t = e == null || (e == null ? void 0 : e.length) > 0 && e !== "true" && e !== "1";
|
|
104976
|
-
|
|
104980
|
+
Pi && console.warn('<needle-engine> disconnected, keep-alive: "' + e + '"', typeof e, "Dispose=", t), t ? (Pi && console.warn("<needle-engine> dispose"), (i = this._context) == null || i.dispose(), this._context = null, this._lastSourceFiles = null, this._loadId += 1) : Pi && console.warn("<needle-engine> is not disposed because keep-alive is set");
|
|
104977
104981
|
}
|
|
104978
104982
|
/**
|
|
104979
104983
|
* @internal
|
|
104980
104984
|
*/
|
|
104981
104985
|
attributeChangedCallback(e, t, i) {
|
|
104982
|
-
switch (
|
|
104986
|
+
switch (Pi && console.log("attributeChangedCallback", e, t, i), e) {
|
|
104983
104987
|
case "src":
|
|
104984
|
-
|
|
104988
|
+
Pi && console.warn(`<needle-engine src>
|
|
104985
104989
|
changed from "`, t, '" to "', i, '"'), this.onLoad();
|
|
104986
104990
|
break;
|
|
104987
104991
|
case "hash":
|
|
@@ -104990,16 +104994,16 @@ changed from "`, t, '" to "', i, '"'), this.onLoad();
|
|
|
104990
104994
|
case "loadstart":
|
|
104991
104995
|
case "progress":
|
|
104992
104996
|
case "loadfinished":
|
|
104993
|
-
typeof i == "string" && i.length > 0 && (
|
|
104997
|
+
typeof i == "string" && i.length > 0 && (Pi && console.log(e + " attribute changed", i), this.registerEventFromAttribute(e, i));
|
|
104994
104998
|
break;
|
|
104995
104999
|
case "dracoDecoderPath":
|
|
104996
|
-
|
|
105000
|
+
Pi && console.log("dracoDecoderPath", i), S1(i);
|
|
104997
105001
|
break;
|
|
104998
105002
|
case "dracoDecoderType":
|
|
104999
|
-
i === "wasm" || i === "js" ? (
|
|
105003
|
+
i === "wasm" || i === "js" ? (Pi && console.log("dracoDecoderType", i), G1(i)) : console.error("Invalid dracoDecoderType", i, "expected js or wasm");
|
|
105000
105004
|
break;
|
|
105001
105005
|
case "ktx2DecoderPath":
|
|
105002
|
-
|
|
105006
|
+
Pi && console.log("ktx2DecoderPath", i), k1(i);
|
|
105003
105007
|
break;
|
|
105004
105008
|
case "tone-mapping": {
|
|
105005
105009
|
this.applyTonemapping();
|
|
@@ -105013,16 +105017,16 @@ changed from "`, t, '" to "', i, '"'), this.onLoad();
|
|
|
105013
105017
|
var d, h;
|
|
105014
105018
|
if (!this.isConnected)
|
|
105015
105019
|
return;
|
|
105016
|
-
if (this._context || (
|
|
105020
|
+
if (this._context || (Pi && console.warn("Create new context"), this._context = new Ke({ domElement: this })), !this._context) {
|
|
105017
105021
|
console.error("Needle Engine: Context not initialized");
|
|
105018
105022
|
return;
|
|
105019
105023
|
}
|
|
105020
105024
|
const e = this.getSourceFiles();
|
|
105021
105025
|
if (!this.checkIfSourceHasChanged(e, this._lastSourceFiles))
|
|
105022
105026
|
return;
|
|
105023
|
-
this._abortController && (
|
|
105027
|
+
this._abortController && (Pi && console.warn("Abort previous loading process"), this._abortController.abort(), this._abortController = null), this._lastSourceFiles = e;
|
|
105024
105028
|
const t = ++this._loadId;
|
|
105025
|
-
if ((e == null || e.length <= 0) && (
|
|
105029
|
+
if ((e == null || e.length <= 0) && (Pi && console.warn("Clear scene", e), this._context.clear(), t !== this._loadId))
|
|
105026
105030
|
return;
|
|
105027
105031
|
const i = this.getAttribute("alias");
|
|
105028
105032
|
this.classList.add("loading");
|
|
@@ -105041,7 +105045,7 @@ changed from "`, t, '" to "', i, '"'), this.onLoad();
|
|
|
105041
105045
|
}
|
|
105042
105046
|
o === !1 && !I && (se() || (o = !0), console.warn("Needle Engine: You need a commercial license to override the default loading view. Visit https://needle.tools/pricing"), se() && $t('You need a <a target="_blank" href="https://needle.tools/pricing">commercial license</a> to override the default loading view. This will not work in production.')), !this._loadingView && o && (this._loadingView = new rS(this)), o && (this._didFullyLoad !== !0 ? (d = this._loadingView) == null || d.onLoadingBegin("begin load") : setTimeout(() => {
|
|
105043
105047
|
this._loadingView && this._loadingProgress01 < 0.3 && this._loadId === t && this._loadingView.onLoadingBegin("begin load");
|
|
105044
|
-
}, 300)),
|
|
105048
|
+
}, 300)), Pi && console.warn(`--------------
|
|
105045
105049
|
Needle Engine: Begin loading ` + t + `
|
|
105046
105050
|
`, e), this.onBeforeBeginLoading();
|
|
105047
105051
|
const s = [], n = {
|
|
@@ -105072,7 +105076,7 @@ Needle Engine: Begin loading ` + t + `
|
|
|
105072
105076
|
}, Q = this.getAttribute("hash");
|
|
105073
105077
|
Q != null && (this._context.hash = Q), this._context.alias = i, this._createContextPromise = this._context.create(c);
|
|
105074
105078
|
const l = await this._createContextPromise;
|
|
105075
|
-
if (this.applyTonemapping(),
|
|
105079
|
+
if (this.applyTonemapping(), Pi && console.warn(`--------------
|
|
105076
105080
|
Needle Engine: finished loading ` + t + `
|
|
105077
105081
|
`, e, `Aborted? ${C.signal.aborted}`), this._loadId !== t || C.signal.aborted) {
|
|
105078
105082
|
console.log("Loading finished but aborted...");
|
|
@@ -105202,7 +105206,7 @@ Needle Engine: finished loading ` + t + `
|
|
|
105202
105206
|
onSetupAR() {
|
|
105203
105207
|
this.classList.add(ep), this.classList.remove(tp);
|
|
105204
105208
|
const e = this.getAROverlayContainer();
|
|
105205
|
-
|
|
105209
|
+
Pi && console.warn("onSetupAR:", e), e && (e.classList.add(ep), e.classList.remove(tp)), this.foreachHtmlElement((t) => this.setupElementsForMode(t, gX));
|
|
105206
105210
|
}
|
|
105207
105211
|
onSetupVR() {
|
|
105208
105212
|
this.classList.remove(ep), this.classList.remove(tp), this.foreachHtmlElement((e) => this.setupElementsForMode(e, Qj));
|
|
@@ -105230,11 +105234,11 @@ Needle Engine: finished loading ` + t + `
|
|
|
105230
105234
|
}
|
|
105231
105235
|
onBeforeBeginLoading() {
|
|
105232
105236
|
const e = this.getAttribute("dracoDecoderPath");
|
|
105233
|
-
e && (
|
|
105237
|
+
e && (Pi && console.log("using custom draco decoder path", e), S1(e));
|
|
105234
105238
|
const t = this.getAttribute("dracoDecoderType");
|
|
105235
|
-
t && (
|
|
105239
|
+
t && (Pi && console.log("using custom draco decoder type", t), G1(t));
|
|
105236
105240
|
const i = this.getAttribute("ktx2DecoderPath");
|
|
105237
|
-
i && (
|
|
105241
|
+
i && (Pi && console.log("using custom ktx2 decoder path", i), k1(i));
|
|
105238
105242
|
}
|
|
105239
105243
|
}
|
|
105240
105244
|
typeof window < "u" && !window.customElements.get(yP) && window.customElements.define(yP, hj);
|
|
@@ -105247,27 +105251,17 @@ function RmA(g) {
|
|
|
105247
105251
|
t > 0 && (e = e.substring(0, t));
|
|
105248
105252
|
const i = e.indexOf("=");
|
|
105249
105253
|
i > 0 && (e = e.substring(i));
|
|
105250
|
-
const I = e.split(".").pop(), s = I ? ["glb", "gltf", "usdz", "usd", "fbx", "obj", "mtl"].indexOf(I) : -1;
|
|
105254
|
+
const I = e.split(".").pop(), s = I ? ["glb", "gltf", "usdz", "usd", "fbx", "obj", "mtl"].indexOf(I.toLowerCase()) : -1;
|
|
105251
105255
|
if (I && s >= 0 && (e = e.substring(0, e.length - I.length - 1)), e = decodeURIComponent(e), e.length > 3) {
|
|
105252
105256
|
let n = "", a = !1;
|
|
105253
105257
|
const r = ["(", ")", "[", "]", "{", "}", ":", ";", ",", ".", "!", "?"];
|
|
105254
105258
|
for (let C = 0; C < e.length; C++) {
|
|
105255
105259
|
let c = e[C];
|
|
105256
|
-
|
|
105257
|
-
continue;
|
|
105258
|
-
const l = n.length === 0, d = c >= "0" && c <= "9";
|
|
105259
|
-
if (l == !1 && c === c.toUpperCase() && !d)
|
|
105260
|
-
n += " " + c;
|
|
105261
|
-
else {
|
|
105262
|
-
if (l && (c = c.toUpperCase()), a && c === " ")
|
|
105263
|
-
continue;
|
|
105264
|
-
a && (c = c.toUpperCase()), a = !1, n += c;
|
|
105265
|
-
}
|
|
105266
|
-
c === " " && (a = !0);
|
|
105260
|
+
(c === "_" || c === "-") && (c = " "), !(c === " " && n.length <= 0 || r.includes(c) || (n.length === 0 && (c = c.toUpperCase()), a && c === " ")) && (a && (c = c.toUpperCase()), a = !1, n += c, c === " " && (a = !0));
|
|
105267
105261
|
}
|
|
105268
|
-
return
|
|
105262
|
+
return console.debug('Generated display name: "' + e + '" → "' + n + '"'), n.trim();
|
|
105269
105263
|
}
|
|
105270
|
-
return
|
|
105264
|
+
return console.debug("Loading: use default name", e), e;
|
|
105271
105265
|
}
|
|
105272
105266
|
const UmA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
105273
105267
|
__proto__: null,
|
|
@@ -105429,7 +105423,7 @@ function Bi() {
|
|
|
105429
105423
|
return Hp !== null && Hp.byteLength !== 0 || (Hp = new Float32Array(R.memory.buffer)), Hp;
|
|
105430
105424
|
}
|
|
105431
105425
|
let Xt = 128;
|
|
105432
|
-
function
|
|
105426
|
+
function mi(g) {
|
|
105433
105427
|
if (Xt == 1)
|
|
105434
105428
|
throw new Error("out of js stack");
|
|
105435
105429
|
return ft[--Xt] = g, Xt;
|
|
@@ -105535,10 +105529,10 @@ class pj {
|
|
|
105535
105529
|
return rA.__wrap(A);
|
|
105536
105530
|
}
|
|
105537
105531
|
}
|
|
105538
|
-
class
|
|
105532
|
+
class Ki {
|
|
105539
105533
|
static __wrap(A) {
|
|
105540
105534
|
A >>>= 0;
|
|
105541
|
-
const e = Object.create(
|
|
105535
|
+
const e = Object.create(Ki.prototype);
|
|
105542
105536
|
return e.__wbg_ptr = A, e;
|
|
105543
105537
|
}
|
|
105544
105538
|
__destroy_into_raw() {
|
|
@@ -105853,7 +105847,7 @@ class xi {
|
|
|
105853
105847
|
}
|
|
105854
105848
|
forEachColliderHandle(A) {
|
|
105855
105849
|
try {
|
|
105856
|
-
R.rawcolliderset_forEachColliderHandle(this.__wbg_ptr,
|
|
105850
|
+
R.rawcolliderset_forEachColliderHandle(this.__wbg_ptr, mi(A));
|
|
105857
105851
|
} finally {
|
|
105858
105852
|
ft[Xt++] = void 0;
|
|
105859
105853
|
}
|
|
@@ -106024,7 +106018,7 @@ class bmA {
|
|
|
106024
106018
|
return fD(R.rawdebugrenderpipeline_colors(this.__wbg_ptr));
|
|
106025
106019
|
}
|
|
106026
106020
|
render(A, e, t, i, I) {
|
|
106027
|
-
eA(A, Xi), eA(e,
|
|
106021
|
+
eA(A, Xi), eA(e, Ki), eA(t, QC), eA(i, hC), eA(I, jB), R.rawdebugrenderpipeline_render(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I.__wbg_ptr);
|
|
106028
106022
|
}
|
|
106029
106023
|
}
|
|
106030
106024
|
class pq {
|
|
@@ -106067,7 +106061,7 @@ class pq {
|
|
|
106067
106061
|
}
|
|
106068
106062
|
takeColliders() {
|
|
106069
106063
|
const A = R.rawdeserializedworld_takeColliders(this.__wbg_ptr);
|
|
106070
|
-
return A === 0 ? void 0 :
|
|
106064
|
+
return A === 0 ? void 0 : Ki.__wrap(A);
|
|
106071
106065
|
}
|
|
106072
106066
|
takeImpulseJoints() {
|
|
106073
106067
|
const A = R.rawdeserializedworld_takeImpulseJoints(this.__wbg_ptr);
|
|
@@ -106117,7 +106111,7 @@ class KmA {
|
|
|
106117
106111
|
}
|
|
106118
106112
|
update_vehicle(A, e, t, i, I, o, s) {
|
|
106119
106113
|
try {
|
|
106120
|
-
eA(e, Xi), eA(t,
|
|
106114
|
+
eA(e, Xi), eA(t, Ki), eA(i, fq), R.rawdynamicraycastvehiclecontroller_update_vehicle(this.__wbg_ptr, A, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I, !pe(o), pe(o) ? 0 : o, mi(s));
|
|
106121
106115
|
} finally {
|
|
106122
106116
|
ft[Xt++] = void 0;
|
|
106123
106117
|
}
|
|
@@ -106390,14 +106384,14 @@ class fj {
|
|
|
106390
106384
|
}
|
|
106391
106385
|
drainCollisionEvents(A) {
|
|
106392
106386
|
try {
|
|
106393
|
-
R.raweventqueue_drainCollisionEvents(this.__wbg_ptr,
|
|
106387
|
+
R.raweventqueue_drainCollisionEvents(this.__wbg_ptr, mi(A));
|
|
106394
106388
|
} finally {
|
|
106395
106389
|
ft[Xt++] = void 0;
|
|
106396
106390
|
}
|
|
106397
106391
|
}
|
|
106398
106392
|
drainContactForceEvents(A) {
|
|
106399
106393
|
try {
|
|
106400
|
-
R.raweventqueue_drainContactForceEvents(this.__wbg_ptr,
|
|
106394
|
+
R.raweventqueue_drainContactForceEvents(this.__wbg_ptr, mi(A));
|
|
106401
106395
|
} finally {
|
|
106402
106396
|
ft[Xt++] = void 0;
|
|
106403
106397
|
}
|
|
@@ -106549,14 +106543,14 @@ class QC {
|
|
|
106549
106543
|
}
|
|
106550
106544
|
forEachJointHandle(A) {
|
|
106551
106545
|
try {
|
|
106552
|
-
R.rawimpulsejointset_forEachJointHandle(this.__wbg_ptr,
|
|
106546
|
+
R.rawimpulsejointset_forEachJointHandle(this.__wbg_ptr, mi(A));
|
|
106553
106547
|
} finally {
|
|
106554
106548
|
ft[Xt++] = void 0;
|
|
106555
106549
|
}
|
|
106556
106550
|
}
|
|
106557
106551
|
forEachJointAttachedToRigidBody(A, e) {
|
|
106558
106552
|
try {
|
|
106559
|
-
R.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr, A,
|
|
106553
|
+
R.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr, A, mi(e));
|
|
106560
106554
|
} finally {
|
|
106561
106555
|
ft[Xt++] = void 0;
|
|
106562
106556
|
}
|
|
@@ -106661,7 +106655,7 @@ class lC {
|
|
|
106661
106655
|
}
|
|
106662
106656
|
forEachActiveRigidBodyHandle(A) {
|
|
106663
106657
|
try {
|
|
106664
|
-
R.rawislandmanager_forEachActiveRigidBodyHandle(this.__wbg_ptr,
|
|
106658
|
+
R.rawislandmanager_forEachActiveRigidBodyHandle(this.__wbg_ptr, mi(A));
|
|
106665
106659
|
} finally {
|
|
106666
106660
|
ft[Xt++] = void 0;
|
|
106667
106661
|
}
|
|
@@ -106765,7 +106759,7 @@ class xmA {
|
|
|
106765
106759
|
}
|
|
106766
106760
|
computeColliderMovement(A, e, t, i, I, o, s, n, a, r, C) {
|
|
106767
106761
|
try {
|
|
106768
|
-
eA(e, Xi), eA(t,
|
|
106762
|
+
eA(e, Xi), eA(t, Ki), eA(i, fq), eA(o, rA), R.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr, A, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I, o.__wbg_ptr, s, !pe(n), pe(n) ? 0 : n, a, !pe(r), pe(r) ? 0 : r, mi(C));
|
|
106769
106763
|
} finally {
|
|
106770
106764
|
ft[Xt++] = void 0;
|
|
106771
106765
|
}
|
|
@@ -106847,14 +106841,14 @@ class hC {
|
|
|
106847
106841
|
}
|
|
106848
106842
|
forEachJointHandle(A) {
|
|
106849
106843
|
try {
|
|
106850
|
-
R.rawmultibodyjointset_forEachJointHandle(this.__wbg_ptr,
|
|
106844
|
+
R.rawmultibodyjointset_forEachJointHandle(this.__wbg_ptr, mi(A));
|
|
106851
106845
|
} finally {
|
|
106852
106846
|
ft[Xt++] = void 0;
|
|
106853
106847
|
}
|
|
106854
106848
|
}
|
|
106855
106849
|
forEachJointAttachedToRigidBody(A, e) {
|
|
106856
106850
|
try {
|
|
106857
|
-
R.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr, A,
|
|
106851
|
+
R.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr, A, mi(e));
|
|
106858
106852
|
} finally {
|
|
106859
106853
|
ft[Xt++] = void 0;
|
|
106860
106854
|
}
|
|
@@ -106906,10 +106900,10 @@ class JmA {
|
|
|
106906
106900
|
return this.__wbg_ptr = A >>> 0, this;
|
|
106907
106901
|
}
|
|
106908
106902
|
step(A, e, t, i, I, o, s, n, a, r) {
|
|
106909
|
-
eA(A, rA), eA(e, sl), eA(t, lC), eA(i, ol), eA(I, jB), eA(o, Xi), eA(s,
|
|
106903
|
+
eA(A, rA), eA(e, sl), eA(t, lC), eA(i, ol), eA(I, jB), eA(o, Xi), eA(s, Ki), eA(n, QC), eA(a, hC), eA(r, Tx), R.rawphysicspipeline_step(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I.__wbg_ptr, o.__wbg_ptr, s.__wbg_ptr, n.__wbg_ptr, a.__wbg_ptr, r.__wbg_ptr);
|
|
106910
106904
|
}
|
|
106911
106905
|
stepWithEvents(A, e, t, i, I, o, s, n, a, r, C, c, Q, l) {
|
|
106912
|
-
eA(A, rA), eA(e, sl), eA(t, lC), eA(i, ol), eA(I, jB), eA(o, Xi), eA(s,
|
|
106906
|
+
eA(A, rA), eA(e, sl), eA(t, lC), eA(i, ol), eA(I, jB), eA(o, Xi), eA(s, Ki), eA(n, QC), eA(a, hC), eA(r, Tx), eA(C, fj), R.rawphysicspipeline_stepWithEvents(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I.__wbg_ptr, o.__wbg_ptr, s.__wbg_ptr, n.__wbg_ptr, a.__wbg_ptr, r.__wbg_ptr, C.__wbg_ptr, Eg(c), Eg(Q), Eg(l));
|
|
106913
106907
|
}
|
|
106914
106908
|
}
|
|
106915
106909
|
class yG {
|
|
@@ -106986,12 +106980,12 @@ class fq {
|
|
|
106986
106980
|
return this.__wbg_ptr = A >>> 0, this;
|
|
106987
106981
|
}
|
|
106988
106982
|
update(A, e) {
|
|
106989
|
-
eA(A, Xi), eA(e,
|
|
106983
|
+
eA(A, Xi), eA(e, Ki), R.rawquerypipeline_update(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr);
|
|
106990
106984
|
}
|
|
106991
106985
|
castRay(A, e, t, i, I, o, s, n, a, r, C) {
|
|
106992
106986
|
try {
|
|
106993
|
-
eA(A, Xi), eA(e,
|
|
106994
|
-
const c = R.rawquerypipeline_castRay(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I, o, s, !pe(n), pe(n) ? 0 : n, !pe(a), pe(a) ? 0 : a, !pe(r), pe(r) ? 0 : r,
|
|
106987
|
+
eA(A, Xi), eA(e, Ki), eA(t, rA), eA(i, rA);
|
|
106988
|
+
const c = R.rawquerypipeline_castRay(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I, o, s, !pe(n), pe(n) ? 0 : n, !pe(a), pe(a) ? 0 : a, !pe(r), pe(r) ? 0 : r, mi(C));
|
|
106995
106989
|
return c === 0 ? void 0 : Dq.__wrap(c);
|
|
106996
106990
|
} finally {
|
|
106997
106991
|
ft[Xt++] = void 0;
|
|
@@ -106999,8 +106993,8 @@ class fq {
|
|
|
106999
106993
|
}
|
|
107000
106994
|
castRayAndGetNormal(A, e, t, i, I, o, s, n, a, r, C) {
|
|
107001
106995
|
try {
|
|
107002
|
-
eA(A, Xi), eA(e,
|
|
107003
|
-
const c = R.rawquerypipeline_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I, o, s, !pe(n), pe(n) ? 0 : n, !pe(a), pe(a) ? 0 : a, !pe(r), pe(r) ? 0 : r,
|
|
106996
|
+
eA(A, Xi), eA(e, Ki), eA(t, rA), eA(i, rA);
|
|
106997
|
+
const c = R.rawquerypipeline_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I, o, s, !pe(n), pe(n) ? 0 : n, !pe(a), pe(a) ? 0 : a, !pe(r), pe(r) ? 0 : r, mi(C));
|
|
107004
106998
|
return c === 0 ? void 0 : jM.__wrap(c);
|
|
107005
106999
|
} finally {
|
|
107006
107000
|
ft[Xt++] = void 0;
|
|
@@ -107008,7 +107002,7 @@ class fq {
|
|
|
107008
107002
|
}
|
|
107009
107003
|
intersectionsWithRay(A, e, t, i, I, o, s, n, a, r, C, c) {
|
|
107010
107004
|
try {
|
|
107011
|
-
eA(A, Xi), eA(e,
|
|
107005
|
+
eA(A, Xi), eA(e, Ki), eA(t, rA), eA(i, rA), R.rawquerypipeline_intersectionsWithRay(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I, o, mi(s), n, !pe(a), pe(a) ? 0 : a, !pe(r), pe(r) ? 0 : r, !pe(C), pe(C) ? 0 : C, mi(c));
|
|
107012
107006
|
} finally {
|
|
107013
107007
|
ft[Xt++] = void 0, ft[Xt++] = void 0;
|
|
107014
107008
|
}
|
|
@@ -107016,7 +107010,7 @@ class fq {
|
|
|
107016
107010
|
intersectionWithShape(A, e, t, i, I, o, s, n, a, r) {
|
|
107017
107011
|
try {
|
|
107018
107012
|
const Q = R.__wbindgen_add_to_stack_pointer(-16);
|
|
107019
|
-
eA(A, Xi), eA(e,
|
|
107013
|
+
eA(A, Xi), eA(e, Ki), eA(t, rA), eA(i, Qt), eA(I, ve), R.rawquerypipeline_intersectionWithShape(Q, this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I.__wbg_ptr, o, !pe(s), pe(s) ? 0 : s, !pe(n), pe(n) ? 0 : n, !pe(a), pe(a) ? 0 : a, mi(r));
|
|
107020
107014
|
var C = Ze()[Q / 4 + 0], c = DD()[Q / 8 + 1];
|
|
107021
107015
|
return C === 0 ? void 0 : c;
|
|
107022
107016
|
} finally {
|
|
@@ -107025,8 +107019,8 @@ class fq {
|
|
|
107025
107019
|
}
|
|
107026
107020
|
projectPoint(A, e, t, i, I, o, s, n, a) {
|
|
107027
107021
|
try {
|
|
107028
|
-
eA(A, Xi), eA(e,
|
|
107029
|
-
const r = R.rawquerypipeline_projectPoint(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i, I, !pe(o), pe(o) ? 0 : o, !pe(s), pe(s) ? 0 : s, !pe(n), pe(n) ? 0 : n,
|
|
107022
|
+
eA(A, Xi), eA(e, Ki), eA(t, rA);
|
|
107023
|
+
const r = R.rawquerypipeline_projectPoint(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i, I, !pe(o), pe(o) ? 0 : o, !pe(s), pe(s) ? 0 : s, !pe(n), pe(n) ? 0 : n, mi(a));
|
|
107030
107024
|
return r === 0 ? void 0 : yG.__wrap(r);
|
|
107031
107025
|
} finally {
|
|
107032
107026
|
ft[Xt++] = void 0;
|
|
@@ -107034,8 +107028,8 @@ class fq {
|
|
|
107034
107028
|
}
|
|
107035
107029
|
projectPointAndGetFeature(A, e, t, i, I, o, s, n) {
|
|
107036
107030
|
try {
|
|
107037
|
-
eA(A, Xi), eA(e,
|
|
107038
|
-
const a = R.rawquerypipeline_projectPointAndGetFeature(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i, !pe(I), pe(I) ? 0 : I, !pe(o), pe(o) ? 0 : o, !pe(s), pe(s) ? 0 : s,
|
|
107031
|
+
eA(A, Xi), eA(e, Ki), eA(t, rA);
|
|
107032
|
+
const a = R.rawquerypipeline_projectPointAndGetFeature(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i, !pe(I), pe(I) ? 0 : I, !pe(o), pe(o) ? 0 : o, !pe(s), pe(s) ? 0 : s, mi(n));
|
|
107039
107033
|
return a === 0 ? void 0 : yG.__wrap(a);
|
|
107040
107034
|
} finally {
|
|
107041
107035
|
ft[Xt++] = void 0;
|
|
@@ -107043,15 +107037,15 @@ class fq {
|
|
|
107043
107037
|
}
|
|
107044
107038
|
intersectionsWithPoint(A, e, t, i, I, o, s, n, a) {
|
|
107045
107039
|
try {
|
|
107046
|
-
eA(A, Xi), eA(e,
|
|
107040
|
+
eA(A, Xi), eA(e, Ki), eA(t, rA), R.rawquerypipeline_intersectionsWithPoint(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, mi(i), I, !pe(o), pe(o) ? 0 : o, !pe(s), pe(s) ? 0 : s, !pe(n), pe(n) ? 0 : n, mi(a));
|
|
107047
107041
|
} finally {
|
|
107048
107042
|
ft[Xt++] = void 0, ft[Xt++] = void 0;
|
|
107049
107043
|
}
|
|
107050
107044
|
}
|
|
107051
107045
|
castShape(A, e, t, i, I, o, s, n, a, r, C, c, Q) {
|
|
107052
107046
|
try {
|
|
107053
|
-
eA(A, Xi), eA(e,
|
|
107054
|
-
const l = R.rawquerypipeline_castShape(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I.__wbg_ptr, o.__wbg_ptr, s, n, a, !pe(r), pe(r) ? 0 : r, !pe(C), pe(C) ? 0 : C, !pe(c), pe(c) ? 0 : c,
|
|
107047
|
+
eA(A, Xi), eA(e, Ki), eA(t, rA), eA(i, Qt), eA(I, rA), eA(o, ve);
|
|
107048
|
+
const l = R.rawquerypipeline_castShape(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I.__wbg_ptr, o.__wbg_ptr, s, n, a, !pe(r), pe(r) ? 0 : r, !pe(C), pe(C) ? 0 : C, !pe(c), pe(c) ? 0 : c, mi(Q));
|
|
107055
107049
|
return l === 0 ? void 0 : AR.__wrap(l);
|
|
107056
107050
|
} finally {
|
|
107057
107051
|
ft[Xt++] = void 0;
|
|
@@ -107059,14 +107053,14 @@ class fq {
|
|
|
107059
107053
|
}
|
|
107060
107054
|
intersectionsWithShape(A, e, t, i, I, o, s, n, a, r, C) {
|
|
107061
107055
|
try {
|
|
107062
|
-
eA(A, Xi), eA(e,
|
|
107056
|
+
eA(A, Xi), eA(e, Ki), eA(t, rA), eA(i, Qt), eA(I, ve), R.rawquerypipeline_intersectionsWithShape(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I.__wbg_ptr, mi(o), s, !pe(n), pe(n) ? 0 : n, !pe(a), pe(a) ? 0 : a, !pe(r), pe(r) ? 0 : r, mi(C));
|
|
107063
107057
|
} finally {
|
|
107064
107058
|
ft[Xt++] = void 0, ft[Xt++] = void 0;
|
|
107065
107059
|
}
|
|
107066
107060
|
}
|
|
107067
107061
|
collidersWithAabbIntersectingAabb(A, e, t) {
|
|
107068
107062
|
try {
|
|
107069
|
-
eA(A, rA), eA(e, rA), R.rawquerypipeline_collidersWithAabbIntersectingAabb(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr,
|
|
107063
|
+
eA(A, rA), eA(e, rA), R.rawquerypipeline_collidersWithAabbIntersectingAabb(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, mi(t));
|
|
107070
107064
|
} finally {
|
|
107071
107065
|
ft[Xt++] = void 0;
|
|
107072
107066
|
}
|
|
@@ -107224,7 +107218,7 @@ class Xi {
|
|
|
107224
107218
|
R.rawrigidbodyset_rbSetNextKinematicRotation(this.__wbg_ptr, A, e, t, i, I);
|
|
107225
107219
|
}
|
|
107226
107220
|
rbRecomputeMassPropertiesFromColliders(A, e) {
|
|
107227
|
-
eA(e,
|
|
107221
|
+
eA(e, Ki), R.rawrigidbodyset_rbRecomputeMassPropertiesFromColliders(this.__wbg_ptr, A, e.__wbg_ptr);
|
|
107228
107222
|
}
|
|
107229
107223
|
rbSetAdditionalMass(A, e, t) {
|
|
107230
107224
|
R.rawrigidbodyset_rbSetAdditionalMass(this.__wbg_ptr, A, e, t);
|
|
@@ -107394,7 +107388,7 @@ class Xi {
|
|
|
107394
107388
|
return eA(e, rA), eA(t, Qt), eA(s, rA), eA(n, rA), eA(a, rA), eA(r, rA), eA(C, Qt), R.rawrigidbodyset_createRigidBody(this.__wbg_ptr, A, e.__wbg_ptr, t.__wbg_ptr, i, I, o, s.__wbg_ptr, n.__wbg_ptr, a.__wbg_ptr, r.__wbg_ptr, C.__wbg_ptr, c, Q, l, d, h, E, u, p, f, D, y, G, k, U);
|
|
107395
107389
|
}
|
|
107396
107390
|
remove(A, e, t, i, I) {
|
|
107397
|
-
eA(e, lC), eA(t,
|
|
107391
|
+
eA(e, lC), eA(t, Ki), eA(i, QC), eA(I, hC), R.rawrigidbodyset_remove(this.__wbg_ptr, A, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I.__wbg_ptr);
|
|
107398
107392
|
}
|
|
107399
107393
|
len() {
|
|
107400
107394
|
return R.rawcolliderset_len(this.__wbg_ptr) >>> 0;
|
|
@@ -107404,13 +107398,13 @@ class Xi {
|
|
|
107404
107398
|
}
|
|
107405
107399
|
forEachRigidBodyHandle(A) {
|
|
107406
107400
|
try {
|
|
107407
|
-
R.rawrigidbodyset_forEachRigidBodyHandle(this.__wbg_ptr,
|
|
107401
|
+
R.rawrigidbodyset_forEachRigidBodyHandle(this.__wbg_ptr, mi(A));
|
|
107408
107402
|
} finally {
|
|
107409
107403
|
ft[Xt++] = void 0;
|
|
107410
107404
|
}
|
|
107411
107405
|
}
|
|
107412
107406
|
propagateModifiedBodyPositionsToColliders(A) {
|
|
107413
|
-
eA(A,
|
|
107407
|
+
eA(A, Ki), R.rawrigidbodyset_propagateModifiedBodyPositionsToColliders(this.__wbg_ptr, A.__wbg_ptr);
|
|
107414
107408
|
}
|
|
107415
107409
|
}
|
|
107416
107410
|
class Qt {
|
|
@@ -107480,7 +107474,7 @@ class vmA {
|
|
|
107480
107474
|
return this.__wbg_ptr = A >>> 0, this;
|
|
107481
107475
|
}
|
|
107482
107476
|
serializeAll(A, e, t, i, I, o, s, n, a) {
|
|
107483
|
-
return eA(A, rA), eA(e, sl), eA(t, lC), eA(i, ol), eA(I, jB), eA(o, Xi), eA(s,
|
|
107477
|
+
return eA(A, rA), eA(e, sl), eA(t, lC), eA(i, ol), eA(I, jB), eA(o, Xi), eA(s, Ki), eA(n, QC), eA(a, hC), fD(R.rawserializationpipeline_serializeAll(this.__wbg_ptr, A.__wbg_ptr, e.__wbg_ptr, t.__wbg_ptr, i.__wbg_ptr, I.__wbg_ptr, o.__wbg_ptr, s.__wbg_ptr, n.__wbg_ptr, a.__wbg_ptr));
|
|
107484
107478
|
}
|
|
107485
107479
|
deserializeAll(A) {
|
|
107486
107480
|
const e = R.rawserializationpipeline_deserializeAll(this.__wbg_ptr, Eg(A));
|
|
@@ -107954,7 +107948,7 @@ class SG {
|
|
|
107954
107948
|
return A.free(), e;
|
|
107955
107949
|
}
|
|
107956
107950
|
}
|
|
107957
|
-
var ho, Pg, GG, kG, Wi, nl,
|
|
107951
|
+
var ho, Pg, GG, kG, Wi, nl, qi, MG, Cd, wD, RG, Bd, MB;
|
|
107958
107952
|
(function(g) {
|
|
107959
107953
|
g[g.Dynamic = 0] = "Dynamic", g[g.Fixed = 1] = "Fixed", g[g.KinematicPositionBased = 2] = "KinematicPositionBased", g[g.KinematicVelocityBased = 3] = "KinematicVelocityBased";
|
|
107960
107954
|
})(ho || (ho = {}));
|
|
@@ -109030,10 +109024,10 @@ class Gg {
|
|
|
109030
109024
|
}
|
|
109031
109025
|
(function(g) {
|
|
109032
109026
|
g[g.Ball = 0] = "Ball", g[g.Cuboid = 1] = "Cuboid", g[g.Capsule = 2] = "Capsule", g[g.Segment = 3] = "Segment", g[g.Polyline = 4] = "Polyline", g[g.Triangle = 5] = "Triangle", g[g.TriMesh = 6] = "TriMesh", g[g.HeightField = 7] = "HeightField", g[g.ConvexPolyhedron = 9] = "ConvexPolyhedron", g[g.Cylinder = 10] = "Cylinder", g[g.Cone = 11] = "Cone", g[g.RoundCuboid = 12] = "RoundCuboid", g[g.RoundTriangle = 13] = "RoundTriangle", g[g.RoundCylinder = 14] = "RoundCylinder", g[g.RoundCone = 15] = "RoundCone", g[g.RoundConvexPolyhedron = 16] = "RoundConvexPolyhedron", g[g.HalfSpace = 17] = "HalfSpace";
|
|
109033
|
-
})(
|
|
109027
|
+
})(qi || (qi = {}));
|
|
109034
109028
|
class Jy extends Gg {
|
|
109035
109029
|
constructor(A) {
|
|
109036
|
-
super(), this.type =
|
|
109030
|
+
super(), this.type = qi.Ball, this.radius = A;
|
|
109037
109031
|
}
|
|
109038
109032
|
intoRaw() {
|
|
109039
109033
|
return ve.ball(this.radius);
|
|
@@ -109041,7 +109035,7 @@ class Jy extends Gg {
|
|
|
109041
109035
|
}
|
|
109042
109036
|
class Pq extends Gg {
|
|
109043
109037
|
constructor(A) {
|
|
109044
|
-
super(), this.type =
|
|
109038
|
+
super(), this.type = qi.HalfSpace, this.normal = A;
|
|
109045
109039
|
}
|
|
109046
109040
|
intoRaw() {
|
|
109047
109041
|
let A = aA.intoRaw(this.normal), e = ve.halfspace(A);
|
|
@@ -109050,7 +109044,7 @@ class Pq extends Gg {
|
|
|
109050
109044
|
}
|
|
109051
109045
|
class IR extends Gg {
|
|
109052
109046
|
constructor(A, e, t) {
|
|
109053
|
-
super(), this.type =
|
|
109047
|
+
super(), this.type = qi.Cuboid, this.halfExtents = aA.new(A, e, t);
|
|
109054
109048
|
}
|
|
109055
109049
|
intoRaw() {
|
|
109056
109050
|
return ve.cuboid(this.halfExtents.x, this.halfExtents.y, this.halfExtents.z);
|
|
@@ -109058,7 +109052,7 @@ class IR extends Gg {
|
|
|
109058
109052
|
}
|
|
109059
109053
|
class oR extends Gg {
|
|
109060
109054
|
constructor(A, e, t, i) {
|
|
109061
|
-
super(), this.type =
|
|
109055
|
+
super(), this.type = qi.RoundCuboid, this.halfExtents = aA.new(A, e, t), this.borderRadius = i;
|
|
109062
109056
|
}
|
|
109063
109057
|
intoRaw() {
|
|
109064
109058
|
return ve.roundCuboid(this.halfExtents.x, this.halfExtents.y, this.halfExtents.z, this.borderRadius);
|
|
@@ -109066,7 +109060,7 @@ class oR extends Gg {
|
|
|
109066
109060
|
}
|
|
109067
109061
|
class sR extends Gg {
|
|
109068
109062
|
constructor(A, e) {
|
|
109069
|
-
super(), this.type =
|
|
109063
|
+
super(), this.type = qi.Capsule, this.halfHeight = A, this.radius = e;
|
|
109070
109064
|
}
|
|
109071
109065
|
intoRaw() {
|
|
109072
109066
|
return ve.capsule(this.halfHeight, this.radius);
|
|
@@ -109074,7 +109068,7 @@ class sR extends Gg {
|
|
|
109074
109068
|
}
|
|
109075
109069
|
class nR extends Gg {
|
|
109076
109070
|
constructor(A, e) {
|
|
109077
|
-
super(), this.type =
|
|
109071
|
+
super(), this.type = qi.Segment, this.a = A, this.b = e;
|
|
109078
109072
|
}
|
|
109079
109073
|
intoRaw() {
|
|
109080
109074
|
let A = aA.intoRaw(this.a), e = aA.intoRaw(this.b), t = ve.segment(A, e);
|
|
@@ -109083,7 +109077,7 @@ class nR extends Gg {
|
|
|
109083
109077
|
}
|
|
109084
109078
|
class aR extends Gg {
|
|
109085
109079
|
constructor(A, e, t) {
|
|
109086
|
-
super(), this.type =
|
|
109080
|
+
super(), this.type = qi.Triangle, this.a = A, this.b = e, this.c = t;
|
|
109087
109081
|
}
|
|
109088
109082
|
intoRaw() {
|
|
109089
109083
|
let A = aA.intoRaw(this.a), e = aA.intoRaw(this.b), t = aA.intoRaw(this.c), i = ve.triangle(A, e, t);
|
|
@@ -109092,7 +109086,7 @@ class aR extends Gg {
|
|
|
109092
109086
|
}
|
|
109093
109087
|
class rR extends Gg {
|
|
109094
109088
|
constructor(A, e, t, i) {
|
|
109095
|
-
super(), this.type =
|
|
109089
|
+
super(), this.type = qi.RoundTriangle, this.a = A, this.b = e, this.c = t, this.borderRadius = i;
|
|
109096
109090
|
}
|
|
109097
109091
|
intoRaw() {
|
|
109098
109092
|
let A = aA.intoRaw(this.a), e = aA.intoRaw(this.b), t = aA.intoRaw(this.c), i = ve.roundTriangle(A, e, t, this.borderRadius);
|
|
@@ -109101,7 +109095,7 @@ class rR extends Gg {
|
|
|
109101
109095
|
}
|
|
109102
109096
|
class CR extends Gg {
|
|
109103
109097
|
constructor(A, e) {
|
|
109104
|
-
super(), this.type =
|
|
109098
|
+
super(), this.type = qi.Polyline, this.vertices = A, this.indices = e ?? new Uint32Array(0);
|
|
109105
109099
|
}
|
|
109106
109100
|
intoRaw() {
|
|
109107
109101
|
return ve.polyline(this.vertices, this.indices);
|
|
@@ -109109,7 +109103,7 @@ class CR extends Gg {
|
|
|
109109
109103
|
}
|
|
109110
109104
|
class BR extends Gg {
|
|
109111
109105
|
constructor(A, e) {
|
|
109112
|
-
super(), this.type =
|
|
109106
|
+
super(), this.type = qi.TriMesh, this.vertices = A, this.indices = e;
|
|
109113
109107
|
}
|
|
109114
109108
|
intoRaw() {
|
|
109115
109109
|
return ve.trimesh(this.vertices, this.indices);
|
|
@@ -109117,7 +109111,7 @@ class BR extends Gg {
|
|
|
109117
109111
|
}
|
|
109118
109112
|
class mD extends Gg {
|
|
109119
109113
|
constructor(A, e) {
|
|
109120
|
-
super(), this.type =
|
|
109114
|
+
super(), this.type = qi.ConvexPolyhedron, this.vertices = A, this.indices = e;
|
|
109121
109115
|
}
|
|
109122
109116
|
intoRaw() {
|
|
109123
109117
|
return this.indices ? ve.convexMesh(this.vertices, this.indices) : ve.convexHull(this.vertices);
|
|
@@ -109125,7 +109119,7 @@ class mD extends Gg {
|
|
|
109125
109119
|
}
|
|
109126
109120
|
class SD extends Gg {
|
|
109127
109121
|
constructor(A, e, t) {
|
|
109128
|
-
super(), this.type =
|
|
109122
|
+
super(), this.type = qi.RoundConvexPolyhedron, this.vertices = A, this.indices = e, this.borderRadius = t;
|
|
109129
109123
|
}
|
|
109130
109124
|
intoRaw() {
|
|
109131
109125
|
return this.indices ? ve.roundConvexMesh(this.vertices, this.indices, this.borderRadius) : ve.roundConvexHull(this.vertices, this.borderRadius);
|
|
@@ -109133,7 +109127,7 @@ class SD extends Gg {
|
|
|
109133
109127
|
}
|
|
109134
109128
|
class cR extends Gg {
|
|
109135
109129
|
constructor(A, e, t, i) {
|
|
109136
|
-
super(), this.type =
|
|
109130
|
+
super(), this.type = qi.HeightField, this.nrows = A, this.ncols = e, this.heights = t, this.scale = i;
|
|
109137
109131
|
}
|
|
109138
109132
|
intoRaw() {
|
|
109139
109133
|
let A = aA.intoRaw(this.scale), e = ve.heightfield(this.nrows, this.ncols, this.heights, A);
|
|
@@ -109142,7 +109136,7 @@ class cR extends Gg {
|
|
|
109142
109136
|
}
|
|
109143
109137
|
class QR extends Gg {
|
|
109144
109138
|
constructor(A, e) {
|
|
109145
|
-
super(), this.type =
|
|
109139
|
+
super(), this.type = qi.Cylinder, this.halfHeight = A, this.radius = e;
|
|
109146
109140
|
}
|
|
109147
109141
|
intoRaw() {
|
|
109148
109142
|
return ve.cylinder(this.halfHeight, this.radius);
|
|
@@ -109150,7 +109144,7 @@ class QR extends Gg {
|
|
|
109150
109144
|
}
|
|
109151
109145
|
class lR extends Gg {
|
|
109152
109146
|
constructor(A, e, t) {
|
|
109153
|
-
super(), this.type =
|
|
109147
|
+
super(), this.type = qi.RoundCylinder, this.borderRadius = t, this.halfHeight = A, this.radius = e;
|
|
109154
109148
|
}
|
|
109155
109149
|
intoRaw() {
|
|
109156
109150
|
return ve.roundCylinder(this.halfHeight, this.radius, this.borderRadius);
|
|
@@ -109158,7 +109152,7 @@ class lR extends Gg {
|
|
|
109158
109152
|
}
|
|
109159
109153
|
class hR extends Gg {
|
|
109160
109154
|
constructor(A, e) {
|
|
109161
|
-
super(), this.type =
|
|
109155
|
+
super(), this.type = qi.Cone, this.halfHeight = A, this.radius = e;
|
|
109162
109156
|
}
|
|
109163
109157
|
intoRaw() {
|
|
109164
109158
|
return ve.cone(this.halfHeight, this.radius);
|
|
@@ -109166,7 +109160,7 @@ class hR extends Gg {
|
|
|
109166
109160
|
}
|
|
109167
109161
|
class ER extends Gg {
|
|
109168
109162
|
constructor(A, e, t) {
|
|
109169
|
-
super(), this.type =
|
|
109163
|
+
super(), this.type = qi.RoundCone, this.halfHeight = A, this.radius = e, this.borderRadius = t;
|
|
109170
109164
|
}
|
|
109171
109165
|
intoRaw() {
|
|
109172
109166
|
return ve.roundCone(this.halfHeight, this.radius, this.borderRadius);
|
|
@@ -110101,7 +110095,7 @@ class ii {
|
|
|
110101
110095
|
}
|
|
110102
110096
|
class t_ {
|
|
110103
110097
|
constructor(A) {
|
|
110104
|
-
this.raw = A || new
|
|
110098
|
+
this.raw = A || new Ki(), this.map = new tR(), A && A.forEachColliderHandle((e) => {
|
|
110105
110099
|
this.map.set(e, new hd(this, e, null));
|
|
110106
110100
|
});
|
|
110107
110101
|
}
|
|
@@ -110228,7 +110222,7 @@ var YmA = Object.freeze({ __proto__: null, version: wj, Vector3: yq, VectorOps:
|
|
|
110228
110222
|
}, ImpulseJoint: Qn, UnitImpulseJoint: iR, FixedImpulseJoint: Gq, RopeImpulseJoint: kq, SpringImpulseJoint: Mq, PrismaticImpulseJoint: Rq, RevoluteImpulseJoint: Uq, GenericImpulseJoint: Nq, SphericalImpulseJoint: Fq, JointData: qn, ImpulseJointSet: bq, MultibodyJoint: EC, UnitMultibodyJoint: gR, FixedMultibodyJoint: Kq, PrismaticMultibodyJoint: xq, RevoluteMultibodyJoint: Jq, SphericalMultibodyJoint: vq, MultibodyJointSet: Lq, get CoefficientCombineRule() {
|
|
110229
110223
|
return Wi;
|
|
110230
110224
|
}, CCDSolver: qq, IslandManager: _q, BroadPhase: Tq, NarrowPhase: Hq, TempContactManifold: Yq, Shape: Gg, get ShapeType() {
|
|
110231
|
-
return
|
|
110225
|
+
return qi;
|
|
110232
110226
|
}, Ball: Jy, HalfSpace: Pq, Cuboid: IR, RoundCuboid: oR, Capsule: sR, Segment: nR, Triangle: aR, RoundTriangle: rR, Polyline: CR, TriMesh: BR, ConvexPolyhedron: mD, RoundConvexPolyhedron: SD, Heightfield: cR, Cylinder: QR, RoundCylinder: lR, Cone: hR, RoundCone: ER, get ActiveCollisionTypes() {
|
|
110233
110227
|
return Bd;
|
|
110234
110228
|
}, Collider: hd, get MassPropsMode() {
|
|
@@ -110342,7 +110336,7 @@ const OmA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
110342
110336
|
ShapeContact: al,
|
|
110343
110337
|
ShapeTOI: xl,
|
|
110344
110338
|
get ShapeType() {
|
|
110345
|
-
return
|
|
110339
|
+
return qi;
|
|
110346
110340
|
},
|
|
110347
110341
|
get SolverFlags() {
|
|
110348
110342
|
return RG;
|
|
@@ -110896,12 +110890,12 @@ Error:`, s), null;
|
|
|
110896
110890
|
const t = e.shape;
|
|
110897
110891
|
let i = !1;
|
|
110898
110892
|
switch (t.type) {
|
|
110899
|
-
case
|
|
110893
|
+
case qi.Ball: {
|
|
110900
110894
|
const c = t, Q = A, l = A.gameObject, d = Qi(l, this._tempPosition), h = Math.abs(Q.radius * d.x);
|
|
110901
110895
|
i = c.radius !== h, c.radius = h, i && e.setShape(c);
|
|
110902
110896
|
break;
|
|
110903
110897
|
}
|
|
110904
|
-
case
|
|
110898
|
+
case qi.Cuboid:
|
|
110905
110899
|
const I = t, o = A, s = A.gameObject, n = Qi(s, this._tempPosition), a = o.size.x * 0.5 * n.x, r = o.size.y * 0.5 * n.y, C = o.size.z * 0.5 * n.z;
|
|
110906
110900
|
i = I.halfExtents.x !== a || I.halfExtents.y !== r || I.halfExtents.z !== C, I.halfExtents.x = a, I.halfExtents.y = r, I.halfExtents.z = C, i && e.setShape(I);
|
|
110907
110901
|
break;
|
|
@@ -113003,7 +112997,7 @@ function FSA(g, A, e = {}, t = 0, i = 1 / 0) {
|
|
|
113003
112997
|
const bh = /* @__PURE__ */ new m(), Kh = /* @__PURE__ */ new m(), xh = /* @__PURE__ */ new m(), rm = /* @__PURE__ */ new tA(), Cm = /* @__PURE__ */ new tA(), Bm = /* @__PURE__ */ new tA(), bP = /* @__PURE__ */ new m(), KP = /* @__PURE__ */ new m(), xP = /* @__PURE__ */ new m(), cm = /* @__PURE__ */ new m();
|
|
113004
112998
|
function bSA(g, A, e, t, i, I, o, s) {
|
|
113005
112999
|
let n;
|
|
113006
|
-
if (I ===
|
|
113000
|
+
if (I === Gi ? n = g.intersectTriangle(t, e, A, !0, i) : n = g.intersectTriangle(A, e, t, I !== yt, i), n === null)
|
|
113007
113001
|
return null;
|
|
113008
113002
|
const a = g.origin.distanceTo(i);
|
|
113009
113003
|
return a < o || a > s ? null : {
|
|
@@ -114264,13 +114258,13 @@ class pR extends ZI {
|
|
|
114264
114258
|
let c, Q, l, d, h = yGA(I);
|
|
114265
114259
|
switch (r) {
|
|
114266
114260
|
case si:
|
|
114267
|
-
l = 1, Q = wGA(I), s && a === 1 ? (d = n, h += "8", n === Uint8Array ? c =
|
|
114261
|
+
l = 1, Q = wGA(I), s && a === 1 ? (d = n, h += "8", n === Uint8Array ? c = Mi : (c = SS, h += "_SNORM")) : (d = Float32Array, h += "32F", c = si);
|
|
114268
114262
|
break;
|
|
114269
114263
|
case GQ:
|
|
114270
114264
|
h += a * 8 + "I", l = s ? Math.pow(2, n.BYTES_PER_ELEMENT * 8 - 1) : 1, Q = XP(I), a === 1 ? (d = Int8Array, c = SS) : a === 2 ? (d = Int16Array, c = IJ) : (d = Int32Array, c = GQ);
|
|
114271
114265
|
break;
|
|
114272
114266
|
case YI:
|
|
114273
|
-
h += a * 8 + "UI", l = s ? Math.pow(2, n.BYTES_PER_ELEMENT * 8 - 1) : 1, Q = XP(I), a === 1 ? (d = Uint8Array, c =
|
|
114267
|
+
h += a * 8 + "UI", l = s ? Math.pow(2, n.BYTES_PER_ELEMENT * 8 - 1) : 1, Q = XP(I), a === 1 ? (d = Uint8Array, c = Mi) : a === 2 ? (d = Uint16Array, c = KD) : (d = Uint32Array, c = YI);
|
|
114274
114268
|
break;
|
|
114275
114269
|
}
|
|
114276
114270
|
C === 3 && (Q === bt || Q === ZE) && (C = 4);
|
|
@@ -115646,7 +115640,7 @@ export {
|
|
|
115646
115640
|
Sl as InheritVelocityModule,
|
|
115647
115641
|
IBA as Input,
|
|
115648
115642
|
js as InputEventQueue,
|
|
115649
|
-
|
|
115643
|
+
xi as InputEvents,
|
|
115650
115644
|
Pd as InputField,
|
|
115651
115645
|
LE as InstanceHandle,
|
|
115652
115646
|
vE as InstancingHandler,
|
|
@@ -115813,7 +115807,7 @@ export {
|
|
|
115813
115807
|
il as ToneMappingEffect,
|
|
115814
115808
|
nM as TrackHandler,
|
|
115815
115809
|
vs as TrackType,
|
|
115816
|
-
|
|
115810
|
+
Ti as TrailModule,
|
|
115817
115811
|
Ng as TransformData,
|
|
115818
115812
|
$d as TransformGizmo,
|
|
115819
115813
|
yI as TriggerBuilder,
|
|
@@ -116064,7 +116058,7 @@ export {
|
|
|
116064
116058
|
Kk as setWorldRotationXYZ,
|
|
116065
116059
|
jf as setWorldScale,
|
|
116066
116060
|
yv as showBalloonError,
|
|
116067
|
-
|
|
116061
|
+
vi as showBalloonMessage,
|
|
116068
116062
|
$t as showBalloonWarning,
|
|
116069
116063
|
aW as showDebugConsole,
|
|
116070
116064
|
UMA as slerp,
|