From 5fd41ab91018dfa9f8924f94b7af0ab3aed50940 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 18 May 2021 00:42:45 +0200 Subject: [PATCH] - new renderer: draw the fog layer for skies. Code was active but alpha wasn't set. --- source/core/rendering/scene/hw_sky.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/core/rendering/scene/hw_sky.cpp b/source/core/rendering/scene/hw_sky.cpp index c708a8ba2..bfd65cf2b 100644 --- a/source/core/rendering/scene/hw_sky.cpp +++ b/source/core/rendering/scene/hw_sky.cpp @@ -114,7 +114,9 @@ void HWWall::SkyPlane(HWDrawInfo *di, sectortype *sector, int plane, bool allowr { ptype = PORTALTYPE_SKY; 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; sky = &skyinfo; PutPortal(di, ptype, plane);