File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5179,9 +5179,9 @@ void RE_LoadWorldMap( const char *name )
5179
5179
}
5180
5180
}
5181
5181
5182
- /* Used in GLSL code for the GLSL implementation
5183
- without color clamping and normalization . */
5184
- if ( !tr.legacyOverBrightClamping )
5182
+ /* Set GLSL overbright parameters if the legacy clamped overbright isn't used
5183
+ and the lighting mode is not fullbright . */
5184
+ if ( !tr.legacyOverBrightClamping && tr. lightMode != lightMode_t::FULLBRIGHT )
5185
5185
{
5186
5186
tr.mapLightFactor = pow ( 2 , tr.mapOverBrightBits );
5187
5187
tr.mapInverseLightFactor = 1 .0f / tr.mapLightFactor ;
Original file line number Diff line number Diff line change @@ -1128,7 +1128,7 @@ void Render_lightMapping( shaderStage_t *pStage )
1128
1128
// u_InverseLightFactor
1129
1129
/* HACK: use sign to know if there is a light or not, and
1130
1130
then if it will receive overbright multiplication or not. */
1131
- bool cancelOverBright = pStage->cancelOverBright || lightMode == lightMode_t::FULLBRIGHT ;
1131
+ bool cancelOverBright = pStage->cancelOverBright ;
1132
1132
float inverseLightFactor = cancelOverBright ? tr.mapInverseLightFactor : -tr.mapInverseLightFactor ;
1133
1133
gl_lightMappingShader->SetUniform_InverseLightFactor ( inverseLightFactor );
1134
1134
You can’t perform that action at this time.
0 commit comments