summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index bc9ecea..c1ea1cd 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -78,7 +78,8 @@ fn main() -> Result<(), Box<dyn Error>>
let mut teapot_mat_builder = Material::builder()
.ambient(teapot_named_mat.ambient)
.diffuse(teapot_named_mat.diffuse)
- .specular(teapot_named_mat.specular);
+ .specular(teapot_named_mat.specular)
+ .shininess(teapot_named_mat.shininess);
if let Some(ambient_map) = teapot_named_mat.ambient_map {
let texture = Texture::open(&ambient_map.path).unwrap();