diff options
author | HampusM <hampus@hampusmat.com> | 2024-05-05 22:10:57 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-05-05 22:11:06 +0200 |
commit | 5013c63cf727eaa94c30f2680163a9f868aafb6e (patch) | |
tree | a882ccf5cb5ee2cc7420182f0f013bfb23ffd57f /engine/src/data_types | |
parent | 81bba9fb007333c54006be9172e090c38c45d110 (diff) |
feat(engine): make material textures optional
Diffstat (limited to 'engine/src/data_types')
-rw-r--r-- | engine/src/data_types/color.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/src/data_types/color.rs b/engine/src/data_types/color.rs index 697ea8b..7bab678 100644 --- a/engine/src/data_types/color.rs +++ b/engine/src/data_types/color.rs @@ -12,6 +12,11 @@ impl Color<f32> pub const WHITE_F32: Self = Self { red: 1.0, green: 1.0, blue: 1.0 }; } +impl Color<u8> +{ + pub const WHITE_U8: Self = Self { red: 255, green: 255, blue: 255 }; +} + impl<Value: Clone> From<Value> for Color<Value> { fn from(value: Value) -> Self |