From 90ce4a893d4ef64325475870348ae72a8e569860 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 22 Jan 2020 21:34:18 +0100 Subject: [PATCH] - fixed: the current shade was applied twice for voxels - once as a shade and once as a light level. --- source/build/src/voxmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/src/voxmodel.cpp b/source/build/src/voxmodel.cpp index 7fd28ed4d..33483ca9b 100644 --- a/source/build/src/voxmodel.cpp +++ b/source/build/src/voxmodel.cpp @@ -1082,7 +1082,7 @@ int32_t polymost_voxdraw(voxmodel_t *m, tspriteptr_t const tspr) 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]; if (h.f & (HICTINT_USEONART|HICTINT_ALWAYSUSEART))