Skip to content

Commit

Permalink
Expose setClearColor(color, alpha) on world object
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaicoianu committed Jul 17, 2015
1 parent bc2a36b commit b5d097e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/systems/world.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ elation.require([

}
}
this.setClearColor = function(color, opacity) {
this.engine.systems['render'].setclearcolor(color, opacity);
}
this.setFog = function(near, far, color) {
if (typeof color == 'undefined') color = 0xffffff;
this.scene['world-3d'].fog = new THREE.Fog(color, near, far);
Expand Down

0 comments on commit b5d097e

Please sign in to comment.