예제 #1
0
void CVRCullVisitor::PreCullVisitor::apply(osg::Node& node)
{
    if(node.getNodeMask() & FIRST_CULL_STATUS)
    {
        _setMask = true;
    }
}
예제 #2
0
void ParentMaskVisitor::apply(osg::Node& nodeIn)
{
    if(nodeIn.getNodeMask() == mask)
    {
        out = &nodeIn;
        return; //no need to continue search.
    }
    traverse(nodeIn);
}
예제 #3
0
void CVRCullVisitor::PostCullVisitor::apply(osg::Node& node)
{
    node.setNodeMask(node.getNodeMask() & ~(FIRST_CULL_STATUS));
}