Creates a new spotlight in the direction of [x,y,z]. 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( float x, float y, float z, float falloff ) |
Parameters
- x
- Type: System..::.Single
The light direction in the X axis.
- y
- Type: System..::.Single
The light direction in the Y axis.
- z
- Type: System..::.Single
The light direction in the Z axis.
- 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.