mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-03 12:04:35 +00:00
Apply fix to sky manager
Signed-off-by: Sam Hellawell <sshellawell@gmail.com>
This commit is contained in:
parent
bf7819f71d
commit
c6ee01b0be
1 changed files with 3 additions and 3 deletions
|
|
@ -528,7 +528,7 @@ namespace MWRender
|
||||||
if (hasRain())
|
if (hasRain())
|
||||||
return mRainRipplesEnabled;
|
return mRainRipplesEnabled;
|
||||||
|
|
||||||
if (mParticleNode && mCurrentParticleEffect == "meshes\\snow.nif")
|
if (mParticleNode && mCurrentParticleEffect == Settings::models().mWeathersnow.get())
|
||||||
return mSnowRipplesEnabled;
|
return mSnowRipplesEnabled;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -554,7 +554,7 @@ namespace MWRender
|
||||||
osg::Quat quat;
|
osg::Quat quat;
|
||||||
quat.makeRotate(MWWorld::Weather::defaultDirection(), mStormParticleDirection);
|
quat.makeRotate(MWWorld::Weather::defaultDirection(), mStormParticleDirection);
|
||||||
// Morrowind deliberately rotates the blizzard mesh, so so should we.
|
// 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);
|
quat.makeRotate(osg::Vec3f(-1, 0, 0), mStormParticleDirection);
|
||||||
mParticleNode->setAttitude(quat);
|
mParticleNode->setAttitude(quat);
|
||||||
}
|
}
|
||||||
|
|
@ -726,7 +726,7 @@ namespace MWRender
|
||||||
|
|
||||||
const osg::Vec3 defaultWrapRange = osg::Vec3(1024, 1024, 800);
|
const osg::Vec3 defaultWrapRange = osg::Vec3(1024, 1024, 800);
|
||||||
const bool occlusionEnabledForEffect
|
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)
|
for (unsigned int i = 0; i < findPSVisitor.mFoundNodes.size(); ++i)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue