Light Members
Defines a set of lighting properties.
The following tables list the members exposed by the Light type.
Public Constructors
Name | Description | |
---|---|---|
Light | Initializes a new instance of the Light class. |
Top
Public Properties
Name | Description | |
---|---|---|
Ambient | Retrieves or sets the ambient color emitted by the light. | |
AmbientColor | A color that represents the ambient color emitted by the light. | |
Attenuation0 | Retrieves or sets a value that specifies how light intensity changes over distance. | |
Attenuation1 | Retrieves or sets a value that specifies how light intensity changes over distance. | |
Attenuation2 | Retrieves or sets a value that specifies how light intensity changes over distance. | |
Diffuse | Retrieves or sets the diffuse color emitted by the light. | |
DiffuseColor | A color that represents the diffuse color emitted by the light. | |
Direction | Retrieves or sets the direction in which the light is pointing in world space, as specified by a Vector3 structure. | |
Enabled | Indicates whether lighting parameters are enabled within a device. | |
Position | Retrieves or sets the position of the light in world space, as specified by a Vector3 structure. | |
Range | Retrieves or sets the distance beyond which the light has no effect. | |
Specular | Retrieves or sets the specular color emitted by the light. | |
SpecularColor | Retrieves or sets the specular color emitted by the light. | |
Type | Retrieves or sets the type of the light source. |
Top
Public Methods
(see also Protected Methods )
Name | Description | |
---|---|---|
Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) | |
FromLight | Creates a new light based on an existing light. | |
GetHashCode | Serves as a hash function for a particular type. (inherited from Object) | |
GetType | Gets the Type of the current instance. (inherited from Object) | |
ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) | |
ToString | Returns a String that represents the current Object. (inherited from Object) | |
Update | Updates the settings for the current Light object. |
Top
Protected Methods
Name | Description | |
---|---|---|
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object) | |
MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |
Top
See Also
Reference
Light Class
Microsoft.WindowsMobile.DirectX.Direct3D Namespace