RwSetLightColor(RwLight *light, RwReal r, RwReal g, RwReal b);
Description
Sets the color of a light.
Arguments
light Pointer to the light.
r Red component of the color in the range CREAL(0.0) to CREAL(1.0).
g Green component of the color in the range CREAL(0.0) to CREAL(1.0).
b Blue component of the color in the range CREAL(0.0) to CREAL(1.0).
Return Value
The argument light if successful, and NULL otherwise.
Comments
The value returned by RwGetLightBrightness() for a light whose color has been set with RwSetLightColor() is the average intensity of the red, green and blue channels of the lights color.
This function is identical to RwSetLightColorStruct() with the exception that it takes individual RwReals for the red, green and blue components of the color rather than an RwRGBColor structure as the color specification.
See Also