summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 69fe970..c896084 100644
--- a/engine/src/material.rs
+++ b/engine/src/material.rs
@@ -156,6 +156,14 @@ impl Builder
}
#[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
{
self.shininess = shininess;