mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-11 06:40:34 +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);
|
color.setAsABGR (mCell.cell->ambi.fog);
|
||||||
|
|
||||||
configureFog(mCell.cell->ambi.fogDensity, color);
|
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)
|
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.getCamera()->setFarClipDistance ( max / density );
|
||||||
mRendering.getViewport()->setBackgroundColour (colour);
|
mRendering.getViewport()->setBackgroundColour (colour);
|
||||||
|
|
||||||
|
if (mWater)
|
||||||
|
mWater->setViewportBackground (colour);
|
||||||
|
|
||||||
sh::Factory::getInstance ().setSharedParameter ("viewportBackground",
|
sh::Factory::getInstance ().setSharedParameter ("viewportBackground",
|
||||||
sh::makeProperty<sh::Vector3> (new sh::Vector3(colour.r, colour.g, colour.b)));
|
sh::makeProperty<sh::Vector3> (new sh::Vector3(colour.r, colour.g, colour.b)));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user