IDirect3DRMLight::SetConstantAttenuation

HRESULT SetConstantAttenuation(D3DVALUE rvAtt);

Sets the constant attenuation factor for a light.

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

rvAtt

New attenuation factor.

The constant attenuation value affects the light intensity inversely. For example, a constant attenuation value of 2 reduces the intensity of the light by half.