From 683847e0bd60518822bda6a7c0364e1be75547a6 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 18 May 2024 14:23:27 +0200 Subject: fix(engine): change default material colors to white --- engine/src/material.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/src/material.rs') diff --git a/engine/src/material.rs b/engine/src/material.rs index 880f689..f71cee5 100644 --- a/engine/src/material.rs +++ b/engine/src/material.rs @@ -206,9 +206,9 @@ impl Builder }); Material { - ambient: self.ambient.unwrap_or_default(), - diffuse: self.diffuse.unwrap_or_default(), - specular: self.specular.unwrap_or_default(), + ambient: self.ambient.unwrap_or(Color::WHITE_F32), + diffuse: self.diffuse.unwrap_or(Color::WHITE_F32), + specular: self.specular.unwrap_or(Color::WHITE_F32), ambient_map, diffuse_map, specular_map, -- cgit v1.2.3-18-g5258