Color Temperature to RGB OSL Shader
Here is two of my OSL shaders for converting Color Temperature in Kelvin degree to RGB color (in both linear and sRGB).
One of the shaders is based on original version of Tanner Helland algorithm and the other one is based on improved version of it by Neil Bartlett.
- The improved version is quite accurate with raw blackbody color data provided by Mitchell Charity.
These two shaders originally intended for 3ds Max and work with Corona and V-Ray and other engines that support native 3ds Max OSL Map but it might work blender as well. (maybe with a little bit of modification)
two OSL shader to convert kelvin to RGB colors