mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 12:30:32 +00:00
Simplify skyplane light selection
This commit is contained in:
parent
191438b238
commit
a0a40281b3
1 changed files with 1 additions and 7 deletions
|
@ -147,7 +147,6 @@ namespace swrenderer
|
||||||
backpos = int(fmod(backdpos, sky2cyl * 65536.0));
|
backpos = int(fmod(backdpos, sky2cyl * 65536.0));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool fakefixed = false;
|
|
||||||
CameraLight *cameraLight = CameraLight::Instance();
|
CameraLight *cameraLight = CameraLight::Instance();
|
||||||
if (cameraLight->fixedcolormap)
|
if (cameraLight->fixedcolormap)
|
||||||
{
|
{
|
||||||
|
@ -155,15 +154,10 @@ namespace swrenderer
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fakefixed = true;
|
drawerargs.SetLight(&NormalLight, 0, 0);
|
||||||
cameraLight->fixedcolormap = &NormalLight;
|
|
||||||
drawerargs.SetLight(cameraLight->fixedcolormap, 0, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DrawSky(pl);
|
DrawSky(pl);
|
||||||
|
|
||||||
if (fakefixed)
|
|
||||||
cameraLight->fixedcolormap = nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderSkyPlane::DrawSkyColumnStripe(int start_x, int y1, int y2, double scale, double texturemid, double yrepeat)
|
void RenderSkyPlane::DrawSkyColumnStripe(int start_x, int y1, int y2, double scale, double texturemid, double yrepeat)
|
||||||
|
|
Loading…
Reference in a new issue