Revert "Hack to avoid redrawing the whole scene another time when only light volume are requested"

This reverts commit e692e7c119.
This commit is contained in:
Frederic Bouvier
2012-05-19 20:41:58 +02:00
parent e692e7c119
commit 65784896e1

View File

@@ -52,8 +52,6 @@ CullVisitor* EffectCullVisitor::clone() const
void EffectCullVisitor::apply(osg::Geode& node)
{
if (node.getNodeMask() != simgear::MODELLIGHT_BIT ) // HACK
node.setNodeMask(node.getNodeMask() & ~simgear::MODELLIGHT_BIT);
if (isCulled(node))
return;
EffectGeode *eg = dynamic_cast<EffectGeode*>(&node);