Stencils & Sorting Geometry

Back in my initial post on the stencil buffer approach I had used a simple heuristic for setting the correct render queue. As I feared it didn’t hold up for very long. There are not only 2 layers that need to be set. Let’s look at the picture below: What’s going on here? The back … Continue reading Stencils & Sorting Geometry