Function: transformRgbUvToWorld()
transformRgbUvToWorld(
rgbUv,depthMeshSnapshot,cameraParametersSnapshot):null| {depthInMeters:number;worldNormal:Vector3;worldPosition:Vector3; }
Defined in: src/camera/CameraUtils.ts:152
Raycasts to the depth mesh to find the world position and normal at a given UV coordinate.
Parameters
rgbUv
The UV coordinate to raycast from.
depthMeshSnapshot
The depth mesh to raycast against.
cameraParametersSnapshot
Parameters of the device camera relative to the render camera's world.
worldFromClip
worldFromView
Returns
null | { depthInMeters: number; worldNormal: Vector3; worldPosition: Vector3; }
The world position, normal, and depth at the given UV coordinate.