diff options
author | Graham Linden <graham@lindenlab.com> | 2019-07-29 14:00:53 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-07-29 14:00:53 -0700 |
commit | 2b99edc0992d2bdf3ec065393ab169316a344d13 (patch) | |
tree | cf40dca5e382c89107a5b389ae4afa6816a96635 /indra | |
parent | fd3cf756a0e32bec5a35a7980deeede9b7be7665 (diff) |
SL-11373
More tweaks to CPU-generated sky cubemap color handling.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/lllegacyatmospherics.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/lllegacyatmospherics.cpp b/indra/newview/lllegacyatmospherics.cpp index 37661920a3..1660a1897e 100644 --- a/indra/newview/lllegacyatmospherics.cpp +++ b/indra/newview/lllegacyatmospherics.cpp @@ -242,7 +242,8 @@ LLColor4 LLAtmospherics::calcSkyColorInDir(AtmosphericsVars& vars, const LLVecto calcSkyColorWLVert(Pn, vars); - LLColor3 sky_color = (isShiny || !gPipeline.canUseWindLightShaders()) ? vars.hazeColor : psky->gammaCorrect(vars.hazeColor * 2.0f); + LLColor3 sky_color = isShiny ? vars.hazeColor : + !gPipeline.canUseWindLightShaders() ? vars.hazeColor * 2.0f : psky->gammaCorrect(vars.hazeColor * 2.0f); if (isShiny) { |