Use custom clipping to clip controller rays

This commit is contained in:
Guillaume Meunier
2026-02-13 17:15:21 +01:00
parent b80814adb5
commit 17bae9459a
18 changed files with 277 additions and 180 deletions
+10 -1
View File
@@ -145,6 +145,15 @@ public:
}
};
struct window_viewport
{
// Position of this window in the world
xr::spaces space;
glm::vec3 position;
glm::quat orientation;
glm::vec2 size;
};
private:
uint32_t queue_family_index;
@@ -215,7 +224,7 @@ public:
return layers_;
}
std::vector<viewport> windows();
std::vector<window_viewport> windows();
viewport & layer(ImVec2 position);