diff options
author | Graham Linden <graham@lindenlab.com> | 2019-06-05 15:31:39 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-06-05 15:31:39 -0700 |
commit | e710dd257414ef006c633a93b26b24304aa4e04f (patch) | |
tree | 075bb1891f930b27cfc7676f45c3ccee7fc783e4 /indra/newview/lldrawpoolterrain.cpp | |
parent | 2408e8be5ee66d8860cd7a8275012af1fa5635a6 (diff) |
SL-11368
Force update of water fog color shader uniform to fix low/low+ application of water fog.
Diffstat (limited to 'indra/newview/lldrawpoolterrain.cpp')
-rw-r--r-- | indra/newview/lldrawpoolterrain.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/lldrawpoolterrain.cpp b/indra/newview/lldrawpoolterrain.cpp index 9428dedbd0..33a11631fe 100644 --- a/indra/newview/lldrawpoolterrain.cpp +++ b/indra/newview/lldrawpoolterrain.cpp @@ -49,6 +49,7 @@ #include "llviewershadermgr.h" #include "llrender.h" #include "llenvironment.h" +#include "llsettingsvo.h" const F32 DETAIL_SCALE = 1.f/16.f; int DebugDetailMap = 0; @@ -347,6 +348,10 @@ void LLDrawPoolTerrain::renderFullShader() shader->uniform4fv(LLShaderMgr::OBJECT_PLANE_S, 1, tp0.mV); shader->uniform4fv(LLShaderMgr::OBJECT_PLANE_T, 1, tp1.mV); + LLSettingsWater::ptr_t pwater = LLEnvironment::instance().getCurrentWater(); + + ((LLSettingsVOWater*)pwater.get())->updateShader(shader); + // // detail texture 1 // |