Skip to content
Merged
6 changes: 2 additions & 4 deletions examples/jsm/loaders/3DMLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -944,15 +944,13 @@ function Rhino3dmWorker() {

if ( _pbrMaterial.supported ) {

console.log( 'pbr true' );

for ( let j = 0; j < pbrTextureTypes.length; j ++ ) {

const _texture = _material.getTexture( textureTypes[ j ] );
const _texture = _material.getTexture( pbrTextureTypes[ j ] );
if ( _texture ) {

const image = doc.getEmbeddedFileAsBase64( _texture.fileName );
let textureType = textureTypes[ j ].constructor.name;
let textureType = pbrTextureTypes[ j ].constructor.name;
textureType = textureType.substring( 12, textureType.length );
const texture = { type: textureType, image: 'data:image/png;base64,' + image };
textures.push( texture );
Expand Down