Eliminate objects that the ray cannot hitr

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:

https://codepen.io/boytchev/full/RwYBmaq

image

1 Like