Function: transformRgbToRenderCameraClip()
transformRgbToRenderCameraClip(
rgbUv,xrDeviceCamera?):null|Vector2
Defined in: src/camera/CameraUtils.ts:24
Maps a UV coordinate from a RGB space to a destination depth space, applying Brown-Conrady distortion and affine transformations based on aspect ratios. If the simulator camera is used, no transformation is applied.
Parameters
rgbUv
The RGB UV coordinate, e.g., { u: 0.5, v: 0.5 }.
u
number
v
number
xrDeviceCamera?
The device camera instance.
Returns
null | Vector2
The transformed UV coordinate in the render camera clip space, or null if inputs are invalid.