Replaced AI_MATKEY_IOR with AI_MATKEY_REFRACTI.
This commit is contained in:
@@ -717,7 +717,7 @@ bool glTF2Exporter::GetMatVolume(const aiMaterial &mat, glTF2::MaterialVolume &v
|
||||
}
|
||||
|
||||
bool glTF2Exporter::GetMatIOR(const aiMaterial &mat, glTF2::MaterialIOR &ior) {
|
||||
return mat.Get(AI_MATKEY_IOR, ior.ior) == aiReturn_SUCCESS;
|
||||
return mat.Get(AI_MATKEY_REFRACTI, ior.ior) == aiReturn_SUCCESS;
|
||||
}
|
||||
|
||||
void glTF2Exporter::ExportMaterials() {
|
||||
|
||||
@@ -355,7 +355,7 @@ static aiMaterial *ImportMaterial(std::vector<int> &embeddedTexIdxs, Asset &r, M
|
||||
if (mat.materialIOR.isPresent) {
|
||||
MaterialIOR &ior = mat.materialIOR.value;
|
||||
|
||||
aimat->AddProperty(&ior.ior, 1, AI_MATKEY_IOR);
|
||||
aimat->AddProperty(&ior.ior, 1, AI_MATKEY_REFRACTI);
|
||||
}
|
||||
|
||||
return aimat;
|
||||
|
||||
Reference in New Issue
Block a user