blackbody
Blackbody simply provides functions that convert temperature into color. Codes are ported from pbrt-v3.
use ;
[examples\example.rs:4] temperature_to_rgb(3000.0) = [
0.73506474,
0.3504873,
0.112983376,
]
[examples\example.rs:5] temperature_to_xyz(3000.0) = [
0.44889182,
0.4151354,
0.16
]