Update createFaceMaterial to include staticContactPatches in runtime-host.js and .ts, adjust tests in water-material.test.ts

This commit is contained in:
2026-04-06 20:55:10 +02:00
parent 0e86dd3d07
commit 6587f59cda
3 changed files with 17 additions and 16 deletions

View File

@@ -42,8 +42,8 @@ describe("water material helpers", () => {
expect(patches).toHaveLength(1);
expect(patches[0]?.x).toBeCloseTo(0, 5);
expect(patches[0]?.z).toBeCloseTo(0, 5);
expect(patches[0]?.radius).toBeGreaterThan(0.9);
expect(patches[0]?.intensity).toBeGreaterThan(0.5);
expect(patches[0]?.halfWidth).toBeGreaterThan(0.9);
expect(patches[0]?.halfDepth).toBeGreaterThan(0.7);
});
it("ignores bounds that do not overlap the water surface band", () => {