1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

fix black objects with OP batch debug due to unitialized uniform

This commit is contained in:
glassmancody.info 2021-07-11 23:03:55 -07:00
parent ba3d66503f
commit 389b830046

View File

@ -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);
}
};