Add tests

This commit is contained in:
Sean Lilley 2023-10-03 09:27:22 -04:00
parent 44e76de7be
commit 11263509ee
1 changed files with 16 additions and 0 deletions

View File

@ -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);
});
});
});