summaryrefslogtreecommitdiff
path: root/indra/newview/llvocache.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-10-30 11:37:53 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-10-30 11:37:53 -0600
commit787ff3937d697526284e8d0a812a7353ad916dea (patch)
treeb2580fd3169b91d11910858f5c983359c43d6bdb /indra/newview/llvocache.cpp
parent84bd9f980b3b65d609d1a8611d6ad99587d9aafe (diff)
fix for SH-4584: Interesting: objectprojectionAreaCutOFF hides large objects on adjacent regions.
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rwxr-xr-xindra/newview/llvocache.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp
index 72270eec46..b1c7423b49 100755
--- a/indra/newview/llvocache.cpp
+++ b/indra/newview/llvocache.cpp
@@ -383,20 +383,15 @@ bool LLVOCacheEntry::isRecentlyVisible() const
return vis;
}
-void LLVOCacheEntry::calcSceneContribution(const LLVector3& camera_origin, bool needs_update, U32 last_update)
+void LLVOCacheEntry::calcSceneContribution(const LLVector4a& camera_origin, bool needs_update, U32 last_update)
{
if(!needs_update && getVisible() >= last_update)
{
return; //no need to update
}
- const LLVector4a& center = getPositionGroup();
-
- LLVector4a origin;
- origin.load3(camera_origin.mV);
-
LLVector4a lookAt;
- lookAt.setSub(center, origin);
+ lookAt.setSub(getPositionGroup(), camera_origin);
F32 squared_dist = lookAt.dot3(lookAt).getF32();
if(squared_dist > 0.f)