فهرست منبع

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

Conflicts:
	Babylon/Mesh/babylon.mesh.js
	Babylon/Mesh/babylon.meshSimplification.js
	Babylon/Mesh/babylon.meshSimplification.ts
	Babylon/Tools/babylon.tools.js
	Babylon/Tools/babylon.tools.ts
David Catuhe 10 سال پیش
والد
کامیت
44b6987ce4
3فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 7 0
      Exporters/Blender/io_export_babylon.py
  2. 1 0
      Tools/BuildOurOwnBabylonJS/BuildOurOwnBabylonJS/babylonJS.xml
  3. 1 0
      Tools/Gulp/gulpfile.js

+ 7 - 0
Exporters/Blender/io_export_babylon.py

@@ -1365,6 +1365,13 @@ class Material:
                         # 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', mtex.normal_factor, mtex, filepath))  
+                    elif mtex.use_map_color_spec:
+                        # Specular
+                        BabylonExporter.log('Specular texture found');
+                        self.textures.append(Texture('specularTexture', mtex.specular_color_factor, mtex, filepath))
+                    else:
+                        BabylonExporter.warn('WARNING image texture type not recognized:  ' + str(mtex) + ', ignored.')
+
                         
                         
             else:
             else:
                  BabylonExporter.warn('WARNING texture type not currently supported:  ' + mtex.texture.type + ', ignored.')
                  BabylonExporter.warn('WARNING texture type not currently supported:  ' + mtex.texture.type + ', ignored.')

+ 1 - 0
Tools/BuildOurOwnBabylonJS/BuildOurOwnBabylonJS/babylonJS.xml

@@ -119,4 +119,5 @@
   <script src="Babylon/Tools/babylon.tools.tga.js"></script>
   <script src="Babylon/Tools/babylon.tools.tga.js"></script>
   <script src="Babylon/Tools/babylon.database.js"></script>
   <script src="Babylon/Tools/babylon.database.js"></script>
   <script src="Babylon/Math/babylon.math.js"></script>
   <script src="Babylon/Math/babylon.math.js"></script>
+  <script src="Babylon/Mesh/babylon.meshSimplification.js"></script>
 </files>
 </files>

+ 1 - 0
Tools/Gulp/gulpfile.js

@@ -169,6 +169,7 @@ gulp.task('scripts', ['shaders'] ,function() {
       '../../Babylon/Debug/babylon.debugLayer.js',
       '../../Babylon/Debug/babylon.debugLayer.js',
       '../../Babylon/Materials/Textures/babylon.rawTexture.js',
       '../../Babylon/Materials/Textures/babylon.rawTexture.js',
       '../../Babylon/Mesh/babylon.polygonMesh.js'
       '../../Babylon/Mesh/babylon.polygonMesh.js'
+	  '../../Babylon/Mesh/babylon.meshSimplification.js'
     ])
     ])
     .pipe(concat('babylon.js'))
     .pipe(concat('babylon.js'))
     .pipe(gulp.dest('build/'))
     .pipe(gulp.dest('build/'))