Skip to content
Snippets Groups Projects
Commit 938b1879 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

lighting

parent fc320863
No related branches found
No related tags found
No related merge requests found
...@@ -33,14 +33,25 @@ define(['underscore', 'three'], function(_, THREE){ ...@@ -33,14 +33,25 @@ define(['underscore', 'three'], function(_, THREE){
// scene.fog = new THREE.FogExp2(fogColor, 0.001); // scene.fog = new THREE.FogExp2(fogColor, 0.001);
// lights // lights
var light = new THREE.DirectionalLight(0xffffff); var color = 0x888888;
light.position.set(1, 1, 1); var light = new THREE.DirectionalLight(color);
light.position.set(0, 10, 0);
scene.add(light); scene.add(light);
light = new THREE.DirectionalLight(0xaaaaaa); var light = new THREE.DirectionalLight(color);
light.position.set(0, -10, 0);
scene.add(light);
var light = new THREE.DirectionalLight(color);
light.position.set(0, 0, 300);
scene.add(light);
var light = new THREE.DirectionalLight(0xaaaaaa);
light.position.set(-1, -1, -1); light.position.set(-1, -1, -1);
scene.add(light); scene.add(light);
light = new THREE.AmbientLight(0x222222); var light = new THREE.DirectionalLight(0xaaaaaa);
light.position.set(1, 1, -1);
scene.add(light); scene.add(light);
var light = new THREE.AmbientLight(0x222222);
scene.add(light);
// renderer // renderer
renderer.setClearColor(fogColor, 1); renderer.setClearColor(fogColor, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment