diff --git a/src/components/skybox.js b/src/components/skybox.js index 08566b88c0388b99d1d4de4db8c79ea9f85e1863..04508ac2ac00dd78433ac2965c50a59c9c360551 100644 --- a/src/components/skybox.js +++ b/src/components/skybox.js @@ -272,7 +272,11 @@ AFRAME.registerComponent("skybox", { uniforms.sunPosition.value.set(x, y, z).normalize(); - this.sky.scale.set(distance, distance, distance); + // HACK Remove this if condition and always set the scale based on distance when the existing environments + // have their sky scales set to 1. + if (this.el.object3D.scale.x === 1) { + this.sky.scale.set(distance, distance, distance); + } } },