mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Support mono devices in WebXR
This commit is contained in:
parent
161c4be9d2
commit
39e022e01c
3 changed files with 12 additions and 3 deletions
|
@ -197,12 +197,11 @@ StringName WebXRInterfaceJS::get_name() const {
|
|||
};
|
||||
|
||||
int WebXRInterfaceJS::get_capabilities() const {
|
||||
return XRInterface::XR_STEREO;
|
||||
return XRInterface::XR_STEREO | XRInterface::XR_MONO;
|
||||
};
|
||||
|
||||
bool WebXRInterfaceJS::is_stereo() {
|
||||
// @todo WebXR can be mono! So, how do we know? Count the views in the frame?
|
||||
return true;
|
||||
return godot_webxr_get_view_count() == 2;
|
||||
};
|
||||
|
||||
bool WebXRInterfaceJS::is_initialized() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue