Add functions to CameraLight
This commit is contained in:
parent
a0a40281b3
commit
892350ac2e
25 changed files with 83 additions and 77 deletions
|
|
@ -323,10 +323,10 @@ namespace swrenderer
|
|||
drawerargs.SetTextureFracBits(RenderViewport::Instance()->RenderTarget->IsBgra() ? FRACBITS : fracbits);
|
||||
|
||||
CameraLight *cameraLight = CameraLight::Instance();
|
||||
bool fixed = (cameraLight->fixedcolormap != NULL || cameraLight->fixedlightlev >= 0);
|
||||
bool fixed = (cameraLight->FixedColormap() != NULL || cameraLight->FixedLightLevel() >= 0);
|
||||
|
||||
if (cameraLight->fixedcolormap)
|
||||
drawerargs.SetLight(cameraLight->fixedcolormap, 0, 0);
|
||||
if (cameraLight->FixedColormap())
|
||||
drawerargs.SetLight(cameraLight->FixedColormap(), 0, 0);
|
||||
else
|
||||
drawerargs.SetLight(basecolormap, 0, 0);
|
||||
|
||||
|
|
@ -410,7 +410,7 @@ namespace swrenderer
|
|||
}
|
||||
|
||||
CameraLight *cameraLight = CameraLight::Instance();
|
||||
if (cameraLight->fixedcolormap != NULL || cameraLight->fixedlightlev >= 0 || !(frontsector->e && frontsector->e->XFloor.lightlist.Size()))
|
||||
if (cameraLight->FixedColormap() != NULL || cameraLight->FixedLightLevel() >= 0 || !(frontsector->e && frontsector->e->XFloor.lightlist.Size()))
|
||||
{
|
||||
ProcessNormalWall(uwal, dwal, texturemid, swal, lwal);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue