PointLight.LinearAttenuation PointLight.LinearAttenuation PointLight.LinearAttenuation PointLight.LinearAttenuation Property

Definition

The linear coefficient in the light's attenuation equation that determines how the light falls-off with distance.

public : float LinearAttenuation { get; set; }
float LinearAttenuation();

void LinearAttenuation(float linearattenuation);
public float LinearAttenuation { get; set; }
Public ReadWrite Property LinearAttenuation As float

Property Value

float float

The linear coefficient in the light's attenuation equation that determines how the light falls-off with distance. Range is from 0 to infinity.

Examples


_pointLight.LinearAttenuation = .14F; 
        

Remarks

The PointLight.LinearAttenuation property is part of the attenuation equation which also contains PointLight.ConstantAttenuation and PointLight.QuadraticAttenuation:

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

See also