Sets the range of a spot light. The light affects objects that are within the range only.
HRESULT SetRange(
D3DVALUE rvRange
);
Parameters
rvRange
New range. The default value is 256.
Return Values
Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.
Remarks
The range property is for spotlights only. This method is also used to add a range key to a Direct3DRMLightInterpolator object.
See Also