Attenuation Property

Short Name: Attenuation

Requires: Full Development System

Class: SceneLight Properties

To Use: Create a property.

Reads or writes the factors of attenuation applied to the light. Attenuation mimics how the intensity of light diminishes as you increase distance from the light.

Attenuation is determined using the following equation:

where:

kc = constant attenuation

kl = linear attenuation

kq = quadratic attenuation

d = the distance between the position of the light and the vertex

Elements

Name Description
Constant Attenuation Indicates the constant factor of attenuation (kc) you apply to the light. The constant factor of attenuation does not change as distance from the light increases.
Linear Attenuation Indicates the linear factor of attenuation (kl) you apply to the light. The linear factor of attenuation drops in a linear manner as distance from the light increases.
Quadratic Attenuation Indicates the quadratic factor of attenuation (kq) you apply to the light. The quadratic factor of attenuation drops by the square of the distance from the light.

Remarks

The following table lists the characteristics of this property.

Data type
PermissionsRead/Write
Available in Run-Time EngineYes
Available in Real-Time Operating SystemNo
Settable when the VI is runningYes
Loads the front panel into memoryNo
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access allowedYes