@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
|
@@ -15,7 +15,7 @@ var qd = (s, e, t) => (lT(s, e, "access private method"), t);
|
|
|
15
15
|
* Copyright 2010-2023 Three.js Authors
|
|
16
16
|
* SPDX-License-Identifier: MIT
|
|
17
17
|
*/
|
|
18
|
-
const Xh = "162", kf = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Df = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, wX = 0, q2 = 1, SX = 2, xK = 3, _K = 0, WB = 1, HB = 2, nc = 3, Jn = 0,
|
|
18
|
+
const Xh = "162", kf = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Df = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, wX = 0, q2 = 1, SX = 2, xK = 3, _K = 0, WB = 1, HB = 2, nc = 3, Jn = 0, An = 1, yi = 2, xn = 0, ud = 1, wp = 2, $2 = 3, eL = 4, QB = 5, td = 100, CX = 101, MX = 102, tL = 103, F1 = 104, EX = 200, TX = 201, RX = 202, IX = 203, G1 = 204, N1 = 205, LX = 206, PX = 207, BX = 208, kX = 209, DX = 210, OX = 211, FX = 212, GX = 213, NX = 214, ZB = 0, KC = 1, Qv = 2, Sp = 3, x0 = 4, JC = 5, qC = 6, XA = 7, WA = 0, zX = 1, UX = 2, ho = 0, V0 = 1, HA = 2, VX = 3, QA = 4, XX = 5, X0 = 6, Cp = 7, iL = "attached", WX = "detached", $C = 300, Wh = 301, Md = 302, uo = 303, _0 = 304, W0 = 306, Do = 1e3, as = 1001, Hh = 1002, Bt = 1003, w0 = 1004, wK = 1004, Sh = 1005, SK = 1005, Gt = 1006, op = 1007, CK = 1007, Lo = 1008, MK = 1008, _n = 1009, z1 = 1010, YB = 1011, ZA = 1012, ap = 1013, Dr = 1014, en = 1015, ws = 1016, jB = 1017, KB = 1018, Gh = 1020, HX = 1021, Ti = 1023, eM = 1024, QX = 1025, dd = 1026, Ed = 1027, zp = 1028, tM = 1029, iM = 1030, YA = 1031, S0 = 1033, YS = 33776, jS = 33777, KS = 33778, JS = 33779, nL = 35840, sL = 35841, rL = 35842, oL = 35843, JB = 36196, aL = 37492, lL = 37496, cL = 37808, hL = 37809, uL = 37810, dL = 37811, fL = 37812, pL = 37813, mL = 37814, gL = 37815, yL = 37816, bL = 37817, vL = 37818, AL = 37819, xL = 37820, _L = 37821, qS = 36492, wL = 36494, SL = 36495, ZX = 36283, CL = 36284, ML = 36285, EL = 36286, Zv = 2200, qB = 2201, YX = 2202, Td = 2300, Ec = 2301, $S = 2302, Qf = 2400, Zf = 2401, Yv = 2402, nM = 2500, $B = 2501, jX = 0, ek = 1, U1 = 2, KX = 3e3, TL = 3001, fr = 3200, sM = 3201, Bd = 0, JX = 1, Io = "", xt = "srgb", Fi = "srgb-linear", rM = "display-p3", jA = "display-p3-linear", jv = "linear", ji = "srgb", Kv = "rec709", Jv = "p3", qX = 0, ju = 7680, $X = 7681, eW = 7682, tW = 7683, iW = 34055, nW = 34056, sW = 5386, RL = 512, rW = 513, oW = 514, aW = 515, lW = 516, cW = 517, hW = 518, V1 = 519, uW = 512, dW = 513, fW = 514, tk = 515, pW = 516, mW = 517, gW = 518, yW = 519, qv = 35044, Rr = 35048, EK = 35040, TK = 35045, RK = 35049, IK = 35041, LK = 35046, PK = 35050, BK = 35042, kK = "100", X1 = "300 es", W1 = 1035, gc = 2e3, $v = 2001;
|
|
19
19
|
let Ws = class {
|
|
20
20
|
addEventListener(e, t) {
|
|
21
21
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -769,7 +769,7 @@ function uT(s) {
|
|
|
769
769
|
} : (console.warn("THREE.Texture: Unable to serialize Texture."), {});
|
|
770
770
|
}
|
|
771
771
|
let qK = 0, Wt = class e1 extends Ws {
|
|
772
|
-
constructor(e = e1.DEFAULT_IMAGE, t = e1.DEFAULT_MAPPING, i = as, n = as, r = Gt, o = Lo, a = Ti, l =
|
|
772
|
+
constructor(e = e1.DEFAULT_IMAGE, t = e1.DEFAULT_MAPPING, i = as, n = as, r = Gt, o = Lo, a = Ti, l = _n, c = e1.DEFAULT_ANISOTROPY, h = Io) {
|
|
773
773
|
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: qK++ }), this.uuid = ha(), this.name = "", this.source = new Ph(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = i, this.wrapT = n, this.magFilter = r, this.minFilter = o, this.anisotropy = c, this.format = a, this.internalFormat = null, this.type = l, this.offset = new ee(0, 0), this.repeat = new ee(1, 1), this.center = new ee(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Ft(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = h, 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 fe = class extends ge {
|
|
|
3993
3993
|
};
|
|
3994
3994
|
function b8(s, e, t, i, n, r, o, a) {
|
|
3995
3995
|
let l;
|
|
3996
|
-
if (e.side ===
|
|
3996
|
+
if (e.side === An ? l = i.intersectTriangle(o, r, n, !0, a) : l = i.intersectTriangle(n, r, o, e.side === Jn, a), l === null)
|
|
3997
3997
|
return null;
|
|
3998
3998
|
d_.copy(a), d_.applyMatrix4(s.matrixWorld);
|
|
3999
3999
|
const c = t.ray.origin.distanceTo(d_);
|
|
@@ -4404,8 +4404,8 @@ class ak extends Jt {
|
|
|
4404
4404
|
uniforms: M0(i.uniforms),
|
|
4405
4405
|
vertexShader: i.vertexShader,
|
|
4406
4406
|
fragmentShader: i.fragmentShader,
|
|
4407
|
-
side:
|
|
4408
|
-
blending:
|
|
4407
|
+
side: An,
|
|
4408
|
+
blending: xn
|
|
4409
4409
|
});
|
|
4410
4410
|
r.uniforms.tEquirect.value = t;
|
|
4411
4411
|
const o = new fe(n, r), a = t.minFilter;
|
|
@@ -8816,7 +8816,7 @@ function o7(s, e, t, i, n, r, o) {
|
|
|
8816
8816
|
uniforms: M0(hr.backgroundCube.uniforms),
|
|
8817
8817
|
vertexShader: hr.backgroundCube.vertexShader,
|
|
8818
8818
|
fragmentShader: hr.backgroundCube.fragmentShader,
|
|
8819
|
-
side:
|
|
8819
|
+
side: An,
|
|
8820
8820
|
depthTest: !1,
|
|
8821
8821
|
depthWrite: !1,
|
|
8822
8822
|
fog: !1
|
|
@@ -9404,7 +9404,7 @@ class PL {
|
|
|
9404
9404
|
h.getClearColor(jF), h.toneMapping = ho, h.autoClear = !1;
|
|
9405
9405
|
const p = new qt({
|
|
9406
9406
|
name: "PMREM.Background",
|
|
9407
|
-
side:
|
|
9407
|
+
side: An,
|
|
9408
9408
|
depthWrite: !1,
|
|
9409
9409
|
depthTest: !1
|
|
9410
9410
|
}), m = new fe(new Ki(), p);
|
|
@@ -9616,7 +9616,7 @@ function d7(s, e, t) {
|
|
|
9616
9616
|
}
|
|
9617
9617
|
`
|
|
9618
9618
|
),
|
|
9619
|
-
blending:
|
|
9619
|
+
blending: xn,
|
|
9620
9620
|
depthTest: !1,
|
|
9621
9621
|
depthWrite: !1
|
|
9622
9622
|
});
|
|
@@ -9651,7 +9651,7 @@ function $F() {
|
|
|
9651
9651
|
}
|
|
9652
9652
|
`
|
|
9653
9653
|
),
|
|
9654
|
-
blending:
|
|
9654
|
+
blending: xn,
|
|
9655
9655
|
depthTest: !1,
|
|
9656
9656
|
depthWrite: !1
|
|
9657
9657
|
});
|
|
@@ -9684,7 +9684,7 @@ function eG() {
|
|
|
9684
9684
|
}
|
|
9685
9685
|
`
|
|
9686
9686
|
),
|
|
9687
|
-
blending:
|
|
9687
|
+
blending: xn,
|
|
9688
9688
|
depthTest: !1,
|
|
9689
9689
|
depthWrite: !1
|
|
9690
9690
|
});
|
|
@@ -11332,7 +11332,7 @@ function Oq(s, e, t, i, n, r, o) {
|
|
|
11332
11332
|
decodeVideoTexture: ot && S.map.isVideoTexture === !0 && Mi.getTransfer(S.map.colorSpace) === ji,
|
|
11333
11333
|
premultipliedAlpha: S.premultipliedAlpha,
|
|
11334
11334
|
doubleSided: S.side === yi,
|
|
11335
|
-
flipSided: S.side ===
|
|
11335
|
+
flipSided: S.side === An,
|
|
11336
11336
|
useDepthPacking: S.depthPacking >= 0,
|
|
11337
11337
|
depthPacking: S.depthPacking || 0,
|
|
11338
11338
|
index0AttributeName: S.index0AttributeName,
|
|
@@ -11808,7 +11808,7 @@ void main() {
|
|
|
11808
11808
|
}`;
|
|
11809
11809
|
function Yq(s, e, t) {
|
|
11810
11810
|
let i = new Mp();
|
|
11811
|
-
const n = new ee(), r = new ee(), o = new Je(), a = new qA({ depthPacking: sM }), l = new ck(), c = {}, h = t.maxTextureSize, u = { [Jn]:
|
|
11811
|
+
const n = new ee(), r = new ee(), o = new Je(), a = new qA({ depthPacking: sM }), l = new ck(), c = {}, h = t.maxTextureSize, u = { [Jn]: An, [An]: Jn, [yi]: yi }, f = new Ot({
|
|
11812
11812
|
defines: {
|
|
11813
11813
|
VSM_SAMPLES: 8
|
|
11814
11814
|
},
|
|
@@ -11836,7 +11836,7 @@ function Yq(s, e, t) {
|
|
|
11836
11836
|
if (g.enabled === !1 || g.autoUpdate === !1 && g.needsUpdate === !1 || w.length === 0)
|
|
11837
11837
|
return;
|
|
11838
11838
|
const I = s.getRenderTarget(), S = s.getActiveCubeFace(), R = s.getActiveMipmapLevel(), B = s.state;
|
|
11839
|
-
B.setBlending(
|
|
11839
|
+
B.setBlending(xn), B.buffers.color.setClear(1, 1, 1, 1), B.buffers.depth.setTest(!0), B.setScissorTest(!1);
|
|
11840
11840
|
const O = y !== nc && this.type === nc, P = y === nc && this.type !== nc;
|
|
11841
11841
|
for (let U = 0, D = w.length; U < D; U++) {
|
|
11842
11842
|
const G = w[U], z = G.shadow;
|
|
@@ -12005,11 +12005,11 @@ function jq(s, e, t) {
|
|
|
12005
12005
|
setMask: function(ai) {
|
|
12006
12006
|
Be !== ai && !$ && (s.stencilMask(ai), Be = ai);
|
|
12007
12007
|
},
|
|
12008
|
-
setFunc: function(ai,
|
|
12009
|
-
(ce !== ai || Xe !==
|
|
12008
|
+
setFunc: function(ai, Cn, Dn) {
|
|
12009
|
+
(ce !== ai || Xe !== Cn || je !== Dn) && (s.stencilFunc(ai, Cn, Dn), ce = ai, Xe = Cn, je = Dn);
|
|
12010
12010
|
},
|
|
12011
|
-
setOp: function(ai,
|
|
12012
|
-
(si !== ai || Ei !==
|
|
12011
|
+
setOp: function(ai, Cn, Dn) {
|
|
12012
|
+
(si !== ai || Ei !== Cn || dn !== Dn) && (s.stencilOp(ai, Cn, Dn), si = ai, Ei = Cn, dn = Dn);
|
|
12013
12013
|
},
|
|
12014
12014
|
setLocked: function(ai) {
|
|
12015
12015
|
$ = ai;
|
|
@@ -12038,7 +12038,7 @@ function jq(s, e, t) {
|
|
|
12038
12038
|
return si;
|
|
12039
12039
|
}
|
|
12040
12040
|
const Ue = {};
|
|
12041
|
-
Ue[s.TEXTURE_2D] = Fe(s.TEXTURE_2D, s.TEXTURE_2D, 1), Ue[s.TEXTURE_CUBE_MAP] = Fe(s.TEXTURE_CUBE_MAP, s.TEXTURE_CUBE_MAP_POSITIVE_X, 6), i && (Ue[s.TEXTURE_2D_ARRAY] = Fe(s.TEXTURE_2D_ARRAY, s.TEXTURE_2D_ARRAY, 1, 1), Ue[s.TEXTURE_3D] = Fe(s.TEXTURE_3D, s.TEXTURE_3D, 1, 1)), a.setClear(0, 0, 0, 1), l.setClear(1), c.setClear(0), Qe(s.DEPTH_TEST), l.setFunc(Sp), et(!1), ct(q2), Qe(s.CULL_FACE), Me(
|
|
12041
|
+
Ue[s.TEXTURE_2D] = Fe(s.TEXTURE_2D, s.TEXTURE_2D, 1), Ue[s.TEXTURE_CUBE_MAP] = Fe(s.TEXTURE_CUBE_MAP, s.TEXTURE_CUBE_MAP_POSITIVE_X, 6), i && (Ue[s.TEXTURE_2D_ARRAY] = Fe(s.TEXTURE_2D_ARRAY, s.TEXTURE_2D_ARRAY, 1, 1), Ue[s.TEXTURE_3D] = Fe(s.TEXTURE_3D, s.TEXTURE_3D, 1, 1)), a.setClear(0, 0, 0, 1), l.setClear(1), c.setClear(0), Qe(s.DEPTH_TEST), l.setFunc(Sp), et(!1), ct(q2), Qe(s.CULL_FACE), Me(xn);
|
|
12042
12042
|
function Qe($) {
|
|
12043
12043
|
f[$] !== !0 && (s.enable($), f[$] = !0);
|
|
12044
12044
|
}
|
|
@@ -12100,7 +12100,7 @@ function jq(s, e, t) {
|
|
|
12100
12100
|
[NX]: s.ONE_MINUS_CONSTANT_ALPHA
|
|
12101
12101
|
};
|
|
12102
12102
|
function Me($, Be, ce, Xe, je, si, Ei, dn, fn, ai) {
|
|
12103
|
-
if ($ ===
|
|
12103
|
+
if ($ === xn) {
|
|
12104
12104
|
y === !0 && (lt(s.BLEND), y = !1);
|
|
12105
12105
|
return;
|
|
12106
12106
|
}
|
|
@@ -12150,8 +12150,8 @@ function jq(s, e, t) {
|
|
|
12150
12150
|
}
|
|
12151
12151
|
function it($, Be) {
|
|
12152
12152
|
$.side === yi ? lt(s.CULL_FACE) : Qe(s.CULL_FACE);
|
|
12153
|
-
let ce = $.side ===
|
|
12154
|
-
Be && (ce = !ce), et(ce), $.blending === ud && $.transparent === !1 ? Me(
|
|
12153
|
+
let ce = $.side === An;
|
|
12154
|
+
Be && (ce = !ce), et(ce), $.blending === ud && $.transparent === !1 ? Me(xn) : Me($.blending, $.blendEquation, $.blendSrc, $.blendDst, $.blendEquationAlpha, $.blendSrcAlpha, $.blendDstAlpha, $.blendColor, $.blendAlpha, $.premultipliedAlpha), l.setFunc($.depthFunc), l.setTest($.depthTest), l.setMask($.depthWrite), a.setMask($.colorWrite);
|
|
12155
12155
|
const Xe = $.stencilWrite;
|
|
12156
12156
|
c.setTest(Xe), Xe && (c.setMask($.stencilWriteMask), c.setFunc($.stencilFunc, $.stencilRef, $.stencilFuncMask), c.setOp($.stencilFail, $.stencilZFail, $.stencilZPass)), X($.polygonOffset, $.polygonOffsetFactor, $.polygonOffsetUnits), $.alphaToCoverage === !0 ? Qe(s.SAMPLE_ALPHA_TO_COVERAGE) : lt(s.SAMPLE_ALPHA_TO_COVERAGE);
|
|
12157
12157
|
}
|
|
@@ -12824,7 +12824,7 @@ function Kq(s, e, t, i, n, r, o) {
|
|
|
12824
12824
|
}
|
|
12825
12825
|
function ct(X, F) {
|
|
12826
12826
|
const ye = X.colorSpace, Ae = X.format, Le = X.type;
|
|
12827
|
-
return X.isCompressedTexture === !0 || X.isVideoTexture === !0 || X.format === W1 || ye !== Fi && ye !== Io && (Mi.getTransfer(ye) === ji ? a === !1 ? e.has("EXT_sRGB") === !0 && Ae === Ti ? (X.format = W1, X.minFilter = Gt, X.generateMipmaps = !1) : F = nk.sRGBToLinear(F) : (Ae !== Ti || Le !==
|
|
12827
|
+
return X.isCompressedTexture === !0 || X.isVideoTexture === !0 || X.format === W1 || ye !== Fi && ye !== Io && (Mi.getTransfer(ye) === ji ? a === !1 ? e.has("EXT_sRGB") === !0 && Ae === Ti ? (X.format = W1, X.minFilter = Gt, X.generateMipmaps = !1) : F = nk.sRGBToLinear(F) : (Ae !== Ti || Le !== _n) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", ye)), F;
|
|
12828
12828
|
}
|
|
12829
12829
|
function Ut(X) {
|
|
12830
12830
|
return typeof HTMLImageElement < "u" && X instanceof HTMLImageElement ? (h.width = X.naturalWidth || X.width, h.height = X.naturalHeight || X.height) : typeof VideoFrame < "u" && X instanceof VideoFrame ? (h.width = X.displayWidth, h.height = X.displayHeight) : (h.width = X.width, h.height = X.height), h;
|
|
@@ -12836,7 +12836,7 @@ function OW(s, e, t) {
|
|
|
12836
12836
|
function n(r, o = Io) {
|
|
12837
12837
|
let a;
|
|
12838
12838
|
const l = Mi.getTransfer(o);
|
|
12839
|
-
if (r ===
|
|
12839
|
+
if (r === _n)
|
|
12840
12840
|
return s.UNSIGNED_BYTE;
|
|
12841
12841
|
if (r === jB)
|
|
12842
12842
|
return s.UNSIGNED_SHORT_4_4_4_4;
|
|
@@ -13188,7 +13188,7 @@ class t$ extends Ws {
|
|
|
13188
13188
|
p.framebufferHeight,
|
|
13189
13189
|
{
|
|
13190
13190
|
format: Ti,
|
|
13191
|
-
type:
|
|
13191
|
+
type: _n,
|
|
13192
13192
|
colorSpace: e.outputColorSpace,
|
|
13193
13193
|
stencilBuffer: g.stencil
|
|
13194
13194
|
}
|
|
@@ -13206,7 +13206,7 @@ class t$ extends Ws {
|
|
|
13206
13206
|
f.textureHeight,
|
|
13207
13207
|
{
|
|
13208
13208
|
format: Ti,
|
|
13209
|
-
type:
|
|
13209
|
+
type: _n,
|
|
13210
13210
|
depthTexture: new Q0(f.textureWidth, f.textureHeight, _e, void 0, void 0, void 0, void 0, void 0, void 0, be),
|
|
13211
13211
|
stencilBuffer: g.stencil,
|
|
13212
13212
|
colorSpace: e.outputColorSpace,
|
|
@@ -13339,7 +13339,7 @@ function n$(s, e) {
|
|
|
13339
13339
|
y.isMeshBasicMaterial || y.isMeshLambertMaterial ? r(g, y) : y.isMeshToonMaterial ? (r(g, y), u(g, y)) : y.isMeshPhongMaterial ? (r(g, y), h(g, y)) : y.isMeshStandardMaterial ? (r(g, y), f(g, y), y.isMeshPhysicalMaterial && p(g, y, x)) : y.isMeshMatcapMaterial ? (r(g, y), m(g, y)) : y.isMeshDepthMaterial ? r(g, y) : y.isMeshDistanceMaterial ? (r(g, y), b(g, y)) : y.isMeshNormalMaterial ? r(g, y) : y.isLineBasicMaterial ? (o(g, y), y.isLineDashedMaterial && a(g, y)) : y.isPointsMaterial ? l(g, y, v, A) : y.isSpriteMaterial ? c(g, y) : y.isShadowMaterial ? (g.color.value.copy(y.color), g.opacity.value = y.opacity) : y.isShaderMaterial && (y.uniformsNeedUpdate = !1);
|
|
13340
13340
|
}
|
|
13341
13341
|
function r(g, y) {
|
|
13342
|
-
g.opacity.value = y.opacity, y.color && g.diffuse.value.copy(y.color), y.emissive && g.emissive.value.copy(y.emissive).multiplyScalar(y.emissiveIntensity), y.map && (g.map.value = y.map, t(y.map, g.mapTransform)), y.alphaMap && (g.alphaMap.value = y.alphaMap, t(y.alphaMap, g.alphaMapTransform)), y.bumpMap && (g.bumpMap.value = y.bumpMap, t(y.bumpMap, g.bumpMapTransform), g.bumpScale.value = y.bumpScale, y.side ===
|
|
13342
|
+
g.opacity.value = y.opacity, y.color && g.diffuse.value.copy(y.color), y.emissive && g.emissive.value.copy(y.emissive).multiplyScalar(y.emissiveIntensity), y.map && (g.map.value = y.map, t(y.map, g.mapTransform)), y.alphaMap && (g.alphaMap.value = y.alphaMap, t(y.alphaMap, g.alphaMapTransform)), y.bumpMap && (g.bumpMap.value = y.bumpMap, t(y.bumpMap, g.bumpMapTransform), g.bumpScale.value = y.bumpScale, y.side === An && (g.bumpScale.value *= -1)), y.normalMap && (g.normalMap.value = y.normalMap, t(y.normalMap, g.normalMapTransform), g.normalScale.value.copy(y.normalScale), y.side === An && g.normalScale.value.negate()), y.displacementMap && (g.displacementMap.value = y.displacementMap, t(y.displacementMap, g.displacementMapTransform), g.displacementScale.value = y.displacementScale, g.displacementBias.value = y.displacementBias), y.emissiveMap && (g.emissiveMap.value = y.emissiveMap, t(y.emissiveMap, g.emissiveMapTransform)), y.specularMap && (g.specularMap.value = y.specularMap, t(y.specularMap, g.specularMapTransform)), y.alphaTest > 0 && (g.alphaTest.value = y.alphaTest);
|
|
13343
13343
|
const v = e.get(y), A = v.envMap, x = v.envMapRotation;
|
|
13344
13344
|
if (A && (g.envMap.value = A, rf.copy(x), rf.x *= -1, rf.y *= -1, rf.z *= -1, A.isCubeTexture && A.isRenderTargetTexture === !1 && (rf.y *= -1, rf.z *= -1), g.envMapRotation.value.setFromMatrix4(i$.makeRotationFromEuler(rf)), g.flipEnvMap.value = A.isCubeTexture && A.isRenderTargetTexture === !1 ? -1 : 1, g.reflectivity.value = y.reflectivity, g.ior.value = y.ior, g.refractionRatio.value = y.refractionRatio), y.lightMap) {
|
|
13345
13345
|
g.lightMap.value = y.lightMap;
|
|
@@ -13370,7 +13370,7 @@ function n$(s, e) {
|
|
|
13370
13370
|
g.metalness.value = y.metalness, y.metalnessMap && (g.metalnessMap.value = y.metalnessMap, t(y.metalnessMap, g.metalnessMapTransform)), g.roughness.value = y.roughness, y.roughnessMap && (g.roughnessMap.value = y.roughnessMap, t(y.roughnessMap, g.roughnessMapTransform)), e.get(y).envMap && (g.envMapIntensity.value = y.envMapIntensity);
|
|
13371
13371
|
}
|
|
13372
13372
|
function p(g, y, v) {
|
|
13373
|
-
g.ior.value = y.ior, y.sheen > 0 && (g.sheenColor.value.copy(y.sheenColor).multiplyScalar(y.sheen), g.sheenRoughness.value = y.sheenRoughness, y.sheenColorMap && (g.sheenColorMap.value = y.sheenColorMap, t(y.sheenColorMap, g.sheenColorMapTransform)), y.sheenRoughnessMap && (g.sheenRoughnessMap.value = y.sheenRoughnessMap, t(y.sheenRoughnessMap, g.sheenRoughnessMapTransform))), y.clearcoat > 0 && (g.clearcoat.value = y.clearcoat, g.clearcoatRoughness.value = y.clearcoatRoughness, y.clearcoatMap && (g.clearcoatMap.value = y.clearcoatMap, t(y.clearcoatMap, g.clearcoatMapTransform)), y.clearcoatRoughnessMap && (g.clearcoatRoughnessMap.value = y.clearcoatRoughnessMap, t(y.clearcoatRoughnessMap, g.clearcoatRoughnessMapTransform)), y.clearcoatNormalMap && (g.clearcoatNormalMap.value = y.clearcoatNormalMap, t(y.clearcoatNormalMap, g.clearcoatNormalMapTransform), g.clearcoatNormalScale.value.copy(y.clearcoatNormalScale), y.side ===
|
|
13373
|
+
g.ior.value = y.ior, y.sheen > 0 && (g.sheenColor.value.copy(y.sheenColor).multiplyScalar(y.sheen), g.sheenRoughness.value = y.sheenRoughness, y.sheenColorMap && (g.sheenColorMap.value = y.sheenColorMap, t(y.sheenColorMap, g.sheenColorMapTransform)), y.sheenRoughnessMap && (g.sheenRoughnessMap.value = y.sheenRoughnessMap, t(y.sheenRoughnessMap, g.sheenRoughnessMapTransform))), y.clearcoat > 0 && (g.clearcoat.value = y.clearcoat, g.clearcoatRoughness.value = y.clearcoatRoughness, y.clearcoatMap && (g.clearcoatMap.value = y.clearcoatMap, t(y.clearcoatMap, g.clearcoatMapTransform)), y.clearcoatRoughnessMap && (g.clearcoatRoughnessMap.value = y.clearcoatRoughnessMap, t(y.clearcoatRoughnessMap, g.clearcoatRoughnessMapTransform)), y.clearcoatNormalMap && (g.clearcoatNormalMap.value = y.clearcoatNormalMap, t(y.clearcoatNormalMap, g.clearcoatNormalMapTransform), g.clearcoatNormalScale.value.copy(y.clearcoatNormalScale), y.side === An && g.clearcoatNormalScale.value.negate())), y.iridescence > 0 && (g.iridescence.value = y.iridescence, g.iridescenceIOR.value = y.iridescenceIOR, g.iridescenceThicknessMinimum.value = y.iridescenceThicknessRange[0], g.iridescenceThicknessMaximum.value = y.iridescenceThicknessRange[1], y.iridescenceMap && (g.iridescenceMap.value = y.iridescenceMap, t(y.iridescenceMap, g.iridescenceMapTransform)), y.iridescenceThicknessMap && (g.iridescenceThicknessMap.value = y.iridescenceThicknessMap, t(y.iridescenceThicknessMap, g.iridescenceThicknessMapTransform))), y.transmission > 0 && (g.transmission.value = y.transmission, g.transmissionSamplerMap.value = v.texture, g.transmissionSamplerSize.value.set(v.width, v.height), y.transmissionMap && (g.transmissionMap.value = y.transmissionMap, t(y.transmissionMap, g.transmissionMapTransform)), g.thickness.value = y.thickness, y.thicknessMap && (g.thicknessMap.value = y.thicknessMap, t(y.thicknessMap, g.thicknessMapTransform)), g.attenuationDistance.value = y.attenuationDistance, g.attenuationColor.value.copy(y.attenuationColor)), y.anisotropy > 0 && (g.anisotropyVector.value.set(y.anisotropy * Math.cos(y.anisotropyRotation), y.anisotropy * Math.sin(y.anisotropyRotation)), y.anisotropyMap && (g.anisotropyMap.value = y.anisotropyMap, t(y.anisotropyMap, g.anisotropyMapTransform))), g.specularIntensity.value = y.specularIntensity, g.specularColor.value.copy(y.specularColor), y.specularColorMap && (g.specularColorMap.value = y.specularColorMap, t(y.specularColorMap, g.specularColorMapTransform)), y.specularIntensityMap && (g.specularIntensityMap.value = y.specularIntensityMap, t(y.specularIntensityMap, g.specularIntensityMapTransform));
|
|
13374
13374
|
}
|
|
13375
13375
|
function m(g, y) {
|
|
13376
13376
|
y.matcap && (g.matcap.value = y.matcap);
|
|
@@ -13632,7 +13632,7 @@ class eu {
|
|
|
13632
13632
|
K = me === S0 || me === YA || me === tM;
|
|
13633
13633
|
}
|
|
13634
13634
|
if (K) {
|
|
13635
|
-
const me = E.texture.type, ue = me ===
|
|
13635
|
+
const me = E.texture.type, ue = me === _n || me === Dr || me === ZA || me === Gh || me === jB || me === KB, xe = St.getClearColor(), Pe = St.getClearAlpha(), ke = xe.r, He = xe.g, $e = xe.b;
|
|
13636
13636
|
ue ? (p[0] = ke, p[1] = He, p[2] = $e, p[3] = Pe, Z.clearBufferuiv(Z.COLOR, 0, p)) : (m[0] = ke, m[1] = He, m[2] = $e, m[3] = Pe, Z.clearBufferiv(Z.COLOR, 0, m));
|
|
13637
13637
|
} else
|
|
13638
13638
|
j |= Z.COLOR_BUFFER_BIT;
|
|
@@ -13645,7 +13645,7 @@ class eu {
|
|
|
13645
13645
|
}, this.clearStencil = function() {
|
|
13646
13646
|
this.clear(!1, !1, !0);
|
|
13647
13647
|
}, this.dispose = function() {
|
|
13648
|
-
t.removeEventListener("webglcontextlost", ae, !1), t.removeEventListener("webglcontextrestored", $, !1), t.removeEventListener("webglcontextcreationerror", Be, !1), wt.dispose(), ft.dispose(), et.dispose(), Ut.dispose(), X.dispose(), Ae.dispose(), mt.dispose(), at.dispose(), Le.dispose(), H.dispose(), H.removeEventListener("sessionstart", fn), H.removeEventListener("sessionend", ai), _e && (_e.dispose(), _e = null),
|
|
13648
|
+
t.removeEventListener("webglcontextlost", ae, !1), t.removeEventListener("webglcontextrestored", $, !1), t.removeEventListener("webglcontextcreationerror", Be, !1), wt.dispose(), ft.dispose(), et.dispose(), Ut.dispose(), X.dispose(), Ae.dispose(), mt.dispose(), at.dispose(), Le.dispose(), H.dispose(), H.removeEventListener("sessionstart", fn), H.removeEventListener("sessionend", ai), _e && (_e.dispose(), _e = null), Cn.stop();
|
|
13649
13649
|
};
|
|
13650
13650
|
function ae(L) {
|
|
13651
13651
|
L.preventDefault(), console.log("THREE.WebGLRenderer: Context Lost."), x = !0;
|
|
@@ -13707,7 +13707,7 @@ class eu {
|
|
|
13707
13707
|
Zt.render(tt, Tt);
|
|
13708
13708
|
};
|
|
13709
13709
|
function si(L, V, W) {
|
|
13710
|
-
L.transparent === !0 && L.side === yi && L.forceSinglePass === !1 ? (L.side =
|
|
13710
|
+
L.transparent === !0 && L.side === yi && L.forceSinglePass === !1 ? (L.side = An, L.needsUpdate = !0, ii(L, V, W), L.side = Jn, L.needsUpdate = !0, ii(L, V, W), L.side = yi) : ii(L, V, W);
|
|
13711
13711
|
}
|
|
13712
13712
|
this.compile = function(L, V, W = null) {
|
|
13713
13713
|
W === null && (W = L), g = ft.get(W), g.init(), v.push(g), W.traverseVisible(function(K) {
|
|
@@ -13747,14 +13747,14 @@ class eu {
|
|
|
13747
13747
|
Ei && Ei(L);
|
|
13748
13748
|
}
|
|
13749
13749
|
function fn() {
|
|
13750
|
-
|
|
13750
|
+
Cn.stop();
|
|
13751
13751
|
}
|
|
13752
13752
|
function ai() {
|
|
13753
|
-
|
|
13753
|
+
Cn.start();
|
|
13754
13754
|
}
|
|
13755
|
-
const
|
|
13756
|
-
|
|
13757
|
-
Ei = L, H.setAnimationLoop(L), L === null ?
|
|
13755
|
+
const Cn = new IW();
|
|
13756
|
+
Cn.setAnimationLoop(dn), typeof self < "u" && Cn.setContext(self), this.setAnimationLoop = function(L) {
|
|
13757
|
+
Ei = L, H.setAnimationLoop(L), L === null ? Cn.stop() : Cn.start();
|
|
13758
13758
|
}, H.addEventListener("sessionstart", fn), H.addEventListener("sessionend", ai), this.render = function(L, V) {
|
|
13759
13759
|
if (V !== void 0 && V.isCamera !== !0) {
|
|
13760
13760
|
console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");
|
|
@@ -13762,7 +13762,7 @@ class eu {
|
|
|
13762
13762
|
}
|
|
13763
13763
|
if (x === !0)
|
|
13764
13764
|
return;
|
|
13765
|
-
L.matrixWorldAutoUpdate === !0 && L.updateMatrixWorld(), V.parent === null && V.matrixWorldAutoUpdate === !0 && V.updateMatrixWorld(), H.enabled === !0 && H.isPresenting === !0 && (H.cameraAutoUpdate === !0 && H.updateCamera(V), V = H.getCamera()), L.isScene === !0 && L.onBeforeRender(A, L, V, E), g = ft.get(L, v.length), g.init(), v.push(g), Fe.multiplyMatrices(V.projectionMatrix, V.matrixWorldInverse), Ee.setFromProjectionMatrix(Fe), be = this.localClippingEnabled, se = De.init(this.clippingPlanes, be), b = wt.get(L, y.length), b.init(), y.push(b),
|
|
13765
|
+
L.matrixWorldAutoUpdate === !0 && L.updateMatrixWorld(), V.parent === null && V.matrixWorldAutoUpdate === !0 && V.updateMatrixWorld(), H.enabled === !0 && H.isPresenting === !0 && (H.cameraAutoUpdate === !0 && H.updateCamera(V), V = H.getCamera()), L.isScene === !0 && L.onBeforeRender(A, L, V, E), g = ft.get(L, v.length), g.init(), v.push(g), Fe.multiplyMatrices(V.projectionMatrix, V.matrixWorldInverse), Ee.setFromProjectionMatrix(Fe), be = this.localClippingEnabled, se = De.init(this.clippingPlanes, be), b = wt.get(L, y.length), b.init(), y.push(b), Dn(L, V, 0, A.sortObjects), b.finish(), A.sortObjects === !0 && b.sort(z, Q), this.info.render.frame++, se === !0 && De.beginShadows();
|
|
13766
13766
|
const W = g.state.shadowsArray;
|
|
13767
13767
|
if (We.render(W, L, V), se === !0 && De.endShadows(), this.info.autoReset === !0 && this.info.reset(), (H.enabled === !1 || H.isPresenting === !1 || H.hasDepthSensing() === !1) && St.render(b, L), g.setupLights(A._useLegacyLights), V.isArrayCamera) {
|
|
13768
13768
|
const j = V.cameras;
|
|
@@ -13774,7 +13774,7 @@ class eu {
|
|
|
13774
13774
|
Vo(b, L, V);
|
|
13775
13775
|
E !== null && (ct.updateMultisampleRenderTarget(E), ct.updateRenderTargetMipmap(E)), L.isScene === !0 && L.onAfterRender(A, L, V), mt.resetDefaultState(), T = -1, I = null, v.pop(), v.length > 0 ? g = v[v.length - 1] : g = null, y.pop(), y.length > 0 ? b = y[y.length - 1] : b = null;
|
|
13776
13776
|
};
|
|
13777
|
-
function
|
|
13777
|
+
function Dn(L, V, W, j) {
|
|
13778
13778
|
if (L.visible === !1)
|
|
13779
13779
|
return;
|
|
13780
13780
|
if (L.layers.test(V.layers)) {
|
|
@@ -13804,7 +13804,7 @@ class eu {
|
|
|
13804
13804
|
}
|
|
13805
13805
|
const me = L.children;
|
|
13806
13806
|
for (let ue = 0, xe = me.length; ue < xe; ue++)
|
|
13807
|
-
|
|
13807
|
+
Dn(me[ue], V, W, j);
|
|
13808
13808
|
}
|
|
13809
13809
|
function Vo(L, V, W, j) {
|
|
13810
13810
|
const K = L.opaque, me = L.transmissive, ue = L.transparent;
|
|
@@ -13816,7 +13816,7 @@ class eu {
|
|
|
13816
13816
|
const me = Ne.isWebGL2;
|
|
13817
13817
|
_e === null && (_e = new Jt(1, 1, {
|
|
13818
13818
|
generateMipmaps: !0,
|
|
13819
|
-
type: we.has("EXT_color_buffer_half_float") ? ws :
|
|
13819
|
+
type: we.has("EXT_color_buffer_half_float") ? ws : _n,
|
|
13820
13820
|
minFilter: Lo,
|
|
13821
13821
|
samples: me ? 4 : 0
|
|
13822
13822
|
})), A.getDrawingBufferSize(Ue), me ? _e.setSize(Ue.x, Ue.y) : _e.setSize(H1(Ue.x), H1(Ue.y));
|
|
@@ -13829,7 +13829,7 @@ class eu {
|
|
|
13829
13829
|
const $e = V[ke], tt = $e.object, ut = $e.geometry, Tt = $e.material, _i = $e.group;
|
|
13830
13830
|
if (Tt.side === yi && tt.layers.test(j.layers)) {
|
|
13831
13831
|
const Zt = Tt.side;
|
|
13832
|
-
Tt.side =
|
|
13832
|
+
Tt.side = An, Tt.needsUpdate = !0, fu(tt, W, j, ut, Tt, _i), Tt.side = Zt, Tt.needsUpdate = !0, Pe = !0;
|
|
13833
13833
|
}
|
|
13834
13834
|
}
|
|
13835
13835
|
Pe === !0 && (ct.updateMultisampleRenderTarget(_e), ct.updateRenderTargetMipmap(_e)), A.setRenderTarget(ue), A.setClearColor(O, P), A.toneMapping = xe;
|
|
@@ -13842,7 +13842,7 @@ class eu {
|
|
|
13842
13842
|
}
|
|
13843
13843
|
}
|
|
13844
13844
|
function fu(L, V, W, j, K, me) {
|
|
13845
|
-
L.onBeforeRender(A, V, W, j, K, me), L.modelViewMatrix.multiplyMatrices(W.matrixWorldInverse, L.matrixWorld), L.normalMatrix.getNormalMatrix(L.modelViewMatrix), K.onBeforeRender(A, V, W, j, L, me), K.transparent === !0 && K.side === yi && K.forceSinglePass === !1 ? (K.side =
|
|
13845
|
+
L.onBeforeRender(A, V, W, j, K, me), L.modelViewMatrix.multiplyMatrices(W.matrixWorldInverse, L.matrixWorld), L.normalMatrix.getNormalMatrix(L.modelViewMatrix), K.onBeforeRender(A, V, W, j, L, me), K.transparent === !0 && K.side === yi && K.forceSinglePass === !1 ? (K.side = An, K.needsUpdate = !0, A.renderBufferDirect(W, V, j, K, L, me), K.side = Jn, K.needsUpdate = !0, A.renderBufferDirect(W, V, j, K, L, me), K.side = yi) : A.renderBufferDirect(W, V, j, K, L, me), L.onAfterRender(A, V, W, j, K, me);
|
|
13846
13846
|
}
|
|
13847
13847
|
function ii(L, V, W) {
|
|
13848
13848
|
V.isScene !== !0 && (V = lt);
|
|
@@ -13876,8 +13876,8 @@ class eu {
|
|
|
13876
13876
|
j.toneMapped && (E === null || E.isXRRenderTarget === !0) && (Tt = A.toneMapping);
|
|
13877
13877
|
const _i = W.morphAttributes.position || W.morphAttributes.normal || W.morphAttributes.color, Zt = _i !== void 0 ? _i.length : 0, Pt = et.get(j), Pi = g.state.lights;
|
|
13878
13878
|
if (se === !0 && (be === !0 || L !== I)) {
|
|
13879
|
-
const
|
|
13880
|
-
De.setState(j, L,
|
|
13879
|
+
const Mn = L === I && j.id === T;
|
|
13880
|
+
De.setState(j, L, Mn);
|
|
13881
13881
|
}
|
|
13882
13882
|
let Ct = !1;
|
|
13883
13883
|
j.version === Pt.__version ? (Pt.needsLights && Pt.lightsStateVersion !== Pi.state.version || Pt.outputColorSpace !== xe || K.isBatchedMesh && Pt.batching === !1 || !K.isBatchedMesh && Pt.batching === !0 || K.isInstancedMesh && Pt.instancing === !1 || !K.isInstancedMesh && Pt.instancing === !0 || K.isSkinnedMesh && Pt.skinning === !1 || !K.isSkinnedMesh && Pt.skinning === !0 || K.isInstancedMesh && Pt.instancingColor === !0 && K.instanceColor === null || K.isInstancedMesh && Pt.instancingColor === !1 && K.instanceColor !== null || K.isInstancedMesh && Pt.instancingMorph === !0 && K.morphTexture === null || K.isInstancedMesh && Pt.instancingMorph === !1 && K.morphTexture !== null || Pt.envMap !== Pe || j.fog === !0 && Pt.fog !== me || Pt.numClippingPlanes !== void 0 && (Pt.numClippingPlanes !== De.numPlanes || Pt.numIntersection !== De.numIntersection) || Pt.vertexAlphas !== ke || Pt.vertexTangents !== He || Pt.morphTargets !== $e || Pt.morphNormals !== tt || Pt.morphColors !== ut || Pt.toneMapping !== Tt || Ne.isWebGL2 === !0 && Pt.morphTargetsCount !== Zt) && (Ct = !0) : (Ct = !0, Pt.__version = j.version);
|
|
@@ -13887,8 +13887,8 @@ class eu {
|
|
|
13887
13887
|
const jt = Vi.getUniforms(), js = Pt.uniforms;
|
|
13888
13888
|
if (Me.useProgram(Vi.program) && (Kr = !0, pn = !0, vi = !0), j.id !== T && (T = j.id, pn = !0), Kr || I !== L) {
|
|
13889
13889
|
jt.setValue(Z, "projectionMatrix", L.projectionMatrix), jt.setValue(Z, "viewMatrix", L.matrixWorldInverse);
|
|
13890
|
-
const
|
|
13891
|
-
|
|
13890
|
+
const Mn = jt.map.cameraPosition;
|
|
13891
|
+
Mn !== void 0 && Mn.setValue(Z, Qe.setFromMatrixPosition(L.matrixWorld)), Ne.logarithmicDepthBuffer && jt.setValue(
|
|
13892
13892
|
Z,
|
|
13893
13893
|
"logDepthBufFC",
|
|
13894
13894
|
2 / (Math.log(L.far + 1) / Math.LN2)
|
|
@@ -13896,16 +13896,16 @@ class eu {
|
|
|
13896
13896
|
}
|
|
13897
13897
|
if (K.isSkinnedMesh) {
|
|
13898
13898
|
jt.setOptional(Z, K, "bindMatrix"), jt.setOptional(Z, K, "bindMatrixInverse");
|
|
13899
|
-
const
|
|
13900
|
-
|
|
13899
|
+
const Mn = K.skeleton;
|
|
13900
|
+
Mn && (Ne.floatVertexTextures ? (Mn.boneTexture === null && Mn.computeBoneTexture(), jt.setValue(Z, "boneTexture", Mn.boneTexture, ct)) : 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
|
K.isBatchedMesh && (jt.setOptional(Z, K, "batchingTexture"), jt.setValue(Z, "batchingTexture", K._matricesTexture, ct));
|
|
13903
13903
|
const Vc = W.morphAttributes;
|
|
13904
13904
|
if ((Vc.position !== void 0 || Vc.normal !== void 0 || Vc.color !== void 0 && Ne.isWebGL2 === !0) && Oe.update(K, W, Vi), (pn || Pt.receiveShadow !== K.receiveShadow) && (Pt.receiveShadow = K.receiveShadow, jt.setValue(Z, "receiveShadow", K.receiveShadow)), j.isMeshGouraudMaterial && j.envMap !== null && (js.envMap.value = Pe, js.flipEnvMap.value = Pe.isCubeTexture && Pe.isRenderTargetTexture === !1 ? -1 : 1), pn && (jt.setValue(Z, "toneMappingExposure", A.toneMappingExposure), Pt.needsLights && N(js, vi), me && j.fog === !0 && Te.refreshFogUniforms(js, me), Te.refreshMaterialUniforms(js, j, G, D, _e), i1.upload(Z, Iy(Pt), js, ct)), j.isShaderMaterial && j.uniformsNeedUpdate === !0 && (i1.upload(Z, Iy(Pt), js, ct), j.uniformsNeedUpdate = !1), j.isSpriteMaterial && jt.setValue(Z, "center", K.center), jt.setValue(Z, "modelViewMatrix", K.modelViewMatrix), jt.setValue(Z, "normalMatrix", K.normalMatrix), jt.setValue(Z, "modelMatrix", K.matrixWorld), j.isShaderMaterial || j.isRawShaderMaterial) {
|
|
13905
|
-
const
|
|
13906
|
-
for (let pu = 0, bK =
|
|
13905
|
+
const Mn = j.uniformsGroups;
|
|
13906
|
+
for (let pu = 0, bK = Mn.length; pu < bK; pu++)
|
|
13907
13907
|
if (Ne.isWebGL2) {
|
|
13908
|
-
const TF =
|
|
13908
|
+
const TF = Mn[pu];
|
|
13909
13909
|
at.update(TF, Vi), at.bind(TF, Vi);
|
|
13910
13910
|
} else
|
|
13911
13911
|
console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2.");
|
|
@@ -13966,7 +13966,7 @@ class eu {
|
|
|
13966
13966
|
return;
|
|
13967
13967
|
}
|
|
13968
13968
|
const $e = He === ws && (we.has("EXT_color_buffer_half_float") || Ne.isWebGL2 && we.has("EXT_color_buffer_float"));
|
|
13969
|
-
if (He !==
|
|
13969
|
+
if (He !== _n && Ye.convert(He) !== Z.getParameter(Z.IMPLEMENTATION_COLOR_READ_TYPE) && // Edge and Chrome Mac < 52 (#9513)
|
|
13970
13970
|
!(He === en && (Ne.isWebGL2 || we.has("OES_texture_float") || we.has("WEBGL_color_buffer_float"))) && // Chrome Mac >= 52 and Firefox
|
|
13971
13971
|
!$e) {
|
|
13972
13972
|
console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");
|
|
@@ -14924,7 +14924,7 @@ let Hi = class extends Vt {
|
|
|
14924
14924
|
}
|
|
14925
14925
|
};
|
|
14926
14926
|
const RG = /* @__PURE__ */ new C(), IG = /* @__PURE__ */ new C(), LG = /* @__PURE__ */ new he(), zT = /* @__PURE__ */ new vo(), C_ = /* @__PURE__ */ new cn();
|
|
14927
|
-
let
|
|
14927
|
+
let vn = class extends ge {
|
|
14928
14928
|
constructor(e = new yt(), t = new Hi()) {
|
|
14929
14929
|
super(), this.isLine = !0, this.type = "Line", this.geometry = e, this.material = t, this.updateMorphTargets();
|
|
14930
14930
|
}
|
|
@@ -15002,7 +15002,7 @@ let An = class extends ge {
|
|
|
15002
15002
|
}
|
|
15003
15003
|
};
|
|
15004
15004
|
const PG = /* @__PURE__ */ new C(), BG = /* @__PURE__ */ new C();
|
|
15005
|
-
let Nr = class extends
|
|
15005
|
+
let Nr = class extends vn {
|
|
15006
15006
|
constructor(e, t) {
|
|
15007
15007
|
super(e, t), this.isLineSegments = !0, this.type = "LineSegments";
|
|
15008
15008
|
}
|
|
@@ -15017,7 +15017,7 @@ let Nr = class extends An {
|
|
|
15017
15017
|
console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
|
|
15018
15018
|
return this;
|
|
15019
15019
|
}
|
|
15020
|
-
}, pk = class extends
|
|
15020
|
+
}, pk = class extends vn {
|
|
15021
15021
|
constructor(e, t) {
|
|
15022
15022
|
super(e, t), this.isLineLoop = !0, this.type = "LineLoop";
|
|
15023
15023
|
}
|
|
@@ -16314,7 +16314,7 @@ function Tp(s, e) {
|
|
|
16314
16314
|
e || (e = s);
|
|
16315
16315
|
let t = s, i;
|
|
16316
16316
|
do
|
|
16317
|
-
if (i = !1, !t.steiner && (yM(t, t.next) ||
|
|
16317
|
+
if (i = !1, !t.steiner && (yM(t, t.next) || Rn(t.prev, t, t.next) === 0)) {
|
|
16318
16318
|
if (sA(t), t = e = t.prev, t === t.next)
|
|
16319
16319
|
break;
|
|
16320
16320
|
i = !0;
|
|
@@ -16341,12 +16341,12 @@ function iA(s, e, t, i, n, r, o) {
|
|
|
16341
16341
|
}
|
|
16342
16342
|
function S$(s) {
|
|
16343
16343
|
const e = s.prev, t = s, i = s.next;
|
|
16344
|
-
if (
|
|
16344
|
+
if (Rn(e, t, i) >= 0)
|
|
16345
16345
|
return !1;
|
|
16346
16346
|
const n = e.x, r = t.x, o = i.x, a = e.y, l = t.y, c = i.y, h = n < r ? n < o ? n : o : r < o ? r : o, u = a < l ? a < c ? a : c : l < c ? l : c, f = n > r ? n > o ? n : o : r > o ? r : o, p = a > l ? a > c ? a : c : l > c ? l : c;
|
|
16347
16347
|
let m = i.next;
|
|
16348
16348
|
for (; m !== e; ) {
|
|
16349
|
-
if (m.x >= h && m.x <= f && m.y >= u && m.y <= p && Ug(n, a, r, l, o, c, m.x, m.y) &&
|
|
16349
|
+
if (m.x >= h && m.x <= f && m.y >= u && m.y <= p && Ug(n, a, r, l, o, c, m.x, m.y) && Rn(m.prev, m, m.next) >= 0)
|
|
16350
16350
|
return !1;
|
|
16351
16351
|
m = m.next;
|
|
16352
16352
|
}
|
|
@@ -16354,22 +16354,22 @@ function S$(s) {
|
|
|
16354
16354
|
}
|
|
16355
16355
|
function C$(s, e, t, i) {
|
|
16356
16356
|
const n = s.prev, r = s, o = s.next;
|
|
16357
|
-
if (
|
|
16357
|
+
if (Rn(n, r, o) >= 0)
|
|
16358
16358
|
return !1;
|
|
16359
16359
|
const a = n.x, l = r.x, c = o.x, h = n.y, u = r.y, f = o.y, p = a < l ? a < c ? a : c : l < c ? l : c, m = h < u ? h < f ? h : f : u < f ? u : f, b = a > l ? a > c ? a : c : l > c ? l : c, g = h > u ? h > f ? h : f : u > f ? u : f, y = DL(p, m, e, t, i), v = DL(b, g, e, t, i);
|
|
16360
16360
|
let A = s.prevZ, x = s.nextZ;
|
|
16361
16361
|
for (; A && A.z >= y && x && x.z <= v; ) {
|
|
16362
|
-
if (A.x >= p && A.x <= b && A.y >= m && A.y <= g && A !== n && A !== o && Ug(a, h, l, u, c, f, A.x, A.y) &&
|
|
16362
|
+
if (A.x >= p && A.x <= b && A.y >= m && A.y <= g && A !== n && A !== o && Ug(a, h, l, u, c, f, A.x, A.y) && Rn(A.prev, A, A.next) >= 0 || (A = A.prevZ, x.x >= p && x.x <= b && x.y >= m && x.y <= g && x !== n && x !== o && Ug(a, h, l, u, c, f, x.x, x.y) && Rn(x.prev, x, x.next) >= 0))
|
|
16363
16363
|
return !1;
|
|
16364
16364
|
x = x.nextZ;
|
|
16365
16365
|
}
|
|
16366
16366
|
for (; A && A.z >= y; ) {
|
|
16367
|
-
if (A.x >= p && A.x <= b && A.y >= m && A.y <= g && A !== n && A !== o && Ug(a, h, l, u, c, f, A.x, A.y) &&
|
|
16367
|
+
if (A.x >= p && A.x <= b && A.y >= m && A.y <= g && A !== n && A !== o && Ug(a, h, l, u, c, f, A.x, A.y) && Rn(A.prev, A, A.next) >= 0)
|
|
16368
16368
|
return !1;
|
|
16369
16369
|
A = A.prevZ;
|
|
16370
16370
|
}
|
|
16371
16371
|
for (; x && x.z <= v; ) {
|
|
16372
|
-
if (x.x >= p && x.x <= b && x.y >= m && x.y <= g && x !== n && x !== o && Ug(a, h, l, u, c, f, x.x, x.y) &&
|
|
16372
|
+
if (x.x >= p && x.x <= b && x.y >= m && x.y <= g && x !== n && x !== o && Ug(a, h, l, u, c, f, x.x, x.y) && Rn(x.prev, x, x.next) >= 0)
|
|
16373
16373
|
return !1;
|
|
16374
16374
|
x = x.nextZ;
|
|
16375
16375
|
}
|
|
@@ -16439,7 +16439,7 @@ function L$(s, e) {
|
|
|
16439
16439
|
return n;
|
|
16440
16440
|
}
|
|
16441
16441
|
function P$(s, e) {
|
|
16442
|
-
return
|
|
16442
|
+
return Rn(s.prev, s, e.prev) < 0 && Rn(e.next, s, s.next) < 0;
|
|
16443
16443
|
}
|
|
16444
16444
|
function B$(s, e, t, i) {
|
|
16445
16445
|
let n = s;
|
|
@@ -16478,17 +16478,17 @@ function Ug(s, e, t, i, n, r, o, a) {
|
|
|
16478
16478
|
function O$(s, e) {
|
|
16479
16479
|
return s.next.i !== e.i && s.prev.i !== e.i && !F$(s, e) && // dones't intersect other edges
|
|
16480
16480
|
(nA(s, e) && nA(e, s) && G$(s, e) && // locally visible
|
|
16481
|
-
(
|
|
16482
|
-
yM(s, e) &&
|
|
16481
|
+
(Rn(s.prev, s, e.prev) || Rn(s, e.prev, e)) || // does not create opposite-facing sectors
|
|
16482
|
+
yM(s, e) && Rn(s.prev, s, s.next) > 0 && Rn(e.prev, e, e.next) > 0);
|
|
16483
16483
|
}
|
|
16484
|
-
function
|
|
16484
|
+
function Rn(s, e, t) {
|
|
16485
16485
|
return (e.y - s.y) * (t.x - e.x) - (e.x - s.x) * (t.y - e.y);
|
|
16486
16486
|
}
|
|
16487
16487
|
function yM(s, e) {
|
|
16488
16488
|
return s.x === e.x && s.y === e.y;
|
|
16489
16489
|
}
|
|
16490
16490
|
function jW(s, e, t, i) {
|
|
16491
|
-
const n = B_(
|
|
16491
|
+
const n = B_(Rn(s, e, t)), r = B_(Rn(s, e, i)), o = B_(Rn(t, i, s)), a = B_(Rn(t, i, e));
|
|
16492
16492
|
return !!(n !== r && o !== a || n === 0 && P_(s, t, e) || r === 0 && P_(s, i, e) || o === 0 && P_(t, s, i) || a === 0 && P_(t, e, i));
|
|
16493
16493
|
}
|
|
16494
16494
|
function P_(s, e, t) {
|
|
@@ -16507,7 +16507,7 @@ function F$(s, e) {
|
|
|
16507
16507
|
return !1;
|
|
16508
16508
|
}
|
|
16509
16509
|
function nA(s, e) {
|
|
16510
|
-
return
|
|
16510
|
+
return Rn(s.prev, s, s.next) < 0 ? Rn(s, e, s.next) >= 0 && Rn(s, s.prev, e) >= 0 : Rn(s, e, s.prev) < 0 || Rn(s, s.next, e) < 0;
|
|
16511
16511
|
}
|
|
16512
16512
|
function G$(s, e) {
|
|
16513
16513
|
let t = s, i = !1;
|
|
@@ -19230,7 +19230,7 @@ class tee extends ds {
|
|
|
19230
19230
|
o = new dk();
|
|
19231
19231
|
break;
|
|
19232
19232
|
case "Line":
|
|
19233
|
-
o = new
|
|
19233
|
+
o = new vn(a(e.geometry), l(e.material));
|
|
19234
19234
|
break;
|
|
19235
19235
|
case "LineLoop":
|
|
19236
19236
|
o = new pk(a(e.geometry), l(e.material));
|
|
@@ -21137,7 +21137,7 @@ class gH extends ge {
|
|
|
21137
21137
|
0
|
|
21138
21138
|
], 3));
|
|
21139
21139
|
const r = new Hi({ fog: !1, toneMapped: !1 });
|
|
21140
|
-
this.lightPlane = new
|
|
21140
|
+
this.lightPlane = new vn(n, r), this.add(this.lightPlane), n = new yt(), n.setAttribute("position", new st([0, 0, 0, 0, 0, 1], 3)), this.targetLine = new vn(n, r), 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 gH extends ge {
|
|
|
21146
21146
|
this.light.updateWorldMatrix(!0, !1), this.light.target.updateWorldMatrix(!0, !1), rN.setFromMatrixPosition(this.light.matrixWorld), F_.setFromMatrixPosition(this.light.target.matrixWorld), oN.subVectors(F_, rN), this.lightPlane.lookAt(F_), 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(F_), this.targetLine.scale.z = oN.length();
|
|
21147
21147
|
}
|
|
21148
21148
|
}
|
|
21149
|
-
const G_ = /* @__PURE__ */ new C(),
|
|
21149
|
+
const G_ = /* @__PURE__ */ new C(), On = /* @__PURE__ */ new KA();
|
|
21150
21150
|
class yH extends Nr {
|
|
21151
21151
|
constructor(e) {
|
|
21152
21152
|
const t = new yt(), i = new Hi({ color: 16777215, vertexColors: !0, toneMapped: !1 }), n = [], r = [], o = {};
|
|
@@ -21167,7 +21167,7 @@ class yH extends Nr {
|
|
|
21167
21167
|
}
|
|
21168
21168
|
update() {
|
|
21169
21169
|
const e = this.geometry, t = this.pointMap, i = 1, n = 1;
|
|
21170
|
-
|
|
21170
|
+
On.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse), Xn("c", t, e, On, 0, 0, -1), Xn("t", t, e, On, 0, 0, 1), Xn("n1", t, e, On, -i, -n, -1), Xn("n2", t, e, On, i, -n, -1), Xn("n3", t, e, On, -i, n, -1), Xn("n4", t, e, On, i, n, -1), Xn("f1", t, e, On, -i, -n, 1), Xn("f2", t, e, On, i, -n, 1), Xn("f3", t, e, On, -i, n, 1), Xn("f4", t, e, On, i, n, 1), Xn("u1", t, e, On, i * 0.7, n * 1.1, -1), Xn("u2", t, e, On, -i * 0.7, n * 1.1, -1), Xn("u3", t, e, On, 0, n * 2, -1), Xn("cf1", t, e, On, -i, 0, 1), Xn("cf2", t, e, On, i, 0, 1), Xn("cf3", t, e, On, 0, -n, 1), Xn("cf4", t, e, On, 0, n, 1), Xn("cn1", t, e, On, -i, 0, -1), Xn("cn2", t, e, On, i, 0, -1), Xn("cn3", t, e, On, 0, -n, -1), Xn("cn4", t, e, On, 0, n, -1), e.getAttribute("position").needsUpdate = !0;
|
|
21171
21171
|
}
|
|
21172
21172
|
dispose() {
|
|
21173
21173
|
this.geometry.dispose(), this.material.dispose();
|
|
@@ -21217,7 +21217,7 @@ class Dk extends Nr {
|
|
|
21217
21217
|
this.geometry.dispose(), this.material.dispose();
|
|
21218
21218
|
}
|
|
21219
21219
|
}
|
|
21220
|
-
class Ree extends
|
|
21220
|
+
class Ree extends vn {
|
|
21221
21221
|
constructor(e, t = 1, i = 16776960) {
|
|
21222
21222
|
const n = i, r = [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 yt();
|
|
21223
21223
|
o.setAttribute("position", new st(r, 3)), o.computeBoundingSphere(), super(o, new Hi({ color: n, toneMapped: !1 })), this.type = "PlaneHelper", this.plane = e, this.size = t;
|
|
@@ -21236,7 +21236,7 @@ let z_, YT;
|
|
|
21236
21236
|
class Iee extends ge {
|
|
21237
21237
|
// dir is assumed to be normalized
|
|
21238
21238
|
constructor(e = new C(0, 0, 1), t = new C(0, 0, 0), i = 1, n = 16776960, r = i * 0.2, o = r * 0.2) {
|
|
21239
|
-
super(), this.type = "ArrowHelper", z_ === void 0 && (z_ = new yt(), z_.setAttribute("position", new st([0, 0, 0, 0, 1, 0], 3)), YT = new Hn(0, 0.5, 1, 5, 1), YT.translate(0, -0.5, 0)), this.position.copy(t), this.line = new
|
|
21239
|
+
super(), this.type = "ArrowHelper", z_ === void 0 && (z_ = new yt(), z_.setAttribute("position", new st([0, 0, 0, 0, 1, 0], 3)), YT = new Hn(0, 0.5, 1, 5, 1), YT.translate(0, -0.5, 0)), this.position.copy(t), this.line = new vn(z_, new Hi({ color: n, toneMapped: !1 })), this.line.matrixAutoUpdate = !1, this.add(this.line), this.cone = new fe(YT, new qt({ color: n, toneMapped: !1 })), this.cone.matrixAutoUpdate = !1, this.add(this.cone), this.setDirection(e), this.setLength(i, r, o);
|
|
21240
21240
|
}
|
|
21241
21241
|
setDirection(e) {
|
|
21242
21242
|
if (e.y > 0.99999)
|
|
@@ -21454,7 +21454,7 @@ const Pee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
21454
21454
|
AudioListener: uH,
|
|
21455
21455
|
AudioLoader: Y1,
|
|
21456
21456
|
AxesHelper: po,
|
|
21457
|
-
BackSide:
|
|
21457
|
+
BackSide: An,
|
|
21458
21458
|
BasicDepthPacking: fr,
|
|
21459
21459
|
BasicShadowMap: _K,
|
|
21460
21460
|
BatchedMesh: Q1,
|
|
@@ -21598,7 +21598,7 @@ const Pee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
21598
21598
|
LessStencilFunc: rW,
|
|
21599
21599
|
Light: Dd,
|
|
21600
21600
|
LightProbe: lH,
|
|
21601
|
-
Line:
|
|
21601
|
+
Line: vn,
|
|
21602
21602
|
Line3: ua,
|
|
21603
21603
|
LineBasicMaterial: Hi,
|
|
21604
21604
|
LineCurve: bk,
|
|
@@ -21657,7 +21657,7 @@ const Pee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
21657
21657
|
NeverCompare: uW,
|
|
21658
21658
|
NeverDepth: ZB,
|
|
21659
21659
|
NeverStencilFunc: RL,
|
|
21660
|
-
NoBlending:
|
|
21660
|
+
NoBlending: xn,
|
|
21661
21661
|
NoColorSpace: Io,
|
|
21662
21662
|
NoToneMapping: ho,
|
|
21663
21663
|
NormalAnimationBlendMode: nM,
|
|
@@ -21811,7 +21811,7 @@ const Pee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
21811
21811
|
UniformsGroup: vee,
|
|
21812
21812
|
UniformsLib: ze,
|
|
21813
21813
|
UniformsUtils: H0,
|
|
21814
|
-
UnsignedByteType:
|
|
21814
|
+
UnsignedByteType: _n,
|
|
21815
21815
|
UnsignedInt248Type: Gh,
|
|
21816
21816
|
UnsignedIntType: Dr,
|
|
21817
21817
|
UnsignedShort4444Type: jB,
|
|
@@ -22881,8 +22881,8 @@ var lte = (s) => {
|
|
|
22881
22881
|
var e = {};
|
|
22882
22882
|
return Pl.d(e, s), e;
|
|
22883
22883
|
};
|
|
22884
|
-
const Ze = lte({ BackSide: () =>
|
|
22885
|
-
class
|
|
22884
|
+
const Ze = lte({ BackSide: () => An, BufferAttribute: () => Ke, BufferGeometry: () => yt, Color: () => ve, DoubleSide: () => yi, EventDispatcher: () => Ws, FileLoader: () => pr, FrontSide: () => Jn, LinearFilter: () => Gt, Mesh: () => fe, MeshBasicMaterial: () => qt, Object3D: () => ge, Plane: () => xs, PlaneGeometry: () => fs, ShaderMaterial: () => Ot, Texture: () => Wt, TextureLoader: () => wc, Vector2: () => ee, Vector3: () => C, Vector4: () => Je });
|
|
22885
|
+
class wn extends Ii {
|
|
22886
22886
|
/**
|
|
22887
22887
|
*
|
|
22888
22888
|
* @param {string} propertyId
|
|
@@ -22959,7 +22959,7 @@ class Sn extends Ii {
|
|
|
22959
22959
|
return t ? t[`_${this._id}`].getInheritedInput(t) : this.getDefaultValue();
|
|
22960
22960
|
}
|
|
22961
22961
|
}
|
|
22962
|
-
class OM extends
|
|
22962
|
+
class OM extends wn {
|
|
22963
22963
|
constructor(e, t) {
|
|
22964
22964
|
super(e, t, !1), this._input = new Ze.Vector4(0, 0, 0, 0), this._inline = null, this._value = new Ze.Vector4(0, 0, 0, 0);
|
|
22965
22965
|
}
|
|
@@ -23841,7 +23841,7 @@ function xte(s, e) {
|
|
|
23841
23841
|
e._needsUpdate = !0, s._glyphs._needsProcess = !0, e._fontVariant.removeEventListener("ready", e._handleFontReadyClosure), e._handleFontReadyClosure = null;
|
|
23842
23842
|
};
|
|
23843
23843
|
}
|
|
23844
|
-
class _te extends
|
|
23844
|
+
class _te extends wn {
|
|
23845
23845
|
constructor(e) {
|
|
23846
23846
|
super("display", e), this._value = "flex", this._allowsInherit = !1, this._needsUpdate = !1, this.isValidValue = Ste;
|
|
23847
23847
|
}
|
|
@@ -23853,7 +23853,7 @@ const wte = ["none", "flex"];
|
|
|
23853
23853
|
function Ste(s) {
|
|
23854
23854
|
return wte.indexOf(s) === -1 ? (console.warn(`(.style) display value '${s}' is not valid. Aborted`), !1) : !0;
|
|
23855
23855
|
}
|
|
23856
|
-
class Cte extends
|
|
23856
|
+
class Cte extends wn {
|
|
23857
23857
|
constructor(e) {
|
|
23858
23858
|
super("boxSizing", e), this._allowsInherit = !1, this.isValidValue = Ete;
|
|
23859
23859
|
}
|
|
@@ -23865,7 +23865,7 @@ const Mte = ["border-box", "content-box"];
|
|
|
23865
23865
|
function Ete(s) {
|
|
23866
23866
|
return Mte.indexOf(s) === -1 ? (console.warn(`(.style) boxSizing value '${s}' is not valid. Aborted`), !1) : !0;
|
|
23867
23867
|
}
|
|
23868
|
-
class cA extends
|
|
23868
|
+
class cA extends wn {
|
|
23869
23869
|
constructor(e, t) {
|
|
23870
23870
|
super(e, t, !1), this._value = new Ze.Color(), this.output = this._outputValue;
|
|
23871
23871
|
}
|
|
@@ -23880,7 +23880,7 @@ class cA extends Sn {
|
|
|
23880
23880
|
this._input = this._inline = e, this._needsUpdate = !0;
|
|
23881
23881
|
}
|
|
23882
23882
|
}
|
|
23883
|
-
class eR extends
|
|
23883
|
+
class eR extends wn {
|
|
23884
23884
|
/**
|
|
23885
23885
|
*
|
|
23886
23886
|
* @param {string} propertyId
|
|
@@ -23896,7 +23896,7 @@ class eR extends Sn {
|
|
|
23896
23896
|
function Tte(s) {
|
|
23897
23897
|
return s < 0 && s > 1 ? (console.warn(`(.style) styleFactorProperty('${this.id}') value '${s}' is not valid)`), !1) : !0;
|
|
23898
23898
|
}
|
|
23899
|
-
class Rte extends
|
|
23899
|
+
class Rte extends wn {
|
|
23900
23900
|
constructor(e) {
|
|
23901
23901
|
super("backgroundImage", e, !0), this._input = null, this._allowsInherit = !1, this._textureSize = new Ze.Vector2(1, 1), this.isValidValue = Ite;
|
|
23902
23902
|
}
|
|
@@ -23930,7 +23930,7 @@ class Rte extends Sn {
|
|
|
23930
23930
|
function Ite(s) {
|
|
23931
23931
|
return !0;
|
|
23932
23932
|
}
|
|
23933
|
-
class Lte extends
|
|
23933
|
+
class Lte extends wn {
|
|
23934
23934
|
constructor(e) {
|
|
23935
23935
|
super("backgroundSize", e, !0), this.isValidValue = Bte, this.output = this._outputValue;
|
|
23936
23936
|
}
|
|
@@ -23939,7 +23939,7 @@ const Pte = ["cover", "contain", "stretch"];
|
|
|
23939
23939
|
function Bte(s) {
|
|
23940
23940
|
return Pte.indexOf(s) === -1 ? (console.warn(`(.style) backgroundSize value '${s}' is not valid. Aborted`), !1) : !0;
|
|
23941
23941
|
}
|
|
23942
|
-
class kte extends
|
|
23942
|
+
class kte extends wn {
|
|
23943
23943
|
constructor(e) {
|
|
23944
23944
|
super("overflow", e, !0), this.isValidValue = Ote, this._clippingPlanes = null, this._renderStrategy = this._emptyRender;
|
|
23945
23945
|
}
|
|
@@ -24427,12 +24427,12 @@ class Ute extends Ii {
|
|
|
24427
24427
|
const Vte = ["start", "center", "end", "stretch"], Xte = function(s) {
|
|
24428
24428
|
return Vte.indexOf(s) === -1 ? (console.warn(`(.style) alignItems value '${s}' is not valid. Aborted`), !1) : !0;
|
|
24429
24429
|
};
|
|
24430
|
-
class Wk extends
|
|
24430
|
+
class Wk extends wn {
|
|
24431
24431
|
constructor() {
|
|
24432
24432
|
super("alignItems", "inherit", !0), this.isValidValue = Xte;
|
|
24433
24433
|
}
|
|
24434
24434
|
}
|
|
24435
|
-
class Hk extends
|
|
24435
|
+
class Hk extends wn {
|
|
24436
24436
|
constructor() {
|
|
24437
24437
|
super("textAlign", "inherit", !0), this.isValidValue = Hte;
|
|
24438
24438
|
}
|
|
@@ -24440,7 +24440,7 @@ class Hk extends Sn {
|
|
|
24440
24440
|
const Wte = ["left", "right", "center", "justify", "justify-left", "justify-right", "justify-center"], Hte = function(s) {
|
|
24441
24441
|
return Wte.indexOf(s) === -1 ? (console.warn(`(.style) textAlign value '${s}' is not valid. Aborted`), !1) : !0;
|
|
24442
24442
|
};
|
|
24443
|
-
class Qk extends
|
|
24443
|
+
class Qk extends wn {
|
|
24444
24444
|
constructor() {
|
|
24445
24445
|
super("flexDirection", "inherit", !0), this.isValid = Zte;
|
|
24446
24446
|
}
|
|
@@ -24449,7 +24449,7 @@ const Qte = ["row", "row-reverse", "column", "column-reverse"];
|
|
|
24449
24449
|
function Zte(s) {
|
|
24450
24450
|
return Qte.indexOf(s) === -1 ? (console.warn(`(.style) flexDirection value '${s}' is not valid. Aborted`), !1) : !0;
|
|
24451
24451
|
}
|
|
24452
|
-
class Zk extends
|
|
24452
|
+
class Zk extends wn {
|
|
24453
24453
|
constructor() {
|
|
24454
24454
|
super("justifyContent", "inherit", !0), this.isValidValue = jte;
|
|
24455
24455
|
}
|
|
@@ -24458,7 +24458,7 @@ const Yte = ["start", "center", "end", "space-between", "space-around", "space-e
|
|
|
24458
24458
|
function jte(s) {
|
|
24459
24459
|
return Yte.indexOf(s) === -1 ? (console.warn(`(.style) justifyContent value '${s}' is not valid. Aborted`), !1) : !0;
|
|
24460
24460
|
}
|
|
24461
|
-
class Kte extends
|
|
24461
|
+
class Kte extends wn {
|
|
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 Kte extends Sn {
|
|
|
24467
24467
|
this._value = this._inheritedInput, e._parent._value && (e._parent._value._children._needsProcess = !0);
|
|
24468
24468
|
}
|
|
24469
24469
|
}
|
|
24470
|
-
class DH extends
|
|
24470
|
+
class DH extends wn {
|
|
24471
24471
|
constructor() {
|
|
24472
24472
|
super("position", "static", !0), this._allowsInherit = !1, this._value = "static", this._needsUpdate = !1, this.computeOutputValue = this._computeFromInherited, this.isValidValue = qte;
|
|
24473
24473
|
}
|
|
@@ -24479,7 +24479,7 @@ const Jte = ["static", "absolute"];
|
|
|
24479
24479
|
function qte(s) {
|
|
24480
24480
|
return Jte.indexOf(s) === -1 ? (console.warn(`(.style) position value '${s}' is not valid. Aborted`), !1) : !0;
|
|
24481
24481
|
}
|
|
24482
|
-
class OH extends
|
|
24482
|
+
class OH extends wn {
|
|
24483
24483
|
/**
|
|
24484
24484
|
*
|
|
24485
24485
|
* @param {string} propertyId
|
|
@@ -24571,7 +24571,7 @@ class FH extends ch {
|
|
|
24571
24571
|
this._value = t;
|
|
24572
24572
|
}
|
|
24573
24573
|
}
|
|
24574
|
-
class GH extends
|
|
24574
|
+
class GH extends wn {
|
|
24575
24575
|
constructor(e) {
|
|
24576
24576
|
super("fontStyle", e, !0), this.isValidValue = iie;
|
|
24577
24577
|
}
|
|
@@ -24580,7 +24580,7 @@ const tie = ["normal", "italic"];
|
|
|
24580
24580
|
function iie(s) {
|
|
24581
24581
|
return tie.indexOf(s) === -1 ? (console.warn(`(.style) fontStyle value '${s}' is not valid. Aborted`), !1) : !0;
|
|
24582
24582
|
}
|
|
24583
|
-
class NH extends
|
|
24583
|
+
class NH extends wn {
|
|
24584
24584
|
constructor() {
|
|
24585
24585
|
super("fontWeight", "inherit", !0), this.isValid = sie;
|
|
24586
24586
|
}
|
|
@@ -25396,7 +25396,7 @@ const Iie = {
|
|
|
25396
25396
|
setMissingCharacterHandler: Tie,
|
|
25397
25397
|
missingCharacter: Rie
|
|
25398
25398
|
}, Pp = Iie;
|
|
25399
|
-
class XH extends
|
|
25399
|
+
class XH extends wn {
|
|
25400
25400
|
constructor() {
|
|
25401
25401
|
super("fontFamily", "inherit", !0);
|
|
25402
25402
|
}
|
|
@@ -25429,7 +25429,7 @@ class XH extends Sn {
|
|
|
25429
25429
|
return t ? t[`_${this._id}`].getInheritedInput(t) : this.getDefaultValue();
|
|
25430
25430
|
}
|
|
25431
25431
|
}
|
|
25432
|
-
class WH extends
|
|
25432
|
+
class WH extends wn {
|
|
25433
25433
|
/**
|
|
25434
25434
|
*
|
|
25435
25435
|
*/
|
|
@@ -25440,7 +25440,7 @@ class WH extends Sn {
|
|
|
25440
25440
|
super.update(e, t), e._layouter._needsProcess = !0;
|
|
25441
25441
|
}
|
|
25442
25442
|
}
|
|
25443
|
-
class HH extends
|
|
25443
|
+
class HH extends wn {
|
|
25444
25444
|
constructor() {
|
|
25445
25445
|
super("whiteSpace", "inherit"), this.isValidValue = Pie;
|
|
25446
25446
|
}
|
|
@@ -25449,12 +25449,12 @@ const Lie = ["normal", "nowrap", "pre", "pre-line", "pre-wrap"];
|
|
|
25449
25449
|
function Pie(s) {
|
|
25450
25450
|
return Lie.indexOf(s) === -1 ? (console.warn(`(.style) whiteSpace value '${s}' is not valid. Aborted`), !1) : !0;
|
|
25451
25451
|
}
|
|
25452
|
-
class QH extends
|
|
25452
|
+
class QH extends wn {
|
|
25453
25453
|
constructor() {
|
|
25454
25454
|
super("letterSpacing", "inherit", !0);
|
|
25455
25455
|
}
|
|
25456
25456
|
}
|
|
25457
|
-
class Bie extends
|
|
25457
|
+
class Bie extends wn {
|
|
25458
25458
|
constructor() {
|
|
25459
25459
|
super("fontSize", "inherit", !0);
|
|
25460
25460
|
}
|
|
@@ -25469,7 +25469,7 @@ class kie extends Wp {
|
|
|
25469
25469
|
super("invertAlpha", "inherit");
|
|
25470
25470
|
}
|
|
25471
25471
|
}
|
|
25472
|
-
class NM extends
|
|
25472
|
+
class NM extends wn {
|
|
25473
25473
|
constructor() {
|
|
25474
25474
|
super("fontKerning", "inherit"), this.isValidValue = Oie;
|
|
25475
25475
|
}
|
|
@@ -27847,7 +27847,7 @@ class l4 extends QH {
|
|
|
27847
27847
|
super._computeFromInherited(e), e._fontSize._needsProcess = !0, e._layouter._needsProcess = !0;
|
|
27848
27848
|
}
|
|
27849
27849
|
}
|
|
27850
|
-
class c4 extends
|
|
27850
|
+
class c4 extends wn {
|
|
27851
27851
|
constructor() {
|
|
27852
27852
|
super("fontSize", "inherit", !0), this._allowsInherit = !1;
|
|
27853
27853
|
}
|
|
@@ -29479,14 +29479,14 @@ function C4(s, ...e) {
|
|
|
29479
29479
|
}
|
|
29480
29480
|
}
|
|
29481
29481
|
const $se = ie("nodevlogs");
|
|
29482
|
-
function
|
|
29482
|
+
function In(s, e = Za.Log) {
|
|
29483
29483
|
yc(e, s);
|
|
29484
29484
|
}
|
|
29485
29485
|
function Qi(s) {
|
|
29486
|
-
|
|
29486
|
+
In(s, Za.Warn);
|
|
29487
29487
|
}
|
|
29488
29488
|
function dD(s) {
|
|
29489
|
-
|
|
29489
|
+
In(s, Za.Error);
|
|
29490
29490
|
}
|
|
29491
29491
|
let jL, lR;
|
|
29492
29492
|
function rt() {
|
|
@@ -29676,13 +29676,13 @@ function lre() {
|
|
|
29676
29676
|
return s || null;
|
|
29677
29677
|
}
|
|
29678
29678
|
const I4 = ie("debugdefines");
|
|
29679
|
-
K0('if(!globalThis[""3.47.
|
|
29679
|
+
K0('if(!globalThis[""3.47.7""]) globalThis[""3.47.7""] = "0.0.0";');
|
|
29680
29680
|
K0('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
|
|
29681
|
-
K0('if(!globalThis[""
|
|
29682
|
-
K0('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.47.
|
|
29681
|
+
K0('if(!globalThis[""Wed Sep 04 2024 16:25:49 GMT+0200 (Central European Summer Time)""]) globalThis[""Wed Sep 04 2024 16:25:49 GMT+0200 (Central European Summer Time)""] = "unknown";');
|
|
29682
|
+
K0('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.47.7";');
|
|
29683
29683
|
K0('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
29684
|
-
K0('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "
|
|
29685
|
-
const Il = "3.47.
|
|
29684
|
+
K0('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Wed Sep 04 2024 16:25:49 GMT+0200 (Central European Summer Time)";');
|
|
29685
|
+
const Il = "3.47.7", fD = "undefined", L4 = "Wed Sep 04 2024 16:25:49 GMT+0200 (Central European Summer Time)";
|
|
29686
29686
|
I4 && console.log(`Engine version: ${Il} (generator: ${fD})
|
|
29687
29687
|
Project built at ${L4}`);
|
|
29688
29688
|
const gd = "needle_isActiveInHierarchy", Cg = "builtin_components", o1 = "needle_editor_guid";
|
|
@@ -29983,7 +29983,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
29983
29983
|
inputBuffer: new Se(null),
|
|
29984
29984
|
opacity: new Se(1)
|
|
29985
29985
|
},
|
|
29986
|
-
blending:
|
|
29986
|
+
blending: xn,
|
|
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(s, e, t) {
|
|
30111
|
-
t !== void 0 && (this.renderTarget.texture.type = t, t !==
|
|
30111
|
+
t !== void 0 && (this.renderTarget.texture.type = t, t !== _n ? this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1" : s !== null && s.outputColorSpace === xt && (this.renderTarget.texture.colorSpace = xt));
|
|
30112
30112
|
}
|
|
30113
30113
|
}, kN = /* @__PURE__ */ new ve(), XM = class extends mr {
|
|
30114
30114
|
/**
|
|
@@ -30327,7 +30327,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
30327
30327
|
setRenderer(s) {
|
|
30328
30328
|
if (this.renderer = s, s !== null) {
|
|
30329
30329
|
const e = s.getSize(new ee()), t = s.getContext().getContextAttributes().alpha, i = this.inputBuffer.texture.type;
|
|
30330
|
-
i ===
|
|
30330
|
+
i === _n && s.outputColorSpace === xt && (this.inputBuffer.texture.colorSpace = xt, this.outputBuffer.texture.colorSpace = xt, this.inputBuffer.dispose(), this.outputBuffer.dispose()), s.autoClear = !1, this.setSize(e.width, e.height);
|
|
30331
30331
|
for (const n of this.passes)
|
|
30332
30332
|
n.initialize(s, t, i);
|
|
30333
30333
|
}
|
|
@@ -30393,7 +30393,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
30393
30393
|
depthBuffer: s,
|
|
30394
30394
|
type: t
|
|
30395
30395
|
}, a = new Jt(r.width, r.height, o);
|
|
30396
|
-
return i > 0 && (a.ignoreDepthForMultisampleCopy = !1, a.samples = i), t ===
|
|
30396
|
+
return i > 0 && (a.ignoreDepthForMultisampleCopy = !1, a.samples = i), t === _n && n !== null && n.outputColorSpace === xt && (a.texture.colorSpace = xt), a.texture.name = "EffectComposer.Buffer", a.texture.generateMipmaps = !1, a;
|
|
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 yi:
|
|
30531
30531
|
t = this.materialsFlatShadedDoubleSide;
|
|
30532
30532
|
break;
|
|
30533
|
-
case
|
|
30533
|
+
case An:
|
|
30534
30534
|
t = 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 yi:
|
|
30543
30543
|
t = this.materialsDoubleSide;
|
|
30544
30544
|
break;
|
|
30545
|
-
case
|
|
30545
|
+
case An:
|
|
30546
30546
|
t = 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
|
t.uniforms = Object.assign({}, s.uniforms), t.side = Jn;
|
|
30590
30590
|
e[2].skinning = !0, this.materialsBackSide = e.map((t) => {
|
|
30591
30591
|
const i = this.cloneMaterial(t);
|
|
30592
|
-
return i.uniforms = Object.assign({}, s.uniforms), i.side =
|
|
30592
|
+
return i.uniforms = Object.assign({}, s.uniforms), i.side = An, i;
|
|
30593
30593
|
}), this.materialsDoubleSide = e.map((t) => {
|
|
30594
30594
|
const i = this.cloneMaterial(t);
|
|
30595
30595
|
return i.uniforms = Object.assign({}, s.uniforms), i.side = yi, i;
|
|
@@ -30598,7 +30598,7 @@ uniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuf
|
|
|
30598
30598
|
return i.uniforms = Object.assign({}, s.uniforms), i.flatShading = !0, i;
|
|
30599
30599
|
}), this.materialsFlatShadedBackSide = e.map((t) => {
|
|
30600
30600
|
const i = this.cloneMaterial(t);
|
|
30601
|
-
return i.uniforms = Object.assign({}, s.uniforms), i.flatShading = !0, i.side =
|
|
30601
|
+
return i.uniforms = Object.assign({}, s.uniforms), i.flatShading = !0, i.side = An, i;
|
|
30602
30602
|
}), this.materialsFlatShadedDoubleSide = e.map((t) => {
|
|
30603
30603
|
const i = this.cloneMaterial(t);
|
|
30604
30604
|
return i.uniforms = Object.assign({}, s.uniforms), i.flatShading = !0, i.side = yi, i;
|
|
@@ -31230,7 +31230,7 @@ varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;void mai
|
|
|
31230
31230
|
scale: new Se(1),
|
|
31231
31231
|
kernel: new Se(0)
|
|
31232
31232
|
},
|
|
31233
|
-
blending:
|
|
31233
|
+
blending: xn,
|
|
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(s, e, t) {
|
|
31561
|
-
t !== void 0 && (this.renderTargetA.texture.type = t, this.renderTargetB.texture.type = t, t !==
|
|
31561
|
+
t !== void 0 && (this.renderTargetA.texture.type = t, this.renderTargetB.texture.type = t, t !== _n ? (this.blurMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1", this.copyMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1") : s !== null && s.outputColorSpace === xt && (this.renderTargetA.texture.colorSpace = xt, this.renderTargetB.texture.colorSpace = xt));
|
|
31562
31562
|
}
|
|
31563
31563
|
/**
|
|
31564
31564
|
* An auto sizing flag.
|
|
@@ -31610,7 +31610,7 @@ gl_FragColor=vec4(l);
|
|
|
31610
31610
|
smoothing: new Se(1),
|
|
31611
31611
|
range: new Se(null)
|
|
31612
31612
|
},
|
|
31613
|
-
blending:
|
|
31613
|
+
blending: xn,
|
|
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(s, e, t) {
|
|
31860
|
-
t !== void 0 && t !==
|
|
31860
|
+
t !== void 0 && t !== _n && (this.renderTarget.texture.type = t, this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1");
|
|
31861
31861
|
}
|
|
31862
31862
|
}, foe = `#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 Se(null),
|
|
31880
31880
|
texelSize: new Se(new ee())
|
|
31881
31881
|
},
|
|
31882
|
-
blending:
|
|
31882
|
+
blending: xn,
|
|
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 Se(new ee()),
|
|
31925
31925
|
radius: new Se(0.85)
|
|
31926
31926
|
},
|
|
31927
|
-
blending:
|
|
31927
|
+
blending: xn,
|
|
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 i = this.downsamplingMipmaps.concat(this.upsamplingMipmaps);
|
|
32069
32069
|
for (const n of i)
|
|
32070
32070
|
n.texture.type = t;
|
|
32071
|
-
if (t !==
|
|
32071
|
+
if (t !== _n)
|
|
32072
32072
|
this.downsamplingMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1", this.upsamplingMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1";
|
|
32073
32073
|
else if (s !== null && s.outputColorSpace === xt)
|
|
32074
32074
|
for (const n of i)
|
|
@@ -32801,7 +32801,7 @@ vec4 maxValue=texture2D(inputBuffer,vUv);for(int i=0;i<8;++i){vec4 kernel=kernel
|
|
|
32801
32801
|
kernel16: new Se(null),
|
|
32802
32802
|
scale: new Se(1)
|
|
32803
32803
|
},
|
|
32804
|
-
blending:
|
|
32804
|
+
blending: xn,
|
|
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 Se(0.3),
|
|
32954
32954
|
cameraFar: new Se(1e3)
|
|
32955
32955
|
},
|
|
32956
|
-
blending:
|
|
32956
|
+
blending: xn,
|
|
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 Se(null),
|
|
33171
33171
|
strength: new Se(1)
|
|
33172
33172
|
},
|
|
33173
|
-
blending:
|
|
33173
|
+
blending: xn,
|
|
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(s) {
|
|
33204
|
-
this.uniforms.maskTexture.value = s, delete this.defines.MASK_PRECISION_HIGH, s.type !==
|
|
33204
|
+
this.uniforms.maskTexture.value = s, delete this.defines.MASK_PRECISION_HIGH, s.type !== _n && (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(s, e, t) {
|
|
33351
|
-
t !== void 0 && t !==
|
|
33351
|
+
t !== void 0 && t !== _n && (this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1");
|
|
33352
33352
|
}
|
|
33353
33353
|
}, Roe = `#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(s, e, t) {
|
|
33582
|
-
this.cocPass.initialize(s, e, t), this.maskPass.initialize(s, e, t), this.bokehNearBasePass.initialize(s, e, t), this.bokehNearFillPass.initialize(s, e, t), this.bokehFarBasePass.initialize(s, e, t), this.bokehFarFillPass.initialize(s, e, t), this.blurPass.initialize(s, e,
|
|
33582
|
+
this.cocPass.initialize(s, e, t), this.maskPass.initialize(s, e, t), this.bokehNearBasePass.initialize(s, e, t), this.bokehNearFillPass.initialize(s, e, t), this.bokehFarBasePass.initialize(s, e, t), this.bokehFarFillPass.initialize(s, e, t), this.blurPass.initialize(s, e, _n), s.capabilities.logarithmicDepthBuffer && (this.cocPass.fullscreenMaterial.defines.LOG_DEPTH = "1"), t !== void 0 && (this.renderTarget.texture.type = t, this.renderTargetNear.texture.type = t, this.renderTargetFar.texture.type = t, this.renderTargetMasked.texture.type = t, s !== null && s.outputColorSpace === xt && (this.renderTarget.texture.colorSpace = xt, this.renderTargetNear.texture.colorSpace = xt, this.renderTargetFar.texture.colorSpace = xt, this.renderTargetMasked.texture.colorSpace = xt));
|
|
33583
33583
|
}
|
|
33584
33584
|
};
|
|
33585
33585
|
function Ioe(s, e, t) {
|
|
@@ -33590,7 +33590,7 @@ function Ioe(s, e, t) {
|
|
|
33590
33590
|
[Ti, 4]
|
|
33591
33591
|
]);
|
|
33592
33592
|
let n;
|
|
33593
|
-
if (i.has(e) || console.error("Invalid noise texture format"), t ===
|
|
33593
|
+
if (i.has(e) || console.error("Invalid noise texture format"), t === _n) {
|
|
33594
33594
|
n = new Uint8Array(s * i.get(e));
|
|
33595
33595
|
for (let r = 0, o = n.length; r < o; ++r)
|
|
33596
33596
|
n[r] = Math.random() * 255 + 0.5;
|
|
@@ -33613,7 +33613,7 @@ var Loe = class extends Gr {
|
|
|
33613
33613
|
* @param {Number} [format=LuminanceFormat] - The texture format.
|
|
33614
33614
|
* @param {Number} [type=UnsignedByteType] - The texture type.
|
|
33615
33615
|
*/
|
|
33616
|
-
constructor(s, e, t = eM, i =
|
|
33616
|
+
constructor(s, e, t = eM, i = _n) {
|
|
33617
33617
|
super(Ioe(s * e, t, i), s, e, t, i), this.needsUpdate = !0;
|
|
33618
33618
|
}
|
|
33619
33619
|
}, mv = {
|
|
@@ -33680,7 +33680,7 @@ if(keep){gl_FragColor=texture2D(inputBuffer,vUv);}else{discard;}}`, Boe = class
|
|
|
33680
33680
|
depthBuffer1: new Se(null),
|
|
33681
33681
|
cameraNearFar: new Se(new ee(1, 1))
|
|
33682
33682
|
},
|
|
33683
|
-
blending:
|
|
33683
|
+
blending: xn,
|
|
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);}`, zoe = class extends Ot {
|
|
|
34520
34520
|
predicationBuffer: new Se(null),
|
|
34521
34521
|
texelSize: new Se(s)
|
|
34522
34522
|
},
|
|
34523
|
-
blending:
|
|
34523
|
+
blending: xn,
|
|
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 Se(e),
|
|
34861
34861
|
texelSize: new Se(s)
|
|
34862
34862
|
},
|
|
34863
|
-
blending:
|
|
34863
|
+
blending: xn,
|
|
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 Se(0.01),
|
|
35354
35354
|
bias: new Se(0)
|
|
35355
35355
|
},
|
|
35356
|
-
blending:
|
|
35356
|
+
blending: xn,
|
|
35357
35357
|
toneMapped: !1,
|
|
35358
35358
|
depthWrite: !1,
|
|
35359
35359
|
depthTest: !1,
|
|
@@ -35894,7 +35894,7 @@ gl_FragColor=vec4(n[index],d[index]);}`, Koe = "uniform vec2 texelSize;varying v
|
|
|
35894
35894
|
normalBuffer: new Se(null),
|
|
35895
35895
|
texelSize: new Se(new ee())
|
|
35896
35896
|
},
|
|
35897
|
-
blending:
|
|
35897
|
+
blending: xn,
|
|
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: xn,
|
|
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 Se(1),
|
|
37400
37400
|
time: new Se(0)
|
|
37401
37401
|
},
|
|
37402
|
-
blending:
|
|
37402
|
+
blending: xn,
|
|
37403
37403
|
toneMapped: !1,
|
|
37404
37404
|
depthWrite: !1,
|
|
37405
37405
|
depthTest: !1,
|
|
@@ -37811,7 +37811,7 @@ var zN = class extends mr {
|
|
|
37811
37811
|
this.renderer = s;
|
|
37812
37812
|
for (const i of this.effects)
|
|
37813
37813
|
i.initialize(s, e, t);
|
|
37814
|
-
this.updateMaterial(), t !== void 0 && t !==
|
|
37814
|
+
this.updateMaterial(), t !== void 0 && t !== _n && (this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH = "1");
|
|
37815
37815
|
}
|
|
37816
37816
|
/**
|
|
37817
37817
|
* Deletes disposable objects.
|
|
@@ -38265,9 +38265,9 @@ const $ae = {
|
|
|
38265
38265
|
normalize: Bi,
|
|
38266
38266
|
denormalize: El
|
|
38267
38267
|
};
|
|
38268
|
-
class
|
|
38268
|
+
class Ln {
|
|
38269
38269
|
constructor(e = 0, t = 0) {
|
|
38270
|
-
|
|
38270
|
+
Ln.prototype.isVector2 = !0, this.x = e, this.y = t;
|
|
38271
38271
|
}
|
|
38272
38272
|
get width() {
|
|
38273
38273
|
return this.x;
|
|
@@ -38818,7 +38818,7 @@ function gR(s) {
|
|
|
38818
38818
|
let rle = 0;
|
|
38819
38819
|
class Fs extends QM {
|
|
38820
38820
|
constructor(e = Fs.DEFAULT_IMAGE, t = Fs.DEFAULT_MAPPING, i = Jf, n = Jf, r = yA, o = HM, a = od, l = Na, c = Fs.DEFAULT_ANISOTROPY, h = sC) {
|
|
38821
|
-
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: rle++ }), this.uuid = Bl(), this.name = "", this.source = new sle(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = i, this.wrapT = n, this.magFilter = r, this.minFilter = o, this.anisotropy = c, this.format = a, this.internalFormat = null, this.type = l, this.offset = new
|
|
38821
|
+
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: rle++ }), this.uuid = Bl(), this.name = "", this.source = new sle(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = i, this.wrapT = n, this.magFilter = r, this.minFilter = o, this.anisotropy = c, this.format = a, this.internalFormat = null, this.type = l, this.offset = new Ln(0, 0), this.repeat = new Ln(1, 1), this.center = new Ln(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new iu(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = h, 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 Wg extends yd {
|
|
|
41340
41340
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.fog = e.fog, this;
|
|
41341
41341
|
}
|
|
41342
41342
|
}
|
|
41343
|
-
const is = /* @__PURE__ */ new pe(), ow = /* @__PURE__ */ new
|
|
41343
|
+
const is = /* @__PURE__ */ new pe(), ow = /* @__PURE__ */ new Ln();
|
|
41344
41344
|
class fa {
|
|
41345
41345
|
constructor(e, t, i = !1) {
|
|
41346
41346
|
if (Array.isArray(e))
|
|
@@ -41616,7 +41616,7 @@ class Gl extends QM {
|
|
|
41616
41616
|
const o = this.getAttribute("tangent"), a = [], l = [];
|
|
41617
41617
|
for (let T = 0; T < i.count; T++)
|
|
41618
41618
|
a[T] = new pe(), l[T] = new pe();
|
|
41619
|
-
const c = new pe(), h = new pe(), u = new pe(), f = new
|
|
41619
|
+
const c = new pe(), h = new pe(), u = new pe(), f = new Ln(), p = new Ln(), m = new Ln(), b = new pe(), g = new pe();
|
|
41620
41620
|
function y(T, I, S) {
|
|
41621
41621
|
c.fromBufferAttribute(i, T), h.fromBufferAttribute(i, I), u.fromBufferAttribute(i, S), f.fromBufferAttribute(r, T), p.fromBufferAttribute(r, I), m.fromBufferAttribute(r, S), h.sub(c), u.sub(c), p.sub(f), m.sub(f);
|
|
41622
41622
|
const R = 1 / (p.x * m.y - m.x * p.y);
|
|
@@ -41791,7 +41791,7 @@ class Gl extends QM {
|
|
|
41791
41791
|
this.dispatchEvent({ type: "dispose" });
|
|
41792
41792
|
}
|
|
41793
41793
|
}
|
|
41794
|
-
const gz = /* @__PURE__ */ new di(), ff = /* @__PURE__ */ new ZM(), aw = /* @__PURE__ */ new Ul(), yz = /* @__PURE__ */ new pe(), Hm = /* @__PURE__ */ new pe(), Qm = /* @__PURE__ */ new pe(), Zm = /* @__PURE__ */ new pe(), IR = /* @__PURE__ */ new pe(), lw = /* @__PURE__ */ new pe(), cw = /* @__PURE__ */ new
|
|
41794
|
+
const gz = /* @__PURE__ */ new di(), ff = /* @__PURE__ */ new ZM(), aw = /* @__PURE__ */ new Ul(), yz = /* @__PURE__ */ new pe(), Hm = /* @__PURE__ */ new pe(), Qm = /* @__PURE__ */ new pe(), Zm = /* @__PURE__ */ new pe(), IR = /* @__PURE__ */ new pe(), lw = /* @__PURE__ */ new pe(), cw = /* @__PURE__ */ new Ln(), hw = /* @__PURE__ */ new Ln(), uw = /* @__PURE__ */ new Ln(), bz = /* @__PURE__ */ new pe(), vz = /* @__PURE__ */ new pe(), Az = /* @__PURE__ */ new pe(), dw = /* @__PURE__ */ new pe(), fw = /* @__PURE__ */ new pe();
|
|
41795
41795
|
class bd extends jn {
|
|
41796
41796
|
constructor(e = new Gl(), t = new Wg()) {
|
|
41797
41797
|
super(), this.isMesh = !0, this.type = "Mesh", this.geometry = e, this.material = t, this.updateMorphTargets();
|
|
@@ -41883,7 +41883,7 @@ function pw(s, e, t, i, n, r, o, a, l, c) {
|
|
|
41883
41883
|
s.getVertexPosition(a, Hm), s.getVertexPosition(l, Qm), s.getVertexPosition(c, Zm);
|
|
41884
41884
|
const h = vle(s, e, t, i, Hm, Qm, Zm, dw);
|
|
41885
41885
|
if (h) {
|
|
41886
|
-
n && (cw.fromBufferAttribute(n, a), hw.fromBufferAttribute(n, l), uw.fromBufferAttribute(n, c), h.uv = dc.getInterpolation(dw, Hm, Qm, Zm, cw, hw, uw, new
|
|
41886
|
+
n && (cw.fromBufferAttribute(n, a), hw.fromBufferAttribute(n, l), uw.fromBufferAttribute(n, c), h.uv = dc.getInterpolation(dw, Hm, Qm, Zm, cw, hw, uw, new Ln())), r && (cw.fromBufferAttribute(r, a), hw.fromBufferAttribute(r, l), uw.fromBufferAttribute(r, c), h.uv1 = dc.getInterpolation(dw, Hm, Qm, Zm, cw, hw, uw, new Ln())), o && (bz.fromBufferAttribute(o, a), vz.fromBufferAttribute(o, l), Az.fromBufferAttribute(o, c), h.normal = dc.getInterpolation(dw, Hm, Qm, Zm, bz, vz, Az, new pe()), h.normal.dot(i.direction) > 0 && h.normal.multiplyScalar(-1));
|
|
41887
41887
|
const u = {
|
|
41888
41888
|
a,
|
|
41889
41889
|
b: l,
|
|
@@ -41915,7 +41915,7 @@ let r9 = class extends jn {
|
|
|
41915
41915
|
return new this.constructor().copy(this);
|
|
41916
41916
|
}
|
|
41917
41917
|
};
|
|
41918
|
-
const Iu = /* @__PURE__ */ new pe(), xz = /* @__PURE__ */ new
|
|
41918
|
+
const Iu = /* @__PURE__ */ new pe(), xz = /* @__PURE__ */ new Ln(), _z = /* @__PURE__ */ new Ln();
|
|
41919
41919
|
class SD extends r9 {
|
|
41920
41920
|
constructor(e = 50, t = 1, i = 0.1, n = 2e3) {
|
|
41921
41921
|
super(), this.isPerspectiveCamera = !0, this.type = "PerspectiveCamera", this.fov = e, this.zoom = 1, this.near = i, this.far = n, this.focus = 10, this.aspect = t, this.view = null, this.filmGauge = 35, this.filmOffset = 0, this.updateProjectionMatrix();
|
|
@@ -42805,7 +42805,7 @@ class Ble extends YM {
|
|
|
42805
42805
|
}
|
|
42806
42806
|
class jM extends yd {
|
|
42807
42807
|
constructor(e) {
|
|
42808
|
-
super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new us(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 us(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Oae, this.normalScale = new
|
|
42808
|
+
super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new us(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 us(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Oae, this.normalScale = new Ln(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 q0(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
|
|
42809
42809
|
}
|
|
42810
42810
|
copy(e) {
|
|
42811
42811
|
return super.copy(e), this.defines = { STANDARD: "" }, this.color.copy(e.color), this.roughness = e.roughness, this.metalness = e.metalness, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.roughnessMap = e.roughnessMap, this.metalnessMap = e.metalnessMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.envMapIntensity = e.envMapIntensity, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
|
|
@@ -42816,7 +42816,7 @@ class Bc extends jM {
|
|
|
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 Ln(1, 1), this.clearcoatNormalMap = null, this.ior = 1.5, Object.defineProperty(this, "reflectivity", {
|
|
42820
42820
|
get: function() {
|
|
42821
42821
|
return Pr(2.5 * (this.ior - 1) / (this.ior + 1), 0, 1);
|
|
42822
42822
|
},
|
|
@@ -43719,7 +43719,7 @@ let RD = class extends jn {
|
|
|
43719
43719
|
const OR = /* @__PURE__ */ new di(), Gz = /* @__PURE__ */ new pe(), Nz = /* @__PURE__ */ new pe();
|
|
43720
43720
|
class ID {
|
|
43721
43721
|
constructor(e) {
|
|
43722
|
-
this.camera = e, this.intensity = 1, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new
|
|
43722
|
+
this.camera = e, this.intensity = 1, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new Ln(512, 512), this.map = null, this.mapPass = null, this.matrix = new di(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new _le(), this._frameExtents = new Ln(1, 1), this._viewportCount = 1, this._viewports = [
|
|
43723
43723
|
new Ua(0, 0, 1, 1)
|
|
43724
43724
|
];
|
|
43725
43725
|
}
|
|
@@ -43802,7 +43802,7 @@ class Yle extends RD {
|
|
|
43802
43802
|
const zz = /* @__PURE__ */ new di(), Jy = /* @__PURE__ */ new pe(), FR = /* @__PURE__ */ new pe();
|
|
43803
43803
|
class jle extends ID {
|
|
43804
43804
|
constructor() {
|
|
43805
|
-
super(new SD(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new
|
|
43805
|
+
super(new SD(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new Ln(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 dce = class {
|
|
|
44581
44581
|
const r = [], o = n.extensions[this.name];
|
|
44582
44582
|
if (o.clearcoatFactor !== void 0 && (t.clearcoat = o.clearcoatFactor), o.clearcoatTexture !== void 0 && r.push(i.assignTexture(t, "clearcoatMap", o.clearcoatTexture)), o.clearcoatRoughnessFactor !== void 0 && (t.clearcoatRoughness = o.clearcoatRoughnessFactor), o.clearcoatRoughnessTexture !== void 0 && r.push(i.assignTexture(t, "clearcoatRoughnessMap", o.clearcoatRoughnessTexture)), o.clearcoatNormalTexture !== void 0 && (r.push(i.assignTexture(t, "clearcoatNormalMap", o.clearcoatNormalTexture)), o.clearcoatNormalTexture.scale !== void 0)) {
|
|
44583
44583
|
const a = o.clearcoatNormalTexture.scale;
|
|
44584
|
-
t.clearcoatNormalScale = new
|
|
44584
|
+
t.clearcoatNormalScale = new Ln(a, a);
|
|
44585
44585
|
}
|
|
44586
44586
|
return Promise.all(r);
|
|
44587
44587
|
}
|
|
@@ -45526,7 +45526,7 @@ let Xce = class {
|
|
|
45526
45526
|
}
|
|
45527
45527
|
r.doubleSided === !0 && (a.side = bae);
|
|
45528
45528
|
const h = r.alphaMode || NR.OPAQUE;
|
|
45529
|
-
if (h === NR.BLEND ? (a.transparent = !0, a.depthWrite = !1) : (a.transparent = !1, h === NR.MASK && (a.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && o !== Wg && (c.push(t.assignTexture(a, "normalMap", r.normalTexture)), a.normalScale = new
|
|
45529
|
+
if (h === NR.BLEND ? (a.transparent = !0, a.depthWrite = !1) : (a.transparent = !1, h === NR.MASK && (a.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && o !== Wg && (c.push(t.assignTexture(a, "normalMap", r.normalTexture)), a.normalScale = new Ln(1, 1), r.normalTexture.scale !== void 0)) {
|
|
45530
45530
|
const u = r.normalTexture.scale;
|
|
45531
45531
|
a.normalScale.set(u, u);
|
|
45532
45532
|
}
|
|
@@ -47911,7 +47911,7 @@ let Che = class {
|
|
|
47911
47911
|
}
|
|
47912
47912
|
};
|
|
47913
47913
|
const gs = ie("debuginput");
|
|
47914
|
-
var OD = /* @__PURE__ */ ((s) => (s.Mouse = "mouse", s.Touch = "touch", s.Controller = "controller", s.Hand = "hand", s))(OD || {}),
|
|
47914
|
+
var OD = /* @__PURE__ */ ((s) => (s.Mouse = "mouse", s.Touch = "touch", s.Controller = "controller", s.Hand = "hand", s))(OD || {}), Tn = /* @__PURE__ */ ((s) => (s.PointerDown = "pointerdown", s.PointerUp = "pointerup", s.PointerMove = "pointermove", s.KeyDown = "keydown", s.KeyUp = "keyup", s.KeyPressed = "keypress", s))(Tn || {});
|
|
47915
47915
|
class Hu extends PointerEvent {
|
|
47916
47916
|
constructor(t, i, n) {
|
|
47917
47917
|
super(t, n);
|
|
@@ -48130,7 +48130,7 @@ class The {
|
|
|
48130
48130
|
return;
|
|
48131
48131
|
e.target instanceof HTMLElement && e.target.setPointerCapture(e.pointerId);
|
|
48132
48132
|
const t = this.getPointerId(e);
|
|
48133
|
-
gs &&
|
|
48133
|
+
gs && In(`pointer down #${t}, identifier:${e.pointerId}`);
|
|
48134
48134
|
const i = this.getAndUpdateSpatialObjectForScreenPosition(t, e.clientX, e.clientY), n = new Hu("pointerdown", e, { origin: this, mode: "screen", deviceIndex: 0, pointerId: t, button: e.button, clientX: e.clientX, clientY: e.clientY, pointerType: e.pointerType, buttonName: this.getButtonName(e), device: i, pressure: e.pressure });
|
|
48135
48135
|
this.onDown(n);
|
|
48136
48136
|
});
|
|
@@ -48491,13 +48491,13 @@ class The {
|
|
|
48491
48491
|
createInputEvent(e) {
|
|
48492
48492
|
switch (e.type) {
|
|
48493
48493
|
case "pointerdown":
|
|
48494
|
-
gs &&
|
|
48494
|
+
gs && In("Create Pointer down"), this.onDownButton(e.deviceIndex, e.button), this.onDown(e);
|
|
48495
48495
|
break;
|
|
48496
48496
|
case "pointermove":
|
|
48497
|
-
gs &&
|
|
48497
|
+
gs && In("Create Pointer move"), this.onMove(e);
|
|
48498
48498
|
break;
|
|
48499
48499
|
case "pointerup":
|
|
48500
|
-
gs &&
|
|
48500
|
+
gs && In("Create Pointer up"), this.onUp(e), this.onReleaseButton(e.deviceIndex, e.button);
|
|
48501
48501
|
break;
|
|
48502
48502
|
}
|
|
48503
48503
|
}
|
|
@@ -48769,17 +48769,17 @@ class D9 {
|
|
|
48769
48769
|
return;
|
|
48770
48770
|
this.onUpdateFrame(e.frame), this._hasSelectEvent = !0;
|
|
48771
48771
|
const t = (n = this._layout) == null ? void 0 : n.selectComponentId, i = (a = (o = (r = this._layout) == null ? void 0 : r.components[t]) == null ? void 0 : o.gamepadIndices) == null ? void 0 : a.button;
|
|
48772
|
-
i !== void 0 && (this._selectButtonIndex = i), !Cw && (nh && _t.DrawDirection(this.rayWorldPosition, At(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 16711680, 10), this.emitPointerEvent(
|
|
48772
|
+
i !== void 0 && (this._selectButtonIndex = i), !Cw && (nh && _t.DrawDirection(this.rayWorldPosition, At(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 16711680, 10), this.emitPointerEvent(Tn.PointerDown, this._selectButtonIndex || 0, "xr-standard-trigger", !0, e));
|
|
48773
48773
|
});
|
|
48774
48774
|
d(this, "onSelectEnd", (e) => {
|
|
48775
|
-
this.emitPointerUpEvent && (Cw || this.inputSource === e.inputSource && this.emitPointerEvent(
|
|
48775
|
+
this.emitPointerUpEvent && (Cw || this.inputSource === e.inputSource && this.emitPointerEvent(Tn.PointerUp, this._selectButtonIndex || 0, "xr-standard-trigger", !0, e));
|
|
48776
48776
|
});
|
|
48777
48777
|
d(this, "onSequeezeStart", (e) => {
|
|
48778
48778
|
var t, i, n;
|
|
48779
|
-
this.emitPointerDownEvent && this.inputSource === e.inputSource && (this._squeezeButtonIndex = (n = (i = (t = this._layout) == null ? void 0 : t.components["xr-standard-squeeze"]) == null ? void 0 : i.gamepadIndices) == null ? void 0 : n.button, this._squeezeButtonIndex !== void 0 && (nh && _t.DrawDirection(this.rayWorldPosition, At(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 255, 10), this.emitPointerEvent(
|
|
48779
|
+
this.emitPointerDownEvent && this.inputSource === e.inputSource && (this._squeezeButtonIndex = (n = (i = (t = this._layout) == null ? void 0 : t.components["xr-standard-squeeze"]) == null ? void 0 : i.gamepadIndices) == null ? void 0 : n.button, this._squeezeButtonIndex !== void 0 && (nh && _t.DrawDirection(this.rayWorldPosition, At(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 255, 10), this.emitPointerEvent(Tn.PointerDown, this._squeezeButtonIndex || 0, "xr-standard-squeeze", !0, e)));
|
|
48780
48780
|
});
|
|
48781
48781
|
d(this, "onSequeezeEnd", (e) => {
|
|
48782
|
-
this.emitPointerUpEvent && this.inputSource === e.inputSource && this._squeezeButtonIndex !== void 0 && this.emitPointerEvent(
|
|
48782
|
+
this.emitPointerUpEvent && this.inputSource === e.inputSource && this._squeezeButtonIndex !== void 0 && this.emitPointerEvent(Tn.PointerUp, this._squeezeButtonIndex || 0, "xr-standard-squeeze", !0, e);
|
|
48783
48783
|
});
|
|
48784
48784
|
/** Index = button index */
|
|
48785
48785
|
d(this, "states", {});
|
|
@@ -49260,7 +49260,7 @@ Pinch: ${(r = this.getGesture("pinch")) == null ? void 0 : r.value.toFixed(3)}`)
|
|
|
49260
49260
|
}
|
|
49261
49261
|
emitPointerEvent(e, t, i, n, r = null, o) {
|
|
49262
49262
|
if (!this.emitEvents) {
|
|
49263
|
-
nh && e !==
|
|
49263
|
+
nh && e !== Tn.PointerMove && console.warn("Pointer events are disabled for this controller", this.index, e, t);
|
|
49264
49264
|
return;
|
|
49265
49265
|
}
|
|
49266
49266
|
if (this.xr.mode === "immersive-vr" || this.xr.isPassThrough) {
|
|
@@ -57102,7 +57102,7 @@ class lde {
|
|
|
57102
57102
|
else if (g.mode === Fa.LINES)
|
|
57103
57103
|
y = new Nr(b, v);
|
|
57104
57104
|
else if (g.mode === Fa.LINE_STRIP)
|
|
57105
|
-
y = new
|
|
57105
|
+
y = new vn(b, v);
|
|
57106
57106
|
else if (g.mode === Fa.LINE_LOOP)
|
|
57107
57107
|
y = new pk(b, v);
|
|
57108
57108
|
else if (g.mode === Fa.POINTS)
|
|
@@ -58131,7 +58131,7 @@ const Ah = class {
|
|
|
58131
58131
|
u.onBeforeXR && u.onBeforeXR(e, t);
|
|
58132
58132
|
for (const u of this._sessionRequestStartListeners)
|
|
58133
58133
|
u({ mode: e, init: t });
|
|
58134
|
-
ns &&
|
|
58134
|
+
ns && In("Requesting " + e + " session (" + Date.now() + ")"), this._currentSessionRequest = (c = navigator.xr) == null ? void 0 : c.requestSession(e, t), this._currentSessionRequestMode = e;
|
|
58135
58135
|
const r = await ((h = this._currentSessionRequest) == null ? void 0 : h.catch((u) => {
|
|
58136
58136
|
console.error(u, "Code: " + u.code), u.code === 9 && Qi("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:" && Qi("XR requires a secure connection (HTTPS)");
|
|
58137
58137
|
}));
|
|
@@ -58712,7 +58712,7 @@ class on {
|
|
|
58712
58712
|
static getLine(e) {
|
|
58713
58713
|
let t = this.linesCache.pop();
|
|
58714
58714
|
if (!t) {
|
|
58715
|
-
t = new
|
|
58715
|
+
t = new vn();
|
|
58716
58716
|
let i = t.geometry.getAttribute("position");
|
|
58717
58717
|
i || (i = new Ke(new Float32Array(2 * 3), 3), t.geometry.setAttribute("position", i));
|
|
58718
58718
|
}
|
|
@@ -58721,7 +58721,7 @@ class on {
|
|
|
58721
58721
|
static getCircle(e) {
|
|
58722
58722
|
let t = this.circlesCache.pop();
|
|
58723
58723
|
if (!t) {
|
|
58724
|
-
t = new
|
|
58724
|
+
t = new vn();
|
|
58725
58725
|
let i = t.geometry.getAttribute("position");
|
|
58726
58726
|
if (!i) {
|
|
58727
58727
|
i = new Ke(new Float32Array(cI * 3), 3), t.geometry.setAttribute("position", i);
|
|
@@ -58938,7 +58938,7 @@ const UC = class {
|
|
|
58938
58938
|
intersect(e, t, i, n) {
|
|
58939
58939
|
var r, o, a;
|
|
58940
58940
|
for (const l of t) {
|
|
58941
|
-
if (!l || l.visible === !1 || _t.isGizmo(l) || n.lineThreshold !== void 0 && n.lineThreshold < 0 && l instanceof
|
|
58941
|
+
if (!l || l.visible === !1 || _t.isGizmo(l) || n.lineThreshold !== void 0 && n.lineThreshold < 0 && l instanceof vn)
|
|
58942
58942
|
continue;
|
|
58943
58943
|
let c = !0;
|
|
58944
58944
|
const h = l, u = h.geometry;
|
|
@@ -58961,7 +58961,7 @@ const UC = class {
|
|
|
58961
58961
|
}
|
|
58962
58962
|
intersectSphere(e, t, i, n, r, o, a, l) {
|
|
58963
58963
|
let c = e && e.isMesh && e.layers.test(n) && !_t.isGizmo(e);
|
|
58964
|
-
c && (c = e.visible), c && (c = !(e instanceof
|
|
58964
|
+
c && (c = e.visible), c && (c = !(e instanceof vn)), c && (c = !(e instanceof R0));
|
|
58965
58965
|
const h = e, u = h.geometry;
|
|
58966
58966
|
if (c && l) {
|
|
58967
58967
|
const f = l(e);
|
|
@@ -60403,7 +60403,7 @@ class xfe {
|
|
|
60403
60403
|
}
|
|
60404
60404
|
}
|
|
60405
60405
|
}
|
|
60406
|
-
const xf = new Od(), Er = new C(), Bu = new C(),
|
|
60406
|
+
const xf = new Od(), Er = new C(), Bu = new C(), yn = new Ce(), sU = {
|
|
60407
60407
|
X: new C(1, 0, 0),
|
|
60408
60408
|
Y: new C(0, 1, 0),
|
|
60409
60409
|
Z: new C(0, 0, 1)
|
|
@@ -60458,7 +60458,7 @@ class _fe extends ge {
|
|
|
60458
60458
|
const o = mI(this._plane, xf, !0);
|
|
60459
60459
|
if (o) {
|
|
60460
60460
|
if (this.pointEnd.copy(o.point).sub(this.worldPositionStart), i === "translate")
|
|
60461
|
-
this._offset.copy(this.pointEnd).sub(this.pointStart), r === "local" && t !== "XYZ" && this._offset.applyQuaternion(this._worldQuaternionInv), t.indexOf("X") === -1 && (this._offset.x = 0), t.indexOf("Y") === -1 && (this._offset.y = 0), t.indexOf("Z") === -1 && (this._offset.z = 0), r === "local" && t !== "XYZ" ? this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale) : this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale), n.position.copy(this._offset).add(this._positionStart), this.translationSnap && (r === "local" && (n.position.applyQuaternion(
|
|
60461
|
+
this._offset.copy(this.pointEnd).sub(this.pointStart), r === "local" && t !== "XYZ" && this._offset.applyQuaternion(this._worldQuaternionInv), t.indexOf("X") === -1 && (this._offset.x = 0), t.indexOf("Y") === -1 && (this._offset.y = 0), t.indexOf("Z") === -1 && (this._offset.z = 0), r === "local" && t !== "XYZ" ? this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale) : this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale), n.position.copy(this._offset).add(this._positionStart), this.translationSnap && (r === "local" && (n.position.applyQuaternion(yn.copy(this._quaternionStart).invert()), t.search("X") !== -1 && (n.position.x = Math.round(n.position.x / this.translationSnap) * this.translationSnap), t.search("Y") !== -1 && (n.position.y = Math.round(n.position.y / this.translationSnap) * this.translationSnap), t.search("Z") !== -1 && (n.position.z = Math.round(n.position.z / this.translationSnap) * this.translationSnap), n.position.applyQuaternion(this._quaternionStart)), r === "world" && (n.parent && n.position.add(Er.setFromMatrixPosition(n.parent.matrixWorld)), t.search("X") !== -1 && (n.position.x = Math.round(n.position.x / this.translationSnap) * this.translationSnap), t.search("Y") !== -1 && (n.position.y = Math.round(n.position.y / this.translationSnap) * this.translationSnap), t.search("Z") !== -1 && (n.position.z = Math.round(n.position.z / this.translationSnap) * this.translationSnap), n.parent && n.position.sub(Er.setFromMatrixPosition(n.parent.matrixWorld))));
|
|
60462
60462
|
else if (i === "scale") {
|
|
60463
60463
|
if (t.search("XYZ") !== -1) {
|
|
60464
60464
|
let a = this.pointEnd.length() / this.pointStart.length();
|
|
@@ -60470,7 +60470,7 @@ class _fe extends ge {
|
|
|
60470
60470
|
this._offset.copy(this.pointEnd).sub(this.pointStart);
|
|
60471
60471
|
const a = 20 / this.worldPosition.distanceTo(Er.setFromMatrixPosition(this.camera.matrixWorld));
|
|
60472
60472
|
let l = !1;
|
|
60473
|
-
t === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(Er.copy(this.rotationAxis).cross(this.eye)) * a) : (t === "X" || t === "Y" || t === "Z") && (this.rotationAxis.copy(sU[t]), Er.copy(sU[t]), r === "local" && Er.applyQuaternion(this.worldQuaternion), Er.cross(this.eye), Er.length() === 0 ? l = !0 : this.rotationAngle = this._offset.dot(Er.normalize()) * a), (t === "E" || l) && (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), r === "local" && t !== "E" && t !== "XYZE" ? (n.quaternion.copy(this._quaternionStart), n.quaternion.multiply(
|
|
60473
|
+
t === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(Er.copy(this.rotationAxis).cross(this.eye)) * a) : (t === "X" || t === "Y" || t === "Z") && (this.rotationAxis.copy(sU[t]), Er.copy(sU[t]), r === "local" && Er.applyQuaternion(this.worldQuaternion), Er.cross(this.eye), Er.length() === 0 ? l = !0 : this.rotationAngle = this._offset.dot(Er.normalize()) * a), (t === "E" || l) && (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), r === "local" && t !== "E" && t !== "XYZE" ? (n.quaternion.copy(this._quaternionStart), n.quaternion.multiply(yn.setFromAxisAngle(this.rotationAxis, this.rotationAngle)).normalize()) : (this.rotationAxis.applyQuaternion(this._parentQuaternionInv), n.quaternion.copy(yn.setFromAxisAngle(this.rotationAxis, this.rotationAngle)), n.quaternion.multiply(this._quaternionStart).normalize());
|
|
60474
60474
|
}
|
|
60475
60475
|
this.dispatchEvent(pI), this.dispatchEvent(aU);
|
|
60476
60476
|
}
|
|
@@ -60676,16 +60676,16 @@ class jD extends ge {
|
|
|
60676
60676
|
[new fe(new Bh(0.01, 2), n), null, null, null, "helper"]
|
|
60677
60677
|
],
|
|
60678
60678
|
DELTA: [
|
|
60679
|
-
[new
|
|
60679
|
+
[new vn(x(), n), null, null, null, "helper"]
|
|
60680
60680
|
],
|
|
60681
60681
|
X: [
|
|
60682
|
-
[new
|
|
60682
|
+
[new vn(y, n.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
|
|
60683
60683
|
],
|
|
60684
60684
|
Y: [
|
|
60685
|
-
[new
|
|
60685
|
+
[new vn(y, n.clone()), [0, -1e3, 0], [0, 0, Math.PI / 2], [1e6, 1, 1], "helper"]
|
|
60686
60686
|
],
|
|
60687
60687
|
Z: [
|
|
60688
|
-
[new
|
|
60688
|
+
[new vn(y, n.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]
|
|
60689
60689
|
]
|
|
60690
60690
|
}, T = {
|
|
60691
60691
|
XYZE: [
|
|
@@ -60705,7 +60705,7 @@ class jD extends ge {
|
|
|
60705
60705
|
]
|
|
60706
60706
|
}, I = {
|
|
60707
60707
|
AXIS: [
|
|
60708
|
-
[new
|
|
60708
|
+
[new vn(y, n.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
|
|
60709
60709
|
]
|
|
60710
60710
|
}, S = {
|
|
60711
60711
|
XYZE: [
|
|
@@ -60778,13 +60778,13 @@ class jD extends ge {
|
|
|
60778
60778
|
]
|
|
60779
60779
|
}, O = {
|
|
60780
60780
|
X: [
|
|
60781
|
-
[new
|
|
60781
|
+
[new vn(y, n.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
|
|
60782
60782
|
],
|
|
60783
60783
|
Y: [
|
|
60784
|
-
[new
|
|
60784
|
+
[new vn(y, n.clone()), [0, -1e3, 0], [0, 0, Math.PI / 2], [1e6, 1, 1], "helper"]
|
|
60785
60785
|
],
|
|
60786
60786
|
Z: [
|
|
60787
|
-
[new
|
|
60787
|
+
[new vn(y, n.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]
|
|
60788
60788
|
]
|
|
60789
60789
|
};
|
|
60790
60790
|
function P(U) {
|
|
@@ -60811,10 +60811,10 @@ class jD extends ge {
|
|
|
60811
60811
|
o.visible = !0, o.rotation.set(0, 0, 0), o.position.copy(this.worldPosition);
|
|
60812
60812
|
let a;
|
|
60813
60813
|
if (this.camera.isOrthographicCamera ? a = (this.camera.top - this.camera.bottom) / this.camera.zoom : a = 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(a * 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" && (yn.setFromEuler(kw.set(0, 0, 0)), o.quaternion.copy(i).multiply(yn), Math.abs(Xi.copy(Hb).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Y" && (yn.setFromEuler(kw.set(0, 0, Math.PI / 2)), o.quaternion.copy(i).multiply(yn), Math.abs(Xi.copy(Ff).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Z" && (yn.setFromEuler(kw.set(0, Math.PI / 2, 0)), o.quaternion.copy(i).multiply(yn), Math.abs(Xi.copy(Qb).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "XYZE" && (yn.setFromEuler(kw.set(0, Math.PI / 2, 0)), Xi.copy(this.rotationAxis), o.quaternion.setFromRotationMatrix(cU.lookAt(lU, Xi, Ff)), o.quaternion.multiply(yn), 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), Er.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), Er.applyQuaternion(this.worldQuaternionStart.clone().invert()), o.scale.copy(Er), o.visible = this.dragging) : (o.quaternion.copy(i), 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(i), this.mode === "translate" || this.mode === "scale" ? (o.name === "X" && Math.abs(Xi.copy(Hb).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Y" && Math.abs(Xi.copy(Ff).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Z" && Math.abs(Xi.copy(Qb).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XY" && Math.abs(Xi.copy(Qb).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "YZ" && Math.abs(Xi.copy(Hb).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XZ" && Math.abs(Xi.copy(Ff).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1)) : this.mode === "rotate" && (Dw.copy(i), Xi.copy(this.eye).applyQuaternion(
|
|
60817
|
+
o.quaternion.copy(i), this.mode === "translate" || this.mode === "scale" ? (o.name === "X" && Math.abs(Xi.copy(Hb).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Y" && Math.abs(Xi.copy(Ff).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Z" && Math.abs(Xi.copy(Qb).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XY" && Math.abs(Xi.copy(Qb).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "YZ" && Math.abs(Xi.copy(Hb).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XZ" && Math.abs(Xi.copy(Ff).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1)) : this.mode === "rotate" && (Dw.copy(i), Xi.copy(this.eye).applyQuaternion(yn.copy(i).invert()), o.name.search("E") !== -1 && o.quaternion.setFromRotationMatrix(cU.lookAt(this.eye, lU, Ff)), o.name === "X" && (yn.setFromAxisAngle(Hb, Math.atan2(-Xi.y, Xi.z)), yn.multiplyQuaternions(Dw, yn), o.quaternion.copy(yn)), o.name === "Y" && (yn.setFromAxisAngle(Ff, Math.atan2(Xi.x, Xi.z)), yn.multiplyQuaternions(Dw, yn), o.quaternion.copy(yn)), o.name === "Z" && (yn.setFromAxisAngle(Qb, Math.atan2(Xi.y, Xi.x)), yn.multiplyQuaternions(Dw, yn), o.quaternion.copy(yn))), 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(l) {
|
|
60818
60818
|
return o.name === l;
|
|
60819
60819
|
})) && (o.material.color.setHex(16776960), o.material.opacity = 1);
|
|
60820
60820
|
}
|
|
@@ -63017,15 +63017,15 @@ class EA extends Ek {
|
|
|
63017
63017
|
for (let js = 8 * Ct; js < 8 * Ct + Vi; ++js) {
|
|
63018
63018
|
pn = Pt[vi][js];
|
|
63019
63019
|
for (let Vc = 0; Vc < xe; ++Vc) {
|
|
63020
|
-
const
|
|
63021
|
-
j.setUint16(pn + 0 * 2 * jt, Zt[vi][
|
|
63020
|
+
const Mn = Vc * 64 + (js & 7) * 8;
|
|
63021
|
+
j.setUint16(pn + 0 * 2 * jt, Zt[vi][Mn + 0], !0), j.setUint16(pn + 1 * 2 * jt, Zt[vi][Mn + 1], !0), j.setUint16(pn + 2 * 2 * jt, Zt[vi][Mn + 2], !0), j.setUint16(pn + 3 * 2 * jt, Zt[vi][Mn + 3], !0), j.setUint16(pn + 4 * 2 * jt, Zt[vi][Mn + 4], !0), j.setUint16(pn + 5 * 2 * jt, Zt[vi][Mn + 5], !0), j.setUint16(pn + 6 * 2 * jt, Zt[vi][Mn + 6], !0), j.setUint16(pn + 7 * 2 * jt, Zt[vi][Mn + 7], !0), pn += 8 * 2 * jt;
|
|
63022
63022
|
}
|
|
63023
63023
|
}
|
|
63024
63024
|
if (xe != Pe)
|
|
63025
63025
|
for (let js = 8 * Ct; js < 8 * Ct + Vi; ++js) {
|
|
63026
|
-
const Vc = Pt[vi][js] + 8 * xe * 2 * jt,
|
|
63026
|
+
const Vc = Pt[vi][js] + 8 * xe * 2 * jt, Mn = xe * 64 + (js & 7) * 8;
|
|
63027
63027
|
for (let pu = 0; pu < Kr; ++pu)
|
|
63028
|
-
j.setUint16(Vc + pu * 2 * jt, Zt[vi][
|
|
63028
|
+
j.setUint16(Vc + pu * 2 * jt, Zt[vi][Mn + pu], !0);
|
|
63029
63029
|
}
|
|
63030
63030
|
}
|
|
63031
63031
|
}
|
|
@@ -63388,7 +63388,7 @@ class EA extends Ek {
|
|
|
63388
63388
|
return q.value += V, "skipped";
|
|
63389
63389
|
q.value += V;
|
|
63390
63390
|
}
|
|
63391
|
-
function
|
|
63391
|
+
function Cn(k, N, q) {
|
|
63392
63392
|
const L = {};
|
|
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 EA extends Ek {
|
|
|
63414
63414
|
throw console.error("THREE.EXRHeader:", L), new Error("THREE.EXRLoader: Provided file is currently unsupported.");
|
|
63415
63415
|
return L;
|
|
63416
63416
|
}
|
|
63417
|
-
function
|
|
63417
|
+
function Dn(k, N, q, L, V) {
|
|
63418
63418
|
const W = {
|
|
63419
63419
|
size: 0,
|
|
63420
63420
|
viewer: N,
|
|
@@ -63497,7 +63497,7 @@ class EA extends Ek {
|
|
|
63497
63497
|
}
|
|
63498
63498
|
return W.bytesPerLine = W.width * W.inputSize * W.channels, W.outputChannels == 4 ? (W.format = Ti, W.colorSpace = Fi) : (W.format = zp, W.colorSpace = Io), W;
|
|
63499
63499
|
}
|
|
63500
|
-
const Vo = new DataView(e), du = new Uint8Array(e), Xo = { value: 0 }, fu =
|
|
63500
|
+
const Vo = new DataView(e), du = new Uint8Array(e), Xo = { value: 0 }, fu = Cn(Vo, e, Xo), ii = Dn(fu, Vo, du, Xo, this.type), Iy = { value: 0 }, jx = { R: 0, G: 1, B: 2, A: 3, Y: 0 };
|
|
63501
63501
|
for (let k = 0; k < ii.height / ii.scanlineBlockSize; k++) {
|
|
63502
63502
|
const N = pt(Vo, Xo);
|
|
63503
63503
|
ii.size = pt(Vo, Xo), ii.lines = N + ii.scanlineBlockSize > ii.height ? ii.height - N : ii.scanlineBlockSize;
|
|
@@ -65340,6 +65340,7 @@ const vF = 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 vF = 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(e, t), this._renderlooperrors = 0, performance.mark("update.end"), performance.measure("NE Frame", "update.start", "update.end");
|
|
66268
66270
|
} catch (i) {
|
|
66269
|
-
this._renderlooperrors += 1, (rt() || bs) && (i instanceof Error || i instanceof TypeError) &&
|
|
66271
|
+
this._renderlooperrors += 1, (rt() || bs) && (i instanceof Error || i instanceof TypeError) && In("Caught unhandled exception during render-loop - see console for details.", Za.Error), console.error("Frame #" + this.time.frame + `
|
|
66270
66272
|
`, i), this._renderlooperrors >= 3 && (console.warn("Stopping render loop due to error"), this.renderer.setAnimationLoop(null)), this.domElement.dispatchEvent(new CustomEvent("error", { detail: i }));
|
|
66271
66273
|
}
|
|
66272
66274
|
else
|
|
@@ -67575,7 +67577,7 @@ class ame {
|
|
|
67575
67577
|
color: 3342591,
|
|
67576
67578
|
linewidth: 1
|
|
67577
67579
|
});
|
|
67578
|
-
return new
|
|
67580
|
+
return new vn(i, n);
|
|
67579
67581
|
}
|
|
67580
67582
|
// parse the model node for transform data
|
|
67581
67583
|
getTransformData(e, t) {
|
|
@@ -69538,7 +69540,7 @@ async function Ime(s, e = 1 / 0, t = null, i = void 0) {
|
|
|
69538
69540
|
const r = new Nt(), o = new Vs();
|
|
69539
69541
|
o.add(Xw), t || (t = Vw = new eu({ antialias: !1, alpha: !0, premultipliedAlpha: !1, preserveDrawingBuffer: !0 }));
|
|
69540
69542
|
const a = Math.min(s.image.width, e), l = Math.min(s.image.height, e);
|
|
69541
|
-
to && (to.width !== a || to.height !== l) && (to.dispose(), to = null), to || (to = new Jt(a, l, { format: Ti, type:
|
|
69543
|
+
to && (to.width !== a || to.height !== l) && (to.dispose(), to = null), to || (to = new Jt(a, l, { format: Ti, type: _n, minFilter: Gt, magFilter: Gt })), t.setRenderTarget(to), t.setSize(a, l), t.clear(), t.render(o, r), Vw && (Vw.dispose(), Vw = null);
|
|
69542
69544
|
const c = new Uint8ClampedArray(to.width * to.height * 4);
|
|
69543
69545
|
t.readRenderTargetPixels(to, 0, 0, to.width, to.height, c);
|
|
69544
69546
|
const h = new ImageData(c, to.width, to.height, void 0), u = await createImageBitmap(h, { premultiplyAlpha: "none" });
|
|
@@ -71668,36 +71670,36 @@ let zZ = class extends Ws {
|
|
|
71668
71670
|
H.copy(dn).sub(i.target), H.applyQuaternion(ae), a.setFromVector3(H), i.autoRotate && r === n.NONE && O(R(Ei)), i.enableDamping ? (a.theta += l.theta * i.dampingFactor, a.phi += l.phi * i.dampingFactor) : (a.theta += l.theta, a.phi += l.phi);
|
|
71669
71671
|
let fn = i.minAzimuthAngle, ai = i.maxAzimuthAngle;
|
|
71670
71672
|
isFinite(fn) && isFinite(ai) && (fn < -Math.PI ? fn += je : fn > Math.PI && (fn -= je), ai < -Math.PI ? ai += je : ai > Math.PI && (ai -= je), fn <= ai ? a.theta = Math.max(fn, Math.min(ai, a.theta)) : a.theta = a.theta > (fn + ai) / 2 ? Math.max(fn, a.theta) : Math.min(ai, a.theta)), a.phi = Math.max(i.minPolarAngle, Math.min(i.maxPolarAngle, a.phi)), a.makeSafe(), i.enableDamping === !0 ? i.target.addScaledVector(u, i.dampingFactor) : i.target.add(u), i.target.sub(i.cursor), i.target.clampLength(i.minTargetRadius, i.maxTargetRadius), i.target.add(i.cursor);
|
|
71671
|
-
let
|
|
71673
|
+
let Cn = !1;
|
|
71672
71674
|
if (i.zoomToCursor && E || i.object.isOrthographicCamera)
|
|
71673
71675
|
a.radius = re(a.radius);
|
|
71674
71676
|
else {
|
|
71675
71677
|
i.enableDamping ? h = li.lerp(h, c, i.dampingFactor) : h = c, a.radius = re(a.radius * h);
|
|
71676
|
-
const
|
|
71677
|
-
a.radius = re(a.radius * c),
|
|
71678
|
+
const Dn = a.radius;
|
|
71679
|
+
a.radius = re(a.radius * c), Cn = Dn != a.radius;
|
|
71678
71680
|
}
|
|
71679
71681
|
if (H.setFromSpherical(a), H.applyQuaternion($), dn.copy(i.target).add(H), i.object.parent ? i.object.parent.worldToLocal(dn) : i.object.position.copy(dn), i.object.lookAt(i.target), i.enableDamping === !0 ? (l.theta *= 1 - i.dampingFactor, l.phi *= 1 - i.dampingFactor, u.multiplyScalar(1 - i.dampingFactor)) : (l.set(0, 0, 0), u.set(0, 0, 0)), i.zoomToCursor && E) {
|
|
71680
|
-
let
|
|
71682
|
+
let Dn = null;
|
|
71681
71683
|
if (i.object.isPerspectiveCamera) {
|
|
71682
71684
|
const Vo = H.length();
|
|
71683
|
-
|
|
71684
|
-
const du = Vo -
|
|
71685
|
-
i.object.position.addScaledVector(_, du), i.object.updateMatrixWorld(),
|
|
71685
|
+
Dn = re(Vo * c);
|
|
71686
|
+
const du = Vo - Dn;
|
|
71687
|
+
i.object.position.addScaledVector(_, du), i.object.updateMatrixWorld(), Cn = !!du;
|
|
71686
71688
|
} else if (i.object.isOrthographicCamera) {
|
|
71687
71689
|
const Vo = new C(w.x, w.y, 0);
|
|
71688
71690
|
Vo.unproject(i.object);
|
|
71689
71691
|
const du = i.object.zoom;
|
|
71690
|
-
i.object.zoom = Math.max(i.minZoom, Math.min(i.maxZoom, i.object.zoom / c)), i.object.updateProjectionMatrix(),
|
|
71692
|
+
i.object.zoom = Math.max(i.minZoom, Math.min(i.maxZoom, i.object.zoom / c)), i.object.updateProjectionMatrix(), Cn = du !== i.object.zoom;
|
|
71691
71693
|
const Xo = new C(w.x, w.y, 0);
|
|
71692
|
-
Xo.unproject(i.object), i.object.position.sub(Xo).add(Vo), i.object.updateMatrixWorld(),
|
|
71694
|
+
Xo.unproject(i.object), i.object.position.sub(Xo).add(Vo), i.object.updateMatrixWorld(), Dn = H.length();
|
|
71693
71695
|
} else
|
|
71694
71696
|
console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), i.zoomToCursor = !1;
|
|
71695
|
-
|
|
71697
|
+
Dn !== null && (this.screenSpacePanning ? i.target.set(0, 0, -1).transformDirection(i.object.matrix).multiplyScalar(Dn).add(i.object.position) : (Qw.origin.copy(i.object.position), Qw.direction.set(0, 0, -1).transformDirection(i.object.matrix), Math.abs(i.object.up.dot(Qw.direction)) < rge ? e.lookAt(i.target) : (tV.setFromNormalAndCoplanarPoint(i.object.up, i.target), Qw.intersectPlane(tV, i.target))));
|
|
71696
71698
|
} else if (i.object.isOrthographicCamera) {
|
|
71697
|
-
const
|
|
71698
|
-
i.object.zoom = Math.max(i.minZoom, Math.min(i.maxZoom, i.object.zoom / c)),
|
|
71699
|
+
const Dn = i.object.zoom;
|
|
71700
|
+
i.object.zoom = Math.max(i.minZoom, Math.min(i.maxZoom, i.object.zoom / c)), Dn !== i.object.zoom && (i.object.updateProjectionMatrix(), Cn = !0);
|
|
71699
71701
|
}
|
|
71700
|
-
return c = 1, E = !1,
|
|
71702
|
+
return c = 1, E = !1, Cn || Be.distanceToSquared(i.object.position) > o || 8 * (1 - ce.dot(i.object.quaternion)) > o || Xe.distanceToSquared(i.target) > o ? (i.dispatchEvent($U), Be.copy(i.object.position), ce.copy(i.object.quaternion), Xe.copy(i.target), !0) : !1;
|
|
71701
71703
|
};
|
|
71702
71704
|
}(), this.dispose = function() {
|
|
71703
71705
|
i.domElement.removeEventListener("contextmenu", Oe), i.domElement.removeEventListener("pointerdown", Ut), i.domElement.removeEventListener("pointercancel", F), i.domElement.removeEventListener("wheel", Le), i.domElement.removeEventListener("pointermove", X), window.removeEventListener("pointerup", F), i.domElement.getRootNode().removeEventListener("keydown", wt, { capture: !0 }), i._domElementKeyEvents !== null && (i._domElementKeyEvents.removeEventListener("keydown", De), i._domElementKeyEvents = null);
|
|
@@ -72444,7 +72446,7 @@ function fge(s, e, t, i, n) {
|
|
|
72444
72446
|
if (!n && !i && !s.onValidate)
|
|
72445
72447
|
return;
|
|
72446
72448
|
if (t !== void 0) {
|
|
72447
|
-
console.error("Invalid usage of validate decorator. Only fields can be validated.", s, e, t),
|
|
72449
|
+
console.error("Invalid usage of validate decorator. Only fields can be validated.", s, e, t), In("Invalid usage of validate decorator. Only fields can be validated. Property: " + e, Za.Error);
|
|
72448
72450
|
return;
|
|
72449
72451
|
}
|
|
72450
72452
|
let r = "";
|
|
@@ -73392,7 +73394,7 @@ const sc = class extends Ie {
|
|
|
73392
73394
|
if (t === void 0 || t.propagationStopped || t.defaultPrevented || t.used)
|
|
73393
73395
|
return;
|
|
73394
73396
|
const i = new bx(this.context.input, t);
|
|
73395
|
-
this._currentPointerEventName = t.type, i.inputSource = this.context.input, i.isClick = t.isClick, i.isDoubleClick = t.isDoubleClick, i.isDown = t.type ==
|
|
73397
|
+
this._currentPointerEventName = t.type, i.inputSource = this.context.input, i.isClick = t.isClick, i.isDoubleClick = t.isDoubleClick, i.isDown = t.type == Tn.PointerDown, i.isUp = t.type == Tn.PointerUp, i.isPressed = this.context.input.getPointerPressed(t.pointerId), uh && (i.isDown ? console.log("DOWN", i.pointerId) : i.isUp && console.log("UP", i.pointerId), i.isClick && console.log("CLICK", i.pointerId));
|
|
73396
73398
|
const n = new jh();
|
|
73397
73399
|
t.hasRay ? n.ray = t.ray : n.screenPoint = this.context.input.getPointerPositionRC(t.pointerId);
|
|
73398
73400
|
const r = this.performRaycast(n);
|
|
@@ -73405,7 +73407,7 @@ const sc = class extends Ie {
|
|
|
73405
73407
|
hits: r
|
|
73406
73408
|
});
|
|
73407
73409
|
}
|
|
73408
|
-
uh && i.isClick &&
|
|
73410
|
+
uh && i.isClick && In("EventSystem: " + i.pointerId + " - " + this.context.time.frame + " - Up:" + i.isUp + ", Down:" + i.isDown);
|
|
73409
73411
|
const o = {
|
|
73410
73412
|
sender: this,
|
|
73411
73413
|
args: i,
|
|
@@ -73508,10 +73510,10 @@ const sc = class extends Ie {
|
|
|
73508
73510
|
i !== void 0 && i !== -1 && ((r = this.raycaster) == null || r.splice(i, 1));
|
|
73509
73511
|
}
|
|
73510
73512
|
onEnable() {
|
|
73511
|
-
this.context.input.addEventListener(
|
|
73513
|
+
this.context.input.addEventListener(Tn.PointerDown, this.onPointerEvent), this.context.input.addEventListener(Tn.PointerUp, this.onPointerEvent), this.context.input.addEventListener(Tn.PointerMove, this.onPointerEvent);
|
|
73512
73514
|
}
|
|
73513
73515
|
onDisable() {
|
|
73514
|
-
this.context.input.removeEventListener(
|
|
73516
|
+
this.context.input.removeEventListener(Tn.PointerDown, this.onPointerEvent), this.context.input.removeEventListener(Tn.PointerUp, this.onPointerEvent), this.context.input.removeEventListener(Tn.PointerMove, this.onPointerEvent);
|
|
73515
73517
|
}
|
|
73516
73518
|
onBeforeRender() {
|
|
73517
73519
|
this.resetMeshUIStates();
|
|
@@ -73697,7 +73699,7 @@ const sc = class extends Ie {
|
|
|
73697
73699
|
/** invoke the pointerMove event on all captured handlers */
|
|
73698
73700
|
invokePointerCapture(t) {
|
|
73699
73701
|
var i;
|
|
73700
|
-
if (t.event.type ===
|
|
73702
|
+
if (t.event.type === Tn.PointerMove) {
|
|
73701
73703
|
const n = t.pointerId, r = this._capturedPointer[n];
|
|
73702
73704
|
if (r) {
|
|
73703
73705
|
uh && console.log("Captured", n, r);
|
|
@@ -73779,7 +73781,7 @@ class nd {
|
|
|
73779
73781
|
}
|
|
73780
73782
|
}
|
|
73781
73783
|
d(nd, "lastSelected", null), d(nd, "lastUpdateFrame", []), d(nd, "needsUpdate", !1);
|
|
73782
|
-
var Cge = Object.defineProperty, Mge = Object.getOwnPropertyDescriptor,
|
|
73784
|
+
var Cge = Object.defineProperty, Mge = Object.getOwnPropertyDescriptor, Sn = (s, e, t, i) => {
|
|
73783
73785
|
for (var n = i > 1 ? void 0 : i ? Mge(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
|
73784
73786
|
(o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
|
|
73785
73787
|
return i && n && Cge(e, t, n), n;
|
|
@@ -74144,76 +74146,76 @@ class Li extends Ie {
|
|
|
74144
74146
|
// private onPositionDrag(){
|
|
74145
74147
|
// }
|
|
74146
74148
|
}
|
|
74147
|
-
|
|
74149
|
+
Sn([
|
|
74148
74150
|
M()
|
|
74149
74151
|
], Li.prototype, "autoTarget", 2);
|
|
74150
|
-
|
|
74152
|
+
Sn([
|
|
74151
74153
|
M()
|
|
74152
74154
|
], Li.prototype, "autoFit", 2);
|
|
74153
|
-
|
|
74155
|
+
Sn([
|
|
74154
74156
|
M()
|
|
74155
74157
|
], Li.prototype, "enableRotate", 2);
|
|
74156
|
-
|
|
74158
|
+
Sn([
|
|
74157
74159
|
M()
|
|
74158
74160
|
], Li.prototype, "autoRotate", 2);
|
|
74159
|
-
|
|
74161
|
+
Sn([
|
|
74160
74162
|
M()
|
|
74161
74163
|
], Li.prototype, "autoRotateSpeed", 2);
|
|
74162
|
-
|
|
74164
|
+
Sn([
|
|
74163
74165
|
M()
|
|
74164
74166
|
], Li.prototype, "minAzimuthAngle", 2);
|
|
74165
|
-
|
|
74167
|
+
Sn([
|
|
74166
74168
|
M()
|
|
74167
74169
|
], Li.prototype, "maxAzimuthAngle", 2);
|
|
74168
|
-
|
|
74170
|
+
Sn([
|
|
74169
74171
|
M()
|
|
74170
74172
|
], Li.prototype, "minPolarAngle", 2);
|
|
74171
|
-
|
|
74173
|
+
Sn([
|
|
74172
74174
|
M()
|
|
74173
74175
|
], Li.prototype, "maxPolarAngle", 2);
|
|
74174
|
-
|
|
74176
|
+
Sn([
|
|
74175
74177
|
M()
|
|
74176
74178
|
], Li.prototype, "enableKeys", 2);
|
|
74177
|
-
|
|
74179
|
+
Sn([
|
|
74178
74180
|
M()
|
|
74179
74181
|
], Li.prototype, "enableDamping", 2);
|
|
74180
|
-
|
|
74182
|
+
Sn([
|
|
74181
74183
|
M()
|
|
74182
74184
|
], Li.prototype, "dampingFactor", 2);
|
|
74183
|
-
|
|
74185
|
+
Sn([
|
|
74184
74186
|
M()
|
|
74185
74187
|
], Li.prototype, "enableZoom", 2);
|
|
74186
|
-
|
|
74188
|
+
Sn([
|
|
74187
74189
|
M()
|
|
74188
74190
|
], Li.prototype, "minZoom", 2);
|
|
74189
|
-
|
|
74191
|
+
Sn([
|
|
74190
74192
|
M()
|
|
74191
74193
|
], Li.prototype, "maxZoom", 2);
|
|
74192
|
-
|
|
74194
|
+
Sn([
|
|
74193
74195
|
M()
|
|
74194
74196
|
], Li.prototype, "zoomSpeed", 2);
|
|
74195
|
-
|
|
74197
|
+
Sn([
|
|
74196
74198
|
M()
|
|
74197
74199
|
], Li.prototype, "enablePan", 2);
|
|
74198
|
-
|
|
74200
|
+
Sn([
|
|
74199
74201
|
M(sy)
|
|
74200
74202
|
], Li.prototype, "lookAtConstraint", 2);
|
|
74201
|
-
|
|
74203
|
+
Sn([
|
|
74202
74204
|
M()
|
|
74203
74205
|
], Li.prototype, "lookAtConstraint01", 2);
|
|
74204
|
-
|
|
74206
|
+
Sn([
|
|
74205
74207
|
M()
|
|
74206
74208
|
], Li.prototype, "allowInterrupt", 2);
|
|
74207
|
-
|
|
74209
|
+
Sn([
|
|
74208
74210
|
M()
|
|
74209
74211
|
], Li.prototype, "middleClickToFocus", 2);
|
|
74210
|
-
|
|
74212
|
+
Sn([
|
|
74211
74213
|
M()
|
|
74212
74214
|
], Li.prototype, "doubleClickToFocus", 2);
|
|
74213
|
-
|
|
74215
|
+
Sn([
|
|
74214
74216
|
M()
|
|
74215
74217
|
], Li.prototype, "clickBackgroundToFitScene", 2);
|
|
74216
|
-
|
|
74218
|
+
Sn([
|
|
74217
74219
|
M()
|
|
74218
74220
|
], Li.prototype, "targetLerpDuration", 2);
|
|
74219
74221
|
var Tge = Object.defineProperty, Rge = Object.getOwnPropertyDescriptor, Ao = (s, e, t, i) => {
|
|
@@ -74476,7 +74478,7 @@ const qb = (US = class extends Ie {
|
|
|
74476
74478
|
if (typeof t._transparent == "boolean")
|
|
74477
74479
|
return t._transparent;
|
|
74478
74480
|
const i = t.environmentBlendMode;
|
|
74479
|
-
Zu &&
|
|
74481
|
+
Zu && In("Environment blend mode: " + i + " on " + navigator.userAgent);
|
|
74480
74482
|
let n = i === "additive" || i === "alpha-blend";
|
|
74481
74483
|
return e.isInAR && i === "opaque" && ((o = navigator.userAgent) != null && o.includes("OculusBrowser") || (a = navigator.userAgent) != null && a.includes("Mozilla") && ((l = navigator.userAgent) != null && l.includes("Mobile WebXRViewer/v2"))) && (n = !0), t._transparent = n, n;
|
|
74482
74484
|
}
|
|
@@ -74579,7 +74581,7 @@ class Ap extends Ie {
|
|
|
74579
74581
|
t && (t.removeFromParent(), t.filter && t.filter.disconnect(), t.gain && t.gain.disconnect());
|
|
74580
74582
|
}
|
|
74581
74583
|
}
|
|
74582
|
-
class Pge extends
|
|
74584
|
+
class Pge extends vn {
|
|
74583
74585
|
constructor(e, t = 1, i = 16, n = 2) {
|
|
74584
74586
|
const r = new yt(), o = i + n * 2, a = new Float32Array((o * 3 + 3) * 3);
|
|
74585
74587
|
r.setAttribute("position", new Ke(a, 3));
|
|
@@ -80272,7 +80274,7 @@ class Wd extends Ie {
|
|
|
80272
80274
|
_f && console.warn("Button Up", (i = this.animationTriggers) == null ? void 0 : i.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 && ((n = this._image) == null || n.setState(this._isHovered ? "hovered" : "normal")));
|
|
80273
80275
|
}
|
|
80274
80276
|
onPointerClick(t) {
|
|
80275
|
-
if (this.interactable && !(t.button !== 0 && t.event.pointerType === OD.Mouse) && (_f && (console.warn("Button Click", this.onClick),
|
|
80277
|
+
if (this.interactable && !(t.button !== 0 && t.event.pointerType === OD.Mouse) && (_f && (console.warn("Button Click", this.onClick), In("CLICKED button " + this.name + " at " + this.context.time.frameCount)), this.onClick && this.onClick.listenerCount > 0 && (this.onClick.invoke(), t.use(), _f))) {
|
|
80276
80278
|
const i = this.gameObject.worldPosition;
|
|
80277
80279
|
i.add(this.gameObject.worldUp.multiplyScalar(1 + Math.random() * 0.5)), _t.DrawLabel(i, "CLICK:" + Date.now(), 0.1, 1 + Math.random() * 0.5);
|
|
80278
80280
|
}
|
|
@@ -80856,7 +80858,7 @@ TO([
|
|
|
80856
80858
|
TO([
|
|
80857
80859
|
M()
|
|
80858
80860
|
], Dp.prototype, "blocksRaycasts", 2);
|
|
80859
|
-
var vye = Object.defineProperty, Aye = Object.getOwnPropertyDescriptor,
|
|
80861
|
+
var vye = Object.defineProperty, Aye = Object.getOwnPropertyDescriptor, Pn = (s, e, t, i) => {
|
|
80860
80862
|
for (var n = i > 1 ? void 0 : i ? Aye(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
|
80861
80863
|
(o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
|
|
80862
80864
|
return i && n && vye(e, t, n), n;
|
|
@@ -80918,16 +80920,16 @@ class hy extends Ie {
|
|
|
80918
80920
|
}
|
|
80919
80921
|
}
|
|
80920
80922
|
}
|
|
80921
|
-
|
|
80923
|
+
Pn([
|
|
80922
80924
|
M(ge)
|
|
80923
80925
|
], hy.prototype, "object", 2);
|
|
80924
|
-
|
|
80926
|
+
Pn([
|
|
80925
80927
|
M(ge)
|
|
80926
80928
|
], hy.prototype, "target", 2);
|
|
80927
|
-
|
|
80929
|
+
Pn([
|
|
80928
80930
|
M()
|
|
80929
80931
|
], hy.prototype, "duration", 2);
|
|
80930
|
-
|
|
80932
|
+
Pn([
|
|
80931
80933
|
M()
|
|
80932
80934
|
], hy.prototype, "relativeMotion", 2);
|
|
80933
80935
|
var VS;
|
|
@@ -81028,17 +81030,17 @@ const tc = (VS = class extends Ie {
|
|
|
81028
81030
|
}
|
|
81029
81031
|
}, d(VS, "_materialTriggersPerId", {}), d(VS, "variantSwitchIndex", 0), VS);
|
|
81030
81032
|
let Lx = tc;
|
|
81031
|
-
|
|
81033
|
+
Pn([
|
|
81032
81034
|
M(Vt)
|
|
81033
81035
|
], Lx.prototype, "materialToSwitch", 2);
|
|
81034
|
-
|
|
81036
|
+
Pn([
|
|
81035
81037
|
M(Vt)
|
|
81036
81038
|
], Lx.prototype, "variantMaterial", 2);
|
|
81037
|
-
|
|
81039
|
+
Pn([
|
|
81038
81040
|
M()
|
|
81039
81041
|
], Lx.prototype, "fadeDuration", 2);
|
|
81040
81042
|
var Ag;
|
|
81041
|
-
const
|
|
81043
|
+
const En = (Ag = class extends Ie {
|
|
81042
81044
|
constructor() {
|
|
81043
81045
|
super(...arguments);
|
|
81044
81046
|
d(this, "target");
|
|
@@ -81062,7 +81064,7 @@ const Tn = (Ag = class extends Ie {
|
|
|
81062
81064
|
t.uuid === this.gameObject.uuid && (this.selfModel = t, this.selfModelClone = t.clone());
|
|
81063
81065
|
}
|
|
81064
81066
|
beforeCreateDocument() {
|
|
81065
|
-
this.target && (this.gameObject[
|
|
81067
|
+
this.target && (this.gameObject[En.wasVisible] === void 0 && (this.gameObject[En.wasVisible] = this.gameObject.activeSelf), this.target[En.wasVisible] === void 0 && (this.target[En.wasVisible] = this.target.activeSelf), this.stateBeforeCreatingDocument = this.gameObject[En.wasVisible], this.targetStateBeforeCreatingDocument = this.target[En.wasVisible], this.gameObject.visible = !0, this.target.visible = !0);
|
|
81066
81068
|
}
|
|
81067
81069
|
afterCreateDocument(e, t) {
|
|
81068
81070
|
if (!this.target)
|
|
@@ -81075,16 +81077,16 @@ const Tn = (Ag = class extends Ie {
|
|
|
81075
81077
|
if (r = !this.targetStateBeforeCreatingDocument, !this.selfModelClone.geometry)
|
|
81076
81078
|
(!this.selfModel.parent || this.selfModel.parent.isEmpty()) && LZ.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[En.toggleClone]) {
|
|
81079
81081
|
const l = this.selfModelClone.clone();
|
|
81080
|
-
l.matrix.identity(), l.name += "_toggle" +
|
|
81082
|
+
l.matrix.identity(), l.name += "_toggle" + En.clonedToggleIndex++, i.add(l), this.gameObject[En.toggleClone] = l, 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 a = this.gameObject[
|
|
81083
|
-
if (!this.gameObject[
|
|
81084
|
+
const a = this.gameObject[En.toggleClone];
|
|
81085
|
+
if (!this.gameObject[En.reverseToggleClone]) {
|
|
81084
81086
|
const l = this.selfModelClone.clone();
|
|
81085
|
-
l.matrix.identity(), l.name += "_toggleReverse" +
|
|
81087
|
+
l.matrix.identity(), l.name += "_toggleReverse" + En.clonedToggleIndex++, i.add(l), this.gameObject[En.reverseToggleClone] = l;
|
|
81086
81088
|
}
|
|
81087
|
-
this.toggleModel = this.gameObject[
|
|
81089
|
+
this.toggleModel = this.gameObject[En.reverseToggleClone], (!this.toggleModel.geometry || !a.geometry) && console.error("triggers without childs and without geometry won't work!", this, i.geometry), n = a, i.geometry = null, i.material = null;
|
|
81088
81090
|
}
|
|
81089
81091
|
if (this.toggleModel) {
|
|
81090
81092
|
if (this.toggleOnClick) {
|
|
@@ -81118,20 +81120,20 @@ const Tn = (Ag = class extends Ie {
|
|
|
81118
81120
|
}
|
|
81119
81121
|
}
|
|
81120
81122
|
afterSerialize(e, t) {
|
|
81121
|
-
this.gameObject[
|
|
81123
|
+
this.gameObject[En.wasVisible] !== void 0 && (this.gameObject.visible = this.gameObject[En.wasVisible], delete this.gameObject[En.wasVisible]), this.target && this.target[En.wasVisible] !== void 0 && (this.target.visible = this.target[En.wasVisible], delete this.target[En.wasVisible]), delete this.gameObject[En.toggleClone], delete this.gameObject[En.reverseToggleClone];
|
|
81122
81124
|
}
|
|
81123
81125
|
}, d(Ag, "clonedToggleIndex", 0), d(Ag, "wasVisible", Symbol("usdz_SetActiveOnClick_wasVisible")), d(Ag, "toggleClone", Symbol("clone for toggling")), d(Ag, "reverseToggleClone", Symbol("clone for reverse toggling")), Ag);
|
|
81124
|
-
let uy =
|
|
81125
|
-
|
|
81126
|
+
let uy = En;
|
|
81127
|
+
Pn([
|
|
81126
81128
|
M(ge)
|
|
81127
81129
|
], uy.prototype, "target", 2);
|
|
81128
|
-
|
|
81130
|
+
Pn([
|
|
81129
81131
|
M()
|
|
81130
81132
|
], uy.prototype, "toggleOnClick", 2);
|
|
81131
|
-
|
|
81133
|
+
Pn([
|
|
81132
81134
|
M()
|
|
81133
81135
|
], uy.prototype, "targetState", 2);
|
|
81134
|
-
|
|
81136
|
+
Pn([
|
|
81135
81137
|
M()
|
|
81136
81138
|
], uy.prototype, "hideSelf", 2);
|
|
81137
81139
|
class yY extends Ie {
|
|
@@ -81175,13 +81177,13 @@ class Px extends Ie {
|
|
|
81175
81177
|
afterCreateDocument(t, i) {
|
|
81176
81178
|
}
|
|
81177
81179
|
}
|
|
81178
|
-
|
|
81180
|
+
Pn([
|
|
81179
81181
|
M()
|
|
81180
81182
|
], Px.prototype, "target", 2);
|
|
81181
|
-
|
|
81183
|
+
Pn([
|
|
81182
81184
|
M()
|
|
81183
81185
|
], Px.prototype, "duration", 2);
|
|
81184
|
-
|
|
81186
|
+
Pn([
|
|
81185
81187
|
M()
|
|
81186
81188
|
], Px.prototype, "motionType", 2);
|
|
81187
81189
|
class Op extends Ie {
|
|
@@ -81245,13 +81247,13 @@ class Op extends Ie {
|
|
|
81245
81247
|
}
|
|
81246
81248
|
}
|
|
81247
81249
|
}
|
|
81248
|
-
|
|
81250
|
+
Pn([
|
|
81249
81251
|
M(zn)
|
|
81250
81252
|
], Op.prototype, "target", 2);
|
|
81251
|
-
|
|
81253
|
+
Pn([
|
|
81252
81254
|
M(URL)
|
|
81253
81255
|
], Op.prototype, "clip", 2);
|
|
81254
|
-
|
|
81256
|
+
Pn([
|
|
81255
81257
|
M()
|
|
81256
81258
|
], Op.prototype, "toggleOnClick", 2);
|
|
81257
81259
|
var XS;
|
|
@@ -81426,10 +81428,10 @@ const ic = (XS = class extends Ie {
|
|
|
81426
81428
|
}
|
|
81427
81429
|
}, d(XS, "animationActions", []), d(XS, "rootsWithExclusivePlayback", /* @__PURE__ */ new Set()), XS);
|
|
81428
81430
|
let U0 = ic;
|
|
81429
|
-
|
|
81431
|
+
Pn([
|
|
81430
81432
|
M(Ur)
|
|
81431
81433
|
], U0.prototype, "animator", 2);
|
|
81432
|
-
|
|
81434
|
+
Pn([
|
|
81433
81435
|
M()
|
|
81434
81436
|
], U0.prototype, "stateName", 2);
|
|
81435
81437
|
class Bx extends Ie {
|
|
@@ -81442,7 +81444,7 @@ class Bx extends Ie {
|
|
|
81442
81444
|
getDuration() {
|
|
81443
81445
|
}
|
|
81444
81446
|
}
|
|
81445
|
-
|
|
81447
|
+
Pn([
|
|
81446
81448
|
M(ge)
|
|
81447
81449
|
], Bx.prototype, "target", 2);
|
|
81448
81450
|
class ME extends Ie {
|
|
@@ -81451,7 +81453,7 @@ class ME extends Ie {
|
|
|
81451
81453
|
d(this, "target");
|
|
81452
81454
|
}
|
|
81453
81455
|
}
|
|
81454
|
-
|
|
81456
|
+
Pn([
|
|
81455
81457
|
M(Bx)
|
|
81456
81458
|
], ME.prototype, "target", 2);
|
|
81457
81459
|
class EE extends Bx {
|
|
@@ -81472,10 +81474,10 @@ class EE extends Bx {
|
|
|
81472
81474
|
return this.duration;
|
|
81473
81475
|
}
|
|
81474
81476
|
}
|
|
81475
|
-
|
|
81477
|
+
Pn([
|
|
81476
81478
|
M()
|
|
81477
81479
|
], EE.prototype, "type", 2);
|
|
81478
|
-
|
|
81480
|
+
Pn([
|
|
81479
81481
|
M()
|
|
81480
81482
|
], EE.prototype, "duration", 2);
|
|
81481
81483
|
class bY extends ME {
|
|
@@ -82541,7 +82543,7 @@ class jye {
|
|
|
82541
82543
|
this.objectToWorldMatrix.copy(e.matrixWorld), vC(this.objectToWorldMatrix, this.objectToWorld), this.worldToObjectMatrix.copy(e.matrixWorld).invert(), vC(this.worldToObjectMatrix, this.worldToObject);
|
|
82542
82544
|
}
|
|
82543
82545
|
}
|
|
82544
|
-
const
|
|
82546
|
+
const gn = class extends SM {
|
|
82545
82547
|
constructor(t, ...i) {
|
|
82546
82548
|
super(...i);
|
|
82547
82549
|
d(this, "identifier");
|
|
@@ -82605,7 +82607,7 @@ const yn = class extends SM {
|
|
|
82605
82607
|
}
|
|
82606
82608
|
onUpdateUniforms(t, i) {
|
|
82607
82609
|
const n = kt.Current;
|
|
82608
|
-
if (t && (
|
|
82610
|
+
if (t && (gn.viewProjection && this.uniforms[this._viewProjectionName] && (gn.viewProjection.copy(t.projectionMatrix).multiply(t.matrixWorldInverse), vC(gn.viewProjection, gn._viewProjectionValues)), gn.viewMatrix && this.uniforms[this._viewMatrixName] && (gn.viewMatrix.copy(t.matrixWorldInverse), vC(gn.viewMatrix, gn._viewMatrixValues)), this.uniforms[gn._worldSpaceCameraPosName] && gn._worldSpaceCameraPos.setFromMatrixPosition(t.matrixWorld)), this.uniforms._TimeParameters && (this.uniforms._TimeParameters.value = n.sceneLighting.timeVec4), this.uniforms._Time) {
|
|
82609
82611
|
const l = this.uniforms._Time.value;
|
|
82610
82612
|
l.x = n.sceneLighting.timeVec4.x / 20, l.y = n.sceneLighting.timeVec4.x, l.z = n.sceneLighting.timeVec4.x * 2, l.w = n.sceneLighting.timeVec4.x * 3;
|
|
82611
82613
|
}
|
|
@@ -82623,12 +82625,12 @@ const yn = class extends SM {
|
|
|
82623
82625
|
}
|
|
82624
82626
|
const r = n.mainLight;
|
|
82625
82627
|
if (r) {
|
|
82626
|
-
const l = zt(r.gameObject,
|
|
82627
|
-
this.uniforms._MainLightPosition = { value: l.normalize() },
|
|
82628
|
+
const l = zt(r.gameObject, gn._mainLightPosition);
|
|
82629
|
+
this.uniforms._MainLightPosition = { value: l.normalize() }, gn._mainLightColor.set(r.color.r, r.color.g, r.color.b, 0), this.uniforms._MainLightColor = { value: gn._mainLightColor };
|
|
82628
82630
|
const c = r.intensity;
|
|
82629
|
-
|
|
82631
|
+
gn._lightData.z = c, this.uniforms.unity_LightData = { value: gn._lightData };
|
|
82630
82632
|
}
|
|
82631
|
-
if (t && (
|
|
82633
|
+
if (t && (gn.viewProjection && this.uniforms[this._viewProjectionName] && (this.uniforms[this._viewProjectionName].value = gn._viewProjectionValues), gn.viewMatrix && this.uniforms[this._viewMatrixName] && (this.uniforms[this._viewMatrixName].value = gn._viewMatrixValues), this.uniforms[gn._worldSpaceCameraPosName] && (this.uniforms[gn._worldSpaceCameraPosName] = { value: gn._worldSpaceCameraPos }), n.mainCameraComponent)) {
|
|
82632
82634
|
if (this.uniforms._ProjectionParams) {
|
|
82633
82635
|
const l = this.uniforms._ProjectionParams.value;
|
|
82634
82636
|
l.x = 1, l.y = n.mainCameraComponent.nearClipPlane, l.z = n.mainCameraComponent.farClipPlane, l.w = 1 / l.z, this.uniforms._ProjectionParams.value = l;
|
|
@@ -82656,7 +82658,7 @@ const yn = class extends SM {
|
|
|
82656
82658
|
this.uniformsNeedUpdate = !0;
|
|
82657
82659
|
}
|
|
82658
82660
|
};
|
|
82659
|
-
let Ra =
|
|
82661
|
+
let Ra = gn;
|
|
82660
82662
|
d(Ra, "viewProjection", new he()), d(Ra, "_viewProjectionValues", []), d(Ra, "viewMatrix", new he()), d(Ra, "_viewMatrixValues", []), d(Ra, "_worldSpaceCameraPosName", "_WorldSpaceCameraPos"), d(Ra, "_worldSpaceCameraPos", new C()), d(Ra, "_mainLightColor", new Je()), d(Ra, "_mainLightPosition", new C()), d(Ra, "_lightData", new Je());
|
|
82661
82663
|
class Kye {
|
|
82662
82664
|
constructor(e, t) {
|
|
@@ -82770,7 +82772,7 @@ class Kye {
|
|
|
82770
82772
|
m.side = yi;
|
|
82771
82773
|
break;
|
|
82772
82774
|
case 1:
|
|
82773
|
-
m.side =
|
|
82775
|
+
m.side = An;
|
|
82774
82776
|
break;
|
|
82775
82777
|
case 2:
|
|
82776
82778
|
m.side = Jn;
|
|
@@ -84654,7 +84656,7 @@ oe([
|
|
|
84654
84656
|
oe([
|
|
84655
84657
|
M()
|
|
84656
84658
|
], Gi.prototype, "strengthZMultiplier", 2);
|
|
84657
|
-
class
|
|
84659
|
+
class Bn {
|
|
84658
84660
|
constructor() {
|
|
84659
84661
|
d(this, "enabled");
|
|
84660
84662
|
d(this, "attachRibbonToTransform", !1);
|
|
@@ -84688,64 +84690,64 @@ class kn {
|
|
|
84688
84690
|
}
|
|
84689
84691
|
oe([
|
|
84690
84692
|
M()
|
|
84691
|
-
],
|
|
84693
|
+
], Bn.prototype, "enabled", 2);
|
|
84692
84694
|
oe([
|
|
84693
84695
|
M()
|
|
84694
|
-
],
|
|
84696
|
+
], Bn.prototype, "attachRibbonToTransform", 2);
|
|
84695
84697
|
oe([
|
|
84696
84698
|
M(zo)
|
|
84697
|
-
],
|
|
84699
|
+
], Bn.prototype, "colorOverLifetime", 2);
|
|
84698
84700
|
oe([
|
|
84699
84701
|
M(zo)
|
|
84700
|
-
],
|
|
84702
|
+
], Bn.prototype, "colorOverTrail", 2);
|
|
84701
84703
|
oe([
|
|
84702
84704
|
M()
|
|
84703
|
-
],
|
|
84705
|
+
], Bn.prototype, "dieWithParticles", 2);
|
|
84704
84706
|
oe([
|
|
84705
84707
|
M()
|
|
84706
|
-
],
|
|
84708
|
+
], Bn.prototype, "inheritParticleColor", 2);
|
|
84707
84709
|
oe([
|
|
84708
84710
|
M(vt)
|
|
84709
|
-
],
|
|
84711
|
+
], Bn.prototype, "lifetime", 2);
|
|
84710
84712
|
oe([
|
|
84711
84713
|
M()
|
|
84712
|
-
],
|
|
84714
|
+
], Bn.prototype, "lifetimeMultiplier", 2);
|
|
84713
84715
|
oe([
|
|
84714
84716
|
M()
|
|
84715
|
-
],
|
|
84717
|
+
], Bn.prototype, "minVertexDistance", 2);
|
|
84716
84718
|
oe([
|
|
84717
84719
|
M()
|
|
84718
|
-
],
|
|
84720
|
+
], Bn.prototype, "mode", 2);
|
|
84719
84721
|
oe([
|
|
84720
84722
|
M()
|
|
84721
|
-
],
|
|
84723
|
+
], Bn.prototype, "ratio", 2);
|
|
84722
84724
|
oe([
|
|
84723
84725
|
M()
|
|
84724
|
-
],
|
|
84726
|
+
], Bn.prototype, "ribbonCount", 2);
|
|
84725
84727
|
oe([
|
|
84726
84728
|
M()
|
|
84727
|
-
],
|
|
84729
|
+
], Bn.prototype, "shadowBias", 2);
|
|
84728
84730
|
oe([
|
|
84729
84731
|
M()
|
|
84730
|
-
],
|
|
84732
|
+
], Bn.prototype, "sizeAffectsLifetime", 2);
|
|
84731
84733
|
oe([
|
|
84732
84734
|
M()
|
|
84733
|
-
],
|
|
84735
|
+
], Bn.prototype, "sizeAffectsWidth", 2);
|
|
84734
84736
|
oe([
|
|
84735
84737
|
M()
|
|
84736
|
-
],
|
|
84738
|
+
], Bn.prototype, "splitSubEmitterRibbons", 2);
|
|
84737
84739
|
oe([
|
|
84738
84740
|
M()
|
|
84739
|
-
],
|
|
84741
|
+
], Bn.prototype, "textureMode", 2);
|
|
84740
84742
|
oe([
|
|
84741
84743
|
M(vt)
|
|
84742
|
-
],
|
|
84744
|
+
], Bn.prototype, "widthOverTrail", 2);
|
|
84743
84745
|
oe([
|
|
84744
84746
|
M()
|
|
84745
|
-
],
|
|
84747
|
+
], Bn.prototype, "widthOverTrailMultiplier", 2);
|
|
84746
84748
|
oe([
|
|
84747
84749
|
M()
|
|
84748
|
-
],
|
|
84750
|
+
], Bn.prototype, "worldSpace", 2);
|
|
84749
84751
|
class Vn {
|
|
84750
84752
|
constructor() {
|
|
84751
84753
|
d(this, "enabled");
|
|
@@ -85413,7 +85415,7 @@ const PY = (H2 = class extends Ie {
|
|
|
85413
85415
|
depthWrite: !0,
|
|
85414
85416
|
stencilWrite: !0,
|
|
85415
85417
|
colorWrite: !1,
|
|
85416
|
-
side:
|
|
85418
|
+
side: An
|
|
85417
85419
|
})).translateY(-1e-4), this.occluderMesh.renderOrder = -100, this.occluderMesh.layers.set(2), this.shadowsRoot.add(this.occluderMesh), this.blurPlane = new fe(e), this.blurPlane.visible = !1, this.shadowGroup.add(this.blurPlane);
|
|
85418
85420
|
const i = 0, n = 1;
|
|
85419
85421
|
this.shadowCamera = new Pc(-1 / 2, 1 / 2, 1 / 2, -1 / 2, i, n), this.shadowCamera.layers.enableAll(), this.shadowCamera.rotation.x = Math.PI / 2, this.shadowGroup.add(this.shadowCamera), this.depthMaterial = new qA(), this.depthMaterial.userData.darkness = { value: this.darkness }, this.depthMaterial.blending = QB, this.depthMaterial.blendEquation = F1, this.depthMaterial.onBeforeCompile = (r) => {
|
|
@@ -85592,7 +85594,7 @@ const AV = [], YI = new Array(), MF = class {
|
|
|
85592
85594
|
const e = "https://oculus.com/open_url/?url=", t = document.createElement("button");
|
|
85593
85595
|
return this._sendToQuestButton = t, t.dataset.needle = "webxr-sendtoquest-button", t.innerText = "Open on Quest", t.prepend(Br("share_windows")), t.title = "Click to send this page to the Oculus Browser on your Quest", t.addEventListener("click", () => {
|
|
85594
85596
|
const n = encodeURIComponent(window.location.href), r = e + n;
|
|
85595
|
-
window.open(r) == null &&
|
|
85597
|
+
window.open(r) == null && In("This page doesn't allow popups. Please paste " + r + " into your browser.");
|
|
85596
85598
|
}), this.listenToXRSessionState(t), this.hideElementDuringXRSession(t), s0() || (i = navigator.xr) == null || i.addEventListener("devicechange", () => {
|
|
85597
85599
|
var n;
|
|
85598
85600
|
(n = navigator.xr) != null && n.isSessionSupported("immersive-vr") ? t.style.display = "none" : t.style.display = "";
|
|
@@ -88785,12 +88787,12 @@ const hB = (ZS = class extends Ie {
|
|
|
88785
88787
|
onEnable() {
|
|
88786
88788
|
var i;
|
|
88787
88789
|
const e = Lp(), t = dv();
|
|
88788
|
-
(Ca || e && t) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = TV(this.context), this.link.addEventListener("message", this.lastCallback)), Ca &&
|
|
88790
|
+
(Ca || e && t) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = TV(this.context), this.link.addEventListener("message", this.lastCallback)), Ca && In("USDZ Exporter enabled: " + this.name), (i = document.getElementById("open-in-ar")) == null || i.addEventListener("click", this.onClickedOpenInARElement);
|
|
88789
88791
|
}
|
|
88790
88792
|
/** @internal */
|
|
88791
88793
|
onDisable() {
|
|
88792
88794
|
var e, t, i;
|
|
88793
|
-
(e = this.button) == null || e.remove(), (t = this.link) == null || t.removeEventListener("message", this.lastCallback), Ca &&
|
|
88795
|
+
(e = this.button) == null || e.remove(), (t = this.link) == null || t.removeEventListener("message", this.lastCallback), Ca && In("USDZ Exporter disabled: " + this.name), (i = document.getElementById("open-in-ar")) == null || i.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 hB = (ZS = class extends Ie {
|
|
|
88858
88860
|
}));
|
|
88859
88861
|
}
|
|
88860
88862
|
}
|
|
88861
|
-
Ca &&
|
|
88863
|
+
Ca && In("Progressive Loading: " + n.length), await Promise.all(n), Ca && In("Progressive Loading: done"), ci.end("export-usdz-textures");
|
|
88862
88864
|
const o = kr.Global.Mask;
|
|
88863
88865
|
kr.Global.Set(Lh.AR);
|
|
88864
88866
|
const a = new Tme(), l = new yE(this.quickLookCompatible), c = [l, ...this.extensions], h = { self: this, exporter: a, extensions: c, object: e };
|
|
@@ -88925,7 +88927,7 @@ const hB = (ZS = class extends Ie {
|
|
|
88925
88927
|
const i = new URLSearchParams(this.link.href);
|
|
88926
88928
|
if (i) {
|
|
88927
88929
|
const n = i.get("callToActionURL");
|
|
88928
|
-
Ca &&
|
|
88930
|
+
Ca && In("Quicklook url: " + n), n && (mp() ? globalThis.open(n, "_blank") : console.warn("Quicklook closed: custom redirects require a Needle Engine Pro license: https://needle.tools/pricing", n));
|
|
88929
88931
|
}
|
|
88930
88932
|
}
|
|
88931
88933
|
}
|
|
@@ -89654,7 +89656,7 @@ const EF = class {
|
|
|
89654
89656
|
d(this, "_requireUpdateGroundPlane", !0);
|
|
89655
89657
|
d(this, "_didDragOnGroundPlaneLastFrame", !1);
|
|
89656
89658
|
this._camera = e;
|
|
89657
|
-
const t = new
|
|
89659
|
+
const t = new vn(EF.geometry), i = t.material;
|
|
89658
89660
|
i.color = new ve(0.4, 0.4, 0.4), t.layers.set(2), t.name = "line", t.scale.y = 1, this._groundLine = t;
|
|
89659
89661
|
const n = new rl(0.5, 22, 22), r = new qt({ color: i.color }), o = new fe(n, r);
|
|
89660
89662
|
o.visible = !1, o.layers.set(2), this._groundMarker = o;
|
|
@@ -92693,7 +92695,7 @@ class zx extends Ie {
|
|
|
92693
92695
|
}
|
|
92694
92696
|
this._validateUrl();
|
|
92695
92697
|
let t = this.url;
|
|
92696
|
-
switch (!t.startsWith("mailto:") && t.includes("@") && (t = "mailto:" + t), rt() &&
|
|
92698
|
+
switch (!t.startsWith("mailto:") && t.includes("@") && (t = "mailto:" + t), rt() && In("Open URL: " + t), this.mode) {
|
|
92697
92699
|
case 0:
|
|
92698
92700
|
dv(), globalThis.open(t, "_blank");
|
|
92699
92701
|
break;
|
|
@@ -97283,7 +97285,7 @@ Vx.addSignature([de.Boolean], [de.Boolean], function(s, e, t, i) {
|
|
|
97283
97285
|
i[0] = t[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 zxe = Object.defineProperty, Uxe = Object.getOwnPropertyDescriptor,
|
|
97288
|
+
var zxe = Object.defineProperty, Uxe = Object.getOwnPropertyDescriptor, kn = (s, e, t, i) => {
|
|
97287
97289
|
for (var n = i > 1 ? void 0 : i ? Uxe(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
|
97288
97290
|
(o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
|
|
97289
97291
|
return i && n && zxe(e, t, n), n;
|
|
@@ -97316,7 +97318,7 @@ class Hl extends Ie {
|
|
|
97316
97318
|
}
|
|
97317
97319
|
getMaterial(t = !1) {
|
|
97318
97320
|
let i = t === !0 && this.trailMaterial ? this.trailMaterial : this.particleMaterial;
|
|
97319
|
-
return i && t && i.side === Jn && (i = i.clone(), i.side =
|
|
97321
|
+
return i && t && i.side === Jn && (i = i.clone(), i.side = An, t ? this.trailMaterial = i : this.particleMaterial = i), i && !Vxe && i._didRequestTextureLOD === void 0 && (i._didRequestTextureLOD = 0, Xxe && console.log("Load material LOD", i.name), bi.assignTextureLOD(i, 0)), i;
|
|
97320
97322
|
}
|
|
97321
97323
|
getMesh(t) {
|
|
97322
97324
|
let i = null;
|
|
@@ -97329,28 +97331,28 @@ class Hl extends Ie {
|
|
|
97329
97331
|
return new fe(i, this.getMaterial());
|
|
97330
97332
|
}
|
|
97331
97333
|
}
|
|
97332
|
-
|
|
97334
|
+
kn([
|
|
97333
97335
|
M()
|
|
97334
97336
|
], Hl.prototype, "renderMode", 2);
|
|
97335
|
-
|
|
97337
|
+
kn([
|
|
97336
97338
|
M(Vt)
|
|
97337
97339
|
], Hl.prototype, "particleMaterial", 2);
|
|
97338
|
-
|
|
97340
|
+
kn([
|
|
97339
97341
|
M(Vt)
|
|
97340
97342
|
], Hl.prototype, "trailMaterial", 2);
|
|
97341
|
-
|
|
97343
|
+
kn([
|
|
97342
97344
|
M()
|
|
97343
97345
|
], Hl.prototype, "maxParticleSize", 2);
|
|
97344
|
-
|
|
97346
|
+
kn([
|
|
97345
97347
|
M()
|
|
97346
97348
|
], Hl.prototype, "minParticleSize", 2);
|
|
97347
|
-
|
|
97349
|
+
kn([
|
|
97348
97350
|
M()
|
|
97349
97351
|
], Hl.prototype, "velocityScale", 2);
|
|
97350
|
-
|
|
97352
|
+
kn([
|
|
97351
97353
|
M()
|
|
97352
97354
|
], Hl.prototype, "cameraVelocityScale", 2);
|
|
97353
|
-
|
|
97355
|
+
kn([
|
|
97354
97356
|
M()
|
|
97355
97357
|
], Hl.prototype, "lengthScale", 2);
|
|
97356
97358
|
class fS {
|
|
@@ -98016,49 +98018,49 @@ const R1 = class extends Ie {
|
|
|
98016
98018
|
}
|
|
98017
98019
|
};
|
|
98018
98020
|
let Es = R1;
|
|
98019
|
-
|
|
98021
|
+
kn([
|
|
98020
98022
|
M(LE)
|
|
98021
98023
|
], Es.prototype, "colorOverLifetime", 2);
|
|
98022
|
-
|
|
98024
|
+
kn([
|
|
98023
98025
|
M(Hr)
|
|
98024
98026
|
], Es.prototype, "main", 2);
|
|
98025
|
-
|
|
98027
|
+
kn([
|
|
98026
98028
|
M(ru)
|
|
98027
98029
|
], Es.prototype, "emission", 2);
|
|
98028
|
-
|
|
98030
|
+
kn([
|
|
98029
98031
|
M(tm)
|
|
98030
98032
|
], Es.prototype, "sizeOverLifetime", 2);
|
|
98031
|
-
|
|
98033
|
+
kn([
|
|
98032
98034
|
M(Un)
|
|
98033
98035
|
], Es.prototype, "shape", 2);
|
|
98034
|
-
|
|
98036
|
+
kn([
|
|
98035
98037
|
M(Gi)
|
|
98036
98038
|
], Es.prototype, "noise", 2);
|
|
98037
|
-
|
|
98038
|
-
M(
|
|
98039
|
+
kn([
|
|
98040
|
+
M(Bn)
|
|
98039
98041
|
], Es.prototype, "trails", 2);
|
|
98040
|
-
|
|
98042
|
+
kn([
|
|
98041
98043
|
M(Vn)
|
|
98042
98044
|
], Es.prototype, "velocityOverLifetime", 2);
|
|
98043
|
-
|
|
98045
|
+
kn([
|
|
98044
98046
|
M(Ts)
|
|
98045
98047
|
], Es.prototype, "limitVelocityOverLifetime", 2);
|
|
98046
|
-
|
|
98048
|
+
kn([
|
|
98047
98049
|
M(im)
|
|
98048
98050
|
], Es.prototype, "inheritVelocity", 2);
|
|
98049
|
-
|
|
98051
|
+
kn([
|
|
98050
98052
|
M(fy)
|
|
98051
98053
|
], Es.prototype, "colorBySpeed", 2);
|
|
98052
|
-
|
|
98054
|
+
kn([
|
|
98053
98055
|
M(Qr)
|
|
98054
98056
|
], Es.prototype, "textureSheetAnimation", 2);
|
|
98055
|
-
|
|
98057
|
+
kn([
|
|
98056
98058
|
M(Wl)
|
|
98057
98059
|
], Es.prototype, "rotationOverLifetime", 2);
|
|
98058
|
-
|
|
98060
|
+
kn([
|
|
98059
98061
|
M(ll)
|
|
98060
98062
|
], Es.prototype, "rotationBySpeed", 2);
|
|
98061
|
-
|
|
98063
|
+
kn([
|
|
98062
98064
|
M(Uo)
|
|
98063
98065
|
], Es.prototype, "sizeBySpeed", 2);
|
|
98064
98066
|
class DC {
|
|
@@ -100118,7 +100120,7 @@ class Zs extends Ie {
|
|
|
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(Tn.KeyDown, this.onInputKeyDown), this.context.input.addEventListener(Tn.PointerMove, this.onInputPointerMove), this.context.input.addEventListener(Tn.PointerUp, this.onInputPointerUp), this._engineElementOverserver || (this._engineElementOverserver = new MutationObserver((t) => {
|
|
100122
100124
|
for (const i of t)
|
|
100123
100125
|
if (i.type === "attributes" && i.attributeName === I1) {
|
|
100124
100126
|
const n = this.context.domElement.getAttribute(I1);
|
|
@@ -100151,7 +100153,7 @@ class Zs extends Ie {
|
|
|
100151
100153
|
/** @internal */
|
|
100152
100154
|
onDisable() {
|
|
100153
100155
|
var t;
|
|
100154
|
-
if (globalThis.removeEventListener("popstate", this.onPopState), this.context.input.removeEventListener(
|
|
100156
|
+
if (globalThis.removeEventListener("popstate", this.onPopState), this.context.input.removeEventListener(Tn.KeyDown, this.onInputKeyDown), this.context.input.removeEventListener(Tn.PointerMove, this.onInputPointerMove), this.context.input.removeEventListener(Tn.PointerUp, this.onInputPointerUp), (t = this._preloadScheduler) == null || t.stop(), this._menuButtons) {
|
|
100155
100157
|
for (const i of this._menuButtons)
|
|
100156
100158
|
i.remove();
|
|
100157
100159
|
this._menuButtons = void 0;
|
|
@@ -102301,9 +102303,9 @@ class iwe {
|
|
|
102301
102303
|
n.key === "Escape" && this.spectator.stopSpectating();
|
|
102302
102304
|
});
|
|
102303
102305
|
let i = 0;
|
|
102304
|
-
this.context.input.addEventListener(
|
|
102306
|
+
this.context.input.addEventListener(Tn.PointerDown, (n) => {
|
|
102305
102307
|
i = this.context.time.time;
|
|
102306
|
-
}), this.context.input.addEventListener(
|
|
102308
|
+
}), this.context.input.addEventListener(Tn.PointerUp, (n) => {
|
|
102307
102309
|
const r = this.context.time.time - i;
|
|
102308
102310
|
r > 1 ? this.spectator.stopSpectating() : this.context.input.getPointerClicked(0) && r < 0.3 && this.trySelectObject();
|
|
102309
102311
|
});
|
|
@@ -102625,7 +102627,7 @@ class Uc extends Ie {
|
|
|
102625
102627
|
const i = this.getViewOnlyUrl();
|
|
102626
102628
|
i != null && i.length ? navigator.canShare({ url: i }) ? (n = navigator.share({ url: i })) == null || n.catch((r) => {
|
|
102627
102629
|
console.warn(r);
|
|
102628
|
-
}) : (navigator.clipboard.writeText(i),
|
|
102630
|
+
}) : (navigator.clipboard.writeText(i), In("View only URL copied to clipboard")) : Qi("Could not create view only URL");
|
|
102629
102631
|
}, t.title = "Copy the view only URL: A page accessed by the view only URL can not be modified by visiting users.", t.textContent = "Share View URL", t.prepend(Br("visibility"));
|
|
102630
102632
|
}
|
|
102631
102633
|
this.context.menu.appendChild(this._viewOnlyButton);
|
|
@@ -103122,7 +103124,7 @@ class iT extends Ie {
|
|
|
103122
103124
|
awake() {
|
|
103123
103125
|
var t;
|
|
103124
103126
|
v2 && (console.log("PostprocessingManager Awake", this), console.log("Press P to toggle post processing"), window.addEventListener("keydown", (i) => {
|
|
103125
|
-
i.key === "p" && (this.enabled = !this.enabled,
|
|
103127
|
+
i.key === "p" && (this.enabled = !this.enabled, In("Toggle PostProcessing " + this.name + ": Enabled=" + this.enabled), this.markDirty());
|
|
103126
103128
|
})), (t = this.sharedProfile) == null || t.init();
|
|
103127
103129
|
}
|
|
103128
103130
|
onEnable() {
|
|
@@ -104204,7 +104206,7 @@ const Nwe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
104204
104206
|
TextureSheetAnimationModule: Qr,
|
|
104205
104207
|
TiltShiftEffect: hu,
|
|
104206
104208
|
ToneMappingEffect: Fp,
|
|
104207
|
-
TrailModule:
|
|
104209
|
+
TrailModule: Bn,
|
|
104208
104210
|
TransformData: As,
|
|
104209
104211
|
TransformGizmo: Sy,
|
|
104210
104212
|
TriggerBuilder: dr,
|
|
@@ -104433,7 +104435,7 @@ J.add("TextExtension", BE);
|
|
|
104433
104435
|
J.add("TextureSheetAnimationModule", Qr);
|
|
104434
104436
|
J.add("TiltShiftEffect", hu);
|
|
104435
104437
|
J.add("ToneMappingEffect", Fp);
|
|
104436
|
-
J.add("TrailModule",
|
|
104438
|
+
J.add("TrailModule", Bn);
|
|
104437
104439
|
J.add("TransformData", As);
|
|
104438
104440
|
J.add("TransformGizmo", Sy);
|
|
104439
104441
|
J.add("TriggerBuilder", dr);
|
|
@@ -104550,7 +104552,7 @@ async function EB(s, e, t, i) {
|
|
|
104550
104552
|
}
|
|
104551
104553
|
if (xb.length > 0) {
|
|
104552
104554
|
const o = xb.join(", ");
|
|
104553
|
-
console.warn("unknown components: " + o), xb.length = 0, Fo() &&
|
|
104555
|
+
console.warn("unknown components: " + o), xb.length = 0, Fo() && In(`<strong>Unknown components in scene</strong>:
|
|
104554
104556
|
|
|
104555
104557
|
${o}
|
|
104556
104558
|
|
|
@@ -104573,7 +104575,7 @@ async function Qwe(s, e = !0) {
|
|
|
104573
104575
|
const n = s, r = new URL(n, globalThis.location.origin);
|
|
104574
104576
|
let o = null;
|
|
104575
104577
|
const a = r.searchParams.get("filetype");
|
|
104576
|
-
switch (a && (o = a.toUpperCase()), o != null && o.length || (o = (i = r.pathname.split(".").pop()) == null ? void 0 : i.toUpperCase()), o) {
|
|
104578
|
+
switch (a && (o = a.toUpperCase()), o != null && o.length || (o = (i = r.pathname.split(".").pop()) == null ? void 0 : i.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 Qwe(s, e = !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 t = await fetch(s, {
|
|
@@ -104608,7 +104612,7 @@ function Zwe(s) {
|
|
|
104608
104612
|
const e = new Uint8Array(s);
|
|
104609
104613
|
return _j && console.warn(`Trying to determine file type from binary data
|
|
104610
104614
|
`, '"' + new TextDecoder().decode(s) + `"
|
|
104611
|
-
`, e), e[0] == 103 && e[1] == 108 && e[2] == 84 && e[3] == 70 ? "glb" : e[0] == 80 && e[1] == 75 && e[2] == 3 && e[3] == 4 ? "usdz" : e[0] == 80 && e[1] == 88 && e[2] == 82 && e[3] == 45 && e[4] == 85 && e[5] == 83 && e[6] == 68 && e[7] == 67 ? "usd" : e[0] == 35 && e[1] == 117 && e[2] == 115 && e[3] == 100 && e[4] == 97 ? "usda" : e[0] == 75 && e[1] == 97 && e[2] == 121 && e[3] == 100 && e[4] == 97 && e[5] == 114 && e[6] == 97 && e[7] == 32 ? "fbx" : e[0] == 35 && e[1] == 32 && e[2] == 66 && e[3] == 108 && e[4] == 101 && e[5] == 110 && e[6] == 100 && e[7] == 101 && e[8] == 114 && e[9] == 32 ? "obj" : "unknown";
|
|
104615
|
+
`, e), e[0] == 103 && e[1] == 108 && e[2] == 84 && e[3] == 70 ? (console.debug("GLTF detected"), "glb") : e[0] == 80 && e[1] == 75 && e[2] == 3 && e[3] == 4 ? (console.debug("USDZ detected"), "usdz") : e[0] == 80 && e[1] == 88 && e[2] == 82 && e[3] == 45 && e[4] == 85 && e[5] == 83 && e[6] == 68 && e[7] == 67 ? (console.debug("Binary USD detected"), "usd") : e[0] == 35 && e[1] == 117 && e[2] == 115 && e[3] == 100 && e[4] == 97 ? (console.debug("ASCII USD detected"), "usda") : e[0] == 75 && e[1] == 97 && e[2] == 121 && e[3] == 100 && e[4] == 97 && e[5] == 114 && e[6] == 97 && e[7] == 32 ? (console.debug("Binary FBX detected"), "fbx") : e[0] == 59 && e[1] == 32 && e[2] == 70 && e[3] == 66 && e[4] == 88 && e[5] == 32 ? (console.debug("ASCII FBX detected"), "fbx") : e[0] == 35 && e[1] == 32 && e[2] == 66 && e[3] == 108 && e[4] == 101 && e[5] == 110 && e[6] == 100 && e[7] == 101 && e[8] == 114 && e[9] == 32 || e[0] == 35 && e[1] == 32 && e[2] == 65 && e[3] == 108 && e[4] == 105 && e[5] == 97 && e[6] == 115 && e[7] == 32 && e[8] == 79 && e[9] == 66 && e[10] == 74 ? (console.debug("OBJ detected"), "obj") : (console.debug("Could not determine file type from binary data", e), "unknown");
|
|
104612
104616
|
}
|
|
104613
104617
|
class wj {
|
|
104614
104618
|
createBuiltinComponents(e, t, i, n, r) {
|
|
@@ -104656,9 +104660,9 @@ async function Mj(s, e, t, i, n) {
|
|
|
104656
104660
|
}
|
|
104657
104661
|
async function Ej(s, e) {
|
|
104658
104662
|
const t = await Qwe(s) || "unknown";
|
|
104659
|
-
switch (t) {
|
|
104663
|
+
switch (console.debug("Determined file type: " + t + " for url", s), t) {
|
|
104660
104664
|
case "unknown":
|
|
104661
|
-
return console.warn("Unknown file type:", s), new Yh();
|
|
104665
|
+
return console.warn("Unknown file type. Assuming glTF:", s), new Yh();
|
|
104662
104666
|
case "fbx":
|
|
104663
104667
|
return new SZ();
|
|
104664
104668
|
case "obj":
|
|
@@ -104764,7 +104768,7 @@ function Kwe(s) {
|
|
|
104764
104768
|
if (new URL(s, window.location.href).href.startsWith("file://")) {
|
|
104765
104769
|
const t = `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
|
+
In(t), console.warn(t);
|
|
104768
104772
|
}
|
|
104769
104773
|
}
|
|
104770
104774
|
function Ij(s) {
|
|
@@ -104787,7 +104791,7 @@ function Lj(s, e) {
|
|
|
104787
104791
|
}
|
|
104788
104792
|
}
|
|
104789
104793
|
AH(wj);
|
|
104790
|
-
const
|
|
104794
|
+
const Fn = ie("debugwebcomponent"), P5 = "needle-engine", Pj = "vr", Bj = "desktop", Jwe = [_Z, Pj, Bj], _b = "ar-session-active", wb = "desktop-session-active", qwe = [
|
|
104791
104795
|
"hash",
|
|
104792
104796
|
"src",
|
|
104793
104797
|
"camera-controls",
|
|
@@ -104956,11 +104960,11 @@ class kj extends HTMLElement {
|
|
|
104956
104960
|
* @internal
|
|
104957
104961
|
*/
|
|
104958
104962
|
async connectedCallback() {
|
|
104959
|
-
if (
|
|
104963
|
+
if (Fn && console.log("<needle-engine> connected"), this.addEventListener("xr-session-started", this.onXRSessionStarted), this.onSetupDesktop(), !this.getAttribute("src")) {
|
|
104960
104964
|
const i = globalThis["needle:codegen_files"];
|
|
104961
|
-
|
|
104965
|
+
Fn && console.log('src is null, trying to load from globalThis["needle:codegen_files"]', i), i && (Fn && console.log('globalThis["needle:codegen_files"]', i), this.setAttribute("src", i));
|
|
104962
104966
|
}
|
|
104963
|
-
|
|
104967
|
+
Fn && console.log("src", this.getAttribute("src"));
|
|
104964
104968
|
const t = this._loadId;
|
|
104965
104969
|
setTimeout(() => {
|
|
104966
104970
|
this.isConnected !== !1 && t === this._loadId && this.onLoad();
|
|
@@ -104973,15 +104977,15 @@ class kj extends HTMLElement {
|
|
|
104973
104977
|
var n;
|
|
104974
104978
|
this.removeEventListener("xr-session-started", this.onXRSessionStarted), this._didFullyLoad = !1;
|
|
104975
104979
|
const t = this.getAttribute("keep-alive"), i = t == null || (t == null ? void 0 : t.length) > 0 && t !== "true" && t !== "1";
|
|
104976
|
-
|
|
104980
|
+
Fn && console.warn('<needle-engine> disconnected, keep-alive: "' + t + '"', typeof t, "Dispose=", i), i ? (Fn && console.warn("<needle-engine> dispose"), (n = this._context) == null || n.dispose(), this._context = null, this._lastSourceFiles = null, this._loadId += 1) : Fn && console.warn("<needle-engine> is not disposed because keep-alive is set");
|
|
104977
104981
|
}
|
|
104978
104982
|
/**
|
|
104979
104983
|
* @internal
|
|
104980
104984
|
*/
|
|
104981
104985
|
attributeChangedCallback(t, i, n) {
|
|
104982
|
-
switch (
|
|
104986
|
+
switch (Fn && console.log("attributeChangedCallback", t, i, n), t) {
|
|
104983
104987
|
case "src":
|
|
104984
|
-
|
|
104988
|
+
Fn && console.warn(`<needle-engine src>
|
|
104985
104989
|
changed from "`, i, '" to "', n, '"'), this.onLoad();
|
|
104986
104990
|
break;
|
|
104987
104991
|
case "hash":
|
|
@@ -104990,16 +104994,16 @@ changed from "`, i, '" to "', n, '"'), this.onLoad();
|
|
|
104990
104994
|
case "loadstart":
|
|
104991
104995
|
case "progress":
|
|
104992
104996
|
case "loadfinished":
|
|
104993
|
-
typeof n == "string" && n.length > 0 && (
|
|
104997
|
+
typeof n == "string" && n.length > 0 && (Fn && console.log(t + " attribute changed", n), this.registerEventFromAttribute(t, n));
|
|
104994
104998
|
break;
|
|
104995
104999
|
case "dracoDecoderPath":
|
|
104996
|
-
|
|
105000
|
+
Fn && console.log("dracoDecoderPath", n), DU(n);
|
|
104997
105001
|
break;
|
|
104998
105002
|
case "dracoDecoderType":
|
|
104999
|
-
n === "wasm" || n === "js" ? (
|
|
105003
|
+
n === "wasm" || n === "js" ? (Fn && console.log("dracoDecoderType", n), OU(n)) : console.error("Invalid dracoDecoderType", n, "expected js or wasm");
|
|
105000
105004
|
break;
|
|
105001
105005
|
case "ktx2DecoderPath":
|
|
105002
|
-
|
|
105006
|
+
Fn && console.log("ktx2DecoderPath", n), FU(n);
|
|
105003
105007
|
break;
|
|
105004
105008
|
case "tone-mapping": {
|
|
105005
105009
|
this.applyTonemapping();
|
|
@@ -105013,16 +105017,16 @@ changed from "`, i, '" to "', n, '"'), this.onLoad();
|
|
|
105013
105017
|
var b, g;
|
|
105014
105018
|
if (!this.isConnected)
|
|
105015
105019
|
return;
|
|
105016
|
-
if (this._context || (
|
|
105020
|
+
if (this._context || (Fn && console.warn("Create new context"), this._context = new kt({ domElement: this })), !this._context) {
|
|
105017
105021
|
console.error("Needle Engine: Context not initialized");
|
|
105018
105022
|
return;
|
|
105019
105023
|
}
|
|
105020
105024
|
const t = this.getSourceFiles();
|
|
105021
105025
|
if (!this.checkIfSourceHasChanged(t, this._lastSourceFiles))
|
|
105022
105026
|
return;
|
|
105023
|
-
this._abortController && (
|
|
105027
|
+
this._abortController && (Fn && console.warn("Abort previous loading process"), this._abortController.abort(), this._abortController = null), this._lastSourceFiles = t;
|
|
105024
105028
|
const i = ++this._loadId;
|
|
105025
|
-
if ((t == null || t.length <= 0) && (
|
|
105029
|
+
if ((t == null || t.length <= 0) && (Fn && console.warn("Clear scene", t), this._context.clear(), i !== this._loadId))
|
|
105026
105030
|
return;
|
|
105027
105031
|
const n = this.getAttribute("alias");
|
|
105028
105032
|
this.classList.add("loading");
|
|
@@ -105041,7 +105045,7 @@ changed from "`, i, '" to "', n, '"'), this.onLoad();
|
|
|
105041
105045
|
}
|
|
105042
105046
|
o === !1 && !r && (rt() || (o = !0), console.warn("Needle Engine: You need a commercial license to override the default loading view. Visit https://needle.tools/pricing"), rt() && Qi('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 S1(this)), o && (this._didFullyLoad !== !0 ? (b = this._loadingView) == null || b.onLoadingBegin("begin load") : setTimeout(() => {
|
|
105043
105047
|
this._loadingView && this._loadingProgress01 < 0.3 && this._loadId === i && this._loadingView.onLoadingBegin("begin load");
|
|
105044
|
-
}, 300)),
|
|
105048
|
+
}, 300)), Fn && console.warn(`--------------
|
|
105045
105049
|
Needle Engine: Begin loading ` + i + `
|
|
105046
105050
|
`, t), this.onBeforeBeginLoading();
|
|
105047
105051
|
const a = [], l = {
|
|
@@ -105072,7 +105076,7 @@ Needle Engine: Begin loading ` + i + `
|
|
|
105072
105076
|
}, p = this.getAttribute("hash");
|
|
105073
105077
|
p != null && (this._context.hash = p), this._context.alias = n, this._createContextPromise = this._context.create(f);
|
|
105074
105078
|
const m = await this._createContextPromise;
|
|
105075
|
-
if (this.applyTonemapping(),
|
|
105079
|
+
if (this.applyTonemapping(), Fn && console.warn(`--------------
|
|
105076
105080
|
Needle Engine: finished loading ` + i + `
|
|
105077
105081
|
`, t, `Aborted? ${u.signal.aborted}`), this._loadId !== i || u.signal.aborted) {
|
|
105078
105082
|
console.log("Loading finished but aborted...");
|
|
@@ -105202,7 +105206,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
105202
105206
|
onSetupAR() {
|
|
105203
105207
|
this.classList.add(_b), this.classList.remove(wb);
|
|
105204
105208
|
const t = this.getAROverlayContainer();
|
|
105205
|
-
|
|
105209
|
+
Fn && console.warn("onSetupAR:", t), t && (t.classList.add(_b), t.classList.remove(wb)), this.foreachHtmlElement((i) => this.setupElementsForMode(i, _Z));
|
|
105206
105210
|
}
|
|
105207
105211
|
onSetupVR() {
|
|
105208
105212
|
this.classList.remove(_b), this.classList.remove(wb), this.foreachHtmlElement((t) => this.setupElementsForMode(t, Pj));
|
|
@@ -105230,11 +105234,11 @@ Needle Engine: finished loading ` + i + `
|
|
|
105230
105234
|
}
|
|
105231
105235
|
onBeforeBeginLoading() {
|
|
105232
105236
|
const t = this.getAttribute("dracoDecoderPath");
|
|
105233
|
-
t && (
|
|
105237
|
+
t && (Fn && console.log("using custom draco decoder path", t), DU(t));
|
|
105234
105238
|
const i = this.getAttribute("dracoDecoderType");
|
|
105235
|
-
i && (
|
|
105239
|
+
i && (Fn && console.log("using custom draco decoder type", i), OU(i));
|
|
105236
105240
|
const n = this.getAttribute("ktx2DecoderPath");
|
|
105237
|
-
n && (
|
|
105241
|
+
n && (Fn && console.log("using custom ktx2 decoder path", n), FU(n));
|
|
105238
105242
|
}
|
|
105239
105243
|
}
|
|
105240
105244
|
typeof window < "u" && !window.customElements.get(P5) && window.customElements.define(P5, kj);
|
|
@@ -105247,27 +105251,17 @@ function $we(s) {
|
|
|
105247
105251
|
i > 0 && (t = t.substring(0, i));
|
|
105248
105252
|
const n = t.indexOf("=");
|
|
105249
105253
|
n > 0 && (t = t.substring(n));
|
|
105250
|
-
const r = t.split(".").pop(), a = r ? ["glb", "gltf", "usdz", "usd", "fbx", "obj", "mtl"].indexOf(r) : -1;
|
|
105254
|
+
const r = t.split(".").pop(), a = r ? ["glb", "gltf", "usdz", "usd", "fbx", "obj", "mtl"].indexOf(r.toLowerCase()) : -1;
|
|
105251
105255
|
if (r && a >= 0 && (t = t.substring(0, t.length - r.length - 1)), t = decodeURIComponent(t), t.length > 3) {
|
|
105252
105256
|
let l = "", c = !1;
|
|
105253
105257
|
const h = ["(", ")", "[", "]", "{", "}", ":", ";", ",", ".", "!", "?"];
|
|
105254
105258
|
for (let u = 0; u < t.length; u++) {
|
|
105255
105259
|
let f = t[u];
|
|
105256
|
-
|
|
105257
|
-
continue;
|
|
105258
|
-
const m = l.length === 0, b = f >= "0" && f <= "9";
|
|
105259
|
-
if (m == !1 && f === f.toUpperCase() && !b)
|
|
105260
|
-
l += " " + f;
|
|
105261
|
-
else {
|
|
105262
|
-
if (m && (f = f.toUpperCase()), c && f === " ")
|
|
105263
|
-
continue;
|
|
105264
|
-
c && (f = f.toUpperCase()), c = !1, l += f;
|
|
105265
|
-
}
|
|
105266
|
-
f === " " && (c = !0);
|
|
105260
|
+
(f === "_" || f === "-") && (f = " "), !(f === " " && l.length <= 0 || h.includes(f) || (l.length === 0 && (f = f.toUpperCase()), c && f === " ")) && (c && (f = f.toUpperCase()), c = !1, l += f, f === " " && (c = !0));
|
|
105267
105261
|
}
|
|
105268
|
-
return
|
|
105262
|
+
return console.debug('Generated display name: "' + t + '" → "' + l + '"'), l.trim();
|
|
105269
105263
|
}
|
|
105270
|
-
return
|
|
105264
|
+
return console.debug("Loading: use default name", t), t;
|
|
105271
105265
|
}
|
|
105272
105266
|
const eSe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
105273
105267
|
__proto__: null,
|
|
@@ -106799,81 +106793,81 @@ class X5 {
|
|
|
106799
106793
|
(function(s) {
|
|
106800
106794
|
s[s.Density = 0] = "Density", s[s.Mass = 1] = "Mass", s[s.MassProps = 2] = "MassProps";
|
|
106801
106795
|
})(Kg || (Kg = {}));
|
|
106802
|
-
class
|
|
106796
|
+
class bn {
|
|
106803
106797
|
constructor(e) {
|
|
106804
106798
|
this.enabled = !0, this.shape = e, this.massPropsMode = Kg.Density, this.density = 1, this.friction = 0.5, this.restitution = 0, this.rotation = Ji.identity(), this.translation = Re.zeros(), this.isSensor = !1, this.collisionGroups = 4294967295, this.solverGroups = 4294967295, this.frictionCombineRule = os.Average, this.restitutionCombineRule = os.Average, this.activeCollisionTypes = GC.DEFAULT, this.activeEvents = FC.NONE, this.activeHooks = RB.NONE, this.mass = 0, this.centerOfMass = Re.zeros(), this.contactForceEventThreshold = 0, this.principalAngularInertia = Re.zeros(), this.angularInertiaLocalFrame = Ji.identity();
|
|
106805
106799
|
}
|
|
106806
106800
|
static ball(e) {
|
|
106807
106801
|
const t = new uF(e);
|
|
106808
|
-
return new
|
|
106802
|
+
return new bn(t);
|
|
106809
106803
|
}
|
|
106810
106804
|
static capsule(e, t) {
|
|
106811
106805
|
const i = new Fj(e, t);
|
|
106812
|
-
return new
|
|
106806
|
+
return new bn(i);
|
|
106813
106807
|
}
|
|
106814
106808
|
static segment(e, t) {
|
|
106815
106809
|
const i = new Gj(e, t);
|
|
106816
|
-
return new
|
|
106810
|
+
return new bn(i);
|
|
106817
106811
|
}
|
|
106818
106812
|
static triangle(e, t, i) {
|
|
106819
106813
|
const n = new Nj(e, t, i);
|
|
106820
|
-
return new
|
|
106814
|
+
return new bn(n);
|
|
106821
106815
|
}
|
|
106822
106816
|
static roundTriangle(e, t, i, n) {
|
|
106823
106817
|
const r = new zj(e, t, i, n);
|
|
106824
|
-
return new
|
|
106818
|
+
return new bn(r);
|
|
106825
106819
|
}
|
|
106826
106820
|
static polyline(e, t) {
|
|
106827
106821
|
const i = new Uj(e, t);
|
|
106828
|
-
return new
|
|
106822
|
+
return new bn(i);
|
|
106829
106823
|
}
|
|
106830
106824
|
static trimesh(e, t) {
|
|
106831
106825
|
const i = new Vj(e, t);
|
|
106832
|
-
return new
|
|
106826
|
+
return new bn(i);
|
|
106833
106827
|
}
|
|
106834
106828
|
static cuboid(e, t, i) {
|
|
106835
106829
|
const n = new Dj(e, t, i);
|
|
106836
|
-
return new
|
|
106830
|
+
return new bn(n);
|
|
106837
106831
|
}
|
|
106838
106832
|
static roundCuboid(e, t, i, n) {
|
|
106839
106833
|
const r = new Oj(e, t, i, n);
|
|
106840
|
-
return new
|
|
106834
|
+
return new bn(r);
|
|
106841
106835
|
}
|
|
106842
106836
|
static heightfield(e, t, i, n) {
|
|
106843
106837
|
const r = new Xj(e, t, i, n);
|
|
106844
|
-
return new
|
|
106838
|
+
return new bn(r);
|
|
106845
106839
|
}
|
|
106846
106840
|
static cylinder(e, t) {
|
|
106847
106841
|
const i = new Wj(e, t);
|
|
106848
|
-
return new
|
|
106842
|
+
return new bn(i);
|
|
106849
106843
|
}
|
|
106850
106844
|
static roundCylinder(e, t, i) {
|
|
106851
106845
|
const n = new Hj(e, t, i);
|
|
106852
|
-
return new
|
|
106846
|
+
return new bn(n);
|
|
106853
106847
|
}
|
|
106854
106848
|
static cone(e, t) {
|
|
106855
106849
|
const i = new Qj(e, t);
|
|
106856
|
-
return new
|
|
106850
|
+
return new bn(i);
|
|
106857
106851
|
}
|
|
106858
106852
|
static roundCone(e, t, i) {
|
|
106859
106853
|
const n = new Zj(e, t, i);
|
|
106860
|
-
return new
|
|
106854
|
+
return new bn(n);
|
|
106861
106855
|
}
|
|
106862
106856
|
static convexHull(e) {
|
|
106863
106857
|
const t = new IB(e, null);
|
|
106864
|
-
return new
|
|
106858
|
+
return new bn(t);
|
|
106865
106859
|
}
|
|
106866
106860
|
static convexMesh(e, t) {
|
|
106867
106861
|
const i = new IB(e, t);
|
|
106868
|
-
return new
|
|
106862
|
+
return new bn(i);
|
|
106869
106863
|
}
|
|
106870
106864
|
static roundConvexHull(e, t) {
|
|
106871
106865
|
const i = new LB(e, null, t);
|
|
106872
|
-
return new
|
|
106866
|
+
return new bn(i);
|
|
106873
106867
|
}
|
|
106874
106868
|
static roundConvexMesh(e, t, i) {
|
|
106875
106869
|
const n = new LB(e, t, i);
|
|
106876
|
-
return new
|
|
106870
|
+
return new bn(n);
|
|
106877
106871
|
}
|
|
106878
106872
|
setTranslation(e, t, i) {
|
|
106879
106873
|
if (typeof e != "number" || typeof t != "number" || typeof i != "number")
|
|
@@ -107276,7 +107270,7 @@ const Hv = class {
|
|
|
107276
107270
|
}
|
|
107277
107271
|
const i = e.gameObject, n = an(i, this._tempPosition).multiply(t);
|
|
107278
107272
|
n.multiplyScalar(0.5), n.x < 0 && (n.x = Math.abs(n.x)), n.y < 0 && (n.y = Math.abs(n.y)), n.z < 0 && (n.z = Math.abs(n.z)), n.x == 0 && (n.x = 1e-7), n.y == 0 && (n.y = 1e-7), n.z == 0 && (n.z = 1e-7);
|
|
107279
|
-
const r =
|
|
107273
|
+
const r = bn.cuboid(n.x, n.y, n.z);
|
|
107280
107274
|
this.createCollider(e, r);
|
|
107281
107275
|
}
|
|
107282
107276
|
async addSphereCollider(e) {
|
|
@@ -107286,7 +107280,7 @@ const Hv = class {
|
|
|
107286
107280
|
rr && console.warn("Physics are disabled");
|
|
107287
107281
|
return;
|
|
107288
107282
|
}
|
|
107289
|
-
const t =
|
|
107283
|
+
const t = bn.ball(0.5);
|
|
107290
107284
|
this.createCollider(e, t), this.updateProperties(e);
|
|
107291
107285
|
}
|
|
107292
107286
|
async addCapsuleCollider(e, t, i) {
|
|
@@ -107300,7 +107294,7 @@ const Hv = class {
|
|
|
107300
107294
|
r.x = Math.abs(r.x), r.y = Math.abs(r.y);
|
|
107301
107295
|
const o = i * r.x;
|
|
107302
107296
|
t = Math.max(t, o * 2);
|
|
107303
|
-
const a = nt.clamp(t * 0.5 * r.y - i * r.x, 0, Number.MAX_SAFE_INTEGER), l =
|
|
107297
|
+
const a = nt.clamp(t * 0.5 * r.y - i * r.x, 0, Number.MAX_SAFE_INTEGER), l = bn.capsule(a, o);
|
|
107304
107298
|
this.createCollider(e, l);
|
|
107305
107299
|
}
|
|
107306
107300
|
async addMeshCollider(e, t, i, n) {
|
|
@@ -107331,7 +107325,7 @@ const Hv = class {
|
|
|
107331
107325
|
o = p, this._meshCache.set(f, p);
|
|
107332
107326
|
}
|
|
107333
107327
|
}
|
|
107334
|
-
const l = i ?
|
|
107328
|
+
const l = i ? bn.convexHull(o) : bn.trimesh(o, a);
|
|
107335
107329
|
l && this.createCollider(e, l);
|
|
107336
107330
|
}
|
|
107337
107331
|
updatePhysicsMaterial(e) {
|
|
@@ -109587,7 +109581,7 @@ function n1e(s, e, t = {}, i = 0, n = 1 / 0) {
|
|
|
109587
109581
|
const hg = /* @__PURE__ */ new C(), ug = /* @__PURE__ */ new C(), dg = /* @__PURE__ */ new C(), SS = /* @__PURE__ */ new ee(), CS = /* @__PURE__ */ new ee(), MS = /* @__PURE__ */ new ee(), q5 = /* @__PURE__ */ new C(), $5 = /* @__PURE__ */ new C(), eX = /* @__PURE__ */ new C(), ES = /* @__PURE__ */ new C();
|
|
109588
109582
|
function s1e(s, e, t, i, n, r, o, a) {
|
|
109589
109583
|
let l;
|
|
109590
|
-
if (r ===
|
|
109584
|
+
if (r === An ? l = s.intersectTriangle(i, t, e, !0, n) : l = s.intersectTriangle(e, t, i, r !== yi, n), l === null)
|
|
109591
109585
|
return null;
|
|
109592
109586
|
const c = s.origin.distanceTo(n);
|
|
109593
109587
|
return c < o || c > a ? null : {
|
|
@@ -110848,13 +110842,13 @@ class aT extends Gr {
|
|
|
110848
110842
|
let f, p, m, b, g = Z1e(r);
|
|
110849
110843
|
switch (h) {
|
|
110850
110844
|
case en:
|
|
110851
|
-
m = 1, p = Y1e(r), a && c === 1 ? (b = l, g += "8", l === Uint8Array ? f =
|
|
110845
|
+
m = 1, p = Y1e(r), a && c === 1 ? (b = l, g += "8", l === Uint8Array ? f = _n : (f = z1, g += "_SNORM")) : (b = Float32Array, g += "32F", f = en);
|
|
110852
110846
|
break;
|
|
110853
110847
|
case ap:
|
|
110854
110848
|
g += c * 8 + "I", m = a ? Math.pow(2, l.BYTES_PER_ELEMENT * 8 - 1) : 1, p = pX(r), c === 1 ? (b = Int8Array, f = z1) : c === 2 ? (b = Int16Array, f = YB) : (b = Int32Array, f = ap);
|
|
110855
110849
|
break;
|
|
110856
110850
|
case Dr:
|
|
110857
|
-
g += c * 8 + "UI", m = a ? Math.pow(2, l.BYTES_PER_ELEMENT * 8 - 1) : 1, p = pX(r), c === 1 ? (b = Uint8Array, f =
|
|
110851
|
+
g += c * 8 + "UI", m = a ? Math.pow(2, l.BYTES_PER_ELEMENT * 8 - 1) : 1, p = pX(r), c === 1 ? (b = Uint8Array, f = _n) : c === 2 ? (b = Uint16Array, f = ZA) : (b = Uint32Array, f = Dr);
|
|
110858
110852
|
break;
|
|
110859
110853
|
}
|
|
110860
110854
|
u === 3 && (p === Ti || p === S0) && (u = 4);
|
|
@@ -112230,7 +112224,7 @@ export {
|
|
|
112230
112224
|
im as InheritVelocityModule,
|
|
112231
112225
|
The as Input,
|
|
112232
112226
|
Va as InputEventQueue,
|
|
112233
|
-
|
|
112227
|
+
Tn as InputEvents,
|
|
112234
112228
|
yy as InputField,
|
|
112235
112229
|
g0 as InstanceHandle,
|
|
112236
112230
|
m0 as InstancingHandler,
|
|
@@ -112397,7 +112391,7 @@ export {
|
|
|
112397
112391
|
Fp as ToneMappingEffect,
|
|
112398
112392
|
mE as TrackHandler,
|
|
112399
112393
|
Ta as TrackType,
|
|
112400
|
-
|
|
112394
|
+
Bn as TrailModule,
|
|
112401
112395
|
As as TransformData,
|
|
112402
112396
|
Sy as TransformGizmo,
|
|
112403
112397
|
dr as TriggerBuilder,
|
|
@@ -112648,7 +112642,7 @@ export {
|
|
|
112648
112642
|
VM as setWorldRotationXYZ,
|
|
112649
112643
|
pA as setWorldScale,
|
|
112650
112644
|
dD as showBalloonError,
|
|
112651
|
-
|
|
112645
|
+
In as showBalloonMessage,
|
|
112652
112646
|
Qi as showBalloonWarning,
|
|
112653
112647
|
E4 as showDebugConsole,
|
|
112654
112648
|
tEe as slerp,
|