IDirect3DRMLight::SetRange

HRESULT SetRange(D3DVALUE rvRange);

Sets the range of a light. The light affects objects that are within the range only.

·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.

rvRange

New range. The default value is 256.