Skip to content

OpenXRFoveatedInsetViewport

Inherits: SubViewport < Viewport < Entity < Object

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.

Type Name Default
int run_priority 99999 (overrides Entity)
SubViewport.UpdateMode render_target_update_mode 0 (overrides SubViewport)
Returns Method
XRCamera3D get_xr_camera3d() const
XROrigin3D get_xr_origin3d() const

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.