mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 09:15:33 +00:00
Remove no longer needed applyEffect(osgFX::Effect&) in SetFilterSettingsVisitor
No longer needed because terrain texture filtering is now updated manually in TerrainGrid::updateTextureFiltering.
This commit is contained in:
parent
50acdf3e47
commit
e8caafa190
1 changed files with 0 additions and 17 deletions
|
@ -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…
Reference in a new issue