- Don't apply dynamic light to fullbright sprites

This commit is contained in:
Magnus Norddahl 2017-09-23 16:22:22 +02:00
parent 5ffd26abeb
commit d7164ba4e1

View file

@ -372,6 +372,13 @@ FTexture *RenderPolySprite::GetSpriteTexture(AActor *thing, /*out*/ bool &flipX)
void RenderPolySprite::SetDynlight(AActor *thing, PolyDrawArgs &args)
{
bool fullbrightSprite = ((thing->renderflags & RF_FULLBRIGHT) || (thing->flags5 & MF5_BRIGHT));
if (fullbrightSprite)
{
args.SetDynLightColor(0);
return;
}
float lit_red = 0;
float lit_green = 0;
float lit_blue = 0;