diff options
author | HampusM <hampus@hampusmat.com> | 2024-12-08 21:50:03 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-12-08 21:50:03 +0100 |
commit | c00ebc000ecc76a6f9fdd7bdff9641b89dc3dee4 (patch) | |
tree | 564b3caca14127ec973e9fe63b96f58ed0e50f16 /engine/src | |
parent | f4243dd92faae7f4200839a053488cdb28ad557d (diff) |
feat(engine): add function returning builder to Material
Diffstat (limited to 'engine/src')
-rw-r--r-- | engine/src/material.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engine/src/material.rs b/engine/src/material.rs index aae6003..e368519 100644 --- a/engine/src/material.rs +++ b/engine/src/material.rs @@ -19,6 +19,14 @@ pub struct Material pub shininess: f32, } +impl Material +{ + pub fn builder() -> Builder + { + Builder::default() + } +} + /// [`Material`] builder. #[derive(Debug, Clone)] pub struct Builder |