summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-05-25 13:08:53 +0200
committerHampusM <hampus@hampusmat.com>2025-05-25 13:09:20 +0200
commit68a97b0123da1f181d1c78a7f760c55c3f341014 (patch)
tree733e43ca583b34d1ac7400b9ad45f109a932fd21
parentfdc190632d70037ae56dfeb67114d2fba3de2d52 (diff)
fix: use shininess from mtl NamedMaterialHEADmaster
-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();