rprCameraSetFocusDistance
Sets camera focus distance.
AMD Radeon ProRender emulates real-world cameras. Focus distance determines the distance from the camera into the scene which will be in focus.
rpr_status rprCameraSetFocusDistance( |
rpr_camera camera, |
rpr_float fdist); |
Parameters
Parameter |
Description |
---|---|
camera |
The camera to set focus distance for. |
fdist |
Focus distance in meters, default is 1 m. |
Notes
Only used with RPR_CAMERA_MODE_PERSPECTIVE.
Return
Returns RPR_SUCCESS in case of success, or RPR_ERROR code if a problem was encountered.
To learn how to handle errors in AMD Radeon ProRender SDK, see Error Handling.