Add DIFFUSE_ROUGHNESS_TEXTURE for gltf2 exporter

This commit is contained in:
zhucan
2023-07-03 23:27:58 +08:00
parent 72c10d856f
commit 32716002ac

View File

@@ -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);