mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-30 08:06:51 +00:00
Add groundcover back into view
This commit is contained in:
parent
5f1bf89369
commit
f2bc179b0a
1 changed files with 0 additions and 1 deletions
|
@ -242,7 +242,6 @@ namespace MWRender
|
||||||
osg::ComputeBoundsVisitor cbv;
|
osg::ComputeBoundsVisitor cbv;
|
||||||
group->accept(cbv);
|
group->accept(cbv);
|
||||||
osg::BoundingBox box = cbv.getBoundingBox();
|
osg::BoundingBox box = cbv.getBoundingBox();
|
||||||
box = osg::BoundingBox(box._min+worldCenter, box._max+worldCenter);
|
|
||||||
group->addCullCallback(new ViewDistanceCallback(getViewDistance(), box));
|
group->addCullCallback(new ViewDistanceCallback(getViewDistance(), box));
|
||||||
|
|
||||||
group->setStateSet(mStateset);
|
group->setStateSet(mStateset);
|
||||||
|
|
Loading…
Reference in a new issue