瀏覽代碼

Add DIFFUSE_ROUGHNESS_TEXTURE for gltf2 exporter

zhucan 2 年之前
父節點
當前提交
32716002ac
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      code/AssetLib/glTF2/glTF2Exporter.cpp

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

@@ -870,6 +870,7 @@ void glTF2Exporter::ExportMaterials() {
             }
         }
 
+        GetMatTex(mat, m->normalTexture, aiTextureType_DIFFUSE_ROUGHNESS);
         GetMatTex(mat, m->normalTexture, aiTextureType_NORMALS);
         GetMatTex(mat, m->occlusionTexture, aiTextureType_LIGHTMAP);
         GetMatTex(mat, m->emissiveTexture, aiTextureType_EMISSIVE);