- tweaked the fade ramp a bit.

For Duke Nukem and its direct offspring (Nam, WW2GI and Redneck Rampage) the ramp is not a linear fade from 0 to 1, it needs to be a little darker than that.
Unfortunately the proper factor needed here must be set manually, this cannot really be calculated from the lookup tables.
This commit is contained in:
Christoph Oelckers 2019-10-20 01:14:48 +02:00
parent 9437387b4a
commit 85d377647a
8 changed files with 37 additions and 14 deletions

View file

@ -320,9 +320,14 @@ public:
renderState.NumShades = numshades;
}
void SetShadeDiv(int value)
{
renderState.ShadeDiv = 1.f / value; // There's 3 values here: Blood uses 62 with numShades = 64, Ion Fury uses 30 with NumShades = 32, the other games use 26 with NumShades = 32.
}
void SetVisibility(float visibility, float fviewingrange)
{
renderState.VisFactor = visibility * fviewingrange * (1.f / (64.f * 65536.f));
renderState.VisFactor = visibility* fviewingrange* (1.f / (64.f * 65536.f));
}
void UseColorOnly(bool yes)