fix: spaced armor layering

This commit is contained in:
TrèsAbhi committed 2024-01-16 09:24:12 -06:00
1 parent 578f6f4d0f
commit a11975adec
5 files changed
+11 -8

No files matched your search

@@ -50,9 +50,11 @@ export function ArmorMesh({
return (
<>
<mesh {...props} renderOrder={0}>
<meshBasicMaterial colorWrite={false} />
</mesh>
{!isSpaced && (
<mesh {...props} renderOrder={0}>
<meshBasicMaterial colorWrite={false} />
</mesh>
)}
<mesh {...props} renderOrder={1}>
<ThreeCustomShaderMaterial
@@ -13,7 +13,7 @@ export function ArmorMeshSpacedArmorDepth({
}: ArmorMeshSpacedArmorDepthProps) {
return (
<mesh {...props}>
<meshBasicMaterial />
<meshBasicMaterial colorWrite={false} />
</mesh>
);
}