Add FB hand mesh support with GLB fallback (#934)
Use the XR_FB_HAND_TRACKING_MESH extension to render hand models when supported, and fall back to the bundled GLB hand models otherwise. This fixes incorrect hand model rendering on PFDM MR device, Have tested with PFDM MR V4.5.0 version.
This commit is contained in:
@@ -31,6 +31,11 @@ void add_hand(scene & scene,
|
||||
const std::filesystem::path & gltf_path,
|
||||
uint32_t layer_mask);
|
||||
|
||||
void add_hand(scene & scene,
|
||||
XrHandEXT hand,
|
||||
const xr::hand_tracker::mesh_data & mesh,
|
||||
uint32_t layer_mask);
|
||||
|
||||
void apply(entt::registry & scene,
|
||||
const std::optional<std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT>> & left_hand,
|
||||
const std::optional<std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT>> & right_hand);
|
||||
|
||||
Reference in New Issue
Block a user