Simplify drawer code by creating loop iterators
Fixed blending bug
This commit is contained in:
parent
7a0c801a18
commit
698b5f3db1
11 changed files with 1142 additions and 2676 deletions
|
|
@ -2732,7 +2732,7 @@ void R_DrawParticle_rgba(vissprite_t *vis)
|
|||
|
||||
DrawerCommandQueue::WaitForWorkers();
|
||||
|
||||
uint32_t fg = shade_pal_index_simple(color, calc_light_multiplier(LIGHTSCALE(0, vis->Style.ColormapNum << FRACBITS)));
|
||||
uint32_t fg = LightBgra::shade_pal_index_simple(color, LightBgra::calc_light_multiplier(LIGHTSCALE(0, vis->Style.ColormapNum << FRACBITS)));
|
||||
uint32_t fg_red = (fg >> 16) & 0xff;
|
||||
uint32_t fg_green = (fg >> 8) & 0xff;
|
||||
uint32_t fg_blue = fg & 0xff;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue