|
@@ -826,16 +826,14 @@
|
|
|
|
|
|
if ( _pbrMaterial.supported ) {
|
|
if ( _pbrMaterial.supported ) {
|
|
|
|
|
|
- console.log( 'pbr true' );
|
|
|
|
-
|
|
|
|
for ( let j = 0; j < pbrTextureTypes.length; j ++ ) {
|
|
for ( let j = 0; j < pbrTextureTypes.length; j ++ ) {
|
|
|
|
|
|
- const _texture = _material.getTexture( textureTypes[ j ] );
|
|
|
|
|
|
+ const _texture = _material.getTexture( pbrTextureTypes[ j ] );
|
|
|
|
|
|
if ( _texture ) {
|
|
if ( _texture ) {
|
|
|
|
|
|
const image = doc.getEmbeddedFileAsBase64( _texture.fileName );
|
|
const image = doc.getEmbeddedFileAsBase64( _texture.fileName );
|
|
- let textureType = textureTypes[ j ].constructor.name;
|
|
|
|
|
|
+ let textureType = pbrTextureTypes[ j ].constructor.name;
|
|
textureType = textureType.substring( 12, textureType.length );
|
|
textureType = textureType.substring( 12, textureType.length );
|
|
const texture = {
|
|
const texture = {
|
|
type: textureType,
|
|
type: textureType,
|