Skip to content

Commit 7c2c022

Browse files
committed
fixup: cancel overbright on fullbright
1 parent e1b51f0 commit 7c2c022

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/engine/renderer/tr_shade.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,8 @@ static void Render_lightMapping( shaderStage_t *pStage )
10941094
/* HACK: use sign to know if there is a light or not, and
10951095
then if it will receive overbright multiplication or not. */
10961096
bool blendFunc_dstColor = ( pStage->stateBits & GLS_SRCBLEND_BITS ) == GLS_SRCBLEND_DST_COLOR;
1097-
float lightFactor = ( pStage->shaderHasNoLight && !blendFunc_dstColor ) ? tr.mapLightFactor : - tr.mapLightFactor;
1097+
bool noLight = pStage->shaderHasNoLight || lightMode == lightMode_t::FULLBRIGHT;
1098+
float lightFactor = ( noLight && !blendFunc_dstColor ) ? tr.mapLightFactor : - tr.mapLightFactor;
10981099
gl_lightMappingShader->SetUniform_LightFactor( lightFactor );
10991100

11001101
// u_ColorModulate

0 commit comments

Comments
 (0)