diff --git a/tools/editor/editor_ui.cpp b/tools/editor/editor_ui.cpp index fb29ff63..98b93443 100644 --- a/tools/editor/editor_ui.cpp +++ b/tools/editor/editor_ui.cpp @@ -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();