@needle-tools/engine 4.7.0-next.da47826 → 4.7.0-next.ef983f9
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.bundle-CO1Ub9sm.js → needle-engine.bundle-450ujan4.js} +585 -574
- package/dist/{needle-engine.bundle-D95XN5pP.min.js → needle-engine.bundle-BDMr_I34.min.js} +33 -30
- package/dist/{needle-engine.bundle-Bu88IoKB.umd.cjs → needle-engine.bundle-CbNroJbN.umd.cjs} +32 -29
- package/dist/needle-engine.js +2 -2
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/lib/engine/engine_context.js +4 -3
- package/lib/engine/engine_context.js.map +1 -1
- package/lib/engine/engine_three_utils.js +4 -0
- package/lib/engine/engine_three_utils.js.map +1 -1
- package/lib/engine/webcomponents/needle-engine.attributes.d.ts +1 -1
- package/lib/engine-components/Camera.js +1 -1
- package/lib/engine-components/Camera.js.map +1 -1
- package/lib/engine-components/CameraUtils.js +5 -3
- package/lib/engine-components/CameraUtils.js.map +1 -1
- package/lib/engine-components/Skybox.js +4 -4
- package/lib/engine-components/Skybox.js.map +1 -1
- package/lib/engine-components/postprocessing/Effects/Antialiasing.js +8 -1
- package/lib/engine-components/postprocessing/Effects/Antialiasing.js.map +1 -1
- package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.js +1 -1
- package/lib/engine-components/postprocessing/PostProcessingHandler.js +15 -1
- package/lib/engine-components/postprocessing/PostProcessingHandler.js.map +1 -1
- package/lib/engine-components/postprocessing/Volume.js +1 -1
- package/lib/engine-components/postprocessing/Volume.js.map +1 -1
- package/package.json +1 -1
- package/plugins/common/logger.js +223 -0
- package/plugins/types/userconfig.d.ts +3 -1
- package/plugins/vite/alias.js +55 -40
- package/plugins/vite/imports-logger.js +1 -1
- package/plugins/vite/index.js +4 -0
- package/plugins/vite/logger.client.js +216 -0
- package/plugins/vite/logger.js +85 -0
- package/plugins/vite/materialx.js +32 -0
- package/plugins/vite/transform.js +1 -0
- package/src/engine/engine_context.ts +4 -3
- package/src/engine/engine_three_utils.ts +3 -0
- package/src/engine/webcomponents/needle-engine.attributes.ts +1 -1
- package/src/engine-components/Camera.ts +1 -1
- package/src/engine-components/CameraUtils.ts +5 -3
- package/src/engine-components/Skybox.ts +5 -5
- package/src/engine-components/postprocessing/Effects/Antialiasing.ts +8 -1
- package/src/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.ts +1 -1
- package/src/engine-components/postprocessing/PostProcessingHandler.ts +14 -2
- package/src/engine-components/postprocessing/Volume.ts +1 -1
|
@@ -87,10 +87,10 @@ class fe {
|
|
|
87
87
|
/** All currently registered Needle Engine contexts. Do not modify */
|
|
88
88
|
r(fe, "Registered", []), r(fe, "_callbacks", {});
|
|
89
89
|
const m1 = () => (o) => o;
|
|
90
|
-
function
|
|
90
|
+
function aL(o) {
|
|
91
91
|
return m1()(o);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function lL() {
|
|
94
94
|
return !!S("debug");
|
|
95
95
|
}
|
|
96
96
|
class on {
|
|
@@ -146,7 +146,7 @@ function S(o) {
|
|
|
146
146
|
return !1;
|
|
147
147
|
}
|
|
148
148
|
br = S("help");
|
|
149
|
-
function
|
|
149
|
+
function cL(o, t) {
|
|
150
150
|
const e = Nu();
|
|
151
151
|
e.has(o) ? e.set(o, t) : e.append(o, t), document.location.search = e.toString();
|
|
152
152
|
}
|
|
@@ -163,12 +163,12 @@ function g1(o, t, e) {
|
|
|
163
163
|
function U0(o, t, e) {
|
|
164
164
|
window.history.replaceState(e, o, "?" + t.toString());
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function hL(o) {
|
|
167
167
|
for (var t = "", e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", i = e.length, n = 0; n < o; n++)
|
|
168
168
|
t += e.charAt(Math.floor(Math.random() * i));
|
|
169
169
|
return t;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function dL(o, t) {
|
|
172
172
|
return Math.floor(Math.random() * (t - o + 1)) + o;
|
|
173
173
|
}
|
|
174
174
|
const f_ = ["smol", "tiny", "giant", "interesting", "smart", "bright", "dull", "extreme", "beautiful", "pretty", "dark", "epic", "salty", "silly", "funny", "lame", "lazy", "loud", "lucky", "mad", "mean", "mighty", "mysterious", "nasty", "odd", "old", "powerful", "quiet", "rapid", "scary", "shiny", "shy", "silly", "smooth", "sour", "spicy", "stupid", "sweet", "tasty", "terrible", "ugly", "unusual", "vast", "wet", "wild", "witty", "wrong", "zany", "zealous", "zippy", "zombie", "zorro"], p_ = ["cat", "dog", "mouse", "pig", "cow", "horse", "sheep", "chicken", "duck", "goat", "panda", "tiger", "lion", "elephant", "monkey", "bird", "fish", "snake", "frog", "turtle", "hamster", "penguin", "kangaroo", "whale", "dolphin", "crocodile", "snail", "ant", "bee", "beetle", "butterfly", "dragon", "eagle", "fish", "giraffe", "lizard", "panda", "penguin", "rabbit", "snake", "spider", "tiger", "zebra"];
|
|
@@ -231,7 +231,7 @@ function Wu(o, t) {
|
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
const zh = S("debugresolveurl"), b1 = "rel:";
|
|
234
|
-
function
|
|
234
|
+
function uL(o, t) {
|
|
235
235
|
return Jr(o, t);
|
|
236
236
|
}
|
|
237
237
|
function Jr(o, t) {
|
|
@@ -445,37 +445,37 @@ var Q;
|
|
|
445
445
|
}
|
|
446
446
|
o.getChromeVersion = F;
|
|
447
447
|
})(Q || (Q = {}));
|
|
448
|
-
function uL() {
|
|
449
|
-
return Q.isDesktop();
|
|
450
|
-
}
|
|
451
448
|
function fL() {
|
|
452
|
-
return Q.
|
|
449
|
+
return Q.isDesktop();
|
|
453
450
|
}
|
|
454
451
|
function pL() {
|
|
455
|
-
return Q.
|
|
452
|
+
return Q.isMobileDevice();
|
|
456
453
|
}
|
|
457
454
|
function mL() {
|
|
458
455
|
return Q.isiPad();
|
|
459
456
|
}
|
|
460
457
|
function gL() {
|
|
461
|
-
return Q.
|
|
458
|
+
return Q.isiPad();
|
|
462
459
|
}
|
|
463
460
|
function yL() {
|
|
464
|
-
return Q.
|
|
461
|
+
return Q.isAndroidDevice();
|
|
465
462
|
}
|
|
466
463
|
function _L() {
|
|
467
|
-
return Q.
|
|
464
|
+
return Q.isMozillaXR();
|
|
468
465
|
}
|
|
469
466
|
function bL() {
|
|
470
|
-
return Q.
|
|
467
|
+
return Q.isMacOS();
|
|
471
468
|
}
|
|
472
469
|
function vL() {
|
|
473
|
-
return Q.
|
|
470
|
+
return Q.isiOS();
|
|
474
471
|
}
|
|
475
472
|
function wL() {
|
|
473
|
+
return Q.isSafari();
|
|
474
|
+
}
|
|
475
|
+
function xL() {
|
|
476
476
|
return Q.isQuest();
|
|
477
477
|
}
|
|
478
|
-
async function
|
|
478
|
+
async function SL() {
|
|
479
479
|
return Q.microphonePermissionsGranted();
|
|
480
480
|
}
|
|
481
481
|
const Eo = /* @__PURE__ */ new WeakMap();
|
|
@@ -635,7 +635,7 @@ const V0 = console.error, H0 = function(...o) {
|
|
|
635
635
|
function M1(o) {
|
|
636
636
|
Vc = !o, o ? console.error = H0 : console.error = V0;
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function CL(o) {
|
|
639
639
|
return M1(o);
|
|
640
640
|
}
|
|
641
641
|
function R1() {
|
|
@@ -696,7 +696,7 @@ function E1(o, t, e) {
|
|
|
696
696
|
};
|
|
697
697
|
wc.set(n, a), setTimeout(a, 1e4);
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function PL() {
|
|
700
700
|
W0 && console.log("Clearing messages");
|
|
701
701
|
for (const o of wc.values())
|
|
702
702
|
o == null || o.call(o);
|
|
@@ -985,12 +985,12 @@ function F1(o) {
|
|
|
985
985
|
function pm(o, t) {
|
|
986
986
|
o[fm] = t;
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function OL(o, t, e) {
|
|
989
989
|
const i = o.length(), n = t.length(), s = $.lerp(i, n, e);
|
|
990
990
|
return o.lerp(t, e).normalize().multiplyScalar(s);
|
|
991
991
|
}
|
|
992
992
|
const tp = new W(), Q0 = new W().setFromAxisAngle(new w(0, 1, 0), Math.PI);
|
|
993
|
-
function
|
|
993
|
+
function kL(o, t) {
|
|
994
994
|
o.lookAt(t), o.quaternion.multiply(Q0);
|
|
995
995
|
}
|
|
996
996
|
function Vu(o, t, e = !0, i = !1) {
|
|
@@ -1007,7 +1007,7 @@ function Vu(o, t, e = !0, i = !1) {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
e && (n.y = s.y), o.lookAt(n), Number.isNaN(o.quaternion.x) && o.quaternion.copy(tp);
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1010
|
+
function ML(o, t, e, i = 1) {
|
|
1011
1011
|
if (e) {
|
|
1012
1012
|
const n = q(0, 0, 0), s = t.x / window.innerWidth * 2 - 1, a = -(t.y / window.innerHeight) * 2 + 1;
|
|
1013
1013
|
n.set(
|
|
@@ -1082,7 +1082,7 @@ function Hc(o, t) {
|
|
|
1082
1082
|
o.parent.getWorldScale(e), o.scale.copy(t), o.scale.divide(e);
|
|
1083
1083
|
}
|
|
1084
1084
|
const H1 = new w(), v_ = new W();
|
|
1085
|
-
function
|
|
1085
|
+
function RL(o) {
|
|
1086
1086
|
return Oe(o, v_), H1.set(0, 0, 1).applyQuaternion(v_);
|
|
1087
1087
|
}
|
|
1088
1088
|
const G1 = new on(() => new w(), 100), w_ = new W();
|
|
@@ -1117,7 +1117,7 @@ function mm(o, t = !0) {
|
|
|
1117
1117
|
console.log(i + e.name + " <" + e.type + ">");
|
|
1118
1118
|
}));
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1120
|
+
function TL(o) {
|
|
1121
1121
|
let t = (o == null ? void 0 : o.name) || "";
|
|
1122
1122
|
if (!o) return t;
|
|
1123
1123
|
let e = o.parent;
|
|
@@ -1236,7 +1236,7 @@ let il = vn;
|
|
|
1236
1236
|
function K1(o) {
|
|
1237
1237
|
return il.copyTexture(o);
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function EL(o, t = !1) {
|
|
1240
1240
|
return il.textureToCanvas(o, t);
|
|
1241
1241
|
}
|
|
1242
1242
|
function Z1(o) {
|
|
@@ -1279,7 +1279,7 @@ function Fi(o, t = void 0, e = void 0, i = void 0) {
|
|
|
1279
1279
|
console.warn(`Object "${c.name}" has NaN values in position or scale.... will ignore it`, u, f);
|
|
1280
1280
|
return;
|
|
1281
1281
|
}
|
|
1282
|
-
n.expandByObject(c, !0), c.children = d;
|
|
1282
|
+
c.geometry === null && (c.geometry = void 0), n.expandByObject(c, !0), c.children = d;
|
|
1283
1283
|
}
|
|
1284
1284
|
for (const d of c.children)
|
|
1285
1285
|
a(d);
|
|
@@ -1618,7 +1618,7 @@ function z() {
|
|
|
1618
1618
|
let o = _i();
|
|
1619
1619
|
return o || (o = window.location.hostname.endsWith(".local-credentialless.webcontainer.io")), np = o, o;
|
|
1620
1620
|
}
|
|
1621
|
-
function
|
|
1621
|
+
function AL(o) {
|
|
1622
1622
|
gm = o;
|
|
1623
1623
|
}
|
|
1624
1624
|
let ti, Oi = null, Gn = null, Wl = !1, C_ = null;
|
|
@@ -1806,9 +1806,9 @@ qo('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUIL
|
|
|
1806
1806
|
qo('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
|
|
1807
1807
|
qo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.7.0-alpha";');
|
|
1808
1808
|
qo('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
1809
|
-
qo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "
|
|
1809
|
+
qo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Fri Jul 25 2025 19:57:11 GMT+0000 (Coordinated Universal Time)";');
|
|
1810
1810
|
qo('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
|
|
1811
|
-
const es = "4.7.0-alpha", Tg = "undefined", av = "
|
|
1811
|
+
const es = "4.7.0-alpha", Tg = "undefined", av = "Fri Jul 25 2025 19:57:11 GMT+0000 (Coordinated Universal Time)";
|
|
1812
1812
|
rv && console.log(`Engine version: ${es} (generator: ${Tg})
|
|
1813
1813
|
Project built at ${av}`);
|
|
1814
1814
|
const cc = NEEDLE_PUBLIC_KEY, zo = "needle_isActiveInHierarchy", Sa = "builtin_components", bd = "needle_editor_guid";
|
|
@@ -1853,7 +1853,7 @@ function Eg(o, t, e, i) {
|
|
|
1853
1853
|
}
|
|
1854
1854
|
}));
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1856
|
+
function IL(o, t, e) {
|
|
1857
1857
|
const i = Ag(o, t);
|
|
1858
1858
|
if (i)
|
|
1859
1859
|
for (let n = i.length - 1; n >= 0; n--) {
|
|
@@ -1909,7 +1909,7 @@ const nl = [];
|
|
|
1909
1909
|
function Ig(o) {
|
|
1910
1910
|
nl.indexOf(o) === -1 && nl.push(o);
|
|
1911
1911
|
}
|
|
1912
|
-
function
|
|
1912
|
+
function LL(o) {
|
|
1913
1913
|
const t = nl.indexOf(o);
|
|
1914
1914
|
t !== -1 && nl.splice(t, 1);
|
|
1915
1915
|
}
|
|
@@ -1917,7 +1917,7 @@ const sl = [];
|
|
|
1917
1917
|
function uv(o) {
|
|
1918
1918
|
sl.indexOf(o) === -1 && sl.push(o);
|
|
1919
1919
|
}
|
|
1920
|
-
function
|
|
1920
|
+
function DL(o) {
|
|
1921
1921
|
const t = sl.indexOf(o);
|
|
1922
1922
|
t !== -1 && sl.splice(t, 1);
|
|
1923
1923
|
}
|
|
@@ -2036,7 +2036,7 @@ class Nh extends KeyboardEvent {
|
|
|
2036
2036
|
super.stopImmediatePropagation(), (e = this.source) == null || e.stopImmediatePropagation();
|
|
2037
2037
|
}
|
|
2038
2038
|
}
|
|
2039
|
-
class
|
|
2039
|
+
class jL {
|
|
2040
2040
|
constructor(t) {
|
|
2041
2041
|
r(this, "key");
|
|
2042
2042
|
r(this, "keyType");
|
|
@@ -3512,10 +3512,10 @@ function MP(o) {
|
|
|
3512
3512
|
return typeof o.guid == "function" ? o.guid() : null;
|
|
3513
3513
|
}
|
|
3514
3514
|
let Dg;
|
|
3515
|
-
function
|
|
3515
|
+
function BL() {
|
|
3516
3516
|
return Dg;
|
|
3517
3517
|
}
|
|
3518
|
-
function
|
|
3518
|
+
function FL(o) {
|
|
3519
3519
|
Dg = o;
|
|
3520
3520
|
}
|
|
3521
3521
|
function RP(o, t) {
|
|
@@ -3614,7 +3614,7 @@ const D_ = "https://urls.needle.tools/default-networking-backend/index";
|
|
|
3614
3614
|
let hi = "wss://networking.needle.tools/socket";
|
|
3615
3615
|
const Ci = !!S("debugnet"), Vh = !!(Ci || S("debugowner")), Hh = S("debugnetbin");
|
|
3616
3616
|
var IP = /* @__PURE__ */ ((o) => (o.ConnectionInfo = "connection-start-info", o))(IP || {}), se = /* @__PURE__ */ ((o) => (o.Join = "join-room", o.Leave = "leave-room", o.JoinedRoom = "joined-room", o.LeftRoom = "left-room", o.UserJoinedRoom = "user-joined-room", o.UserLeftRoom = "user-left-room", o.RoomStateSent = "room-state-sent", o))(se || {});
|
|
3617
|
-
class
|
|
3617
|
+
class zL {
|
|
3618
3618
|
constructor() {
|
|
3619
3619
|
r(this, "room");
|
|
3620
3620
|
// room name
|
|
@@ -3624,13 +3624,13 @@ class FL {
|
|
|
3624
3624
|
}
|
|
3625
3625
|
// connection ids
|
|
3626
3626
|
}
|
|
3627
|
-
class
|
|
3627
|
+
class UL {
|
|
3628
3628
|
constructor() {
|
|
3629
3629
|
r(this, "room");
|
|
3630
3630
|
}
|
|
3631
3631
|
// room name
|
|
3632
3632
|
}
|
|
3633
|
-
class
|
|
3633
|
+
class NL {
|
|
3634
3634
|
constructor() {
|
|
3635
3635
|
r(this, "userId");
|
|
3636
3636
|
}
|
|
@@ -6095,7 +6095,7 @@ var Gd;
|
|
|
6095
6095
|
let h = !1, d = !1, u = null;
|
|
6096
6096
|
const f = Symbol("Needle:MeshBVH-Worker"), m = Symbol("Needle:MeshBVH-CanUseWorker"), g = [], _ = [];
|
|
6097
6097
|
function y() {
|
|
6098
|
-
h = !0, d = !0, Promise.resolve().then(() =>
|
|
6098
|
+
h = !0, d = !0, Promise.resolve().then(() => JI).then((b) => {
|
|
6099
6099
|
u = b.GenerateMeshBVHWorker;
|
|
6100
6100
|
}).catch((b) => {
|
|
6101
6101
|
(ki || z()) && console.warn("Failed to setup mesh bvh worker");
|
|
@@ -6169,7 +6169,7 @@ function vv() {
|
|
|
6169
6169
|
}
|
|
6170
6170
|
let ia = !0;
|
|
6171
6171
|
qu === 0 && (ia = !1);
|
|
6172
|
-
function
|
|
6172
|
+
function $L(o) {
|
|
6173
6173
|
ia = o;
|
|
6174
6174
|
}
|
|
6175
6175
|
function JP() {
|
|
@@ -6180,7 +6180,7 @@ function xv(o, t) {
|
|
|
6180
6180
|
o && (o[wv] = t, Fr && console.warn("Set disposable", t, o));
|
|
6181
6181
|
}
|
|
6182
6182
|
const Sv = Symbol("disposed");
|
|
6183
|
-
function
|
|
6183
|
+
function WL(o) {
|
|
6184
6184
|
return o[Sv] === !0;
|
|
6185
6185
|
}
|
|
6186
6186
|
function Ie(o) {
|
|
@@ -6237,7 +6237,7 @@ function Cv(o, t, e = null, i) {
|
|
|
6237
6237
|
i.has(s) || (e == null ? void 0 : e.call(null, s)) !== !1 && (i.add(s), t && Cv(s, !0, e, i));
|
|
6238
6238
|
return i;
|
|
6239
6239
|
}
|
|
6240
|
-
function
|
|
6240
|
+
function VL(o) {
|
|
6241
6241
|
return o[hc];
|
|
6242
6242
|
}
|
|
6243
6243
|
const Fr = S("debugresourceusers") || S("debugmemory"), qc = Symbol("needle-resource-users"), hc = Symbol("needle-resource-users-count");
|
|
@@ -6597,7 +6597,7 @@ function dO(o) {
|
|
|
6597
6597
|
e && rn(e);
|
|
6598
6598
|
});
|
|
6599
6599
|
}
|
|
6600
|
-
class
|
|
6600
|
+
class HL {
|
|
6601
6601
|
constructor(t, e, i) {
|
|
6602
6602
|
/** File to download */
|
|
6603
6603
|
r(this, "filename");
|
|
@@ -6733,7 +6733,7 @@ class _O {
|
|
|
6733
6733
|
return null;
|
|
6734
6734
|
}
|
|
6735
6735
|
}
|
|
6736
|
-
const bO = Symbol("BuiltInType"), M = new _O(),
|
|
6736
|
+
const bO = Symbol("BuiltInType"), M = new _O(), GL = function(o) {
|
|
6737
6737
|
M.get(o.name) || M.add(o.name, o);
|
|
6738
6738
|
}, zg = S("debugresolvedependencies"), vO = ["/extensions/", "extensions/"], wO = [
|
|
6739
6739
|
{ prefix: "/nodes/", dependencyName: "node" },
|
|
@@ -8454,7 +8454,7 @@ function* Gv(o, t = null) {
|
|
|
8454
8454
|
for (; e.time - i < o; )
|
|
8455
8455
|
yield;
|
|
8456
8456
|
}
|
|
8457
|
-
function*
|
|
8457
|
+
function* qL(o) {
|
|
8458
8458
|
for (let t = 0; t < o; t++)
|
|
8459
8459
|
yield;
|
|
8460
8460
|
}
|
|
@@ -10515,8 +10515,8 @@ const Zy = class Zy extends HTMLElement {
|
|
|
10515
10515
|
lh = new WeakMap();
|
|
10516
10516
|
let su = Zy;
|
|
10517
10517
|
customElements.get(vr) || customElements.define(vr, su);
|
|
10518
|
-
const nt = S("debugcontext"), Sk = S("stats"), Ck = S("debugactive"), Pk = S("debugframerate"), Ok = S("debugcoroutine"),
|
|
10519
|
-
class
|
|
10518
|
+
const nt = S("debugcontext"), Sk = S("stats"), Ck = S("debugactive"), Pk = S("debugframerate"), Ok = S("debugcoroutine"), QL = {};
|
|
10519
|
+
class YL {
|
|
10520
10520
|
constructor() {
|
|
10521
10521
|
r(this, "name");
|
|
10522
10522
|
/** for debugging only */
|
|
@@ -11447,8 +11447,8 @@ Target Framerate: ` + this.targetFrameRate)), this._dispatchReadyAfterFrame && (
|
|
|
11447
11447
|
return !1;
|
|
11448
11448
|
if (this.handleRendererContextLost(), this._isRendering = !0, this.renderRequiredTextures(), this.renderer.toneMapping !== Dd && qv(), this.composer && !this.isInXR) {
|
|
11449
11449
|
t && "setMainCamera" in this.composer && ((e = this.composer.passes[0]) == null ? void 0 : e.mainCamera) != t && this.composer.setMainCamera(t);
|
|
11450
|
-
const i = this.renderer.getClearColor(this._tempClearColor);
|
|
11451
|
-
this._tempClearColor2.copy(i), this.renderer.setClearColor(i.convertSRGBToLinear()), this.composer.render(this.time.deltaTime), this.renderer.setClearColor(this._tempClearColor2);
|
|
11450
|
+
const i = this.renderer.getClearColor(this._tempClearColor), n = this.renderer.getClearAlpha();
|
|
11451
|
+
this._tempClearColor2.copy(i), this.renderer.setClearColor(i.convertSRGBToLinear(), this.renderer.getClearAlpha()), this.composer.render(this.time.deltaTime), this.renderer.setClearColor(this._tempClearColor2, n);
|
|
11452
11452
|
} else t && (this.isInXR && Q.isMacOS() && this.renderer.clearDepth(), this.renderer.render(this.scene, t));
|
|
11453
11453
|
return this._isRendering = !1, !0;
|
|
11454
11454
|
}
|
|
@@ -11835,7 +11835,7 @@ function mb(o) {
|
|
|
11835
11835
|
const No = S("debughotreload");
|
|
11836
11836
|
let Yc = !1;
|
|
11837
11837
|
const kc = /* @__PURE__ */ new Map();
|
|
11838
|
-
function
|
|
11838
|
+
function KL() {
|
|
11839
11839
|
return Yc;
|
|
11840
11840
|
}
|
|
11841
11841
|
function gb() {
|
|
@@ -11878,7 +11878,7 @@ function jk() {
|
|
|
11878
11878
|
o.apply(console, t);
|
|
11879
11879
|
};
|
|
11880
11880
|
}
|
|
11881
|
-
function
|
|
11881
|
+
function ZL(o) {
|
|
11882
11882
|
No && console.log("[HMR] Apply changes", o, Object.keys(o)), jk();
|
|
11883
11883
|
for (const t of Object.keys(o))
|
|
11884
11884
|
try {
|
|
@@ -12633,11 +12633,11 @@ const So = class So {
|
|
|
12633
12633
|
}
|
|
12634
12634
|
};
|
|
12635
12635
|
r(So, "_forward", new w()), r(So, "_right", new w()), r(So, "_up", new w());
|
|
12636
|
-
let
|
|
12637
|
-
const
|
|
12636
|
+
let j = So;
|
|
12637
|
+
const JL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12638
12638
|
__proto__: null,
|
|
12639
|
-
Behaviour:
|
|
12640
|
-
Component:
|
|
12639
|
+
Behaviour: j,
|
|
12640
|
+
Component: j,
|
|
12641
12641
|
GameObject: C
|
|
12642
12642
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12643
12643
|
var Bk = Object.defineProperty, ew = (o, t, e, i) => {
|
|
@@ -12645,7 +12645,7 @@ var Bk = Object.defineProperty, ew = (o, t, e, i) => {
|
|
|
12645
12645
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
12646
12646
|
return n && Bk(t, e, n), n;
|
|
12647
12647
|
};
|
|
12648
|
-
class tf extends
|
|
12648
|
+
class tf extends j {
|
|
12649
12649
|
constructor() {
|
|
12650
12650
|
super(...arguments);
|
|
12651
12651
|
r(this, "from");
|
|
@@ -12681,7 +12681,7 @@ let tw = class {
|
|
|
12681
12681
|
r(this, "y");
|
|
12682
12682
|
}
|
|
12683
12683
|
};
|
|
12684
|
-
class si extends
|
|
12684
|
+
class si extends j {
|
|
12685
12685
|
constructor() {
|
|
12686
12686
|
super(...arguments);
|
|
12687
12687
|
r(this, "playAutomatically", !0);
|
|
@@ -13000,7 +13000,7 @@ function Nk(o) {
|
|
|
13000
13000
|
const t = o[kd];
|
|
13001
13001
|
return t !== void 0 && t.size > 0;
|
|
13002
13002
|
}
|
|
13003
|
-
class
|
|
13003
|
+
class t2 {
|
|
13004
13004
|
constructor() {
|
|
13005
13005
|
r(this, "_context");
|
|
13006
13006
|
}
|
|
@@ -13759,7 +13759,7 @@ var Hk = Object.defineProperty, Gk = Object.getOwnPropertyDescriptor, nf = (o, t
|
|
|
13759
13759
|
return i && n && Hk(t, e, n), n;
|
|
13760
13760
|
};
|
|
13761
13761
|
const Xi = S("debuganimator");
|
|
13762
|
-
class $t extends
|
|
13762
|
+
class $t extends j {
|
|
13763
13763
|
constructor() {
|
|
13764
13764
|
super(...arguments);
|
|
13765
13765
|
r(this, "applyRootMotion", !1);
|
|
@@ -14081,7 +14081,7 @@ var qk = Object.defineProperty, Xk = Object.getOwnPropertyDescriptor, ph = (o, t
|
|
|
14081
14081
|
return i && n && qk(t, e, n), n;
|
|
14082
14082
|
};
|
|
14083
14083
|
const ed = S("debuggroundprojection");
|
|
14084
|
-
class to extends
|
|
14084
|
+
class to extends j {
|
|
14085
14085
|
constructor() {
|
|
14086
14086
|
super(...arguments);
|
|
14087
14087
|
r(this, "applyOnAwake", !1);
|
|
@@ -14304,7 +14304,7 @@ var Kk = Object.defineProperty, Qg = (o, t, e, i) => {
|
|
|
14304
14304
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
14305
14305
|
return n && Kk(t, e, n), n;
|
|
14306
14306
|
};
|
|
14307
|
-
class _l extends
|
|
14307
|
+
class _l extends j {
|
|
14308
14308
|
constructor() {
|
|
14309
14309
|
super(...arguments);
|
|
14310
14310
|
r(this, "constraintActive", !0);
|
|
@@ -14324,10 +14324,10 @@ Qg([
|
|
|
14324
14324
|
function Zk(o, t) {
|
|
14325
14325
|
return eo(o, me.ContextCreated, t), () => Xo(o, me.ContextCreated);
|
|
14326
14326
|
}
|
|
14327
|
-
function
|
|
14327
|
+
function i2(o, t) {
|
|
14328
14328
|
return eo(o, me.ContextClearing, t), () => Xo(o, me.ContextClearing);
|
|
14329
14329
|
}
|
|
14330
|
-
function
|
|
14330
|
+
function n2(o, t) {
|
|
14331
14331
|
return eo(o, me.ContextDestroying, t), () => Xo(o, me.ContextDestroying);
|
|
14332
14332
|
}
|
|
14333
14333
|
function Jk(o, t) {
|
|
@@ -14336,10 +14336,10 @@ function Jk(o, t) {
|
|
|
14336
14336
|
function eM(o, t) {
|
|
14337
14337
|
return eo(o, Re.Update, t), () => Xo(o, Re.Update);
|
|
14338
14338
|
}
|
|
14339
|
-
function
|
|
14339
|
+
function s2(o, t) {
|
|
14340
14340
|
return eo(o, Re.OnBeforeRender, t), () => Xo(o, Re.OnBeforeRender);
|
|
14341
14341
|
}
|
|
14342
|
-
function
|
|
14342
|
+
function o2(o, t) {
|
|
14343
14343
|
return eo(o, Re.OnAfterRender, t), () => Xo(o, Re.OnAfterRender);
|
|
14344
14344
|
}
|
|
14345
14345
|
let Nr = class {
|
|
@@ -14451,7 +14451,7 @@ class Es {
|
|
|
14451
14451
|
t.finish(e, void 0, !0);
|
|
14452
14452
|
}
|
|
14453
14453
|
}
|
|
14454
|
-
var
|
|
14454
|
+
var D;
|
|
14455
14455
|
((o) => {
|
|
14456
14456
|
((t) => {
|
|
14457
14457
|
t.MAYBEMODULE = null;
|
|
@@ -14499,7 +14499,7 @@ var j;
|
|
|
14499
14499
|
}
|
|
14500
14500
|
t.load = n;
|
|
14501
14501
|
})(o.POSTPROCESSING_AO || (o.POSTPROCESSING_AO = {}));
|
|
14502
|
-
})(
|
|
14502
|
+
})(D || (D = {}));
|
|
14503
14503
|
var Tt = /* @__PURE__ */ ((o) => (o[o.Average = 0] = "Average", o[o.Multiply = 1] = "Multiply", o[o.Minimum = 2] = "Minimum", o[o.Maximum = 3] = "Maximum", o))(Tt || {}), Yg = /* @__PURE__ */ ((o) => (o[o.Discrete = 0] = "Discrete", o[o.Continuous = 1] = "Continuous", o))(Yg || {}), it = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.FreezePositionX = 2] = "FreezePositionX", o[o.FreezePositionY = 4] = "FreezePositionY", o[o.FreezePositionZ = 8] = "FreezePositionZ", o[o.FreezePosition = 14] = "FreezePosition", o[o.FreezeRotationX = 16] = "FreezeRotationX", o[o.FreezeRotationY = 32] = "FreezeRotationY", o[o.FreezeRotationZ = 64] = "FreezeRotationZ", o[o.FreezeRotation = 112] = "FreezeRotation", o[o.FreezeAll = 126] = "FreezeAll", o))(it || {}), fc = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.X = 2] = "X", o[o.Y = 4] = "Y", o[o.Z = 8] = "Z", o[o.All = -1] = "All", o))(fc || {});
|
|
14504
14504
|
const Wt = function(o, t) {
|
|
14505
14505
|
return function(e, i, n) {
|
|
@@ -14550,7 +14550,7 @@ function tM(o, t, e, i, n) {
|
|
|
14550
14550
|
};
|
|
14551
14551
|
}
|
|
14552
14552
|
}
|
|
14553
|
-
const
|
|
14553
|
+
const a2 = function(o) {
|
|
14554
14554
|
return function(t, e, i) {
|
|
14555
14555
|
let n = "";
|
|
14556
14556
|
typeof e == "string" ? n = e : n = e.name;
|
|
@@ -14651,7 +14651,7 @@ class sM {
|
|
|
14651
14651
|
}
|
|
14652
14652
|
}
|
|
14653
14653
|
var Bs;
|
|
14654
|
-
const bi = (Bs = class extends
|
|
14654
|
+
const bi = (Bs = class extends j {
|
|
14655
14655
|
constructor() {
|
|
14656
14656
|
super(...arguments);
|
|
14657
14657
|
r(this, "autoMass", !0);
|
|
@@ -14747,7 +14747,7 @@ const bi = (Bs = class extends D {
|
|
|
14747
14747
|
this._watch = void 0, this._propertiesChanged = !1;
|
|
14748
14748
|
}
|
|
14749
14749
|
onEnable() {
|
|
14750
|
-
this._watch || (this._watch = new sM(this.gameObject, this.context)), this._watch.start(!0, !0), this.startCoroutine(this.beforePhysics(), Re.LateUpdate), z() && (globalThis.NEEDLE_USE_RAPIER ?
|
|
14750
|
+
this._watch || (this._watch = new sM(this.gameObject, this.context)), this._watch.start(!0, !0), this.startCoroutine(this.beforePhysics(), Re.LateUpdate), z() && (globalThis.NEEDLE_USE_RAPIER ? D.RAPIER_PHYSICS.ready().then(async () => {
|
|
14751
14751
|
var e;
|
|
14752
14752
|
await Wu(3), (e = this.context.physics.engine) != null && e.getBody(this) || console.warn(`Rigidbody could not be created. Ensure "${this.name}" has a Collider component.`);
|
|
14753
14753
|
}) : console.warn("Rigidbody could not be created: Rapier physics are explicitly disabled."));
|
|
@@ -14951,7 +14951,7 @@ eM((o) => {
|
|
|
14951
14951
|
const e = ((i = o.connection.currentServerUrl) == null ? void 0 : i.includes("glitch")) ? 10 : 40;
|
|
14952
14952
|
Mc = Math.floor(zm / e), zm = 0, yo && Mc > 0 && console.log("Sync Transform Fast Interval", Mc);
|
|
14953
14953
|
});
|
|
14954
|
-
class Ys extends
|
|
14954
|
+
class Ys extends j {
|
|
14955
14955
|
constructor() {
|
|
14956
14956
|
super(...arguments);
|
|
14957
14957
|
// public autoOwnership: boolean = true;
|
|
@@ -15378,7 +15378,7 @@ class rM extends dn {
|
|
|
15378
15378
|
return t.a !== void 0 ? { r: t.r, g: t.g, b: t.b, a: t.a } : { r: t.r, g: t.g, b: t.b };
|
|
15379
15379
|
}
|
|
15380
15380
|
}
|
|
15381
|
-
const
|
|
15381
|
+
const l2 = new rM();
|
|
15382
15382
|
class aM extends dn {
|
|
15383
15383
|
constructor() {
|
|
15384
15384
|
super([Ft], "EulerSerializer");
|
|
@@ -15395,7 +15395,7 @@ class aM extends dn {
|
|
|
15395
15395
|
return { x: t.x, y: t.y, z: t.z, order: t.order };
|
|
15396
15396
|
}
|
|
15397
15397
|
}
|
|
15398
|
-
const
|
|
15398
|
+
const c2 = new aM();
|
|
15399
15399
|
class lM extends dn {
|
|
15400
15400
|
constructor() {
|
|
15401
15401
|
super(L, "ObjectSerializer");
|
|
@@ -15445,7 +15445,7 @@ ${e.path}! : AssetReference;
|
|
|
15445
15445
|
const cM = new lM();
|
|
15446
15446
|
class hM extends dn {
|
|
15447
15447
|
constructor() {
|
|
15448
|
-
super([
|
|
15448
|
+
super([j, j], "ComponentSerializer");
|
|
15449
15449
|
}
|
|
15450
15450
|
onSerialize(t, e) {
|
|
15451
15451
|
if (t != null && t.guid)
|
|
@@ -15576,7 +15576,7 @@ Could not find method ${h.method} on object ${u.name}`, u, typeof u[h.method]);
|
|
|
15576
15576
|
// };
|
|
15577
15577
|
// }
|
|
15578
15578
|
}
|
|
15579
|
-
const
|
|
15579
|
+
const h2 = new dM(), ou = /* @__PURE__ */ new WeakMap(), uM = Fe.prototype.clone;
|
|
15580
15580
|
Fe.prototype.clone = function() {
|
|
15581
15581
|
const o = uM.call(this);
|
|
15582
15582
|
return ou.has(o) || ou.set(o, this), o;
|
|
@@ -15617,7 +15617,7 @@ var mM = Object.defineProperty, gM = (o, t, e, i) => {
|
|
|
15617
15617
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
15618
15618
|
return n && mM(t, e, n), n;
|
|
15619
15619
|
};
|
|
15620
|
-
class ul extends
|
|
15620
|
+
class ul extends j {
|
|
15621
15621
|
awake() {
|
|
15622
15622
|
yi.createIfNoneExists(this.context);
|
|
15623
15623
|
}
|
|
@@ -15748,7 +15748,7 @@ var Nm = /* @__PURE__ */ ((o) => (o.BeforeHandleInput = "BeforeHandleInput", o.A
|
|
|
15748
15748
|
Zk((o) => {
|
|
15749
15749
|
yi.createIfNoneExists(o);
|
|
15750
15750
|
});
|
|
15751
|
-
class yi extends
|
|
15751
|
+
class yi extends j {
|
|
15752
15752
|
constructor() {
|
|
15753
15753
|
super(...arguments);
|
|
15754
15754
|
r(this, "raycaster", []);
|
|
@@ -16155,7 +16155,7 @@ class au extends CustomEvent {
|
|
|
16155
16155
|
});
|
|
16156
16156
|
}
|
|
16157
16157
|
}
|
|
16158
|
-
class xe extends
|
|
16158
|
+
class xe extends j {
|
|
16159
16159
|
constructor() {
|
|
16160
16160
|
super(...arguments);
|
|
16161
16161
|
r(this, "autoTarget", !0);
|
|
@@ -16663,7 +16663,7 @@ var wM = Object.defineProperty, xM = Object.getOwnPropertyDescriptor, ri = (o, t
|
|
|
16663
16663
|
}, $r = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.Skybox = 1] = "Skybox", o[o.SolidColor = 2] = "SolidColor", o[o.Uninitialized = 4] = "Uninitialized", o))($r || {});
|
|
16664
16664
|
const bo = S("debugcam"), xb = S("debugscreenpointtoray");
|
|
16665
16665
|
var Sn;
|
|
16666
|
-
const Vt = (Sn = class extends
|
|
16666
|
+
const Vt = (Sn = class extends j {
|
|
16667
16667
|
constructor() {
|
|
16668
16668
|
super(...arguments);
|
|
16669
16669
|
r(this, "_nearClipPlane", 0.1);
|
|
@@ -16943,7 +16943,7 @@ const Vt = (Sn = class extends D {
|
|
|
16943
16943
|
const s = `[Camera] Apply ClearFlags: ${$r[this._clearFlags]} - "${this.name}"`;
|
|
16944
16944
|
console.debug(s);
|
|
16945
16945
|
}
|
|
16946
|
-
const i = this.context.domElement.getAttribute("background-image") || this.context.domElement.getAttribute("background-color")
|
|
16946
|
+
const i = this.context.domElement.getAttribute("background-image") || this.context.domElement.getAttribute("background-color");
|
|
16947
16947
|
switch (this._clearFlags) {
|
|
16948
16948
|
case 0:
|
|
16949
16949
|
return;
|
|
@@ -17062,7 +17062,7 @@ class SM {
|
|
|
17062
17062
|
function CM(o) {
|
|
17063
17063
|
S("freecam") && o.context.mainCameraComponent === o && C.getOrAddComponent(o.gameObject, xe);
|
|
17064
17064
|
}
|
|
17065
|
-
class Io extends
|
|
17065
|
+
class Io extends j {
|
|
17066
17066
|
constructor() {
|
|
17067
17067
|
super(...arguments);
|
|
17068
17068
|
r(this, "_listener", null);
|
|
@@ -17110,7 +17110,7 @@ var PM = Object.defineProperty, OM = Object.getOwnPropertyDescriptor, An = (o, t
|
|
|
17110
17110
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
17111
17111
|
return i && n && PM(t, e, n), n;
|
|
17112
17112
|
};
|
|
17113
|
-
const Mt = S("debugaudio"), un = class vo extends
|
|
17113
|
+
const Mt = S("debugaudio"), un = class vo extends j {
|
|
17114
17114
|
constructor() {
|
|
17115
17115
|
super(...arguments);
|
|
17116
17116
|
r(this, "clip", "");
|
|
@@ -17451,7 +17451,7 @@ An([
|
|
|
17451
17451
|
p()
|
|
17452
17452
|
], un.prototype, "rollOffMode", 2);
|
|
17453
17453
|
let Rn = un;
|
|
17454
|
-
const kM = S("debugavatar"), pi = class pi extends
|
|
17454
|
+
const kM = S("debugavatar"), pi = class pi extends j {
|
|
17455
17455
|
constructor() {
|
|
17456
17456
|
super(...arguments);
|
|
17457
17457
|
r(this, "connectionId");
|
|
@@ -17508,7 +17508,7 @@ class MM {
|
|
|
17508
17508
|
r(this, "position", new w());
|
|
17509
17509
|
}
|
|
17510
17510
|
}
|
|
17511
|
-
class lu extends
|
|
17511
|
+
class lu extends j {
|
|
17512
17512
|
constructor() {
|
|
17513
17513
|
super(...arguments);
|
|
17514
17514
|
// that target to copy positions into
|
|
@@ -17568,7 +17568,7 @@ var ey = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.DontExport = 1] =
|
|
|
17568
17568
|
function TM(o) {
|
|
17569
17569
|
return o && o.isComponent;
|
|
17570
17570
|
}
|
|
17571
|
-
const
|
|
17571
|
+
const d2 = Symbol("object"), Sp = new on(() => new w(), 20);
|
|
17572
17572
|
class EM {
|
|
17573
17573
|
/** @internal */
|
|
17574
17574
|
constructor(t, e, i, n, s, a) {
|
|
@@ -18019,7 +18019,7 @@ var FM = Object.defineProperty, ty = (o, t, e, i) => {
|
|
|
18019
18019
|
return n && FM(t, e, n), n;
|
|
18020
18020
|
};
|
|
18021
18021
|
const zM = "noVoip", UM = S("debugvoip");
|
|
18022
|
-
class sa extends
|
|
18022
|
+
class sa extends j {
|
|
18023
18023
|
constructor() {
|
|
18024
18024
|
super(...arguments);
|
|
18025
18025
|
r(this, "autoConnect", !0);
|
|
@@ -18197,7 +18197,7 @@ var NM = Object.defineProperty, aw = (o, t, e, i) => {
|
|
|
18197
18197
|
return n && NM(t, e, n), n;
|
|
18198
18198
|
};
|
|
18199
18199
|
const $M = S("debugmouth");
|
|
18200
|
-
class rf extends
|
|
18200
|
+
class rf extends j {
|
|
18201
18201
|
constructor() {
|
|
18202
18202
|
super(...arguments);
|
|
18203
18203
|
r(this, "idle", []);
|
|
@@ -18263,7 +18263,7 @@ aw([
|
|
|
18263
18263
|
aw([
|
|
18264
18264
|
p(L)
|
|
18265
18265
|
], rf.prototype, "talking");
|
|
18266
|
-
class lw extends
|
|
18266
|
+
class lw extends j {
|
|
18267
18267
|
constructor() {
|
|
18268
18268
|
super(...arguments);
|
|
18269
18269
|
r(this, "voip", null);
|
|
@@ -18319,7 +18319,7 @@ const Mu = class Mu {
|
|
|
18319
18319
|
r(Mu, "Global", new Mu());
|
|
18320
18320
|
let gi = Mu;
|
|
18321
18321
|
var jt;
|
|
18322
|
-
const hw = (jt = class extends
|
|
18322
|
+
const hw = (jt = class extends j {
|
|
18323
18323
|
constructor() {
|
|
18324
18324
|
super(...arguments);
|
|
18325
18325
|
r(this, "visibleIn");
|
|
@@ -18363,7 +18363,7 @@ var HM = Object.defineProperty, af = (o, t, e, i) => {
|
|
|
18363
18363
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
18364
18364
|
return n && HM(t, e, n), n;
|
|
18365
18365
|
};
|
|
18366
|
-
class bl extends
|
|
18366
|
+
class bl extends j {
|
|
18367
18367
|
constructor() {
|
|
18368
18368
|
super(...arguments);
|
|
18369
18369
|
r(this, "eyes", []);
|
|
@@ -18402,7 +18402,7 @@ var GM = Object.defineProperty, iy = (o, t, e, i) => {
|
|
|
18402
18402
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
18403
18403
|
return n && GM(t, e, n), n;
|
|
18404
18404
|
}, Tr;
|
|
18405
|
-
const lf = (Tr = class extends
|
|
18405
|
+
const lf = (Tr = class extends j {
|
|
18406
18406
|
constructor() {
|
|
18407
18407
|
super(...arguments);
|
|
18408
18408
|
r(this, "head", null);
|
|
@@ -18447,7 +18447,7 @@ var qM = Object.defineProperty, ny = (o, t, e, i) => {
|
|
|
18447
18447
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
18448
18448
|
return n && qM(t, e, n), n;
|
|
18449
18449
|
};
|
|
18450
|
-
class mh extends
|
|
18450
|
+
class mh extends j {
|
|
18451
18451
|
constructor() {
|
|
18452
18452
|
super(...arguments);
|
|
18453
18453
|
r(this, "length", 1);
|
|
@@ -18481,7 +18481,7 @@ ny([
|
|
|
18481
18481
|
ny([
|
|
18482
18482
|
p()
|
|
18483
18483
|
], mh.prototype, "isGizmo");
|
|
18484
|
-
class uw extends
|
|
18484
|
+
class uw extends j {
|
|
18485
18485
|
constructor() {
|
|
18486
18486
|
super(...arguments);
|
|
18487
18487
|
r(this, "from");
|
|
@@ -18507,7 +18507,7 @@ class uw extends D {
|
|
|
18507
18507
|
m.sub(c), this.gameObject.lookAt(m);
|
|
18508
18508
|
}
|
|
18509
18509
|
}
|
|
18510
|
-
const XM = S("gizmos"), QM = S("debugboxhelper"), Yt = class Yt extends
|
|
18510
|
+
const XM = S("gizmos"), QM = S("debugboxhelper"), Yt = class Yt extends j {
|
|
18511
18511
|
constructor() {
|
|
18512
18512
|
super(...arguments);
|
|
18513
18513
|
/** The bounding box for this component */
|
|
@@ -18580,7 +18580,7 @@ var YM = Object.defineProperty, vi = (o, t, e, i) => {
|
|
|
18580
18580
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
18581
18581
|
return n && YM(t, e, n), n;
|
|
18582
18582
|
};
|
|
18583
|
-
class Ui extends
|
|
18583
|
+
class Ui extends j {
|
|
18584
18584
|
constructor() {
|
|
18585
18585
|
super(...arguments);
|
|
18586
18586
|
r(this, "attachedRigidbody", null);
|
|
@@ -18821,7 +18821,7 @@ var KM = Object.defineProperty, io = (o, t, e, i) => {
|
|
|
18821
18821
|
return n && KM(t, e, n), n;
|
|
18822
18822
|
};
|
|
18823
18823
|
const Cb = S("debugcharactercontroller");
|
|
18824
|
-
class vl extends
|
|
18824
|
+
class vl extends j {
|
|
18825
18825
|
constructor() {
|
|
18826
18826
|
super(...arguments);
|
|
18827
18827
|
r(this, "center", new w(0, 0, 0));
|
|
@@ -18877,7 +18877,7 @@ io([
|
|
|
18877
18877
|
io([
|
|
18878
18878
|
p()
|
|
18879
18879
|
], vl.prototype, "height");
|
|
18880
|
-
class Qo extends
|
|
18880
|
+
class Qo extends j {
|
|
18881
18881
|
constructor() {
|
|
18882
18882
|
super(...arguments);
|
|
18883
18883
|
r(this, "controller");
|
|
@@ -18975,7 +18975,7 @@ Jk((o) => {
|
|
|
18975
18975
|
}
|
|
18976
18976
|
});
|
|
18977
18977
|
var Yn;
|
|
18978
|
-
const ra = (Yn = class extends
|
|
18978
|
+
const ra = (Yn = class extends j {
|
|
18979
18979
|
constructor() {
|
|
18980
18980
|
super(...arguments);
|
|
18981
18981
|
r(this, "autoFit", !1);
|
|
@@ -19166,7 +19166,7 @@ wl([
|
|
|
19166
19166
|
], ra.prototype, "backfaceShadows");
|
|
19167
19167
|
let cf = ra;
|
|
19168
19168
|
const Pb = [], Cp = new Array(), JM = S("logstats");
|
|
19169
|
-
class pw extends
|
|
19169
|
+
class pw extends j {
|
|
19170
19170
|
onEnable() {
|
|
19171
19171
|
console.log(this), JM && this.startCoroutine(this.run(), Re.OnAfterRender);
|
|
19172
19172
|
}
|
|
@@ -19177,14 +19177,14 @@ class pw extends D {
|
|
|
19177
19177
|
}
|
|
19178
19178
|
}
|
|
19179
19179
|
}
|
|
19180
|
-
class hf extends
|
|
19180
|
+
class hf extends j {
|
|
19181
19181
|
constructor() {
|
|
19182
19182
|
super(...arguments);
|
|
19183
19183
|
r(this, "isUsed", !0);
|
|
19184
19184
|
r(this, "usedBy", null);
|
|
19185
19185
|
}
|
|
19186
19186
|
}
|
|
19187
|
-
class mw extends
|
|
19187
|
+
class mw extends j {
|
|
19188
19188
|
}
|
|
19189
19189
|
const Ob = S("debugdeletable"), Fa = class Fa extends Ks {
|
|
19190
19190
|
onEnable() {
|
|
@@ -19197,7 +19197,7 @@ const Ob = S("debugdeletable"), Fa = class Fa extends Ks {
|
|
|
19197
19197
|
};
|
|
19198
19198
|
r(Fa, "_instances", []);
|
|
19199
19199
|
let Zc = Fa;
|
|
19200
|
-
class gw extends
|
|
19200
|
+
class gw extends j {
|
|
19201
19201
|
update() {
|
|
19202
19202
|
for (const t of Zc._instances) {
|
|
19203
19203
|
const e = this.gameObject;
|
|
@@ -19226,7 +19226,7 @@ var eR = Object.defineProperty, tR = (o, t, e, i) => {
|
|
|
19226
19226
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
19227
19227
|
return n && eR(t, e, n), n;
|
|
19228
19228
|
};
|
|
19229
|
-
class ry extends
|
|
19229
|
+
class ry extends j {
|
|
19230
19230
|
constructor() {
|
|
19231
19231
|
super(...arguments);
|
|
19232
19232
|
r(this, "visibleOn");
|
|
@@ -19251,7 +19251,7 @@ var iR = Object.defineProperty, aa = (o, t, e, i) => {
|
|
|
19251
19251
|
};
|
|
19252
19252
|
const qn = S("debugdrag"), Pp = [];
|
|
19253
19253
|
var yw = /* @__PURE__ */ ((o) => (o[o.XZPlane = 0] = "XZPlane", o[o.Attached = 1] = "Attached", o[o.HitNormal = 2] = "HitNormal", o[o.DynamicViewAngle = 3] = "DynamicViewAngle", o[o.SnapToSurfaces = 4] = "SnapToSurfaces", o[o.None = 5] = "None", o))(yw || {}), ut;
|
|
19254
|
-
const Yo = (ut = class extends
|
|
19254
|
+
const Yo = (ut = class extends j {
|
|
19255
19255
|
constructor() {
|
|
19256
19256
|
super(...arguments);
|
|
19257
19257
|
r(this, "dragMode", 3);
|
|
@@ -19904,7 +19904,7 @@ const Ru = class Ru {
|
|
|
19904
19904
|
r(Ru, "geometry", new Jn().setFromPoints([new w(0, 0, 0), new w(0, -1, 0)]));
|
|
19905
19905
|
let kb = Ru;
|
|
19906
19906
|
var sR = /* @__PURE__ */ ((o) => (o.File_Spawned = "file-spawned", o))(sR || {});
|
|
19907
|
-
class
|
|
19907
|
+
class u2 {
|
|
19908
19908
|
constructor(t, e, i, n, s, a, l, c, h) {
|
|
19909
19909
|
r(this, "guid");
|
|
19910
19910
|
r(this, "file_name");
|
|
@@ -20137,7 +20137,7 @@ class cR extends CustomEvent {
|
|
|
20137
20137
|
}
|
|
20138
20138
|
}
|
|
20139
20139
|
const hR = "blob";
|
|
20140
|
-
class Ko extends
|
|
20140
|
+
class Ko extends j {
|
|
20141
20141
|
constructor() {
|
|
20142
20142
|
super(...arguments);
|
|
20143
20143
|
r(this, "useNetworking", !0);
|
|
@@ -20473,7 +20473,7 @@ var uR = Object.defineProperty, ay = (o, t, e, i) => {
|
|
|
20473
20473
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
20474
20474
|
return n && uR(t, e, n), n;
|
|
20475
20475
|
};
|
|
20476
|
-
const df = class _w extends
|
|
20476
|
+
const df = class _w extends j {
|
|
20477
20477
|
constructor() {
|
|
20478
20478
|
super(...arguments);
|
|
20479
20479
|
r(this, "parent", null);
|
|
@@ -20573,7 +20573,7 @@ ly([
|
|
|
20573
20573
|
ly([
|
|
20574
20574
|
p(Se)
|
|
20575
20575
|
], cy.prototype, "callback");
|
|
20576
|
-
class hy extends
|
|
20576
|
+
class hy extends j {
|
|
20577
20577
|
constructor() {
|
|
20578
20578
|
super(...arguments);
|
|
20579
20579
|
r(this, "triggers", []);
|
|
@@ -20900,7 +20900,7 @@ fe.registerCallback(me.ContextCreated, (o) => {
|
|
|
20900
20900
|
const t = o.context, e = C.findObjectOfType(Wm, t);
|
|
20901
20901
|
e != null && e.sourceId && (e.enabled = !0);
|
|
20902
20902
|
});
|
|
20903
|
-
class Wm extends
|
|
20903
|
+
class Wm extends j {
|
|
20904
20904
|
constructor() {
|
|
20905
20905
|
super(...arguments);
|
|
20906
20906
|
r(this, "ambientMode", Pc.Skybox);
|
|
@@ -21370,10 +21370,10 @@ let du;
|
|
|
21370
21370
|
const MR = import("./three-examples-B50TT3Iu.js").then((o) => o.GLTFLoaderAnimationPointer).then(async (o) => (du = o.GLTFAnimationPointerExtension, du)).catch((o) => {
|
|
21371
21371
|
console.warn("Failed to import GLTFLoaderAnimationPointer. Please use @needle-tools/three for full KHR_animation support", o);
|
|
21372
21372
|
}), Gr = new Array();
|
|
21373
|
-
function
|
|
21373
|
+
function f2(o) {
|
|
21374
21374
|
Gr.includes(o) || Gr.push(o);
|
|
21375
21375
|
}
|
|
21376
|
-
function
|
|
21376
|
+
function p2(o) {
|
|
21377
21377
|
const t = Gr.indexOf(o);
|
|
21378
21378
|
t >= 0 && Gr.splice(t, 1);
|
|
21379
21379
|
}
|
|
@@ -21442,7 +21442,7 @@ var ER = Object.defineProperty, Mw = (o, t, e, i) => {
|
|
|
21442
21442
|
};
|
|
21443
21443
|
const Xl = S("debugreflectionprobe"), Eb = S("noreflectionprobe"), Tp = Symbol("reflectionProbeKey"), Ab = Symbol("original material");
|
|
21444
21444
|
var ei;
|
|
21445
|
-
const dy = (ei = class extends
|
|
21445
|
+
const dy = (ei = class extends j {
|
|
21446
21446
|
constructor() {
|
|
21447
21447
|
var e;
|
|
21448
21448
|
super();
|
|
@@ -22129,7 +22129,7 @@ class DR {
|
|
|
22129
22129
|
return i ? i.material : null;
|
|
22130
22130
|
}
|
|
22131
22131
|
}
|
|
22132
|
-
const hs = class Rd extends
|
|
22132
|
+
const hs = class Rd extends j {
|
|
22133
22133
|
constructor() {
|
|
22134
22134
|
super(...arguments);
|
|
22135
22135
|
r(this, "receiveShadows", !1);
|
|
@@ -22532,7 +22532,7 @@ class Aw extends Ks {
|
|
|
22532
22532
|
r(this, "sceneRoot");
|
|
22533
22533
|
}
|
|
22534
22534
|
}
|
|
22535
|
-
const uy = class Ma extends
|
|
22535
|
+
const uy = class Ma extends j {
|
|
22536
22536
|
constructor() {
|
|
22537
22537
|
super(...arguments);
|
|
22538
22538
|
r(this, "binary", !0);
|
|
@@ -25062,7 +25062,7 @@ const Wb = S("debugusdzbehaviours");
|
|
|
25062
25062
|
function yh(o) {
|
|
25063
25063
|
o && (o.getComponentInParent(ul) || (z() && console.debug('Raycaster on "' + o.name + '" was automatically added, because no raycaster was found in the parent hierarchy.'), o.addComponent(an)));
|
|
25064
25064
|
}
|
|
25065
|
-
class Cl extends
|
|
25065
|
+
class Cl extends j {
|
|
25066
25066
|
constructor() {
|
|
25067
25067
|
super(...arguments);
|
|
25068
25068
|
r(this, "object");
|
|
@@ -25126,7 +25126,7 @@ He([
|
|
|
25126
25126
|
p()
|
|
25127
25127
|
], Cl.prototype, "relativeMotion");
|
|
25128
25128
|
var $e;
|
|
25129
|
-
const pf = ($e = class extends
|
|
25129
|
+
const pf = ($e = class extends j {
|
|
25130
25130
|
constructor() {
|
|
25131
25131
|
super(...arguments);
|
|
25132
25132
|
r(this, "materialToSwitch");
|
|
@@ -25229,7 +25229,7 @@ He([
|
|
|
25229
25229
|
], pf.prototype, "fadeDuration");
|
|
25230
25230
|
let Vw = pf;
|
|
25231
25231
|
var _e;
|
|
25232
|
-
const _h = (_e = class extends
|
|
25232
|
+
const _h = (_e = class extends j {
|
|
25233
25233
|
constructor() {
|
|
25234
25234
|
super(...arguments);
|
|
25235
25235
|
r(this, "target");
|
|
@@ -25320,7 +25320,7 @@ He([
|
|
|
25320
25320
|
p()
|
|
25321
25321
|
], _h.prototype, "hideSelf");
|
|
25322
25322
|
let Hw = _h;
|
|
25323
|
-
const wn = class wn extends
|
|
25323
|
+
const wn = class wn extends j {
|
|
25324
25324
|
constructor() {
|
|
25325
25325
|
super(...arguments);
|
|
25326
25326
|
r(this, "wasVisible", !1);
|
|
@@ -25348,7 +25348,7 @@ const wn = class wn extends D {
|
|
|
25348
25348
|
};
|
|
25349
25349
|
r(wn, "_fadeBehaviour"), r(wn, "_fadeObjects", []);
|
|
25350
25350
|
let eh = wn;
|
|
25351
|
-
class bh extends
|
|
25351
|
+
class bh extends j {
|
|
25352
25352
|
constructor() {
|
|
25353
25353
|
super(...arguments);
|
|
25354
25354
|
r(this, "target");
|
|
@@ -25379,7 +25379,7 @@ He([
|
|
|
25379
25379
|
He([
|
|
25380
25380
|
p()
|
|
25381
25381
|
], bh.prototype, "motionType");
|
|
25382
|
-
class qr extends
|
|
25382
|
+
class qr extends j {
|
|
25383
25383
|
constructor() {
|
|
25384
25384
|
super(...arguments);
|
|
25385
25385
|
r(this, "target");
|
|
@@ -25449,7 +25449,7 @@ He([
|
|
|
25449
25449
|
p()
|
|
25450
25450
|
], qr.prototype, "toggleOnClick");
|
|
25451
25451
|
var Dt;
|
|
25452
|
-
const my = (Dt = class extends
|
|
25452
|
+
const my = (Dt = class extends j {
|
|
25453
25453
|
constructor() {
|
|
25454
25454
|
super(...arguments);
|
|
25455
25455
|
r(this, "animator");
|
|
@@ -25666,7 +25666,7 @@ He([
|
|
|
25666
25666
|
p()
|
|
25667
25667
|
], my.prototype, "stateName");
|
|
25668
25668
|
let pu = my;
|
|
25669
|
-
class vh extends
|
|
25669
|
+
class vh extends j {
|
|
25670
25670
|
constructor() {
|
|
25671
25671
|
super(...arguments);
|
|
25672
25672
|
r(this, "target");
|
|
@@ -25679,7 +25679,7 @@ class vh extends D {
|
|
|
25679
25679
|
He([
|
|
25680
25680
|
p(L)
|
|
25681
25681
|
], vh.prototype, "target");
|
|
25682
|
-
class mf extends
|
|
25682
|
+
class mf extends j {
|
|
25683
25683
|
constructor() {
|
|
25684
25684
|
super(...arguments);
|
|
25685
25685
|
r(this, "target");
|
|
@@ -25982,7 +25982,7 @@ St([
|
|
|
25982
25982
|
p()
|
|
25983
25983
|
], gy.prototype, "index", 2);
|
|
25984
25984
|
let Ec = gy;
|
|
25985
|
-
class Ni extends
|
|
25985
|
+
class Ni extends j {
|
|
25986
25986
|
constructor() {
|
|
25987
25987
|
super(...arguments);
|
|
25988
25988
|
r(this, "drawMode", 0);
|
|
@@ -26121,7 +26121,7 @@ St([
|
|
|
26121
26121
|
St([
|
|
26122
26122
|
p(Ec)
|
|
26123
26123
|
], Ni.prototype, "sprite", 1);
|
|
26124
|
-
const Vb = S("debugwebxr"), _T = new oe().makeRotationY(Math.PI), ko = class ko extends
|
|
26124
|
+
const Vb = S("debugwebxr"), _T = new oe().makeRotationY(Math.PI), ko = class ko extends j {
|
|
26125
26125
|
constructor() {
|
|
26126
26126
|
super(...arguments);
|
|
26127
26127
|
r(this, "_arScale", 1);
|
|
@@ -26655,7 +26655,7 @@ var CT = Object.defineProperty, yf = (o, t, e, i) => {
|
|
|
26655
26655
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
26656
26656
|
return n && CT(t, e, n), n;
|
|
26657
26657
|
};
|
|
26658
|
-
const Zt = S("debugplayersync"), _f = class Qw extends
|
|
26658
|
+
const Zt = S("debugplayersync"), _f = class Qw extends j {
|
|
26659
26659
|
constructor() {
|
|
26660
26660
|
super(...arguments);
|
|
26661
26661
|
r(this, "autoSync", !0);
|
|
@@ -26756,7 +26756,7 @@ yf([
|
|
|
26756
26756
|
], _f.prototype, "onPlayerSpawned");
|
|
26757
26757
|
let Yw = _f;
|
|
26758
26758
|
var PT = /* @__PURE__ */ ((o) => (o.OwnerChanged = "ownerChanged", o))(PT || {}), Be;
|
|
26759
|
-
const Zm = (Be = class extends
|
|
26759
|
+
const Zm = (Be = class extends j {
|
|
26760
26760
|
constructor() {
|
|
26761
26761
|
super(...arguments);
|
|
26762
26762
|
/** Event triggered when the owner of this PlayerState changes */
|
|
@@ -26797,7 +26797,7 @@ const Zm = (Be = class extends D {
|
|
|
26797
26797
|
static getFor(e) {
|
|
26798
26798
|
if (e instanceof L)
|
|
26799
26799
|
return C.getComponentInParent(e, Be);
|
|
26800
|
-
if (e instanceof
|
|
26800
|
+
if (e instanceof j)
|
|
26801
26801
|
return C.getComponentInParent(e.gameObject, Be);
|
|
26802
26802
|
}
|
|
26803
26803
|
/**
|
|
@@ -26893,7 +26893,7 @@ var OT = Object.defineProperty, Pl = (o, t, e, i) => {
|
|
|
26893
26893
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
26894
26894
|
return n && OT(t, e, n), n;
|
|
26895
26895
|
};
|
|
26896
|
-
class so extends
|
|
26896
|
+
class so extends j {
|
|
26897
26897
|
constructor() {
|
|
26898
26898
|
super(...arguments);
|
|
26899
26899
|
r(this, "position", "bottom");
|
|
@@ -26941,7 +26941,7 @@ var kT = Object.defineProperty, _y = (o, t, e, i) => {
|
|
|
26941
26941
|
return n && kT(t, e, n), n;
|
|
26942
26942
|
};
|
|
26943
26943
|
const Ql = S("debugwebxr"), Hb = new W().setFromAxisAngle(new w(0, 1, 0), Math.PI);
|
|
26944
|
-
class Xr extends
|
|
26944
|
+
class Xr extends j {
|
|
26945
26945
|
constructor() {
|
|
26946
26946
|
super(...arguments);
|
|
26947
26947
|
r(this, "head");
|
|
@@ -27074,7 +27074,7 @@ var MT = Object.defineProperty, bf = (o, t, e, i) => {
|
|
|
27074
27074
|
return n && MT(t, e, n), n;
|
|
27075
27075
|
};
|
|
27076
27076
|
const vs = S("debugwebxr"), uo = new Array();
|
|
27077
|
-
class Js extends
|
|
27077
|
+
class Js extends j {
|
|
27078
27078
|
constructor() {
|
|
27079
27079
|
super(...arguments);
|
|
27080
27080
|
r(this, "createControllerModel", !0);
|
|
@@ -27222,7 +27222,7 @@ bf([
|
|
|
27222
27222
|
bf([
|
|
27223
27223
|
p(le)
|
|
27224
27224
|
], Js.prototype, "customRightHand");
|
|
27225
|
-
class by extends
|
|
27225
|
+
class by extends j {
|
|
27226
27226
|
}
|
|
27227
27227
|
var RT = Object.defineProperty, Jo = (o, t, e, i) => {
|
|
27228
27228
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
@@ -27230,7 +27230,7 @@ var RT = Object.defineProperty, Jo = (o, t, e, i) => {
|
|
|
27230
27230
|
return n && RT(t, e, n), n;
|
|
27231
27231
|
};
|
|
27232
27232
|
const Fp = S("debugwebxr");
|
|
27233
|
-
class cn extends
|
|
27233
|
+
class cn extends j {
|
|
27234
27234
|
constructor() {
|
|
27235
27235
|
super(...arguments);
|
|
27236
27236
|
r(this, "movementSpeed", 1.5);
|
|
@@ -27486,7 +27486,7 @@ var ET = Object.defineProperty, Ct = (o, t, e, i) => {
|
|
|
27486
27486
|
};
|
|
27487
27487
|
const Yl = S("debugwebxr"), AT = S("debugusdz");
|
|
27488
27488
|
var Cn;
|
|
27489
|
-
const pt = (Cn = class extends
|
|
27489
|
+
const pt = (Cn = class extends j {
|
|
27490
27490
|
constructor() {
|
|
27491
27491
|
super(...arguments);
|
|
27492
27492
|
r(this, "createVRButton", !0);
|
|
@@ -28028,7 +28028,7 @@ F0.prototype.interactable = {
|
|
|
28028
28028
|
this.interactable = o;
|
|
28029
28029
|
}
|
|
28030
28030
|
};
|
|
28031
|
-
class En extends
|
|
28031
|
+
class En extends j {
|
|
28032
28032
|
constructor() {
|
|
28033
28033
|
super(...arguments);
|
|
28034
28034
|
r(this, "_shadowComponent", null);
|
|
@@ -28353,7 +28353,7 @@ var FT = Object.defineProperty, ex = (o, t, e, i) => {
|
|
|
28353
28353
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
28354
28354
|
return n && FT(t, e, n), n;
|
|
28355
28355
|
};
|
|
28356
|
-
class xh extends
|
|
28356
|
+
class xh extends j {
|
|
28357
28357
|
constructor() {
|
|
28358
28358
|
super(...arguments);
|
|
28359
28359
|
r(this, "effectColor");
|
|
@@ -29000,7 +29000,7 @@ rt([
|
|
|
29000
29000
|
rt([
|
|
29001
29001
|
p()
|
|
29002
29002
|
], kl.prototype, "bottom");
|
|
29003
|
-
class $i extends
|
|
29003
|
+
class $i extends j {
|
|
29004
29004
|
constructor() {
|
|
29005
29005
|
super(...arguments);
|
|
29006
29006
|
r(this, "_rectTransform", null);
|
|
@@ -29408,7 +29408,7 @@ var QT = Object.defineProperty, YT = Object.getOwnPropertyDescriptor, Sy = (o, t
|
|
|
29408
29408
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
29409
29409
|
return i && n && QT(t, e, n), n;
|
|
29410
29410
|
};
|
|
29411
|
-
class Qr extends
|
|
29411
|
+
class Qr extends j {
|
|
29412
29412
|
constructor() {
|
|
29413
29413
|
super(...arguments);
|
|
29414
29414
|
r(this, "_alpha", 1);
|
|
@@ -29647,7 +29647,7 @@ Et([
|
|
|
29647
29647
|
p()
|
|
29648
29648
|
], Ml.prototype, "callToActionURL");
|
|
29649
29649
|
var Is;
|
|
29650
|
-
const wi = (Is = class extends
|
|
29650
|
+
const wi = (Is = class extends j {
|
|
29651
29651
|
constructor() {
|
|
29652
29652
|
super(...arguments);
|
|
29653
29653
|
r(this, "objectToExport");
|
|
@@ -29930,7 +29930,7 @@ var iE = Object.defineProperty, nE = Object.getOwnPropertyDescriptor, Cy = (o, t
|
|
|
29930
29930
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
29931
29931
|
return n && iE(t, e, n), n;
|
|
29932
29932
|
};
|
|
29933
|
-
class Sh extends
|
|
29933
|
+
class Sh extends j {
|
|
29934
29934
|
constructor() {
|
|
29935
29935
|
super(...arguments);
|
|
29936
29936
|
r(this, "_fog");
|
|
@@ -29980,7 +29980,7 @@ var sE = Object.defineProperty, Py = (o, t, e, i) => {
|
|
|
29980
29980
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
29981
29981
|
return n && sE(t, e, n), n;
|
|
29982
29982
|
};
|
|
29983
|
-
class Rl extends
|
|
29983
|
+
class Rl extends j {
|
|
29984
29984
|
constructor() {
|
|
29985
29985
|
super(...arguments);
|
|
29986
29986
|
r(this, "objectBounds", !1);
|
|
@@ -30015,7 +30015,7 @@ var oE = Object.defineProperty, Oy = (o, t, e, i) => {
|
|
|
30015
30015
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30016
30016
|
return n && oE(t, e, n), n;
|
|
30017
30017
|
};
|
|
30018
|
-
class Ch extends
|
|
30018
|
+
class Ch extends j {
|
|
30019
30019
|
constructor() {
|
|
30020
30020
|
super(...arguments);
|
|
30021
30021
|
r(this, "isGizmo", !1);
|
|
@@ -30051,7 +30051,7 @@ var rE = Object.defineProperty, ky = (o, t, e, i) => {
|
|
|
30051
30051
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30052
30052
|
return n && rE(t, e, n), n;
|
|
30053
30053
|
};
|
|
30054
|
-
class My extends
|
|
30054
|
+
class My extends j {
|
|
30055
30055
|
constructor() {
|
|
30056
30056
|
super(...arguments);
|
|
30057
30057
|
r(this, "connectedBody");
|
|
@@ -30102,7 +30102,7 @@ function Wp(o) {
|
|
|
30102
30102
|
return o * Math.PI / 180;
|
|
30103
30103
|
}
|
|
30104
30104
|
const Xb = 300, fo = S("debuglights");
|
|
30105
|
-
class Wi extends
|
|
30105
|
+
class Wi extends j {
|
|
30106
30106
|
constructor() {
|
|
30107
30107
|
super(...arguments);
|
|
30108
30108
|
r(this, "type", 0);
|
|
@@ -30407,7 +30407,7 @@ class dE {
|
|
|
30407
30407
|
return this.model.renderers;
|
|
30408
30408
|
}
|
|
30409
30409
|
}
|
|
30410
|
-
class Cf extends
|
|
30410
|
+
class Cf extends j {
|
|
30411
30411
|
constructor() {
|
|
30412
30412
|
super(...arguments);
|
|
30413
30413
|
r(this, "fadeMode", 0);
|
|
@@ -30494,7 +30494,7 @@ var uE = Object.defineProperty, fE = (o, t, e, i) => {
|
|
|
30494
30494
|
return n && uE(t, e, n), n;
|
|
30495
30495
|
};
|
|
30496
30496
|
const ud = S("debugnestedgltf");
|
|
30497
|
-
class Ry extends
|
|
30497
|
+
class Ry extends j {
|
|
30498
30498
|
constructor() {
|
|
30499
30499
|
super(...arguments);
|
|
30500
30500
|
r(this, "filePath");
|
|
@@ -30550,7 +30550,7 @@ var pE = Object.defineProperty, Ty = (o, t, e, i) => {
|
|
|
30550
30550
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30551
30551
|
return n && pE(t, e, n), n;
|
|
30552
30552
|
};
|
|
30553
|
-
const mE = S("debugnet"), Pf = class Jm extends
|
|
30553
|
+
const mE = S("debugnet"), Pf = class Jm extends j {
|
|
30554
30554
|
constructor() {
|
|
30555
30555
|
super(...arguments);
|
|
30556
30556
|
r(this, "url", null);
|
|
@@ -30620,7 +30620,7 @@ var gE = Object.defineProperty, Of = (o, t, e, i) => {
|
|
|
30620
30620
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
30621
30621
|
return n && gE(t, e, n), n;
|
|
30622
30622
|
};
|
|
30623
|
-
class Tl extends
|
|
30623
|
+
class Tl extends j {
|
|
30624
30624
|
constructor() {
|
|
30625
30625
|
super(...arguments);
|
|
30626
30626
|
r(this, "referenceSpace");
|
|
@@ -32262,7 +32262,7 @@ var bE = Object.defineProperty, Ge = (o, t, e, i) => {
|
|
|
32262
32262
|
};
|
|
32263
32263
|
const wo = S("debugparticles"), vE = S("noprogressive"), wE = S("debugprogressive");
|
|
32264
32264
|
var ng = /* @__PURE__ */ ((o) => (o[o.Birth = 0] = "Birth", o[o.Collision = 1] = "Collision", o[o.Death = 2] = "Death", o[o.Trigger = 3] = "Trigger", o[o.Manual = 4] = "Manual", o))(ng || {});
|
|
32265
|
-
class Ln extends
|
|
32265
|
+
class Ln extends j {
|
|
32266
32266
|
constructor() {
|
|
32267
32267
|
super(...arguments);
|
|
32268
32268
|
r(this, "renderMode");
|
|
@@ -32714,7 +32714,7 @@ class IE {
|
|
|
32714
32714
|
r(this, "waitEmiting", 0);
|
|
32715
32715
|
}
|
|
32716
32716
|
}
|
|
32717
|
-
const Ht = class Ad extends
|
|
32717
|
+
const Ht = class Ad extends j {
|
|
32718
32718
|
constructor() {
|
|
32719
32719
|
super(...arguments);
|
|
32720
32720
|
r(this, "_state");
|
|
@@ -33085,7 +33085,7 @@ function yx(o, t) {
|
|
|
33085
33085
|
}
|
|
33086
33086
|
return t;
|
|
33087
33087
|
}
|
|
33088
|
-
class sh extends
|
|
33088
|
+
class sh extends j {
|
|
33089
33089
|
constructor() {
|
|
33090
33090
|
super(...arguments);
|
|
33091
33091
|
r(this, "_didAssignPlayerColor", !1);
|
|
@@ -33182,7 +33182,7 @@ const gt = {
|
|
|
33182
33182
|
};
|
|
33183
33183
|
let tt = null;
|
|
33184
33184
|
function jE(o) {
|
|
33185
|
-
bc === "verbose" && console.debug("Before ordering effects", [...o]), tt || (tt = /* @__PURE__ */ new Map(), tt.set(
|
|
33185
|
+
bc === "verbose" && console.debug("Before ordering effects", [...o]), tt || (tt = /* @__PURE__ */ new Map(), tt.set(D.POSTPROCESSING.MODULE.NormalPass, gt.NormalPass), tt.set(D.POSTPROCESSING.MODULE.DepthDownsamplingPass, gt.DepthDownsamplingPass), tt.set(D.POSTPROCESSING.MODULE.SMAAEffect, gt.SMAA), tt.set(D.POSTPROCESSING.MODULE.SSAOEffect, gt.SSAO), tt.set(D.POSTPROCESSING_AO.MODULE.N8AOPostPass, gt.SSAO), tt.set(D.POSTPROCESSING_AO.MODULE.N8AOPass, gt.SSAO), tt.set(D.POSTPROCESSING.MODULE.TiltShiftEffect, gt.TiltShift), tt.set(D.POSTPROCESSING.MODULE.DepthOfFieldEffect, gt.DepthOfField), tt.set(D.POSTPROCESSING.MODULE.ChromaticAberrationEffect, gt.ChromaticAberration), tt.set(D.POSTPROCESSING.MODULE.BloomEffect, gt.Bloom), tt.set(D.POSTPROCESSING.MODULE.SelectiveBloomEffect, gt.Bloom), tt.set(D.POSTPROCESSING.MODULE.VignetteEffect, gt.Vignette), tt.set(D.POSTPROCESSING.MODULE.PixelationEffect, gt.Pixelation), tt.set(D.POSTPROCESSING.MODULE.ToneMappingEffect, gt.ToneMapping), tt.set(D.POSTPROCESSING.MODULE.HueSaturationEffect, gt.HueSaturation), tt.set(D.POSTPROCESSING.MODULE.BrightnessContrastEffect, gt.BrightnessContrast)), o.sort((t, e) => {
|
|
33186
33186
|
const i = typeof t.priority == "number" ? t.priority : tt.get(t.effect.constructor) ?? Number.NEGATIVE_INFINITY, n = typeof e.priority == "number" ? e.priority : tt.get(e.effect.constructor) ?? Number.NEGATIVE_INFINITY;
|
|
33187
33187
|
return i === Number.NEGATIVE_INFINITY ? (bc && console.warn("Unknown effect found: ", t.constructor.name, t), 1) : n === Number.NEGATIVE_INFINITY ? (bc && console.warn("Unknown effect found: ", e.constructor.name, e), -1) : i - n;
|
|
33188
33188
|
}), bc === "verbose" && console.debug("After ordering effects", [...o]);
|
|
@@ -33275,7 +33275,7 @@ var NE = Object.defineProperty, $E = (o, t, e, i) => {
|
|
|
33275
33275
|
return n && NE(t, e, n), n;
|
|
33276
33276
|
};
|
|
33277
33277
|
const Xp = S("debugpost");
|
|
33278
|
-
class ft extends
|
|
33278
|
+
class ft extends j {
|
|
33279
33279
|
constructor(e = void 0) {
|
|
33280
33280
|
super();
|
|
33281
33281
|
/**
|
|
@@ -33399,6 +33399,7 @@ var qE = Object.defineProperty, XE = (o, t, e, i) => {
|
|
|
33399
33399
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
33400
33400
|
return n && qE(t, e, n), n;
|
|
33401
33401
|
};
|
|
33402
|
+
const QE = S("debugpost");
|
|
33402
33403
|
class Mf extends ft {
|
|
33403
33404
|
constructor() {
|
|
33404
33405
|
super(...arguments);
|
|
@@ -33409,14 +33410,15 @@ class Mf extends ft {
|
|
|
33409
33410
|
}
|
|
33410
33411
|
// 2 is HIGH: https://github.com/pmndrs/postprocessing/blob/main/src/enums/SMAAPreset.js#L14
|
|
33411
33412
|
onCreateEffect() {
|
|
33412
|
-
|
|
33413
|
-
|
|
33414
|
-
|
|
33413
|
+
var i;
|
|
33414
|
+
const e = new D.POSTPROCESSING.MODULE.SMAAEffect({
|
|
33415
|
+
preset: ((i = this.preset) == null ? void 0 : i.value) ?? D.POSTPROCESSING.MODULE.SMAAPreset.HIGH,
|
|
33416
|
+
edgeDetectionMode: D.POSTPROCESSING.MODULE.EdgeDetectionMode.LUMA
|
|
33415
33417
|
// Keep predication mode disabled (default) since it looks better
|
|
33416
33418
|
// predicationMode: MODULES.POSTPROCESSING.MODULE.PredicationMode.DEPTH,
|
|
33417
33419
|
});
|
|
33418
|
-
return this.preset.onValueChanged = (
|
|
33419
|
-
e.applyPreset(
|
|
33420
|
+
return this.preset.onValueChanged = (n) => {
|
|
33421
|
+
QE && console.log("Antialiasing preset changed to", n), e.applyPreset(n);
|
|
33420
33422
|
}, e;
|
|
33421
33423
|
}
|
|
33422
33424
|
}
|
|
@@ -33424,10 +33426,10 @@ XE([
|
|
|
33424
33426
|
p(N)
|
|
33425
33427
|
], Mf.prototype, "preset");
|
|
33426
33428
|
Dn("Antialiasing", Mf);
|
|
33427
|
-
var
|
|
33429
|
+
var YE = Object.defineProperty, Ly = (o, t, e, i) => {
|
|
33428
33430
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
33429
33431
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
33430
|
-
return n &&
|
|
33432
|
+
return n && YE(t, e, n), n;
|
|
33431
33433
|
}, Er;
|
|
33432
33434
|
const Rf = (Er = class extends ft {
|
|
33433
33435
|
constructor() {
|
|
@@ -33450,8 +33452,8 @@ const Rf = (Er = class extends ft {
|
|
|
33450
33452
|
onCreateEffect() {
|
|
33451
33453
|
let e;
|
|
33452
33454
|
if (this.selectiveBloom == null && (this.selectiveBloom = Er.useSelectiveBloom), this.selectiveBloom) {
|
|
33453
|
-
const i = e = new
|
|
33454
|
-
blendFunction:
|
|
33455
|
+
const i = e = new D.POSTPROCESSING.MODULE.SelectiveBloomEffect(this.context.scene, this.context.mainCamera, {
|
|
33456
|
+
blendFunction: D.POSTPROCESSING.MODULE.BlendFunction.ADD,
|
|
33455
33457
|
mipmapBlur: !0,
|
|
33456
33458
|
luminanceThreshold: this.threshold.value,
|
|
33457
33459
|
luminanceSmoothing: this.scatter.value,
|
|
@@ -33461,8 +33463,8 @@ const Rf = (Er = class extends ft {
|
|
|
33461
33463
|
});
|
|
33462
33464
|
i.inverted = !0;
|
|
33463
33465
|
} else
|
|
33464
|
-
e = new
|
|
33465
|
-
blendFunction:
|
|
33466
|
+
e = new D.POSTPROCESSING.MODULE.BloomEffect({
|
|
33467
|
+
blendFunction: D.POSTPROCESSING.MODULE.BlendFunction.ADD,
|
|
33466
33468
|
mipmapBlur: !0,
|
|
33467
33469
|
luminanceThreshold: this.threshold.value,
|
|
33468
33470
|
luminanceSmoothing: this.scatter.value,
|
|
@@ -33491,10 +33493,10 @@ Ly([
|
|
|
33491
33493
|
], Rf.prototype, "scatter");
|
|
33492
33494
|
let Dy = Rf;
|
|
33493
33495
|
Dn("Bloom", Dy);
|
|
33494
|
-
var
|
|
33496
|
+
var KE = Object.defineProperty, ZE = (o, t, e, i) => {
|
|
33495
33497
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
33496
33498
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
33497
|
-
return n &&
|
|
33499
|
+
return n && KE(t, e, n), n;
|
|
33498
33500
|
};
|
|
33499
33501
|
class Tf extends ft {
|
|
33500
33502
|
constructor() {
|
|
@@ -33505,13 +33507,13 @@ class Tf extends ft {
|
|
|
33505
33507
|
return "ChromaticAberration";
|
|
33506
33508
|
}
|
|
33507
33509
|
onCreateEffect() {
|
|
33508
|
-
const e = new
|
|
33510
|
+
const e = new D.POSTPROCESSING.MODULE.ChromaticAberrationEffect();
|
|
33509
33511
|
return e.offset = new ae(0, 0), e.radialModulation = !0, e.modulationOffset = 0.15, this.intensity.valueProcessor = (i) => i * 0.02, this.intensity.onValueChanged = (i) => {
|
|
33510
33512
|
e.offset.x = -i, e.offset.y = i;
|
|
33511
33513
|
}, e;
|
|
33512
33514
|
}
|
|
33513
33515
|
}
|
|
33514
|
-
|
|
33516
|
+
ZE([
|
|
33515
33517
|
p(N)
|
|
33516
33518
|
], Tf.prototype, "intensity");
|
|
33517
33519
|
Dn("ChromaticAberration", Tf);
|
|
@@ -33533,7 +33535,7 @@ function Qp(o) {
|
|
|
33533
33535
|
return t0.has(o) || (t0.set(o, !0), console.warn("[Postprocessing] Unknown tone mapping mode", o)), Ja;
|
|
33534
33536
|
}
|
|
33535
33537
|
}
|
|
33536
|
-
function
|
|
33538
|
+
function JE(o) {
|
|
33537
33539
|
switch (o) {
|
|
33538
33540
|
case xg:
|
|
33539
33541
|
return 0;
|
|
@@ -33552,23 +33554,23 @@ function ZE(o) {
|
|
|
33552
33554
|
function Id(o) {
|
|
33553
33555
|
switch (o) {
|
|
33554
33556
|
case xg:
|
|
33555
|
-
return
|
|
33557
|
+
return D.POSTPROCESSING.MODULE.ToneMappingMode.LINEAR;
|
|
33556
33558
|
case zu:
|
|
33557
|
-
return
|
|
33559
|
+
return D.POSTPROCESSING.MODULE.ToneMappingMode.ACES_FILMIC;
|
|
33558
33560
|
case Fu:
|
|
33559
|
-
return
|
|
33561
|
+
return D.POSTPROCESSING.MODULE.ToneMappingMode.AGX;
|
|
33560
33562
|
case Ja:
|
|
33561
|
-
return
|
|
33563
|
+
return D.POSTPROCESSING.MODULE.ToneMappingMode.NEUTRAL;
|
|
33562
33564
|
case wg:
|
|
33563
|
-
return
|
|
33565
|
+
return D.POSTPROCESSING.MODULE.ToneMappingMode.REINHARD;
|
|
33564
33566
|
default:
|
|
33565
|
-
return
|
|
33567
|
+
return D.POSTPROCESSING.MODULE.ToneMappingMode.LINEAR;
|
|
33566
33568
|
}
|
|
33567
33569
|
}
|
|
33568
|
-
var
|
|
33570
|
+
var eA = Object.defineProperty, vx = (o, t, e, i) => {
|
|
33569
33571
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
33570
33572
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
33571
|
-
return n &&
|
|
33573
|
+
return n && eA(t, e, n), n;
|
|
33572
33574
|
};
|
|
33573
33575
|
const Yp = S("debugpost");
|
|
33574
33576
|
class Yr extends ft {
|
|
@@ -33596,11 +33598,11 @@ class Yr extends ft {
|
|
|
33596
33598
|
onCreateEffect() {
|
|
33597
33599
|
var n;
|
|
33598
33600
|
if (this.mode.isInitialized == !1) {
|
|
33599
|
-
const s =
|
|
33601
|
+
const s = JE(this.context.renderer.toneMapping);
|
|
33600
33602
|
Yp && console.log("[PostProcessing] Initializing ToneMapping mode to renderer.toneMapping", this.context.renderer.toneMapping + " → " + s), this.mode.initialize(s);
|
|
33601
33603
|
}
|
|
33602
33604
|
(n = this._tonemappingEffect) == null || n.dispose();
|
|
33603
|
-
const e = Qp(this.mode.value), i = this._tonemappingEffect = new
|
|
33605
|
+
const e = Qp(this.mode.value), i = this._tonemappingEffect = new D.POSTPROCESSING.MODULE.ToneMappingEffect({
|
|
33604
33606
|
mode: Id(e)
|
|
33605
33607
|
});
|
|
33606
33608
|
return this.mode.onValueChanged = (s) => {
|
|
@@ -33628,10 +33630,10 @@ vx([
|
|
|
33628
33630
|
p(N)
|
|
33629
33631
|
], Yr.prototype, "exposure");
|
|
33630
33632
|
Dn("Tonemapping", Yr);
|
|
33631
|
-
var
|
|
33633
|
+
var tA = Object.defineProperty, Ef = (o, t, e, i) => {
|
|
33632
33634
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
33633
33635
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
33634
|
-
return n &&
|
|
33636
|
+
return n && tA(t, e, n), n;
|
|
33635
33637
|
};
|
|
33636
33638
|
class ca extends ft {
|
|
33637
33639
|
constructor() {
|
|
@@ -33662,9 +33664,9 @@ class ca extends ft {
|
|
|
33662
33664
|
i || (i = new Yr(), (l = this.postprocessingContext) == null || l.components.push(i)), this.postExposure.onValueChanged = (c) => {
|
|
33663
33665
|
this.postExposure.overrideState && i ? i.exposure.value = c : console.warn("[PostProcessing] PostExposure is set to override but no ToneMappingEffect found in the postprocessing stack. Please add a ToneMappingEffect to your postprocessing stack to use PostExposure.");
|
|
33664
33666
|
};
|
|
33665
|
-
const n = new
|
|
33667
|
+
const n = new D.POSTPROCESSING.MODULE.BrightnessContrastEffect();
|
|
33666
33668
|
this.contrast.onValueChanged = (c) => n.contrast = c;
|
|
33667
|
-
const s = new
|
|
33669
|
+
const s = new D.POSTPROCESSING.MODULE.HueSaturationEffect();
|
|
33668
33670
|
return this.hueShift.onValueChanged = (c) => s.hue = c, this.saturation.onValueChanged = (c) => s.saturation = c, e.push(n), e.push(s), e;
|
|
33669
33671
|
}
|
|
33670
33672
|
}
|
|
@@ -33681,12 +33683,12 @@ Ef([
|
|
|
33681
33683
|
p(N)
|
|
33682
33684
|
], ca.prototype, "saturation");
|
|
33683
33685
|
Dn("ColorAdjustments", ca);
|
|
33684
|
-
var
|
|
33686
|
+
var iA = Object.defineProperty, ha = (o, t, e, i) => {
|
|
33685
33687
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
33686
33688
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
33687
|
-
return n &&
|
|
33689
|
+
return n && iA(t, e, n), n;
|
|
33688
33690
|
};
|
|
33689
|
-
const
|
|
33691
|
+
const nA = S("debugpost");
|
|
33690
33692
|
class ps extends ft {
|
|
33691
33693
|
constructor() {
|
|
33692
33694
|
super(...arguments);
|
|
@@ -33714,10 +33716,10 @@ class ps extends ft {
|
|
|
33714
33716
|
}
|
|
33715
33717
|
onCreateEffect() {
|
|
33716
33718
|
if (this.mode === 0) {
|
|
33717
|
-
|
|
33719
|
+
nA && console.warn("DepthOfField: Mode is set to Off");
|
|
33718
33720
|
return;
|
|
33719
33721
|
}
|
|
33720
|
-
const e = new
|
|
33722
|
+
const e = new D.POSTPROCESSING.MODULE.DepthOfFieldEffect(this.context.mainCamera, {
|
|
33721
33723
|
worldFocusRange: 0.2,
|
|
33722
33724
|
focalLength: 1,
|
|
33723
33725
|
bokehScale: 20,
|
|
@@ -33765,10 +33767,10 @@ class yu extends ft {
|
|
|
33765
33767
|
return this.effect;
|
|
33766
33768
|
}
|
|
33767
33769
|
}
|
|
33768
|
-
var
|
|
33770
|
+
var sA = Object.defineProperty, oA = (o, t, e, i) => {
|
|
33769
33771
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
33770
33772
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
33771
|
-
return n &&
|
|
33773
|
+
return n && sA(t, e, n), n;
|
|
33772
33774
|
};
|
|
33773
33775
|
class Af extends ft {
|
|
33774
33776
|
constructor() {
|
|
@@ -33779,20 +33781,20 @@ class Af extends ft {
|
|
|
33779
33781
|
return "PixelationEffect";
|
|
33780
33782
|
}
|
|
33781
33783
|
onCreateEffect() {
|
|
33782
|
-
const e = new
|
|
33784
|
+
const e = new D.POSTPROCESSING.MODULE.PixelationEffect();
|
|
33783
33785
|
return this.granularity.onValueChanged = (i) => {
|
|
33784
33786
|
e.granularity = i;
|
|
33785
33787
|
}, e;
|
|
33786
33788
|
}
|
|
33787
33789
|
}
|
|
33788
|
-
|
|
33790
|
+
oA([
|
|
33789
33791
|
p(N)
|
|
33790
33792
|
], Af.prototype, "granularity");
|
|
33791
33793
|
Dn("PixelationEffect", Af);
|
|
33792
|
-
var
|
|
33794
|
+
var rA = Object.defineProperty, Rh = (o, t, e, i) => {
|
|
33793
33795
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
33794
33796
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
33795
|
-
return n &&
|
|
33797
|
+
return n && rA(t, e, n), n;
|
|
33796
33798
|
};
|
|
33797
33799
|
class sr extends ft {
|
|
33798
33800
|
constructor() {
|
|
@@ -33814,10 +33816,10 @@ class sr extends ft {
|
|
|
33814
33816
|
}
|
|
33815
33817
|
}
|
|
33816
33818
|
onCreateEffect() {
|
|
33817
|
-
const e = this.context.mainCamera, i = new
|
|
33819
|
+
const e = this.context.mainCamera, i = new D.POSTPROCESSING.MODULE.NormalPass(this.context.scene, e), n = new D.POSTPROCESSING.MODULE.DepthDownsamplingPass({
|
|
33818
33820
|
normalBuffer: i.texture,
|
|
33819
33821
|
resolutionScale: 0.5
|
|
33820
|
-
}), s = this._ssao = new
|
|
33822
|
+
}), s = this._ssao = new D.POSTPROCESSING.MODULE.SSAOEffect(e, i.texture, {
|
|
33821
33823
|
normalDepthBuffer: n.texture,
|
|
33822
33824
|
worldDistanceThreshold: 1,
|
|
33823
33825
|
// when it starts to fade out
|
|
@@ -33826,7 +33828,7 @@ class sr extends ft {
|
|
|
33826
33828
|
worldProximityThreshold: 0.1,
|
|
33827
33829
|
worldProximityFalloff: 2,
|
|
33828
33830
|
intensity: 1,
|
|
33829
|
-
blendFunction:
|
|
33831
|
+
blendFunction: D.POSTPROCESSING.MODULE.BlendFunction.MULTIPLY,
|
|
33830
33832
|
luminanceInfluence: 0.5
|
|
33831
33833
|
});
|
|
33832
33834
|
this.intensity.onValueChanged = (l) => {
|
|
@@ -33860,12 +33862,12 @@ Rh([
|
|
|
33860
33862
|
p(N)
|
|
33861
33863
|
], sr.prototype, "luminanceInfluence");
|
|
33862
33864
|
Dn("ScreenSpaceAmbientOcclusion", sr);
|
|
33863
|
-
var
|
|
33865
|
+
var aA = Object.defineProperty, da = (o, t, e, i) => {
|
|
33864
33866
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
33865
33867
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
33866
|
-
return n &&
|
|
33868
|
+
return n && aA(t, e, n), n;
|
|
33867
33869
|
};
|
|
33868
|
-
const
|
|
33870
|
+
const lA = S("debugN8AO");
|
|
33869
33871
|
var lg = /* @__PURE__ */ ((o) => (o[o.Performance = 0] = "Performance", o[o.Low = 1] = "Low", o[o.Medium = 2] = "Medium", o[o.High = 3] = "High", o[o.Ultra = 4] = "Ultra", o))(lg || {});
|
|
33870
33872
|
class ms extends ft {
|
|
33871
33873
|
constructor() {
|
|
@@ -33889,17 +33891,17 @@ class ms extends ft {
|
|
|
33889
33891
|
this._ssao && (this._ssao.setQualityMode(lg[this.quality]), this._ssao.configuration.gammaCorrection = this.gammaCorrection, this._ssao.configuration.screenSpaceRadius = this.screenspaceRadius);
|
|
33890
33892
|
}
|
|
33891
33893
|
onCreateEffect() {
|
|
33892
|
-
const e = this.context.mainCamera, i = this.context.domWidth, n = this.context.domHeight, s = this._ssao = new
|
|
33894
|
+
const e = this.context.mainCamera, i = this.context.domWidth, n = this.context.domHeight, s = this._ssao = new D.POSTPROCESSING_AO.MODULE.N8AOPostPass(
|
|
33893
33895
|
this.context.scene,
|
|
33894
33896
|
e,
|
|
33895
33897
|
i,
|
|
33896
33898
|
n
|
|
33897
33899
|
);
|
|
33898
|
-
s.name = "
|
|
33900
|
+
s.name = "SSAO_N8";
|
|
33899
33901
|
const a = lg[this.quality];
|
|
33900
33902
|
s.setQualityMode(a), s.configuration.transparencyAware = !1;
|
|
33901
33903
|
const l = new ns(i, n);
|
|
33902
|
-
return s.configuration.beautyRenderTarget = l, s.configuration.autoRenderBeauty = !1, s.configuration.gammaCorrection = this.gammaCorrection, s.configuration.screenSpaceRadius = this.screenspaceRadius,
|
|
33904
|
+
return s.configuration.beautyRenderTarget = l, s.configuration.autoRenderBeauty = !1, s.configuration.gammaCorrection = this.gammaCorrection, s.configuration.screenSpaceRadius = this.screenspaceRadius, lA && (s.enableDebugMode(), console.log(s), setInterval(() => {
|
|
33903
33905
|
console.log("SSAO", s.lastTime);
|
|
33904
33906
|
}, 1e3), setInterval(() => {
|
|
33905
33907
|
console.log("SSAO", s.enabled, { ssao: s, autoRenderBeauty: s.configuration.autoRenderBeauty });
|
|
@@ -33939,10 +33941,10 @@ da([
|
|
|
33939
33941
|
p()
|
|
33940
33942
|
], ms.prototype, "quality");
|
|
33941
33943
|
Dn("ScreenSpaceAmbientOcclusionN8", ms);
|
|
33942
|
-
var
|
|
33943
|
-
for (var n =
|
|
33944
|
+
var cA = Object.defineProperty, hA = Object.getOwnPropertyDescriptor, wx = (o, t, e, i) => {
|
|
33945
|
+
for (var n = hA(t, e), s = o.length - 1, a; s >= 0; s--)
|
|
33944
33946
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
33945
|
-
return n &&
|
|
33947
|
+
return n && cA(t, e, n), n;
|
|
33946
33948
|
};
|
|
33947
33949
|
class If extends ft {
|
|
33948
33950
|
constructor() {
|
|
@@ -33956,7 +33958,7 @@ class If extends ft {
|
|
|
33956
33958
|
return "Sharpening";
|
|
33957
33959
|
}
|
|
33958
33960
|
onCreateEffect() {
|
|
33959
|
-
return this._effect ?? (this._effect = new (
|
|
33961
|
+
return this._effect ?? (this._effect = new (dA())()), this.effect;
|
|
33960
33962
|
}
|
|
33961
33963
|
get effect() {
|
|
33962
33964
|
return this._effect;
|
|
@@ -33987,7 +33989,7 @@ wx([
|
|
|
33987
33989
|
wx([
|
|
33988
33990
|
p()
|
|
33989
33991
|
], If.prototype, "radius");
|
|
33990
|
-
function
|
|
33992
|
+
function dA() {
|
|
33991
33993
|
const o = `
|
|
33992
33994
|
void mainSupport() {
|
|
33993
33995
|
vUv = uv;
|
|
@@ -34033,11 +34035,11 @@ function hA() {
|
|
|
34033
34035
|
}
|
|
34034
34036
|
|
|
34035
34037
|
`;
|
|
34036
|
-
class e extends
|
|
34038
|
+
class e extends D.POSTPROCESSING.MODULE.Effect {
|
|
34037
34039
|
constructor() {
|
|
34038
34040
|
super("Sharpening", t, {
|
|
34039
34041
|
vertexShader: o,
|
|
34040
|
-
blendFunction:
|
|
34042
|
+
blendFunction: D.POSTPROCESSING.MODULE.BlendFunction.NORMAL,
|
|
34041
34043
|
uniforms: /* @__PURE__ */ new Map([
|
|
34042
34044
|
["amount", new tn(1)],
|
|
34043
34045
|
["radius", new tn(1)]
|
|
@@ -34049,10 +34051,10 @@ function hA() {
|
|
|
34049
34051
|
}
|
|
34050
34052
|
return e;
|
|
34051
34053
|
}
|
|
34052
|
-
var
|
|
34054
|
+
var uA = Object.defineProperty, Ll = (o, t, e, i) => {
|
|
34053
34055
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
34054
34056
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
34055
|
-
return n &&
|
|
34057
|
+
return n && uA(t, e, n), n;
|
|
34056
34058
|
};
|
|
34057
34059
|
class ao extends ft {
|
|
34058
34060
|
constructor() {
|
|
@@ -34068,11 +34070,11 @@ class ao extends ft {
|
|
|
34068
34070
|
return "TiltShiftEffect";
|
|
34069
34071
|
}
|
|
34070
34072
|
init() {
|
|
34071
|
-
this.offset.defaultValue = 0, this.rotation.defaultValue = 0, this.focusArea.defaultValue = 0.4, this.feather.defaultValue = 0.3, this.kernelSize.defaultValue =
|
|
34073
|
+
this.offset.defaultValue = 0, this.rotation.defaultValue = 0, this.focusArea.defaultValue = 0.4, this.feather.defaultValue = 0.3, this.kernelSize.defaultValue = D.POSTPROCESSING.MODULE.KernelSize.MEDIUM, this.resolutionScale.defaultValue = 1 / window.devicePixelRatio;
|
|
34072
34074
|
}
|
|
34073
34075
|
onCreateEffect() {
|
|
34074
|
-
const e = new
|
|
34075
|
-
kernelSize:
|
|
34076
|
+
const e = new D.POSTPROCESSING.MODULE.TiltShiftEffect({
|
|
34077
|
+
kernelSize: D.POSTPROCESSING.MODULE.KernelSize.VERY_LARGE,
|
|
34076
34078
|
offset: this.offset.value,
|
|
34077
34079
|
rotation: this.rotation.value,
|
|
34078
34080
|
focusArea: this.focusArea.value,
|
|
@@ -34100,10 +34102,10 @@ Ll([
|
|
|
34100
34102
|
p(N)
|
|
34101
34103
|
], ao.prototype, "resolutionScale");
|
|
34102
34104
|
Dn("TiltShiftEffect", ao);
|
|
34103
|
-
var
|
|
34105
|
+
var fA = Object.defineProperty, jy = (o, t, e, i) => {
|
|
34104
34106
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
34105
34107
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
34106
|
-
return n &&
|
|
34108
|
+
return n && fA(t, e, n), n;
|
|
34107
34109
|
};
|
|
34108
34110
|
class Dl extends ft {
|
|
34109
34111
|
constructor() {
|
|
@@ -34119,7 +34121,7 @@ class Dl extends ft {
|
|
|
34119
34121
|
this.color.defaultValue = { r: 0, g: 0, b: 0, a: 1 }, this.intensity.defaultValue = 0, this.center.defaultValue = { x: 0.5, y: 0.5 };
|
|
34120
34122
|
}
|
|
34121
34123
|
onCreateEffect() {
|
|
34122
|
-
const e = new
|
|
34124
|
+
const e = new D.POSTPROCESSING.MODULE.VignetteEffect();
|
|
34123
34125
|
return this.intensity.onValueChanged = (i) => {
|
|
34124
34126
|
e.offset = i, this.updateDarkness(e);
|
|
34125
34127
|
}, this.color.onValueChanged = (i) => {
|
|
@@ -34194,8 +34196,8 @@ class xx {
|
|
|
34194
34196
|
async onApply(t, e) {
|
|
34195
34197
|
if (!e) return;
|
|
34196
34198
|
await Promise.all([
|
|
34197
|
-
|
|
34198
|
-
|
|
34199
|
+
D.POSTPROCESSING.load(),
|
|
34200
|
+
D.POSTPROCESSING_AO.load()
|
|
34199
34201
|
// import("./Effects/Sharpening.effect")
|
|
34200
34202
|
]), t[Kp] = this, ws && console.log("Apply Postprocessing Effects", e), this._lastVolumeComponents = [...e], this._effects.length = 0;
|
|
34201
34203
|
const i = {
|
|
@@ -34206,25 +34208,32 @@ class xx {
|
|
|
34206
34208
|
const s = this._lastVolumeComponents[n];
|
|
34207
34209
|
if (s.context = t, s.apply) {
|
|
34208
34210
|
if (s.active) {
|
|
34211
|
+
let a = function(h, d) {
|
|
34212
|
+
return d ? (d instanceof D.POSTPROCESSING.MODULE.Effect || d instanceof D.POSTPROCESSING.MODULE.Pass || console.warn(`PostprocessingEffect ${h} created neither Effect nor Pass - this might be caused by a bundler error or false import. Below you find some possible solutions:
|
|
34213
|
+
- If you create custom effect try creating it like this: 'new NEEDLE_ENGINE_MODULES.POSTPROCESSING.MODULE.Effect(...)' instead of 'new Effect(...)'`), !0) : !1;
|
|
34214
|
+
};
|
|
34209
34215
|
if (!t.mainCameraComponent) {
|
|
34210
34216
|
console.error("No camera in scene found or available yet - can not create postprocessing effects");
|
|
34211
34217
|
return;
|
|
34212
34218
|
}
|
|
34213
|
-
const
|
|
34214
|
-
if (!
|
|
34215
|
-
|
|
34216
|
-
|
|
34217
|
-
|
|
34218
|
-
|
|
34219
|
+
const l = s.apply(i);
|
|
34220
|
+
if (!l) continue;
|
|
34221
|
+
const c = s.typeName || s.constructor.name;
|
|
34222
|
+
if (Array.isArray(l))
|
|
34223
|
+
for (const h of l)
|
|
34224
|
+
a(c, h) && this._effects.push({
|
|
34225
|
+
effect: h,
|
|
34219
34226
|
typeName: s.typeName,
|
|
34220
34227
|
priority: s.order
|
|
34221
34228
|
});
|
|
34222
|
-
else
|
|
34229
|
+
else {
|
|
34230
|
+
if (!a(c, l)) continue;
|
|
34223
34231
|
this._effects.push({
|
|
34224
|
-
effect:
|
|
34232
|
+
effect: l,
|
|
34225
34233
|
typeName: s.typeName,
|
|
34226
34234
|
priority: s.order
|
|
34227
34235
|
});
|
|
34236
|
+
}
|
|
34228
34237
|
}
|
|
34229
34238
|
} else
|
|
34230
34239
|
s.active && we("Volume component is not a VolumeComponent: " + s.__type);
|
|
@@ -34252,15 +34261,15 @@ class xx {
|
|
|
34252
34261
|
if (this._anyPassHasDepth = !1, this._anyPassHasNormal = !1, this._hasSmaaEffect = !1, this._effects.length <= 0)
|
|
34253
34262
|
return;
|
|
34254
34263
|
const e = t.mainCameraComponent, i = t.renderer, n = t.scene, s = e.threeCamera;
|
|
34255
|
-
if (typeof i[Zl] == "boolean" && (i.autoClear = i[Zl]), i[Zl] = i.autoClear, typeof i[Jl] == "number" && (i.toneMapping = i[Jl]), i[Jl] = i.toneMapping, i.toneMapping != Dd && !this._effects.find((u) => u instanceof
|
|
34256
|
-
const u = new
|
|
34264
|
+
if (typeof i[Zl] == "boolean" && (i.autoClear = i[Zl]), i[Zl] = i.autoClear, typeof i[Jl] == "number" && (i.toneMapping = i[Jl]), i[Jl] = i.toneMapping, i.toneMapping != Dd && !this._effects.find((u) => u instanceof D.POSTPROCESSING.MODULE.ToneMappingEffect)) {
|
|
34265
|
+
const u = new D.POSTPROCESSING.MODULE.ToneMappingEffect();
|
|
34257
34266
|
u.name = `ToneMapping (${i.toneMapping})`, u.mode = Id(i.toneMapping), this._effects.push({
|
|
34258
34267
|
typeName: "ToneMapping",
|
|
34259
34268
|
effect: u,
|
|
34260
34269
|
priority: gt.ToneMapping
|
|
34261
34270
|
});
|
|
34262
34271
|
}
|
|
34263
|
-
this._composer || (this._composer = new
|
|
34272
|
+
this._composer || (this._composer = new D.POSTPROCESSING.MODULE.EffectComposer(i, {
|
|
34264
34273
|
frameBufferType: Xf,
|
|
34265
34274
|
stencilBuffer: !0
|
|
34266
34275
|
})), t.composer && t.composer !== this._composer && console.warn("There's already an active EffectComposer in your scene: replacing it with a new one. This might cause unexpected behaviour. Make sure to only use one PostprocessingManager/Volume in your scene."), t.composer = this._composer;
|
|
@@ -34269,7 +34278,7 @@ class xx {
|
|
|
34269
34278
|
for (const u of a.passes)
|
|
34270
34279
|
u.dispose();
|
|
34271
34280
|
a.removeAllPasses();
|
|
34272
|
-
const l = new
|
|
34281
|
+
const l = new D.POSTPROCESSING.MODULE.RenderPass(n, s);
|
|
34273
34282
|
l.name = "RenderPass", l.mainScene = n, a.addPass(l);
|
|
34274
34283
|
const c = l.render;
|
|
34275
34284
|
(d = this._customInputBuffer) == null || d.dispose(), this._customInputBuffer = null, l.render = (u, f, m, g, _) => {
|
|
@@ -34296,7 +34305,7 @@ class xx {
|
|
|
34296
34305
|
let u = !1, f = null;
|
|
34297
34306
|
for (let _ = this._effects.length - 1; _ >= 0; _--) {
|
|
34298
34307
|
const y = this._effects[_].effect;
|
|
34299
|
-
if (y instanceof
|
|
34308
|
+
if (y instanceof D.POSTPROCESSING.MODULE.ToneMappingEffect) {
|
|
34300
34309
|
if (u) {
|
|
34301
34310
|
ws && console.warn(`[PostProcessing] Found multiple tonemapping effects in the scene: ${y.name} and ${f == null ? void 0 : f.name}. Only the last one added will be used.`), this._effects.splice(_, 1);
|
|
34302
34311
|
continue;
|
|
@@ -34308,11 +34317,11 @@ class xx {
|
|
|
34308
34317
|
let g = !1;
|
|
34309
34318
|
for (let _ = 0; _ < this._effects.length; _++) {
|
|
34310
34319
|
const b = this._effects[_].effect;
|
|
34311
|
-
if (b instanceof
|
|
34312
|
-
if (b instanceof
|
|
34313
|
-
const v = b.getAttributes(), x =
|
|
34314
|
-
v & x && (ws && console.log("[PostProcessing] Convolution effect: " + b.name), g && (ws && console.log("[PostProcessing] Merging effects
|
|
34315
|
-
} else b instanceof
|
|
34320
|
+
if (b instanceof D.POSTPROCESSING.MODULE.SMAAEffect ? this._hasSmaaEffect = !0 : b instanceof D.POSTPROCESSING.MODULE.NormalPass && (this._anyPassHasNormal = !0), !(b instanceof D.POSTPROCESSING.MODULE.ToneMappingEffect && f !== b))
|
|
34321
|
+
if (b instanceof D.POSTPROCESSING.MODULE.Effect) {
|
|
34322
|
+
const v = b.getAttributes(), x = D.POSTPROCESSING.MODULE.EffectAttribute.CONVOLUTION;
|
|
34323
|
+
v & x && (ws && console.log("[PostProcessing] Convolution effect: " + b.name), g && (ws && console.log("[PostProcessing] → Merging effects [" + m.map((k) => k.name).join(", ") + "]"), this.createPassForMergeableEffects(m, a, s, n)), g = !0), m.push(b);
|
|
34324
|
+
} else b instanceof D.POSTPROCESSING.MODULE.Pass ? (g = !1, this.createPassForMergeableEffects(m, a, s, n), b.renderToScreen = !1, a.addPass(b)) : (g = !1, this.createPassForMergeableEffects(m, a, s, n), a.addPass(b));
|
|
34316
34325
|
}
|
|
34317
34326
|
this.createPassForMergeableEffects(m, a, s, n);
|
|
34318
34327
|
} catch (u) {
|
|
@@ -34333,18 +34342,18 @@ class xx {
|
|
|
34333
34342
|
/** Should be called before `composer.addPass()` to create an effect pass with all previously collected effects that can be merged up to that point */
|
|
34334
34343
|
createPassForMergeableEffects(t, e, i, n) {
|
|
34335
34344
|
if (t.length > 0) {
|
|
34336
|
-
const s = new
|
|
34345
|
+
const s = new D.POSTPROCESSING.MODULE.EffectPass(i, ...t);
|
|
34337
34346
|
s.name = t.map((a) => a.name).join(", "), s.mainScene = n, s.enabled = !0, s.renderToScreen = !1, e.addPass(s), t.length = 0;
|
|
34338
34347
|
}
|
|
34339
34348
|
}
|
|
34340
34349
|
_onCreateEffectsDebug(t, e) {
|
|
34341
34350
|
if (ws === "passes") {
|
|
34342
|
-
const i = new
|
|
34343
|
-
blendFunction:
|
|
34351
|
+
const i = new D.POSTPROCESSING.MODULE.DepthEffect({
|
|
34352
|
+
blendFunction: D.POSTPROCESSING.MODULE.BlendFunction.NORMAL,
|
|
34344
34353
|
inverted: !0
|
|
34345
34354
|
});
|
|
34346
34355
|
i.name = "Depth Effect";
|
|
34347
|
-
const n = new
|
|
34356
|
+
const n = new D.POSTPROCESSING.MODULE.EffectPass(e, i);
|
|
34348
34357
|
if (n.name = "Depth Effect Pass", n.enabled = !1, t.passes.push(n), this._passIndices !== null) {
|
|
34349
34358
|
const a = [t.passes[0]];
|
|
34350
34359
|
this._passIndices.length > 0 && a.push(
|
|
@@ -34372,13 +34381,13 @@ class xx {
|
|
|
34372
34381
|
}
|
|
34373
34382
|
}
|
|
34374
34383
|
}
|
|
34375
|
-
var
|
|
34384
|
+
var pA = Object.defineProperty, Sx = (o, t, e, i) => {
|
|
34376
34385
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
34377
34386
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
34378
|
-
return n &&
|
|
34387
|
+
return n && pA(t, e, n), n;
|
|
34379
34388
|
};
|
|
34380
34389
|
const mr = S("debugpost");
|
|
34381
|
-
class Th extends
|
|
34390
|
+
class Th extends j {
|
|
34382
34391
|
constructor() {
|
|
34383
34392
|
super(...arguments);
|
|
34384
34393
|
r(this, "sharedProfile");
|
|
@@ -34456,7 +34465,9 @@ class Th extends D {
|
|
|
34456
34465
|
if (!this.context.isInXR && (this.context.mainCamera && this._isDirty && this.apply(), this.context.composer && this._postprocessing && this._postprocessing.composer === this.context.composer)) {
|
|
34457
34466
|
if (this.context.renderer.getContext().isContextLost() && this.context.renderer.forceContextRestore(), this.context.composer.getRenderer() !== this.context.renderer && this.context.composer.setRenderer(this.context.renderer), this.context.composer.setMainScene(this.context.scene), this.multisampling === "auto")
|
|
34458
34467
|
if (this._postprocessing && this._postprocessing.hasSmaaEffect)
|
|
34459
|
-
this._postprocessing.multisampling !== 0 && (this._postprocessing.multisampling = 0, (mr || z()) && console.
|
|
34468
|
+
this._postprocessing.multisampling !== 0 && (this._postprocessing.multisampling = 0, (mr || z()) && console.log(`[PostProcessing] multisampling is disabled because it's set to 'auto' on your PostprocessingManager/Volume component that also has an SMAA effect.
|
|
34469
|
+
|
|
34470
|
+
If you need multisampling consider changing 'auto' to a fixed value (e.g. 4).`));
|
|
34460
34471
|
else {
|
|
34461
34472
|
const e = this.context.time.realtimeSinceStartup - this._multisampleAutoChangeTime;
|
|
34462
34473
|
if (this.context.time.realtimeSinceStartup - this._componentEnabledTime > 2 && e > 0.5) {
|
|
@@ -34566,18 +34577,18 @@ Sx([
|
|
|
34566
34577
|
const yd = /* @__PURE__ */ new Map();
|
|
34567
34578
|
LE(Th);
|
|
34568
34579
|
async function By(o) {
|
|
34569
|
-
const { NeedleEngineWebComponent: t } = await Promise.resolve().then(() =>
|
|
34580
|
+
const { NeedleEngineWebComponent: t } = await Promise.resolve().then(() => $I);
|
|
34570
34581
|
t.observedAttributes.includes(o) || t.observedAttributes.push(o);
|
|
34571
34582
|
}
|
|
34572
|
-
var
|
|
34583
|
+
var mA = Object.defineProperty, Ot = (o, t, e, i) => {
|
|
34573
34584
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
34574
34585
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
34575
|
-
return n &&
|
|
34586
|
+
return n && mA(t, e, n), n;
|
|
34576
34587
|
};
|
|
34577
|
-
const It = S("debugsceneswitcher"),
|
|
34588
|
+
const It = S("debugsceneswitcher"), gA = S("sceneswitcher:clearscene"), Ld = "scene";
|
|
34578
34589
|
By(Ld);
|
|
34579
34590
|
const po = Promise.resolve(!1);
|
|
34580
|
-
class lt extends
|
|
34591
|
+
class lt extends j {
|
|
34581
34592
|
constructor() {
|
|
34582
34593
|
super(...arguments);
|
|
34583
34594
|
r(this, "autoLoadFirstScene", !0);
|
|
@@ -34701,7 +34712,7 @@ class lt extends D {
|
|
|
34701
34712
|
}
|
|
34702
34713
|
})), this._engineElementOverserver.observe(this.context.domElement, {
|
|
34703
34714
|
attributes: !0
|
|
34704
|
-
}), this._preloadScheduler || (this._preloadScheduler = new
|
|
34715
|
+
}), this._preloadScheduler || (this._preloadScheduler = new yA(this)), this._preloadScheduler.maxLoadAhead = this.preloadNext, this._preloadScheduler.maxLoadBehind = this.preloadPrevious, this._preloadScheduler.maxConcurrent = this.preloadConcurrent, this._preloadScheduler.begin(2e3), this.autoLoadFirstScene && this._currentIndex === -1 && !await this.tryLoadFromQueryParam()) {
|
|
34705
34716
|
const e = this.context.domElement.getAttribute(Ld);
|
|
34706
34717
|
try {
|
|
34707
34718
|
(e === null || !await this.trySelectSceneFromValue(e)) && this._currentIndex === -1 && this.select(0);
|
|
@@ -34876,7 +34887,7 @@ class lt extends D {
|
|
|
34876
34887
|
if (!e.asset)
|
|
34877
34888
|
return It && console.warn("Failed loading scene:", e), !1;
|
|
34878
34889
|
if (this._currentIndex === i) {
|
|
34879
|
-
if (It && console.log("ADD", e.url), this._currentScene = e,
|
|
34890
|
+
if (It && console.log("ADD", e.url), this._currentScene = e, gA) {
|
|
34880
34891
|
const m = ((a = this.context.mainCameraComponent) == null ? void 0 : a.gameObject) || this.context.mainCamera;
|
|
34881
34892
|
m == null || m.removeFromParent();
|
|
34882
34893
|
const g = this.gameObject.removeFromParent();
|
|
@@ -35053,7 +35064,7 @@ function i0(o) {
|
|
|
35053
35064
|
const t = o.split("/").pop(), e = t == null ? void 0 : t.split(".").shift();
|
|
35054
35065
|
return e != null && e.length ? e : o;
|
|
35055
35066
|
}
|
|
35056
|
-
class
|
|
35067
|
+
class yA {
|
|
35057
35068
|
/**
|
|
35058
35069
|
* Creates a new PreLoadScheduler instance
|
|
35059
35070
|
* @param rooms The SceneSwitcher that this scheduler belongs to
|
|
@@ -35096,7 +35107,7 @@ class gA {
|
|
|
35096
35107
|
const d = c ? e + i : e - i;
|
|
35097
35108
|
if (!(d < 0) && !(d < 0 || d >= s.length) && !this._loadTasks.some((u) => u.index === d)) {
|
|
35098
35109
|
const u = s[d];
|
|
35099
|
-
It && console.log("Preload scene", { roomIndex: d, searchForward: c, lastRoom: e, currentIndex: this._switcher.currentIndex, tasks: this._loadTasks.length }, u == null ? void 0 : u.url), new
|
|
35110
|
+
It && console.log("Preload scene", { roomIndex: d, searchForward: c, lastRoom: e, currentIndex: this._switcher.currentIndex, tasks: this._loadTasks.length }, u == null ? void 0 : u.url), new _A(d, u, this._loadTasks);
|
|
35100
35111
|
}
|
|
35101
35112
|
}, 200);
|
|
35102
35113
|
}
|
|
@@ -35126,7 +35137,7 @@ class gA {
|
|
|
35126
35137
|
return !0;
|
|
35127
35138
|
}
|
|
35128
35139
|
}
|
|
35129
|
-
class
|
|
35140
|
+
class _A {
|
|
35130
35141
|
/**
|
|
35131
35142
|
* Creates a new LoadTask and begins loading immediately
|
|
35132
35143
|
* @param index The index of the scene in the scenes array
|
|
@@ -35151,7 +35162,7 @@ class yA {
|
|
|
35151
35162
|
t >= 0 && this.tasks.splice(t, 1);
|
|
35152
35163
|
}
|
|
35153
35164
|
}
|
|
35154
|
-
function
|
|
35165
|
+
function bA() {
|
|
35155
35166
|
return new Promise((o, t) => {
|
|
35156
35167
|
const i = () => {
|
|
35157
35168
|
i != null && (document.removeEventListener("pointerdown", i), document.removeEventListener("click", i), document.removeEventListener("dragstart", i), document.removeEventListener("touchstart", i), o());
|
|
@@ -35159,17 +35170,17 @@ function _A() {
|
|
|
35159
35170
|
document.addEventListener("pointerdown", i), document.addEventListener("click", i), document.addEventListener("dragstart", i), document.addEventListener("touchstart", i);
|
|
35160
35171
|
});
|
|
35161
35172
|
}
|
|
35162
|
-
async function
|
|
35163
|
-
await
|
|
35173
|
+
async function vA(o) {
|
|
35174
|
+
await bA(), o();
|
|
35164
35175
|
}
|
|
35165
|
-
var
|
|
35166
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
35176
|
+
var wA = Object.defineProperty, xA = Object.getOwnPropertyDescriptor, Hi = (o, t, e, i) => {
|
|
35177
|
+
for (var n = i > 1 ? void 0 : i ? xA(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
35167
35178
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
35168
|
-
return i && n &&
|
|
35179
|
+
return i && n && wA(t, e, n), n;
|
|
35169
35180
|
};
|
|
35170
35181
|
const mt = S("debugvideo");
|
|
35171
35182
|
var Cx = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.AdjustHeight = 1] = "AdjustHeight", o[o.AdjustWidth = 2] = "AdjustWidth", o))(Cx || {}), Px = /* @__PURE__ */ ((o) => (o[o.VideoClip = 0] = "VideoClip", o[o.Url = 1] = "Url", o))(Px || {}), Ox = /* @__PURE__ */ ((o) => (o[o.CameraFarPlane = 0] = "CameraFarPlane", o[o.CameraNearPlane = 1] = "CameraNearPlane", o[o.RenderTexture = 2] = "RenderTexture", o[o.MaterialOverride = 3] = "MaterialOverride", o))(Ox || {});
|
|
35172
|
-
class xt extends
|
|
35183
|
+
class xt extends j {
|
|
35173
35184
|
/**
|
|
35174
35185
|
* @internal
|
|
35175
35186
|
*/
|
|
@@ -35218,7 +35229,7 @@ class xt extends D {
|
|
|
35218
35229
|
var e;
|
|
35219
35230
|
mt && console.log("HLS: available", this.clip), !(!this.shouldUseM3U || !this.url) && (this._hls || (this._hls = new Hls()), this.videoElement.autoplay = !0, this._hls.loadSource(this.url), this._hls.attachMedia(this.videoElement), (e = this._videoElement) == null || e.play(), mt && console.log("HLS: loaded", this.clip));
|
|
35220
35231
|
});
|
|
35221
|
-
|
|
35232
|
+
vA(() => {
|
|
35222
35233
|
this._receivedInput = !0, this.updateVideoElementSettings();
|
|
35223
35234
|
}), this._targetObjects = [], S("videoscreenspace") && window.addEventListener("keydown", (e) => {
|
|
35224
35235
|
e.key === "f" && (this.screenspace = !this.screenspace);
|
|
@@ -35427,7 +35438,7 @@ class xt extends D {
|
|
|
35427
35438
|
var i;
|
|
35428
35439
|
if (e) {
|
|
35429
35440
|
if (!this._videoTexture) return;
|
|
35430
|
-
this._overlay || (this._overlay = new
|
|
35441
|
+
this._overlay || (this._overlay = new SA(this.context)), this._overlay.add(this._videoTexture);
|
|
35431
35442
|
} else (i = this._overlay) == null || i.remove(this._videoTexture);
|
|
35432
35443
|
this._overlay && (this._overlay.enabled = e);
|
|
35433
35444
|
}
|
|
@@ -35570,14 +35581,14 @@ Hi([
|
|
|
35570
35581
|
Hi([
|
|
35571
35582
|
p()
|
|
35572
35583
|
], xt.prototype, "audioOutputMode", 1);
|
|
35573
|
-
class
|
|
35584
|
+
class SA {
|
|
35574
35585
|
constructor(t) {
|
|
35575
35586
|
r(this, "context");
|
|
35576
35587
|
r(this, "_videos", []);
|
|
35577
35588
|
r(this, "_screenspaceModeQuad");
|
|
35578
35589
|
r(this, "_isInScreenspaceMode", !1);
|
|
35579
35590
|
r(this, "_input");
|
|
35580
|
-
this.context = t, this._input = new
|
|
35591
|
+
this.context = t, this._input = new CA(this);
|
|
35581
35592
|
}
|
|
35582
35593
|
get enabled() {
|
|
35583
35594
|
return this._isInScreenspaceMode;
|
|
@@ -35600,7 +35611,7 @@ class xA {
|
|
|
35600
35611
|
if (!t) return;
|
|
35601
35612
|
if (this._isInScreenspaceMode = !0, !this._screenspaceModeQuad) {
|
|
35602
35613
|
if (this._screenspaceModeQuad = ta.createPrimitive(ol.Quad, {
|
|
35603
|
-
material: new
|
|
35614
|
+
material: new PA(t)
|
|
35604
35615
|
}), !this._screenspaceModeQuad) return;
|
|
35605
35616
|
this._screenspaceModeQuad.geometry.scale(2, 2, 2);
|
|
35606
35617
|
}
|
|
@@ -35619,7 +35630,7 @@ class xA {
|
|
|
35619
35630
|
t && (t.screenAspect = this.context.domElement.clientWidth / this.context.domElement.clientHeight);
|
|
35620
35631
|
}
|
|
35621
35632
|
}
|
|
35622
|
-
class
|
|
35633
|
+
class CA {
|
|
35623
35634
|
constructor(t) {
|
|
35624
35635
|
r(this, "_onResizeScreenFn");
|
|
35625
35636
|
r(this, "_onKeyUpFn");
|
|
@@ -35671,7 +35682,7 @@ class SA {
|
|
|
35671
35682
|
this._onResizeScreenFn && (window.removeEventListener("resize", this._onResizeScreenFn), this._onResizeScreenFn = void 0), this._onKeyUpFn && (window.removeEventListener("keyup", this._onKeyUpFn), this._onKeyUpFn = void 0), this._onMouseWheelFn && (window.removeEventListener("wheel", this._onMouseWheelFn), this._onMouseWheelFn = void 0);
|
|
35672
35683
|
}
|
|
35673
35684
|
}
|
|
35674
|
-
class
|
|
35685
|
+
class PA extends is {
|
|
35675
35686
|
// maxZoom : number = 10
|
|
35676
35687
|
constructor(e) {
|
|
35677
35688
|
super();
|
|
@@ -35757,14 +35768,14 @@ class CA extends is {
|
|
|
35757
35768
|
this.offset = this.offset.set(0, 0), this.zoom = 1, this.needsUpdate = !0;
|
|
35758
35769
|
}
|
|
35759
35770
|
}
|
|
35760
|
-
var
|
|
35761
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
35771
|
+
var OA = Object.defineProperty, kA = Object.getOwnPropertyDescriptor, Eh = (o, t, e, i) => {
|
|
35772
|
+
for (var n = i > 1 ? void 0 : i ? kA(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
35762
35773
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
35763
|
-
return i && n &&
|
|
35774
|
+
return i && n && OA(t, e, n), n;
|
|
35764
35775
|
};
|
|
35765
35776
|
const Rt = S("debugscreensharing");
|
|
35766
35777
|
var kx = /* @__PURE__ */ ((o) => (o[o.Screen = 0] = "Screen", o[o.Camera = 1] = "Camera", o[o.Canvas = 2] = "Canvas", o[o.Microphone = 3] = "Microphone", o))(kx || {});
|
|
35767
|
-
class ua extends
|
|
35778
|
+
class ua extends j {
|
|
35768
35779
|
constructor() {
|
|
35769
35780
|
super(...arguments);
|
|
35770
35781
|
r(this, "allowStartOnClick", !0);
|
|
@@ -36056,12 +36067,12 @@ Eh([
|
|
|
36056
36067
|
Eh([
|
|
36057
36068
|
p()
|
|
36058
36069
|
], ua.prototype, "deviceName", 2);
|
|
36059
|
-
var
|
|
36070
|
+
var MA = Object.defineProperty, Mx = (o, t, e, i) => {
|
|
36060
36071
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
36061
36072
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
36062
|
-
return n &&
|
|
36073
|
+
return n && MA(t, e, n), n;
|
|
36063
36074
|
};
|
|
36064
|
-
class Lf extends
|
|
36075
|
+
class Lf extends j {
|
|
36065
36076
|
constructor() {
|
|
36066
36077
|
super(...arguments);
|
|
36067
36078
|
r(this, "mode", 0);
|
|
@@ -36160,13 +36171,13 @@ Mx([
|
|
|
36160
36171
|
Mx([
|
|
36161
36172
|
p(ce)
|
|
36162
36173
|
], Lf.prototype, "shadowColor");
|
|
36163
|
-
var
|
|
36174
|
+
var RA = Object.defineProperty, Ah = (o, t, e, i) => {
|
|
36164
36175
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
36165
36176
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
36166
|
-
return n &&
|
|
36177
|
+
return n && RA(t, e, n), n;
|
|
36167
36178
|
};
|
|
36168
36179
|
const Lt = S("debugskybox");
|
|
36169
|
-
By("
|
|
36180
|
+
By("background-image");
|
|
36170
36181
|
By("environment-image");
|
|
36171
36182
|
function n0(o, t, e, i, n) {
|
|
36172
36183
|
const s = new Fy();
|
|
@@ -36181,10 +36192,10 @@ function n0(o, t, e, i, n) {
|
|
|
36181
36192
|
const _u = new Array();
|
|
36182
36193
|
fe.registerCallback(me.ContextCreationStart, (o) => {
|
|
36183
36194
|
var n;
|
|
36184
|
-
const t = o.context, e = t.domElement.getAttribute("
|
|
36195
|
+
const t = o.context, e = t.domElement.getAttribute("background-image"), i = t.domElement.getAttribute("environment-image");
|
|
36185
36196
|
if (e) {
|
|
36186
|
-
Lt && console.log("Creating remote skybox to load " + e), ((n = t.mainCameraComponent) == null ? void 0 : n.clearFlags) !== $r.Skybox && console.warn('"
|
|
36187
|
-
const s = n0(t, e, !0, !1, "
|
|
36197
|
+
Lt && console.log("Creating remote skybox to load " + e), ((n = t.mainCameraComponent) == null ? void 0 : n.clearFlags) !== $r.Skybox && console.warn('"background-image" attribute has no effect: camera clear flags are not set to "Skybox"');
|
|
36198
|
+
const s = n0(t, e, !0, !1, "background-image");
|
|
36188
36199
|
_u.push(s);
|
|
36189
36200
|
}
|
|
36190
36201
|
if (i) {
|
|
@@ -36203,19 +36214,19 @@ function s0(o) {
|
|
|
36203
36214
|
const e = Rx().find((i) => i.src === o);
|
|
36204
36215
|
return e ? (Lt && console.log("Skybox: Found previously loaded texture for " + o), e.texture) : null;
|
|
36205
36216
|
}
|
|
36206
|
-
async function
|
|
36217
|
+
async function TA(o) {
|
|
36207
36218
|
const t = await o;
|
|
36208
36219
|
xv(t, !0), Ie(t);
|
|
36209
36220
|
}
|
|
36210
|
-
function
|
|
36221
|
+
function EA(o, t) {
|
|
36211
36222
|
const e = Rx();
|
|
36212
36223
|
for (; e.length > 5; ) {
|
|
36213
36224
|
const i = e.shift();
|
|
36214
|
-
i &&
|
|
36225
|
+
i && TA(i.texture);
|
|
36215
36226
|
}
|
|
36216
36227
|
t.then((i) => xv(i, !1)), e.push({ src: o, texture: t });
|
|
36217
36228
|
}
|
|
36218
|
-
const Kr = class extends
|
|
36229
|
+
const Kr = class extends j {
|
|
36219
36230
|
constructor() {
|
|
36220
36231
|
super(...arguments);
|
|
36221
36232
|
r(this, "url");
|
|
@@ -36300,7 +36311,7 @@ const Kr = class extends D {
|
|
|
36300
36311
|
*/
|
|
36301
36312
|
async setSkybox(e, i) {
|
|
36302
36313
|
var a;
|
|
36303
|
-
if (!this.activeAndEnabled || (e =
|
|
36314
|
+
if (!this.activeAndEnabled || (e = AA(e, this.environment, this.background), !e)) return !1;
|
|
36304
36315
|
if (i ?? (i = e), this.isValidTextureType(i) || console.warn("Potentially invalid skybox url", i, "on", this.name), Lt && console.log("Set remote skybox url: " + e), this._prevUrl === e && this._prevLoadedEnvironment)
|
|
36305
36316
|
return this.apply(), !0;
|
|
36306
36317
|
(a = this._prevLoadedEnvironment) == null || a.dispose(), this._prevLoadedEnvironment = void 0, this._prevUrl = e;
|
|
@@ -36338,7 +36349,7 @@ const Kr = class extends D {
|
|
|
36338
36349
|
this._loader instanceof $a || (this._loader = new $a());
|
|
36339
36350
|
Lt && console.log("Loading skybox: " + e);
|
|
36340
36351
|
const c = this._loader.loadAsync(e);
|
|
36341
|
-
return
|
|
36352
|
+
return EA(i, c), await c;
|
|
36342
36353
|
}
|
|
36343
36354
|
apply() {
|
|
36344
36355
|
var i;
|
|
@@ -36377,7 +36388,7 @@ Ah([
|
|
|
36377
36388
|
p()
|
|
36378
36389
|
], Kr.prototype, "allowNetworking");
|
|
36379
36390
|
let Fy = Kr;
|
|
36380
|
-
function
|
|
36391
|
+
function AA(o, t, e) {
|
|
36381
36392
|
const i = t && !e;
|
|
36382
36393
|
switch (o == null ? void 0 : o.toLowerCase()) {
|
|
36383
36394
|
case "studio":
|
|
@@ -36391,12 +36402,12 @@ function EA(o, t, e) {
|
|
|
36391
36402
|
}
|
|
36392
36403
|
return o === void 0 ? null : o;
|
|
36393
36404
|
}
|
|
36394
|
-
var
|
|
36405
|
+
var IA = Object.defineProperty, Df = (o, t, e, i) => {
|
|
36395
36406
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
36396
36407
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
36397
|
-
return n &&
|
|
36408
|
+
return n && IA(t, e, n), n;
|
|
36398
36409
|
}, Ar;
|
|
36399
|
-
const Ih = (Ar = class extends
|
|
36410
|
+
const Ih = (Ar = class extends j {
|
|
36400
36411
|
constructor() {
|
|
36401
36412
|
super(...arguments);
|
|
36402
36413
|
r(this, "target", null);
|
|
@@ -36441,16 +36452,16 @@ Df([
|
|
|
36441
36452
|
p()
|
|
36442
36453
|
], Ih.prototype, "positionAxes");
|
|
36443
36454
|
let zy = Ih;
|
|
36444
|
-
var
|
|
36455
|
+
var LA = Object.defineProperty, Lh = (o, t, e, i) => {
|
|
36445
36456
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
36446
36457
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
36447
|
-
return n &&
|
|
36458
|
+
return n && LA(t, e, n), n;
|
|
36448
36459
|
};
|
|
36449
36460
|
const Ic = S("debugspatialtrigger"), o0 = new Wo(), r0 = new Wo();
|
|
36450
|
-
function
|
|
36461
|
+
function DA(o, t) {
|
|
36451
36462
|
return o0.mask = o, r0.mask = t, o0.test(r0);
|
|
36452
36463
|
}
|
|
36453
|
-
class Hs extends
|
|
36464
|
+
class Hs extends j {
|
|
36454
36465
|
constructor() {
|
|
36455
36466
|
super(...arguments);
|
|
36456
36467
|
r(this, "triggerMask", 0);
|
|
@@ -36477,7 +36488,7 @@ class Hs extends D {
|
|
|
36477
36488
|
update() {
|
|
36478
36489
|
this.currentIntersected.length = 0;
|
|
36479
36490
|
for (const e of Uy.triggers)
|
|
36480
|
-
|
|
36491
|
+
DA(e.triggerMask, this.triggerMask) && e.test(this.gameObject) && this.currentIntersected.push(e);
|
|
36481
36492
|
for (let e = this.lastIntersected.length - 1; e >= 0; e--) {
|
|
36482
36493
|
const i = this.lastIntersected[e];
|
|
36483
36494
|
this.currentIntersected.indexOf(i) < 0 && (this.onExitTrigger(i), this.lastIntersected.splice(e, 1));
|
|
@@ -36524,7 +36535,7 @@ Lh([
|
|
|
36524
36535
|
p(Se)
|
|
36525
36536
|
], Hs.prototype, "onExit");
|
|
36526
36537
|
var Fs;
|
|
36527
|
-
const Tx = (Fs = class extends
|
|
36538
|
+
const Tx = (Fs = class extends j {
|
|
36528
36539
|
constructor() {
|
|
36529
36540
|
super(...arguments);
|
|
36530
36541
|
r(this, "triggerMask");
|
|
@@ -36592,13 +36603,13 @@ Lh([
|
|
|
36592
36603
|
p()
|
|
36593
36604
|
], Tx.prototype, "triggerMask");
|
|
36594
36605
|
let Uy = Tx;
|
|
36595
|
-
var
|
|
36606
|
+
var jA = Object.defineProperty, BA = (o, t, e, i) => {
|
|
36596
36607
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
36597
36608
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
36598
|
-
return n &&
|
|
36609
|
+
return n && jA(t, e, n), n;
|
|
36599
36610
|
};
|
|
36600
36611
|
const Ei = S("debugspectator");
|
|
36601
|
-
class Ny extends
|
|
36612
|
+
class Ny extends j {
|
|
36602
36613
|
constructor() {
|
|
36603
36614
|
super(...arguments);
|
|
36604
36615
|
/** Reference to the Camera component on this GameObject */
|
|
@@ -36689,11 +36700,11 @@ class Ny extends D {
|
|
|
36689
36700
|
return this.isSpectating && ((e = this.target) == null ? void 0 : e.currentObject) === ((i = this.context.players.getPlayerView(this.localId)) == null ? void 0 : i.currentObject);
|
|
36690
36701
|
}
|
|
36691
36702
|
awake() {
|
|
36692
|
-
if (this._debug = new
|
|
36703
|
+
if (this._debug = new UA(this.context, this), this._networking = new WA(this.context, this), this._networking.awake(), C.setActive(this.gameObject, !1), this.cam = C.getComponent(this.gameObject, Ai), !this.cam) {
|
|
36693
36704
|
console.warn("SpectatorCamera: Spectator camera needs camera component on the same object.", this);
|
|
36694
36705
|
return;
|
|
36695
36706
|
}
|
|
36696
|
-
!this._handler && this.cam && (this._handler = new
|
|
36707
|
+
!this._handler && this.cam && (this._handler = new FA(this.context, this.cam, this)), this.orbit = C.getComponent(this.context.mainCamera, xe);
|
|
36697
36708
|
}
|
|
36698
36709
|
onDestroy() {
|
|
36699
36710
|
var e, i;
|
|
@@ -36797,10 +36808,10 @@ class Ny extends D {
|
|
|
36797
36808
|
}
|
|
36798
36809
|
}
|
|
36799
36810
|
}
|
|
36800
|
-
|
|
36811
|
+
BA([
|
|
36801
36812
|
p()
|
|
36802
36813
|
], Ny.prototype, "useKeys");
|
|
36803
|
-
class
|
|
36814
|
+
class FA {
|
|
36804
36815
|
constructor(t, e, i) {
|
|
36805
36816
|
r(this, "context");
|
|
36806
36817
|
r(this, "cam");
|
|
@@ -36862,12 +36873,12 @@ class BA {
|
|
|
36862
36873
|
this.follow.followFactor = 3, this.follow.rotateFactor = 2, i.position.set(0, 0.5, 1.5);
|
|
36863
36874
|
break;
|
|
36864
36875
|
}
|
|
36865
|
-
this.follow.flipForward = !1, ((h = this.view) == null ? void 0 : h.viewDevice) !== Ur.Browser ? i.quaternion.copy(
|
|
36876
|
+
this.follow.flipForward = !1, ((h = this.view) == null ? void 0 : h.viewDevice) !== Ur.Browser ? i.quaternion.copy(zA) : i.quaternion.identity();
|
|
36866
36877
|
}
|
|
36867
36878
|
}
|
|
36868
36879
|
}
|
|
36869
|
-
const
|
|
36870
|
-
class
|
|
36880
|
+
const zA = new W().setFromAxisAngle(new w(0, 1, 0), Math.PI);
|
|
36881
|
+
class UA {
|
|
36871
36882
|
constructor(t, e) {
|
|
36872
36883
|
r(this, "context");
|
|
36873
36884
|
r(this, "spectator");
|
|
@@ -36902,7 +36913,7 @@ class zA {
|
|
|
36902
36913
|
}
|
|
36903
36914
|
}
|
|
36904
36915
|
}
|
|
36905
|
-
class
|
|
36916
|
+
class NA {
|
|
36906
36917
|
constructor(t, e, i) {
|
|
36907
36918
|
/** The user ID that is following */
|
|
36908
36919
|
r(this, "guid");
|
|
@@ -36914,14 +36925,14 @@ class UA {
|
|
|
36914
36925
|
this.guid = t, this.targetUserId = e, this.stoppedFollowing = i;
|
|
36915
36926
|
}
|
|
36916
36927
|
}
|
|
36917
|
-
class
|
|
36928
|
+
class $A {
|
|
36918
36929
|
constructor(t, e) {
|
|
36919
36930
|
r(this, "guid");
|
|
36920
36931
|
r(this, "userId");
|
|
36921
36932
|
this.guid = t.guid, this.userId = e;
|
|
36922
36933
|
}
|
|
36923
36934
|
}
|
|
36924
|
-
class
|
|
36935
|
+
class WA {
|
|
36925
36936
|
constructor(t, e) {
|
|
36926
36937
|
/** List of user IDs currently following this player */
|
|
36927
36938
|
r(this, "followers", []);
|
|
@@ -36955,7 +36966,7 @@ class $A {
|
|
|
36955
36966
|
*/
|
|
36956
36967
|
onSpectatedObjectChanged(t, e) {
|
|
36957
36968
|
if (Ei && console.log(this.context.connection.connectionId, "onSpectatedObjectChanged", t, e), this.context.connection.connectionId) {
|
|
36958
|
-
const i = (t == null ? void 0 : t.userId) === void 0, n = i ? e : t == null ? void 0 : t.userId, s = new
|
|
36969
|
+
const i = (t == null ? void 0 : t.userId) === void 0, n = i ? e : t == null ? void 0 : t.userId, s = new NA(this.context.connection.connectionId, n, i);
|
|
36959
36970
|
this.context.connection.send("spectator-follower-changed", s);
|
|
36960
36971
|
}
|
|
36961
36972
|
}
|
|
@@ -36966,7 +36977,7 @@ class $A {
|
|
|
36966
36977
|
onRequestFollowMe(t = !1) {
|
|
36967
36978
|
if (Ei && console.log("Request follow", this.context.connection.connectionId), this.context.connection.connectionId) {
|
|
36968
36979
|
this.spectator.stopSpectating();
|
|
36969
|
-
const e = t ? void 0 : this.context.connection.connectionId, i = new
|
|
36980
|
+
const e = t ? void 0 : this.context.connection.connectionId, i = new $A(this.spectator, e);
|
|
36970
36981
|
this.context.connection.send("spectator-request-follow", i);
|
|
36971
36982
|
}
|
|
36972
36983
|
}
|
|
@@ -37088,15 +37099,15 @@ class Vn {
|
|
|
37088
37099
|
t.finish(e, void 0, !0);
|
|
37089
37100
|
}
|
|
37090
37101
|
}
|
|
37091
|
-
var
|
|
37102
|
+
var VA = Object.defineProperty, HA = (o, t, e, i) => {
|
|
37092
37103
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
37093
37104
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
37094
|
-
return n &&
|
|
37105
|
+
return n && VA(t, e, n), n;
|
|
37095
37106
|
};
|
|
37096
37107
|
const bu = "SCAM";
|
|
37097
37108
|
gv(bu, Vn.getRootAsSyncedCameraModel);
|
|
37098
37109
|
const Si = new Pg();
|
|
37099
|
-
class
|
|
37110
|
+
class GA {
|
|
37100
37111
|
// dontSave: boolean = true;
|
|
37101
37112
|
// pos: { x: number, y: number, z: number } = { x: 0, y: 0, z: 0 };
|
|
37102
37113
|
// rot: { x: number, y: number, z: number } = { x: 0, y: 0, z: 0 };
|
|
@@ -37118,7 +37129,7 @@ class HA {
|
|
|
37118
37129
|
}
|
|
37119
37130
|
}
|
|
37120
37131
|
var Lo;
|
|
37121
|
-
const Ex = (Lo = class extends
|
|
37132
|
+
const Ex = (Lo = class extends j {
|
|
37122
37133
|
constructor() {
|
|
37123
37134
|
super(...arguments);
|
|
37124
37135
|
r(this, "cameraPrefab", null);
|
|
@@ -37164,7 +37175,7 @@ const Ex = (Lo = class extends D {
|
|
|
37164
37175
|
return;
|
|
37165
37176
|
}
|
|
37166
37177
|
if (!this.context.connection.isConnected || this.context.connection.connectionId === null) return;
|
|
37167
|
-
this._model === null && (this._model = new
|
|
37178
|
+
this._model === null && (this._model = new GA(this.context.connection.connectionId, this.context.connection.connectionId + "_camera"));
|
|
37168
37179
|
const i = te(e), n = Oe(e);
|
|
37169
37180
|
(i.distanceTo(this._lastWorldPosition) > 1e-3 || n.angleTo(this._lastWorldQuaternion) > 0.01) && (this._needsUpdate = !0), this._lastWorldPosition.copy(i), this._lastWorldQuaternion.copy(n), !((!this._needsUpdate || this.context.time.frameCount % 2 !== 0) && !(this.context.time.realtimeSinceStartup - this._lastUpdateTime > this._camTimeoutInSeconds * 0.5)) && (this._lastUpdateTime = this.context.time.realtimeSinceStartup, this._needsUpdate = !1, this._model.send(e, this.context.connection), this.context.isInXR || this.context.players.setPlayerView(this.context.connection.connectionId, e, Ur.Browser));
|
|
37170
37181
|
}
|
|
@@ -37192,17 +37203,17 @@ const Ex = (Lo = class extends D {
|
|
|
37192
37203
|
c && Hu(a, c.x(), c.y(), c.z());
|
|
37193
37204
|
}
|
|
37194
37205
|
}, r(Lo, "instances", []), Lo);
|
|
37195
|
-
|
|
37206
|
+
HA([
|
|
37196
37207
|
p([L, le])
|
|
37197
37208
|
], Ex.prototype, "cameraPrefab");
|
|
37198
37209
|
let Ax = Ex;
|
|
37199
|
-
var
|
|
37200
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
37210
|
+
var qA = Object.defineProperty, XA = Object.getOwnPropertyDescriptor, or = (o, t, e, i) => {
|
|
37211
|
+
for (var n = i > 1 ? void 0 : i ? XA(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
37201
37212
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
37202
|
-
return i && n &&
|
|
37213
|
+
return i && n && qA(t, e, n), n;
|
|
37203
37214
|
};
|
|
37204
37215
|
const Zp = "view", Jp = S("debugsyncedroom");
|
|
37205
|
-
class gs extends
|
|
37216
|
+
class gs extends j {
|
|
37206
37217
|
constructor() {
|
|
37207
37218
|
super(...arguments);
|
|
37208
37219
|
r(this, "roomName", "");
|
|
@@ -37380,11 +37391,11 @@ or([
|
|
|
37380
37391
|
or([
|
|
37381
37392
|
p()
|
|
37382
37393
|
], gs.prototype, "roomPrefix", 1);
|
|
37383
|
-
function
|
|
37394
|
+
function QA() {
|
|
37384
37395
|
const o = S("testwindowcount") || 0;
|
|
37385
|
-
o && o > 0 &&
|
|
37396
|
+
o && o > 0 && YA(o);
|
|
37386
37397
|
}
|
|
37387
|
-
function
|
|
37398
|
+
function YA(o) {
|
|
37388
37399
|
if (S("testwindow")) return null;
|
|
37389
37400
|
const t = new URL(window.location.href);
|
|
37390
37401
|
u_(t.searchParams, zM, 1), u_(t.searchParams, "testwindow", 1);
|
|
@@ -37415,12 +37426,12 @@ function QA(o) {
|
|
|
37415
37426
|
}
|
|
37416
37427
|
return i;
|
|
37417
37428
|
}
|
|
37418
|
-
class Ix extends
|
|
37429
|
+
class Ix extends j {
|
|
37419
37430
|
awake() {
|
|
37420
|
-
|
|
37431
|
+
QA();
|
|
37421
37432
|
}
|
|
37422
37433
|
}
|
|
37423
|
-
class Lx extends
|
|
37434
|
+
class Lx extends j {
|
|
37424
37435
|
constructor() {
|
|
37425
37436
|
super(...arguments);
|
|
37426
37437
|
r(this, "transformsPerFrame", 10);
|
|
@@ -37483,12 +37494,12 @@ class Dx {
|
|
|
37483
37494
|
}
|
|
37484
37495
|
}
|
|
37485
37496
|
r(Dx, "temp", new w());
|
|
37486
|
-
var
|
|
37497
|
+
var KA = Object.defineProperty, jf = (o, t, e, i) => {
|
|
37487
37498
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
37488
37499
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
37489
|
-
return n &&
|
|
37500
|
+
return n && KA(t, e, n), n;
|
|
37490
37501
|
};
|
|
37491
|
-
const
|
|
37502
|
+
const ZA = S("debugsignals");
|
|
37492
37503
|
class $y {
|
|
37493
37504
|
constructor() {
|
|
37494
37505
|
r(this, "guid");
|
|
@@ -37510,7 +37521,7 @@ jf([
|
|
|
37510
37521
|
p(Se)
|
|
37511
37522
|
], Bf.prototype, "reaction");
|
|
37512
37523
|
var mi;
|
|
37513
|
-
const jx = (mi = class extends
|
|
37524
|
+
const jx = (mi = class extends j {
|
|
37514
37525
|
constructor() {
|
|
37515
37526
|
super(...arguments);
|
|
37516
37527
|
r(this, "events");
|
|
@@ -37525,7 +37536,7 @@ const jx = (mi = class extends D {
|
|
|
37525
37536
|
}
|
|
37526
37537
|
/** @internal */
|
|
37527
37538
|
awake() {
|
|
37528
|
-
|
|
37539
|
+
ZA && console.log("SignalReceiver awake", this);
|
|
37529
37540
|
}
|
|
37530
37541
|
/** @internal */
|
|
37531
37542
|
onEnable() {
|
|
@@ -37627,7 +37638,7 @@ class zf {
|
|
|
37627
37638
|
return 0;
|
|
37628
37639
|
}
|
|
37629
37640
|
}
|
|
37630
|
-
class
|
|
37641
|
+
class JA {
|
|
37631
37642
|
constructor(t) {
|
|
37632
37643
|
r(this, "clip");
|
|
37633
37644
|
r(this, "rootPositionOffset");
|
|
@@ -37735,7 +37746,7 @@ class Wy extends zf {
|
|
|
37735
37746
|
if (!this._didBind) {
|
|
37736
37747
|
this._didBind = !0, Qn && console.log(this.models), this.mixer ? this.target = this.mixer.getRoot() : console.warn("No mixer was assigned to animation track");
|
|
37737
37748
|
for (const e of this.actions) {
|
|
37738
|
-
const i = new
|
|
37749
|
+
const i = new JA(e);
|
|
37739
37750
|
this._actionOffsets.push(i);
|
|
37740
37751
|
}
|
|
37741
37752
|
this.target && (this._animator = C.getComponent(this.target, $t) ?? null, this._animator && _b(this._animator.gameObject, this, !0));
|
|
@@ -37855,7 +37866,7 @@ class Wy extends zf {
|
|
|
37855
37866
|
};
|
|
37856
37867
|
}
|
|
37857
37868
|
}
|
|
37858
|
-
const
|
|
37869
|
+
const eI = S("mutetimeline"), kr = class kr extends zf {
|
|
37859
37870
|
constructor() {
|
|
37860
37871
|
super(...arguments);
|
|
37861
37872
|
r(this, "models", []);
|
|
@@ -37917,7 +37928,7 @@ const JA = S("mutetimeline"), kr = class kr extends zf {
|
|
|
37917
37928
|
this._playableDirectorResumed = this.director.isPlaying;
|
|
37918
37929
|
}
|
|
37919
37930
|
evaluate(e) {
|
|
37920
|
-
if (
|
|
37931
|
+
if (eI || this.track.muted || this.director.speed < 0)
|
|
37921
37932
|
return;
|
|
37922
37933
|
const i = this.director.context.application.muted, n = this._playableDirectorResumed;
|
|
37923
37934
|
this._playableDirectorResumed = !1;
|
|
@@ -38075,14 +38086,14 @@ class Vy extends zf {
|
|
|
38075
38086
|
}
|
|
38076
38087
|
}
|
|
38077
38088
|
}
|
|
38078
|
-
var
|
|
38089
|
+
var tI = Object.defineProperty, Fx = (o, t, e, i) => {
|
|
38079
38090
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
38080
38091
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
38081
|
-
return n &&
|
|
38092
|
+
return n && tI(t, e, n), n;
|
|
38082
38093
|
};
|
|
38083
38094
|
const xs = S("debugtimeline");
|
|
38084
38095
|
var Do;
|
|
38085
|
-
const Hy = (Do = class extends
|
|
38096
|
+
const Hy = (Do = class extends j {
|
|
38086
38097
|
constructor() {
|
|
38087
38098
|
super(...arguments);
|
|
38088
38099
|
r(this, "playableAsset");
|
|
@@ -38495,12 +38506,12 @@ Fx([
|
|
|
38495
38506
|
p()
|
|
38496
38507
|
], Hy.prototype, "extrapolationMode");
|
|
38497
38508
|
let rh = Hy;
|
|
38498
|
-
var
|
|
38509
|
+
var iI = Object.defineProperty, Uf = (o, t, e, i) => {
|
|
38499
38510
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
38500
38511
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
38501
|
-
return n &&
|
|
38512
|
+
return n && iI(t, e, n), n;
|
|
38502
38513
|
};
|
|
38503
|
-
class jl extends
|
|
38514
|
+
class jl extends j {
|
|
38504
38515
|
constructor() {
|
|
38505
38516
|
super(...arguments);
|
|
38506
38517
|
r(this, "isGizmo", !1);
|
|
@@ -38640,10 +38651,10 @@ Uf([
|
|
|
38640
38651
|
Uf([
|
|
38641
38652
|
p()
|
|
38642
38653
|
], jl.prototype, "scaleSnap");
|
|
38643
|
-
var
|
|
38644
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
38654
|
+
var nI = Object.defineProperty, sI = Object.getOwnPropertyDescriptor, Nf = (o, t, e, i) => {
|
|
38655
|
+
for (var n = i > 1 ? void 0 : i ? sI(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
38645
38656
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
38646
|
-
return i && n &&
|
|
38657
|
+
return i && n && nI(t, e, n), n;
|
|
38647
38658
|
};
|
|
38648
38659
|
class Gy {
|
|
38649
38660
|
constructor() {
|
|
@@ -38717,10 +38728,10 @@ class qy extends xf {
|
|
|
38717
38728
|
Nf([
|
|
38718
38729
|
p(Fe)
|
|
38719
38730
|
], qy.prototype, "mainTexture", 1);
|
|
38720
|
-
var
|
|
38721
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
38731
|
+
var oI = Object.defineProperty, rI = Object.getOwnPropertyDescriptor, Gi = (o, t, e, i) => {
|
|
38732
|
+
for (var n = i > 1 ? void 0 : i ? rI(t, e) : t, s = o.length - 1, a; s >= 0; s--)
|
|
38722
38733
|
(a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
|
|
38723
|
-
return i && n &&
|
|
38734
|
+
return i && n && oI(t, e, n), n;
|
|
38724
38735
|
};
|
|
38725
38736
|
const gr = S("debugbutton");
|
|
38726
38737
|
class rr {
|
|
@@ -38755,7 +38766,7 @@ Gi([
|
|
|
38755
38766
|
Gi([
|
|
38756
38767
|
p(ce)
|
|
38757
38768
|
], rr.prototype, "selectedColor", 2);
|
|
38758
|
-
class
|
|
38769
|
+
class aI {
|
|
38759
38770
|
constructor() {
|
|
38760
38771
|
r(this, "disabledTrigger");
|
|
38761
38772
|
r(this, "highlightedTrigger");
|
|
@@ -38764,7 +38775,7 @@ class rI {
|
|
|
38764
38775
|
r(this, "selectedTrigger");
|
|
38765
38776
|
}
|
|
38766
38777
|
}
|
|
38767
|
-
class ar extends
|
|
38778
|
+
class ar extends j {
|
|
38768
38779
|
constructor() {
|
|
38769
38780
|
super(...arguments);
|
|
38770
38781
|
r(this, "onClick", new Se());
|
|
@@ -38896,7 +38907,7 @@ Gi([
|
|
|
38896
38907
|
p()
|
|
38897
38908
|
], ar.prototype, "transition", 2);
|
|
38898
38909
|
Gi([
|
|
38899
|
-
p(
|
|
38910
|
+
p(aI)
|
|
38900
38911
|
], ar.prototype, "animationTriggers", 2);
|
|
38901
38912
|
Gi([
|
|
38902
38913
|
p($t)
|
|
@@ -38904,14 +38915,14 @@ Gi([
|
|
|
38904
38915
|
Gi([
|
|
38905
38916
|
p()
|
|
38906
38917
|
], ar.prototype, "interactable", 1);
|
|
38907
|
-
var
|
|
38918
|
+
var lI = Object.defineProperty, $f = (o, t, e, i) => {
|
|
38908
38919
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
38909
38920
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
38910
|
-
return n &&
|
|
38921
|
+
return n && lI(t, e, n), n;
|
|
38911
38922
|
};
|
|
38912
38923
|
const mo = S("debuginputfield");
|
|
38913
38924
|
var X;
|
|
38914
|
-
const jh = (X = class extends
|
|
38925
|
+
const jh = (X = class extends j {
|
|
38915
38926
|
constructor() {
|
|
38916
38927
|
super(...arguments);
|
|
38917
38928
|
r(this, "textComponent");
|
|
@@ -39069,12 +39080,12 @@ $f([
|
|
|
39069
39080
|
p(Se)
|
|
39070
39081
|
], jh.prototype, "onEndEdit");
|
|
39071
39082
|
let zx = jh;
|
|
39072
|
-
var
|
|
39083
|
+
var cI = Object.defineProperty, Ux = (o, t, e, i) => {
|
|
39073
39084
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
39074
39085
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
39075
|
-
return n &&
|
|
39086
|
+
return n && cI(t, e, n), n;
|
|
39076
39087
|
};
|
|
39077
|
-
class Wf extends
|
|
39088
|
+
class Wf extends j {
|
|
39078
39089
|
constructor() {
|
|
39079
39090
|
super(...arguments);
|
|
39080
39091
|
r(this, "id", null);
|
|
@@ -39139,7 +39150,7 @@ Ux([
|
|
|
39139
39150
|
* See the License for the specific language governing permissions and
|
|
39140
39151
|
* limitations under the License.
|
|
39141
39152
|
*/
|
|
39142
|
-
const
|
|
39153
|
+
const hI = {
|
|
39143
39154
|
topLight: {
|
|
39144
39155
|
intensity: 500,
|
|
39145
39156
|
position: [0.418, 16.199, 0.3]
|
|
@@ -39212,7 +39223,7 @@ const cI = {
|
|
|
39212
39223
|
scale: [1, 0.1, 1]
|
|
39213
39224
|
}
|
|
39214
39225
|
]
|
|
39215
|
-
},
|
|
39226
|
+
}, dI = {
|
|
39216
39227
|
topLight: {
|
|
39217
39228
|
intensity: 400,
|
|
39218
39229
|
position: [0.5, 14, 0.5]
|
|
@@ -39296,7 +39307,7 @@ class Xy extends ji {
|
|
|
39296
39307
|
super(), this.position.y = -3.5;
|
|
39297
39308
|
const e = new Ka();
|
|
39298
39309
|
e.deleteAttribute("uv");
|
|
39299
|
-
const i = new yt({ metalness: 0, side: Uu }), n = new yt({ metalness: 0 }), s = t == "legacy" ?
|
|
39310
|
+
const i = new yt({ metalness: 0, side: Uu }), n = new yt({ metalness: 0 }), s = t == "legacy" ? hI : dI, a = new gg(16777215, s.topLight.intensity, 28, 2);
|
|
39300
39311
|
a.position.set(...s.topLight.position), this.add(a);
|
|
39301
39312
|
const l = new G(e, i);
|
|
39302
39313
|
l.position.set(...s.room.position), l.scale.set(...s.room.scale), this.add(l);
|
|
@@ -39314,12 +39325,12 @@ class Xy extends ji {
|
|
|
39314
39325
|
return e.color.setScalar(t), e;
|
|
39315
39326
|
}
|
|
39316
39327
|
}
|
|
39317
|
-
var
|
|
39328
|
+
var uI = Object.defineProperty, Vf = (o, t, e, i) => {
|
|
39318
39329
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
39319
39330
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
39320
|
-
return n &&
|
|
39331
|
+
return n && uI(t, e, n), n;
|
|
39321
39332
|
}, Ir;
|
|
39322
|
-
const Bh = (Ir = class extends
|
|
39333
|
+
const Bh = (Ir = class extends j {
|
|
39323
39334
|
constructor() {
|
|
39324
39335
|
super(...arguments);
|
|
39325
39336
|
r(this, "target");
|
|
@@ -39371,12 +39382,12 @@ Vf([
|
|
|
39371
39382
|
p()
|
|
39372
39383
|
], Bh.prototype, "copyTargetRotation");
|
|
39373
39384
|
let Nx = Bh;
|
|
39374
|
-
var
|
|
39385
|
+
var fI = Object.defineProperty, Qy = (o, t, e, i) => {
|
|
39375
39386
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
39376
39387
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
39377
|
-
return n &&
|
|
39388
|
+
return n && fI(t, e, n), n;
|
|
39378
39389
|
};
|
|
39379
|
-
class Fh extends
|
|
39390
|
+
class Fh extends j {
|
|
39380
39391
|
constructor() {
|
|
39381
39392
|
super(...arguments);
|
|
39382
39393
|
r(this, "url");
|
|
@@ -39435,12 +39446,12 @@ Qy([
|
|
|
39435
39446
|
Qy([
|
|
39436
39447
|
p()
|
|
39437
39448
|
], Fh.prototype, "clickable");
|
|
39438
|
-
var
|
|
39449
|
+
var pI = Object.defineProperty, Bl = (o, t, e, i) => {
|
|
39439
39450
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
39440
39451
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
39441
|
-
return n &&
|
|
39452
|
+
return n && pI(t, e, n), n;
|
|
39442
39453
|
};
|
|
39443
|
-
class lr extends
|
|
39454
|
+
class lr extends j {
|
|
39444
39455
|
constructor() {
|
|
39445
39456
|
super(...arguments);
|
|
39446
39457
|
r(this, "side", "none");
|
|
@@ -39521,7 +39532,7 @@ NeedleXRSession.onSessionRequestStart(evt => {
|
|
|
39521
39532
|
if (a || (a = new XRWebGLBinding(e.session, o.getContext())), a) {
|
|
39522
39533
|
let l = null;
|
|
39523
39534
|
if ("getCameraImage" in a) {
|
|
39524
|
-
|
|
39535
|
+
mI(o, t);
|
|
39525
39536
|
const c = o.properties.get(t);
|
|
39526
39537
|
if (c)
|
|
39527
39538
|
return l = a.getCameraImage(s.camera), c.__webglTexture = l, !0;
|
|
@@ -39536,7 +39547,7 @@ NeedleXRSession.onSessionRequestStart(evt => {
|
|
|
39536
39547
|
return !1;
|
|
39537
39548
|
}
|
|
39538
39549
|
const a0 = /* @__PURE__ */ new WeakMap();
|
|
39539
|
-
function
|
|
39550
|
+
function mI(o, t) {
|
|
39540
39551
|
const e = a0.get(t) || /* @__PURE__ */ new WeakSet();
|
|
39541
39552
|
if (e.has(o))
|
|
39542
39553
|
return;
|
|
@@ -39546,7 +39557,7 @@ function pI(o, t) {
|
|
|
39546
39557
|
const a = new ve();
|
|
39547
39558
|
i.map = t, o.render(s, a);
|
|
39548
39559
|
}
|
|
39549
|
-
function
|
|
39560
|
+
function v2(o, t, e, i = "image/webp", n) {
|
|
39550
39561
|
return Wx({ context: o, width: t, height: e, mimeType: i, camera: n });
|
|
39551
39562
|
}
|
|
39552
39563
|
function Wx(o) {
|
|
@@ -39612,7 +39623,7 @@ function Wx(o) {
|
|
|
39612
39623
|
break;
|
|
39613
39624
|
}
|
|
39614
39625
|
if (t && o.trim === !0) {
|
|
39615
|
-
const B =
|
|
39626
|
+
const B = gI(Y);
|
|
39616
39627
|
B && (Y = B);
|
|
39617
39628
|
}
|
|
39618
39629
|
if ("type" in o) {
|
|
@@ -39657,7 +39668,7 @@ function Wx(o) {
|
|
|
39657
39668
|
let ee = 0;
|
|
39658
39669
|
localStorage.getItem(V) && (ee = parseInt(sessionStorage.getItem(V) || "0")), ee > 0 && (B = `${J.join()}-${ee}.${ie}`), ee += 1, sessionStorage.setItem(V, ee.toString());
|
|
39659
39670
|
}
|
|
39660
|
-
|
|
39671
|
+
yI(F, B);
|
|
39661
39672
|
}
|
|
39662
39673
|
return F;
|
|
39663
39674
|
} finally {
|
|
@@ -39665,7 +39676,7 @@ function Wx(o) {
|
|
|
39665
39676
|
}
|
|
39666
39677
|
return null;
|
|
39667
39678
|
}
|
|
39668
|
-
function
|
|
39679
|
+
function gI(o) {
|
|
39669
39680
|
if (!("document" in globalThis)) return null;
|
|
39670
39681
|
const t = document.createElement("canvas");
|
|
39671
39682
|
t.width = o.width, t.height = o.height;
|
|
@@ -39683,7 +39694,7 @@ function mI(o) {
|
|
|
39683
39694
|
return g ? (m.width = u, m.height = f, g.drawImage(t, c, l, u, f, 0, 0, u, f), m) : null;
|
|
39684
39695
|
}
|
|
39685
39696
|
let ec = null;
|
|
39686
|
-
function
|
|
39697
|
+
function yI(o, t) {
|
|
39687
39698
|
if (o) {
|
|
39688
39699
|
if (!o.startsWith("data:image")) {
|
|
39689
39700
|
console.error("Can not save image: Data url is not an image", o);
|
|
@@ -39753,13 +39764,13 @@ void main() {
|
|
|
39753
39764
|
}
|
|
39754
39765
|
o.makeFullscreenPlane = c;
|
|
39755
39766
|
})(wu || (wu = {}));
|
|
39756
|
-
var
|
|
39767
|
+
var _I = Object.defineProperty, bI = (o, t, e, i) => {
|
|
39757
39768
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
39758
39769
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
39759
|
-
return n &&
|
|
39770
|
+
return n && _I(t, e, n), n;
|
|
39760
39771
|
};
|
|
39761
39772
|
const l0 = S("debugarcamera");
|
|
39762
|
-
class Hf extends
|
|
39773
|
+
class Hf extends j {
|
|
39763
39774
|
constructor() {
|
|
39764
39775
|
super(...arguments);
|
|
39765
39776
|
r(this, "backgroundTint", new ce(1, 1, 1, 1));
|
|
@@ -39787,7 +39798,7 @@ class Hf extends D {
|
|
|
39787
39798
|
tint: { value: new ye(n.r, n.g, n.b, n.a) }
|
|
39788
39799
|
},
|
|
39789
39800
|
vertexShader: Fd.background.vertexShader,
|
|
39790
|
-
fragmentShader:
|
|
39801
|
+
fragmentShader: vI,
|
|
39791
39802
|
side: Bi,
|
|
39792
39803
|
depthTest: !1,
|
|
39793
39804
|
depthWrite: !1,
|
|
@@ -39828,10 +39839,10 @@ class Hf extends D {
|
|
|
39828
39839
|
this.backgroundPlane && (this.threeTexture = e, this.backgroundPlane.setTexture(this.threeTexture), this.backgroundPlane.visible = !0);
|
|
39829
39840
|
}
|
|
39830
39841
|
}
|
|
39831
|
-
|
|
39842
|
+
bI([
|
|
39832
39843
|
p(ce)
|
|
39833
39844
|
], Hf.prototype, "backgroundTint");
|
|
39834
|
-
const
|
|
39845
|
+
const vI = (
|
|
39835
39846
|
/* glsl */
|
|
39836
39847
|
`
|
|
39837
39848
|
uniform sampler2D t2D;
|
|
@@ -39854,10 +39865,10 @@ void main() {
|
|
|
39854
39865
|
}
|
|
39855
39866
|
`
|
|
39856
39867
|
);
|
|
39857
|
-
var
|
|
39868
|
+
var wI = Object.defineProperty, cr = (o, t, e, i) => {
|
|
39858
39869
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
39859
39870
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
39860
|
-
return n &&
|
|
39871
|
+
return n && wI(t, e, n), n;
|
|
39861
39872
|
};
|
|
39862
39873
|
const c0 = S("debugimagetracking"), Na = class Na {
|
|
39863
39874
|
constructor(t, e, i, n, s, a) {
|
|
@@ -39934,7 +39945,7 @@ cr([
|
|
|
39934
39945
|
cr([
|
|
39935
39946
|
p()
|
|
39936
39947
|
], hr.prototype, "hideWhenTrackingIsLost");
|
|
39937
|
-
class
|
|
39948
|
+
class xI {
|
|
39938
39949
|
constructor(t, e, i) {
|
|
39939
39950
|
r(this, "filename");
|
|
39940
39951
|
r(this, "widthInMeters");
|
|
@@ -39977,7 +39988,7 @@ class wI {
|
|
|
39977
39988
|
}
|
|
39978
39989
|
}
|
|
39979
39990
|
var Zn;
|
|
39980
|
-
const Yy = (Zn = class extends
|
|
39991
|
+
const Yy = (Zn = class extends j {
|
|
39981
39992
|
constructor() {
|
|
39982
39993
|
super(...arguments);
|
|
39983
39994
|
r(this, "trackedImages");
|
|
@@ -40028,7 +40039,7 @@ const Yy = (Zn = class extends D {
|
|
|
40028
40039
|
if (a) {
|
|
40029
40040
|
const c = await (await a.convertToBlob({ type: "image/png" })).arrayBuffer(), h = C.findObjectOfType(Vs);
|
|
40030
40041
|
h && this.trackedImages && (h.extensions.push(
|
|
40031
|
-
new
|
|
40042
|
+
new xI("marker.png", new Uint8Array(c), this.trackedImages[0].widthInMeters)
|
|
40032
40043
|
), h.anchoringType = "image");
|
|
40033
40044
|
}
|
|
40034
40045
|
});
|
|
@@ -40137,13 +40148,13 @@ cr([
|
|
|
40137
40148
|
p()
|
|
40138
40149
|
], Yy.prototype, "smooth");
|
|
40139
40150
|
let Su = Yy;
|
|
40140
|
-
var
|
|
40151
|
+
var SI = Object.defineProperty, Fl = (o, t, e, i) => {
|
|
40141
40152
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
40142
40153
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
40143
|
-
return n &&
|
|
40154
|
+
return n && SI(t, e, n), n;
|
|
40144
40155
|
};
|
|
40145
40156
|
const yr = S("debugplanetracking");
|
|
40146
|
-
class dr extends
|
|
40157
|
+
class dr extends j {
|
|
40147
40158
|
constructor() {
|
|
40148
40159
|
super(...arguments);
|
|
40149
40160
|
r(this, "dataTemplate");
|
|
@@ -40392,13 +40403,13 @@ Fl([
|
|
|
40392
40403
|
Fl([
|
|
40393
40404
|
p()
|
|
40394
40405
|
], dr.prototype, "runInVR");
|
|
40395
|
-
var
|
|
40406
|
+
var CI = Object.defineProperty, PI = (o, t, e, i) => {
|
|
40396
40407
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
40397
40408
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
40398
|
-
return n &&
|
|
40409
|
+
return n && CI(t, e, n), n;
|
|
40399
40410
|
};
|
|
40400
40411
|
const h0 = S("debugwebxr");
|
|
40401
|
-
class Ky extends
|
|
40412
|
+
class Ky extends j {
|
|
40402
40413
|
constructor() {
|
|
40403
40414
|
super(...arguments);
|
|
40404
40415
|
r(this, "priority", 0);
|
|
@@ -40447,10 +40458,10 @@ class Ky extends D {
|
|
|
40447
40458
|
e.xr.removeRig(this), this._startScale && this.gameObject && this.gameObject.scale.copy(this._startScale);
|
|
40448
40459
|
}
|
|
40449
40460
|
}
|
|
40450
|
-
|
|
40461
|
+
PI([
|
|
40451
40462
|
p()
|
|
40452
40463
|
], Ky.prototype, "priority");
|
|
40453
|
-
class
|
|
40464
|
+
class OI extends j {
|
|
40454
40465
|
constructor() {
|
|
40455
40466
|
super(...arguments);
|
|
40456
40467
|
r(this, "toggleKey", "KeyP");
|
|
@@ -40606,15 +40617,15 @@ M.add("XRRig", Ky);
|
|
|
40606
40617
|
M.add("XRFlag", xn);
|
|
40607
40618
|
M.add("PlayerSync", Yw);
|
|
40608
40619
|
M.add("PlayerState", Xn);
|
|
40609
|
-
M.add("PresentationMode",
|
|
40610
|
-
const Lc = bt,
|
|
40611
|
-
|
|
40612
|
-
function
|
|
40620
|
+
M.add("PresentationMode", OI);
|
|
40621
|
+
const Lc = bt, kI = S("debugtypestore");
|
|
40622
|
+
kI && console.log(M);
|
|
40623
|
+
function MI(o, t) {
|
|
40613
40624
|
const i = MO(o, t);
|
|
40614
40625
|
return i !== void 0 ? i : null;
|
|
40615
40626
|
}
|
|
40616
|
-
const
|
|
40617
|
-
async function
|
|
40627
|
+
const RI = new kO(), em = Symbol("deserialize-queue");
|
|
40628
|
+
async function TI(o, t, e, i = null, n) {
|
|
40618
40629
|
if (!e) {
|
|
40619
40630
|
console.debug("Can not create component instances: gltf is null");
|
|
40620
40631
|
return;
|
|
@@ -40624,7 +40635,7 @@ async function RI(o, t, e, i = null, n) {
|
|
|
40624
40635
|
const a = t.indexOf("?");
|
|
40625
40636
|
t = a === -1 ? t : t.substring(0, a);
|
|
40626
40637
|
const l = new Dv(e.scene);
|
|
40627
|
-
l.gltfId = t, l.context = o, l.gltf = e, l.nodeToObject = n == null ? void 0 : n.nodeToObjectMap, l.implementationInformation =
|
|
40638
|
+
l.gltfId = t, l.context = o, l.gltf = e, l.nodeToObject = n == null ? void 0 : n.nodeToObjectMap, l.implementationInformation = RI;
|
|
40628
40639
|
let c = o[em];
|
|
40629
40640
|
if (c || (c = o[em] = []), e.scenes)
|
|
40630
40641
|
for (const h of e.scenes)
|
|
@@ -40636,7 +40647,7 @@ async function RI(o, t, e, i = null, n) {
|
|
|
40636
40647
|
const h = o[em];
|
|
40637
40648
|
if (h) {
|
|
40638
40649
|
for (const d of h)
|
|
40639
|
-
|
|
40650
|
+
EI(d, l);
|
|
40640
40651
|
h.length = 0;
|
|
40641
40652
|
}
|
|
40642
40653
|
if (s) {
|
|
@@ -40701,29 +40712,29 @@ This could mean you forgot to add a npmdef to your ExportInfo
|
|
|
40701
40712
|
for (const d of t.children)
|
|
40702
40713
|
await dg(o, d, e);
|
|
40703
40714
|
}
|
|
40704
|
-
function
|
|
40715
|
+
function EI(o, t) {
|
|
40705
40716
|
const { instance: e, compData: i, obj: n } = o;
|
|
40706
40717
|
t.object = n, t.target = e, Mm(e, i, t), Lc && console.debug("add " + i.name, i, e);
|
|
40707
40718
|
}
|
|
40708
40719
|
class Vx {
|
|
40709
40720
|
createBuiltinComponents(t, e, i, n, s) {
|
|
40710
|
-
return
|
|
40721
|
+
return TI(t, e, i, n, s);
|
|
40711
40722
|
}
|
|
40712
40723
|
writeBuiltinComponentData(t, e) {
|
|
40713
|
-
return
|
|
40724
|
+
return MI(t, e);
|
|
40714
40725
|
}
|
|
40715
40726
|
parseSync(t, e, i, n) {
|
|
40716
|
-
return
|
|
40727
|
+
return II(t, e, i, n);
|
|
40717
40728
|
}
|
|
40718
40729
|
loadSync(t, e, i, n, s) {
|
|
40719
40730
|
return qx(t, e, i, n, s);
|
|
40720
40731
|
}
|
|
40721
40732
|
}
|
|
40722
40733
|
cv(Vx);
|
|
40723
|
-
const Hx = S("printGltf") || S("printgltf"),
|
|
40734
|
+
const Hx = S("printGltf") || S("printgltf"), AI = S("debugfileformat");
|
|
40724
40735
|
async function Gx(o, t) {
|
|
40725
40736
|
const e = await rR(o, { useExtension: !0 }) || "unknown";
|
|
40726
|
-
|
|
40737
|
+
AI && console.debug(`Determined file type: '${e}' for url '${o}'`, { registeredModelLoaderCallbacks: Aa });
|
|
40727
40738
|
for (const i of Aa) {
|
|
40728
40739
|
const { callback: n } = i, s = n({ context: t, url: o, mimetype: e });
|
|
40729
40740
|
if (s instanceof Promise && await s, s)
|
|
@@ -40756,10 +40767,10 @@ Use import { NeedleEngineModelLoader } from "@needle-tools/engine" namespace to
|
|
|
40756
40767
|
}
|
|
40757
40768
|
}
|
|
40758
40769
|
}
|
|
40759
|
-
function
|
|
40770
|
+
function w2(o, t) {
|
|
40760
40771
|
return qx((t == null ? void 0 : t.context) || Z.Current, o, o, (t == null ? void 0 : t.seed) || null, t == null ? void 0 : t.onprogress);
|
|
40761
40772
|
}
|
|
40762
|
-
async function
|
|
40773
|
+
async function II(o, t, e, i) {
|
|
40763
40774
|
typeof e != "string" && (console.warn("Parse gltf binary without path, this might lead to errors in resolving extensions. Please provide the source path of the gltf/glb file", e, typeof e), e = ""), Hx && console.log("Parse glTF", e);
|
|
40764
40775
|
const n = await Gx(e, o);
|
|
40765
40776
|
if (!n)
|
|
@@ -40795,7 +40806,7 @@ async function AI(o, t, e, i) {
|
|
|
40795
40806
|
});
|
|
40796
40807
|
}
|
|
40797
40808
|
async function qx(o, t, e, i, n) {
|
|
40798
|
-
|
|
40809
|
+
DI(t);
|
|
40799
40810
|
const s = await Gx(t, o);
|
|
40800
40811
|
if (!s)
|
|
40801
40812
|
return;
|
|
@@ -40857,9 +40868,9 @@ async function Dc(o, t, e, i, n, s) {
|
|
|
40857
40868
|
if (e.includes("?") && (e = e.split("?")[0]), "scenes" in i)
|
|
40858
40869
|
for (const l of i.scenes)
|
|
40859
40870
|
l && !((a = l.animations) != null && a.length) && (l.animations = [...i.animations]);
|
|
40860
|
-
return
|
|
40871
|
+
return jI(o, i), RM(i) && (TR(e, i, t), await os().createBuiltinComponents(t, e, i, n, s || void 0)), await LI(i.scene, t, t.mainCamera), i;
|
|
40861
40872
|
}
|
|
40862
|
-
async function
|
|
40873
|
+
async function LI(o, t, e) {
|
|
40863
40874
|
e || (e = t.mainCamera);
|
|
40864
40875
|
try {
|
|
40865
40876
|
e ? await t.renderer.compileAsync(o, e, t.scene).catch((i) => {
|
|
@@ -40869,14 +40880,14 @@ async function II(o, t, e) {
|
|
|
40869
40880
|
console.warn((i == null ? void 0 : i.message) || i);
|
|
40870
40881
|
}
|
|
40871
40882
|
}
|
|
40872
|
-
function
|
|
40883
|
+
function DI(o) {
|
|
40873
40884
|
if (new URL(o, window.location.href).href.startsWith("file://")) {
|
|
40874
40885
|
const e = `Hi - it looks like you are trying to load a local file which will not work. You need to use a webserver to serve your files.
|
|
40875
40886
|
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>`;
|
|
40876
40887
|
Ve(e), console.warn(e);
|
|
40877
40888
|
}
|
|
40878
40889
|
}
|
|
40879
|
-
function
|
|
40890
|
+
function jI(o, t) {
|
|
40880
40891
|
if (o instanceof D0 || o instanceof Cg) {
|
|
40881
40892
|
let e = t;
|
|
40882
40893
|
e instanceof L || (e = t.scene), e.traverse((i) => {
|
|
@@ -40885,8 +40896,8 @@ function DI(o, t) {
|
|
|
40885
40896
|
});
|
|
40886
40897
|
}
|
|
40887
40898
|
}
|
|
40888
|
-
const ic = S("debugoverlay"), Qx = "ar",
|
|
40889
|
-
class
|
|
40899
|
+
const ic = S("debugoverlay"), Qx = "ar", BI = "quit-ar";
|
|
40900
|
+
class FI {
|
|
40890
40901
|
constructor() {
|
|
40891
40902
|
r(this, "arContainer", null);
|
|
40892
40903
|
r(this, "currentSession", null);
|
|
@@ -40947,7 +40958,7 @@ class BI {
|
|
|
40947
40958
|
ensureQuitARButton(t) {
|
|
40948
40959
|
const e = document.createElement("slot");
|
|
40949
40960
|
e.setAttribute("name", "quit-ar"), this.appendElement(e, t), this._createdAROnlyElements.push(e), e.style.pointerEvents = "auto";
|
|
40950
|
-
const i = document.querySelector(`.${
|
|
40961
|
+
const i = document.querySelector(`.${BI}`);
|
|
40951
40962
|
if (i) {
|
|
40952
40963
|
i.addEventListener("click", this.requestEndAR), ic && i.addEventListener("click", () => console.log("Clicked quit-ar button"));
|
|
40953
40964
|
return;
|
|
@@ -40983,7 +40994,7 @@ class BI {
|
|
|
40983
40994
|
}
|
|
40984
40995
|
}
|
|
40985
40996
|
const Sr = S("debugloading"), nc = S("debugloadingrendering"), d0 = S("debuglicense");
|
|
40986
|
-
class
|
|
40997
|
+
class x2 {
|
|
40987
40998
|
constructor() {
|
|
40988
40999
|
r(this, "className");
|
|
40989
41000
|
r(this, "additionalClasses");
|
|
@@ -41123,7 +41134,7 @@ CLICK HERE TO GET A LICENSE`, i.style.cursor = "pointer", i.style.userSelect = "
|
|
|
41123
41134
|
r(Nc, "LoadingContainerClassName", "loading");
|
|
41124
41135
|
let ug = Nc;
|
|
41125
41136
|
cv(Vx);
|
|
41126
|
-
const Ae = S("debugwebcomponent"), f0 = "needle-engine", Kx = "vr", Zx = "desktop",
|
|
41137
|
+
const Ae = S("debugwebcomponent"), f0 = "needle-engine", Kx = "vr", Zx = "desktop", zI = [Qx, Kx, Zx], oc = "ar-session-active", rc = "desktop-session-active", UI = [
|
|
41127
41138
|
"public-key",
|
|
41128
41139
|
"version",
|
|
41129
41140
|
"hash",
|
|
@@ -41171,7 +41182,7 @@ class Jx extends HTMLElement {
|
|
|
41171
41182
|
return (e = this._loadingView) == null ? void 0 : e.setMessage("Loading failed!");
|
|
41172
41183
|
});
|
|
41173
41184
|
r(this, "_previouslyRegisteredMap", /* @__PURE__ */ new Map());
|
|
41174
|
-
this._overlay_ar = new
|
|
41185
|
+
this._overlay_ar = new FI(), this.addEventListener("ready", this.onReady), Qv(), this.attachShadow({ mode: "open" });
|
|
41175
41186
|
const e = document.createElement("template");
|
|
41176
41187
|
e.innerHTML = `<style>
|
|
41177
41188
|
@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');
|
|
@@ -41253,7 +41264,7 @@ class Jx extends HTMLElement {
|
|
|
41253
41264
|
`, this.shadowRoot && this.shadowRoot.appendChild(e.content.cloneNode(!0)), this._context = new Z({ domElement: this }), this.addEventListener("error", this.onError);
|
|
41254
41265
|
}
|
|
41255
41266
|
static get observedAttributes() {
|
|
41256
|
-
return
|
|
41267
|
+
return UI;
|
|
41257
41268
|
}
|
|
41258
41269
|
get loadingProgress01() {
|
|
41259
41270
|
return this._loadingProgress01;
|
|
@@ -41432,7 +41443,7 @@ Needle Engine: Begin loading ` + i + `
|
|
|
41432
41443
|
var x;
|
|
41433
41444
|
if (Ae && console.debug("Loading progress: ", b), u.signal.aborted) return;
|
|
41434
41445
|
const v = b.index;
|
|
41435
|
-
!d[v] && b.name && (d[v] =
|
|
41446
|
+
!d[v] && b.name && (d[v] = NI(b.name)), b.name = d[v], a && ((x = this._loadingView) == null || x.onLoadingUpdate(b)), c.name = b.name, c.progress = b.progress, this._loadingProgress01 = Yx(b), c.totalProgress01 = this._loadingProgress01, this.dispatchEvent(h);
|
|
41436
41447
|
},
|
|
41437
41448
|
onLoadingFinished: (b, v, x) => {
|
|
41438
41449
|
Ae && console.debug(`Finished loading "${v}" (aborted? ${u.signal.aborted})`), !u.signal.aborted && x && l.push({
|
|
@@ -41591,7 +41602,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
41591
41602
|
if (e.classList.contains(i))
|
|
41592
41603
|
e.style.visibility = "visible", e.style.display === "none" && (e.style.display = "block");
|
|
41593
41604
|
else
|
|
41594
|
-
for (const c of
|
|
41605
|
+
for (const c of zI)
|
|
41595
41606
|
e.classList.contains(c) && (e.style.visibility = "hidden", e.style.display = "none");
|
|
41596
41607
|
}
|
|
41597
41608
|
foreachHtmlElement(e) {
|
|
@@ -41610,7 +41621,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
41610
41621
|
}
|
|
41611
41622
|
}
|
|
41612
41623
|
typeof window < "u" && !window.customElements.get(f0) && window.customElements.define(f0, Jx);
|
|
41613
|
-
function
|
|
41624
|
+
function NI(o) {
|
|
41614
41625
|
if (o.startsWith("blob:"))
|
|
41615
41626
|
return "blob";
|
|
41616
41627
|
const t = o.split("/");
|
|
@@ -41631,11 +41642,11 @@ function UI(o) {
|
|
|
41631
41642
|
}
|
|
41632
41643
|
return z() && console.debug("Loading: use default name", e), e;
|
|
41633
41644
|
}
|
|
41634
|
-
const
|
|
41645
|
+
const $I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41635
41646
|
__proto__: null,
|
|
41636
41647
|
NeedleEngineWebComponent: Jx
|
|
41637
41648
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
41638
|
-
function
|
|
41649
|
+
function WI() {
|
|
41639
41650
|
rs.registerWaitForInteraction(() => {
|
|
41640
41651
|
const o = vC.getContext();
|
|
41641
41652
|
o.addEventListener("statechange", () => {
|
|
@@ -41650,8 +41661,8 @@ function $I() {
|
|
|
41650
41661
|
});
|
|
41651
41662
|
});
|
|
41652
41663
|
}
|
|
41653
|
-
setTimeout(
|
|
41654
|
-
const st = S("debugphysics"), tm = S("debugcolliderplacement"), im = S("debugcollisions"),
|
|
41664
|
+
setTimeout(WI, 1e3);
|
|
41665
|
+
const st = S("debugphysics"), tm = S("debugcolliderplacement"), im = S("debugcollisions"), VI = S("showcolliders"), nm = S("debugraycasts"), ui = Symbol("needle component"), Xt = Symbol("physics body"), p0 = Symbol("rigidbody");
|
|
41655
41666
|
globalThis.NEEDLE_USE_RAPIER = globalThis.NEEDLE_USE_RAPIER !== void 0 ? globalThis.NEEDLE_USE_RAPIER : !0;
|
|
41656
41667
|
st && console.log("Use Rapier", !0, globalThis.NEEDLE_USE_RAPIER);
|
|
41657
41668
|
fe.registerCallback(me.ContextCreationStart, (o) => {
|
|
@@ -41701,12 +41712,12 @@ const Os = class Os {
|
|
|
41701
41712
|
const a = this.objects.findIndex((l) => l === t);
|
|
41702
41713
|
if (a >= 0) {
|
|
41703
41714
|
const l = this.bodies[a];
|
|
41704
|
-
if (this.bodies.splice(a, 1), this.objects.splice(a, 1), l instanceof
|
|
41715
|
+
if (this.bodies.splice(a, 1), this.objects.splice(a, 1), l instanceof D.RAPIER_PHYSICS.MODULE.Collider) {
|
|
41705
41716
|
const c = l;
|
|
41706
41717
|
(i = this.world) == null || i.removeCollider(c, !0);
|
|
41707
41718
|
const h = c.parent();
|
|
41708
41719
|
h && h.numColliders() <= 0 && (h[ui] || (n = this.world) == null || n.removeRigidBody(h));
|
|
41709
|
-
} else l instanceof
|
|
41720
|
+
} else l instanceof D.RAPIER_PHYSICS.MODULE.RigidBody && (l.numColliders() <= 0 ? (s = this.world) == null || s.removeRigidBody(l) : z() && (l.did_log_removing || setTimeout(() => {
|
|
41710
41721
|
l.numColliders() > 0 && (l.did_log_removing = !0, console.warn("RapierPhysics: removing rigidbody with colliders from the physics world is not possible right now, please remove the colliders first"));
|
|
41711
41722
|
}, 1)));
|
|
41712
41723
|
}
|
|
@@ -41792,7 +41803,7 @@ const Os = class Os {
|
|
|
41792
41803
|
return this._initializePromise || (this._initializePromise = this.internalInitialization()), this._initializePromise;
|
|
41793
41804
|
}
|
|
41794
41805
|
async internalInitialization() {
|
|
41795
|
-
return S("__nophysics") ? (console.warn("Physics are disabled"), !1) : (st && console.log("Initialize rapier physics engine"), this._hasCreatedWorld ? (console.error("Invalid call to create physics world: world is already created"), !0) : (this._hasCreatedWorld = !0,
|
|
41806
|
+
return S("__nophysics") ? (console.warn("Physics are disabled"), !1) : (st && console.log("Initialize rapier physics engine"), this._hasCreatedWorld ? (console.error("Invalid call to create physics world: world is already created"), !0) : (this._hasCreatedWorld = !0, D.RAPIER_PHYSICS.MAYBEMODULE == null && (st && console.trace("Loading rapier physics engine"), await (await D.RAPIER_PHYSICS.load()).init()), st && console.log("Physics engine initialized, creating world..."), this._world = new D.RAPIER_PHYSICS.MODULE.World(this._gravity), this.rapierRay = new D.RAPIER_PHYSICS.MODULE.Ray({ x: 0, y: 0, z: 0 }, { x: 0, y: 0, z: 1 }), this.enabled = !0, this._isInitialized = !0, st && console.log("Physics world created"), !0));
|
|
41796
41807
|
}
|
|
41797
41808
|
/** Check is the physics engine has been initialized and the call can be made */
|
|
41798
41809
|
validate() {
|
|
@@ -41870,7 +41881,7 @@ const Os = class Os {
|
|
|
41870
41881
|
* @returns array of colliders that overlap with the sphere. Note: they currently only contain the collider and the gameobject
|
|
41871
41882
|
*/
|
|
41872
41883
|
sphereOverlap(t, e) {
|
|
41873
|
-
return this.rapierColliderArray.length = 0, this._isInitialized ? this.world ? (this.rapierSphere ?? (this.rapierSphere = new
|
|
41884
|
+
return this.rapierColliderArray.length = 0, this._isInitialized ? this.world ? (this.rapierSphere ?? (this.rapierSphere = new D.RAPIER_PHYSICS.MODULE.Ball(e)), this.rapierSphere.radius = e, (this.debugRenderRaycasts || nm) && H.DrawWireSphere(t, e, 3359999, 1), this.world.intersectionsWithShape(
|
|
41874
41885
|
t,
|
|
41875
41886
|
this.rapierIdentityRotation,
|
|
41876
41887
|
this.rapierSphere,
|
|
@@ -41915,7 +41926,7 @@ const Os = class Os {
|
|
|
41915
41926
|
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));
|
|
41916
41927
|
const s = 1e-7;
|
|
41917
41928
|
n.x < s && (n.x = s), n.y < s && (n.y = s), n.z < s && (n.z = s);
|
|
41918
|
-
const a =
|
|
41929
|
+
const a = D.RAPIER_PHYSICS.MODULE.ColliderDesc.cuboid(n.x, n.y, n.z);
|
|
41919
41930
|
this.createCollider(t, a);
|
|
41920
41931
|
}
|
|
41921
41932
|
async addSphereCollider(t) {
|
|
@@ -41924,7 +41935,7 @@ const Os = class Os {
|
|
|
41924
41935
|
st && console.warn("Physics are disabled");
|
|
41925
41936
|
return;
|
|
41926
41937
|
}
|
|
41927
|
-
const e =
|
|
41938
|
+
const e = D.RAPIER_PHYSICS.MODULE.ColliderDesc.ball(0.5);
|
|
41928
41939
|
this.createCollider(t, e), this.updateProperties(t);
|
|
41929
41940
|
}
|
|
41930
41941
|
async addCapsuleCollider(t, e, i) {
|
|
@@ -41937,7 +41948,7 @@ const Os = class Os {
|
|
|
41937
41948
|
s.x = Math.abs(s.x), s.y = Math.abs(s.y);
|
|
41938
41949
|
const a = i * s.x;
|
|
41939
41950
|
e = Math.max(e, a * 2);
|
|
41940
|
-
const l = $.clamp(e * 0.5 * s.y - i * s.x, 0, Number.MAX_SAFE_INTEGER), c =
|
|
41951
|
+
const l = $.clamp(e * 0.5 * s.y - i * s.x, 0, Number.MAX_SAFE_INTEGER), c = D.RAPIER_PHYSICS.MODULE.ColliderDesc.capsule(l, a);
|
|
41941
41952
|
this.createCollider(t, c);
|
|
41942
41953
|
}
|
|
41943
41954
|
async addMeshCollider(t, e, i, n) {
|
|
@@ -41977,7 +41988,7 @@ const Os = class Os {
|
|
|
41977
41988
|
a = _, this._meshCache.set(g, _);
|
|
41978
41989
|
}
|
|
41979
41990
|
}
|
|
41980
|
-
const d = i ?
|
|
41991
|
+
const d = i ? D.RAPIER_PHYSICS.MODULE.ColliderDesc.convexHull(a) : D.RAPIER_PHYSICS.MODULE.ColliderDesc.trimesh(a, c);
|
|
41981
41992
|
d && this.createCollider(t, d);
|
|
41982
41993
|
}
|
|
41983
41994
|
updatePhysicsMaterial(t) {
|
|
@@ -41987,31 +41998,31 @@ const Os = class Os {
|
|
|
41987
41998
|
if (e.bounciness !== void 0 && i.setRestitution(e.bounciness), e.bounceCombine !== void 0)
|
|
41988
41999
|
switch (e.bounceCombine) {
|
|
41989
42000
|
case Tt.Average:
|
|
41990
|
-
i.setRestitutionCombineRule(
|
|
42001
|
+
i.setRestitutionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Average);
|
|
41991
42002
|
break;
|
|
41992
42003
|
case Tt.Maximum:
|
|
41993
|
-
i.setRestitutionCombineRule(
|
|
42004
|
+
i.setRestitutionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Max);
|
|
41994
42005
|
break;
|
|
41995
42006
|
case Tt.Minimum:
|
|
41996
|
-
i.setRestitutionCombineRule(
|
|
42007
|
+
i.setRestitutionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Min);
|
|
41997
42008
|
break;
|
|
41998
42009
|
case Tt.Multiply:
|
|
41999
|
-
i.setRestitutionCombineRule(
|
|
42010
|
+
i.setRestitutionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Multiply);
|
|
42000
42011
|
break;
|
|
42001
42012
|
}
|
|
42002
42013
|
if (e.dynamicFriction !== void 0 && i.setFriction(e.dynamicFriction), e.frictionCombine !== void 0)
|
|
42003
42014
|
switch (e.frictionCombine) {
|
|
42004
42015
|
case Tt.Average:
|
|
42005
|
-
i.setFrictionCombineRule(
|
|
42016
|
+
i.setFrictionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Average);
|
|
42006
42017
|
break;
|
|
42007
42018
|
case Tt.Maximum:
|
|
42008
|
-
i.setFrictionCombineRule(
|
|
42019
|
+
i.setFrictionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Max);
|
|
42009
42020
|
break;
|
|
42010
42021
|
case Tt.Minimum:
|
|
42011
|
-
i.setFrictionCombineRule(
|
|
42022
|
+
i.setFrictionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Min);
|
|
42012
42023
|
break;
|
|
42013
42024
|
case Tt.Multiply:
|
|
42014
|
-
i.setFrictionCombineRule(
|
|
42025
|
+
i.setFrictionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Multiply);
|
|
42015
42026
|
break;
|
|
42016
42027
|
}
|
|
42017
42028
|
}
|
|
@@ -42035,38 +42046,38 @@ const Os = class Os {
|
|
|
42035
42046
|
if (s.bounciness !== void 0 && e.setRestitution(s.bounciness), s.bounceCombine !== void 0)
|
|
42036
42047
|
switch (s.bounceCombine) {
|
|
42037
42048
|
case Tt.Average:
|
|
42038
|
-
e.setRestitutionCombineRule(
|
|
42049
|
+
e.setRestitutionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Average);
|
|
42039
42050
|
break;
|
|
42040
42051
|
case Tt.Maximum:
|
|
42041
|
-
e.setRestitutionCombineRule(
|
|
42052
|
+
e.setRestitutionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Max);
|
|
42042
42053
|
break;
|
|
42043
42054
|
case Tt.Minimum:
|
|
42044
|
-
e.setRestitutionCombineRule(
|
|
42055
|
+
e.setRestitutionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Min);
|
|
42045
42056
|
break;
|
|
42046
42057
|
case Tt.Multiply:
|
|
42047
|
-
e.setRestitutionCombineRule(
|
|
42058
|
+
e.setRestitutionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Multiply);
|
|
42048
42059
|
break;
|
|
42049
42060
|
}
|
|
42050
42061
|
if (s.dynamicFriction !== void 0 && e.setFriction(s.dynamicFriction), s.frictionCombine !== void 0)
|
|
42051
42062
|
switch (s.frictionCombine) {
|
|
42052
42063
|
case Tt.Average:
|
|
42053
|
-
e.setFrictionCombineRule(
|
|
42064
|
+
e.setFrictionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Average);
|
|
42054
42065
|
break;
|
|
42055
42066
|
case Tt.Maximum:
|
|
42056
|
-
e.setFrictionCombineRule(
|
|
42067
|
+
e.setFrictionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Max);
|
|
42057
42068
|
break;
|
|
42058
42069
|
case Tt.Minimum:
|
|
42059
|
-
e.setFrictionCombineRule(
|
|
42070
|
+
e.setFrictionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Min);
|
|
42060
42071
|
break;
|
|
42061
42072
|
case Tt.Multiply:
|
|
42062
|
-
e.setFrictionCombineRule(
|
|
42073
|
+
e.setFrictionCombineRule(D.RAPIER_PHYSICS.MODULE.CoefficientCombineRule.Multiply);
|
|
42063
42074
|
break;
|
|
42064
42075
|
}
|
|
42065
42076
|
}
|
|
42066
42077
|
((a = t.attachedRigidbody) == null ? void 0 : a.autoMass) === !1 && (e.setDensity(1e-6), e.setMass(1e-6));
|
|
42067
42078
|
try {
|
|
42068
42079
|
const l = this.world.createCollider(e, n);
|
|
42069
|
-
return l[ui] = t, t[Xt] = l, l.setActiveEvents(
|
|
42080
|
+
return l[ui] = t, t[Xt] = l, l.setActiveEvents(D.RAPIER_PHYSICS.MODULE.ActiveEvents.COLLISION_EVENTS), l.setActiveCollisionTypes(D.RAPIER_PHYSICS.MODULE.ActiveCollisionTypes.ALL), this.objects.push(t), this.bodies.push(l), this.updateColliderCollisionGroups(t), l;
|
|
42070
42081
|
} catch (l) {
|
|
42071
42082
|
return console.error('Error creating collider "' + t.name + `"
|
|
42072
42083
|
Error:`, l), null;
|
|
@@ -42106,12 +42117,12 @@ Error:`, l), null;
|
|
|
42106
42117
|
if (i = n[Xt], !i) {
|
|
42107
42118
|
const s = n.isKinematic && !tm;
|
|
42108
42119
|
st && console.log("Create rigidbody", s);
|
|
42109
|
-
const a = s ?
|
|
42110
|
-
a.setTranslation(l.x, l.y, l.z), a.setRotation(Oe(t.attachedRigidbody.gameObject)), a.centerOfMass = new
|
|
42120
|
+
const a = s ? D.RAPIER_PHYSICS.MODULE.RigidBodyDesc.kinematicPositionBased() : D.RAPIER_PHYSICS.MODULE.RigidBodyDesc.dynamic(), l = te(t.attachedRigidbody.gameObject);
|
|
42121
|
+
a.setTranslation(l.x, l.y, l.z), a.setRotation(Oe(t.attachedRigidbody.gameObject)), a.centerOfMass = new D.RAPIER_PHYSICS.MODULE.Vector3(n.centerOfMass.x, n.centerOfMass.y, n.centerOfMass.z), i = this.world.createRigidBody(a), this.bodies.push(i), this.objects.push(n);
|
|
42111
42122
|
}
|
|
42112
42123
|
i[ui] = n, n[Xt] = i, this.internalUpdateRigidbodyProperties(n, i), this.getRigidbodyRelativeMatrix(t.gameObject, n.gameObject, e), t[p0] = i;
|
|
42113
42124
|
} else {
|
|
42114
|
-
const n =
|
|
42125
|
+
const n = D.RAPIER_PHYSICS.MODULE.RigidBodyDesc.kinematicPositionBased(), s = te(t.gameObject);
|
|
42115
42126
|
n.setTranslation(s.x, s.y, s.z), n.setRotation(Oe(t.gameObject)), i = this.world.createRigidBody(n), e.identity(), i[ui] = null;
|
|
42116
42127
|
}
|
|
42117
42128
|
return i;
|
|
@@ -42124,12 +42135,12 @@ Error:`, l), null;
|
|
|
42124
42135
|
let n = !1;
|
|
42125
42136
|
switch (i.type) {
|
|
42126
42137
|
// Sphere Collider
|
|
42127
|
-
case
|
|
42138
|
+
case D.RAPIER_PHYSICS.MODULE.ShapeType.Ball: {
|
|
42128
42139
|
const f = i, m = t, g = t.gameObject, _ = Ke(g, this._tempPosition), y = Math.abs(m.radius * _.x);
|
|
42129
42140
|
n = f.radius !== y, f.radius = y, n && e.setShape(f);
|
|
42130
42141
|
break;
|
|
42131
42142
|
}
|
|
42132
|
-
case
|
|
42143
|
+
case D.RAPIER_PHYSICS.MODULE.ShapeType.Cuboid:
|
|
42133
42144
|
const s = i, a = t, l = t.gameObject, c = Ke(l, this._tempPosition), h = Math.abs(a.size.x * 0.5 * c.x), d = Math.abs(a.size.y * 0.5 * c.y), u = Math.abs(a.size.z * 0.5 * c.z);
|
|
42134
42145
|
n = s.halfExtents.x !== h || s.halfExtents.y !== d || s.halfExtents.z !== u, s.halfExtents.x = h, s.halfExtents.y = d, s.halfExtents.z = u, n && e.setShape(s);
|
|
42135
42146
|
break;
|
|
@@ -42155,11 +42166,11 @@ Error:`, l), null;
|
|
|
42155
42166
|
e.collider(i).setDensity(1e-7);
|
|
42156
42167
|
e.recomputeMassPropertiesFromColliders();
|
|
42157
42168
|
}
|
|
42158
|
-
e.setEnabledRotations(!t.lockRotationX, !t.lockRotationY, !t.lockRotationZ, !1), e.setEnabledTranslations(!t.lockPositionX, !t.lockPositionY, !t.lockPositionZ, !1), t.isKinematic ? e.setBodyType(
|
|
42169
|
+
e.setEnabledRotations(!t.lockRotationX, !t.lockRotationY, !t.lockRotationZ, !1), e.setEnabledTranslations(!t.lockPositionX, !t.lockPositionY, !t.lockPositionZ, !1), t.isKinematic ? e.setBodyType(D.RAPIER_PHYSICS.MODULE.RigidBodyType.KinematicPositionBased, !1) : e.setBodyType(D.RAPIER_PHYSICS.MODULE.RigidBodyType.Dynamic, !1);
|
|
42159
42170
|
}
|
|
42160
42171
|
step(t) {
|
|
42161
42172
|
if (this.world && this.enabled) {
|
|
42162
|
-
if (this._isUpdatingPhysicsWorld = !0, this.eventQueue || (this.eventQueue = new
|
|
42173
|
+
if (this._isUpdatingPhysicsWorld = !0, this.eventQueue || (this.eventQueue = new D.RAPIER_PHYSICS.MODULE.EventQueue(!1)), t === void 0 || t <= 0) {
|
|
42163
42174
|
this._isUpdatingPhysicsWorld = !1;
|
|
42164
42175
|
return;
|
|
42165
42176
|
} else t !== void 0 && (this.world.timestep = $.lerp(this.world.timestep, t, 0.8));
|
|
@@ -42172,11 +42183,11 @@ Error:`, l), null;
|
|
|
42172
42183
|
}
|
|
42173
42184
|
}
|
|
42174
42185
|
postStep() {
|
|
42175
|
-
this.world && this.enabled && (this._isUpdatingPhysicsWorld = !0, this.syncObjects(), this._isUpdatingPhysicsWorld = !1, this.eventQueue && !this.collisionHandler && (this.collisionHandler = new
|
|
42186
|
+
this.world && this.enabled && (this._isUpdatingPhysicsWorld = !0, this.syncObjects(), this._isUpdatingPhysicsWorld = !1, this.eventQueue && !this.collisionHandler && (this.collisionHandler = new HI(this.world, this.eventQueue)), this.collisionHandler && (this.collisionHandler.handleCollisionEvents(), this.collisionHandler.update()), this.updateDebugRendering(this.world));
|
|
42176
42187
|
}
|
|
42177
42188
|
updateDebugRendering(t) {
|
|
42178
42189
|
var e, i, n, s;
|
|
42179
|
-
if (st || tm ||
|
|
42190
|
+
if (st || tm || VI || this.debugRenderColliders === !0) {
|
|
42180
42191
|
if (!this.lines) {
|
|
42181
42192
|
const l = new C0({
|
|
42182
42193
|
color: 7855479,
|
|
@@ -42216,19 +42227,19 @@ Error:`, l), null;
|
|
|
42216
42227
|
}
|
|
42217
42228
|
}
|
|
42218
42229
|
syncPhysicsBody(t, e, i, n) {
|
|
42219
|
-
if (e instanceof
|
|
42230
|
+
if (e instanceof D.RAPIER_PHYSICS.MODULE.RigidBody) {
|
|
42220
42231
|
const s = te(t, this._tempPosition), a = Oe(t, this._tempQuaternion);
|
|
42221
42232
|
switch (e.bodyType()) {
|
|
42222
|
-
case
|
|
42223
|
-
case
|
|
42224
|
-
case
|
|
42233
|
+
case D.RAPIER_PHYSICS.MODULE.RigidBodyType.Fixed:
|
|
42234
|
+
case D.RAPIER_PHYSICS.MODULE.RigidBodyType.KinematicPositionBased:
|
|
42235
|
+
case D.RAPIER_PHYSICS.MODULE.RigidBodyType.KinematicVelocityBased:
|
|
42225
42236
|
i && e.setNextKinematicTranslation(s), n && e.setNextKinematicRotation(a);
|
|
42226
42237
|
break;
|
|
42227
42238
|
default:
|
|
42228
42239
|
i && e.setTranslation(s, !1), n && e.setRotation(a, !1);
|
|
42229
42240
|
break;
|
|
42230
42241
|
}
|
|
42231
|
-
} else if (e instanceof
|
|
42242
|
+
} else if (e instanceof D.RAPIER_PHYSICS.MODULE.Collider) {
|
|
42232
42243
|
t.matrixWorldNeedsUpdate && t.updateWorldMatrix(!0, !1), t.matrixWorld.decompose(this._tempPosition, this._tempQuaternion, this._tempScale);
|
|
42233
42244
|
const s = this._tempPosition, a = this._tempQuaternion, l = e[ui];
|
|
42234
42245
|
if (this.tryApplyCenter(l, s), i) {
|
|
@@ -42262,7 +42273,7 @@ Error:`, l), null;
|
|
|
42262
42273
|
}
|
|
42263
42274
|
const i = t[Xt], n = e[Xt];
|
|
42264
42275
|
this.calculateJointRelativeMatrices(t.gameObject, e.gameObject, this._tempMatrix), this._tempMatrix.decompose(this._tempPosition, this._tempQuaternion, this._tempScale);
|
|
42265
|
-
const s =
|
|
42276
|
+
const s = D.RAPIER_PHYSICS.MODULE.JointData.fixed(
|
|
42266
42277
|
Os.centerConnectionPos,
|
|
42267
42278
|
Os.centerConnectionRot,
|
|
42268
42279
|
this._tempPosition,
|
|
@@ -42278,7 +42289,7 @@ Error:`, l), null;
|
|
|
42278
42289
|
}
|
|
42279
42290
|
const s = t[Xt], a = e[Xt];
|
|
42280
42291
|
this.calculateJointRelativeMatrices(t.gameObject, e.gameObject, this._tempMatrix), this._tempMatrix.decompose(this._tempPosition, this._tempQuaternion, this._tempScale);
|
|
42281
|
-
const l =
|
|
42292
|
+
const l = D.RAPIER_PHYSICS.MODULE.JointData.revolute(i, this._tempPosition, n), c = this.world.createImpulseJoint(l, s, a, !0);
|
|
42282
42293
|
st && console.log("ADD HINGE JOINT", c);
|
|
42283
42294
|
}
|
|
42284
42295
|
calculateJointRelativeMatrices(t, e, i) {
|
|
@@ -42289,7 +42300,7 @@ Error:`, l), null;
|
|
|
42289
42300
|
};
|
|
42290
42301
|
r(Os, "_didLoadPhysicsEngine", !1), r(Os, "_matricesBuffer", []), r(Os, "centerConnectionPos", { x: 0, y: 0, z: 0 }), r(Os, "centerConnectionRot", { x: 0, y: 0, z: 0, w: 1 });
|
|
42291
42302
|
let fg = Os;
|
|
42292
|
-
class
|
|
42303
|
+
class HI {
|
|
42293
42304
|
constructor(t, e) {
|
|
42294
42305
|
r(this, "world");
|
|
42295
42306
|
r(this, "eventQueue");
|
|
@@ -42409,7 +42420,7 @@ class VI {
|
|
|
42409
42420
|
}
|
|
42410
42421
|
}
|
|
42411
42422
|
}
|
|
42412
|
-
class
|
|
42423
|
+
class S2 {
|
|
42413
42424
|
/**
|
|
42414
42425
|
* Use this method to quickly setup a scene to compare multiple models.
|
|
42415
42426
|
* @example
|
|
@@ -42465,26 +42476,26 @@ let pg = 0;
|
|
|
42465
42476
|
function m0(o) {
|
|
42466
42477
|
o ? pg++ : pg--;
|
|
42467
42478
|
}
|
|
42468
|
-
function
|
|
42479
|
+
function C2() {
|
|
42469
42480
|
return pg > 0;
|
|
42470
42481
|
}
|
|
42471
|
-
const
|
|
42482
|
+
const GI = {
|
|
42472
42483
|
binary: !0,
|
|
42473
42484
|
animations: !0
|
|
42474
42485
|
};
|
|
42475
|
-
async function
|
|
42486
|
+
async function P2(o) {
|
|
42476
42487
|
if (!o.context)
|
|
42477
42488
|
throw new Error("No context provided to exportAsGLTF");
|
|
42478
42489
|
o.scene || (o.scene = o.context.scene);
|
|
42479
42490
|
const t = {
|
|
42480
|
-
...
|
|
42491
|
+
...GI,
|
|
42481
42492
|
...o
|
|
42482
42493
|
}, { context: e } = t, i = new I0();
|
|
42483
42494
|
i.register((l) => new kw(l)), i.register((l) => new pR(l)), i.register((l) => new ww(l)), Ow(i, t.context);
|
|
42484
42495
|
const n = {
|
|
42485
42496
|
binary: t.binary,
|
|
42486
|
-
animations:
|
|
42487
|
-
}, s = new
|
|
42497
|
+
animations: XI(e, t.scene, [])
|
|
42498
|
+
}, s = new qI();
|
|
42488
42499
|
console.debug("Exporting GLTF", n), s.onBeforeExport(t), m0(!0);
|
|
42489
42500
|
const a = await i.parseAsync(t.scene, n).catch((l) => (console.error(l), null));
|
|
42490
42501
|
if (m0(!1), s.onAfterExport(t), !a)
|
|
@@ -42501,7 +42512,7 @@ async function C2(o) {
|
|
|
42501
42512
|
return a;
|
|
42502
42513
|
}
|
|
42503
42514
|
const g0 = Symbol("needle:weight");
|
|
42504
|
-
class
|
|
42515
|
+
class qI {
|
|
42505
42516
|
constructor() {
|
|
42506
42517
|
r(this, "_undo", []);
|
|
42507
42518
|
}
|
|
@@ -42527,7 +42538,7 @@ class GI {
|
|
|
42527
42538
|
this._undo.forEach((e) => e()), this._undo.length = 0;
|
|
42528
42539
|
}
|
|
42529
42540
|
}
|
|
42530
|
-
function
|
|
42541
|
+
function XI(o, t, e) {
|
|
42531
42542
|
o.animations.mixers.forEach((n) => {
|
|
42532
42543
|
const s = Qc.tryGetActionsFromMixer(n);
|
|
42533
42544
|
if (s)
|
|
@@ -42646,7 +42657,7 @@ class nS {
|
|
|
42646
42657
|
return this.head !== null && this.head !== void 0;
|
|
42647
42658
|
}
|
|
42648
42659
|
}
|
|
42649
|
-
class
|
|
42660
|
+
class QI {
|
|
42650
42661
|
constructor() {
|
|
42651
42662
|
r(this, "avatarRegistryUrl", null);
|
|
42652
42663
|
}
|
|
@@ -42770,16 +42781,16 @@ class XI {
|
|
|
42770
42781
|
return t;
|
|
42771
42782
|
}
|
|
42772
42783
|
}
|
|
42773
|
-
class
|
|
42784
|
+
class YI {
|
|
42774
42785
|
get extensionName() {
|
|
42775
42786
|
return "DocumentExtension";
|
|
42776
42787
|
}
|
|
42777
42788
|
onAfterBuildDocument(t) {
|
|
42778
42789
|
}
|
|
42779
42790
|
}
|
|
42780
|
-
class
|
|
42791
|
+
class KI {
|
|
42781
42792
|
}
|
|
42782
|
-
const
|
|
42793
|
+
const O2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42783
42794
|
__proto__: null,
|
|
42784
42795
|
ActionBuilder: be,
|
|
42785
42796
|
ActionCollection: hT,
|
|
@@ -42799,7 +42810,7 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42799
42810
|
Avatar: Xr,
|
|
42800
42811
|
AvatarBlink_Simple: bl,
|
|
42801
42812
|
AvatarEyeLook_Rotation: dw,
|
|
42802
|
-
AvatarLoader:
|
|
42813
|
+
AvatarLoader: QI,
|
|
42803
42814
|
AvatarMarker: oi,
|
|
42804
42815
|
AvatarModel: nS,
|
|
42805
42816
|
Avatar_Brain_LookAt: lu,
|
|
@@ -42838,7 +42849,7 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42838
42849
|
DeleteBox: Zc,
|
|
42839
42850
|
DepthOfField: ps,
|
|
42840
42851
|
DeviceFlag: ry,
|
|
42841
|
-
DocumentExtension:
|
|
42852
|
+
DocumentExtension: YI,
|
|
42842
42853
|
DragControls: Ea,
|
|
42843
42854
|
DropListener: Ko,
|
|
42844
42855
|
Duplicatable: bw,
|
|
@@ -42995,26 +43006,26 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42995
43006
|
XRFlag: xn,
|
|
42996
43007
|
XRRig: Ky,
|
|
42997
43008
|
XRState: gi,
|
|
42998
|
-
__Ignore:
|
|
43009
|
+
__Ignore: KI
|
|
42999
43010
|
}, Symbol.toStringTag, { value: "Module" })), Cu = S("debugmissingcamera");
|
|
43000
43011
|
fe.registerCallback(me.MissingCamera, (o) => {
|
|
43001
|
-
var l, c, h
|
|
43012
|
+
var l, c, h;
|
|
43002
43013
|
Cu && console.warn("Creating missing camera");
|
|
43003
43014
|
const t = o.context.scene, e = new ve();
|
|
43004
43015
|
e.name = "Default Fallback Camera", t.add(e);
|
|
43005
43016
|
const i = new Ai();
|
|
43006
43017
|
if (i.sourceId = ((c = (l = o.files) == null ? void 0 : l[0]) == null ? void 0 : c.src) ?? "unknown", i.fieldOfView = 35, o.context.domElement.getAttribute("transparent") != null)
|
|
43007
43018
|
i.clearFlags = $r.Uninitialized;
|
|
43008
|
-
else if ((h = o.context.domElement.getAttribute("
|
|
43009
|
-
i.clearFlags = $r.Skybox,
|
|
43019
|
+
else if ((h = o.context.domElement.getAttribute("background-image")) != null && h.length || o.context.lightmaps.tryGetSkybox(i.sourceId))
|
|
43020
|
+
i.clearFlags = $r.Skybox, o.context.domElement.getAttribute("background-blurriness") === null && (o.context.scene.backgroundBlurriness = 0.2);
|
|
43010
43021
|
else {
|
|
43011
43022
|
if (i.clearFlags = $r.SolidColor, !o.context.domElement.getAttribute("background-color")) {
|
|
43012
|
-
let
|
|
43013
|
-
typeof window !== void 0 && window.matchMedia("(prefers-color-scheme: dark)").matches && (
|
|
43023
|
+
let d = "#efefef";
|
|
43024
|
+
typeof window !== void 0 && window.matchMedia("(prefers-color-scheme: dark)").matches && (d = "#1f1f1f"), t.background = new re(d);
|
|
43014
43025
|
}
|
|
43015
43026
|
if (!t.environment) {
|
|
43016
|
-
const
|
|
43017
|
-
t.environment =
|
|
43027
|
+
const d = new wC(o.context.renderer), u = new Xy("neutral");
|
|
43028
|
+
t.environment = d.fromScene(u, 0.025).texture;
|
|
43018
43029
|
}
|
|
43019
43030
|
}
|
|
43020
43031
|
const s = qa(e, i, !0);
|
|
@@ -43068,7 +43079,7 @@ fe.registerCallback(me.ContextCreated, (o) => {
|
|
|
43068
43079
|
createAnimationComponent: (n, s) => sn(n, si)
|
|
43069
43080
|
});
|
|
43070
43081
|
});
|
|
43071
|
-
class
|
|
43082
|
+
class ZI extends t1 {
|
|
43072
43083
|
constructor() {
|
|
43073
43084
|
super(new Worker(new URL(
|
|
43074
43085
|
/* @vite-ignore */
|
|
@@ -43114,12 +43125,12 @@ class KI extends t1 {
|
|
|
43114
43125
|
});
|
|
43115
43126
|
}
|
|
43116
43127
|
}
|
|
43117
|
-
const
|
|
43128
|
+
const JI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
43118
43129
|
__proto__: null,
|
|
43119
|
-
GenerateMeshBVHWorker:
|
|
43130
|
+
GenerateMeshBVHWorker: ZI
|
|
43120
43131
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
43121
43132
|
export {
|
|
43122
|
-
|
|
43133
|
+
d2 as $physicsKey,
|
|
43123
43134
|
be as ActionBuilder,
|
|
43124
43135
|
hT as ActionCollection,
|
|
43125
43136
|
Ji as ActionModel,
|
|
@@ -43147,7 +43158,7 @@ export {
|
|
|
43147
43158
|
Xr as Avatar,
|
|
43148
43159
|
bl as AvatarBlink_Simple,
|
|
43149
43160
|
dw as AvatarEyeLook_Rotation,
|
|
43150
|
-
|
|
43161
|
+
QI as AvatarLoader,
|
|
43151
43162
|
oi as AvatarMarker,
|
|
43152
43163
|
nS as AvatarModel,
|
|
43153
43164
|
lu as Avatar_Brain_LookAt,
|
|
@@ -43189,15 +43200,15 @@ export {
|
|
|
43189
43200
|
ca as ColorAdjustments,
|
|
43190
43201
|
Mh as ColorBySpeedModule,
|
|
43191
43202
|
Ey as ColorOverLifetimeModule,
|
|
43192
|
-
|
|
43193
|
-
|
|
43203
|
+
JL as Component,
|
|
43204
|
+
j as Component$1,
|
|
43194
43205
|
Xu as ComponentLifecycleEvents,
|
|
43195
|
-
|
|
43206
|
+
O2 as Components,
|
|
43196
43207
|
IP as ConnectionEvents,
|
|
43197
43208
|
EM as ContactPoint,
|
|
43198
43209
|
cf as ContactShadows,
|
|
43199
43210
|
Z as Context,
|
|
43200
|
-
|
|
43211
|
+
YL as ContextArgs,
|
|
43201
43212
|
me as ContextEvent,
|
|
43202
43213
|
fe as ContextRegistry,
|
|
43203
43214
|
Vy as ControlTrackHandler,
|
|
@@ -43209,7 +43220,7 @@ export {
|
|
|
43209
43220
|
ps as DepthOfField,
|
|
43210
43221
|
ry as DeviceFlag,
|
|
43211
43222
|
Q as DeviceUtilities,
|
|
43212
|
-
|
|
43223
|
+
YI as DocumentExtension,
|
|
43213
43224
|
Ea as DragControls,
|
|
43214
43225
|
yw as DragMode,
|
|
43215
43226
|
Ko as DropListener,
|
|
@@ -43226,7 +43237,7 @@ export {
|
|
|
43226
43237
|
LR as FieldWithDefault,
|
|
43227
43238
|
eu as FileReference,
|
|
43228
43239
|
JO as FileReferenceSerializer,
|
|
43229
|
-
|
|
43240
|
+
u2 as FileSpawnModel,
|
|
43230
43241
|
sR as File_Event,
|
|
43231
43242
|
hx as FixedJoint,
|
|
43232
43243
|
Sh as Fog,
|
|
@@ -43248,7 +43259,7 @@ export {
|
|
|
43248
43259
|
eh as HideOnStart,
|
|
43249
43260
|
Sf as HingeJoint,
|
|
43250
43261
|
ox as HorizontalLayoutGroup,
|
|
43251
|
-
|
|
43262
|
+
HL as HostData,
|
|
43252
43263
|
Dh as Image,
|
|
43253
43264
|
Jd as ImageReference,
|
|
43254
43265
|
ZO as ImageReferenceSerializer,
|
|
@@ -43265,21 +43276,21 @@ export {
|
|
|
43265
43276
|
cs as InstantiateOptions,
|
|
43266
43277
|
mw as Interactable,
|
|
43267
43278
|
wu as InternalScreenshotUtils,
|
|
43268
|
-
|
|
43269
|
-
|
|
43279
|
+
zL as JoinedRoomResponse,
|
|
43280
|
+
jL as KeyEventArgs,
|
|
43270
43281
|
Ii as Keyframe,
|
|
43271
43282
|
Cf as LODGroup,
|
|
43272
43283
|
Oh as LODModel,
|
|
43273
|
-
|
|
43284
|
+
UL as LeftRoomResponse,
|
|
43274
43285
|
Wi as Light,
|
|
43275
43286
|
mk as LightData,
|
|
43276
43287
|
Pt as LimitVelocityOverLifetimeModule,
|
|
43277
|
-
|
|
43288
|
+
x2 as LoadingElementOptions,
|
|
43278
43289
|
pw as LogStats,
|
|
43279
43290
|
nn as LogType,
|
|
43280
43291
|
Nx as LookAt,
|
|
43281
43292
|
_l as LookAtConstraint,
|
|
43282
|
-
|
|
43293
|
+
D as MODULES,
|
|
43283
43294
|
li as MainModule,
|
|
43284
43295
|
Bx as MarkerType,
|
|
43285
43296
|
xf as MaskableGraphic,
|
|
@@ -43402,7 +43413,7 @@ export {
|
|
|
43402
43413
|
Ec as SpriteData,
|
|
43403
43414
|
Ni as SpriteRenderer,
|
|
43404
43415
|
th as SpriteSheet,
|
|
43405
|
-
|
|
43416
|
+
t2 as StateMachineBehaviour,
|
|
43406
43417
|
rw as StreamEndedEvent,
|
|
43407
43418
|
LM as StreamReceivedEvent,
|
|
43408
43419
|
og as SubEmitterSystem,
|
|
@@ -43412,7 +43423,7 @@ export {
|
|
|
43412
43423
|
Gw as TapGestureTrigger,
|
|
43413
43424
|
by as TeleportTarget,
|
|
43414
43425
|
Ix as TestRunner,
|
|
43415
|
-
|
|
43426
|
+
S2 as TestSceneUtils,
|
|
43416
43427
|
Lx as TestSimulateUserData,
|
|
43417
43428
|
ai as Text,
|
|
43418
43429
|
nx as TextBuilder,
|
|
@@ -43440,7 +43451,7 @@ export {
|
|
|
43440
43451
|
cx as USDZUIExtension,
|
|
43441
43452
|
pM as UriSerializer,
|
|
43442
43453
|
hf as UsageMarker,
|
|
43443
|
-
|
|
43454
|
+
NL as UserJoinedOrLeftRoomModel,
|
|
43444
43455
|
es as VERSION,
|
|
43445
43456
|
Ww as VariantAction,
|
|
43446
43457
|
Je as VelocityOverLifetimeModule,
|
|
@@ -43453,7 +43464,7 @@ export {
|
|
|
43453
43464
|
Th as Volume,
|
|
43454
43465
|
N as VolumeParameter,
|
|
43455
43466
|
Iy as VolumeProfile,
|
|
43456
|
-
|
|
43467
|
+
qL as WaitForFrames,
|
|
43457
43468
|
tk as WaitForPromise,
|
|
43458
43469
|
Gv as WaitForSeconds,
|
|
43459
43470
|
Fo as Watch,
|
|
@@ -43472,25 +43483,25 @@ export {
|
|
|
43472
43483
|
Ky as XRRig,
|
|
43473
43484
|
gi as XRState,
|
|
43474
43485
|
As as XRStateFlag,
|
|
43475
|
-
|
|
43486
|
+
KI as __Ignore,
|
|
43476
43487
|
eO as __internalNotifyObjectDestroyed,
|
|
43477
43488
|
zo as activeInHierarchyFieldName,
|
|
43478
43489
|
w1 as addAttributeChangeCallback,
|
|
43479
43490
|
sn as addComponent,
|
|
43480
|
-
|
|
43491
|
+
f2 as addCustomExtensionPlugin,
|
|
43481
43492
|
qa as addNewComponent,
|
|
43482
43493
|
Eg as addPatch,
|
|
43483
43494
|
$g as apply,
|
|
43484
|
-
|
|
43495
|
+
ZL as applyHMRChanges,
|
|
43485
43496
|
jO as applyPrototypeExtensions,
|
|
43486
43497
|
dO as beginListenDestroy,
|
|
43487
43498
|
pO as beginListenInstantiate,
|
|
43488
43499
|
mv as binaryIdentifierCasts,
|
|
43489
|
-
|
|
43500
|
+
QL as build_scene_functions,
|
|
43490
43501
|
Sa as builtinComponentKeyName,
|
|
43491
43502
|
Yx as calculateProgress01,
|
|
43492
|
-
|
|
43493
|
-
|
|
43503
|
+
PL as clearMessages,
|
|
43504
|
+
l2 as colorSerializer,
|
|
43494
43505
|
xO as compareAssociation,
|
|
43495
43506
|
vp as componentSerializer,
|
|
43496
43507
|
K1 as copyTexture,
|
|
@@ -43509,9 +43520,9 @@ export {
|
|
|
43509
43520
|
js as disposeStream,
|
|
43510
43521
|
bd as editorGuidKeyName,
|
|
43511
43522
|
Wa as enableSpatialConsole,
|
|
43512
|
-
|
|
43513
|
-
|
|
43514
|
-
|
|
43523
|
+
c2 as euler,
|
|
43524
|
+
h2 as eventListSerializer,
|
|
43525
|
+
P2 as exportAsGLTF,
|
|
43515
43526
|
$v as findByGuid,
|
|
43516
43527
|
Ju as findObjectOfType,
|
|
43517
43528
|
WO as findObjectsOfType,
|
|
@@ -43519,7 +43530,7 @@ export {
|
|
|
43519
43530
|
tP as fitObjectIntoVolume,
|
|
43520
43531
|
cl as foreachComponent,
|
|
43521
43532
|
Vg as foreachComponentEnumerator,
|
|
43522
|
-
|
|
43533
|
+
RL as forward,
|
|
43523
43534
|
C1 as generateQRCode,
|
|
43524
43535
|
fO as generateSeed,
|
|
43525
43536
|
Fi as getBoundingBox,
|
|
@@ -43536,11 +43547,11 @@ export {
|
|
|
43536
43547
|
os as getLoader,
|
|
43537
43548
|
Yu as getOrAddComponent,
|
|
43538
43549
|
S as getParam,
|
|
43539
|
-
|
|
43540
|
-
|
|
43541
|
-
|
|
43550
|
+
TL as getParentHierarchyPath,
|
|
43551
|
+
uL as getPath,
|
|
43552
|
+
BL as getPeerOptions,
|
|
43542
43553
|
RP as getPeerjsInstance,
|
|
43543
|
-
|
|
43554
|
+
VL as getResourceUserCount,
|
|
43544
43555
|
N1 as getTempColor,
|
|
43545
43556
|
Un as getTempQuaternion,
|
|
43546
43557
|
q as getTempVector,
|
|
@@ -43564,62 +43575,62 @@ export {
|
|
|
43564
43575
|
_P as invokeXRSessionStart,
|
|
43565
43576
|
VO as isActiveInHierarchy,
|
|
43566
43577
|
uh as isActiveSelf,
|
|
43567
|
-
|
|
43578
|
+
yL as isAndroidDevice,
|
|
43568
43579
|
Y1 as isAnimationAction,
|
|
43569
43580
|
TM as isComponent,
|
|
43570
|
-
|
|
43571
|
-
|
|
43581
|
+
lL as isDebugMode,
|
|
43582
|
+
fL as isDesktop,
|
|
43572
43583
|
ll as isDestroyed,
|
|
43573
43584
|
z as isDevEnvironment,
|
|
43574
|
-
|
|
43575
|
-
|
|
43585
|
+
WL as isDisposed,
|
|
43586
|
+
C2 as isExporting,
|
|
43576
43587
|
RM as isGLTFModel,
|
|
43577
43588
|
r1 as isHostedOnGlitch,
|
|
43578
43589
|
gb as isHotReloadEnabled,
|
|
43579
|
-
|
|
43580
|
-
|
|
43590
|
+
KL as isHotReloading,
|
|
43591
|
+
mL as isIPad,
|
|
43581
43592
|
bk as isIconElement,
|
|
43582
43593
|
_i as isLocalNetwork,
|
|
43583
|
-
|
|
43584
|
-
|
|
43585
|
-
|
|
43586
|
-
|
|
43594
|
+
bL as isMacOS,
|
|
43595
|
+
pL as isMobileDevice,
|
|
43596
|
+
_L as isMozillaXR,
|
|
43597
|
+
xL as isQuest,
|
|
43587
43598
|
JP as isResourceTrackingEnabled,
|
|
43588
|
-
|
|
43599
|
+
wL as isSafari,
|
|
43589
43600
|
Wg as isUsingInstancing,
|
|
43590
|
-
|
|
43591
|
-
|
|
43592
|
-
|
|
43601
|
+
vL as isiOS,
|
|
43602
|
+
gL as isiPad,
|
|
43603
|
+
w2 as loadAsset,
|
|
43593
43604
|
qx as loadSync,
|
|
43594
43605
|
mm as logHierarchy,
|
|
43595
|
-
|
|
43606
|
+
kL as lookAtInverse,
|
|
43596
43607
|
Vu as lookAtObject,
|
|
43597
|
-
|
|
43598
|
-
|
|
43608
|
+
ML as lookAtScreenPoint,
|
|
43609
|
+
hL as makeId,
|
|
43599
43610
|
y1 as makeIdFromRandomWords,
|
|
43600
43611
|
Tn as makeNameSafe,
|
|
43601
43612
|
HO as markAsInstancedRendered,
|
|
43602
|
-
|
|
43603
|
-
|
|
43613
|
+
SL as microphonePermissionsGranted,
|
|
43614
|
+
aL as nameof,
|
|
43604
43615
|
m1 as nameofFactory,
|
|
43605
43616
|
cM as objectSerializer,
|
|
43606
|
-
|
|
43607
|
-
|
|
43608
|
-
|
|
43609
|
-
|
|
43610
|
-
|
|
43611
|
-
|
|
43617
|
+
DL as offXRSessionEnd,
|
|
43618
|
+
LL as offXRSessionStart,
|
|
43619
|
+
o2 as onAfterRender,
|
|
43620
|
+
s2 as onBeforeRender,
|
|
43621
|
+
i2 as onClear,
|
|
43622
|
+
n2 as onDestroy,
|
|
43612
43623
|
Zk as onInitialized,
|
|
43613
43624
|
Jk as onStart,
|
|
43614
43625
|
eM as onUpdate,
|
|
43615
43626
|
uv as onXRSessionEnd,
|
|
43616
43627
|
Ig as onXRSessionStart,
|
|
43617
|
-
|
|
43628
|
+
II as parseSync,
|
|
43618
43629
|
iP as placeOnSurface,
|
|
43619
43630
|
ev as postprocessFBXMaterials,
|
|
43620
|
-
|
|
43631
|
+
a2 as prefix,
|
|
43621
43632
|
g1 as pushState,
|
|
43622
|
-
|
|
43633
|
+
dL as randomNumber,
|
|
43623
43634
|
gv as registerBinaryType,
|
|
43624
43635
|
Gg as registerComponent,
|
|
43625
43636
|
Pw as registerComponentExtension,
|
|
@@ -43630,16 +43641,16 @@ export {
|
|
|
43630
43641
|
cv as registerLoader,
|
|
43631
43642
|
gO as registerPrefabProvider,
|
|
43632
43643
|
BO as registerPrototypeExtensions,
|
|
43633
|
-
|
|
43644
|
+
GL as registerType,
|
|
43634
43645
|
b1 as relativePathPrefix,
|
|
43635
43646
|
x1 as removeAttributeChangeCallback,
|
|
43636
43647
|
zv as removeComponent,
|
|
43637
|
-
|
|
43638
|
-
|
|
43648
|
+
p2 as removeCustomImportExtensionType,
|
|
43649
|
+
IL as removePatch,
|
|
43639
43650
|
Jr as resolveUrl,
|
|
43640
43651
|
_1 as sanitizeString,
|
|
43641
|
-
|
|
43642
|
-
|
|
43652
|
+
yI as saveImage,
|
|
43653
|
+
v2 as screenshot,
|
|
43643
43654
|
Wx as screenshot2,
|
|
43644
43655
|
Tv as sendDestroyed,
|
|
43645
43656
|
p as serializable,
|
|
@@ -43647,18 +43658,18 @@ export {
|
|
|
43647
43658
|
yl as serializeable,
|
|
43648
43659
|
Cd as setActive,
|
|
43649
43660
|
M1 as setAllowBalloonMessages,
|
|
43650
|
-
|
|
43661
|
+
CL as setAllowOverlayMessages,
|
|
43651
43662
|
pm as setAutoFitEnabled,
|
|
43652
43663
|
__ as setCameraController,
|
|
43653
43664
|
GO as setDestroyed,
|
|
43654
|
-
|
|
43665
|
+
AL as setDevEnvironment,
|
|
43655
43666
|
xv as setDisposable,
|
|
43656
43667
|
Vl as setDontDestroy,
|
|
43657
43668
|
u_ as setOrAddParamsToUrl,
|
|
43658
|
-
|
|
43669
|
+
cL as setParam,
|
|
43659
43670
|
Ud as setParamWithoutReload,
|
|
43660
|
-
|
|
43661
|
-
|
|
43671
|
+
FL as setPeerOptions,
|
|
43672
|
+
$L as setResourceTrackingEnabled,
|
|
43662
43673
|
U0 as setState,
|
|
43663
43674
|
J0 as setVisibleInCustomShadowRendering,
|
|
43664
43675
|
Z0 as setWorldEuler,
|
|
@@ -43673,11 +43684,11 @@ export {
|
|
|
43673
43684
|
Ve as showBalloonMessage,
|
|
43674
43685
|
we as showBalloonWarning,
|
|
43675
43686
|
nv as showDebugConsole,
|
|
43676
|
-
|
|
43687
|
+
OL as slerp,
|
|
43677
43688
|
Qu as syncDestroy,
|
|
43678
43689
|
Xw as syncField,
|
|
43679
43690
|
Ev as syncInstantiate,
|
|
43680
|
-
|
|
43691
|
+
EL as textureToCanvas,
|
|
43681
43692
|
kP as tryCastBinary,
|
|
43682
43693
|
aR as tryDetermineMimetypeFromBinary,
|
|
43683
43694
|
rR as tryDetermineMimetypeFromURL,
|