diff options
author | Dave Parks <davep@lindenlab.com> | 2010-04-21 16:50:15 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-04-21 16:50:15 -0500 |
commit | a1421a90e62abff60298ff07666db9664a3e89d1 (patch) | |
tree | 85c1457fc38177844c6fe6a705827af8bec36793 /indra/newview | |
parent | 8ea8e70f3b26f353151555cc4a0694854e0634e3 (diff) |
Make attached lights not render when disabled in deferred rendering.
(transplanted from 4be49811a590ad3107af3f546475ee6d33928120)
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/pipeline.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 37ab95f0e8..af0aa41ca5 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -6664,6 +6664,15 @@ void LLPipeline::renderDeferredLighting() continue; } + if (volume->isAttachment()) + { + if (!sRenderAttachedLights) + { + continue; + } + } + + LLVector3 center = drawablep->getPositionAgent(); F32* c = center.mV; F32 s = volume->getLightRadius()*1.5f; |