|
|
@ -207,7 +207,7 @@ namespace MWRender
|
|
|
|
|
|
|
|
|
|
|
|
mNearClip = Settings::Manager::getFloat("near clip", "Camera");
|
|
|
|
mNearClip = Settings::Manager::getFloat("near clip", "Camera");
|
|
|
|
mViewDistance = Settings::Manager::getFloat("viewing distance", "Camera");
|
|
|
|
mViewDistance = Settings::Manager::getFloat("viewing distance", "Camera");
|
|
|
|
mFieldOfView = Settings::Manager::getFloat("field of view", "General");
|
|
|
|
mFieldOfView = Settings::Manager::getFloat("field of view", "Camera");
|
|
|
|
updateProjectionMatrix();
|
|
|
|
updateProjectionMatrix();
|
|
|
|
mStateUpdater->setFogEnd(mViewDistance);
|
|
|
|
mStateUpdater->setFogEnd(mViewDistance);
|
|
|
|
|
|
|
|
|
|
|
@ -813,9 +813,9 @@ namespace MWRender
|
|
|
|
{
|
|
|
|
{
|
|
|
|
for (Settings::CategorySettingVector::const_iterator it = changed.begin(); it != changed.end(); ++it)
|
|
|
|
for (Settings::CategorySettingVector::const_iterator it = changed.begin(); it != changed.end(); ++it)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (it->first == "General" && it->second == "field of view")
|
|
|
|
if (it->first == "Camera" && it->second == "field of view")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mFieldOfView = Settings::Manager::getFloat("field of view", "General");
|
|
|
|
mFieldOfView = Settings::Manager::getFloat("field of view", "Camera");
|
|
|
|
updateProjectionMatrix();
|
|
|
|
updateProjectionMatrix();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (it->first == "Camera" && it->second == "viewing distance")
|
|
|
|
else if (it->first == "Camera" && it->second == "viewing distance")
|
|
|
|