Produces two shaded images from the point cloud frame, based on point position and surface normal.
HRESULT FUSIONAPI NuiFusionShadePointCloud( const NUI_FUSION_IMAGE_FRAME *pPointCloudFrame, const Matrix4 *pWorldToCameraTransform, const Matrix4 *pWorldToBGRTransform, const NUI_FUSION_IMAGE_FRAME *pShadedSurfaceFrame, const NUI_FUSION_IMAGE_FRAME *pShadedSurfaceNormalsFrame )
[in] The point cloud frame to shade.
[in] The transform used to determine the perspective of the shaded point cloud relative to the world. This affects the application of the worldToRGBTramsform to the point cloud. To achieve consistent results, this should match the world-to-camera transform that was used to create the point cloud frame.
[in, optional] The transform that defines a mapping from position to RGB color space. The X, Y, Z components of the point positions transformed by this matrix are used as the R, G, B values in the rendered frame.
[in, optional] A color image frame that receives the shaded frame which includes lighting based on the surface normal.
[in, optional] A color image frame that receives the shaded frame.
Type: HRESULT FUSIONAPI
S_OK if successful; otherwise, returns a failure code.