[][src]Function pbrt::core::spectrum::rgb_to_xyz

pub fn rgb_to_xyz(rgb: [Float; 3]) -> [Float; 3]

Convert tristimulus values in the sRGB color space values to the XYZ color space (as defined by CIE) matching the human eye's response.