Function updateXrCameraForView
-
updateXrCameraForView(
cam: XrCamera,
view: XRView,
rtWidth: number,
rtHeight: number,
viewport: NormalizedViewport,
): voidParameters
- cam: XrCamera
The eye camera to update.
- view: XRView
The frame's XRView for this eye.
- rtWidth: number
Render-target width in pixels (the projection layer's texture width).
- rtHeight: number
Render-target height in pixels.
- viewport: NormalizedViewport
Normalized viewport (
subImage.viewport / texture dims) the render task will apply. The injected-projection aspect is computed with the identical float expression the render task uses ((rtWidth / rtHeight) * (viewport.width / viewport.height)) so the cache returns the XR projection verbatim instead of recomputing a symmetric one.
Returns void
- cam: XrCamera
Update an XR camera from an XRView for the current frame.