Update Healer Man server

This commit is contained in:
phenom committed 2026-09-26 17:51:56 -04:00
1 parent 9c5fb4c614
commit bd073fb00f
113 files changed
+4902 -273

No files matched your search

+21
View File
@@ -153,4 +153,25 @@ describe("static scene instancing", () => {
});
expect(batchesIn(root).map((batch) => batch.count)).toEqual([3, 3]);
});
it("can combine distant opaque repetitions while retaining transparent cells", () => {
const root = new Group();
const geometry = new BoxGeometry();
const opaque = new MeshBasicMaterial();
const transparent = new MeshBasicMaterial({ transparent: true });
for (const x of [1, 2, 3, 385, 386, 387]) {
for (const material of [opaque, transparent]) {
const mesh = new Mesh(geometry, material);
mesh.position.x = x;
root.add(mesh);
}
}
expect(instanceRepeatedStaticMeshes(root, 3, 192, true)).toEqual({
batches: 3,
instances: 12,
removedMeshes: 12,
});
expect(batchesIn(root).map((batch) => batch.count)).toEqual([6, 3, 3]);
});
});