@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.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
- if (gsRendererForGround) {
19085
- const bbox = gsRendererForGround.getBoundingBox();
19086
- if (bbox) {
19087
- const m = gsRendererForGround.getModelMatrix();
19088
- groundLevel = m[5] * bbox.min[1] + m[13];
19089
- if (!this._hdrDebugLogged) {
19090
- this._hdrDebugLogged = true;
19091
- console.log(
19092
- "[HDR Ground Debug]",
19093
- "bbox.min:",
19094
- bbox.min,
19095
- "bbox.max:",
19096
- bbox.max,
19097
- "bbox.center:",
19098
- bbox.center,
19099
- "groundLevel:",
19100
- groundLevel,
19101
- "cam:",
19102
- [cam[0].toFixed(2), cam[1].toFixed(2), cam[2].toFixed(2)],
19103
- "camH_effective:",
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,