Vixen
02b45cc4
csharp
public readonly record struct XrView

One eye's pose and frustum for one frame.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Both change every frame and both come from the runtime. The pose in particular is predicted — it is where the eye will be when the frame is displayed, not where it is now — which is why the display time is passed to the call that produces it and why using a pose from the previous frame is visible as judder.

Fields and properties (3)

  • public XrPose Pose

    Where the eye is, in the session's reference space.

  • public XrFieldOfView Fov

    What it can see.

  • public Matrix4x4 ViewMatrix

    The view matrix for this eye.

Methods (2)

  • public XrView(XrPose Pose, XrFieldOfView Fov)

    One eye's pose and frustum for one frame.

  • public Matrix4x4 Projection(float nearPlane = 0.05, float farPlane = 0)

    The projection matrix for this eye.

Used by (5)

  • IXrSessionVixen.Xr
  • NullXrBackendTestsVixen.Xr.Tests
  • NullXrSessionVixen.Xr
  • OpenXrSessionVixen.Xr.OpenXR
  • XrTrackingSystemVixen.Xr