Merge branch 'sky_fix' into 'master'

Fix sky blending when sky is toggled

See merge request OpenMW/openmw!2185
check_span
psi29a 2 years ago
commit 4e1b5f9761

@ -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)
{

Loading…
Cancel
Save