OpenGL2: Add option in code for alternate overbright method.
This commit is contained in:
1 parent
e5aabdaff6
commit
92d4b20129
5 files changed
+35
-7
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user