Skip to content

Commit

Permalink
- Don't apply dynamic light to fullbright sprites
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Sep 23, 2017
1 parent 5ffd26a commit d7164ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/polyrenderer/scene/poly_sprite.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit d7164ba

Please sign in to comment.