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
This commit is contained in:
pogokeen 2018-03-22 07:13:25 +00:00
parent a3586ffc20
commit ab07afad76

View file

@ -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));