mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-07 03:45:33 +00:00
Merge branch 'FixLODIssueWithObjectPaging' into 'master'
LOD issue with object paging See merge request OpenMW/openmw!1007 (cherry picked from commit5688b7b4d8
)269cd310
Use same world coordinates to compute distances
This commit is contained in:
parent
74aa7cdd48
commit
f53b4cdb34
1 changed files with 1 additions and 2 deletions
|
@ -477,8 +477,7 @@ namespace MWRender
|
|||
constexpr auto copyMask = ~Mask_UpdateVisitor;
|
||||
|
||||
AnalyzeVisitor analyzeVisitor(copyMask);
|
||||
osg::Vec3f center3 = { center.x(), center.y(), 0.f };
|
||||
analyzeVisitor.mCurrentDistance = (viewPoint - center3).length2();
|
||||
analyzeVisitor.mCurrentDistance = (viewPoint - worldCenter).length2();
|
||||
float minSize = mMinSize;
|
||||
if (mMinSizeMergeFactor)
|
||||
minSize *= mMinSizeMergeFactor;
|
||||
|
|
Loading…
Reference in a new issue