فهرست منبع

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

jackcaron 10 سال پیش
والد
کامیت
71539bb293
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');