Module |
|
Header |
/Engine/Source/Runtime/StaticMeshDescription/Public/StaticMeshOperations.h |
Include |
#include "StaticMeshOperations.h" |
Source |
/Engine/Source/Runtime/StaticMeshDescription/Private/StaticMeshOperations.cpp |
static bool CreateLightMapUVLayout
(
FMeshDescription & MeshDescription,
int32 SrcLightmapIndex,
int32 DstLightmapIndex,
int32 MinLightmapResolution,
ELightmapUVVersion LightmapUVVersion,
const FOverlappingCorners & OverlappingCorners
)
Find and pack UV charts for lightmap. The packing algorithm uses a rasterization method, hence the resolution parameter.
If the given minimum resolution is not enough to handle all the charts, generation will fail.
UV layout correctly generated
Parameter |
Description |
---|---|
MeshDescription |
Edited mesh |
SrcLightmapIndex |
index of the source UV channel |
DstLightmapIndex |
index of the destination UV channel |
MinLightmapResolution |
Minimum resolution used for the packing |
LightmapUVVersion |
Algorithm version |
OverlappingCorners |
Overlapping corners of the given mesh |