Introduced a QueryGeometry::getQueryResult(const osg::Camera*) method as a more informative replacedment for QueryGeometry::getNumPixels().

This commit is contained in:
Robert Osfield 2019-01-26 16:33:23 +00:00 committed by Julien Valentin
parent 605821e655
commit 19cf8b46c3

View File

@ -544,8 +544,7 @@ bool OcclusionQueryNode::getPassed( const Camera* camera, NodeVisitor& nv )
{
// The query hasn't finished yet and the result still
// isn't available, return true to traverse the subgraphs.
_passed = true;
return _passed;
return true;
}
_passed = ( result.numPixels > _visThreshold );