mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 12:39:53 +00:00
fix horizon color of the sky reflection
This commit is contained in:
parent
afe7c41729
commit
2eca27bba9
@ -368,6 +368,9 @@ void RenderingManager::configureFog(MWWorld::Ptr::CellStore &mCell)
|
||||
color.setAsABGR (mCell.cell->ambi.fog);
|
||||
|
||||
configureFog(mCell.cell->ambi.fogDensity, color);
|
||||
|
||||
if (mWater)
|
||||
mWater->setViewportBackground (Ogre::ColourValue(0.8f, 0.9f, 1.0f));
|
||||
}
|
||||
|
||||
void RenderingManager::configureFog(const float density, const Ogre::ColourValue& colour)
|
||||
@ -382,6 +385,9 @@ void RenderingManager::configureFog(const float density, const Ogre::ColourValue
|
||||
mRendering.getCamera()->setFarClipDistance ( max / density );
|
||||
mRendering.getViewport()->setBackgroundColour (colour);
|
||||
|
||||
if (mWater)
|
||||
mWater->setViewportBackground (colour);
|
||||
|
||||
sh::Factory::getInstance ().setSharedParameter ("viewportBackground",
|
||||
sh::makeProperty<sh::Vector3> (new sh::Vector3(colour.r, colour.g, colour.b)));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user