symbios-ground 0.3.0

An algorithmic terrain engine.
Documentation
1
2
3
4
5
6
7
8
9
use crate::HeightMap;

/// Trait for procedural terrain generators.
///
/// Implementors fill a `HeightMap` with generated height data.
pub trait TerrainGenerator {
    /// Fill `heightmap` with generated terrain data.
    fn generate(&self, heightmap: &mut HeightMap);
}