feat: implement XR_META_boundary_visibility

This commit is contained in:
Nova
2026-09-29 21:52:44 +02:00
committed by xytovl
parent 760c1d3e4f
commit d2b7cc898f
9 changed files with 103 additions and 2 deletions
+13
View File
@@ -764,6 +764,19 @@ void settings_system(const settings_context & ctx)
});
}
if (ctx.session.boundary_visibility_supported())
{
list.push_back({
.id = "##hide_boundary",
.label = _C("setting name", "Hide boundary in passthrough"),
.description = _("Lets you walk outside the boundary while passthrough is shown. The boundary always comes back in VR."),
.ui = ui_kind::toggle,
.get_bool = [&config] { return config.hide_boundary; },
.set_bool = [&ctx, &config](bool v) { config.hide_boundary = v; config.save(); ctx.session.set_boundary_hidden(v); },
.default_bool = default_config.hide_boundary,
});
}
bool disable_instream_gui = false;
bool disable_instream_gui_popup_open = ImGui::IsPopupOpen("confirm disable in stream gui");
list.push_back({