Is there a way in OpenGL to render only interior faces while exterior faces still cover/occlude the interior ones? To better understand what I want to accomplish, if I would slice a randomly positioned cylinder, I would see only an ellipse.
I have tried:
glEnable(GL_CULL_FACE);
glEnable(GL_BACK);
But in this case I see the whole interior of the cylinder, while the exterior faces just dissappear without covering anything.
Thanks