DirectionalLight Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Creates a DirectionalLight object.
Inheritance Hierarchy
System.Object
Microsoft.Xna.Framework.Graphics.DirectionalLight
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics.Extensions (in Microsoft.Xna.Framework.Graphics.Extensions.dll)
Syntax
'Declaration
Public NotInheritable Class DirectionalLight
public sealed class DirectionalLight
The DirectionalLight type exposes the following members.
Properties
Name | Description | |
---|---|---|
DiffuseColor | Gets or sets the diffuse color of the light. | |
Direction | Gets or sets the light direction. This value must be a unit vector. | |
Enabled | Gets or sets light enable flag. | |
SpecularColor | Gets or sets the specular color of the light. |
Top
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.