From 686320c94d05592c82cee0bf054e880a8008723b Mon Sep 17 00:00:00 2001 From: nashmuhandes Date: Wed, 18 Sep 2024 20:00:31 +0800 Subject: [PATCH] Don't light decal from lightmap tile if it's supposed to be fullbright --- src/rendering/hwrenderer/scene/hw_decal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/hwrenderer/scene/hw_decal.cpp b/src/rendering/hwrenderer/scene/hw_decal.cpp index 944ce6c8be..7813531b87 100644 --- a/src/rendering/hwrenderer/scene/hw_decal.cpp +++ b/src/rendering/hwrenderer/scene/hw_decal.cpp @@ -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;