瀏覽代碼

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 ) {