Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/LightMap.h |
| Include | #include "LightMap.h" |
template<class TMappingData>
void CropUnmappedTexels
(
const TMappingData & MappingData,
int32 SizeX,
int32 SizeY,
FIntRect & CroppedRect
)
Remarks
Calculates the minimum rectangle that encompasses all mapped texels.
Parameters
| Name | Description |
|---|---|
| MappingData | Array of lightmap/shadowmap texels |
| SizeX | Number of texels along the X-axis |
| SizeY | Number of texels along the Y-axis |
| CroppedRect | [out] Upon return, contains the minimum rectangle that encompasses all mapped texels |