- Set colormap light info using R_SetColorMapLight and R_SetDSColorMapLight rather than manually calculating it
- Move texture and span management into R_DrawMaskedColumn
This commit is contained in:
parent
88942dcc68
commit
9ac7a07be6
8 changed files with 104 additions and 91 deletions
|
|
@ -548,6 +548,11 @@ namespace swrenderer
|
|||
dc_colormap = base_colormap + (GETPALOOKUP(light, shade) << COLORMAPSHIFT);
|
||||
}
|
||||
|
||||
void R_SetColorMapLight(FDynamicColormap *base_colormap, float light, int shade)
|
||||
{
|
||||
R_SetColorMapLight(base_colormap->Maps, light, shade);
|
||||
}
|
||||
|
||||
void R_SetDSColorMapLight(lighttable_t *base_colormap, float light, int shade)
|
||||
{
|
||||
using namespace drawerargs;
|
||||
|
|
@ -555,6 +560,11 @@ namespace swrenderer
|
|||
ds_colormap = base_colormap + (GETPALOOKUP(light, shade) << COLORMAPSHIFT);
|
||||
}
|
||||
|
||||
void R_SetDSColorMapLight(FDynamicColormap *base_colormap, float light, int shade)
|
||||
{
|
||||
R_SetDSColorMapLight(base_colormap->Maps, light, shade);
|
||||
}
|
||||
|
||||
void R_SetTranslationMap(lighttable_t *translation)
|
||||
{
|
||||
using namespace drawerargs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue