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

@@ -281,6 +281,9 @@ static aiMaterial* ImportMaterial(std::vector<int>& embeddedTexIdxs, Asset& r, M
SetMaterialTextureProperty(embeddedTexIdxs, r, pbrSG.specularGlossinessTexture, aimat, aiTextureType_SPECULAR);
}
if (mat.unlit) {
aimat->AddProperty(&mat.unlit, 1, AI_MATKEY_GLTF_UNLIT);
}
return aimat;
}