rprCameraSetLensShift
Shifts the camera (RPR_CAMERA_LENS_SHIFT) in X,Y off the center of the camera for the tilt-shift effect.
rpr_status rprCameraSetLensShift( |
rpr_camera camera, |
rpr_float shiftx, |
|
rpr_float shifty); |
Parameters
Parameter |
Description |
---|---|
camera |
The camera to use. |
shiftx |
Offset in mm to shift camera in the X direction. Negative values shift the camera left. |
shifty |
Offset in mm to shift camera in the Y direction. Negative values shift the camera down. |
Notes
Often used along with rprCameraSetFocalTilt() to achieve the tilt-shift effect.
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.