3D Lingo Dictionary > A-B > attenuation

 

attenuation

Syntax

member(whichCastMember).light(whichLight).attenuation

Description

3D light property; indicates the constant, linear, and quadratic attenuation factors for spotlights and point lights.

The default value for this property is vector(1.0, 0.0, 0.0).

Example

This statement sets the attenuation property of the light named HouseLight to the vector (.5, 0, 0), darkening it slightly.

member("3d world").light("HouseLight").attenuation = vector(.5, 0, 0)

See also

color (light)