fix: KHR_materials_pbrSpecularGlossiness/diffuseFactor convert to pbrMetallicRoughness/baseColorFactor

pull/4783/head^2
tangxin 2024-01-05 10:02:26 +08:00 committed by Kim Kulling
parent ec122eb348
commit 9776d47cca
1 changed files with 1 additions and 0 deletions

View File

@ -912,6 +912,7 @@ void glTF2Exporter::ExportMaterials() {
if (GetMatSpecular(mat, specular)) { if (GetMatSpecular(mat, specular)) {
mAsset->extensionsUsed.KHR_materials_specular = true; mAsset->extensionsUsed.KHR_materials_specular = true;
m->materialSpecular = Nullable<MaterialSpecular>(specular); m->materialSpecular = Nullable<MaterialSpecular>(specular);
GetMatColor(mat, m->pbrMetallicRoughness.baseColorFactor, AI_MATKEY_COLOR_DIFFUSE);
} }
MaterialSheen sheen; MaterialSheen sheen;