- refactored FDynamicColormap out of sector_t.
This has increasingly become an obstacle with the hardware renderer, so now the values are being stored as plain data in the sector, with the software renderer getting the actual color tables when needed. While this is a bit slower than storing the pregenerated colormap, in realistic situations the added time is mostly negligible in the microseconds range.
This commit is contained in:
parent
a2fc2fb707
commit
9a24771a7d
55 changed files with 386 additions and 326 deletions
|
|
@ -3885,7 +3885,9 @@ void FParser::SF_SetColor(void)
|
|||
while ((i = itr.Next()) >= 0)
|
||||
{
|
||||
if (!DFraggleThinker::ActiveThinker->setcolormaterial)
|
||||
level.sectors[i].ColorMap = GetSpecialLights(color, level.sectors[i].ColorMap->Fade, 0);
|
||||
{
|
||||
level.sectors[i].SetColor(color.r, color.g, color.b, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
// little hack for testing the D64 color stuff.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue