Remove no longer needed applyEffect(osgFX::Effect&) in SetFilterSettingsVisitor

No longer needed because terrain texture filtering is now updated manually in TerrainGrid::updateTextureFiltering.
pull/917/head
scrawl 9 years ago
parent 50acdf3e47
commit e8caafa190

@ -6,7 +6,6 @@
#include <osg/UserDataContainer>
#include <osgParticle/ParticleSystem>
#include <osgFX/Effect>
#include <osgUtil/IncrementalCompileOperation>
@ -139,9 +138,6 @@ namespace Resource
virtual void apply(osg::Node& node)
{
if (osgFX::Effect* effect = dynamic_cast<osgFX::Effect*>(&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; i<effect.getNumTechniques(); ++i)
{
osgFX::Technique* tech = effect.getTechnique(i);
for (int pass=0; pass<tech->getNumPasses(); ++pass)
{
if (tech->getPassStateSet(pass))
applyStateSet(tech->getPassStateSet(pass));
}
}
}
virtual void apply(osg::Geode& geode)
{
osg::StateSet* stateset = geode.getStateSet();

Loading…
Cancel
Save