Ask for XR_FB_composition_layer_depth_test and XR_KHR_composition_layer_depth

Enable depth testing between GUI and lobby

Use reversed-Z, prefer floating point depth buffer
This commit is contained in:
Guillaume Meunier
2024-11-01 11:40:33 +01:00
parent 16a1a7f0bf
commit 6c10a9ee95
18 changed files with 310 additions and 174 deletions
+2 -2
View File
@@ -18,7 +18,7 @@
#include "hand_model.h"
#include "openxr/openxr.h"
#include "utils/ranges.h"
#include <ranges>
#include <spdlog/spdlog.h>
hand_model::hand_model(const std::filesystem::path & gltf_path, scene_loader & loader, scene_data & scene)
@@ -65,7 +65,7 @@ void hand_model::apply(const std::optional<std::array<xr::hand_tracker::joint, X
{
root_node->visible = true;
for (auto && [joint, loc]: utils::zip(joints, *joints_location))
for (auto && [joint, loc]: std::views::zip(joints, *joints_location))
{
if (!joint)
continue;