mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-12 13:21:51 +00:00
- fix negative uLightLevel being applied
This commit is contained in:
parent
a1229be5c6
commit
b9230d4425
1 changed files with 8 additions and 1 deletions
|
@ -300,7 +300,14 @@ void PolyTriangleThreadData::PushStreamData(const StreamData &data, const PolyPu
|
|||
|
||||
FColormap cm;
|
||||
cm.Clear();
|
||||
drawargs.SetLight(GetColorTable(cm), (int)(constants.uLightLevel * 255.0f), mainVertexShader.Viewpoint->mGlobVis * 32.0f, false);
|
||||
if (constants.uLightLevel >= 0.0f)
|
||||
{
|
||||
drawargs.SetLight(GetColorTable(cm), (int)(constants.uLightLevel * 255.0f), mainVertexShader.Viewpoint->mGlobVis * 32.0f, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
drawargs.SetLight(GetColorTable(cm), 255, mainVertexShader.Viewpoint->mGlobVis * 32.0f, true);
|
||||
}
|
||||
|
||||
if (SpecialEffect != EFF_NONE)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue