Navigation
API > API/Developer > API/Developer/MeshDescriptionOperations > API/Developer/MeshDescriptionOperations/FMeshDescriptionOperations
Description
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.
| Name | CreateLightMapUVLayout |
| Type | function |
| Header File | /Engine/Source/Developer/MeshDescriptionOperations/Public/MeshDescriptionOperations.h |
| Include Path | #include "MeshDescriptionOperations.h" |
| Source | /Engine/Source/Developer/MeshDescriptionOperations/Private/MeshDescriptionOperations.cpp |
static bool CreateLightMapUVLayout
(
FMeshDescription & MeshDescription,
int32 SrcLightmapIndex,
int32 DstLightmapIndex,
int32 MinLightmapResolution,
ELightmapUVVersion LightmapUVVersion,
const FOverlappingCorners & OverlappingCorners
)
UV layout correctly generated
Parameters
| Name | Remarks |
|---|---|
| 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 |