diff options
author | SmileTheory <SmileTheory@gmail.com> | 2015-12-08 21:23:50 -0800 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2016-04-07 11:13:30 +0100 |
commit | e3ac1437c4e4df764cc3279324fab7e3ee032e2a (patch) | |
tree | 08b8ba71552e67d1ba8b16f28598eed9d522c751 /src/renderergl2/tr_shade.c | |
parent | 3372e9eaf5c21e1e44f000e09a94584231ba9550 (diff) |
OpenGL2: Add r_glossIsRoughness.
Diffstat (limited to 'src/renderergl2/tr_shade.c')
-rw-r--r-- | src/renderergl2/tr_shade.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/renderergl2/tr_shade.c b/src/renderergl2/tr_shade.c index e7a73842..f0a6d34b 100644 --- a/src/renderergl2/tr_shade.c +++ b/src/renderergl2/tr_shade.c @@ -450,11 +450,10 @@ static void ComputeShaderColors( shaderStage_t *pStage, vec4_t baseColor, vec4_t || ((blend & GLS_DSTBLEND_BITS) == GLS_DSTBLEND_SRC_COLOR) || ((blend & GLS_DSTBLEND_BITS) == GLS_DSTBLEND_ONE_MINUS_SRC_COLOR); - qboolean isWorldDraw = !(backEnd.refdef.rdflags & RDF_NOWORLDMODEL); - #if defined(USE_OVERBRIGHT) float exactLight = 1.0f; #else + qboolean isWorldDraw = !(backEnd.refdef.rdflags & RDF_NOWORLDMODEL); float exactLight = (isBlend || !isWorldDraw) ? 1.0f : (float)(1 << r_mapOverBrightBits->integer); #endif |