mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
35 lines
537 B
Rust
35 lines
537 B
Rust
|
use crate::vol::Vox;
|
||
|
use vek::*;
|
||
|
|
||
|
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
||
|
pub enum Material {
|
||
|
Skin,
|
||
|
Hair,
|
||
|
EyeDark,
|
||
|
EyeLight,
|
||
|
EyeWhite,
|
||
|
//HairLight,
|
||
|
//HairDark,
|
||
|
//Clothing,
|
||
|
}
|
||
|
|
||
|
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
||
|
pub enum MatCell {
|
||
|
None,
|
||
|
Mat(Material),
|
||
|
Normal(Rgb<u8>),
|
||
|
}
|
||
|
|
||
|
impl Vox for MatCell {
|
||
|
fn empty() -> Self {
|
||
|
MatCell::None
|
||
|
}
|
||
|
|
||
|
fn is_empty(&self) -> bool {
|
||
|
match self {
|
||
|
MatCell::None => true,
|
||
|
_ => false,
|
||
|
}
|
||
|
}
|
||
|
}
|