diff options
author | SmileTheory <SmileTheory@gmail.com> | 2016-02-01 21:37:23 -0800 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2016-04-07 11:54:13 +0100 |
commit | d5ba7bb70ef327c8856165475b58e946c8fbd8ce (patch) | |
tree | 314d906d657f6b8659e5a2fd15f019392f010509 /src/renderergl2/tr_scene.c | |
parent | 004db47aa205b6705ae11c86924eb63549127de6 (diff) |
OpenGL2: Merge several cvars into r_pbr.
r_glossIsRoughness, r_specularIsMetallic, r_framebufferGamma, r_tonemapGamma, r_materialGamma, r_lightGamma
Diffstat (limited to 'src/renderergl2/tr_scene.c')
-rw-r--r-- | src/renderergl2/tr_scene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderergl2/tr_scene.c b/src/renderergl2/tr_scene.c index 7e326a88..2578e7b9 100644 --- a/src/renderergl2/tr_scene.c +++ b/src/renderergl2/tr_scene.c @@ -337,7 +337,7 @@ void RE_BeginScene(const refdef_t *fd) else { #if defined(USE_OVERBRIGHT) - float scale = pow(2, r_mapOverBrightBits->integer - tr.overbrightBits - 8); + float scale = (1 << (r_mapOverBrightBits->integer - tr.overbrightBits)) / 255.0f;; #else float scale = (1 << r_mapOverBrightBits->integer) / 255.0f; #endif |