浏览代码

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

Tiago Cardoso 9 年之前
父节点
当前提交
e33a85ab1a
共有 1 个文件被更改,包括 6 次插入0 次删除
  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 );