Have taken a few more steps towards support for view dependant transformations
by adding a ComputeTransformCallback to osg::Transform, and have now removed the recently added AutoTransform since it is nolonger required. Have also updated CullVisitor to account for the new ways for tracking transformation matrices in the scene.
This commit is contained in:
@@ -44,7 +44,12 @@ Node::~Node()
|
||||
|
||||
void Node::accept(NodeVisitor& nv)
|
||||
{
|
||||
if (nv.validNodeMask(*this)) nv.apply(*this);
|
||||
if (nv.validNodeMask(*this))
|
||||
{
|
||||
nv.pushOntoNodePath(this);
|
||||
nv.apply(*this);
|
||||
nv.popFromNodePath();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user