Creates new point light. Point light shines like the bulb from one point to all directions. The light has default range value.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public XPointLight AddPointLight(
	float x,
	float y,
	float z,
	float attenuation0,
	float attenuation1,
	float attenuation2
)

Parameters

x
Type: System..::.Single
The X coordinate of the new light.
y
Type: System..::.Single
The Y coordinate of the new light.
z
Type: System..::.Single
The Z coordinate 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.

Return Value

Returns a new instance of the XPointLight point light.

See Also