Light Class |
Namespace: DigitalRune.Graphics
The Light type exposes the following members.
Name | Description | |
---|---|---|
Clone |
Creates a new Light that is a clone (deep copy) of the current instance.
| |
CloneCore |
Makes the instance a clone (deep copy) of the specified Light.
| |
CreateInstanceCore |
When implemented in a derived class, creates a new instance of the
Light derived class.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetIntensity |
Gets the (approximated) light intensity at the given distance.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Name |
Gets or sets the name of the light.
| |
Shape |
Gets (or sets) the shape of the light volume.
|
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.