Fix the renderbin for weather particles

Regression from commit 2ee6b41887
pull/796/head
scrawl 9 years ago
parent bd1f3493d7
commit d6f45c3390

@ -1453,6 +1453,8 @@ void SkyManager::setWeather(const WeatherResult& weather)
if (!mParticleNode)
{
mParticleNode = new osg::PositionAttitudeTransform;
mParticleNode->getOrCreateStateSet()->setRenderBinDetails(RenderBin_Default, "RenderBin");
mParticleNode->getOrCreateStateSet()->setNestRenderBins(false);
mRootNode->addChild(mParticleNode);
}
mParticleEffect = mSceneManager->createInstance(mCurrentParticleEffect, mParticleNode);

Loading…
Cancel
Save