fix camera matrix hacks
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include "Global.h"
|
||||
#include "Instance.h"
|
||||
#include "Mesh.h"
|
||||
#include "Tools.h"
|
||||
@@ -75,6 +76,7 @@ namespace Tools
|
||||
auto& shared = Game::GetShared();
|
||||
auto& debug = Game::GetInstance().DebugData;
|
||||
auto& level = Game::GetInstance().GameLevel;
|
||||
auto& player = Game::GetInstance().Player;
|
||||
|
||||
if (rendering.UIVisible == Game::UIVisibilityState::Debug)
|
||||
{
|
||||
@@ -148,6 +150,10 @@ namespace Tools
|
||||
level = {};
|
||||
level.Setup(shared.Game);
|
||||
}
|
||||
|
||||
ImGui::SliderFloat("Mouse Sensitivity", &player.MouseSensitivity, 0.1f, 5.0f);
|
||||
ImGui::SliderFloat("Player Speed", &player.MovementSpeed, 1.0f, 30.0f);
|
||||
|
||||
ImGui::Checkbox("Show ImGui Demo", &debug.ShowImguiDemo);
|
||||
ImGui::Checkbox("Show Stats", &debug.ShowStats);
|
||||
if (debug.ShowImguiDemo) ImGui::ShowDemoWindow(&debug.ShowImguiDemo);
|
||||
|
||||
Reference in New Issue
Block a user