mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
Fix sunlight for interiors
This commit is contained in:
parent
58d868d56a
commit
92467ba6bc
@ -563,7 +563,8 @@ void RenderingManager::configureAmbient(MWWorld::CellStore &mCell)
|
|||||||
Ogre::ColourValue colour;
|
Ogre::ColourValue colour;
|
||||||
colour.setAsABGR (mCell.getCell()->mAmbi.mSunlight);
|
colour.setAsABGR (mCell.getCell()->mAmbi.mSunlight);
|
||||||
mSun->setDiffuseColour (colour);
|
mSun->setDiffuseColour (colour);
|
||||||
mSun->setDirection(0,-1,0);
|
mSun->setDirection(1,-1,-1);
|
||||||
|
sunEnable(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Switch through lighting modes.
|
// Switch through lighting modes.
|
||||||
|
@ -329,7 +329,6 @@ void WeatherManager::update(float duration)
|
|||||||
const bool exterior = (world->isCellExterior() || world->isCellQuasiExterior());
|
const bool exterior = (world->isCellExterior() || world->isCellQuasiExterior());
|
||||||
if (!exterior)
|
if (!exterior)
|
||||||
{
|
{
|
||||||
mRendering->sunDisable(false);
|
|
||||||
mRendering->skyDisable();
|
mRendering->skyDisable();
|
||||||
mRendering->getSkyManager()->setLightningStrength(0.f);
|
mRendering->getSkyManager()->setLightningStrength(0.f);
|
||||||
stopSounds(true);
|
stopSounds(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user