- add vanilla lightmode that behaves exactly as Doom's original light did
This commit is contained in:
parent
f373752b4f
commit
3af6ae4b37
9 changed files with 92 additions and 27 deletions
|
|
@ -123,8 +123,9 @@ CUSTOM_CVAR(Bool, gl_notexturefill, false, CVAR_NOINITCALL)
|
|||
CUSTOM_CVAR(Int, gl_lightmode, 3, CVAR_ARCHIVE | CVAR_NOINITCALL)
|
||||
{
|
||||
int newself = self;
|
||||
if (newself > 4) newself = 8; // use 8 for software lighting to avoid conflicts with the bit mask
|
||||
if (newself < 0) newself = 0;
|
||||
if (newself > 8) newself = 16; // use 8 and 16 for software lighting to avoid conflicts with the bit mask
|
||||
else if (newself > 4) newself = 8;
|
||||
else if (newself < 0) newself = 0;
|
||||
if (self != newself) self = newself;
|
||||
else if ((level.info == nullptr || level.info->lightmode == -1)) level.lightmode = self;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue