Skip to content

Commit 4b2a3ce

Browse files
committed
export color as white instead of grey
use the same default as a new Unity Material
1 parent 329cfd3 commit 4b2a3ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ public void ExportTexture (Material unityMaterial, string unityPropName,
242242
public FbxDouble3 GetMaterialColor (Material unityMaterial, string unityPropName)
243243
{
244244
if (!unityMaterial) {
245-
return new FbxDouble3 (0.5);
245+
return new FbxDouble3(1);
246246
}
247247
if (!unityMaterial.HasProperty (unityPropName)) {
248-
return new FbxDouble3 (0.5);
248+
return new FbxDouble3(1);
249249
}
250250
var unityColor = unityMaterial.GetColor (unityPropName);
251251
return new FbxDouble3 (unityColor.r, unityColor.g, unityColor.b);

0 commit comments

Comments
 (0)