Merge branch 'fix_debugbatch_colors' into 'master'

Fix black objects in object paging debug view

See merge request OpenMW/openmw!1011
dont-compose-content
psi29a 4 years ago
commit 5287c9627c

@ -364,6 +364,7 @@ namespace MWRender
osg::ref_ptr<osg::StateSet> stateset = node.getStateSet() ? osg::clone(node.getStateSet(), osg::CopyOp::SHALLOW_COPY) : new osg::StateSet;
stateset->setAttribute(m);
stateset->addUniform(new osg::Uniform("colorMode", 0));
stateset->addUniform(new osg::Uniform("emissiveMult", 1.f));
node.setStateSet(stateset);
}
};

Loading…
Cancel
Save