diff options
author | Graham Linden <graham@lindenlab.com> | 2019-05-29 08:12:49 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-05-29 08:12:49 -0700 |
commit | 5d844d2646166fe112bc58362b7dfd4e24fa76ec (patch) | |
tree | 5e2a958f22a20ed25678359007732119f827e7ee /indra/newview/llsettingsvo.cpp | |
parent | 63ecb7325e77bf3ca568788a4557045054a4520b (diff) |
SL-11247
Fix underwater water fog density modifier being used when not underwater.
Diffstat (limited to 'indra/newview/llsettingsvo.cpp')
-rw-r--r-- | indra/newview/llsettingsvo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llsettingsvo.cpp b/indra/newview/llsettingsvo.cpp index 11d7eb1c35..00acb78c45 100644 --- a/indra/newview/llsettingsvo.cpp +++ b/indra/newview/llsettingsvo.cpp @@ -936,7 +936,7 @@ void LLSettingsVOWater::applySpecial(void *ptarget) shader->uniform1f(LLShaderMgr::WATER_FOGKS, waterFogKS); F32 eyedepth = LLViewerCamera::getInstance()->getOrigin().mV[2] - water_height; - bool underwater = LLPipeline::sUnderWaterRender || (eyedepth <= 0.0f); + bool underwater = (eyedepth <= 0.0f); F32 waterFogDensity = env.getCurrentWater()->getModifiedWaterFogDensity(underwater); shader->uniform1f(LLShaderMgr::WATER_FOGDENSITY, waterFogDensity); |