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.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public class DirectionalLight : Light, 
	IDirectionalLight, ILight, ISpecularColorLight

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 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