mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-01 13:55:01 +01:00
20 lines
552 B
TypeScript
20 lines
552 B
TypeScript
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} />;
|
|
}
|