Click or drag to resize
AB4D logo

PointLight Class

PointLight is a lights that emits light in all directions from a specified position.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectX.LightsLightBase
    Ab3d.DirectX.LightsPointLight
      Ab3d.DirectX.LightsSpotLight

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

The PointLight type exposes the following members.

Constructors
 NameDescription
Public methodPointLight Initializes a new instance of the PointLight class.
Public methodPointLight(Vector3, Single) Initializes a new instance of the PointLight class.
Top
Properties
 NameDescription
Public propertyAttenuation Gets or sets a Vector3 that specifies the parameters for the quadratic light function - the Vector3 components are: constant, linear and quadratic parameter. Default value is (1, 0, 0)
Public propertyDiffuseColor Gets or sets a Color3 that specifies a diffuse color of this light.
Public propertyPosition Gets or sets a Vector3 that specifies the positions of this light.
Public propertyRange Gets or sets a range of this point light - range does not affect the light brightness but just disables light calculation for all pixels that are farther away.
Public propertySpecularColor Gets or sets a Color3 that specifies a specular color of this light.
Top
Methods
 NameDescription
Public methodToString Returns a string that represents the current object.
(Overrides ObjectToString)
Top
See Also