- fixed: in the availability of gl_fogmode == 0, default to having square fog instead of radial fog in gl_lightmode == 8

This commit is contained in:
Rachael Alexanderson 2017-06-25 09:37:14 -04:00
parent b6e035e796
commit 1562d64580
1 changed files with 3 additions and 3 deletions

View File

@ -114,13 +114,13 @@ float R_DoomLightingEquation(float light)
// z is the depth in view/eye space, positive going into the screen
float z;
if ((uPalLightLevels >> 8) == 1)
if ((uPalLightLevels >> 8) == 2)
{
z = pixelpos.w;
z = distance(pixelpos.xyz, uCameraPos.xyz);
}
else
{
z = distance(pixelpos.xyz, uCameraPos.xyz);
z = pixelpos.w;
}
// The zdoom light equation