M_Rhino_Geometry_Light_GetAttenuation - mcneel/rhinocommon-api-docs GitHub Wiki
Gets the attenuation settings (ignored for "directional" and "ambient" lights). attenuation = 1/(a0 + da1 + d^2a2) where d = distance to light.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public double GetAttenuation(
double d
)
VB
Public Function GetAttenuation (
d As Double
) As Double
- d
- Type: System.Double
The distance to evaluate.
Type: Double
0 if a0 + da1 + d^2a2 <= 0.
Supported in: 6.0.16224.21491, 5D58w