diff options
author | HampusM <hampus@hampusmat.com> | 2023-11-12 22:38:52 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-11-12 22:57:19 +0100 |
commit | 8d821588cd4f51d4ae9c4ef52d45c0af0e1ce9e5 (patch) | |
tree | ed1b0dd30e801b9a70537b9806a445e4212978b3 /engine/src/color.rs | |
parent | 67023d6a095f457a2579367d59d13c6c804e7108 (diff) |
feat(engine): add basic flat lighting
Diffstat (limited to 'engine/src/color.rs')
-rw-r--r-- | engine/src/color.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/src/color.rs b/engine/src/color.rs index 1e87cb9..2fd2cd3 100644 --- a/engine/src/color.rs +++ b/engine/src/color.rs @@ -6,3 +6,8 @@ pub struct Color<Value> pub green: Value, pub blue: Value, } + +impl Color<f32> +{ + pub const WHITE_F32: Self = Self { red: 1.0, green: 1.0, blue: 1.0 }; +} |