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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user