rprSkyLightAttachPortal
Sets a portal for a sky light to accelerate convergence of indoor scenes.
rpr_status rprSkyLightAttachPortal( |
rpr_scene scene, |
rpr_light skylight, |
|
rpr_shape portal); |
Parameters
Parameter |
Description |
---|---|
scene |
The scene to set a portal for sky light for. |
skylight |
The sky light to set. |
portal |
Portal mesh, might have multiple components. |
Notes
Similar to environment light portals. Often used for geometry on windows.
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