Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

OpenXRFoveatedInsetViewport

Inherits: SubViewport < Viewport < Node < Object

This viewport is used for rendering our foveated inset.

Description

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_tree().get_root().get_node("OpenXRFoveatedInsetViewport") at this time.

Properties

int

process_priority

99999 (overrides Node)

UpdateMode

render_target_update_mode

0 (overrides SubViewport)

Methods

XRCamera3D

get_xr_camera3d() const

XROrigin3D

get_xr_origin3d() const


Method Descriptions

XRCamera3D get_xr_camera3d() const 🔗

Returns the XRCamera3D node used for rendering the foveated inset.


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.


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.