PointLight.ConstantAttenuation Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The constant coefficient in the light's attenuation equation. Controls light intensity.
public:
property float ConstantAttenuation { float get(); void set(float value); };
float ConstantAttenuation();
void ConstantAttenuation(float value);
public float ConstantAttenuation { get; set; }
var single = pointLight.constantAttenuation;
pointLight.constantAttenuation = single;
Public Property ConstantAttenuation As Single
Property Value
float
The constant coefficient in the light's attenuation equation. Controls light intensity. Range is from 0 to infinity.
Examples
_pointLight.ConstantAttenuation =1;
Remarks
The PointLight.ConstantAttenuation property is part of the attenuation equation which also includes PointLight.LinearAttenuation and PointLight.QuadraticAttenuation: