rprShapeSetVisibilityInSpecular

Sets visibility flag for specular refleacted/refracted rays.

This function sets both RPR_SHAPE_VISIBILITY_REFLECTION and RPR_SHAPE_VISIBILITY_REFRACTION flags to the visible argument value.

Calling rprShapeSetVisibilityFlag(xxx,visible); on those 2 flags would lead to the same result.

rpr_status rprShapeSetVisibilityInSpecular(

rpr_shape shape,

rpr_bool visible);

Parameters

Parameter

Description

shape

The shape to set visibility for.

visible

Determines if the shape is visible or not.

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.