Skip to content

Commit

Permalink
update camera before lights
Browse files Browse the repository at this point in the history
  • Loading branch information
bcamper committed Mar 4, 2015
1 parent 2f6d3ab commit d6b09e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,9 @@ Scene.prototype.render = function () {
}

// Update styles, camera, lights
this.camera.update();
Object.keys(this.active_styles).forEach(i => this.styles[i].update());
Object.keys(this.lights).forEach(i => this.lights[i].update());
this.camera.update();

// Renderable tile list
this.renderable_tiles = [];
Expand Down

0 comments on commit d6b09e2

Please sign in to comment.