forked from bartvdbraak/blender
0440d77dbc
* Add a few more OSL templates to the Text Editor, so people can use some of the OSL only shaders and closures. * Temperature (Kelvin) to RGB converter * Wavelength to RGB converter * Ramp closure (Phong and Diffuse) * Toon closure (Diffuse and Specular)
10 lines
153 B
Plaintext
10 lines
153 B
Plaintext
|
|
shader wavelength_to_rgb(
|
|
float Wavelength = 500.0,
|
|
output color Color = 0.8)
|
|
{
|
|
/* Wavelength to RGB */
|
|
Color = wavelength_color(Wavelength);
|
|
}
|
|
|