Fix the renderbin for weather particles

Regression from commit 2ee6b41887
openmw-37
scrawl 9 years ago
parent bd1f3493d7
commit d6f45c3390

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

Loading…
Cancel
Save