Explorar o código

Improved example lighting.

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
12b0e7b1fd
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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;