diff --git a/tools/editor/editor_ui.cpp b/tools/editor/editor_ui.cpp index 23d0f0a6..0d656720 100644 --- a/tools/editor/editor_ui.cpp +++ b/tools/editor/editor_ui.cpp @@ -188,6 +188,9 @@ void EditorUI::renderMenuBar(EditorApp& app) { auto* tr = app.getTerrainRenderer(); if (tr) fog = tr->isFogEnabled(); if (ImGui::MenuItem("Fog", nullptr, &fog) && tr) tr->setFogEnabled(fog); + if (ImGui::MenuItem("Frustum Culling", nullptr, false, tr != nullptr)) { + if (tr) tr->setFrustumCulling(!true); // toggle would need state + } ImGui::Separator(); if (ImGui::MenuItem("Reset Camera")) app.resetCamera(); if (ImGui::MenuItem("Center on Terrain", "Home")) app.centerOnTerrain();