Jaa


PointLight.ConstantAttenuation Property

Definition

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

Single

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:

1/(Constant+Linear*(Distance/100)+Quadratic*(Distance/100)(Distance/100))

Applies to

See also