From Glenn Waldron, "Attached is a change to ClusterCullingCallback to make it work properly under an RTT camera with an INHERIT_VIEWPOINT reference frame."

This commit is contained in:
Robert Osfield
2011-12-23 17:15:06 +00:00
parent dc55068db1
commit f3ce66aa8b

View File

@@ -172,7 +172,7 @@ bool ClusterCullingCallback::cull(osg::NodeVisitor* nv, osg::Drawable* , osg::St
return false;
}
osg::Vec3 eye_cp = nv->getEyePoint() - _controlPoint;
osg::Vec3 eye_cp = nv->getViewPoint() - _controlPoint;
float radius = eye_cp.length();
if (radius<_radius)