From 6c2dbb854145979662bd8c58ad999cc5a87dfe1f Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 7 May 2024 19:55:49 +0200 Subject: feat(engine): add material builder function adding a single texture --- engine/src/material.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engine/src') diff --git a/engine/src/material.rs b/engine/src/material.rs index 69fe970..c896084 100644 --- a/engine/src/material.rs +++ b/engine/src/material.rs @@ -155,6 +155,14 @@ impl Builder self } + #[must_use] + pub fn texture(mut self, texture: Texture) -> Self + { + self.textures.push(texture); + + self + } + #[must_use] pub fn shininess(mut self, shininess: f32) -> Self { -- cgit v1.2.3-18-g5258