Skip to content

Commit

Permalink
Add FOV slider
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIndra55 committed Aug 18, 2024
1 parent ced83cd commit c621e98
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/modules/MainMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "game/Player.h"
#include "file/FileSystem.h"
#include "modules/Log.h"
#include "game/Camera.h"

void MainMenu::OnDraw()
{
Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit c621e98

Please sign in to comment.