1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-06-03 15:04:07 +00:00

correct darkening in the raycaster

This commit is contained in:
Zeno Rogue 2025-04-05 23:24:18 +02:00
parent e19ccbf5e5
commit c49c9d6a5d

View File

@ -2500,7 +2500,7 @@ struct raycast_map {
dd.setcolors();
shiftmatrix Vf;
dd.set_land_floor(Vf);
color_t wcol = darkena(dd.wcol, 0, 0xFF);
color_t wcol = darkena(dd.wcol, darken, 0xFF);
int dv = get_darkval(c1, c->c.spin(i));
float p = 1 - dv / 16.;
wallcolor[u] = glhr::acolor(wcol);