From 35596dbbc44713c9ab9521f0d044f1d9b0cb0397 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 15 Apr 2018 08:53:38 +0200 Subject: [PATCH] - brighten the textured automap when in the hardware renderer with light modes 0, 1 and 4. --- src/v_2ddrawer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/v_2ddrawer.cpp b/src/v_2ddrawer.cpp index e860d80342..ada1b5878b 100644 --- a/src/v_2ddrawer.cpp +++ b/src/v_2ddrawer.cpp @@ -30,6 +30,7 @@ #include "templates.h" #include "r_utility.h" #include "v_video.h" +#include "g_levellocals.h" EXTERN_CVAR(Float, transsouls) @@ -324,6 +325,11 @@ void F2DDrawer::AddPoly(FTexture *texture, FVector2 *points, int npoints, // is necessary in order to best reproduce Doom's original lighting. double map = (NUMCOLORMAPS * 2.) - ((lightlevel + 12) * (NUMCOLORMAPS / 128.)); double fadelevel = clamp((map - 12) / NUMCOLORMAPS, 0.0, 1.0); + // handle the brighter light modes of the hardware renderer. + if (vid_rendermode == 4 && (level.lightmode < 2 || level.lightmode == 4)) + { + fadelevel = pow(fadelevel, 1.3); + } RenderCommand poly;