- Implemented r_fullbrightignoresectorcolor from QZDoom
This commit is contained in:
parent
4b956a2f2b
commit
c76431414a
8 changed files with 37 additions and 14 deletions
|
|
@ -455,6 +455,8 @@ void R_CopyStackedViewParameters()
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
EXTERN_CVAR(Bool, r_fullbrightignoresectorcolor)
|
||||
|
||||
void R_SetupColormap(player_t *player)
|
||||
{
|
||||
realfixedcolormap = NULL;
|
||||
|
|
@ -481,6 +483,11 @@ void R_SetupColormap(player_t *player)
|
|||
else if (player->fixedlightlevel >= 0 && player->fixedlightlevel < NUMCOLORMAPS)
|
||||
{
|
||||
fixedlightlev = player->fixedlightlevel * 256;
|
||||
// [SP] Emulate GZDoom's light-amp goggles.
|
||||
if (r_fullbrightignoresectorcolor && fixedlightlev >= 0)
|
||||
{
|
||||
fixedcolormap = &FullNormalLight;
|
||||
}
|
||||
}
|
||||
}
|
||||
// [RH] Inverse light for shooting the Sigil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue