- move visibility calculation to LightVisibility
This commit is contained in:
parent
9787e32d28
commit
f35aeec6c3
11 changed files with 14 additions and 17 deletions
|
|
@ -300,7 +300,7 @@ namespace swrenderer
|
|||
vis->dynlightcolor = 0;
|
||||
}
|
||||
|
||||
vis->Light.SetColormap(thread->Light->SpriteGlobVis(foggy) / MAX(tz, MINZ), spriteshade, basecolormap, fullbright, invertcolormap, fadeToBlack);
|
||||
vis->Light.SetColormap(thread->Light->SpriteVis(tz, foggy), spriteshade, basecolormap, fullbright, invertcolormap, fadeToBlack);
|
||||
|
||||
thread->SpriteList->Push(vis);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue