mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
feat(editor): frustum culling toggle in View menu
This commit is contained in:
parent
e516c3c71f
commit
9a3b253b14
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue