C4 Engine
C4 Engine API Documentation


Defined in:  C4LightObjects.h
Returns the specific type of a light.

LightType GetLightType(voidconst;

The GetLightType function returns the specific light type, which can be one of the following constants.
kLightInfinite Infinite light with parallel rays and no attenuation.
kLightPoint Point light with omnidirectional rays and distance attenuation.
kLightCube Point light with a projected cube texture.
kLightSpot Spot light with a projected 2D texture.
All of the light types are divided into two categories, and the general category that a light object falls into can be determined by calling the LightObject::GetBaseLightType function.
See Also