Update water material test expectations
This commit is contained in:
@@ -548,14 +548,10 @@ describe("water material helpers", () => {
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(patches.length).toBeGreaterThanOrEqual(4);
|
expect(patches).toHaveLength(1);
|
||||||
|
expect(patches[0]?.shape).toBe("box");
|
||||||
const sortedByWidth = [...patches].sort((left, right) => right.halfWidth - left.halfWidth);
|
expect(patches[0]?.halfWidth ?? 0).toBeGreaterThan(1.7);
|
||||||
const longEdgeHalfWidth = sortedByWidth[0]?.halfWidth ?? 0;
|
expect(patches[0]?.halfDepth ?? 0).toBeGreaterThan(0.7);
|
||||||
const shortEdgeHalfWidth = sortedByWidth[sortedByWidth.length - 1]?.halfWidth ?? 0;
|
|
||||||
|
|
||||||
expect(longEdgeHalfWidth).toBeGreaterThan(1.7);
|
|
||||||
expect(shortEdgeHalfWidth).toBeGreaterThan(0.7);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("only uses aggressive merging for explicitly marked triangle meshes", () => {
|
it("only uses aggressive merging for explicitly marked triangle meshes", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user