mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-28 01:40:41 +00:00
parent
184d9be6b1
commit
0bdbf0f1cb
1 changed files with 6 additions and 3 deletions
|
@ -137,9 +137,6 @@ int32_t polymost_voxdraw(voxmodel_t* m, tspriteptr_t const tspr, bool rotate)
|
||||||
|
|
||||||
float pc[4];
|
float pc[4];
|
||||||
|
|
||||||
pc[0] = pc[1] = pc[2] = 1.f;
|
|
||||||
|
|
||||||
|
|
||||||
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;
|
||||||
|
@ -152,6 +149,12 @@ int32_t polymost_voxdraw(voxmodel_t* m, tspriteptr_t const tspr, bool rotate)
|
||||||
}
|
}
|
||||||
else pc[3] = 1.f;
|
else pc[3] = 1.f;
|
||||||
GLInterface.SetShade(std::max(0, globalshade), numshades);
|
GLInterface.SetShade(std::max(0, globalshade), numshades);
|
||||||
|
|
||||||
|
pc[0] = (float)globalr * (1.f / 255.f);
|
||||||
|
pc[1] = (float)globalg * (1.f / 255.f);
|
||||||
|
pc[2] = (float)globalb * (1.f / 255.f);
|
||||||
|
GLInterface.SetColor(pc[0], pc[1], pc[2], pc[3]);
|
||||||
|
|
||||||
//------------
|
//------------
|
||||||
|
|
||||||
//transform to Build coords
|
//transform to Build coords
|
||||||
|
|
Loading…
Reference in a new issue