summaryrefslogtreecommitdiff
path: root/engine/src/material.rs
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/material.rs')
-rw-r--r--engine/src/material.rs6
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,