XR · interface

EyeView

One eye's matrices and where it draws.

Explained in XR.

interface EyeView
import type { EyeView } from '@driftengine/xr';

Properties

NameTypeDescription
eyereadonly'left' | 'right' | 'none'
viewreadonlymat4The inverse of the eye's transform, which is what a camera calls its view.
projectionreadonlymat4
viewportreadonlyXrViewport | nullWhere in the layer's texture this eye belongs, or null when the layer offered none.