Black and white mask
I'm learning OpenGL for a new project. I need to create a completely black and white mask created by clipping the view at a specified distance. What's the best way to do that? Where should I focus my reading and training to hit the ground running?
Basically, I'm trying to create multiple masks at set clipping distances, and subtracting the masks from one another. Each mask will represent a thick slice of visible surface between two clipping distances. When stacked, they should all form a complete mask of all visible surfaces. Make sense?