mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:53:52 +00:00
Fix the renderbin for weather particles
Regression from commit 2ee6b41887
This commit is contained in:
parent
bd1f3493d7
commit
d6f45c3390
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue