mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 04:15:31 +00:00
Enable fog on weather particles
This commit is contained in:
parent
fd1ccd21ff
commit
ad016da31d
1 changed files with 4 additions and 2 deletions
|
@ -1457,8 +1457,10 @@ void SkyManager::setWeather(const WeatherResult& weather)
|
|||
if (!mParticleNode)
|
||||
{
|
||||
mParticleNode = new osg::PositionAttitudeTransform;
|
||||
mParticleNode->getOrCreateStateSet()->setRenderBinDetails(RenderBin_Default, "RenderBin");
|
||||
mParticleNode->getOrCreateStateSet()->setNestRenderBins(false);
|
||||
osg::StateSet* particleStateSet = mParticleNode->getOrCreateStateSet();
|
||||
particleStateSet->setRenderBinDetails(RenderBin_Default, "RenderBin");
|
||||
particleStateSet->setNestRenderBins(false);
|
||||
particleStateSet->setMode(GL_FOG, osg::StateAttribute::ON);
|
||||
mRootNode->addChild(mParticleNode);
|
||||
}
|
||||
mParticleEffect = mSceneManager->createInstance(mCurrentParticleEffect, mParticleNode);
|
||||
|
|
Loading…
Reference in a new issue