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
)

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.

See Also