All light shaders take an argument determining the color of the light source. Here we describe some light utilities that may be used to determine a color. They can be attached to the color parameters of other light shaders.
The Comission Internationale de l'Eclairage (CIE) has standardized several illuminants. The most well known of these is called D65, but there is an entire range of CIE D illuminants. The number 65 refers to the associated color temperature of 6500 Kelvin. This illuminant describes the color of daylight with an overcast sky. This specific illuminant is widely used to define the color white, and indeed its sRGB coordinates are (1,1,1). The other CIE D illuminant differ from D65 by the associated color temperature. This implementiation supports color temperatures from 4000 Kelvin to 25000 Kelvin.
color "mib_cie_d" ( scalar "temperature", scalar "intensity")
An ideal material absorbing all light directed at it is called a blackbody, since it is obviously devoid of any color. However, every material, when sufficiently heated, will also emit electromagnetic radiation. For a blackbody the spectral distribution of this radiation depends solely on the temperature of the material, and on no other material property. There is a specific color associated with each temperature of such a body. With increasing temperature this color ranges from red over white to blue. However, the intensity of this radiation will also increase strongly with temperature - an effect that is ignored here by normalizing the color to a provided intensity.
color "mib_blackbody" ( scalar "temperature", scalar "intensity")