mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2025-02-17 08:03:55 -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.alphaMode).toBe('BLEND');
|
||||||
expect(material.doubleSided).toBe(true);
|
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', () => {
|
describe('specularGlossiness', () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user