Don't light decal from lightmap tile if it's supposed to be fullbright

This commit is contained in:
nashmuhandes 2024-09-18 20:00:31 +08:00
commit 686320c94d

View file

@ -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;