Creates new point light. Point light shines like the bulb from one point to all directions. The light has default fade 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 range
)

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.
range
Type: System..::.Single
Defines the light range (corresponds to the distance beyond that the light has no effect).

Return Value

Returns a new instance of the XPointLight point light.

See Also