Click or drag to resize
AB4D logo

SpotLight(Vector3, Single, Vector3) Constructor

Initializes a new instance of the SpotLight class.

Namespace: Ab3d.DirectX.Lights
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public SpotLight(
	Vector3 position,
	float range,
	Vector3 direction
)

Parameters

position  Vector3
Vector3 that specifies the positions of this light
range  Single
range of this point light - range does not affect the light brightness but just disables light calculation for all pixels that are farther away
direction  Vector3
Vector3 that specifies the direction of this light
See Also