rogueviz::kohonen:: colored rings in 3D

This commit is contained in:
Zeno Rogue 2019-11-09 11:21:13 +01:00
parent 5d5dc62f9e
commit f99b52358e
1 changed files with 8 additions and 0 deletions

View File

@ -276,6 +276,14 @@ void analyze() {
coloring();
}
bool coloring_3d(cell *c, const transmatrix& V) {
if(WDIM == 3 && on)
queuepoly(face_the_player(V), cgi.shRing, darkena(c->landparam_color, 0, 0xFF));
return false;
}
int khd = addHook(hooks_drawcell, 100, coloring_3d);
// traditionally Gaussian blur is used in the Kohonen algoritm
// but it does not seem to make much sense in hyperbolic geometry
// especially wrapped one.