CombineMeshInstances: add support for skipping face merging on specified Material IDs

#rb none

[CL 26705748 by ryan schmidt in 5.3 branch]
This commit is contained in:
ryan schmidt
2023-07-31 10:21:58 -04:00
parent bdcde08690
commit b3206bb042
2 changed files with 36 additions and 8 deletions

View File

@@ -226,6 +226,10 @@ public:
// Can significantly reduce triangle count, but attributes on the interiors of polygonal areas will be completely discarded
int32 PlanarPolygonRetriangulationStartLOD = -1;
// Triangles with Materials assigned that are also in this set will not be allowed to be combined/retriangulated
// with adjacent triangles. This can be used to preserve topology/UVs/etc for specific material areas.
TArray<UMaterialInterface*> PreventMergingMaterialSet;
// If enabled, attempt to retriangulate planar areas of Source LODs to remove redundant coplanar geometry.
// This option affects individual parts and not the combined prefab.
bool bRetriangulateSourceLODs = true;