diff --git a/resources/DefaultConfig.ini b/resources/DefaultConfig.ini index 535e109b..0d95de03 100644 --- a/resources/DefaultConfig.ini +++ b/resources/DefaultConfig.ini @@ -6,4 +6,5 @@ LoadMap= Fullscreen=false VSYNC=false Width=1280 -Height=720 \ No newline at end of file +Height=720 +FOV=45 \ No newline at end of file diff --git a/src/Game/Game.cpp b/src/Game/Game.cpp index 026857d2..1cb73285 100644 --- a/src/Game/Game.cpp +++ b/src/Game/Game.cpp @@ -26,6 +26,7 @@ Game::Game(int argc, char* argv[]) m_Config->Get("Video.Height", 720) )); m_Renderer->Initialize(); + m_Renderer->Camera()->SetFOV(glm::radians(m_Config->Get("Video.FOV", 90.f))); // Create input manager m_InputManager = new InputManager(m_Renderer->Window(), m_EventBroker);