From c621e9875de0d53218d673881fdc573d284bb463 Mon Sep 17 00:00:00 2001 From: TheIndra55 Date: Sun, 18 Aug 2024 04:17:37 +0200 Subject: [PATCH] Add FOV slider --- src/modules/MainMenu.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/modules/MainMenu.cpp b/src/modules/MainMenu.cpp index 76b23e8..47638f1 100644 --- a/src/modules/MainMenu.cpp +++ b/src/modules/MainMenu.cpp @@ -10,6 +10,7 @@ #include "game/Player.h" #include "file/FileSystem.h" #include "modules/Log.h" +#include "game/Camera.h" void MainMenu::OnDraw() { @@ -115,6 +116,16 @@ void MainMenu::OnDraw() } #endif +#ifdef TR8 + // Camera + if (ImGui::CollapsingHeader("Camera")) + { + auto camera = CAMERA_GetCamera(); + + ImGui::SliderFloat("Field of view", &camera->fov, 0.f, 3.f); + } +#endif + ImGui::End(); }