C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

class Light

Defined in:  C4Lights.h
The Light class represents a light node in a world.
Definition

class Light : public Node

Member Functions
Light::GetLightType Returns the specific type of a light.
Light::GetBaseLightType Returns the base type of a light.
Constructor

Light(LightType type, LightType base);

The constructor has protected access. A Light class can only exist as the base class for a more specific type of light.
Parameters
type The type of the light source. See below for a list of possible types.
base The base type of the light source. This should be kLightInfinite or kLightPoint.
Description


kLightInfinite An infinite light.
kLightDepth An infinite light with a shadow map.
kLightLandscape An infinite light with a large-scale multi-resolution shadow map.
kLightPoint A point light.
kLightCube A point light with a projected cube shadow texture.
kLightSpot A spot light with a projected 2D shadow texture.
Base Classes
Node A Light node is a scene graph node.
See Also

LightObject