Best Way to Toggle Overlay Layers in React Three Fiber?

I want a corresponding layer to appear over the selected area when clicking any button, like in the image. I was thinking of creating extra models and toggling their visibility on click, but that doesn’t seem very efficient. Is there a better way to achieve this? Thanks for the help! (React Three Fiber)

I think that’s actually the most efficient way to approach it.

1 Like