SpotLight.QuadraticAttenuation Property

Definition

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

public:
 property float QuadraticAttenuation { float get(); void set(float value); };
float QuadraticAttenuation();

void QuadraticAttenuation(float value);
public float QuadraticAttenuation { get; set; }
var single = spotLight.quadraticAttenuation;
spotLight.quadraticAttenuation = single;
Public Property QuadraticAttenuation As Single

Property Value

Single

float

The quadratic coefficient in the light's attenuation equation. Controls light intensity falloff based on distance squared. Range is from 0 to infinity.

Examples

_spotLight.QuadraticAttenuation = .0007F; 

Remarks

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

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

Applies to

See also