- fix for rendering a brightmapped 2D texture with ColorIsFixed render style.

This must disable the brightmap.
This commit is contained in:
Christoph Oelckers 2018-04-30 21:28:06 +02:00
commit 2b5019ea6e
3 changed files with 20 additions and 0 deletions

View file

@ -212,6 +212,22 @@ WeaponLighting GetWeaponLighting(sector_t *viewsector, const DVector3 &pos, int
return l;
}
void WeaponLighting::SetBright()
{
if (!isbelow)
{
cm.MakeWhite();
}
else
{
// under water areas keep most of their color for fullbright objects
cm.LightColor.r = (3 * cm.LightColor.r + 0xff) / 4;
cm.LightColor.g = (3 * cm.LightColor.g + 0xff) / 4;
cm.LightColor.b = (3 * cm.LightColor.b + 0xff) / 4;
}
lightlevel = 255;
}
//==========================================================================
//
// Render Style