Click or drag to resize
AB4D logo

DirectionalLight Class

DirectionalLight is a lights that shines from infinint and has a direction vector set.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectX.LightsLightBase
    Ab3d.DirectX.LightsDirectionalLight

Namespace: Ab3d.DirectX.Lights
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public class DirectionalLight : LightBase, 
	IDirectionalLight, ILight, IShadowCastingLight

The DirectionalLight type exposes the following members.

Constructors
 NameDescription
Public methodDirectionalLight Initializes a new instance of the DirectionalLight class.
Public methodDirectionalLight(Vector3) Initializes a new instance of the DirectionalLight class.
Top
Properties
 NameDescription
Public propertyDiffuseColor Gets or sets a Color3 that specifies the diffuse color of this light.
Public propertyDirection Gets or sets a Vector3 that specifies the direction of this light.
Public propertyIsCastingShadow Gets or sets a Booleans that specifies if this light casts a shadow.
Public propertySpecularColor Gets or sets a Color3 that specifies the specular color of this light.
Top
Methods
 NameDescription
Public methodToString Returns a string that represents the current object.
(Overrides ObjectToString)
Top
See Also