- handle nocoloredspritelighting with 3D light splitter

This commit is contained in:
Christoph Oelckers 2016-02-01 19:10:15 +01:00
parent 7aeeb36560
commit faa08410de

View file

@ -248,6 +248,11 @@ void GLSprite::Draw(int pass)
FColormap thiscm;
thiscm.FadeColor = Colormap.FadeColor;
thiscm.CopyFrom3DLight(&(*lightlist)[i]);
if (glset.nocoloredspritelighting)
{
thiscm.Decolorize();
}
gl_SetColor(thisll, rel, thiscm, trans);
gl_RenderState.SetSplitPlanes(*topplane, *lowplane);
}