C4 Engine
C4 Engine API Documentation

LightObject::SetLightColor

Defined in:  C4LightObjects.h
Sets the light color.
Prototype

void SetLightColor(const ColorRGB& color);

Parameters
color The new light color.
Description
The SetLightColor function sets the light color. The light color may be changed at any time, and doing so has immediate effect.

To turn a light off, the kNodeDisabled flag should be set for the Light node by calling the Node::SetNodeFlags function. This results in much better performance than setting the light's color to black.
See Also

ColorRGB

LightObject::GetLightColor