fix: armor highlighting desync

This commit is contained in:
TrèsAbhi committed 2024-01-16 12:34:00 -06:00
1 parent 1911508552
commit 9b3c7451b7
4 files changed
+15 -16

No files matched your search

@@ -29,11 +29,11 @@ export function ArmorMesh({
duel,
...props
}: ArmorMeshProps) {
const camera = useThree((state) => state.camera);
const { shell } = duel.antagonist;
const greenPenetration = useTankopedia(
(state) => state.model.visual.greenPenetration,
);
const camera = useThree((state) => state.camera);
const { shell } = duel.antagonist;
const material = useRef<ShaderMaterial>(null);
const resolution = new Vector2();