handle visible/invisible items

This commit is contained in:
wass08
2026-02-02 10:33:36 +09:00
parent f98ead4585
commit 549bfb3f29
10 changed files with 13 additions and 4 deletions
@@ -12,7 +12,7 @@ export const WallRenderer = ({ node }: { node: WallNode }) => {
const handlers = useNodeEvents(node, 'wall')
return (
<mesh ref={ref} castShadow receiveShadow>
<mesh ref={ref} castShadow receiveShadow visible={node.visible}>
{/* WallSystem will replace this geometry in the next frame */}
<boxGeometry args={[0, 0, 0]} />
<meshStandardMaterial color="lightgray" />