mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-07 16:31:07 +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)
|
if (x1 >= x2)
|
||||||
return;
|
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;
|
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)
|
if (!visible)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ProjectedWallLight mlight;
|
ProjectedWallLight mlight;
|
||||||
mlight.SetLightLeft(thread, wallc);
|
mlight.SetSpriteLight();
|
||||||
|
|
||||||
// Draw it
|
// Draw it
|
||||||
auto WallSpriteTile = spr->pic;
|
auto WallSpriteTile = spr->pic;
|
||||||
|
|
Loading…
Reference in a new issue