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 | 00bf9a8cce28ab1dbc77ba24428be12391c4a576 (patch) | |
| tree | 918231699cdbd7f261148f23a9717e34302074b9 /src/core/application.cpp | |
| parent | ca9b8beaf69f06cac9b91b66ccd03bb99f09dd22 (diff) | |
[chore]: port camera to vulkan
Diffstat (limited to 'src/core/application.cpp')
| -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 701e088..4d21586 100644 --- a/src/core/application.cpp +++ b/src/core/application.cpp @@ -88,6 +88,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); @@ -105,8 +114,6 @@ namespace Donut ImGui::TextDisabled("Switching rebuilds the cubemap (brief pause)."); } - ImGui::Separator(); - ImGui::TextWrapped("Drag to orbit, scroll to zoom."); ImGui::End(); } |
