Skip to content
Snippets Groups Projects
Commit d2917aeb authored by Robert Long's avatar Robert Long
Browse files

Fix the spot-light position.

parent 55808422
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ AFRAME.registerComponent("spot-light", {
init() {
const el = this.el;
this.light = new THREE.SpotLight();
this.light.position.set(0, 0, 0);
this.light.target.position.set(0, 0, 1);
this.light.add(this.light.target);
this.light.decay = 2;
......
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