OpenGL2: Add option in code for alternate overbright method.

This commit is contained in:
SmileTheory 2015-12-08 05:17:05 -08:00
parent e5aabdaff6
commit 92d4b20129
5 changed files with 35 additions and 7 deletions

View file

@ -349,7 +349,11 @@ void RE_BeginScene(const refdef_t *fd)
}
else
{
#if defined(USE_OVERBRIGHT)
float scale = pow(2, r_mapOverBrightBits->integer - tr.overbrightBits - 8);
#else
float scale = (1 << r_mapOverBrightBits->integer) / 255.0f;
#endif
if (r_forceSun->integer)
{
VectorScale(tr.sunLight, scale * r_forceSunLightScale->value, tr.refdef.sunCol);