Thus, its rays of light are considered parallel by the time they reach the object. A positional light, in contrast, is near or within the scene and the direction of its rays are taken into account in lighting calculations. It is also used to specify whether the light source has ambient color, diffuse color, specular color, or emissive color. You can create up to eight light sources. To create a light source, you must choose which light you want to use, by name, a position for the light source and certain parameters.
Available parameters are color and quality.
The color components specified for lights means something different that for objects. For a light, the numbers correspond to a percentage of full intensity for each color. If the R, G, and B values for a light's color are all 1.0, the light is the brightest possible white. However, if the values are all 0.5, the color is still white, but only half the intensity, and therefore appears gray. The forth parameter that is passed is an on-off switch, more or less.