1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 02:15:33 +00:00

Fix fog color not applying to VR cameras.

This commit is contained in:
Mads Buvik Sandvei 2020-11-28 19:50:47 +01:00
parent fde3ae1403
commit 211de4d3b2

View file

@ -1316,6 +1316,12 @@ namespace MWRender
void RenderingManager::setFogColor(const osg::Vec4f &color)
{
mViewer->getCamera()->setClearColor(color);
for (unsigned int i = 0; i < mViewer->getNumSlaves(); i++)
{
const auto& slave = mViewer->getSlave(i);
if (slave._camera)
slave._camera->setClearColor(color);
}
mStateUpdater->setFogColor(color);
}