Merge branch 'main' into data-driven

This commit is contained in:
tresabhi committed 2026-11-30 23:09:03 -06:00
1 parent c4bad57271
commit 11332e33cb
5 files changed
+68 -32

No files matched your search

@@ -0,0 +1,19 @@
import { MeshBasicMaterial } from "three";
import type { ArmorPlate } from "../../hooks/useArmorPlates";
import { usePlateItems } from "../../hooks/usePlateItems";
import { Batch } from "../Batch";
interface SpacedArmorSubPrimaryProps {
plates: ArmorPlate[];
}
const omitMaterial = new MeshBasicMaterial({
colorWrite: false,
depthWrite: true,
});
export function SpacedArmorSubPrimary({ plates }: SpacedArmorSubPrimaryProps) {
const items = usePlateItems(plates);
return <Batch items={items} material={omitMaterial} renderOrder={0} />;
}