Enabled by default. When disabled UVs are not lerped in the simplifier. This is useful when data stored in UVs isn't valid to interpolate, for example indexes.
Fixed long standing bug where locked boundary verts still would get attributes recalculated when taking part in an edge collapse. This results in them not matching when later merged with their neighbor, causing attribute discontinuities where they previously weren't. That will degrade further simplification, bloat vertex work, bloat vertex storage, and generally look worse.
Can reduce rendered vertex count by 14% and disk size by 3%.
#rb rune.stubbe, graham.wihlidal
#lockdown marc.audy
[CL 27715715 by Brian Karis in ue5-main branch]
-Linux doesn't compile because fopen_s is not a standard function
-Missing include for Math/RandomStream.h
#preflight skip
[FYI] juan.canada, brian.karis, graham.wihlidal
[CL 22260785 by rune stubbe in ue5-main branch]
This aims to preserve the surface area during simplification. If area is lost, open boundary edges of the mesh are dilated to compensate. This is useful for foliage that tends to thin out in the distance if not enabled.
Also include misc fixes:
Collapses that completely remove disjoint triangles have an error of the area of what was removed.
Would not alias 0 and -0 verts due to binary comparison.
#rb graham.wihlidal
#preflight 63349e32141f314ed601978d
#ushell-cherrypick of 22229630 by Brian.Karis
#preflight 6334c401f418a1071a35b4a4
[CL 22260505 by graham wihlidal in ue5-main branch]
Change mesh simplifier settings to match closer to what they used to be to prevent large changes in LOD distances from ue4 to ue5.
#rb michal.valient
#jira UE-144622
#preflight 622bf219902b7ca699eb7c53
#ROBOMERGE-AUTHOR: brian.karis
#ROBOMERGE-SOURCE: CL 19378057 in //UE5/Release-5.0/... via CL 19379381
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)
[CL 19379859 by brian karis in ue5-main branch]
The reason why I switched from bias to scale was to put the penalities in the same relative spectrum of the collapses being considered. Degree should probably still be more like that but for now it's safer to just go back to what this was before.
[CL 14808423 by Brian Karis in ue5-main branch]