Read and write the KHR_materials_unlit glTF/2.0 extension.
This commit is contained in:
committed by
gstanlo
parent
f8c4891acf
commit
a1a17c1dda
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user