From c00ebc000ecc76a6f9fdd7bdff9641b89dc3dee4 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 8 Dec 2024 21:50:03 +0100 Subject: feat(engine): add function returning builder to Material --- engine/src/material.rs | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3-18-g5258