Skip to content

Commit e33a85a

Browse files
tiagocardosomrdoob
authored andcommitted
Allow texture bump map on GLTFLoader (mrdoob#9700) (mrdoob#9704)
1 parent 698e43e commit e33a85a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

examples/js/loaders/GLTFLoader.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ THREE.GLTFLoader.prototype = {
203203

204204
}
205205

206+
if ( typeof( values.bump ) === 'string' ) {
207+
208+
_material.bumpMap = library.textures[ values.bump ];
209+
210+
}
211+
206212
if ( Array.isArray( values.emission ) ) _material.emissive.fromArray( values.emission );
207213
if ( Array.isArray( values.specular ) ) _material.specular.fromArray( values.specular );
208214

0 commit comments

Comments
 (0)