OpenXRFoveatedInsetViewport
Inherits: SubViewport < Viewport < Entity < Object
Description
Section titled “Description”This viewport is used for rendering our foveated inset.
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 get_stage().get_root().get_entity("OpenXRFoveatedInsetViewport") at this time.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| int | run_priority |
99999 (overrides Entity) |
| SubViewport.UpdateMode | render_target_update_mode |
0 (overrides SubViewport) |
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| XRCamera3D | get_xr_camera3d() const |
| XROrigin3D | get_xr_origin3d() const |
Method descriptions
Section titled “Method descriptions”get_xr_camera3d
XRCamera3D get_xr_camera3d() const
Returns the XRCamera3D node used for rendering the foveated inset.
get_xr_origin3d
XROrigin3D get_xr_origin3d() const
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.
