diff --git a/projects/FBX/FBXSDK.cpp b/projects/FBX/FBXSDK.cpp index d3398ed00..7a8546c07 100644 --- a/projects/FBX/FBXSDK.cpp +++ b/projects/FBX/FBXSDK.cpp @@ -731,6 +731,20 @@ static std::shared_ptr GetMesh(FbxNode* pNode) { } } } + { + FbxProperty property = material->FindProperty(FbxSurfaceMaterial::sTransparencyFactor); + if (property.IsValid()) { + double value = property.Get(); + json["opacity_value"] = value; + int textureCount = property.GetSrcObjectCount(); + for (int i = 0; i < textureCount; ++i) { + FbxFileTexture* texture = FbxCast(property.GetSrcObject(i)); + if (texture) { + json["opacity_tex"] = texture->GetFileName(); + } + } + } + } { FbxProperty property = material->FindProperty(FbxSurfaceMaterial::sReflection); if (property.IsValid()) {