- 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; 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);
} }