main: add height-based color modification

Modify terrain color depending on the height to give a sense of
elevation.
This commit is contained in:
Matthias Schiffer 2023-03-04 21:45:59 +01:00
parent 46802116d9
commit bcec704d27
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
2 changed files with 20 additions and 7 deletions

View file

@ -8,7 +8,7 @@ use crate::{
};
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
pub struct BlockHeight(i32);
pub struct BlockHeight(pub i32);
impl BlockHeight {
/// Constructs a new [BlockHeight] from section and block Y indices