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 innerConeAngleDgr, float outerConeAngleDgr ) |
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.
- 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.