rprEnvironmentLightSetEnvironmentLightOverride

Sets environment override on IBL. This function sets overrides for different parts of IBL.

rpr_status rprEnvironmentLightSetEnvironmentLightOverride(

rpr_light in_ibl,

rpr_environment_override overrideType,

rpr_light in_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

  • RPR_ENVIRONMENT_LIGHT_OVERRIDE_IRRADIANCE

in_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.