rprSkyLightDetachPortal

Removes a portal for a sky light.

rpr_status rprSkyLightDetachPortal(

rpr_scene scene,

rpr_light skylight,

rpr_shape portal);

Parameters

Parameter

Description

scene

The scene to remove a portal from.

skylight

The sky light to detach.

portal

Portal mesh that has been added to light.

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.

Errors

Possible error codes:

  • RPR_ERROR_INVALID_PARAMETER