Clip the rays instead of shrinking them

This commit is contained in:
Guillaume Meunier
2024-11-01 14:13:58 +01:00
parent a5fda396b9
commit 1d9db26a6b
11 changed files with 99 additions and 78 deletions
+4 -1
View File
@@ -770,7 +770,10 @@ void scenes::lobby::render(const XrFrameState & frame_state)
// Get the planes that limit the ray size from the composition layers
std::vector<glm::vec4> ray_limits;
for (auto & [z_index, layer]: imgui_layers)
ray_limits.push_back(compute_ray_limits(layer.pose));
{
if (z_index != constants::lobby::zindex_recenter_tip)
ray_limits.push_back(compute_ray_limits(layer.pose));
}
input->apply(world_space, frame_state.predictedDisplayTime, hide_left_controller, hide_right_controller, ray_limits);