I see. So, here is a demo with raycasting (visibility is checked after camera change). Black spheres are hidden behind the wall, white spheres are visible:
I see. So, here is a demo with raycasting (visibility is checked after camera change). Black spheres are hidden behind the wall, white spheres are visible: