- new renderer: draw the fog layer for skies.

Code was active but alpha wasn't set.
This commit is contained in:
Christoph Oelckers 2021-05-18 00:42:45 +02:00
parent 1d7f4c1f2b
commit 5fd41ab910

View file

@ -114,7 +114,9 @@ void HWWall::SkyPlane(HWDrawInfo *di, sectortype *sector, int plane, bool allowr
{ {
ptype = PORTALTYPE_SKY; ptype = PORTALTYPE_SKY;
HWSkyInfo skyinfo; HWSkyInfo skyinfo;
initSkyInfo(di, &skyinfo, sector, plane, fade); PalEntry pe = GlobalMapFog? GlobalMapFog : fade;
pe.a = 230;
initSkyInfo(di, &skyinfo, sector, plane, pe);
ptype = PORTALTYPE_SKY; ptype = PORTALTYPE_SKY;
sky = &skyinfo; sky = &skyinfo;
PutPortal(di, ptype, plane); PutPortal(di, ptype, plane);