mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-04 06:39:07 +02:00
main: add height-based color modification
Modify terrain color depending on the height to give a sense of elevation.
This commit is contained in:
parent
46802116d9
commit
bcec704d27
2 changed files with 20 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue