summaryrefslogtreecommitdiff
path: root/engine/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-12-08 21:50:03 +0100
committerHampusM <hampus@hampusmat.com>2024-12-08 21:50:03 +0100
commitc00ebc000ecc76a6f9fdd7bdff9641b89dc3dee4 (patch)
tree564b3caca14127ec973e9fe63b96f58ed0e50f16 /engine/src
parentf4243dd92faae7f4200839a053488cdb28ad557d (diff)
feat(engine): add function returning builder to Material
Diffstat (limited to 'engine/src')
-rw-r--r--engine/src/material.rs8
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