mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-31 13:00:59 +00:00
Fix black wall sprites
This commit is contained in:
parent
2855b1c4ae
commit
3b7ada83bf
1 changed files with 2 additions and 12 deletions
|
@ -164,24 +164,14 @@ namespace swrenderer
|
|||
if (x1 >= x2)
|
||||
return;
|
||||
|
||||
// Prepare lighting
|
||||
FSWColormap *usecolormap = spr->Light.BaseColormap;
|
||||
// Decals that are added to the scene must fade to black.
|
||||
ColormapLight cmlight;
|
||||
if (usecolormap &&
|
||||
spr->RenderStyle == LegacyRenderStyles[STYLE_Add] && usecolormap->Fade != 0)
|
||||
{
|
||||
cmlight.BaseColormap = GetSpecialLights(usecolormap->Color, 0, usecolormap->Desaturate);
|
||||
}
|
||||
|
||||
SpriteDrawerArgs drawerargs;
|
||||
|
||||
bool visible = drawerargs.SetStyle(thread->Viewport.get(), spr->RenderStyle, spr->Alpha, spr->Translation, spr->FillColor, cmlight);
|
||||
bool visible = drawerargs.SetStyle(thread->Viewport.get(), spr->RenderStyle, spr->Alpha, spr->Translation, spr->FillColor, Light);
|
||||
if (!visible)
|
||||
return;
|
||||
|
||||
ProjectedWallLight mlight;
|
||||
mlight.SetLightLeft(thread, wallc);
|
||||
mlight.SetSpriteLight();
|
||||
|
||||
// Draw it
|
||||
auto WallSpriteTile = spr->pic;
|
||||
|
|
Loading…
Reference in a new issue