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:
commit
4e1b5f9761
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue