@mml-io/3d-web-client-core 0.0.0-experimental-1d785e6-20240805 → 0.0.0-experimental-fec4b51-20240819

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
@@ -5522,11 +5522,13 @@ var Composer = class {
5522
5522
  }
5523
5523
  if (typeof ((_e = (_d = this.environmentConfiguration) == null ? void 0 : _d.sun) == null ? void 0 : _e.azimuthalAngle) === "number") {
5524
5524
  sunValues.sunPosition.sunAzimuthalAngle = this.environmentConfiguration.sun.azimuthalAngle;
5525
- (_f = this.sun) == null ? void 0 : _f.setAzimuthalAngle(this.environmentConfiguration.sun.azimuthalAngle);
5525
+ (_f = this.sun) == null ? void 0 : _f.setAzimuthalAngle(
5526
+ this.environmentConfiguration.sun.azimuthalAngle * (Math.PI / 180)
5527
+ );
5526
5528
  }
5527
5529
  if (typeof ((_h = (_g = this.environmentConfiguration) == null ? void 0 : _g.sun) == null ? void 0 : _h.polarAngle) === "number") {
5528
5530
  sunValues.sunPosition.sunPolarAngle = this.environmentConfiguration.sun.polarAngle;
5529
- (_i = this.sun) == null ? void 0 : _i.setPolarAngle(this.environmentConfiguration.sun.polarAngle);
5531
+ (_i = this.sun) == null ? void 0 : _i.setPolarAngle(this.environmentConfiguration.sun.polarAngle * (Math.PI / 180));
5530
5532
  }
5531
5533
  }
5532
5534
  updateSkyboxAndEnvValues() {