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:
parent
ba3d66503f
commit
389b830046
@ -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…
x
Reference in New Issue
Block a user