@d5techs/3dgs-lib 1.4.62 → 1.4.63
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/3dgs-lib.cjs +20 -24
- package/dist/3dgs-lib.cjs.map +1 -1
- package/dist/3dgs-lib.js +20 -24
- package/dist/3dgs-lib.js.map +1 -1
- package/package.json +1 -1
package/dist/3dgs-lib.js
CHANGED
|
@@ -19081,30 +19081,26 @@ class App {
|
|
|
19081
19081
|
const cam = this.camera.position;
|
|
19082
19082
|
let groundLevel = 0;
|
|
19083
19083
|
const gsRendererForGround = this.sceneManager.getGSRenderer();
|
|
19084
|
-
|
|
19085
|
-
|
|
19086
|
-
|
|
19087
|
-
|
|
19088
|
-
|
|
19089
|
-
|
|
19090
|
-
|
|
19091
|
-
|
|
19092
|
-
|
|
19093
|
-
|
|
19094
|
-
|
|
19095
|
-
|
|
19096
|
-
|
|
19097
|
-
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
|
|
19102
|
-
|
|
19103
|
-
|
|
19104
|
-
(cam[1] - groundLevel).toFixed(2)
|
|
19105
|
-
);
|
|
19106
|
-
}
|
|
19107
|
-
}
|
|
19084
|
+
const bbox = (gsRendererForGround == null ? void 0 : gsRendererForGround.getBoundingBox()) ?? null;
|
|
19085
|
+
if (bbox) {
|
|
19086
|
+
const m = gsRendererForGround.getModelMatrix();
|
|
19087
|
+
groundLevel = m[5] * bbox.min[1] + m[13];
|
|
19088
|
+
}
|
|
19089
|
+
if (!this._hdrDebugLogged) {
|
|
19090
|
+
this._hdrDebugLogged = true;
|
|
19091
|
+
console.log(
|
|
19092
|
+
"[HDR Ground Debug]",
|
|
19093
|
+
"hasGsRenderer:",
|
|
19094
|
+
!!gsRendererForGround,
|
|
19095
|
+
"hasBbox:",
|
|
19096
|
+
!!bbox,
|
|
19097
|
+
"bbox:",
|
|
19098
|
+
bbox ? { min: [...bbox.min], max: [...bbox.max], center: [...bbox.center] } : null,
|
|
19099
|
+
"groundLevel:",
|
|
19100
|
+
groundLevel,
|
|
19101
|
+
"cam:",
|
|
19102
|
+
[cam[0].toFixed(2), cam[1].toFixed(2), cam[2].toFixed(2)]
|
|
19103
|
+
);
|
|
19108
19104
|
}
|
|
19109
19105
|
this.skyboxRenderer.prepareFrame(
|
|
19110
19106
|
this.camera.viewMatrix,
|