mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-01 13:55:01 +01:00
Merge branch 'main' into data-driven
This commit is contained in:
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} />;
|
||||
}
|
||||
Reference in new issue
Block a user