소스 검색

Removed comment and explicitly set intensity

Lewy Blue 7 년 전
부모
커밋
4ed5f0964a
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      examples/js/loaders/FBXLoader.js

+ 1 - 2
examples/js/loaders/FBXLoader.js

@@ -1653,7 +1653,6 @@
 
 		/*
 			parse ambient color - if it's not set to black (default), create an ambient light
-			Note: no way to set intensity, FBX only provides a color
 		*/
 		var ambientColor = FBXTree.GlobalSettings.properties.AmbientColor.value;
 		var r = ambientColor[ 0 ];
@@ -1662,7 +1661,7 @@
 		if ( r !== 0 || g !== 0 || b !== 0 ) {
 
 			var color = new THREE.Color( r, g, b );
-			sceneGraph.add( new THREE.AmbientLight( color ) );
+			sceneGraph.add( new THREE.AmbientLight( color, 1 ) );
 
 		}