Skip to content

Commit

Permalink
Add renderer to example
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpeiris committed Dec 24, 2019
1 parent c2d6549 commit 58165d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/Files/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
scene: "readonly",
camera: "readonly",
sketch: "readonly"
renderer: "readonly"
},
parserOptions: {
sourceType: "script"
Expand Down
4 changes: 4 additions & 0 deletions js/Files/Cube.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
const t3 = THREE;

const sky = "lightblue";
renderer.setClearColor(sky);
scene.fog.color.setStyle(sky);

const light = new t3.DirectionalLight();
light.castShadow = true;
light.position.set(7, 5.0, 4.0);
Expand Down

0 comments on commit 58165d7

Please sign in to comment.