mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
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:
parent
a3586ffc20
commit
ab07afad76
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue