mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 19:15:31 +00:00
Drop groundcover materials - they are not used
This commit is contained in:
parent
36fc573375
commit
a09f03c850
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,7 @@ namespace MWRender
|
||||||
osg::ref_ptr<osg::StateSet> ss = node.getStateSet();
|
osg::ref_ptr<osg::StateSet> ss = node.getStateSet();
|
||||||
if (ss != nullptr)
|
if (ss != nullptr)
|
||||||
{
|
{
|
||||||
|
ss->removeAttribute(osg::StateAttribute::MATERIAL);
|
||||||
removeAlpha(ss);
|
removeAlpha(ss);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,6 +102,7 @@ namespace MWRender
|
||||||
ss->setAttribute(new osg::VertexAttribDivisor(6, 1));
|
ss->setAttribute(new osg::VertexAttribDivisor(6, 1));
|
||||||
ss->setAttribute(new osg::VertexAttribDivisor(7, 1));
|
ss->setAttribute(new osg::VertexAttribDivisor(7, 1));
|
||||||
|
|
||||||
|
ss->removeAttribute(osg::StateAttribute::MATERIAL);
|
||||||
removeAlpha(ss);
|
removeAlpha(ss);
|
||||||
|
|
||||||
traverse(geom);
|
traverse(geom);
|
||||||
|
|
Loading…
Reference in a new issue