Просмотр исходного кода

load lightMapScale in ObjectLoader.

Ben Houston 10 лет назад
Родитель
Сommit
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 ) {

粤ICP备19079148号