diff options
author | Graham Linden <graham@lindenlab.com> | 2013-07-10 09:47:46 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2013-07-10 09:47:46 -0700 |
commit | 326e20b0e5cd8e30d4b52c662a29aa2fc816b40d (patch) | |
tree | f9c766719839a8948ac4ff3463a420525169ee1b /indra/newview/lldrawpoolwater.cpp | |
parent | 167fc262734dfb72e33e57a0b309d0ce6a17ce47 (diff) |
NORSPEC-291 WIP materials underwater w and wo alpha, water fog color broken, no refl, no water dis
Diffstat (limited to 'indra/newview/lldrawpoolwater.cpp')
-rwxr-xr-x | indra/newview/lldrawpoolwater.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/lldrawpoolwater.cpp b/indra/newview/lldrawpoolwater.cpp index 5ddc15df42..5b0b173926 100755 --- a/indra/newview/lldrawpoolwater.cpp +++ b/indra/newview/lldrawpoolwater.cpp @@ -522,13 +522,13 @@ void LLDrawPoolWater::shade() F32 eyedepth = LLViewerCamera::getInstance()->getOrigin().mV[2] - gAgent.getRegion()->getWaterHeight(); - if (deferred_render) + if (eyedepth < 0.f && LLPipeline::sWaterReflections) { - shader = &gDeferredWaterProgram; + shader = &gUnderWaterProgram; } - else if (eyedepth < 0.f && LLPipeline::sWaterReflections) + else if (deferred_render) { - shader = &gUnderWaterProgram; + shader = &gDeferredWaterProgram; } else { |