diff options
| author | hachem <im@hachem.wtf> | 2026-08-20 21:18:47 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-20 21:18:47 +0200 |
| commit | 85b63b3b61174a99811f3cba235da4537634edd4 (patch) | |
| tree | 26d440739c8ce95400b8e5dc35957509fbae158f /src/core | |
| parent | 8b988912c2e808cc19faccdc784f4e3a888bd29f (diff) | |
chore: port camera to Vulkan
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/application.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core/application.cpp b/src/core/application.cpp index 05c312b..e486863 100644 --- a/src/core/application.cpp +++ b/src/core/application.cpp @@ -86,6 +86,15 @@ namespace Donut if (m_vulkan_renderer) { + bool free_fly = m_vulkan_renderer->is_free_fly(); + ImGui::Text("Camera"); + if (ImGui::RadioButton("Orbital", !free_fly)) m_vulkan_renderer->set_free_fly(false); + ImGui::SameLine(); + if (ImGui::RadioButton("Free-fly", free_fly)) m_vulkan_renderer->set_free_fly(true); + ImGui::TextDisabled(free_fly ? "WASD move | Q/E down-up | Shift boost | drag to look" + : "Drag to orbit | scroll to zoom"); + ImGui::Separator(); + auto& hdri = HDRIManager::get(); std::string current = m_vulkan_renderer->current_hdri(); std::string preview = hdri.get_hdri_name(current); @@ -103,8 +112,6 @@ namespace Donut ImGui::TextDisabled("Switching rebuilds the cubemap (brief pause)."); } - ImGui::Separator(); - ImGui::TextWrapped("Drag to orbit, scroll to zoom."); ImGui::End(); } |
