mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-23 18:41:36 +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
a21da63464
1 changed files with 1 additions and 2 deletions
|
@ -477,8 +477,7 @@ namespace MWRender
|
||||||
constexpr auto copyMask = ~Mask_UpdateVisitor;
|
constexpr auto copyMask = ~Mask_UpdateVisitor;
|
||||||
|
|
||||||
AnalyzeVisitor analyzeVisitor(copyMask);
|
AnalyzeVisitor analyzeVisitor(copyMask);
|
||||||
osg::Vec3f center3 = { center.x(), center.y(), 0.f };
|
analyzeVisitor.mCurrentDistance = (viewPoint - worldCenter).length2();
|
||||||
analyzeVisitor.mCurrentDistance = (viewPoint - center3).length2();
|
|
||||||
float minSize = mMinSize;
|
float minSize = mMinSize;
|
||||||
if (mMinSizeMergeFactor)
|
if (mMinSizeMergeFactor)
|
||||||
minSize *= mMinSizeMergeFactor;
|
minSize *= mMinSizeMergeFactor;
|
||||||
|
|
Loading…
Reference in a new issue