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_image.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_image.c')
-rw-r--r-- | src/renderergl2/tr_image.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/renderergl2/tr_image.c b/src/renderergl2/tr_image.c index 88335b7a..47843fe2 100644 --- a/src/renderergl2/tr_image.c +++ b/src/renderergl2/tr_image.c @@ -2859,6 +2859,11 @@ void R_SetColorMappings( void ) { tr.overbrightBits = 0; } + // don't allow more overbright bits than map overbright bits + if ( tr.overbrightBits > r_mapOverBrightBits->integer ) { + tr.overbrightBits = r_mapOverBrightBits->integer; + } + tr.identityLight = 1.0f / ( 1 << tr.overbrightBits ); tr.identityLightByte = 255 * tr.identityLight; |