浏览代码

Merge pull request #651 from jackcaron/BlenderBumpMapLevel

use the inverse of the normal factor
David Catuhe 10 年之前
父节点
当前提交
d9f8bb55b5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Exporters/Blender/io_export_babylon.py

+ 1 - 1
Exporters/Blender/io_export_babylon.py

@@ -1475,7 +1475,7 @@ class Material:
                     if mtex.use_map_normal:
                     if mtex.use_map_normal:
                         # Bump
                         # Bump
                         BabylonExporter.log('Bump texture found');
                         BabylonExporter.log('Bump texture found');
-                        self.textures.append(Texture('bumpTexture', mtex.normal_factor, mtex, filepath))
+                        self.textures.append(Texture('bumpTexture', 1.0/mtex.normal_factor, mtex, filepath))
                     elif mtex.use_map_color_spec:
                     elif mtex.use_map_color_spec:
                         # Specular
                         # Specular
                         BabylonExporter.log('Specular texture found');
                         BabylonExporter.log('Specular texture found');