Click or drag to resize
Ab4d.SharpEngine logo

DirectionalLight Class

DirectionalLight is a light that shines from infinity and has a direction vector set.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.CoreComponentBase
    Ab4d.SharpEngine.LightsLight
      Ab4d.SharpEngine.LightsDirectionalLight

Namespace: Ab4d.SharpEngine.Lights
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public class DirectionalLight : Light, 
	IDirectionalLight, ILight, ISpecularColorLight, 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.
Public methodDirectionalLight(Single, Single, Single) Initializes a new instance of the DirectionalLight class.
Top
Properties
 NameDescription
Public propertyDirection Gets or sets a Vector3 that specifies the direction of this light. Default value is new Vector3(0, 0, 1).
Public propertyIsCastingShadow Gets a Booleans that specifies if this light casts a shadow. To add a shadow casting light to the scene, call [!:Scene.AddShadowLight] method on the Scene object.
Public propertySpecularColor Gets or sets a Color3 that specifies the specular color of this light.
Top
Methods
 NameDescription
Public methodGetNormalizedDirection Returns the Direction vector normalized to unit length.
Public methodToString Returns a string that represents the current object.
(Overrides ObjectToString)
Top
See Also