SL-12732 Lights not working in some cases
parent
bcf26494b3
commit
e612f55367
|
|
@ -8875,29 +8875,24 @@ void LLPipeline::renderDeferredLighting()
|
|||
}
|
||||
}
|
||||
|
||||
const LLViewerObject *vobj = drawablep->getVObj();
|
||||
if (vobj)
|
||||
{
|
||||
LLVOAvatar *av = vobj->getAvatar();
|
||||
if (av)
|
||||
{
|
||||
if (av->isTooComplex() || av->isInMuteList() || dist_vec(av->getPosition(), LLViewerCamera::getInstance()->getOrigin()) > RenderFarClip)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
const LLViewerObject *root_obj = drawablep->getParent() ? drawablep->getParent()->getVObj() : vobj;
|
||||
if (root_obj && dist_vec(root_obj->getPosition(), LLViewerCamera::getInstance()->getOrigin()) > RenderFarClip)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
const LLViewerObject *vobj = drawablep->getVObj();
|
||||
if (vobj)
|
||||
{
|
||||
LLVOAvatar *av = vobj->getAvatar();
|
||||
if (av && (av->isTooComplex() || av->isInMuteList()))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
const LLVector3 position = drawablep->getPositionAgent();
|
||||
if (dist_vec(position, LLViewerCamera::getInstance()->getOrigin()) > RenderFarClip + volume->getLightRadius())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
LLVector4a center;
|
||||
center.load3(drawablep->getPositionAgent().mV);
|
||||
center.load3(position.mV);
|
||||
const F32* c = center.getF32ptr();
|
||||
F32 s = volume->getLightRadius()*1.5f;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue