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
@@ -11,7 +11,7 @@ export const SlabRenderer = ({ node }: { node: SlabNode }) => {
const handlers = useNodeEvents(node, 'slab')
return (
<mesh ref={ref} castShadow receiveShadow {...handlers}>
<mesh ref={ref} castShadow receiveShadow {...handlers} visible={node.visible}>
{/* SlabSystem will replace this geometry in the next frame */}
<boxGeometry args={[0, 0, 0]} />
<meshStandardMaterial color="#e5e5e5" />