Click or drag to resize
DigitalRuneSpotlightRange Property
Gets or sets the range of the light.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public float Range { get; set; }

Property Value

Type: Single
The range the light. The default value is 5.
Exceptions
ExceptionCondition
ArgumentException The range of point light cannot be negative.
Remarks
The intensity of the light continually decreases from the origin up to range. At a distance of range the light intensity is 0. Attenuation the shape of the attenuation curve. See also GetDistanceAttenuation(Single, Single, Single).
See Also