Skip to content

Commit

Permalink
better check if material is PBR
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Mar 15, 2021
1 parent 300e9f1 commit ab7a18a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ private void ExportBlendShapes(SkinnedMeshRenderer smr, Mesh meshObj, MeshPrimit

private bool IsPBRMetallicRoughness(Material material)
{
return material.HasProperty("_Metallic") && material.HasProperty("_MetallicGlossMap");
return material.HasProperty("_Metallic") && (material.HasProperty("_MetallicGlossMap") || material.HasProperty("_Glossiness"));
}

private bool IsUnlit(Material material)
Expand Down

0 comments on commit ab7a18a

Please sign in to comment.