Преглед изворни кода

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