@souldi/try-on 0.1.84 → 0.1.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mannequin-chunks/{GLTFLoader-S0hpQWQS.mjs → GLTFLoader-D8TDDHUI.mjs} +1 -1
- package/dist/mannequin-chunks/{three.module-BqUhHzuP.mjs → three.module-BTc07Glh.mjs} +180 -176
- package/dist/mannequin-loader.mjs +2 -2
- package/dist/widget.mjs +1 -1
- package/dist/widget.umd.js +1 -1
- package/package.json +1 -1
|
@@ -127,7 +127,7 @@ var Tr = {
|
|
|
127
127
|
}
|
|
128
128
|
hasEventListener(e, t) {
|
|
129
129
|
let n = this._listeners;
|
|
130
|
-
return n
|
|
130
|
+
return n !== void 0 && n[e] !== void 0 && n[e].indexOf(t) !== -1;
|
|
131
131
|
}
|
|
132
132
|
removeEventListener(e, t) {
|
|
133
133
|
let n = this._listeners;
|
|
@@ -926,7 +926,7 @@ var Zr = {
|
|
|
926
926
|
*[Symbol.iterator]() {
|
|
927
927
|
yield this.x, yield this.y, yield this.z;
|
|
928
928
|
}
|
|
929
|
-
}, $r =
|
|
929
|
+
}, $r = /*@__PURE__*/ new W(), ei = /*@__PURE__*/ new Qr(), G = class e {
|
|
930
930
|
static {
|
|
931
931
|
e.prototype.isMatrix3 = !0;
|
|
932
932
|
}
|
|
@@ -1035,7 +1035,7 @@ var Zr = {
|
|
|
1035
1035
|
clone() {
|
|
1036
1036
|
return new this.constructor().fromArray(this.elements);
|
|
1037
1037
|
}
|
|
1038
|
-
}, ti =
|
|
1038
|
+
}, ti = /*@__PURE__*/ new G(), ni = /*@__PURE__*/ new G().set(.4123908, .3575843, .1804808, .212639, .7151687, .0721923, .0193308, .1191948, .9505322), ri = /*@__PURE__*/ new G().set(3.2409699, -1.5373832, -.4986108, -.9692436, 1.8759675, .0415551, .0556301, -.203977, 1.0569715);
|
|
1039
1039
|
function ii() {
|
|
1040
1040
|
let e = {
|
|
1041
1041
|
enabled: !0,
|
|
@@ -1114,7 +1114,7 @@ function ii() {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
}), e;
|
|
1116
1116
|
}
|
|
1117
|
-
var K =
|
|
1117
|
+
var K = /*@__PURE__*/ ii();
|
|
1118
1118
|
function ai(e) {
|
|
1119
1119
|
return e < .04045 ? e * .0773993808 : (e * .9478672986 + .0521327014) ** 2.4;
|
|
1120
1120
|
}
|
|
@@ -1189,7 +1189,7 @@ function di(e) {
|
|
|
1189
1189
|
type: e.data.constructor.name
|
|
1190
1190
|
} : (z("Texture: Unable to serialize Texture."), {});
|
|
1191
1191
|
}
|
|
1192
|
-
var fi = 0, pi =
|
|
1192
|
+
var fi = 0, pi = /*@__PURE__*/ new W(), mi = class e extends Er {
|
|
1193
1193
|
constructor(t = e.DEFAULT_IMAGE, n = e.DEFAULT_MAPPING, r = je, i = je, a = R, o = Be, s = rt, c = He, l = e.DEFAULT_ANISOTROPY, u = "") {
|
|
1194
1194
|
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: fi++ }), this.uuid = jr(), this.name = "", this.source = new ui(t), this.mipmaps = [], this.mapping = n, this.channel = 0, this.wrapS = r, this.wrapT = i, this.magFilter = a, this.minFilter = o, this.anisotropy = l, this.format = s, this.internalFormat = null, this.type = c, this.offset = new U(0, 0), this.repeat = new U(1, 1), this.center = new U(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new G(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = u, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(t && t.depth && t.depth > 1), this.pmremVersion = 0, this.normalized = !1;
|
|
1195
1195
|
}
|
|
@@ -1817,7 +1817,7 @@ var hi = class e {
|
|
|
1817
1817
|
let n = this.elements;
|
|
1818
1818
|
return e[t] = n[0], e[t + 1] = n[1], e[t + 2] = n[2], e[t + 3] = n[3], e[t + 4] = n[4], e[t + 5] = n[5], e[t + 6] = n[6], e[t + 7] = n[7], e[t + 8] = n[8], e[t + 9] = n[9], e[t + 10] = n[10], e[t + 11] = n[11], e[t + 12] = n[12], e[t + 13] = n[13], e[t + 14] = n[14], e[t + 15] = n[15], e;
|
|
1819
1819
|
}
|
|
1820
|
-
}, Si =
|
|
1820
|
+
}, Si = /*@__PURE__*/ new W(), Ci = /*@__PURE__*/ new q(), wi = /*@__PURE__*/ new W(0, 0, 0), Ti = /*@__PURE__*/ new W(1, 1, 1), Ei = /*@__PURE__*/ new W(), Di = /*@__PURE__*/ new W(), Oi = /*@__PURE__*/ new W(), ki = /*@__PURE__*/ new q(), Ai = /*@__PURE__*/ new Qr(), ji = class e {
|
|
1821
1821
|
constructor(t = 0, n = 0, r = 0, i = e.DEFAULT_ORDER) {
|
|
1822
1822
|
this.isEuler = !0, this._x = t, this._y = n, this._z = r, this._order = i;
|
|
1823
1823
|
}
|
|
@@ -1934,7 +1934,7 @@ var Mi = class {
|
|
|
1934
1934
|
isEnabled(e) {
|
|
1935
1935
|
return (this.mask & (1 << e | 0)) != 0;
|
|
1936
1936
|
}
|
|
1937
|
-
}, Ni = 0, Pi =
|
|
1937
|
+
}, Ni = 0, Pi = /*@__PURE__*/ new W(), Fi = /*@__PURE__*/ new Qr(), Ii = /*@__PURE__*/ new q(), Li = /*@__PURE__*/ new W(), Ri = /*@__PURE__*/ new W(), zi = /*@__PURE__*/ new W(), Bi = /*@__PURE__*/ new Qr(), Vi = /*@__PURE__*/ new W(1, 0, 0), Hi = /*@__PURE__*/ new W(0, 1, 0), Ui = /*@__PURE__*/ new W(0, 0, 1), Wi = { type: "added" }, Gi = { type: "removed" }, Ki = {
|
|
1938
1938
|
type: "childadded",
|
|
1939
1939
|
child: null
|
|
1940
1940
|
}, qi = {
|
|
@@ -2209,7 +2209,7 @@ var Mi = class {
|
|
|
2209
2209
|
return this;
|
|
2210
2210
|
}
|
|
2211
2211
|
};
|
|
2212
|
-
J.DEFAULT_UP =
|
|
2212
|
+
J.DEFAULT_UP = /*@__PURE__*/ new W(0, 1, 0), J.DEFAULT_MATRIX_AUTO_UPDATE = !0, J.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
|
|
2213
2213
|
var Ji = class extends J {
|
|
2214
2214
|
constructor() {
|
|
2215
2215
|
super(), this.isGroup = !0, this.type = "Group";
|
|
@@ -2255,12 +2255,12 @@ var Ji = class extends J {
|
|
|
2255
2255
|
let e = t.getJointPose(r, n), i = this._getHandJoint(c, r);
|
|
2256
2256
|
e !== null && (i.matrix.fromArray(e.transform.matrix), i.matrix.decompose(i.position, i.rotation, i.scale), i.matrixWorldNeedsUpdate = !0, i.jointRadius = e.radius), i.visible = e !== null;
|
|
2257
2257
|
}
|
|
2258
|
-
let r = c.joints["index-finger-tip"], i = c.joints["thumb-tip"], o = r.position.distanceTo(i.position)
|
|
2259
|
-
c.inputState.pinching && o >
|
|
2258
|
+
let r = c.joints["index-finger-tip"], i = c.joints["thumb-tip"], o = r.position.distanceTo(i.position);
|
|
2259
|
+
c.inputState.pinching && o > .025 ? (c.inputState.pinching = !1, this.dispatchEvent({
|
|
2260
2260
|
type: "pinchend",
|
|
2261
2261
|
handedness: e.handedness,
|
|
2262
2262
|
target: this
|
|
2263
|
-
})) : !c.inputState.pinching && o <=
|
|
2263
|
+
})) : !c.inputState.pinching && o <= .015 && (c.inputState.pinching = !0, this.dispatchEvent({
|
|
2264
2264
|
type: "pinchstart",
|
|
2265
2265
|
handedness: e.handedness,
|
|
2266
2266
|
target: this
|
|
@@ -2611,7 +2611,7 @@ var Y = class {
|
|
|
2611
2611
|
*[Symbol.iterator]() {
|
|
2612
2612
|
yield this.r, yield this.g, yield this.b;
|
|
2613
2613
|
}
|
|
2614
|
-
}, ta =
|
|
2614
|
+
}, ta = /*@__PURE__*/ new Y();
|
|
2615
2615
|
Y.NAMES = Zi;
|
|
2616
2616
|
var na = class e {
|
|
2617
2617
|
constructor(e, t = 25e-5) {
|
|
@@ -2655,7 +2655,7 @@ var na = class e {
|
|
|
2655
2655
|
let t = super.toJSON(e);
|
|
2656
2656
|
return this.fog !== null && (t.object.fog = this.fog.toJSON()), this.backgroundBlurriness > 0 && (t.object.backgroundBlurriness = this.backgroundBlurriness), this.backgroundIntensity !== 1 && (t.object.backgroundIntensity = this.backgroundIntensity), t.object.backgroundRotation = this.backgroundRotation.toArray(), this.environmentIntensity !== 1 && (t.object.environmentIntensity = this.environmentIntensity), t.object.environmentRotation = this.environmentRotation.toArray(), t;
|
|
2657
2657
|
}
|
|
2658
|
-
}, aa =
|
|
2658
|
+
}, aa = /*@__PURE__*/ new W(), oa = /*@__PURE__*/ new W(), sa = /*@__PURE__*/ new W(), ca = /*@__PURE__*/ new W(), la = /*@__PURE__*/ new W(), ua = /*@__PURE__*/ new W(), da = /*@__PURE__*/ new W(), fa = /*@__PURE__*/ new W(), pa = /*@__PURE__*/ new W(), ma = /*@__PURE__*/ new W(), ha = /*@__PURE__*/ new hi(), ga = /*@__PURE__*/ new hi(), _a = /*@__PURE__*/ new hi(), va = class e {
|
|
2659
2659
|
constructor(e = new W(), t = new W(), n = new W()) {
|
|
2660
2660
|
this.a = e, this.b = t, this.c = n;
|
|
2661
2661
|
}
|
|
@@ -2672,7 +2672,7 @@ var na = class e {
|
|
|
2672
2672
|
return i.set(1 - f - p, p, f);
|
|
2673
2673
|
}
|
|
2674
2674
|
static containsPoint(e, t, n, r) {
|
|
2675
|
-
return this.getBarycoord(e, t, n, r, ca)
|
|
2675
|
+
return this.getBarycoord(e, t, n, r, ca) !== null && ca.x >= 0 && ca.y >= 0 && ca.x + ca.y <= 1;
|
|
2676
2676
|
}
|
|
2677
2677
|
static getInterpolation(e, t, n, r, i, a, o, s) {
|
|
2678
2678
|
return this.getBarycoord(e, t, n, r, ca) === null ? (s.x = 0, s.y = 0, "z" in s && (s.z = 0), "w" in s && (s.w = 0), null) : (s.setScalar(0), s.addScaledVector(i, ca.x), s.addScaledVector(a, ca.y), s.addScaledVector(o, ca.z), s);
|
|
@@ -2917,15 +2917,15 @@ var na = class e {
|
|
|
2917
2917
|
return this.min.fromArray(e.min), this.max.fromArray(e.max), this;
|
|
2918
2918
|
}
|
|
2919
2919
|
}, ba = [
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
], xa =
|
|
2920
|
+
/*@__PURE__*/ new W(),
|
|
2921
|
+
/*@__PURE__*/ new W(),
|
|
2922
|
+
/*@__PURE__*/ new W(),
|
|
2923
|
+
/*@__PURE__*/ new W(),
|
|
2924
|
+
/*@__PURE__*/ new W(),
|
|
2925
|
+
/*@__PURE__*/ new W(),
|
|
2926
|
+
/*@__PURE__*/ new W(),
|
|
2927
|
+
/*@__PURE__*/ new W()
|
|
2928
|
+
], xa = /*@__PURE__*/ new W(), Sa = /*@__PURE__*/ new ya(), Ca = /*@__PURE__*/ new W(), wa = /*@__PURE__*/ new W(), Ta = /*@__PURE__*/ new W(), Ea = /*@__PURE__*/ new W(), Da = /*@__PURE__*/ new W(), Oa = /*@__PURE__*/ new W(), ka = /*@__PURE__*/ new W(), Aa = /*@__PURE__*/ new W(), ja = /*@__PURE__*/ new W(), Ma = /*@__PURE__*/ new W();
|
|
2929
2929
|
function Na(e, t, n, r, i) {
|
|
2930
2930
|
for (let a = 0, o = e.length - 3; a <= o; a += 3) {
|
|
2931
2931
|
Ma.fromArray(e, a);
|
|
@@ -2934,14 +2934,14 @@ function Na(e, t, n, r, i) {
|
|
|
2934
2934
|
}
|
|
2935
2935
|
return !0;
|
|
2936
2936
|
}
|
|
2937
|
-
var Pa =
|
|
2937
|
+
var Pa = /*@__PURE__*/ Fa();
|
|
2938
2938
|
function Fa() {
|
|
2939
|
-
let e = /* @__PURE__ */ new ArrayBuffer(4), t = new Float32Array(e), n = new Uint32Array(e), r = new Uint32Array(512), i = new Uint32Array(512);
|
|
2939
|
+
let e = /* @__PURE__ */ new ArrayBuffer(4), t = new Float32Array(e), n = new Uint32Array(e), r = /* @__PURE__ */ new Uint32Array(512), i = /* @__PURE__ */ new Uint32Array(512);
|
|
2940
2940
|
for (let e = 0; e < 256; ++e) {
|
|
2941
2941
|
let t = e - 127;
|
|
2942
2942
|
t < -27 ? (r[e] = 0, r[e | 256] = 32768, i[e] = 24, i[e | 256] = 24) : t < -14 ? (r[e] = 1024 >> -t - 14, r[e | 256] = 1024 >> -t - 14 | 32768, i[e] = -t - 1, i[e | 256] = -t - 1) : t <= 15 ? (r[e] = t + 15 << 10, r[e | 256] = t + 15 << 10 | 32768, i[e] = 13, i[e | 256] = 13) : t < 128 ? (r[e] = 31744, r[e | 256] = 64512, i[e] = 24, i[e | 256] = 24) : (r[e] = 31744, r[e | 256] = 64512, i[e] = 13, i[e | 256] = 13);
|
|
2943
2943
|
}
|
|
2944
|
-
let a = new Uint32Array(2048), o = new Uint32Array(64), s = new Uint32Array(64);
|
|
2944
|
+
let a = /* @__PURE__ */ new Uint32Array(2048), o = /* @__PURE__ */ new Uint32Array(64), s = /* @__PURE__ */ new Uint32Array(64);
|
|
2945
2945
|
for (let e = 1; e < 1024; ++e) {
|
|
2946
2946
|
let t = e << 13, n = 0;
|
|
2947
2947
|
for (; !(t & 8388608);) t <<= 1, n -= 8388608;
|
|
@@ -2979,7 +2979,7 @@ var Ra = class {
|
|
|
2979
2979
|
static fromHalfFloat(e) {
|
|
2980
2980
|
return La(e);
|
|
2981
2981
|
}
|
|
2982
|
-
}, za =
|
|
2982
|
+
}, za = /*@__PURE__*/ new W(), Ba = /*@__PURE__*/ new U(), Va = 0, Ha = class extends Er {
|
|
2983
2983
|
constructor(e, t, n = !1) {
|
|
2984
2984
|
if (super(), Array.isArray(e)) throw TypeError("THREE.BufferAttribute: array should be a Typed Array.");
|
|
2985
2985
|
this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: Va++ }), this.name = "", this.array = e, this.itemSize = t, this.count = e === void 0 ? 0 : e.length / t, this.normalized = n, this.usage = Jn, this.updateRanges = [], this.gpuType = Je, this.version = 0;
|
|
@@ -3166,7 +3166,7 @@ var Ra = class {
|
|
|
3166
3166
|
constructor(e, t, n) {
|
|
3167
3167
|
super(new Float32Array(e), t, n);
|
|
3168
3168
|
}
|
|
3169
|
-
}, Za =
|
|
3169
|
+
}, Za = /*@__PURE__*/ new ya(), Qa = /*@__PURE__*/ new W(), $a = /*@__PURE__*/ new W(), eo = class {
|
|
3170
3170
|
constructor(e = new W(), t = -1) {
|
|
3171
3171
|
this.isSphere = !0, this.center = e, this.radius = t;
|
|
3172
3172
|
}
|
|
@@ -3246,7 +3246,7 @@ var Ra = class {
|
|
|
3246
3246
|
fromJSON(e) {
|
|
3247
3247
|
return this.radius = e.radius, this.center.fromArray(e.center), this;
|
|
3248
3248
|
}
|
|
3249
|
-
}, to = 0, no =
|
|
3249
|
+
}, to = 0, no = /*@__PURE__*/ new q(), ro = /*@__PURE__*/ new J(), io = /*@__PURE__*/ new W(), ao = /*@__PURE__*/ new ya(), oo = /*@__PURE__*/ new ya(), so = /*@__PURE__*/ new W(), Z = class e extends Er {
|
|
3250
3250
|
constructor() {
|
|
3251
3251
|
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: to++ }), this.uuid = jr(), this.name = "", this.type = "BufferGeometry", this.index = null, this.indirect = null, this.indirectOffset = 0, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = {
|
|
3252
3252
|
start: 0,
|
|
@@ -3590,7 +3590,7 @@ var Ra = class {
|
|
|
3590
3590
|
stride: this.stride
|
|
3591
3591
|
};
|
|
3592
3592
|
}
|
|
3593
|
-
}, lo =
|
|
3593
|
+
}, lo = /*@__PURE__*/ new W(), uo = class e {
|
|
3594
3594
|
constructor(e, t, n, r = !1) {
|
|
3595
3595
|
this.isInterleavedBufferAttribute = !0, this.name = "", this.data = e, this.itemSize = t, this.offset = n, this.normalized = r;
|
|
3596
3596
|
}
|
|
@@ -3781,7 +3781,7 @@ var Ra = class {
|
|
|
3781
3781
|
copy(e) {
|
|
3782
3782
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.rotation = e.rotation, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
|
|
3783
3783
|
}
|
|
3784
|
-
}, ho, go =
|
|
3784
|
+
}, ho, go = /*@__PURE__*/ new W(), _o = /*@__PURE__*/ new W(), vo = /*@__PURE__*/ new W(), yo = /*@__PURE__*/ new U(), bo = /*@__PURE__*/ new U(), xo = /*@__PURE__*/ new q(), So = /*@__PURE__*/ new W(), Co = /*@__PURE__*/ new W(), wo = /*@__PURE__*/ new W(), To = /*@__PURE__*/ new U(), Eo = /*@__PURE__*/ new U(), Do = /*@__PURE__*/ new U(), Oo = class extends J {
|
|
3785
3785
|
constructor(e = new mo()) {
|
|
3786
3786
|
if (super(), this.isSprite = !0, this.type = "Sprite", ho === void 0) {
|
|
3787
3787
|
ho = new Z();
|
|
@@ -3842,7 +3842,7 @@ var Ra = class {
|
|
|
3842
3842
|
function ko(e, t, n, r, i, a) {
|
|
3843
3843
|
yo.subVectors(e, n).addScalar(.5).multiply(r), i === void 0 ? bo.copy(yo) : (bo.x = a * yo.x - i * yo.y, bo.y = i * yo.x + a * yo.y), e.copy(t), e.x += bo.x, e.y += bo.y, e.applyMatrix4(xo);
|
|
3844
3844
|
}
|
|
3845
|
-
var Ao =
|
|
3845
|
+
var Ao = /*@__PURE__*/ new W(), jo = /*@__PURE__*/ new W(), Mo = class extends J {
|
|
3846
3846
|
constructor() {
|
|
3847
3847
|
super(), this.isLOD = !0, this._currentLevel = 0, this.type = "LOD", Object.defineProperties(this, { levels: {
|
|
3848
3848
|
enumerable: !0,
|
|
@@ -3927,7 +3927,7 @@ var Ao = /* @__PURE__ */ new W(), jo = /* @__PURE__ */ new W(), Mo = class exten
|
|
|
3927
3927
|
}
|
|
3928
3928
|
return t;
|
|
3929
3929
|
}
|
|
3930
|
-
}, No =
|
|
3930
|
+
}, No = /*@__PURE__*/ new W(), Po = /*@__PURE__*/ new W(), Fo = /*@__PURE__*/ new W(), Io = /*@__PURE__*/ new W(), Lo = /*@__PURE__*/ new W(), Ro = /*@__PURE__*/ new W(), zo = /*@__PURE__*/ new W(), Bo = class {
|
|
3931
3931
|
constructor(e = new W(), t = new W(0, 0, -1)) {
|
|
3932
3932
|
this.origin = e, this.direction = t;
|
|
3933
3933
|
}
|
|
@@ -4033,7 +4033,7 @@ var Ao = /* @__PURE__ */ new W(), jo = /* @__PURE__ */ new W(), Mo = class exten
|
|
|
4033
4033
|
copy(e) {
|
|
4034
4034
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.fog = e.fog, this;
|
|
4035
4035
|
}
|
|
4036
|
-
}, Ho =
|
|
4036
|
+
}, Ho = /*@__PURE__*/ new q(), Uo = /*@__PURE__*/ new Bo(), Wo = /*@__PURE__*/ new eo(), Go = /*@__PURE__*/ new W(), Ko = /*@__PURE__*/ new W(), qo = /*@__PURE__*/ new W(), Jo = /*@__PURE__*/ new W(), Yo = /*@__PURE__*/ new W(), Xo = /*@__PURE__*/ new W(), Zo = /*@__PURE__*/ new W(), Qo = /*@__PURE__*/ new W(), $o = class extends J {
|
|
4037
4037
|
constructor(e = new Z(), t = new Vo()) {
|
|
4038
4038
|
super(), this.isMesh = !0, this.type = "Mesh", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.count = 1, this.updateMorphTargets();
|
|
4039
4039
|
}
|
|
@@ -4131,7 +4131,7 @@ function ts(e, t, n, r, i, a, o, s, c, l) {
|
|
|
4131
4131
|
}
|
|
4132
4132
|
return u;
|
|
4133
4133
|
}
|
|
4134
|
-
var ns =
|
|
4134
|
+
var ns = /*@__PURE__*/ new hi(), rs = /*@__PURE__*/ new hi(), is = /*@__PURE__*/ new hi(), as = /*@__PURE__*/ new hi(), os = /*@__PURE__*/ new q(), ss = /*@__PURE__*/ new W(), cs = /*@__PURE__*/ new eo(), ls = /*@__PURE__*/ new q(), us = /*@__PURE__*/ new Bo(), ds = class extends $o {
|
|
4135
4135
|
constructor(e, t) {
|
|
4136
4136
|
super(e, t), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = Te, this.bindMatrix = new q(), this.bindMatrixInverse = new q(), this.boundingBox = null, this.boundingSphere = null;
|
|
4137
4137
|
}
|
|
@@ -4198,7 +4198,7 @@ var ns = /* @__PURE__ */ new hi(), rs = /* @__PURE__ */ new hi(), is = /* @__PUR
|
|
|
4198
4198
|
height: n
|
|
4199
4199
|
}, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
|
|
4200
4200
|
}
|
|
4201
|
-
}, ms =
|
|
4201
|
+
}, ms = /*@__PURE__*/ new q(), hs = /*@__PURE__*/ new q(), gs = class e {
|
|
4202
4202
|
constructor(e = [], t = []) {
|
|
4203
4203
|
this.uuid = jr(), this.bones = e.slice(0), this.boneInverses = t, this.boneMatrices = null, this.boneTexture = null, this.init();
|
|
4204
4204
|
}
|
|
@@ -4294,7 +4294,7 @@ var ns = /* @__PURE__ */ new hi(), rs = /* @__PURE__ */ new hi(), is = /* @__PUR
|
|
|
4294
4294
|
let e = super.toJSON();
|
|
4295
4295
|
return e.meshPerAttribute = this.meshPerAttribute, e.isInstancedBufferAttribute = !0, e;
|
|
4296
4296
|
}
|
|
4297
|
-
}, vs =
|
|
4297
|
+
}, vs = /*@__PURE__*/ new q(), ys = /*@__PURE__*/ new q(), bs = [], xs = /*@__PURE__*/ new ya(), Ss = /*@__PURE__*/ new q(), Cs = /*@__PURE__*/ new $o(), ws = /*@__PURE__*/ new eo(), Ts = class extends $o {
|
|
4298
4298
|
constructor(e, t, n) {
|
|
4299
4299
|
super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new _s(new Float32Array(n * 16), 16), this.instanceColor = null, this.morphTexture = null, this.count = n, this.boundingBox = null, this.boundingSphere = null;
|
|
4300
4300
|
for (let e = 0; e < n; e++) this.setMatrixAt(e, Ss);
|
|
@@ -4351,7 +4351,7 @@ var ns = /* @__PURE__ */ new hi(), rs = /* @__PURE__ */ new hi(), is = /* @__PUR
|
|
|
4351
4351
|
dispose() {
|
|
4352
4352
|
this.dispatchEvent({ type: "dispose" }), this.morphTexture !== null && (this.morphTexture.dispose(), this.morphTexture = null);
|
|
4353
4353
|
}
|
|
4354
|
-
}, Es =
|
|
4354
|
+
}, Es = /*@__PURE__*/ new W(), Ds = /*@__PURE__*/ new W(), Os = /*@__PURE__*/ new G(), ks = class {
|
|
4355
4355
|
constructor(e = new W(1, 0, 0), t = 0) {
|
|
4356
4356
|
this.isPlane = !0, this.normal = e, this.constant = t;
|
|
4357
4357
|
}
|
|
@@ -4419,7 +4419,7 @@ var ns = /* @__PURE__ */ new hi(), rs = /* @__PURE__ */ new hi(), is = /* @__PUR
|
|
|
4419
4419
|
clone() {
|
|
4420
4420
|
return new this.constructor().copy(this);
|
|
4421
4421
|
}
|
|
4422
|
-
}, As =
|
|
4422
|
+
}, As = /*@__PURE__*/ new eo(), js = /*@__PURE__*/ new U(.5, .5), Ms = /*@__PURE__*/ new W(), Ns = class {
|
|
4423
4423
|
constructor(e = new ks(), t = new ks(), n = new ks(), r = new ks(), i = new ks(), a = new ks()) {
|
|
4424
4424
|
this.planes = [
|
|
4425
4425
|
e,
|
|
@@ -4479,7 +4479,7 @@ var ns = /* @__PURE__ */ new hi(), rs = /* @__PURE__ */ new hi(), is = /* @__PUR
|
|
|
4479
4479
|
clone() {
|
|
4480
4480
|
return new this.constructor().copy(this);
|
|
4481
4481
|
}
|
|
4482
|
-
}, Ps =
|
|
4482
|
+
}, Ps = /*@__PURE__*/ new q(), Fs = class e {
|
|
4483
4483
|
constructor() {
|
|
4484
4484
|
this.coordinateSystem = ar, this._frustums = [], this._count = 0;
|
|
4485
4485
|
}
|
|
@@ -4553,7 +4553,7 @@ var zs = class {
|
|
|
4553
4553
|
reset() {
|
|
4554
4554
|
this.list.length = 0, this.index = 0;
|
|
4555
4555
|
}
|
|
4556
|
-
}, Bs =
|
|
4556
|
+
}, Bs = /*@__PURE__*/ new q(), Vs = /*@__PURE__*/ new Y(1, 1, 1), Hs = /*@__PURE__*/ new Ns(), Us = /*@__PURE__*/ new Fs(), Ws = /*@__PURE__*/ new ya(), Gs = /*@__PURE__*/ new eo(), Ks = /*@__PURE__*/ new W(), qs = /*@__PURE__*/ new W(), Js = /*@__PURE__*/ new W(), Ys = /*@__PURE__*/ new zs(), Xs = /*@__PURE__*/ new $o(), Zs = [];
|
|
4557
4557
|
function Qs(e, t, n = 0) {
|
|
4558
4558
|
let r = t.itemSize;
|
|
4559
4559
|
if (e.isInterleavedBufferAttribute || e.array.constructor !== t.array.constructor) {
|
|
@@ -4589,11 +4589,15 @@ var ec = class extends $o {
|
|
|
4589
4589
|
}
|
|
4590
4590
|
_initMatricesTexture() {
|
|
4591
4591
|
let e = Math.sqrt(this._maxInstanceCount * 4);
|
|
4592
|
-
e = Math.ceil(e / 4) * 4, e = Math.max(e, 4)
|
|
4592
|
+
e = Math.ceil(e / 4) * 4, e = Math.max(e, 4);
|
|
4593
|
+
let t = new ps(new Float32Array(e * e * 4), e, e, rt, Je);
|
|
4594
|
+
this._matricesTexture = t;
|
|
4593
4595
|
}
|
|
4594
4596
|
_initIndirectTexture() {
|
|
4595
4597
|
let e = Math.sqrt(this._maxInstanceCount);
|
|
4596
|
-
e = Math.ceil(e)
|
|
4598
|
+
e = Math.ceil(e);
|
|
4599
|
+
let t = new ps(new Uint32Array(e * e), e, e, st, qe);
|
|
4600
|
+
this._indirectTexture = t;
|
|
4597
4601
|
}
|
|
4598
4602
|
_initColorsTexture() {
|
|
4599
4603
|
let e = Math.sqrt(this._maxInstanceCount);
|
|
@@ -4898,7 +4902,7 @@ var ec = class extends $o {
|
|
|
4898
4902
|
copy(e) {
|
|
4899
4903
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.linewidth = e.linewidth, this.linecap = e.linecap, this.linejoin = e.linejoin, this.fog = e.fog, this;
|
|
4900
4904
|
}
|
|
4901
|
-
}, nc =
|
|
4905
|
+
}, nc = /*@__PURE__*/ new W(), rc = /*@__PURE__*/ new W(), ic = /*@__PURE__*/ new q(), ac = /*@__PURE__*/ new Bo(), oc = /*@__PURE__*/ new eo(), sc = /*@__PURE__*/ new W(), cc = /*@__PURE__*/ new W(), lc = class extends J {
|
|
4902
4906
|
constructor(e = new Z(), t = new tc()) {
|
|
4903
4907
|
super(), this.isLine = !0, this.type = "Line", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
|
|
4904
4908
|
}
|
|
@@ -4970,7 +4974,7 @@ function uc(e, t, n, r, i, a, o) {
|
|
|
4970
4974
|
object: e
|
|
4971
4975
|
};
|
|
4972
4976
|
}
|
|
4973
|
-
var dc =
|
|
4977
|
+
var dc = /*@__PURE__*/ new W(), fc = /*@__PURE__*/ new W(), pc = class extends lc {
|
|
4974
4978
|
constructor(e, t) {
|
|
4975
4979
|
super(e, t), this.isLineSegments = !0, this.type = "LineSegments";
|
|
4976
4980
|
}
|
|
@@ -4994,7 +4998,7 @@ var dc = /* @__PURE__ */ new W(), fc = /* @__PURE__ */ new W(), pc = class exten
|
|
|
4994
4998
|
copy(e) {
|
|
4995
4999
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.size = e.size, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
|
|
4996
5000
|
}
|
|
4997
|
-
}, gc =
|
|
5001
|
+
}, gc = /*@__PURE__*/ new q(), _c = /*@__PURE__*/ new Bo(), vc = /*@__PURE__*/ new eo(), yc = /*@__PURE__*/ new W(), bc = class extends J {
|
|
4998
5002
|
constructor(e = new Z(), t = new hc()) {
|
|
4999
5003
|
super(), this.isPoints = !0, this.type = "Points", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
|
|
5000
5004
|
}
|
|
@@ -5604,7 +5608,7 @@ var Sc = class extends mi {
|
|
|
5604
5608
|
static fromJSON(t) {
|
|
5605
5609
|
return new e(t.radius, t.detail);
|
|
5606
5610
|
}
|
|
5607
|
-
}, Vc =
|
|
5611
|
+
}, Vc = /*@__PURE__*/ new W(), Hc = /*@__PURE__*/ new W(), Uc = /*@__PURE__*/ new W(), Wc = /*@__PURE__*/ new va(), Gc = class extends Z {
|
|
5608
5612
|
constructor(e = null, t = 1) {
|
|
5609
5613
|
if (super(), this.type = "EdgesGeometry", this.parameters = {
|
|
5610
5614
|
geometry: e,
|
|
@@ -5800,12 +5804,12 @@ function Yc() {
|
|
|
5800
5804
|
}
|
|
5801
5805
|
};
|
|
5802
5806
|
}
|
|
5803
|
-
var Xc =
|
|
5807
|
+
var Xc = /*@__PURE__*/ new W(), Zc = /*@__PURE__*/ new W(), Qc = /*@__PURE__*/ new Yc(), $c = /*@__PURE__*/ new Yc(), el = /*@__PURE__*/ new Yc(), tl = class extends Kc {
|
|
5804
5808
|
constructor(e = [], t = !1, n = "centripetal", r = .5) {
|
|
5805
5809
|
super(), this.isCatmullRomCurve3 = !0, this.type = "CatmullRomCurve3", this.points = e, this.closed = t, this.curveType = n, this.tension = r;
|
|
5806
5810
|
}
|
|
5807
5811
|
getPoint(e, t = new W()) {
|
|
5808
|
-
let n = t, r = this.points, i = r.length, a = (i -
|
|
5812
|
+
let n = t, r = this.points, i = r.length, a = (i - +!this.closed) * e, o = Math.floor(a), s = a - o;
|
|
5809
5813
|
this.closed ? o += o > 0 ? 0 : (Math.floor(Math.abs(o) / i) + 1) * i : s === 0 && o === i - 1 && (o = i - 2, s = 1);
|
|
5810
5814
|
let c, l;
|
|
5811
5815
|
this.closed || o > 0 ? c = r[(o - 1) % i] : (Zc.subVectors(r[0], r[1]).add(r[0]), c = Zc);
|
|
@@ -6035,7 +6039,7 @@ var fl = class extends Kc {
|
|
|
6035
6039
|
}
|
|
6036
6040
|
return this;
|
|
6037
6041
|
}
|
|
6038
|
-
}, yl =
|
|
6042
|
+
}, yl = /*#__PURE__*/ Object.freeze({
|
|
6039
6043
|
__proto__: null,
|
|
6040
6044
|
ArcCurve: Jc,
|
|
6041
6045
|
CatmullRomCurve3: tl,
|
|
@@ -6529,7 +6533,7 @@ var ou = class e extends Z {
|
|
|
6529
6533
|
}
|
|
6530
6534
|
this.setAttribute("position", new X(r, 3)), this.setAttribute("uv", new X(i, 2)), this.computeVertexNormals();
|
|
6531
6535
|
function a(e) {
|
|
6532
|
-
let a = [], o = t.curveSegments === void 0 ? 12 : t.curveSegments, s = t.steps === void 0 ? 1 : t.steps, c = t.depth === void 0 ? 1 : t.depth, l = t.bevelEnabled === void 0
|
|
6536
|
+
let a = [], o = t.curveSegments === void 0 ? 12 : t.curveSegments, s = t.steps === void 0 ? 1 : t.steps, c = t.depth === void 0 ? 1 : t.depth, l = t.bevelEnabled === void 0 || t.bevelEnabled, u = t.bevelThickness === void 0 ? .2 : t.bevelThickness, d = t.bevelSize === void 0 ? u - .1 : t.bevelSize, f = t.bevelOffset === void 0 ? 0 : t.bevelOffset, p = t.bevelSegments === void 0 ? 3 : t.bevelSegments, m = t.extrudePath, h = t.UVGenerator === void 0 ? su : t.UVGenerator, g, _ = !1, v, y, b, x;
|
|
6533
6537
|
if (m) {
|
|
6534
6538
|
g = m.getSpacedPoints(s), _ = !0, l = !1;
|
|
6535
6539
|
let e = m.isCatmullRomCurve3 ? m.closed : !1;
|
|
@@ -6545,16 +6549,14 @@ var ou = class e extends Z {
|
|
|
6545
6549
|
}
|
|
6546
6550
|
}
|
|
6547
6551
|
function T(e) {
|
|
6548
|
-
let t =
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
for (let t = 1; t <= e.length; t++) {
|
|
6552
|
-
let r = t % e.length, i = e[r], a = i.x - n.x, o = i.y - n.y, s = a * a + o * o, c = Math.max(Math.abs(i.x), Math.abs(i.y), Math.abs(n.x), Math.abs(n.y));
|
|
6552
|
+
let t = e[0];
|
|
6553
|
+
for (let n = 1; n <= e.length; n++) {
|
|
6554
|
+
let r = n % e.length, i = e[r], a = i.x - t.x, o = i.y - t.y, s = a * a + o * o, c = Math.max(Math.abs(i.x), Math.abs(i.y), Math.abs(t.x), Math.abs(t.y));
|
|
6553
6555
|
if (s <= 10000000000000001e-36 * c * c) {
|
|
6554
|
-
e.splice(r, 1),
|
|
6556
|
+
e.splice(r, 1), n--;
|
|
6555
6557
|
continue;
|
|
6556
6558
|
}
|
|
6557
|
-
|
|
6559
|
+
t = i;
|
|
6558
6560
|
}
|
|
6559
6561
|
}
|
|
6560
6562
|
T(C), w.forEach(T);
|
|
@@ -7294,7 +7296,7 @@ function Su(e, t, n) {
|
|
|
7294
7296
|
let r = `${e.x},${e.y},${e.z}-${t.x},${t.y},${t.z}`, i = `${t.x},${t.y},${t.z}-${e.x},${e.y},${e.z}`;
|
|
7295
7297
|
return n.has(r) === !0 || n.has(i) === !0 ? !1 : (n.add(r), n.add(i), !0);
|
|
7296
7298
|
}
|
|
7297
|
-
var Cu =
|
|
7299
|
+
var Cu = /*#__PURE__*/ Object.freeze({
|
|
7298
7300
|
__proto__: null,
|
|
7299
7301
|
BoxGeometry: Pc,
|
|
7300
7302
|
CapsuleGeometry: Fc,
|
|
@@ -8191,7 +8193,7 @@ var gd = class {
|
|
|
8191
8193
|
get abortController() {
|
|
8192
8194
|
return this._abortController ||= new AbortController(), this._abortController;
|
|
8193
8195
|
}
|
|
8194
|
-
}, _d =
|
|
8196
|
+
}, _d = /*@__PURE__*/ new gd(), vd = class {
|
|
8195
8197
|
constructor(e) {
|
|
8196
8198
|
this.manager = e === void 0 ? _d : e, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {}, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
|
|
8197
8199
|
}
|
|
@@ -8506,7 +8508,7 @@ var yd = {}, bd = class extends Error {
|
|
|
8506
8508
|
let t = super.toJSON(e);
|
|
8507
8509
|
return t.object.groundColor = this.groundColor.getHex(), t;
|
|
8508
8510
|
}
|
|
8509
|
-
}, jd =
|
|
8511
|
+
}, jd = /*@__PURE__*/ new q(), Md = /*@__PURE__*/ new W(), Nd = /*@__PURE__*/ new W(), Pd = class {
|
|
8510
8512
|
constructor(e) {
|
|
8511
8513
|
this.camera = e, this.intensity = 1, this.bias = 0, this.biasNode = null, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new U(512, 512), this.mapType = He, this.map = null, this.mapPass = null, this.matrix = new q(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new Ns(), this._frameExtents = new U(1, 1), this._viewportCount = 1, this._viewports = [new hi(0, 0, 1, 1)];
|
|
8512
8514
|
}
|
|
@@ -8539,7 +8541,7 @@ var yd = {}, bd = class extends Error {
|
|
|
8539
8541
|
let e = {};
|
|
8540
8542
|
return this.intensity !== 1 && (e.intensity = this.intensity), this.bias !== 0 && (e.bias = this.bias), this.normalBias !== 0 && (e.normalBias = this.normalBias), this.radius !== 1 && (e.radius = this.radius), (this.mapSize.x !== 512 || this.mapSize.y !== 512) && (e.mapSize = this.mapSize.toArray()), e.camera = this.camera.toJSON(!1).object, delete e.camera.matrix, e;
|
|
8541
8543
|
}
|
|
8542
|
-
}, Fd =
|
|
8544
|
+
}, Fd = /*@__PURE__*/ new W(), Id = /*@__PURE__*/ new Qr(), Ld = /*@__PURE__*/ new W(), Rd = class extends J {
|
|
8543
8545
|
constructor() {
|
|
8544
8546
|
super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new q(), this.projectionMatrix = new q(), this.projectionMatrixInverse = new q(), this.coordinateSystem = ar, this._reversedDepth = !1;
|
|
8545
8547
|
}
|
|
@@ -8561,7 +8563,7 @@ var yd = {}, bd = class extends Error {
|
|
|
8561
8563
|
clone() {
|
|
8562
8564
|
return new this.constructor().copy(this);
|
|
8563
8565
|
}
|
|
8564
|
-
}, zd =
|
|
8566
|
+
}, zd = /*@__PURE__*/ new W(), Bd = /*@__PURE__*/ new U(), Vd = /*@__PURE__*/ new U(), Hd = class extends Rd {
|
|
8565
8567
|
constructor(e = 50, t = 1, n = .1, r = 2e3) {
|
|
8566
8568
|
super(), this.isPerspectiveCamera = !0, this.type = "PerspectiveCamera", this.fov = e, this.zoom = 1, this.near = n, this.far = r, this.focus = 10, this.aspect = t, this.view = null, this.filmGauge = 35, this.filmOffset = 0, this.updateProjectionMatrix();
|
|
8567
8569
|
}
|
|
@@ -9369,7 +9371,7 @@ var yd = {}, bd = class extends Error {
|
|
|
9369
9371
|
r ? r(t) : B(t), i.manager.itemError(e);
|
|
9370
9372
|
}
|
|
9371
9373
|
}
|
|
9372
|
-
}, gf =
|
|
9374
|
+
}, gf = /*@__PURE__*/ new q(), _f = /*@__PURE__*/ new q(), vf = /*@__PURE__*/ new q(), yf = class {
|
|
9373
9375
|
constructor() {
|
|
9374
9376
|
this.type = "StereoCamera", this.aspect = 1, this.eyeSep = .064, this.cameraL = new Hd(), this.cameraL.layers.enable(1), this.cameraL.matrixAutoUpdate = !1, this.cameraR = new Hd(), this.cameraR.layers.enable(2), this.cameraR.matrixAutoUpdate = !1, this._cache = {
|
|
9375
9377
|
focus: null,
|
|
@@ -9464,7 +9466,7 @@ var yd = {}, bd = class extends Error {
|
|
|
9464
9466
|
function Tf() {
|
|
9465
9467
|
this._document.hidden === !1 && this.reset();
|
|
9466
9468
|
}
|
|
9467
|
-
var Ef =
|
|
9469
|
+
var Ef = /*@__PURE__*/ new W(), Df = /*@__PURE__*/ new Qr(), Of = /*@__PURE__*/ new W(), kf = /*@__PURE__*/ new W(), Af = /*@__PURE__*/ new W(), jf = class extends J {
|
|
9468
9470
|
constructor() {
|
|
9469
9471
|
super(), this.type = "AudioListener", this.context = mf.getContext(), this.gain = this.context.createGain(), this.gain.connect(this.context.destination), this.filter = null, this.timeDelta = 0, this._timer = new wf();
|
|
9470
9472
|
}
|
|
@@ -9617,7 +9619,7 @@ var Ef = /* @__PURE__ */ new W(), Df = /* @__PURE__ */ new Qr(), Of = /* @__PURE
|
|
|
9617
9619
|
clone(e) {
|
|
9618
9620
|
return new this.constructor(this.listener).copy(this, e);
|
|
9619
9621
|
}
|
|
9620
|
-
}, Nf =
|
|
9622
|
+
}, Nf = /*@__PURE__*/ new W(), Pf = /*@__PURE__*/ new Qr(), Ff = /*@__PURE__*/ new W(), If = /*@__PURE__*/ new W(), Lf = class extends Mf {
|
|
9621
9623
|
constructor(e) {
|
|
9622
9624
|
super(e), this.panner = this.context.createPanner(), this.panner.panningModel = "HRTF", this.panner.connect(this.gain);
|
|
9623
9625
|
}
|
|
@@ -9766,7 +9768,7 @@ var Ef = /* @__PURE__ */ new W(), Df = /* @__PURE__ */ new Qr(), Of = /* @__PURE
|
|
|
9766
9768
|
e[i] = e[i] + e[n + a] * r;
|
|
9767
9769
|
}
|
|
9768
9770
|
}
|
|
9769
|
-
}, Bf = "\\[\\]\\.:\\/", Vf = RegExp("[
|
|
9771
|
+
}, Bf = "\\[\\]\\.:\\/", Vf = /* @__PURE__ */ RegExp("[\\[\\]\\.:\\/]", "g"), Hf = "[^\\[\\]\\.:\\/]", Uf = "[^" + Bf.replace("\\.", "") + "]", Wf = /*@__PURE__*/ "((?:WC+[\\/:])*)".replace("WC", Hf), Gf = /*@__PURE__*/ "(WCOD+)?".replace("WCOD", Uf), Kf = /*@__PURE__*/ "(?:\\.(WC+)(?:\\[(.+)\\])?)?".replace("WC", Hf), qf = /*@__PURE__*/ "\\.(WC+)(?:\\[(.+)\\])?".replace("WC", Hf), Jf = RegExp("^" + Wf + Gf + Kf + qf + "$"), Yf = [
|
|
9770
9772
|
"material",
|
|
9771
9773
|
"materials",
|
|
9772
9774
|
"bones",
|
|
@@ -10319,7 +10321,7 @@ var Qf = class {
|
|
|
10319
10321
|
let o = a.parameterPositions, s = a.sampleValues;
|
|
10320
10322
|
return o[0] = i, s[0] = t, o[1] = i + e, s[1] = n, this;
|
|
10321
10323
|
}
|
|
10322
|
-
}, ep = new Float32Array(1), tp = class extends Er {
|
|
10324
|
+
}, ep = /* @__PURE__ */ new Float32Array(1), tp = class extends Er {
|
|
10323
10325
|
constructor(e) {
|
|
10324
10326
|
super(), this._root = e, this._initMemoryManager(), this._accuIndex = 0, this.time = 0, this.timeScale = 1, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
|
|
10325
10327
|
}
|
|
@@ -10451,7 +10453,7 @@ var Qf = class {
|
|
|
10451
10453
|
}
|
|
10452
10454
|
_lendControlInterpolant() {
|
|
10453
10455
|
let e = this._controlInterpolants, t = this._nActiveControlInterpolants++, n = e[t];
|
|
10454
|
-
return n === void 0 && (n = new ed(new Float32Array(2), new Float32Array(2), 1, ep), n.__cacheIndex = t, e[t] = n), n;
|
|
10456
|
+
return n === void 0 && (n = new ed(/* @__PURE__ */ new Float32Array(2), /* @__PURE__ */ new Float32Array(2), 1, ep), n.__cacheIndex = t, e[t] = n), n;
|
|
10455
10457
|
}
|
|
10456
10458
|
_takeBackControlInterpolant(e) {
|
|
10457
10459
|
let t = this._controlInterpolants, n = e.__cacheIndex, r = --this._nActiveControlInterpolants, i = t[r];
|
|
@@ -10600,7 +10602,7 @@ var Qf = class {
|
|
|
10600
10602
|
setCount(e) {
|
|
10601
10603
|
return this.count = e, this;
|
|
10602
10604
|
}
|
|
10603
|
-
}, cp =
|
|
10605
|
+
}, cp = /*@__PURE__*/ new q(), lp = class {
|
|
10604
10606
|
constructor(e, t, n = 0, r = Infinity) {
|
|
10605
10607
|
this.ray = new Bo(e, t), this.near = n, this.far = r, this.camera = null, this.layers = new Mi(), this.params = {
|
|
10606
10608
|
Mesh: {},
|
|
@@ -10724,7 +10726,7 @@ var fp = class {
|
|
|
10724
10726
|
let i = this.elements;
|
|
10725
10727
|
return i[0] = e, i[2] = t, i[1] = n, i[3] = r, this;
|
|
10726
10728
|
}
|
|
10727
|
-
}, gp =
|
|
10729
|
+
}, gp = /*@__PURE__*/ new U(), _p = class {
|
|
10728
10730
|
constructor(e = new U(Infinity, Infinity), t = new U(-Infinity, -Infinity)) {
|
|
10729
10731
|
this.isBox2 = !0, this.min = e, this.max = t;
|
|
10730
10732
|
}
|
|
@@ -10797,7 +10799,7 @@ var fp = class {
|
|
|
10797
10799
|
equals(e) {
|
|
10798
10800
|
return e.min.equals(this.min) && e.max.equals(this.max);
|
|
10799
10801
|
}
|
|
10800
|
-
}, vp =
|
|
10802
|
+
}, vp = /*@__PURE__*/ new W(), yp = /*@__PURE__*/ new W(), bp = /*@__PURE__*/ new W(), xp = /*@__PURE__*/ new W(), Sp = /*@__PURE__*/ new W(), Cp = /*@__PURE__*/ new W(), wp = /*@__PURE__*/ new W(), Tp = class {
|
|
10801
10803
|
constructor(e = new W(), t = new W()) {
|
|
10802
10804
|
this.start = e, this.end = t;
|
|
10803
10805
|
}
|
|
@@ -10858,7 +10860,7 @@ var fp = class {
|
|
|
10858
10860
|
clone() {
|
|
10859
10861
|
return new this.constructor().copy(this);
|
|
10860
10862
|
}
|
|
10861
|
-
}, Ep =
|
|
10863
|
+
}, Ep = /*@__PURE__*/ new W(), Dp = class extends J {
|
|
10862
10864
|
constructor(e, t) {
|
|
10863
10865
|
super(), this.light = e, this.matrixAutoUpdate = !1, this.color = t, this.type = "SpotLightHelper";
|
|
10864
10866
|
let n = new Z(), r = [
|
|
@@ -10897,10 +10899,12 @@ var fp = class {
|
|
|
10897
10899
|
let n = e / 32 * Math.PI * 2, i = t / 32 * Math.PI * 2;
|
|
10898
10900
|
r.push(Math.cos(n), Math.sin(n), 1, Math.cos(i), Math.sin(i), 1);
|
|
10899
10901
|
}
|
|
10900
|
-
n.setAttribute("position", new X(r, 3))
|
|
10902
|
+
n.setAttribute("position", new X(r, 3));
|
|
10903
|
+
let i = new tc({
|
|
10901
10904
|
fog: !1,
|
|
10902
10905
|
toneMapped: !1
|
|
10903
|
-
})
|
|
10906
|
+
});
|
|
10907
|
+
this.cone = new pc(n, i), this.add(this.cone), this.update();
|
|
10904
10908
|
}
|
|
10905
10909
|
dispose() {
|
|
10906
10910
|
this.cone.geometry.dispose(), this.cone.material.dispose();
|
|
@@ -10910,7 +10914,7 @@ var fp = class {
|
|
|
10910
10914
|
let e = this.light.distance ? this.light.distance : 1e3, t = e * Math.tan(this.light.angle);
|
|
10911
10915
|
this.cone.scale.set(t, t, e), Ep.setFromMatrixPosition(this.light.target.matrixWorld), this.cone.lookAt(Ep), this.color === void 0 ? this.cone.material.color.copy(this.light.color) : this.cone.material.color.set(this.color);
|
|
10912
10916
|
}
|
|
10913
|
-
}, Op =
|
|
10917
|
+
}, Op = /*@__PURE__*/ new W(), kp = /*@__PURE__*/ new q(), Ap = /*@__PURE__*/ new q(), jp = class extends pc {
|
|
10914
10918
|
constructor(e) {
|
|
10915
10919
|
let t = Mp(e), n = new Z(), r = [], i = [];
|
|
10916
10920
|
for (let e = 0; e < t.length; e++) {
|
|
@@ -10968,7 +10972,7 @@ var Np = class extends $o {
|
|
|
10968
10972
|
update() {
|
|
10969
10973
|
this.matrixWorldNeedsUpdate = !0, this.light.updateWorldMatrix(!0, !1), this.color === void 0 ? this.material.color.copy(this.light.color) : this.material.color.set(this.color);
|
|
10970
10974
|
}
|
|
10971
|
-
}, Pp =
|
|
10975
|
+
}, Pp = /*@__PURE__*/ new W(), Fp = /*@__PURE__*/ new Y(), Ip = /*@__PURE__*/ new Y(), Lp = class extends J {
|
|
10972
10976
|
constructor(e, t, n) {
|
|
10973
10977
|
super(), this.light = e, this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1, this.color = n, this.type = "HemisphereLightHelper";
|
|
10974
10978
|
let r = new du(t);
|
|
@@ -11045,7 +11049,7 @@ var Np = class extends $o {
|
|
|
11045
11049
|
dispose() {
|
|
11046
11050
|
this.geometry.dispose(), this.material.dispose();
|
|
11047
11051
|
}
|
|
11048
|
-
}, Bp =
|
|
11052
|
+
}, Bp = /*@__PURE__*/ new W(), Vp = /*@__PURE__*/ new W(), Hp = /*@__PURE__*/ new W(), Up = class extends J {
|
|
11049
11053
|
constructor(e, t, n) {
|
|
11050
11054
|
super(), this.light = e, this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1, this.color = n, this.type = "DirectionalLightHelper", t === void 0 && (t = 1);
|
|
11051
11055
|
let r = new Z();
|
|
@@ -11085,7 +11089,7 @@ var Np = class extends $o {
|
|
|
11085
11089
|
update() {
|
|
11086
11090
|
this.matrixWorldNeedsUpdate = !0, this.light.updateWorldMatrix(!0, !1), this.light.target.updateWorldMatrix(!0, !1), Bp.setFromMatrixPosition(this.light.matrixWorld), Vp.setFromMatrixPosition(this.light.target.matrixWorld), Hp.subVectors(Vp, Bp), this.lightPlane.lookAt(Vp), this.color === void 0 ? (this.lightPlane.material.color.copy(this.light.color), this.targetLine.material.color.copy(this.light.color)) : (this.lightPlane.material.color.set(this.color), this.targetLine.material.color.set(this.color)), this.targetLine.lookAt(Vp), this.targetLine.scale.z = Hp.length();
|
|
11087
11091
|
}
|
|
11088
|
-
}, Wp =
|
|
11092
|
+
}, Wp = /*@__PURE__*/ new W(), Gp = /*@__PURE__*/ new Rd(), Kp = class extends pc {
|
|
11089
11093
|
constructor(e) {
|
|
11090
11094
|
let t = new Z(), n = new tc({
|
|
11091
11095
|
color: 16777215,
|
|
@@ -11127,7 +11131,7 @@ function qp(e, t, n, r, i, a, o) {
|
|
|
11127
11131
|
for (let t = 0, n = s.length; t < n; t++) e.setXYZ(s[t], Wp.x, Wp.y, Wp.z);
|
|
11128
11132
|
}
|
|
11129
11133
|
}
|
|
11130
|
-
var Jp =
|
|
11134
|
+
var Jp = /*@__PURE__*/ new ya(), Yp = class extends pc {
|
|
11131
11135
|
constructor(e, t = 16776960) {
|
|
11132
11136
|
let n = new Uint16Array([
|
|
11133
11137
|
0,
|
|
@@ -11154,7 +11158,7 @@ var Jp = /* @__PURE__ */ new ya(), Yp = class extends pc {
|
|
|
11154
11158
|
6,
|
|
11155
11159
|
3,
|
|
11156
11160
|
7
|
|
11157
|
-
]), r = new Float32Array(24), i = new Z();
|
|
11161
|
+
]), r = /* @__PURE__ */ new Float32Array(24), i = new Z();
|
|
11158
11162
|
i.setIndex(new Ha(n, 1)), i.setAttribute("position", new Ha(r, 3)), super(i, new tc({
|
|
11159
11163
|
color: t,
|
|
11160
11164
|
toneMapped: !1
|
|
@@ -11305,7 +11309,7 @@ var Jp = /* @__PURE__ */ new ya(), Yp = class extends pc {
|
|
|
11305
11309
|
dispose() {
|
|
11306
11310
|
this.geometry.dispose(), this.material.dispose(), this.children[0].geometry.dispose(), this.children[0].material.dispose();
|
|
11307
11311
|
}
|
|
11308
|
-
}, Qp =
|
|
11312
|
+
}, Qp = /*@__PURE__*/ new W(), $p, em, tm = class extends J {
|
|
11309
11313
|
constructor(e = new W(0, 0, 1), t = new W(0, 0, 0), n = 1, r = 16776960, i = n * .2, a = i * .2) {
|
|
11310
11314
|
super(), this.type = "ArrowHelper", $p === void 0 && ($p = new Z(), $p.setAttribute("position", new X([
|
|
11311
11315
|
0,
|
|
@@ -11861,21 +11865,21 @@ var Q = {
|
|
|
11861
11865
|
sprite_frag: "uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n vec3 outgoingLight = vec3( 0.0 );\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n outgoingLight = diffuseColor.rgb;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n}"
|
|
11862
11866
|
}, $ = {
|
|
11863
11867
|
common: {
|
|
11864
|
-
diffuse: { value:
|
|
11868
|
+
diffuse: { value: /*@__PURE__*/ new Y(16777215) },
|
|
11865
11869
|
opacity: { value: 1 },
|
|
11866
11870
|
map: { value: null },
|
|
11867
|
-
mapTransform: { value:
|
|
11871
|
+
mapTransform: { value: /*@__PURE__*/ new G() },
|
|
11868
11872
|
alphaMap: { value: null },
|
|
11869
|
-
alphaMapTransform: { value:
|
|
11873
|
+
alphaMapTransform: { value: /*@__PURE__*/ new G() },
|
|
11870
11874
|
alphaTest: { value: 0 }
|
|
11871
11875
|
},
|
|
11872
11876
|
specularmap: {
|
|
11873
11877
|
specularMap: { value: null },
|
|
11874
|
-
specularMapTransform: { value:
|
|
11878
|
+
specularMapTransform: { value: /*@__PURE__*/ new G() }
|
|
11875
11879
|
},
|
|
11876
11880
|
envmap: {
|
|
11877
11881
|
envMap: { value: null },
|
|
11878
|
-
envMapRotation: { value:
|
|
11882
|
+
envMapRotation: { value: /*@__PURE__*/ new G() },
|
|
11879
11883
|
reflectivity: { value: 1 },
|
|
11880
11884
|
ior: { value: 1.5 },
|
|
11881
11885
|
refractionRatio: { value: .98 },
|
|
@@ -11884,47 +11888,47 @@ var Q = {
|
|
|
11884
11888
|
aomap: {
|
|
11885
11889
|
aoMap: { value: null },
|
|
11886
11890
|
aoMapIntensity: { value: 1 },
|
|
11887
|
-
aoMapTransform: { value:
|
|
11891
|
+
aoMapTransform: { value: /*@__PURE__*/ new G() }
|
|
11888
11892
|
},
|
|
11889
11893
|
lightmap: {
|
|
11890
11894
|
lightMap: { value: null },
|
|
11891
11895
|
lightMapIntensity: { value: 1 },
|
|
11892
|
-
lightMapTransform: { value:
|
|
11896
|
+
lightMapTransform: { value: /*@__PURE__*/ new G() }
|
|
11893
11897
|
},
|
|
11894
11898
|
bumpmap: {
|
|
11895
11899
|
bumpMap: { value: null },
|
|
11896
|
-
bumpMapTransform: { value:
|
|
11900
|
+
bumpMapTransform: { value: /*@__PURE__*/ new G() },
|
|
11897
11901
|
bumpScale: { value: 1 }
|
|
11898
11902
|
},
|
|
11899
11903
|
normalmap: {
|
|
11900
11904
|
normalMap: { value: null },
|
|
11901
|
-
normalMapTransform: { value:
|
|
11902
|
-
normalScale: { value:
|
|
11905
|
+
normalMapTransform: { value: /*@__PURE__*/ new G() },
|
|
11906
|
+
normalScale: { value: /*@__PURE__*/ new U(1, 1) }
|
|
11903
11907
|
},
|
|
11904
11908
|
displacementmap: {
|
|
11905
11909
|
displacementMap: { value: null },
|
|
11906
|
-
displacementMapTransform: { value:
|
|
11910
|
+
displacementMapTransform: { value: /*@__PURE__*/ new G() },
|
|
11907
11911
|
displacementScale: { value: 1 },
|
|
11908
11912
|
displacementBias: { value: 0 }
|
|
11909
11913
|
},
|
|
11910
11914
|
emissivemap: {
|
|
11911
11915
|
emissiveMap: { value: null },
|
|
11912
|
-
emissiveMapTransform: { value:
|
|
11916
|
+
emissiveMapTransform: { value: /*@__PURE__*/ new G() }
|
|
11913
11917
|
},
|
|
11914
11918
|
metalnessmap: {
|
|
11915
11919
|
metalnessMap: { value: null },
|
|
11916
|
-
metalnessMapTransform: { value:
|
|
11920
|
+
metalnessMapTransform: { value: /*@__PURE__*/ new G() }
|
|
11917
11921
|
},
|
|
11918
11922
|
roughnessmap: {
|
|
11919
11923
|
roughnessMap: { value: null },
|
|
11920
|
-
roughnessMapTransform: { value:
|
|
11924
|
+
roughnessMapTransform: { value: /*@__PURE__*/ new G() }
|
|
11921
11925
|
},
|
|
11922
11926
|
gradientmap: { gradientMap: { value: null } },
|
|
11923
11927
|
fog: {
|
|
11924
11928
|
fogDensity: { value: 25e-5 },
|
|
11925
11929
|
fogNear: { value: 1 },
|
|
11926
11930
|
fogFar: { value: 2e3 },
|
|
11927
|
-
fogColor: { value:
|
|
11931
|
+
fogColor: { value: /*@__PURE__*/ new Y(16777215) }
|
|
11928
11932
|
},
|
|
11929
11933
|
lights: {
|
|
11930
11934
|
ambientLightColor: { value: [] },
|
|
@@ -12013,35 +12017,35 @@ var Q = {
|
|
|
12013
12017
|
ltc_1: { value: null },
|
|
12014
12018
|
ltc_2: { value: null },
|
|
12015
12019
|
probesSH: { value: null },
|
|
12016
|
-
probesMin: { value:
|
|
12017
|
-
probesMax: { value:
|
|
12018
|
-
probesResolution: { value:
|
|
12020
|
+
probesMin: { value: /*@__PURE__*/ new W() },
|
|
12021
|
+
probesMax: { value: /*@__PURE__*/ new W() },
|
|
12022
|
+
probesResolution: { value: /*@__PURE__*/ new W() }
|
|
12019
12023
|
},
|
|
12020
12024
|
points: {
|
|
12021
|
-
diffuse: { value:
|
|
12025
|
+
diffuse: { value: /*@__PURE__*/ new Y(16777215) },
|
|
12022
12026
|
opacity: { value: 1 },
|
|
12023
12027
|
size: { value: 1 },
|
|
12024
12028
|
scale: { value: 1 },
|
|
12025
12029
|
map: { value: null },
|
|
12026
12030
|
alphaMap: { value: null },
|
|
12027
|
-
alphaMapTransform: { value:
|
|
12031
|
+
alphaMapTransform: { value: /*@__PURE__*/ new G() },
|
|
12028
12032
|
alphaTest: { value: 0 },
|
|
12029
|
-
uvTransform: { value:
|
|
12033
|
+
uvTransform: { value: /*@__PURE__*/ new G() }
|
|
12030
12034
|
},
|
|
12031
12035
|
sprite: {
|
|
12032
|
-
diffuse: { value:
|
|
12036
|
+
diffuse: { value: /*@__PURE__*/ new Y(16777215) },
|
|
12033
12037
|
opacity: { value: 1 },
|
|
12034
|
-
center: { value:
|
|
12038
|
+
center: { value: /*@__PURE__*/ new U(.5, .5) },
|
|
12035
12039
|
rotation: { value: 0 },
|
|
12036
12040
|
map: { value: null },
|
|
12037
|
-
mapTransform: { value:
|
|
12041
|
+
mapTransform: { value: /*@__PURE__*/ new G() },
|
|
12038
12042
|
alphaMap: { value: null },
|
|
12039
|
-
alphaMapTransform: { value:
|
|
12043
|
+
alphaMapTransform: { value: /*@__PURE__*/ new G() },
|
|
12040
12044
|
alphaTest: { value: 0 }
|
|
12041
12045
|
}
|
|
12042
12046
|
}, pm = {
|
|
12043
12047
|
basic: {
|
|
12044
|
-
uniforms:
|
|
12048
|
+
uniforms: /*@__PURE__*/ Eu([
|
|
12045
12049
|
$.common,
|
|
12046
12050
|
$.specularmap,
|
|
12047
12051
|
$.envmap,
|
|
@@ -12053,7 +12057,7 @@ var Q = {
|
|
|
12053
12057
|
fragmentShader: Q.meshbasic_frag
|
|
12054
12058
|
},
|
|
12055
12059
|
lambert: {
|
|
12056
|
-
uniforms:
|
|
12060
|
+
uniforms: /*@__PURE__*/ Eu([
|
|
12057
12061
|
$.common,
|
|
12058
12062
|
$.specularmap,
|
|
12059
12063
|
$.envmap,
|
|
@@ -12066,7 +12070,7 @@ var Q = {
|
|
|
12066
12070
|
$.fog,
|
|
12067
12071
|
$.lights,
|
|
12068
12072
|
{
|
|
12069
|
-
emissive: { value:
|
|
12073
|
+
emissive: { value: /*@__PURE__*/ new Y(0) },
|
|
12070
12074
|
envMapIntensity: { value: 1 }
|
|
12071
12075
|
}
|
|
12072
12076
|
]),
|
|
@@ -12074,7 +12078,7 @@ var Q = {
|
|
|
12074
12078
|
fragmentShader: Q.meshlambert_frag
|
|
12075
12079
|
},
|
|
12076
12080
|
phong: {
|
|
12077
|
-
uniforms:
|
|
12081
|
+
uniforms: /*@__PURE__*/ Eu([
|
|
12078
12082
|
$.common,
|
|
12079
12083
|
$.specularmap,
|
|
12080
12084
|
$.envmap,
|
|
@@ -12087,8 +12091,8 @@ var Q = {
|
|
|
12087
12091
|
$.fog,
|
|
12088
12092
|
$.lights,
|
|
12089
12093
|
{
|
|
12090
|
-
emissive: { value:
|
|
12091
|
-
specular: { value:
|
|
12094
|
+
emissive: { value: /*@__PURE__*/ new Y(0) },
|
|
12095
|
+
specular: { value: /*@__PURE__*/ new Y(1118481) },
|
|
12092
12096
|
shininess: { value: 30 },
|
|
12093
12097
|
envMapIntensity: { value: 1 }
|
|
12094
12098
|
}
|
|
@@ -12097,7 +12101,7 @@ var Q = {
|
|
|
12097
12101
|
fragmentShader: Q.meshphong_frag
|
|
12098
12102
|
},
|
|
12099
12103
|
standard: {
|
|
12100
|
-
uniforms:
|
|
12104
|
+
uniforms: /*@__PURE__*/ Eu([
|
|
12101
12105
|
$.common,
|
|
12102
12106
|
$.envmap,
|
|
12103
12107
|
$.aomap,
|
|
@@ -12111,7 +12115,7 @@ var Q = {
|
|
|
12111
12115
|
$.fog,
|
|
12112
12116
|
$.lights,
|
|
12113
12117
|
{
|
|
12114
|
-
emissive: { value:
|
|
12118
|
+
emissive: { value: /*@__PURE__*/ new Y(0) },
|
|
12115
12119
|
roughness: { value: 1 },
|
|
12116
12120
|
metalness: { value: 0 },
|
|
12117
12121
|
envMapIntensity: { value: 1 }
|
|
@@ -12121,7 +12125,7 @@ var Q = {
|
|
|
12121
12125
|
fragmentShader: Q.meshphysical_frag
|
|
12122
12126
|
},
|
|
12123
12127
|
toon: {
|
|
12124
|
-
uniforms:
|
|
12128
|
+
uniforms: /*@__PURE__*/ Eu([
|
|
12125
12129
|
$.common,
|
|
12126
12130
|
$.aomap,
|
|
12127
12131
|
$.lightmap,
|
|
@@ -12132,13 +12136,13 @@ var Q = {
|
|
|
12132
12136
|
$.gradientmap,
|
|
12133
12137
|
$.fog,
|
|
12134
12138
|
$.lights,
|
|
12135
|
-
{ emissive: { value:
|
|
12139
|
+
{ emissive: { value: /*@__PURE__*/ new Y(0) } }
|
|
12136
12140
|
]),
|
|
12137
12141
|
vertexShader: Q.meshtoon_vert,
|
|
12138
12142
|
fragmentShader: Q.meshtoon_frag
|
|
12139
12143
|
},
|
|
12140
12144
|
matcap: {
|
|
12141
|
-
uniforms:
|
|
12145
|
+
uniforms: /*@__PURE__*/ Eu([
|
|
12142
12146
|
$.common,
|
|
12143
12147
|
$.bumpmap,
|
|
12144
12148
|
$.normalmap,
|
|
@@ -12150,12 +12154,12 @@ var Q = {
|
|
|
12150
12154
|
fragmentShader: Q.meshmatcap_frag
|
|
12151
12155
|
},
|
|
12152
12156
|
points: {
|
|
12153
|
-
uniforms:
|
|
12157
|
+
uniforms: /*@__PURE__*/ Eu([$.points, $.fog]),
|
|
12154
12158
|
vertexShader: Q.points_vert,
|
|
12155
12159
|
fragmentShader: Q.points_frag
|
|
12156
12160
|
},
|
|
12157
12161
|
dashed: {
|
|
12158
|
-
uniforms:
|
|
12162
|
+
uniforms: /*@__PURE__*/ Eu([
|
|
12159
12163
|
$.common,
|
|
12160
12164
|
$.fog,
|
|
12161
12165
|
{
|
|
@@ -12168,12 +12172,12 @@ var Q = {
|
|
|
12168
12172
|
fragmentShader: Q.linedashed_frag
|
|
12169
12173
|
},
|
|
12170
12174
|
depth: {
|
|
12171
|
-
uniforms:
|
|
12175
|
+
uniforms: /*@__PURE__*/ Eu([$.common, $.displacementmap]),
|
|
12172
12176
|
vertexShader: Q.depth_vert,
|
|
12173
12177
|
fragmentShader: Q.depth_frag
|
|
12174
12178
|
},
|
|
12175
12179
|
normal: {
|
|
12176
|
-
uniforms:
|
|
12180
|
+
uniforms: /*@__PURE__*/ Eu([
|
|
12177
12181
|
$.common,
|
|
12178
12182
|
$.bumpmap,
|
|
12179
12183
|
$.normalmap,
|
|
@@ -12184,13 +12188,13 @@ var Q = {
|
|
|
12184
12188
|
fragmentShader: Q.meshnormal_frag
|
|
12185
12189
|
},
|
|
12186
12190
|
sprite: {
|
|
12187
|
-
uniforms:
|
|
12191
|
+
uniforms: /*@__PURE__*/ Eu([$.sprite, $.fog]),
|
|
12188
12192
|
vertexShader: Q.sprite_vert,
|
|
12189
12193
|
fragmentShader: Q.sprite_frag
|
|
12190
12194
|
},
|
|
12191
12195
|
background: {
|
|
12192
12196
|
uniforms: {
|
|
12193
|
-
uvTransform: { value:
|
|
12197
|
+
uvTransform: { value: /*@__PURE__*/ new G() },
|
|
12194
12198
|
t2D: { value: null },
|
|
12195
12199
|
backgroundIntensity: { value: 1 }
|
|
12196
12200
|
},
|
|
@@ -12202,7 +12206,7 @@ var Q = {
|
|
|
12202
12206
|
envMap: { value: null },
|
|
12203
12207
|
backgroundBlurriness: { value: 0 },
|
|
12204
12208
|
backgroundIntensity: { value: 1 },
|
|
12205
|
-
backgroundRotation: { value:
|
|
12209
|
+
backgroundRotation: { value: /*@__PURE__*/ new G() }
|
|
12206
12210
|
},
|
|
12207
12211
|
vertexShader: Q.backgroundCube_vert,
|
|
12208
12212
|
fragmentShader: Q.backgroundCube_frag
|
|
@@ -12222,11 +12226,11 @@ var Q = {
|
|
|
12222
12226
|
fragmentShader: Q.equirect_frag
|
|
12223
12227
|
},
|
|
12224
12228
|
distance: {
|
|
12225
|
-
uniforms:
|
|
12229
|
+
uniforms: /*@__PURE__*/ Eu([
|
|
12226
12230
|
$.common,
|
|
12227
12231
|
$.displacementmap,
|
|
12228
12232
|
{
|
|
12229
|
-
referencePosition: { value:
|
|
12233
|
+
referencePosition: { value: /*@__PURE__*/ new W() },
|
|
12230
12234
|
nearDistance: { value: 1 },
|
|
12231
12235
|
farDistance: { value: 1e3 }
|
|
12232
12236
|
}
|
|
@@ -12235,11 +12239,11 @@ var Q = {
|
|
|
12235
12239
|
fragmentShader: Q.distance_frag
|
|
12236
12240
|
},
|
|
12237
12241
|
shadow: {
|
|
12238
|
-
uniforms:
|
|
12242
|
+
uniforms: /*@__PURE__*/ Eu([
|
|
12239
12243
|
$.lights,
|
|
12240
12244
|
$.fog,
|
|
12241
12245
|
{
|
|
12242
|
-
color: { value:
|
|
12246
|
+
color: { value: /*@__PURE__*/ new Y(0) },
|
|
12243
12247
|
opacity: { value: 1 }
|
|
12244
12248
|
}
|
|
12245
12249
|
]),
|
|
@@ -12248,51 +12252,51 @@ var Q = {
|
|
|
12248
12252
|
}
|
|
12249
12253
|
};
|
|
12250
12254
|
pm.physical = {
|
|
12251
|
-
uniforms:
|
|
12255
|
+
uniforms: /*@__PURE__*/ Eu([pm.standard.uniforms, {
|
|
12252
12256
|
clearcoat: { value: 0 },
|
|
12253
12257
|
clearcoatMap: { value: null },
|
|
12254
|
-
clearcoatMapTransform: { value:
|
|
12258
|
+
clearcoatMapTransform: { value: /*@__PURE__*/ new G() },
|
|
12255
12259
|
clearcoatNormalMap: { value: null },
|
|
12256
|
-
clearcoatNormalMapTransform: { value:
|
|
12257
|
-
clearcoatNormalScale: { value:
|
|
12260
|
+
clearcoatNormalMapTransform: { value: /*@__PURE__*/ new G() },
|
|
12261
|
+
clearcoatNormalScale: { value: /*@__PURE__*/ new U(1, 1) },
|
|
12258
12262
|
clearcoatRoughness: { value: 0 },
|
|
12259
12263
|
clearcoatRoughnessMap: { value: null },
|
|
12260
|
-
clearcoatRoughnessMapTransform: { value:
|
|
12264
|
+
clearcoatRoughnessMapTransform: { value: /*@__PURE__*/ new G() },
|
|
12261
12265
|
dispersion: { value: 0 },
|
|
12262
12266
|
iridescence: { value: 0 },
|
|
12263
12267
|
iridescenceMap: { value: null },
|
|
12264
|
-
iridescenceMapTransform: { value:
|
|
12268
|
+
iridescenceMapTransform: { value: /*@__PURE__*/ new G() },
|
|
12265
12269
|
iridescenceIOR: { value: 1.3 },
|
|
12266
12270
|
iridescenceThicknessMinimum: { value: 100 },
|
|
12267
12271
|
iridescenceThicknessMaximum: { value: 400 },
|
|
12268
12272
|
iridescenceThicknessMap: { value: null },
|
|
12269
|
-
iridescenceThicknessMapTransform: { value:
|
|
12273
|
+
iridescenceThicknessMapTransform: { value: /*@__PURE__*/ new G() },
|
|
12270
12274
|
sheen: { value: 0 },
|
|
12271
|
-
sheenColor: { value:
|
|
12275
|
+
sheenColor: { value: /*@__PURE__*/ new Y(0) },
|
|
12272
12276
|
sheenColorMap: { value: null },
|
|
12273
|
-
sheenColorMapTransform: { value:
|
|
12277
|
+
sheenColorMapTransform: { value: /*@__PURE__*/ new G() },
|
|
12274
12278
|
sheenRoughness: { value: 1 },
|
|
12275
12279
|
sheenRoughnessMap: { value: null },
|
|
12276
|
-
sheenRoughnessMapTransform: { value:
|
|
12280
|
+
sheenRoughnessMapTransform: { value: /*@__PURE__*/ new G() },
|
|
12277
12281
|
transmission: { value: 0 },
|
|
12278
12282
|
transmissionMap: { value: null },
|
|
12279
|
-
transmissionMapTransform: { value:
|
|
12280
|
-
transmissionSamplerSize: { value:
|
|
12283
|
+
transmissionMapTransform: { value: /*@__PURE__*/ new G() },
|
|
12284
|
+
transmissionSamplerSize: { value: /*@__PURE__*/ new U() },
|
|
12281
12285
|
transmissionSamplerMap: { value: null },
|
|
12282
12286
|
thickness: { value: 0 },
|
|
12283
12287
|
thicknessMap: { value: null },
|
|
12284
|
-
thicknessMapTransform: { value:
|
|
12288
|
+
thicknessMapTransform: { value: /*@__PURE__*/ new G() },
|
|
12285
12289
|
attenuationDistance: { value: 0 },
|
|
12286
|
-
attenuationColor: { value:
|
|
12287
|
-
specularColor: { value:
|
|
12290
|
+
attenuationColor: { value: /*@__PURE__*/ new Y(0) },
|
|
12291
|
+
specularColor: { value: /*@__PURE__*/ new Y(1, 1, 1) },
|
|
12288
12292
|
specularColorMap: { value: null },
|
|
12289
|
-
specularColorMapTransform: { value:
|
|
12293
|
+
specularColorMapTransform: { value: /*@__PURE__*/ new G() },
|
|
12290
12294
|
specularIntensity: { value: 1 },
|
|
12291
12295
|
specularIntensityMap: { value: null },
|
|
12292
|
-
specularIntensityMapTransform: { value:
|
|
12293
|
-
anisotropyVector: { value:
|
|
12296
|
+
specularIntensityMapTransform: { value: /*@__PURE__*/ new G() },
|
|
12297
|
+
anisotropyVector: { value: /*@__PURE__*/ new U() },
|
|
12294
12298
|
anisotropyMap: { value: null },
|
|
12295
|
-
anisotropyMapTransform: { value:
|
|
12299
|
+
anisotropyMapTransform: { value: /*@__PURE__*/ new G() }
|
|
12296
12300
|
}]),
|
|
12297
12301
|
vertexShader: Q.meshphysical_vert,
|
|
12298
12302
|
fragmentShader: Q.meshphysical_frag
|
|
@@ -12301,7 +12305,7 @@ var mm = {
|
|
|
12301
12305
|
r: 0,
|
|
12302
12306
|
b: 0,
|
|
12303
12307
|
g: 0
|
|
12304
|
-
}, hm =
|
|
12308
|
+
}, hm = /*@__PURE__*/ new q(), gm = /*@__PURE__*/ new G();
|
|
12305
12309
|
gm.set(-1, 0, 0, 0, 1, 0, 0, 0, 1);
|
|
12306
12310
|
function _m(e, t, n, r, i, a) {
|
|
12307
12311
|
let o = new Y(0), s = i === !0 ? 0 : 1, c, l, u = null, d = 0, f = null;
|
|
@@ -12685,7 +12689,7 @@ var Sm = 4, Cm = [
|
|
|
12685
12689
|
.446,
|
|
12686
12690
|
.526,
|
|
12687
12691
|
.582
|
|
12688
|
-
], wm = 20, Tm = 256, Em =
|
|
12692
|
+
], wm = 20, Tm = 256, Em = /*@__PURE__*/ new qd(), Dm = /*@__PURE__*/ new Y(), Om = null, km = 0, Am = 0, jm = !1, Mm = /*@__PURE__*/ new W(), Nm = class {
|
|
12689
12693
|
constructor(e) {
|
|
12690
12694
|
this._renderer = e, this._pingPongRenderTarget = null, this._lodMax = 0, this._cubeSize = 0, this._sizeLods = [], this._sigmas = [], this._lodMeshes = [], this._backgroundBox = null, this._cubemapMaterial = null, this._equirectMaterial = null, this._blurMaterial = null, this._ggxMaterial = null;
|
|
12691
12695
|
}
|
|
@@ -12845,7 +12849,7 @@ function Pm(e) {
|
|
|
12845
12849
|
u,
|
|
12846
12850
|
l,
|
|
12847
12851
|
u
|
|
12848
|
-
], f = new Float32Array(108), p = new Float32Array(72), m = new Float32Array(36);
|
|
12852
|
+
], f = /* @__PURE__ */ new Float32Array(108), p = /* @__PURE__ */ new Float32Array(72), m = /* @__PURE__ */ new Float32Array(36);
|
|
12849
12853
|
for (let e = 0; e < 6; e++) {
|
|
12850
12854
|
let t = e % 3 * 2 / 3 - 1, n = e > 2 ? 0 : -1, r = [
|
|
12851
12855
|
t,
|
|
@@ -12976,15 +12980,15 @@ var Hm = class extends _i {
|
|
|
12976
12980
|
width: e,
|
|
12977
12981
|
height: e,
|
|
12978
12982
|
depth: 1
|
|
12979
|
-
}
|
|
12980
|
-
this.texture = new Oc([
|
|
12983
|
+
}, r = [
|
|
12981
12984
|
n,
|
|
12982
12985
|
n,
|
|
12983
12986
|
n,
|
|
12984
12987
|
n,
|
|
12985
12988
|
n,
|
|
12986
12989
|
n
|
|
12987
|
-
]
|
|
12990
|
+
];
|
|
12991
|
+
this.texture = new Oc(r), this._setTextureOptions(t), this.texture.isRenderTargetTexture = !0;
|
|
12988
12992
|
}
|
|
12989
12993
|
fromEquirectangularTexture(e, t) {
|
|
12990
12994
|
this.texture.type = t.type, this.texture.colorSpace = t.colorSpace, this.texture.generateMipmaps = t.generateMipmaps, this.texture.minFilter = t.minFilter, this.texture.magFilter = t.magFilter;
|
|
@@ -13370,7 +13374,7 @@ function Zm(e, t, n, r, i, a) {
|
|
|
13370
13374
|
o.depthTexture && o.depthTexture.dispose(), o.dispose(), s.dispose(), c.dispose(), l.dispose();
|
|
13371
13375
|
};
|
|
13372
13376
|
}
|
|
13373
|
-
var Qm =
|
|
13377
|
+
var Qm = /*@__PURE__*/ new mi(), $m = /*@__PURE__*/ new jc(1, 1), eh = /*@__PURE__*/ new vi(), th = /*@__PURE__*/ new bi(), nh = /*@__PURE__*/ new Oc(), rh = [], ih = [], ah = /* @__PURE__ */ new Float32Array(16), oh = /* @__PURE__ */ new Float32Array(9), sh = /* @__PURE__ */ new Float32Array(4);
|
|
13374
13378
|
function ch(e, t, n) {
|
|
13375
13379
|
let r = e[0];
|
|
13376
13380
|
if (r <= 0 || r > 0) return e;
|
|
@@ -13763,7 +13767,7 @@ function cg(e, t) {
|
|
|
13763
13767
|
}
|
|
13764
13768
|
return r.join("\n");
|
|
13765
13769
|
}
|
|
13766
|
-
var lg =
|
|
13770
|
+
var lg = /*@__PURE__*/ new G();
|
|
13767
13771
|
function ug(e) {
|
|
13768
13772
|
K._getMatrix(lg, K.workingColorSpace, e);
|
|
13769
13773
|
let t = `mat3( ${lg.elements.map((e) => e.toFixed(4))} )`;
|
|
@@ -13803,7 +13807,7 @@ function mg(e, t) {
|
|
|
13803
13807
|
let n = pg[t];
|
|
13804
13808
|
return n === void 0 ? (z("WebGLProgram: Unsupported toneMapping:", t), "vec3 " + e + "( vec3 color ) { return LinearToneMapping( color ); }") : "vec3 " + e + "( vec3 color ) { return " + n + "ToneMapping( color ); }";
|
|
13805
13809
|
}
|
|
13806
|
-
var hg =
|
|
13810
|
+
var hg = /*@__PURE__*/ new W();
|
|
13807
13811
|
function gg() {
|
|
13808
13812
|
return K.getLuminanceCoefficients(hg), [
|
|
13809
13813
|
"float luminance( const in vec3 rgb ) {",
|
|
@@ -14654,7 +14658,7 @@ function Qg() {
|
|
|
14654
14658
|
}
|
|
14655
14659
|
var $g = 0;
|
|
14656
14660
|
function e_(e, t) {
|
|
14657
|
-
return (t.castShadow ? 2 : 0) - (e.castShadow ? 2 : 0) +
|
|
14661
|
+
return (t.castShadow ? 2 : 0) - (e.castShadow ? 2 : 0) + +!!t.map - !!e.map;
|
|
14658
14662
|
}
|
|
14659
14663
|
function t_(e) {
|
|
14660
14664
|
let t = new Zg(), n = Qg(), r = {
|
|
@@ -14827,20 +14831,20 @@ function r_(e) {
|
|
|
14827
14831
|
};
|
|
14828
14832
|
}
|
|
14829
14833
|
var i_ = "void main() {\n gl_Position = vec4( position, 1.0 );\n}", a_ = "uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\nvoid main() {\n const float samples = float( VSM_SAMPLES );\n float mean = 0.0;\n float squared_mean = 0.0;\n float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n float uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n for ( float i = 0.0; i < samples; i ++ ) {\n float uvOffset = uvStart + i * uvStride;\n #ifdef HORIZONTAL_PASS\n vec2 distribution = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ).rg;\n mean += distribution.x;\n squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n #else\n float depth = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ).r;\n mean += depth;\n squared_mean += depth * depth;\n #endif\n }\n mean = mean / samples;\n squared_mean = squared_mean / samples;\n float std_dev = sqrt( max( 0.0, squared_mean - mean * mean ) );\n gl_FragColor = vec4( mean, std_dev, 0.0, 1.0 );\n}", o_ = [
|
|
14830
|
-
|
|
14831
|
-
|
|
14832
|
-
|
|
14833
|
-
|
|
14834
|
-
|
|
14835
|
-
|
|
14834
|
+
/*@__PURE__*/ new W(1, 0, 0),
|
|
14835
|
+
/*@__PURE__*/ new W(-1, 0, 0),
|
|
14836
|
+
/*@__PURE__*/ new W(0, 1, 0),
|
|
14837
|
+
/*@__PURE__*/ new W(0, -1, 0),
|
|
14838
|
+
/*@__PURE__*/ new W(0, 0, 1),
|
|
14839
|
+
/*@__PURE__*/ new W(0, 0, -1)
|
|
14836
14840
|
], s_ = [
|
|
14837
|
-
|
|
14838
|
-
|
|
14839
|
-
|
|
14840
|
-
|
|
14841
|
-
|
|
14842
|
-
|
|
14843
|
-
], c_ =
|
|
14841
|
+
/*@__PURE__*/ new W(0, -1, 0),
|
|
14842
|
+
/*@__PURE__*/ new W(0, -1, 0),
|
|
14843
|
+
/*@__PURE__*/ new W(0, 0, 1),
|
|
14844
|
+
/*@__PURE__*/ new W(0, 0, -1),
|
|
14845
|
+
/*@__PURE__*/ new W(0, -1, 0),
|
|
14846
|
+
/*@__PURE__*/ new W(0, -1, 0)
|
|
14847
|
+
], c_ = /*@__PURE__*/ new q(), l_ = /*@__PURE__*/ new W(), u_ = /*@__PURE__*/ new W();
|
|
14844
14848
|
function d_(e, t, n) {
|
|
14845
14849
|
let r = new Ns(), i = new U(), a = new U(), o = new hi(), s = new Vu(), c = new Hu(), l = {}, u = n.maxTextureSize, d = {
|
|
14846
14850
|
0: 1,
|
|
@@ -15089,7 +15093,7 @@ function f_(e, t) {
|
|
|
15089
15093
|
re.indexOf("WebGL") === -1 ? re.indexOf("OpenGL ES") !== -1 && (ne = parseFloat(/^OpenGL ES (\d)/.exec(re)[1]), j = ne >= 2) : (ne = parseFloat(/^WebGL (\d)/.exec(re)[1]), j = ne >= 1);
|
|
15090
15094
|
let M = null, ie = {}, ae = e.getParameter(e.SCISSOR_BOX), oe = e.getParameter(e.VIEWPORT), se = new hi().fromArray(ae), N = new hi().fromArray(oe);
|
|
15091
15095
|
function ce(t, n, r, i) {
|
|
15092
|
-
let a = new Uint8Array(4), o = e.createTexture();
|
|
15096
|
+
let a = /* @__PURE__ */ new Uint8Array(4), o = e.createTexture();
|
|
15093
15097
|
e.bindTexture(t, o), e.texParameteri(t, e.TEXTURE_MIN_FILTER, e.NEAREST), e.texParameteri(t, e.TEXTURE_MAG_FILTER, e.NEAREST);
|
|
15094
15098
|
for (let o = 0; o < r; o++) t === e.TEXTURE_3D || t === e.TEXTURE_2D_ARRAY ? e.texImage3D(n, 0, e.RGBA, 1, 1, i, 0, e.RGBA, e.UNSIGNED_BYTE, a) : e.texImage2D(n + o, 0, e.RGBA, 1, 1, 0, e.RGBA, e.UNSIGNED_BYTE, a);
|
|
15095
15099
|
return o;
|
|
@@ -16226,7 +16230,7 @@ var h_ = "\nvoid main() {\n\n gl_Position = vec4( position, 1.0 );\n\n}", g_ = "
|
|
|
16226
16230
|
ae = e;
|
|
16227
16231
|
}, this.dispose = function() {};
|
|
16228
16232
|
}
|
|
16229
|
-
}, y_ =
|
|
16233
|
+
}, y_ = /*@__PURE__*/ new q(), b_ = /*@__PURE__*/ new G();
|
|
16230
16234
|
b_.set(-1, 0, 0, 0, 1, 0, 0, 0, 1);
|
|
16231
16235
|
function x_(e, t) {
|
|
16232
16236
|
function n(e, t) {
|
|
@@ -16905,18 +16909,18 @@ var E_ = class {
|
|
|
16905
16909
|
if (typeof WebGLRenderingContext < "u" && n instanceof WebGLRenderingContext) throw Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");
|
|
16906
16910
|
p = n.getContextAttributes().alpha;
|
|
16907
16911
|
} else p = a;
|
|
16908
|
-
let m = f, h = new Set([
|
|
16912
|
+
let m = f, h = /* @__PURE__ */ new Set([
|
|
16909
16913
|
dt,
|
|
16910
16914
|
lt,
|
|
16911
16915
|
st
|
|
16912
|
-
]), g = new Set([
|
|
16916
|
+
]), g = /* @__PURE__ */ new Set([
|
|
16913
16917
|
He,
|
|
16914
16918
|
qe,
|
|
16915
16919
|
Ge,
|
|
16916
16920
|
Qe,
|
|
16917
16921
|
Xe,
|
|
16918
16922
|
Ze
|
|
16919
|
-
]), _ = new Uint32Array(4), v = new Int32Array(4), y = new W(), b = null, x = null, S = [], C = [], w = null;
|
|
16923
|
+
]), _ = /* @__PURE__ */ new Uint32Array(4), v = /* @__PURE__ */ new Int32Array(4), y = new W(), b = null, x = null, S = [], C = [], w = null;
|
|
16920
16924
|
this.domElement = t, this.debug = {
|
|
16921
16925
|
checkShaderErrors: !0,
|
|
16922
16926
|
onShaderError: null
|