Files
blitzkit/packages/website/src/components/SpacedArmorSubPrimary/index.tsx
T

19 lines
552 B
TypeScript
Raw Normal View History

2026-11-30 23:09:03 -06:00
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} />;
}