mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-05 22:19:42 +00:00
Merge branch 'FixLODIssueWithObjectPaging' into 'master'
LOD issue with object paging See merge request OpenMW/openmw!1007 (cherry picked from commit 5688b7b4d8df93fbf28307d2259c57f8d878eeb8) 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;
|
||||
|
||||
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