iflow-engine-base-3d 4.0.2 → 4.0.4
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as ki, G as pe, P as Xt, O as Be, M as F, V as d, e as et, T as Vn, C as Vs, W as Li, a as Us, b as We, N as Bi, c as Ws, d as lt, f as W, Q as Te, E as Un, R as me, g as tt, h as Wn, B as R, i as zi, A as Gn, j as H, k as z, I as V, l as ri, m as ai, n as qn, o as Kn, L as Qt, p as Gs, q as qs, r as Ks, s as Yi, D as re, t as Xi, u as js, F as Ys, v as xe, w as jn, x as Yn, y as Ri, z as Xs, H as Xn, J as ae, K as Qs, U as $s, X as Et, Y as Zs, Z as Qn, _ as Js, $ as Ie, a0 as At, a1 as it, a2 as Xe, a3 as $t, a4 as Oi, a5 as Z, a6 as oe, a7 as St, a8 as eo, a9 as nt, aa as wi, ab as Ge, ac as Lt, ad as to, ae as io, af as bi, ag as pt, ah as no, ai as ut, aj as so, ak as oo, al as $n, am as Zt, an as Pt, ao as Jt, ap as ro, aq as Qi, ar as Tt, as as It, at as ao, au as lo, av as $i, aw as co, ax as ho, ay as uo, az as po, aA as mo, aB as go, aC as fo, aD as yo, aE as Mo, aF as vo, aG as Zn, aH as xo, aI as wo, aJ as bo, aK as Co, aL as Eo, aM as Ao, aN as So, aO as Po, aP as To, aQ as Io } from "./three-vendor-UroN9p1L.js";
|
|
2
|
-
import { W as fe, C as _o, L as Mt, B as Zi, g as Oe, a as Do, E as ko, r as Lo } from "./sdk-runtime-
|
|
2
|
+
import { W as fe, C as _o, L as Mt, B as Zi, g as Oe, a as Do, E as ko, r as Lo } from "./sdk-runtime-fDN2RtaR.js";
|
|
3
3
|
import { r as ee, g as Bo } from "./sdk-assets-DHhjv3WO.js";
|
|
4
4
|
import { a as ei, J as Ci, c as zo, b as Ro, P as li, q as Oo, k as Fo, n as Ji, E as en, S as No } from "./sdk-vendor-DYgn7sFs.js";
|
|
5
5
|
class Ho {
|
|
@@ -424,7 +424,10 @@ class Vo {
|
|
|
424
424
|
}
|
|
425
425
|
const Fi = 1.1;
|
|
426
426
|
function Jn(a) {
|
|
427
|
-
|
|
427
|
+
if (a?.deviceModule?.isMobile?.() !== !0)
|
|
428
|
+
return window.devicePixelRatio || 1;
|
|
429
|
+
const e = Number(a?.options?.limit_memory);
|
|
430
|
+
return !Number.isFinite(e) || e <= 4 ? 1.2 : e >= 8 ? 2 : e >= 6 ? 1.5 : 1;
|
|
428
431
|
}
|
|
429
432
|
class Uo {
|
|
430
433
|
engine;
|
|
@@ -434,10 +437,10 @@ class Uo {
|
|
|
434
437
|
this.engine = e, this.renderer = null, this.watermark = new _o(Vn);
|
|
435
438
|
}
|
|
436
439
|
createRenderer() {
|
|
437
|
-
const { width: e, height: t } = this.engine.deviceModule.getContainerSize()
|
|
438
|
-
return Vs.enabled = !0, this.renderer = new Li({
|
|
440
|
+
const { width: e, height: t } = this.engine.deviceModule.getContainerSize();
|
|
441
|
+
return this.engine.deviceModule.isMobile(), Vs.enabled = !0, this.renderer = new Li({
|
|
439
442
|
// 原生 MSAA 主要覆盖非后处理路径;后处理链路的边缘由 composer 的 samples 和 FXAA 继续处理。
|
|
440
|
-
antialias:
|
|
443
|
+
antialias: this.engine.options.antialias ?? !0,
|
|
441
444
|
alpha: !0,
|
|
442
445
|
premultipliedAlpha: !1,
|
|
443
446
|
stencil: !0,
|
|
@@ -21017,7 +21020,7 @@ class Sh {
|
|
|
21017
21020
|
}
|
|
21018
21021
|
const Ph = Object.freeze({
|
|
21019
21022
|
maxTextureSize: 1024,
|
|
21020
|
-
samples:
|
|
21023
|
+
samples: 1,
|
|
21021
21024
|
restrictTextureSize: !0
|
|
21022
21025
|
}), Th = Object.freeze({
|
|
21023
21026
|
maxTextureSize: 2048,
|