Skip to content
0.2.0-dev Download ZIP
29 lines ·1.6 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="OpenXRFoveatedInsetViewport" inherits="SubViewport" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3 <brief_description>
4 This viewport is used for rendering our foveated inset.
5 </brief_description>
6 <description>
7 This viewport is used for rendering our foveated inset. When foveated inset rendering is supported OpenXR will create and configure this viewport correctly and use its output. The viewport will be available after OpenXR reaches the "begun" state. You can access it by calling [code]get_tree().get_root().get_node("OpenXRFoveatedInsetViewport")[/code] at this time.
8 </description>
9 <tutorials>
10 </tutorials>
11 <methods>
12 <method name="get_xr_camera3d" qualifiers="const">
13 <return type="XRCamera3D" />
14 <description>
15 Returns the [XRCamera3D] node used for rendering the foveated inset.
16 </description>
17 </method>
18 <method name="get_xr_origin3d" qualifiers="const">
19 <return type="XROrigin3D" />
20 <description>
21 Returns the [XROrigin3D] node used for tracking the foveated inset. Our built-in logic handles positioning this node. It will copy the position and orientation of the [XROrigin3D] node marked as current.
22 </description>
23 </method>
24 </methods>
25 <members>
26 <member name="process_priority" type="int" setter="set_process_priority" getter="get_process_priority" overrides="Node" default="99999" />
27 <member name="render_target_update_mode" type="int" setter="set_update_mode" getter="get_update_mode" overrides="SubViewport" enum="SubViewport.UpdateMode" default="0" />
28 </members>
29</class>