Ver código fonte

load lightMapScale in ObjectLoader.

Ben Houston 10 anos atrás
pai
commit
54f62cb593
1 arquivos alterados com 4 adições e 0 exclusões
  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 );
 					material.lightMap = getTexture( data.lightMap );
 
 
+					if ( data.lightMapScale !== undefined ) {
+						material.lightMapScale = data.lightMapScale;
+					}
+
 				}
 				}
 
 
 				if ( data.aoMap !== undefined ) {
 				if ( data.aoMap !== undefined ) {