mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 03:12:00 -04:00
Apply brightmaps to translated columns
This commit is contained in:
parent
d419b820d5
commit
fdc7f56f02
@ -661,7 +661,9 @@ void R_DrawTranslatedColumn (void)
|
|||||||
// Thus the "green" ramp of the player 0 sprite
|
// Thus the "green" ramp of the player 0 sprite
|
||||||
// is mapped to gray, red, black/indigo.
|
// is mapped to gray, red, black/indigo.
|
||||||
|
|
||||||
*dest = dc_colormap[0][dc_translation[dc_source[frac>>FRACBITS]]];
|
// [crispy] brightmaps
|
||||||
|
byte src = dc_source[frac>>FRACBITS];
|
||||||
|
*dest = dc_colormap[dc_brightmap[src]][dc_translation[src]];
|
||||||
dest += linesize; // killough 11/98
|
dest += linesize; // killough 11/98
|
||||||
|
|
||||||
frac += fracstep;
|
frac += fracstep;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user