LightObject::SetLightColor
Defined in:
Sets the light color.
C4LightObjects.h
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