mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-23 08:34:14 -05:00
Add tests
This commit is contained in:
parent
44e76de7be
commit
11263509ee
@ -406,6 +406,14 @@ describe("loadMtl", () => {
|
||||
expect(material.alphaMode).toBe("BLEND");
|
||||
expect(material.doubleSided).toBe(true);
|
||||
});
|
||||
|
||||
it("uses doubleSidedMaterial option", () => {
|
||||
options.metallicRoughness = true;
|
||||
options.doubleSidedMaterial = true;
|
||||
|
||||
const material = loadMtl._createMaterial(undefined, options);
|
||||
expect(material.doubleSided).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
describe("specularGlossiness", () => {
|
||||
@ -530,5 +538,13 @@ describe("loadMtl", () => {
|
||||
expect(material.alphaMode).toBe("BLEND");
|
||||
expect(material.doubleSided).toBe(true);
|
||||
});
|
||||
|
||||
it("uses doubleSidedMaterial option", () => {
|
||||
options.specularGlossiness = true;
|
||||
options.doubleSidedMaterial = true;
|
||||
|
||||
const material = loadMtl._createMaterial(undefined, options);
|
||||
expect(material.doubleSided).toBe(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user