@@ -341,7 +341,7 @@ public FbxSurfaceMaterial ExportMaterial (Material unityMaterial, FbxScene fbxSc
341
341
342
342
// Copy the flat colours over from Unity standard materials to FBX.
343
343
fbxMaterial . Diffuse . Set ( GetMaterialColor ( unityMaterial , "_Color" ) ) ;
344
- fbxMaterial . Emissive . Set ( GetMaterialColor ( unityMaterial , "_EmissionColor" ) ) ;
344
+ fbxMaterial . Emissive . Set ( GetMaterialColor ( unityMaterial , "_EmissionColor" , 0 ) ) ;
345
345
fbxMaterial . Ambient . Set ( new FbxDouble3 ( ) ) ;
346
346
347
347
fbxMaterial . BumpFactor . Set ( unityMaterial && unityMaterial . HasProperty ( "_BumpScale" ) ? unityMaterial . GetFloat ( "_BumpScale" ) : 0 ) ;
@@ -352,7 +352,7 @@ public FbxSurfaceMaterial ExportMaterial (Material unityMaterial, FbxScene fbxSc
352
352
353
353
// Export the textures from Unity standard materials to FBX.
354
354
ExportTexture ( unityMaterial , "_MainTex" , fbxMaterial , FbxSurfaceMaterial . sDiffuse ) ;
355
- ExportTexture ( unityMaterial , "_EmissionMap" , fbxMaterial , "emissive" ) ;
355
+ ExportTexture ( unityMaterial , "_EmissionMap" , fbxMaterial , FbxSurfaceMaterial . sEmissive ) ;
356
356
ExportTexture ( unityMaterial , "_BumpMap" , fbxMaterial , FbxSurfaceMaterial . sNormalMap ) ;
357
357
if ( specular ) {
358
358
ExportTexture ( unityMaterial , "_SpecGlosMap" , fbxMaterial , FbxSurfaceMaterial . sSpecular ) ;
0 commit comments