mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Renderer agnostic motion vector rendering/OpenXR changes
This commit is contained in:
parent
a372214a4a
commit
3deb5884d7
25 changed files with 429 additions and 12 deletions
|
@ -1053,6 +1053,30 @@ RID OpenXRInterface::get_depth_texture() {
|
|||
}
|
||||
}
|
||||
|
||||
RID OpenXRInterface::get_velocity_texture() {
|
||||
if (openxr_api) {
|
||||
return openxr_api->get_velocity_texture();
|
||||
} else {
|
||||
return RID();
|
||||
}
|
||||
}
|
||||
|
||||
RID OpenXRInterface::get_velocity_depth_texture() {
|
||||
if (openxr_api) {
|
||||
return openxr_api->get_velocity_depth_texture();
|
||||
} else {
|
||||
return RID();
|
||||
}
|
||||
}
|
||||
|
||||
Size2i OpenXRInterface::get_velocity_target_size() {
|
||||
if (openxr_api) {
|
||||
return openxr_api->get_velocity_target_size();
|
||||
} else {
|
||||
return Size2i();
|
||||
}
|
||||
}
|
||||
|
||||
void OpenXRInterface::handle_hand_tracking(const String &p_path, OpenXRHandTrackingExtension::HandTrackedHands p_hand) {
|
||||
OpenXRHandTrackingExtension *hand_tracking_ext = OpenXRHandTrackingExtension::get_singleton();
|
||||
if (hand_tracking_ext && hand_tracking_ext->get_active()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue