fn curve_at(tables: &Tables, channel: usize, linear: f64) -> f64
The curve at a linear value, as the shader reads it (linear interpolation in u).