mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-05 22:19:42 +00:00
Merge branch 'fix_debugbatch_colors' into 'master'
Fix black objects in object paging debug view See merge request OpenMW/openmw!1011 (cherry picked from commit 5287c9627c92b77c25581dbb9ac9d0b0dc4c9698) 389b8300 fix black objects with OP batch debug due to unitialized uniform
This commit is contained in:
parent
a21da63464
commit
8530bc5cf5
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue