top | item 11493989

(no title)

ewencp | 10 years ago

It's not particularly efficient, but probably the easiest way to draw Voronoi diagrams on the GPU doesn't require a shader at all. Instead, use an orthographic projection and draw cones for each vertex with the cone's apex at the vertex and its axis oriented into the screen. Then the GPU's z-buffer takes care of choosing which vertex is closes to the given pixel.

discuss

order

lmeyerov|10 years ago

Yes, this is similar to what I and others described! Underneath, similar stuff going on in the HW :)