1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 22:45:34 +00:00

Terrain: re-added "distant land=off" path

Still a hack, but the overhead of building and traversing the quad tree appears negligible.
This commit is contained in:
scrawl 2014-03-06 02:58:46 +01:00
parent 83b6fcf22e
commit d0f98103e4
2 changed files with 4 additions and 1 deletions

View file

@ -75,7 +75,7 @@ add_component_dir (translation
add_definitions(-DTERRAIN_USE_SHADER=1)
add_component_dir (terrain
quadtreenode chunk world storage material buffercache compositemap defs
quadtreenode chunk world storage material buffercache defs
)
add_component_dir (loadinglistener

View file

@ -282,6 +282,9 @@ bool QuadTreeNode::update(const Ogre::Vector3 &cameraPos)
size_t wantedLod = 0;
float cellWorldSize = mTerrain->getStorage()->getCellWorldSize();
if (!mTerrain->getDistantLandEnabled() && dist > cellWorldSize)
return true;
if (dist > cellWorldSize*64)
wantedLod = 6;
else if (dist > cellWorldSize*32)