pub fn tonemap(rgb: [f32; 3], knee: f32, peak: f32) -> [f32; 3]
Tone-maps on max(R,G,B) so hue is kept.