Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.0.0.0 (1.0.0.9509)
Syntax
| C# |
|---|
public abstract class Light : INamedObject, ICloneable |
| Visual Basic |
|---|
Public MustInherit Class Light _ Implements INamedObject, ICloneable |
| Visual C++ |
|---|
public ref class Light abstract : INamedObject, ICloneable |
Remarks
Light is the base class for all light sources: see AmbientLight, DirectionalLight, PointLight, Spotlight, and ProjectorLight. A Light defines the properties of a light source, like color, intensity, extent, etc. However, it does not define the position of a light source, or its direction. Position and orientation are defined by creating a LightNode and adding it to a IScene. Multiple LightNodes can share the same Light object.
Each light has a Shape - a 3D shape that defines the space that is lit by the light source. See Shape for more information.
Cloning:
Lights are cloneable. Clone()()()() creates a deep copy of the current
light source - unless documented otherwise (see derived classes). Most properties including
the Shape are duplicated.
Inheritance Hierarchy
DigitalRune.Graphics..::..Light
DigitalRune.Graphics..::..AmbientLight
DigitalRune.Graphics..::..DirectionalLight
DigitalRune.Graphics..::..PointLight
DigitalRune.Graphics..::..ProjectorLight
DigitalRune.Graphics..::..Spotlight