Make mesh looks "solid" when camera frustum intersect it

I develop some kind of model viewer, that render CAD-models. Model mesh generated as multiple triangular prism. So it looks nice until camera frustum cut the model’s mesh.

Can i somehow fill the camera cut with a solid color? Maybe shaders can help me, maybe there is some another decision?

Maybe this example can be of some help? (Source code in the bottom-right.)

1 Like

Thank you. I’ll check it up, maybe it helps as universal solution