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:
@@ -172,7 +172,7 @@ bool ClusterCullingCallback::cull(osg::NodeVisitor* nv, osg::Drawable* , osg::St
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
osg::Vec3 eye_cp = nv->getEyePoint() - _controlPoint;
|
osg::Vec3 eye_cp = nv->getViewPoint() - _controlPoint;
|
||||||
float radius = eye_cp.length();
|
float radius = eye_cp.length();
|
||||||
|
|
||||||
if (radius<_radius)
|
if (radius<_radius)
|
||||||
|
|||||||
Reference in New Issue
Block a user