mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
feat(editor): fog toggle in View menu
This commit is contained in:
parent
d59d69b0c5
commit
ff33babb1d
1 changed files with 5 additions and 0 deletions
|
|
@ -147,6 +147,11 @@ void EditorUI::renderMenuBar(EditorApp& app) {
|
|||
if (ImGui::BeginMenu("View")) {
|
||||
bool wf = app.isWireframe();
|
||||
if (ImGui::MenuItem("Wireframe", "F3", &wf)) app.setWireframe(wf);
|
||||
bool fog = false;
|
||||
auto* tr = app.getTerrainRenderer();
|
||||
if (tr) fog = tr->isFogEnabled();
|
||||
if (ImGui::MenuItem("Fog", nullptr, &fog) && tr) tr->setFogEnabled(fog);
|
||||
ImGui::Separator();
|
||||
if (ImGui::MenuItem("Reset Camera")) app.resetCamera();
|
||||
if (ImGui::MenuItem("Center on Terrain", "Home")) app.centerOnTerrain();
|
||||
ImGui::Separator();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue