소스 검색

Improved example lighting.

Mr.doob 10 년 전
부모
커밋
12b0e7b1fd
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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;