|
|
|
@ -1293,10 +1293,7 @@ namespace MWRender
|
|
|
|
|
}
|
|
|
|
|
else if (it->first == "Camera" && it->second == "viewing distance")
|
|
|
|
|
{
|
|
|
|
|
mViewDistance = Settings::Manager::getFloat("viewing distance", "Camera");
|
|
|
|
|
if(!Settings::Manager::getBool("use distant fog", "Fog"))
|
|
|
|
|
mStateUpdater->setFogEnd(mViewDistance);
|
|
|
|
|
updateProjection = true;
|
|
|
|
|
setViewDistance(Settings::Manager::getFloat("viewing distance", "Camera"));
|
|
|
|
|
}
|
|
|
|
|
else if (it->first == "General" && (it->second == "texture filter" ||
|
|
|
|
|
it->second == "texture mipmap" ||
|
|
|
|
@ -1346,9 +1343,17 @@ namespace MWRender
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
float RenderingManager::getNearClipDistance() const
|
|
|
|
|
void RenderingManager::setViewDistance(float distance, bool delay)
|
|
|
|
|
{
|
|
|
|
|
return mNearClip;
|
|
|
|
|
mViewDistance = distance;
|
|
|
|
|
|
|
|
|
|
if (delay)
|
|
|
|
|
{
|
|
|
|
|
mUpdateProjectionMatrix = true;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
updateProjectionMatrix();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
float RenderingManager::getTerrainHeightAt(const osg::Vec3f &pos)
|
|
|
|
|