From 5013c63cf727eaa94c30f2680163a9f868aafb6e Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 5 May 2024 22:10:57 +0200 Subject: feat(engine): make material textures optional --- engine/src/data_types/color.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engine/src/data_types') 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 pub const WHITE_F32: Self = Self { red: 1.0, green: 1.0, blue: 1.0 }; } +impl Color +{ + pub const WHITE_U8: Self = Self { red: 255, green: 255, blue: 255 }; +} + impl From for Color { fn from(value: Value) -> Self -- cgit v1.2.3-18-g5258