Creates a new spotlight in the direction direction. The spotlight suggests the flashlight effect that illuminates the object in the given direction.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
public XSpotLight AddSpotLight( Vector3 direction, float falloff ) |
Parameters
- direction
- Type: Vector3
The light direction Vector3 vector.
- 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.