@yschindel/ara3d-webgl 1.3.3 → 1.3.4

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.
@@ -23640,7 +23640,7 @@ function aS(r) {
23640
23640
  return new he();
23641
23641
  }
23642
23642
  function cS(r) {
23643
- return r.camera.allowedMovement = Eh(r.camera.allowedMovement), r.camera.allowedRotation = aS(r.camera.allowedRotation), r.camera.forward = Eh(r.camera.forward), r.camera.gizmo.color = $i(r.camera.gizmo.color), r.background.color = $i(r.background.color), r.groundPlane.color = $i(r.groundPlane.color), r.skylight.skyColor = $i(r.skylight.skyColor), r.skylight.groundColor = $i(r.skylight.groundColor), r.ambientLight.color = $i(r.ambientLight.color), r.sunLights = r.sunLights.map((e) => ({
23643
+ return r.camera.allowedMovement = Eh(r.camera.allowedMovement), r.camera.allowedRotation = aS(r.camera.allowedRotation), r.camera.forward = Eh(r.camera.forward), r.camera.gizmo.color = $i(r.camera.gizmo.color), r.background.color !== null && r.background.color !== void 0 && (r.background.color = $i(r.background.color)), r.groundPlane.color = $i(r.groundPlane.color), r.skylight.skyColor = $i(r.skylight.skyColor), r.skylight.groundColor = $i(r.skylight.groundColor), r.ambientLight.color = $i(r.ambientLight.color), r.sunLights = r.sunLights.map((e) => ({
23644
23644
  ...e,
23645
23645
  position: Eh(e.position),
23646
23646
  color: $i(e.color)
@@ -25249,7 +25249,7 @@ class iM {
25249
25249
  return this.scene.background;
25250
25250
  }
25251
25251
  set background(e) {
25252
- this.scene.background = e, this.needsUpdate = !0;
25252
+ this.scene.background = e, e === null ? this.renderer.setClearColor(0, 0) : this.renderer.setClearColor(0, 1), this.needsUpdate = !0;
25253
25253
  }
25254
25254
  render() {
25255
25255
  !this.needsUpdate && !this.camera.hasMoved || this.renderer.render(this.scene, this.camera.camPerspective.camera);