Gets or sets the linear component of the distance-dependent light attenuation.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
| C# |
|---|
public float Attenuation1 { get; set; } |
Remarks
Light attenuation depend on the light type and light distance from the vertex.
The point light attenuation is calculated according to the formula Atten = 1/( att0 + att1 * d + att2 * d^2).
| att0 | - constant component of the light attenuation. |
| att1 | - linear component of the light attenuation. |
| att2 | - quadratic component of the light attenuation. |