Skip to content

Commit

Permalink
better detection for PBR shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed May 24, 2022
1 parent dc04606 commit a4f5afd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,8 @@ private void ExportBlendShapes(SkinnedMeshRenderer smr, Mesh meshObj, int submes

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

private bool IsUnlit(Material material)
Expand Down

0 comments on commit a4f5afd

Please sign in to comment.