mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-23 08:34:14 -05:00
Added test
This commit is contained in:
parent
b913b0fa5f
commit
b0de7d1bc1
@ -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', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user