mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-24 09:42:13 +00:00
- fixed lookup table generation for foggy fades.
ColorMatcher.Pick is not correct here, fortunately we do not need this for fog setup as it never uses the lookup so just do a normal copy of the first (fullbright) table.
This commit is contained in:
parent
8f748fdb2a
commit
c6054595d0
1 changed files with 9 additions and 1 deletions
|
@ -369,7 +369,14 @@ void LookupTableInfo::makeTable(int palnum, const uint8_t *remapbuf, int r, int
|
|||
{
|
||||
// colored fog case
|
||||
|
||||
for (int i = 0; i < numshades; i++)
|
||||
auto src = getTable(0);
|
||||
for (int i = 0; i < 256; i++)
|
||||
{
|
||||
p[i] = src[remapbuf[i]];
|
||||
}
|
||||
|
||||
#if 0 // these are never used.
|
||||
for (int i = 1; i < numshades; i++)
|
||||
{
|
||||
int colfac = (numshades - i);
|
||||
for (int j = 0; j < 256; j++)
|
||||
|
@ -381,6 +388,7 @@ void LookupTableInfo::makeTable(int palnum, const uint8_t *remapbuf, int r, int
|
|||
(pe.b * colfac + b * i) / numshades);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
tables[palnum].FadeColor.r = r;
|
||||
|
|
Loading…
Reference in a new issue