Skip to content

Commit

Permalink
Don't light decal from lightmap tile if it's supposed to be fullbright
Browse files Browse the repository at this point in the history
  • Loading branch information
nashmuhandes committed Sep 18, 2024
1 parent f193e21 commit 686320c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rendering/hwrenderer/scene/hw_decal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 686320c

Please sign in to comment.