mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-03 01:12:23 +00:00
- handle nocoloredspritelighting with 3D light splitter
This commit is contained in:
parent
7aeeb36560
commit
faa08410de
1 changed files with 5 additions and 0 deletions
|
@ -248,6 +248,11 @@ void GLSprite::Draw(int pass)
|
||||||
FColormap thiscm;
|
FColormap thiscm;
|
||||||
thiscm.FadeColor = Colormap.FadeColor;
|
thiscm.FadeColor = Colormap.FadeColor;
|
||||||
thiscm.CopyFrom3DLight(&(*lightlist)[i]);
|
thiscm.CopyFrom3DLight(&(*lightlist)[i]);
|
||||||
|
if (glset.nocoloredspritelighting)
|
||||||
|
{
|
||||||
|
thiscm.Decolorize();
|
||||||
|
}
|
||||||
|
|
||||||
gl_SetColor(thisll, rel, thiscm, trans);
|
gl_SetColor(thisll, rel, thiscm, trans);
|
||||||
gl_RenderState.SetSplitPlanes(*topplane, *lowplane);
|
gl_RenderState.SetSplitPlanes(*topplane, *lowplane);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue