From 6e3772d50dfd4249d424d9dd1dca6aea3c4dd613 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 11 Jan 2020 22:39:53 +0100 Subject: [PATCH] - fixed voxel color setting. --- source/build/src/voxmodel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/build/src/voxmodel.cpp b/source/build/src/voxmodel.cpp index ffdc8c280..e844a7e40 100644 --- a/source/build/src/voxmodel.cpp +++ b/source/build/src/voxmodel.cpp @@ -1082,6 +1082,12 @@ int32_t polymost_voxdraw(voxmodel_t *m, tspriteptr_t const tspr) pc[0] = pc[1] = pc[2] = ((float)numshades - min(max((globalshade * hw_shadescale) + m->shadeoff, 0.f), (float)numshades)) / (float)numshades; + auto& h = hictinting[globalpal]; + if (h.f & (HICTINT_USEONART|HICTINT_ALWAYSUSEART)) + GLInterface.SetTinting(h.f, h.tint, h.tint); + else + GLInterface.SetTinting(-1, 0xffffff, 0xffffff); + if (!shadowHack) { pc[3] = (tspr->cstat & 2) ? glblend[tspr->blend].def[!!(tspr->cstat & 512)].alpha : 1.0f;