News for hackers. Stuff that matters.
Re:Voronoi Diagrams on the GPU by exDM69 on Thursday April 14, 2016 @02:16PM (#11499149)
Yeah, that's pretty similar to the stenil-then-cover technique used in vector graphics.

But what advantage does a two pass stencil technique have over just writing to the color buffer in the first pass?

Re:Voronoi Diagrams on the GPU by mrec on Thursday April 14, 2016 @07:02PM (#11500943)
Oh, I see what you mean. Good question. I suppose it might have been more efficient to avoid multiple colour buffer overdraws (since you're drawing a fullscreen quad for each seed point, albeit a depth-tested one). And you could render the depth+stencil buffer once then reuse it to highlight different regions, e.g. on mouseover.

But you're right, it doesn't sound massively compelling. And the traditional 24depth+8stencil buffer format would limit you to a maximum of 256 regions, which could easily cramp your style.