File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1094,7 +1094,8 @@ static void Render_lightMapping( shaderStage_t *pStage )
1094
1094
/* HACK: use sign to know if there is a light or not, and
1095
1095
then if it will receive overbright multiplication or not. */
1096
1096
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 ;
1098
1099
gl_lightMappingShader->SetUniform_LightFactor ( lightFactor );
1099
1100
1100
1101
// u_ColorModulate
You can’t perform that action at this time.
0 commit comments