Diplay coverage on 3d model of a moving camera

Hello everyone, I’m trying to display the coverage of a 3D model according to the camera. It’s like visualizing a LiDar scanning. I have a model camera turning around the object and sometimes the camera takes a shot.

  • I want to keep tracking the shots that were made (stored on texture or another data structure).
  • If the same part of the model appear in different shots I want to know

I thought the solution was to use decals but they don’t solve the problem of occlusion between a part of the model.
The second option was the mesh painting at runtime but it’s difficult to store the result according.
I think there is something to do with texture painting but with the 3d model.

Do you have any ideas to solve this problem?
Thanks!