From c8248473762ffee3137610bda7ad5848f20f2ef6 Mon Sep 17 00:00:00 2001
From: Robert Long <robert@robertlong.me>
Date: Thu, 9 Aug 2018 16:11:04 -0700
Subject: [PATCH] Set default position for directional and hemisphere lights.

---
 src/components/directional-light.js | 1 +
 src/components/hemisphere-light.js  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/components/directional-light.js b/src/components/directional-light.js
index cd501d710..6c2a1e89d 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 ec26e4c16..2aefa6b61 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);
   },
-- 
GitLab