pub fn encode_pixel(format: HeightmapFormat, elevation: f32) -> [u8; 3]Expand description
Encode a single elevation sample (metres) into (R, G, B) using the
chosen format.
pub fn encode_pixel(format: HeightmapFormat, elevation: f32) -> [u8; 3]Encode a single elevation sample (metres) into (R, G, B) using the
chosen format.