Added test

This commit is contained in:
Tom Fili 2019-07-19 13:15:38 -04:00
parent b913b0fa5f
commit b0de7d1bc1

View File

@ -321,6 +321,18 @@ describe('loadMtl', () => {
expect(material.alphaMode).toBe('BLEND');
expect(material.doubleSided).toBe(true);
});
it('uses diffuse texture if diffuse and alpha are the same', () => {
options.metallicRoughness = true;
const material = loadMtl._createMaterial({
diffuseTexture : diffuseTexture,
alphaTexture : diffuseTexture
}, options);
const pbr = material.pbrMetallicRoughness;
expect(pbr.baseColorTexture).toBe(diffuseTexture);
});
});
describe('specularGlossiness', () => {