summaryrefslogtreecommitdiff
path: root/indra/newview/llvieweroctree.h
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-10-04 11:09:29 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-10-04 11:09:29 -0600
commitb0aa408a665ce61ff374f99e421812482fe53848 (patch)
treed5c29a12e99268377659d3f392a9c7a0e24b33df /indra/newview/llvieweroctree.h
parent9ae025f8ee8688b25678a243ba19f1398de08060 (diff)
fix for SH-4544: Interesting: Shadows from platforms above the camera flicker
Diffstat (limited to 'indra/newview/llvieweroctree.h')
-rw-r--r--indra/newview/llvieweroctree.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llvieweroctree.h b/indra/newview/llvieweroctree.h
index 174af5e22f..90870baaea 100644
--- a/indra/newview/llvieweroctree.h
+++ b/indra/newview/llvieweroctree.h
@@ -233,6 +233,7 @@ public:
void setVisible();
BOOL isVisible() const;
virtual BOOL isRecentlyVisible() const;
+ S32 getVisible(LLViewerCamera::eCameraID id) const {return mVisible[id];}
bool isEmpty() const { return mOctreeNode->isEmpty(); }
U32 getState() {return mState; }
@@ -278,7 +279,7 @@ protected:
LL_ALIGN_16(LLVector4a mExtents[2]); // extents (min, max) of this node and all its children
LL_ALIGN_16(LLVector4a mObjectExtents[2]); // extents (min, max) of objects in this node
-public:
+ S32 mAnyVisible; //latest visible to any camera
S32 mVisible[LLViewerCamera::NUM_CAMERAS];
};//LL_ALIGN_POSTFIX(16);
@@ -330,6 +331,7 @@ public:
//virtual
BOOL isRecentlyVisible() const;
LLViewerOctreePartition* getSpatialPartition()const {return mSpatialPartition;}
+ BOOL isAnyRecentlyVisible() const;
static U32 getNewOcclusionQueryObjectName();
static void releaseOcclusionQueryObjectName(U32 name);