Explorar o código

use the inverse of the normal factor to match the inverse level in the loader

jackcaron %!s(int64=10) %!d(string=hai) anos
pai
achega
71539bb293
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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');