Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FAnalyzeReferencedContentStat > API/Editor/UnrealEd/FAnalyzeReferencedContentStat/FLightingOptimizationStats
Description
Assuming DXT1 lightmaps... 4 bits/pixel * width * height = Highest MIP Level * 1.333 MIP Factor for approx usage for a full mip chain Either 1 or 3 textures if we're doing simple or directional (3-axis) lightmap Most lightmaps require a second UV channel which is probably an extra 4 bytes (2 floats compressed to SHORT)
| Name | CalculateLightmapLightingBytesUsed |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Commandlets/AnalyzeReferencedContentStat.h |
| Include Path | #include "Commandlets/AnalyzeReferencedContentStat.h" |
static int32 CalculateLightmapLightingBytesUsed
(
int32 Width,
int32 Height,
int32 NumVertices,
int32 UVChannelIndex
)