diff options
author | Graham Linden <graham@lindenlab.com> | 2018-09-18 21:54:38 +0100 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-09-18 21:54:38 +0100 |
commit | c9b2759469cb090b76a7d602eb876659c305c7f3 (patch) | |
tree | 83567181f2494a6c1614b24ae680a808637dea50 /indra/newview/lldrawpoolwlsky.cpp | |
parent | 030afe0aaa0c956caa5509bca433c056eaf284fd (diff) |
SL-1475
Make stars use higher alpha and brighten reflected color before mixing to get stars to show up in reflections on water.
Diffstat (limited to 'indra/newview/lldrawpoolwlsky.cpp')
-rw-r--r-- | indra/newview/lldrawpoolwlsky.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/lldrawpoolwlsky.cpp b/indra/newview/lldrawpoolwlsky.cpp index 76c0bd5abf..455df837a9 100644 --- a/indra/newview/lldrawpoolwlsky.cpp +++ b/indra/newview/lldrawpoolwlsky.cpp @@ -329,6 +329,11 @@ void LLDrawPoolWLSky::renderStarsDeferred(void) const } gDeferredStarProgram.uniform1f(LLShaderMgr::BLEND_FACTOR, blend_factor); + + if (LLPipeline::sRenderingWaterReflection) + { + star_alpha = 1.0f; + } gDeferredStarProgram.uniform1f(sCustomAlpha, star_alpha); sStarTime = (F32)LLFrameTimer::getElapsedSeconds() * 0.5f; |