mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-24 04:51:41 +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