Merge pull request #1498 from aws-lumberyard-dev/Helios_LYN-3723-FixPBRNormalMapImport

[LYN-3723] Fix Stingray PBR normal map import
This commit is contained in:
amzn-mike
2021-06-23 21:15:35 -05:00
committed by GitHub
2 changed files with 5 additions and 0 deletions
@@ -220,6 +220,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)