From ab07afad7635d86cda0e331f683742dc3d96c008 Mon Sep 17 00:00:00 2001 From: pogokeen Date: Thu, 22 Mar 2018 07:13:25 +0000 Subject: [PATCH] polymost.cpp: fix shadeFactor not being set properly for non-indexed colour textures git-svn-id: https://svn.eduke32.com/eduke32@6784 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/polymost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index fdb91e7ea..2429b354d 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -3019,7 +3019,7 @@ static void polymost_drawpoly(vec2f_t const * const dpxy, int32_t const n, int32 #endif { polytint_t const & tint = hictinting[globalpal]; - float shadeFactor = pth->flags & PTH_HIGHTILE ? getshadefactor(globalshade) : 1.f; + float shadeFactor = pth->flags & PTH_INDEXED ? 1.f : getshadefactor(globalshade); pc[0] = (1.f-(tint.sr*(1.f/255.f)))*shadeFactor+(tint.sr*(1.f/255.f)); pc[1] = (1.f-(tint.sg*(1.f/255.f)))*shadeFactor+(tint.sg*(1.f/255.f)); pc[2] = (1.f-(tint.sb*(1.f/255.f)))*shadeFactor+(tint.sb*(1.f/255.f));