2019-08-25 21:31:08 +00:00
|
|
|
use crate::vol::Vox;
|
|
|
|
use vek::*;
|
|
|
|
|
|
|
|
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
|
|
|
pub enum Material {
|
|
|
|
Skin,
|
2019-09-18 16:46:12 +00:00
|
|
|
SkinDark,
|
|
|
|
SkinLight,
|
2019-08-25 21:31:08 +00:00
|
|
|
Hair,
|
|
|
|
EyeDark,
|
|
|
|
EyeLight,
|
|
|
|
EyeWhite,
|
2020-02-01 20:39:39 +00:00
|
|
|
/*HairLight,
|
|
|
|
*HairDark,
|
|
|
|
*Clothing, */
|
2019-08-25 21:31:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
|
|
|
pub enum MatCell {
|
|
|
|
None,
|
|
|
|
Mat(Material),
|
|
|
|
Normal(Rgb<u8>),
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Vox for MatCell {
|
2020-02-01 20:39:39 +00:00
|
|
|
fn empty() -> Self { MatCell::None }
|
2019-08-25 21:31:08 +00:00
|
|
|
|
2020-08-17 09:08:11 +00:00
|
|
|
fn is_empty(&self) -> bool { matches!(self, MatCell::None) }
|
2019-08-25 21:31:08 +00:00
|
|
|
}
|