Creates a new spotlight in the direction direction. The spotlight suggests the flashlight effect that illuminates the object in the given direction.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public XSpotLight AddSpotLight(
	Vector3 direction,
	float innerConeAngleDgr,
	float outerConeAngleDgr,
	float falloff
)

Parameters

direction
Type: Vector3
The light direction Vector3 vector.
innerConeAngleDgr
Type: System..::.Single
The angle in degrees that forms the 2 utmost rays. The beam makes a cone where the object will be illuminated most intensively.
outerConeAngleDgr
Type: System..::.Single
The angle in degrees that forms the 2 utmost rays. The beam makes a boundary cone beyond that the object will not be illuminated.
falloff
Type: System..::.Single
The light intensity falloff between the inner cone (the most intense illumination) and the outer cone (the least intense illumination). The value of 1 corresponds to the linear falloff. The bigger the value the quicker intensity falloff.

See Also