Skip to content
Snippets Groups Projects
Commit ef2a23f3 authored by Brian Peiris's avatar Brian Peiris
Browse files

HACK temporary fix for existing environments

parent f8fcee38
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment