rprCameraSetNearPlane

Sets near plane of a camera.

rpr_status rprCameraSetNearPlane(

rpr_camera camera,

rpr_float near);

Parameters

Parameter

Description

camera

The camera to set near plane for.

near

Near plane distance in meters, default is 0.01f.

Notes

Objects closer to the camera than the near plane will not be rendered.

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.