mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +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;
|
||||
thiscm.FadeColor = Colormap.FadeColor;
|
||||
thiscm.CopyFrom3DLight(&(*lightlist)[i]);
|
||||
if (glset.nocoloredspritelighting)
|
||||
{
|
||||
thiscm.Decolorize();
|
||||
}
|
||||
|
||||
gl_SetColor(thisll, rel, thiscm, trans);
|
||||
gl_RenderState.SetSplitPlanes(*topplane, *lowplane);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue