OpenGL2: Add option in code for alternate overbright method.
This commit is contained in:
parent
e5aabdaff6
commit
92d4b20129
5 changed files with 35 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue