Hello,
I need to count for each vertex from which cameras it is visible.
I have 8 million vertexes and 1000 cameras.
The only possible option is usage of compute shader. It is pretty fast.
Currently I only check if vertex is in camera frustrum. I need to also check if the vertex is visible - if it is not obscured by any mesh part. I thought I could use each camera's depth buffer and check whether the point projected onto the depth buffer is farther away than the depth buffer would indicate.
I can't figure out how to render the depth buffer for each camera and how to pass it (preferably as an array) to the compute shader.