summaryrefslogtreecommitdiff
path: root/indra/llmath/llcamera.h
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-07-29 10:15:10 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-07-29 10:15:10 -0600
commit4cca9ba279f908f206fa5e32adccf1038f05cc7f (patch)
tree9e50666f9c0c5e6340247ac3f7f627c1deef2b1b /indra/llmath/llcamera.h
parenta9593367984f4411eedf8ee93178e24936ae1acb (diff)
fix for SH-4293: texture console takes a while to settle down on Interesting viewer.
Diffstat (limited to 'indra/llmath/llcamera.h')
-rwxr-xr-xindra/llmath/llcamera.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llmath/llcamera.h b/indra/llmath/llcamera.h
index 898d73ed7e..a7cdcff4ac 100755
--- a/indra/llmath/llcamera.h
+++ b/indra/llmath/llcamera.h
@@ -110,6 +110,7 @@ public:
private:
LL_ALIGN_16(LLPlane mAgentPlanes[7]); //frustum planes in agent space a la gluUnproject (I'm a bastard, I know) - DaveP
LL_ALIGN_16(LLPlane mRegionPlanes[7]); //frustum planes in a local region space, derived from mAgentPlanes
+ LL_ALIGN_16(LLPlane mLastAgentPlanes[7]);
U8 mPlaneMask[8]; // 8 for alignment
F32 mView; // angle between top and bottom frustum planes in radians.
@@ -138,6 +139,7 @@ public:
LLCamera(F32 vertical_fov_rads, F32 aspect_ratio, S32 view_height_in_pixels, F32 near_plane, F32 far_plane);
virtual ~LLCamera();
+ bool isChanged(); //check if mAgentPlanes changed since last frame.
void setUserClipPlane(LLPlane& plane);
void disableUserClipPlane();