diff options
-rw-r--r-- | engine/src/material.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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, |