Click or drag to resize

LightSetAttenuation Method

Sets 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)
Syntax
public void SetAttenuation(
	double a0,
	double a1,
	double a2
)

Parameters

a0
Type: SystemDouble
The new constant attenuation divisor term.
a1
Type: SystemDouble
The new reverse linear attenuation divisor term.
a2
Type: SystemDouble
The new reverse quadratic attenuation divisor term.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.5
See Also