Radeon ProRender

rprSpotLightSetConeShape

Sets the cone shape for specified spot light source.

Spot lights produce a smooth penumbra in the region between their inner and outer circles. The area inside the inner circle receives full power while the area beyond the outer one is fully in shadow. The angle creating the outer circle should be greater than or equal to the angle of the inner circle.

rpr_status rprSpotLightSetConeShape( rpr_light light,
  rpr_float iangle,
  rpr_float oangle);

Parameters

Parameter Description
light The light for which the cone shape will be set
iangle The angle of the spot light’s inner circle, measured in radians. Default value: π/4.
oangle The angle of the spot light’s outer circle, measured in radians. This should be greater than or equal to the value of the inner angle. Default value: π/4.

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.