- fixed: the current shade was applied twice for voxels - once as a shade and once as a light level.

This commit is contained in:
Christoph Oelckers 2020-01-22 21:34:18 +01:00
parent bbc145cbee
commit 90ce4a893d

View file

@ -1082,7 +1082,7 @@ int32_t polymost_voxdraw(voxmodel_t *m, tspriteptr_t const tspr)
float pc[4]; float pc[4];
pc[0] = pc[1] = pc[2] = ((float)numshades - min(max((globalshade * hw_shadescale) + m->shadeoff, 0.f), (float)numshades)) / (float)numshades; pc[0] = pc[1] = pc[2] = 1.f;
auto& h = hictinting[globalpal]; auto& h = hictinting[globalpal];
if (h.f & (HICTINT_USEONART|HICTINT_ALWAYSUSEART)) if (h.f & (HICTINT_USEONART|HICTINT_ALWAYSUSEART))