Radeon ProRender

rprShapeSetEnvironmentLight

Converts a shape to an environment light (finite sphere environment light).

rpr_status rprShapeSetEnvironmentLight( rpr_shape shape,
  rpr_bool envLight);

Parameters

Parameter Description
shape The shape to convert to an environment light.
envLight Set 1 if the shape should be treated as an environment 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.