Fix importing normals on PBR materials

Some normals are flagged as "NORMAL_CAMERA" by AssImp, so if we can't find NORMALS we fallback to looking for NORMAL_CAMERA
This commit is contained in:
amzn-mike
2021-06-22 18:09:06 -05:00
parent 1c80a2e31e
commit 1137c2d09d
@@ -225,6 +225,10 @@ namespace AZ
{
m_assImpMaterial->GetTexture(aiTextureType_NORMALS, textureIndex, &absTexturePath);
}
else if (m_assImpMaterial->GetTextureCount(aiTextureType_NORMAL_CAMERA) > textureIndex)
{
m_assImpMaterial->GetTexture(aiTextureType_NORMAL_CAMERA, textureIndex, &absTexturePath);
}
break;
case MaterialMapType::Metallic:
if (m_assImpMaterial->GetTextureCount(aiTextureType_METALNESS) > textureIndex)