summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-05-18 14:23:27 +0200
committerHampusM <hampus@hampusmat.com>2024-05-18 14:23:27 +0200
commit683847e0bd60518822bda6a7c0364e1be75547a6 (patch)
treec771d5c2c1087bcd11bb849b656cde2aa5822fce
parent68f9e80863a0ac73fcbd14693ad559728ca655dc (diff)
fix(engine): change default material colors to white
-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,