rprEnvironmentLightGetEnvironmentLightOverride

Gets environment override on IBL. This function gets overrides for different parts of IBL.

rpr_status rprEnvironmentLightGetEnvironmentLightOverride(

rpr_light in_ibl,

rpr_environment_override overrideType,

rpr_light* out_iblOverride);

Parameters

Parameter

Description

in_ibl

Image based light created with rprContextCreateEnvironmentLight.

overrideType

Override parameter.
The argument can take following values:

  • RPR_ENVIRONMENT_LIGHT_OVERRIDE_REFLECTION

  • RPR_ENVIRONMENT_LIGHT_OVERRIDE_REFRACTION

  • RPR_ENVIRONMENT_LIGHT_OVERRIDE_TRANSPARENCY

  • RPR_ENVIRONMENT_LIGHT_OVERRIDE_BACKGROUND

out_iblOverride

Image based light created with rprContextCreateEnvironmentLight.

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.