PointLight.ConstantAttenuation PointLight.ConstantAttenuation PointLight.ConstantAttenuation PointLight.ConstantAttenuation Property

Definition

The constant coefficient in the light's attenuation equation. Controls light intensity.

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

void ConstantAttenuation(float constantattenuation);
public float ConstantAttenuation { get; set; }
Public ReadWrite Property ConstantAttenuation As float

Property Value

float 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))

See also