More node mask fix
This commit is contained in:
@@ -80,7 +80,7 @@ osg::Group* SGPrecipitation::build(void)
|
|||||||
group->addChild(_precipitationEffect.get());
|
group->addChild(_precipitationEffect.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
group->setNodeMask( ~simgear::CASTSHADOW_BIT );
|
group->setNodeMask( ~(simgear::CASTSHADOW_BIT | simgear::MODELLIGHT_BIT) );
|
||||||
|
|
||||||
return group;
|
return group;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ osg::Group* Particles::getCommonRoot()
|
|||||||
commonGeode.get()->setName("common particle system geode");
|
commonGeode.get()->setName("common particle system geode");
|
||||||
commonRoot.get()->addChild(commonGeode.get());
|
commonRoot.get()->addChild(commonGeode.get());
|
||||||
commonRoot.get()->addChild(psu.get());
|
commonRoot.get()->addChild(psu.get());
|
||||||
|
commonRoot->setNodeMask( ~simgear::MODELLIGHT_BIT );
|
||||||
}
|
}
|
||||||
return commonRoot.get();
|
return commonRoot.get();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
#include <simgear/scene/util/SGReaderWriterOptions.hxx>
|
#include <simgear/scene/util/SGReaderWriterOptions.hxx>
|
||||||
#include <simgear/scene/util/StateAttributeFactory.hxx>
|
#include <simgear/scene/util/StateAttributeFactory.hxx>
|
||||||
#include <simgear/scene/util/SGUpdateVisitor.hxx>
|
#include <simgear/scene/util/SGUpdateVisitor.hxx>
|
||||||
|
#include <simgear/scene/util/RenderConstants.hxx>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <osg/BlendFunc>
|
#include <osg/BlendFunc>
|
||||||
@@ -248,6 +249,7 @@ osg::ref_ptr<EffectGeode> SGNewCloud::genCloud() {
|
|||||||
geode->addDrawable(sg);
|
geode->addDrawable(sg);
|
||||||
geode->setName("3D cloud");
|
geode->setName("3D cloud");
|
||||||
geode->setEffect(effect.get());
|
geode->setEffect(effect.get());
|
||||||
|
geode->setNodeMask( ~simgear::MODELLIGHT_BIT );
|
||||||
|
|
||||||
return geode;
|
return geode;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user