feat: shaders

This commit is contained in:
TrèsAbhi committed 2024-02-27 10:31:49 -06:00
1 parent 3500389628
commit 080af86e1b
9 files changed
+139 -52

No files matched your search

@@ -268,9 +268,9 @@ export const SpacedArmorScene = memo<SpacedArmorSceneProps>(
</group>
{modelNodes.map((node) => {
const isCurrentGun = node.name.startsWith(
`gun_${gunModelDefinition.model.toString().padStart(2, '0')}`,
);
const isCurrentGun =
node.name ===
`gun_${gunModelDefinition.model.toString().padStart(2, '0')}`;
const isVisible = isCurrentGun;
if (!isVisible) return null;