Browse Source

Improved example lighting.

Mr.doob 10 years ago
parent
commit
12b0e7b1fd
1 changed files with 1 additions and 3 deletions
  1. 1 3
      examples/webgl_loader_collada_kinematics.html

+ 1 - 3
examples/webgl_loader_collada_kinematics.html

@@ -120,9 +120,7 @@
 
 				// Lights
 
-				scene.add( new THREE.AmbientLight( 0xcccccc ) );
-
-				var directionalLight = new THREE.DirectionalLight( 0xeeeeee );
+				var directionalLight = new THREE.HemisphereLight( 0xffeeee, 0x111122 );
 				directionalLight.position.x = Math.random() - 0.5;
 				directionalLight.position.y = Math.random() - 0.5;
 				directionalLight.position.z = Math.random() - 0.5;