|
|
|
|
|
by figomore
501 days ago
|
|
If you are not interested in the edges, only painting the sites with different colors, you can use a variation of flood fill starting with the seeds and only stacking the pixel if that color has distance lower than the one already painted that pixel. |
|
Render a 2D orthographic view from 'above' the apexes.
The z-buffer will preserve pixels from the nearest apex.
(Yes, I now there are shadery ways to do this, but the classic 3D cones demo is trivial to understand and implement).