From 5c7faa5964a70bf3c2d634c18242a7c4f8f09481 Mon Sep 17 00:00:00 2001 From: Chris Foster <cdbfoster@gmail.com> Date: Tue, 26 Apr 2011 09:10:59 +0000 Subject: [PATCH] Oops. :P --- io_export_directx_x.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_export_directx_x.py b/io_export_directx_x.py index a58bfb26e..8c2eb1208 100644 --- a/io_export_directx_x.py +++ b/io_export_directx_x.py @@ -492,7 +492,7 @@ def WriteMaterial(Config, Material=None): Diffuse = list(Vector(Material.diffuse_color) * Material.diffuse_intensity) Diffuse.append(Material.alpha) - Specularity = 1000 * (Material.specular_hardness - 1.0) / (511.0 - 1.0) # Map Blender's range of 1 - 511 to 1 - 1000 + Specularity = 1000 * (Material.specular_hardness - 1.0) / (511.0 - 1.0) # Map Blender's range of 1 - 511 to 0 - 1000 Specular = list(Vector(Material.specular_color) * Material.specular_intensity) Config.File.write("{}{:9f};{:9f};{:9f};{:9f};;\n".format(" " * Config.Whitespace, Diffuse[0], Diffuse[1], Diffuse[2], Diffuse[3])) -- GitLab