mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-01 16:09:49 +00:00
Make the terrain paging system use the view point rather than the eye point to determine which nodes to use so that it can be inherited by RTT cameras.
This commit is contained in:
parent
2d5da1a6fa
commit
b6b1b39804
2 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ ViewData* QuadTreeNode::getView(osg::NodeVisitor &nv)
|
|||
{
|
||||
osgUtil::CullVisitor* cv = static_cast<osgUtil::CullVisitor*>(&nv);
|
||||
ViewData* vd = mViewDataMap->getViewData(cv->getCurrentCamera());
|
||||
vd->setEyePoint(nv.getEyePoint());
|
||||
vd->setEyePoint(nv.getViewPoint());
|
||||
return vd;
|
||||
}
|
||||
else // INTERSECTION_VISITOR
|
||||
|
|
|
@ -363,7 +363,7 @@ void QuadTreeWorld::accept(osg::NodeVisitor &nv)
|
|||
traverseToCell(mRootNode.get(), vd, x,y);
|
||||
}
|
||||
else
|
||||
traverse(mRootNode.get(), vd, cv, mRootNode->getLodCallback(), cv->getEyePoint(), true);
|
||||
traverse(mRootNode.get(), vd, cv, mRootNode->getLodCallback(), cv->getViewPoint(), true);
|
||||
}
|
||||
else
|
||||
mRootNode->traverse(nv);
|
||||
|
|
Loading…
Reference in a new issue