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:
parent
e19ccbf5e5
commit
c49c9d6a5d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user