Admin Production ni-theme
Current Publication

OGLATTR_LIGHT_ATTENUATION

LabWindows/CVI

OGLATTR_LIGHT_ATTENUATION

Data Type: integer
Access:read/write
Functions:OGLGetCtrlAttribute
OGLSetCtrlAttribute
Description: Specifies the type of attenuation the light undergoes. Attenuation is the property due to which the intensity of light decreases with increasing distance from the light source.
The particular light for which this attribute is set is chosen using the global attribute OGLATTR_LIGHT_SELECT.
Values:
OGLVAL_NONE (-2)There is no attenuation.
OGLVAL_CONSTANT_ATTN (1)The attenuation is independent of the distance.
OGLVAL_LINEAR_ATTN (2)The attenuation is proportional to the distance.
OGLVAL_QUADRATIC_ATTN (3)The attenuation varies inversely as the square of distance.
LabWindows/CVI
Compatibility:
LabWindows/CVI 5.0 and later