The XPointLight creates new point light. Point light shines like the bulb from one point to all directions. Point light fades with the increasing distance from the source and since certain distance it has no effect.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
public class XPointLight : XLight |
Remarks
Light attenuation depend on the light type and light distance from the vertex.
The point light attenuation is calculated according to the formula Atten = 1/( att0 + att1 * d + att2 * d^2).
att0 | - constant component of the light attenuation. |
att1 | - linear component of the light attenuation. |
att2 | - quadratic component of the light attenuation. |
Inheritance Hierarchy
System..::.Object
System..::.MarshalByRefObject
System.ComponentModel..::.Component
SGP.XSpace..::.XSprite
SGP.XSpace..::.XLight
SGP.XSpace..::.XPointLight
SGP.XSpace..::.XSpotLight
System..::.MarshalByRefObject
System.ComponentModel..::.Component
SGP.XSpace..::.XSprite
SGP.XSpace..::.XLight
SGP.XSpace..::.XPointLight
SGP.XSpace..::.XSpotLight