Moved CameraCullCallback into ShadowTechnique scope to make it more resusable between various Techniques

This commit is contained in:
Robert Osfield
2007-02-19 12:13:30 +00:00
parent 1964690baa
commit d5c68cfa02
3 changed files with 27 additions and 19 deletions

View File

@@ -17,6 +17,19 @@
using namespace osgShadow;
ShadowTechnique::CameraCullCallback::CameraCullCallback(ShadowTechnique* st):
_shadowTechnique(st)
{
}
void ShadowTechnique::CameraCullCallback::operator()(osg::Node*, osg::NodeVisitor* nv)
{
if (_shadowTechnique->getShadowedScene())
{
_shadowTechnique->getShadowedScene()->osg::Group::traverse(*nv);
}
}
ShadowTechnique::ShadowTechnique():
_shadowedScene(0),
_dirty(true)