Преглед на файлове

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:
                         # Bump
                         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:
                         # Specular
                         BabylonExporter.log('Specular texture found');