iflow-engine-base 3.4.8 → 3.4.9
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.
|
@@ -24798,10 +24798,10 @@ class Hv {
|
|
|
24798
24798
|
enabled: !0,
|
|
24799
24799
|
// AO 采样半径。推荐范围:0.1 ~ 2.0。
|
|
24800
24800
|
// 越大遮蔽范围越广,但容易发灰、丢细节;对性能有轻到中等影响。
|
|
24801
|
-
radius: 0.
|
|
24801
|
+
radius: 0.3,
|
|
24802
24802
|
// 深度厚度容差。推荐范围:0.5 ~ 4.0。
|
|
24803
24803
|
// 越大越容易把相邻表面视为同一片几何体,主要影响观感,对性能影响很小。
|
|
24804
|
-
thickness:
|
|
24804
|
+
thickness: 1,
|
|
24805
24805
|
// 半径内采样衰减指数。推荐范围:1.0 ~ 2.5。
|
|
24806
24806
|
// 越大越偏向近处采样,主要影响 AO 分布,对性能影响很小。
|
|
24807
24807
|
distanceExponent: 1,
|
|
@@ -24810,16 +24810,17 @@ class Hv {
|
|
|
24810
24810
|
distanceFallOff: 1,
|
|
24811
24811
|
// AO 强度。推荐范围:0.8 ~ 2.0。
|
|
24812
24812
|
// 1 为原始强度,>1 会更重;只影响最终混合强度,对性能几乎无影响。
|
|
24813
|
-
scale:
|
|
24813
|
+
scale: 3,
|
|
24814
24814
|
// 采样数。推荐范围:4 ~ 16,移动端建议 4 ~ 8,桌面端建议 8 ~ 12。
|
|
24815
24815
|
// 越大越平滑,但 GPU 开销越高;这是 GTAO 最直接的性能开关之一。
|
|
24816
|
-
samples:
|
|
24816
|
+
samples: 16,
|
|
24817
24817
|
// 内部分辨率缩放。推荐范围:0.5 ~ 1.0。
|
|
24818
24818
|
// <1 能显著省性能,但会更糊;这是 GTAO 另一个最直接的性能开关。
|
|
24819
24819
|
resolutionScale: 0.45,
|
|
24820
24820
|
// 是否依赖时间域滤波。建议默认 false,仅在配合 TRAA 时考虑开启。
|
|
24821
24821
|
// 开启后噪点更少,但会引入时间稳定性问题;对性能影响小,但会增加系统复杂度。
|
|
24822
|
-
useTemporalFiltering: !1
|
|
24822
|
+
useTemporalFiltering: !1,
|
|
24823
|
+
screenSpaceRadius: !1
|
|
24823
24824
|
}), this.applyClippingToAmbientOcclusionPass(this.gtaoPass), this.composer.addPass(this.gtaoPass), this.ssaoPass = new jn(n, i, e, t), this.ssaoPass.kernelRadius = 8, this.ssaoPass.minDistance = 5e-3, this.ssaoPass.maxDistance = 0.1, this.ssaoPass.output = jn.OUTPUT.Default, this.ssaoPass.enabled = !1, this.applyClippingToAmbientOcclusionPass(this.ssaoPass), this.composer.addPass(this.ssaoPass), this.saturationPass = new ho(Vv), this.saturationPass.uniforms.saturation.value = 1.3, this.saturationPass.uniforms.contrast.value = 1.1, this.saturationPass.enabled = !1, this.composer.addPass(this.saturationPass), this.outputPass = new zv(), this.outputPass.enabled = !1, this.composer.addPass(this.outputPass), this.fxaaPass = new ho(Bv), this.fxaaPass.material.uniforms.resolution.value.x = 1 / (e * o), this.fxaaPass.material.uniforms.resolution.value.y = 1 / (t * o), this.fxaaPass.enabled = !1, this.composer.addPass(this.fxaaPass);
|
|
24824
24825
|
}
|
|
24825
24826
|
}
|
|
@@ -31501,7 +31502,14 @@ async function Ab(s, e, t, n) {
|
|
|
31501
31502
|
const d = o[h];
|
|
31502
31503
|
for (let u = 0; u < d.length; u++) {
|
|
31503
31504
|
const m = d[u];
|
|
31504
|
-
m.glb = h, a.nodesMap.has(m.id) === !1
|
|
31505
|
+
if (m.glb = h, a.nodesMap.has(m.id) === !1)
|
|
31506
|
+
a.nodesMap.set(m.id, { infos: [m] });
|
|
31507
|
+
else {
|
|
31508
|
+
if (!a.nodesMap.get(m.id).infos)
|
|
31509
|
+
continue;
|
|
31510
|
+
a.nodesMap.get(m.id).infos.push(m);
|
|
31511
|
+
}
|
|
31512
|
+
(u + 1) % Lu === 0 && (l = await ei(s, n, l));
|
|
31505
31513
|
}
|
|
31506
31514
|
const g = await mb(i, [`/${h}.glb`, `${h}.glb`, h + ".glb"]);
|
|
31507
31515
|
if (g == null) {
|
|
@@ -31732,7 +31740,7 @@ class Ob {
|
|
|
31732
31740
|
e.shadow.camera.left = -t, e.shadow.camera.right = t, e.shadow.camera.top = t, e.shadow.camera.bottom = -t, e.shadow.radius = 2;
|
|
31733
31741
|
const n = new y.DirectionalLight(16777215, 2);
|
|
31734
31742
|
this.engine.scene.add(e), this.engine.scene.add(n), this.engine.scene.dirLight = n;
|
|
31735
|
-
const i = new y.AmbientLight(16777215,
|
|
31743
|
+
const i = new y.AmbientLight(16777215, 2);
|
|
31736
31744
|
this.engine.scene.add(i);
|
|
31737
31745
|
}
|
|
31738
31746
|
}
|
|
@@ -34932,7 +34940,7 @@ function Sw(s) {
|
|
|
34932
34940
|
if (_ != null && _.includes(p))
|
|
34933
34941
|
continue;
|
|
34934
34942
|
let M = s.models.find((w) => w.url == c.url).nodesMap.get(p);
|
|
34935
|
-
M != null && !M.instance && M.infos.map((E) => E.mesh).forEach((E) => {
|
|
34943
|
+
M != null && !M.instance && M.infos != null && M.infos.map((E) => E.mesh).forEach((E) => {
|
|
34936
34944
|
i.push(E);
|
|
34937
34945
|
});
|
|
34938
34946
|
}
|
|
@@ -34946,7 +34954,7 @@ function Sw(s) {
|
|
|
34946
34954
|
if (v != null && v.includes(p))
|
|
34947
34955
|
continue;
|
|
34948
34956
|
let w = s.models.find((E) => E.url == c.url).nodesMap.get(p);
|
|
34949
|
-
w != null && !w.instance && w.infos.map((R) => R.mesh).forEach((R) => {
|
|
34957
|
+
w != null && !w.instance && w.infos != null && w.infos.map((R) => R.mesh).forEach((R) => {
|
|
34950
34958
|
i.push(R);
|
|
34951
34959
|
});
|
|
34952
34960
|
}
|
|
@@ -41434,7 +41442,7 @@ class vS {
|
|
|
41434
41442
|
// 业务数据
|
|
41435
41443
|
models = [];
|
|
41436
41444
|
reactBoundingClientRect = { left: 0, top: 0 };
|
|
41437
|
-
version = "3.4.
|
|
41445
|
+
version = "3.4.9";
|
|
41438
41446
|
versionEl = null;
|
|
41439
41447
|
// 引擎容器
|
|
41440
41448
|
container;
|