Attenuation Property

3D Graph Control

Attenuation Property

Syntax

CWLight.Attenuation

Data Type

CWLightAttenuationStyles

You can use the following constants with this data type:

  • cwLightNone–Specifies that the light does not dim.
  • cwLinear–Specifies that the light dims linearly.
  • cwQuadratic–Specifies that the light dims quadratically.

Purpose

Specifies the attenuation style of the light source.

Remarks

Attenuation controls how the light dims as the distance from the light source changes. For example, setting Attenuation to cwQuadratic causes the light to dim more quickly than setting Attenuation to cwLinear.

Example

'Set the attenuation style to quadratic
CWGraph3D1.Lights.Item(1).Attenuation = cwQuadratic