From f9bc891fabac1479cb483284d31bdddba07c7945 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 9 Oct 2010 10:42:06 +0000 Subject: [PATCH] Write correct specularity parameters for materials --- mesh_export.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mesh_export.py b/mesh_export.py index 4265ca3d..9e09ef4d 100644 --- a/mesh_export.py +++ b/mesh_export.py @@ -684,7 +684,8 @@ class Exporter: self.out_file.begin("material") self.out_file.write("diffuse", m.R, m.G, m.B, 1.0) self.out_file.write("ambient", m.R*m.amb, m.G*m.amb, m.B*m.amb, 1.0) - self.out_file.write("specular", m.specR, m.specG, m.specB, 1.0) + self.out_file.write("specular", m.specR*m.spec, m.specG*m.spec, m.specB*m.spec, 1.0) + self.out_file.write("shininess", m.hard); self.out_file.end() self.out_file.end() self.out_file.end() -- 2.45.2