mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-13 17:39:40 +00:00
Fix fog color not applying to VR cameras.
This commit is contained in:
parent
fde3ae1403
commit
211de4d3b2
1 changed files with 6 additions and 0 deletions
|
@ -1316,6 +1316,12 @@ namespace MWRender
|
||||||
void RenderingManager::setFogColor(const osg::Vec4f &color)
|
void RenderingManager::setFogColor(const osg::Vec4f &color)
|
||||||
{
|
{
|
||||||
mViewer->getCamera()->setClearColor(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);
|
mStateUpdater->setFogColor(color);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue