- Replaced WALLF_AUTOCONTRAST with WALLF_NOFAKECONTRAST so that the
default setting for the flags is 0. - Added: doom2day's smoothlighting - Added: dontincrement argument to A_CheckForReload. SVN r1179 (trunk)
This commit is contained in:
parent
f64862fe75
commit
76cb09d546
12 changed files with 64 additions and 27 deletions
|
|
@ -1421,6 +1421,8 @@ void R_NewWall (bool needlights)
|
|||
}
|
||||
}
|
||||
|
||||
CVAR(Bool, r_smoothlighting, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||
|
||||
int side_t::GetLightLevel (bool foggy, int baselight) const
|
||||
{
|
||||
if (Flags & WALLF_ABSLIGHTING)
|
||||
|
|
@ -1431,10 +1433,22 @@ int side_t::GetLightLevel (bool foggy, int baselight) const
|
|||
|
||||
if (!foggy) // Don't do relative lighting in foggy sectors
|
||||
{
|
||||
if (Flags & WALLF_AUTOCONTRAST)
|
||||
if (!(Flags & WALLF_NOFAKECONTRAST))
|
||||
{
|
||||
baselight += lines[linenum].dx==0? level.WallVertLight :
|
||||
lines[linenum].dy==0? level.WallHorizLight : 0;
|
||||
if((level.flags & LEVEL_SMOOTHLIGHTING) || (Flags & WALLF_SMOOTHLIGHTING) || r_smoothlighting)
|
||||
{
|
||||
baselight += int // OMG LEE KILLOUGH LIVES! :/
|
||||
(
|
||||
(float(level.WallHorizLight)
|
||||
+abs(atan(float(linedef->dy)/float(linedef->dx))/float(1.57079))
|
||||
*float(level.WallVertLight - level.WallHorizLight))
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
baselight += lines[linenum].dx==0? level.WallVertLight :
|
||||
lines[linenum].dy==0? level.WallHorizLight : 0;
|
||||
}
|
||||
}
|
||||
if (!(Flags & WALLF_ABSLIGHTING))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue