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