Exemple #1
0
        private Texture2D GetFalloffDiagram_V2()
        {
            var data = Voronoi.Create(imageSize.x, imageSize.y, regionAmount, seed);

            return(Voronoi.CreateBorderTexture(data));
        }
Exemple #2
0
        //Each random position is called a 'centroid'
        private Texture2D GetDiagram()
        {
            var data = Voronoi.Create(imageSize.x, imageSize.y, regionAmount, seed);

            return(Voronoi.CreateTexture(data));
        }