소스 검색

load lightMapScale in ObjectLoader.

Ben Houston 10 년 전
부모
커밋
54f62cb593
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/loaders/ObjectLoader.js

+ 4 - 0
src/loaders/ObjectLoader.js

@@ -278,6 +278,10 @@ THREE.ObjectLoader.prototype = {
 
 					material.lightMap = getTexture( data.lightMap );
 
+					if ( data.lightMapScale !== undefined ) {
+						material.lightMapScale = data.lightMapScale;
+					}
+
 				}
 
 				if ( data.aoMap !== undefined ) {