Browse Source

adjust comment

zhucan 2 years ago
parent
commit
d07934bf25
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/AssetLib/glTF2/glTF2Exporter.cpp

+ 1 - 1
code/AssetLib/glTF2/glTF2Exporter.cpp

@@ -844,7 +844,7 @@ void glTF2Exporter::ExportMaterials() {
         }
         }
 
 
         if (!m->pbrMetallicRoughness.metallicRoughnessTexture.texture) {
         if (!m->pbrMetallicRoughness.metallicRoughnessTexture.texture) {
-            // if there still wasn't a aiTextureType_METALNESS defined in the source, fallback to unknown texture
+            // if there still wasn't a aiTextureType_METALNESS defined in the source, fallback to AI_MATKEY_GLTF_PBRMETALLICROUGHNESS_METALLICROUGHNESS_TEXTURE
             GetMatTex(mat, m->pbrMetallicRoughness.metallicRoughnessTexture, AI_MATKEY_GLTF_PBRMETALLICROUGHNESS_METALLICROUGHNESS_TEXTURE);
             GetMatTex(mat, m->pbrMetallicRoughness.metallicRoughnessTexture, AI_MATKEY_GLTF_PBRMETALLICROUGHNESS_METALLICROUGHNESS_TEXTURE);
         }
         }