Click or drag to resize
Ab4d.SharpEngine logo

SpotLight(Vector3, Vector3, Single, Single, Single) Constructor

Initializes a new instance of the SpotLight class.

Namespace: Ab4d.SharpEngine.Lights
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public SpotLight(
	Vector3 position,
	Vector3 direction,
	float innerConeAngle,
	float outerConeAngle,
	float range = 3,402823E+38f
)

Parameters

position  Vector3
Vector3 that specifies the positions of this light
direction  Vector3
Vector3 that specifies the direction of this light
innerConeAngle  Single
inner cone angle in degrees
outerConeAngle  Single
outer cone angle in degrees
range  Single  (Optional)
range of this point light - range does not affect the light brightness but just disables light calculation for all pixels that are farther away
See Also