- move more of the light calculation code to the drawerargs
This commit is contained in:
parent
a73c065811
commit
efb8e39aa9
26 changed files with 202 additions and 279 deletions
|
|
@ -227,15 +227,7 @@ namespace swrenderer
|
|||
backpos = int(fmod(backdpos, sky2cyl * 65536.0));
|
||||
}
|
||||
|
||||
CameraLight *cameraLight = CameraLight::Instance();
|
||||
if (cameraLight->FixedColormap())
|
||||
{
|
||||
drawerargs.SetLight(cameraLight->FixedColormap(), 0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
drawerargs.SetLight(&NormalLight, 0, 0);
|
||||
}
|
||||
drawerargs.SetStyle();
|
||||
|
||||
Thread->PrepareTexture(frontskytex, DefaultRenderStyle());
|
||||
Thread->PrepareTexture(backskytex, DefaultRenderStyle());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue