Click or drag to resize

LightGetAttenuation Method

Gets the attenuation settings (ignored for "directional" and "ambient" lights).

attenuation = 1/(a0 + d*a1 + d^2*a2) where d = distance to light.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
public double GetAttenuation(
	double d


Type: SystemDouble
The distance to evaluate.

Return Value

Type: Double
0 if a0 + d*a1 + d^2*a2 <= 0.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also