diff --git a/lib/loadMtl.js b/lib/loadMtl.js index dc42545..1e55990 100644 --- a/lib/loadMtl.js +++ b/lib/loadMtl.js @@ -387,6 +387,10 @@ function createDiffuseAlphaTexture(diffuseTexture, alphaTexture, options) { return diffuseTexture; } + if (diffuseTexture.path === alphaTexture.path) { + return diffuseTexture; + } + if (!defined(diffuseTexture.pixels) || !defined(alphaTexture.pixels)) { options.logger('Could not get decoded texture data for ' + diffuseTexture.path + ' or ' + alphaTexture.path + '. The material will be created without an alpha texture.'); return diffuseTexture;