|
@@ -107,10 +107,6 @@ glTF2Exporter::glTF2Exporter(const char* filename, IOSystem* pIOSystem, const ai
|
|
|
|
|
|
ExportMetadata();
|
|
ExportMetadata();
|
|
|
|
|
|
- if (mScene->mRootNode) {
|
|
|
|
- ExportExtensions(mScene->mRootNode);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
ExportMaterials();
|
|
ExportMaterials();
|
|
|
|
|
|
if (mScene->mRootNode) {
|
|
if (mScene->mRootNode) {
|
|
@@ -789,20 +785,6 @@ void glTF2Exporter::ExportMetadata()
|
|
asset.generator = buffer;
|
|
asset.generator = buffer;
|
|
}
|
|
}
|
|
|
|
|
|
-void glTF2Exporter::ExportExtensions(const aiNode* n)
|
|
|
|
-{
|
|
|
|
- aiMetadata* mMetaData = n->mMetaData;
|
|
|
|
-
|
|
|
|
- if (mMetaData != nullptr) {
|
|
|
|
- bool pbrSpecularGlossiness;
|
|
|
|
-
|
|
|
|
- if (mMetaData->Get("extensionsUsed.pbrSpecularGlossiness", pbrSpecularGlossiness)) {
|
|
|
|
- mAsset->extensionsUsed.KHR_materials_pbrSpecularGlossiness = pbrSpecularGlossiness;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
inline void ExtractAnimationData(Asset& mAsset, std::string& animId, Ref<Animation>& animRef, Ref<Buffer>& buffer, const aiNodeAnim* nodeChannel, float ticksPerSecond)
|
|
inline void ExtractAnimationData(Asset& mAsset, std::string& animId, Ref<Animation>& animRef, Ref<Buffer>& buffer, const aiNodeAnim* nodeChannel, float ticksPerSecond)
|
|
{
|
|
{
|
|
// Loop over the data and check to see if it exactly matches an existing buffer.
|
|
// Loop over the data and check to see if it exactly matches an existing buffer.
|