Read and write the KHR_materials_unlit glTF/2.0 extension.

This commit is contained in:
Stanlo Slasinski
2018-05-18 14:01:25 -07:00
committed by gstanlo
parent f8c4891acf
commit a1a17c1dda
7 changed files with 30 additions and 0 deletions

View File

@@ -526,6 +526,12 @@ void glTF2Exporter::ExportMaterials()
m->pbrSpecularGlossiness = Nullable<PbrSpecularGlossiness>(pbrSG);
}
bool unlit;
if (mat->Get(AI_MATKEY_GLTF_UNLIT, unlit) == AI_SUCCESS && unlit) {
mAsset->extensionsUsed.KHR_materials_unlit = true;
m->unlit = true;
}
}
}