Creates new point light. Point light shines like the bulb from one point to all directions.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
public XPointLight AddPointLight( Vector3 vector, float attenuation0, float attenuation1, float attenuation2, float range ) |
Parameters
- vector
- Type: Vector3
Coordinates of the new light.
- attenuation0
- Type: System..::.Single
Constant component of the distance-dependent light attenuation.
- attenuation1
- Type: System..::.Single
Linear component of the distance-dependent light attenuation.
- attenuation2
- Type: System..::.Single
Quadratic component of the distance-dependent light attenuation.
- range
- Type: System..::.Single
Defines the light range (corresponds to the distance beyond that the light has no effect).