mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 03:29:51 +02:00
fix: spaced armor layering
This commit is contained in:
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>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user