mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
- fixed voxel color setting.
This commit is contained in:
parent
851a82c01f
commit
6e3772d50d
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
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)
|
if (!shadowHack)
|
||||||
{
|
{
|
||||||
pc[3] = (tspr->cstat & 2) ? glblend[tspr->blend].def[!!(tspr->cstat & 512)].alpha : 1.0f;
|
pc[3] = (tspr->cstat & 2) ? glblend[tspr->blend].def[!!(tspr->cstat & 512)].alpha : 1.0f;
|
||||||
|
|
Loading…
Reference in a new issue