Don't light decal from lightmap tile if it's supposed to be fullbright
This commit is contained in:
parent
f193e2134d
commit
686320c94d
1 changed files with 1 additions and 1 deletions
|
|
@ -422,7 +422,7 @@ void HWWall::ProcessDecal(HWDrawInfo *di, FRenderState& state, DBaseDecal *decal
|
|||
auto verts = state.AllocVertices(4);
|
||||
gldecal->vertindex = verts.second;
|
||||
|
||||
if (lightmaptile >= 0)
|
||||
if (!(decal->RenderFlags & RF_FULLBRIGHT) && lightmaptile >= 0)
|
||||
{
|
||||
LightmapTile* tile = &di->Level->levelMesh->LightmapTiles[lightmaptile];
|
||||
float lightmapindex = (float)tile->AtlasLocation.ArrayIndex;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue