Browse Source

Allow texture bump map on GLTFLoader (#9700) (#9704)

Tiago Cardoso 8 years ago
parent
commit
e33a85ab1a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      examples/js/loaders/GLTFLoader.js

+ 6 - 0
examples/js/loaders/GLTFLoader.js

@@ -203,6 +203,12 @@ THREE.GLTFLoader.prototype = {
 
 			}
 
+			if ( typeof( values.bump ) === 'string' ) {
+
+					_material.bumpMap = library.textures[ values.bump ];
+
+			}
+
 			if ( Array.isArray( values.emission ) ) _material.emissive.fromArray( values.emission );
 			if ( Array.isArray( values.specular ) ) _material.specular.fromArray( values.specular );