diff --git a/src/components/directional-light.js b/src/components/directional-light.js index cd501d7107f4f579ab85f9ddb5274e8ddf8bc7f1..6c2a1e89d24981bfa0e893264f2ae6423c6d8e0e 100644 --- a/src/components/directional-light.js +++ b/src/components/directional-light.js @@ -8,6 +8,7 @@ AFRAME.registerComponent("directional-light", { init() { const el = this.el; this.light = new THREE.DirectionalLight(); + this.light.position.set(0, 0, 0); this.light.target.position.set(0, 0, 1); this.light.add(this.light.target); this.el.setObject3D("directional-light", this.light); diff --git a/src/components/hemisphere-light.js b/src/components/hemisphere-light.js index ec26e4c16f032c23172efd4185698c4f3381fab5..2aefa6b6172fc80a694fd91cb23c778326b3ca17 100644 --- a/src/components/hemisphere-light.js +++ b/src/components/hemisphere-light.js @@ -8,6 +8,7 @@ AFRAME.registerComponent("hemisphere-light", { init() { const el = this.el; this.light = new THREE.HemisphereLight(); + this.light.position.set(0, 0, 0); this.el.setObject3D("hemisphere-light", this.light); this.el.sceneEl.systems.light.registerLight(el); },