mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 17:15:32 +00:00
CS: Make camera FOV change dynamically
This commit is contained in:
parent
7d36dd68dc
commit
cfdc6c788e
1 changed files with 7 additions and 0 deletions
|
@ -374,6 +374,13 @@ void SceneWidget::settingChanged (const CSMPrefs::Setting *setting)
|
|||
{
|
||||
mOrbitCamControl->setOrbitSpeedMultiplier(setting->toDouble());
|
||||
}
|
||||
else if (*setting=="Rendering/camera-fov")
|
||||
{
|
||||
mView->getCamera()->setProjectionMatrixAsPerspective(
|
||||
setting->toDouble(),
|
||||
static_cast<double>(width())/static_cast<double>(height()),
|
||||
1.0f, 10000.0f);
|
||||
}
|
||||
}
|
||||
|
||||
void SceneWidget::selectNavigationMode (const std::string& mode)
|
||||
|
|
Loading…
Reference in a new issue