From 9a3b253b14d01b2cfdc508d1bc2502eb609890a6 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 5 May 2026 07:25:32 -0700 Subject: [PATCH] feat(editor): frustum culling toggle in View menu --- tools/editor/editor_ui.cpp | 3 +++ 1 file changed, 3 insertions(+) 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();