Skip to content

Commit

Permalink
Expose "Disable portal culling" in the menu
Browse files Browse the repository at this point in the history
Deamon87 committed Jan 7, 2023
1 parent da80eb8 commit 70ef422
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ui/FrontendUI.cpp
Original file line number Diff line number Diff line change
@@ -1097,10 +1097,16 @@ void FrontendUI::showSettingsDialog() {
m_api->getConfig()->drawM2BB = drawM2BB;
}

bool disablePortalCulling = !m_api->getConfig()->usePortalCulling;
if (ImGui::Checkbox("Disable portal culling", &disablePortalCulling)) {
m_api->getConfig()->usePortalCulling = !disablePortalCulling;
}

bool renderPortals = m_api->getConfig()->renderPortals;
if (ImGui::Checkbox("Render portals", &renderPortals)) {
m_api->getConfig()->renderPortals = renderPortals;
}

if (renderPortals) {
bool renderPortalsIgnoreDepth = m_api->getConfig()->renderPortalsIgnoreDepth;
if (ImGui::Checkbox("Ignore depth test for rendering portals", &renderPortalsIgnoreDepth)) {

0 comments on commit 70ef422

Please sign in to comment.