PointLight.QuadraticAttenuation PointLight.QuadraticAttenuation PointLight.QuadraticAttenuation PointLight.QuadraticAttenuation Property

Definition

The quadratic portion of the attenuation equation that determines how the light falls off with distance.

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

void QuadraticAttenuation(float quadraticattenuation);
public float QuadraticAttenuation { get; set; }
Public ReadWrite Property QuadraticAttenuation As float

Property Value

float float

The quadratic portion of the attenuation equation that determines how the light falls off with distance. Controls light intensity falloff based on distance squared. Range is from 0 to infinity.

Examples


_pointLight.QuadraticAttenuation = .0007F; 
         

Remarks

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

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

See also