1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 16:39:43 +00:00

Apply fix to sky manager

Signed-off-by: Sam Hellawell <sshellawell@gmail.com>
This commit is contained in:
Sam Hellawell 2024-03-07 04:49:48 +00:00
parent bf7819f71d
commit c6ee01b0be

View file

@ -528,7 +528,7 @@ namespace MWRender
if (hasRain())
return mRainRipplesEnabled;
if (mParticleNode && mCurrentParticleEffect == "meshes\\snow.nif")
if (mParticleNode && mCurrentParticleEffect == Settings::models().mWeathersnow.get())
return mSnowRipplesEnabled;
return false;
@ -554,7 +554,7 @@ namespace MWRender
osg::Quat quat;
quat.makeRotate(MWWorld::Weather::defaultDirection(), mStormParticleDirection);
// Morrowind deliberately rotates the blizzard mesh, so so should we.
if (mCurrentParticleEffect == "meshes\\blizzard.nif")
if (mCurrentParticleEffect == Settings::models().mWeatherblizzard.get())
quat.makeRotate(osg::Vec3f(-1, 0, 0), mStormParticleDirection);
mParticleNode->setAttitude(quat);
}
@ -726,7 +726,7 @@ namespace MWRender
const osg::Vec3 defaultWrapRange = osg::Vec3(1024, 1024, 800);
const bool occlusionEnabledForEffect
= !mRainEffect.empty() || mCurrentParticleEffect == "meshes\\snow.nif";
= !mRainEffect.empty() || mCurrentParticleEffect == Settings::models().mWeathersnow.get();
for (unsigned int i = 0; i < findPSVisitor.mFoundNodes.size(); ++i)
{