1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 17:15:34 +00:00

Merge branch 'sky_fix' into 'master'

Fix sky blending when sky is toggled

See merge request OpenMW/openmw!2185
This commit is contained in:
psi29a 2022-07-25 08:52:30 +00:00
commit 4e1b5f9761

View file

@ -571,7 +571,10 @@ namespace MWRender
if (enabled && !mCreated)
create();
mRootNode->setNodeMask(enabled ? Mask_Sky : 0u);
const osg::Node::NodeMask mask = enabled ? Mask_Sky : 0u;
mEarlyRenderBinRoot->setNodeMask(mask);
mRootNode->setNodeMask(mask);
if (!enabled && mParticleNode && mParticleEffect)
{