@mml-io/3d-web-client-core 0.0.0-experimental-8e449d5-20250417 → 0.0.0-experimental-fd9c0c6-20250417

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/build/index.js CHANGED
@@ -5406,9 +5406,6 @@ var Composer = class {
5406
5406
  this.renderer.toneMapping = rendererValues.toneMapping;
5407
5407
  this.renderer.toneMappingExposure = rendererValues.exposure;
5408
5408
  this.environmentConfiguration = environmentConfiguration;
5409
- this.updateSkyboxAndEnvValues();
5410
- this.updateAmbientLightValues();
5411
- this.setFog();
5412
5409
  this.effectComposer = new EffectComposer2(this.renderer, {
5413
5410
  frameBufferType: HalfFloatType2
5414
5411
  });
@@ -5447,6 +5444,9 @@ var Composer = class {
5447
5444
  if ((_a = environmentConfiguration == null ? void 0 : environmentConfiguration.postProcessing) == null ? void 0 : _a.bloomIntensity) {
5448
5445
  extrasValues.bloom = environmentConfiguration.postProcessing.bloomIntensity;
5449
5446
  }
5447
+ this.updateSkyboxAndEnvValues();
5448
+ this.updateAmbientLightValues();
5449
+ this.updateFogValues();
5450
5450
  this.bloomEffect = new BloomEffect({
5451
5451
  intensity: extrasValues.bloom
5452
5452
  });
@@ -5537,6 +5537,7 @@ var Composer = class {
5537
5537
  this.updateSkyboxAndEnvValues();
5538
5538
  this.updateAmbientLightValues();
5539
5539
  this.updateSunValues();
5540
+ this.updateFogValues();
5540
5541
  }
5541
5542
  setupTweakPane(tweakPane) {
5542
5543
  tweakPane.setupRenderPane(
@@ -5769,6 +5770,21 @@ var Composer = class {
5769
5770
  (_i = this.sun) == null ? void 0 : _i.setPolarAngle(this.environmentConfiguration.sun.polarAngle * (Math.PI / 180));
5770
5771
  }
5771
5772
  }
5773
+ updateFogValues() {
5774
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
5775
+ if (typeof ((_b = (_a = this.environmentConfiguration) == null ? void 0 : _a.fog) == null ? void 0 : _b.fogNear) === "number") {
5776
+ envValues.fog.fogNear = this.environmentConfiguration.fog.fogNear;
5777
+ }
5778
+ if (typeof ((_d = (_c = this.environmentConfiguration) == null ? void 0 : _c.fog) == null ? void 0 : _d.fogFar) === "number") {
5779
+ envValues.fog.fogFar = this.environmentConfiguration.fog.fogFar;
5780
+ }
5781
+ if (typeof ((_g = (_f = (_e = this.environmentConfiguration) == null ? void 0 : _e.fog) == null ? void 0 : _f.fogColor) == null ? void 0 : _g.r) === "number" && typeof ((_j = (_i = (_h = this.environmentConfiguration) == null ? void 0 : _h.fog) == null ? void 0 : _i.fogColor) == null ? void 0 : _j.g) === "number" && typeof ((_m = (_l = (_k = this.environmentConfiguration) == null ? void 0 : _k.fog) == null ? void 0 : _l.fogColor) == null ? void 0 : _m.b) === "number") {
5782
+ envValues.fog.fogColor.r = this.environmentConfiguration.fog.fogColor.r;
5783
+ envValues.fog.fogColor.g = this.environmentConfiguration.fog.fogColor.g;
5784
+ envValues.fog.fogColor.b = this.environmentConfiguration.fog.fogColor.b;
5785
+ }
5786
+ this.setFog();
5787
+ }
5772
5788
  updateSkyboxAndEnvValues() {
5773
5789
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
5774
5790
  if (typeof ((_b = (_a = this.environmentConfiguration) == null ? void 0 : _a.envMap) == null ? void 0 : _b.intensity) === "number") {