@mml-io/3d-web-client-core 0.21.4 → 0.21.5

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
@@ -2892,7 +2892,7 @@ var envOptions = {
2892
2892
  },
2893
2893
  fog: {
2894
2894
  fogNear: { min: 0, max: 80, step: 1 },
2895
- fogFar: { min: 81, max: 300, step: 1 }
2895
+ fogFar: { min: 0, max: 300, step: 1 }
2896
2896
  }
2897
2897
  };
2898
2898
  var EnvironmentFolder = class {
@@ -5714,6 +5714,10 @@ var Composer = class {
5714
5714
  fileInput.click();
5715
5715
  }
5716
5716
  setFog() {
5717
+ if (envValues.fog.fogFar === 0) {
5718
+ this.scene.fog = null;
5719
+ return;
5720
+ }
5717
5721
  const fogColor = new Color7().setRGB(
5718
5722
  envValues.fog.fogColor.r,
5719
5723
  envValues.fog.fogColor.g,