Add DIFFUSE_ROUGHNESS_TEXTURE for gltf2 exporter

pull/5170/head
zhucan 2023-07-03 23:27:58 +08:00
parent 72c10d856f
commit 32716002ac
1 changed files with 1 additions and 0 deletions

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