diff options
author | Chris Foster <cdbfoster@gmail.com> | 2011-04-26 13:10:59 +0400 |
---|---|---|
committer | Chris Foster <cdbfoster@gmail.com> | 2011-04-26 13:10:59 +0400 |
commit | 5c7faa5964a70bf3c2d634c18242a7c4f8f09481 (patch) | |
tree | ebd0122b8de637daec7c05f7a08b68dc4b787e8d /io_export_directx_x.py | |
parent | 7eefc96995a902efc2c16296ade77df588467b0f (diff) |
Oops. :P
Diffstat (limited to 'io_export_directx_x.py')
-rw-r--r-- | io_export_directx_x.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_export_directx_x.py b/io_export_directx_x.py index a58bfb26..8c2eb120 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])) |