diff --git a/components/resource/scenemanager.cpp b/components/resource/scenemanager.cpp index 113406ef68..fef3f49dc0 100644 --- a/components/resource/scenemanager.cpp +++ b/components/resource/scenemanager.cpp @@ -6,7 +6,6 @@ #include #include -#include #include @@ -139,9 +138,6 @@ namespace Resource virtual void apply(osg::Node& node) { - if (osgFX::Effect* effect = dynamic_cast(&node)) - applyEffect(*effect); - osg::StateSet* stateset = node.getStateSet(); if (stateset) applyStateSet(stateset); @@ -149,19 +145,6 @@ namespace Resource traverse(node); } - void applyEffect(osgFX::Effect& effect) - { - for (int i =0; igetNumPasses(); ++pass) - { - if (tech->getPassStateSet(pass)) - applyStateSet(tech->getPassStateSet(pass)); - } - } - } - virtual void apply(osg::Geode& geode) { osg::StateSet* stateset = geode.getStateSet();