pub enum Layer {
Shaded,
Height,
Flow,
Rivers,
Lakes,
Ocean,
}Expand description
A single output layer of a Terrain, for writing one file per layer.
Shaded is a picture; the rest are data layers meant
to be read back by other tools, so they are written losslessly:
elevation and flow as 16-bit greyscale (8 bits would quantise elevation
into visible terraces), masks as 8-bit black/white.
Variants§
Shaded
The shaded relief render — biome colours, hillshading, water.
Height
Elevation, 16-bit greyscale, 0 = 0.0 and 65535 = 1.0.
Flow
Normalised flow accumulation, 16-bit greyscale.
Rivers
River mask, 8-bit: 255 where a river runs.
Lakes
Lake mask, 8-bit: 255 where a lake stands.
Ocean
Ocean mask, 8-bit: 255 where the cell is sea.
Implementations§
Trait Implementations§
impl Copy for Layer
impl Eq for Layer
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more