UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LightMap.cpp File Reference

Classes

struct  FLegacyLightMapTextureInfo
 

Macros

#define VISUALIZE_PACKING   0
 

Functions

 DEFINE_LOG_CATEGORY_STATIC (LogLightMap, Log, All)
 
ENGINE_API FColor GTexelSelectionColor (255, 50, 0)
 
bool IsTexelDebuggingEnabled ()
 
FArchiveoperator<< (FArchive &Ar, FLightMap *&R)
 
FArchiveoperator<< (FArchive &Ar, FLightMapCoefficients &Coefs)
 

Variables

FLightmassDebugOptions GLightmassDebugOptions
 
bool GUseBilinearLightmaps = true
 
bool GAllowLightmapPadding = true
 
ENGINE_API int32 GLightmapCounter = 0
 
ENGINE_API bool GCompressLightmaps = true
 
ENGINE_API bool GAllowStreamingLightmaps = false
 
ENGINE_API float GMaxLightmapRadius = 5000.0f
 
ELightingBuildQuality GLightingBuildQuality = Quality_Preview
 
float TextureMappingDownsampleFactor0 = 1.0f
 
int32 TextureMappingMinDownsampleSize0 = 16
 
float TextureMappingDownsampleFactor1 = 1.0f
 
int32 TextureMappingMinDownsampleSize1 = 128
 
float TextureMappingDownsampleFactor2 = 1.0f
 
int32 TextureMappingMinDownsampleSize2 = 256
 

Macro Definition Documentation

◆ VISUALIZE_PACKING

#define VISUALIZE_PACKING   0

Function Documentation

◆ DEFINE_LOG_CATEGORY_STATIC()

DEFINE_LOG_CATEGORY_STATIC ( LogLightMap  ,
Log  ,
All   
)

◆ GTexelSelectionColor()

ENGINE_API FColor GTexelSelectionColor ( 255  ,
50  ,
 
)

The color to set selected texels to

◆ IsTexelDebuggingEnabled()

bool IsTexelDebuggingEnabled ( )

◆ operator<<() [1/2]

FArchive & operator<< ( FArchive Ar,
FLightMap *&  R 
)

Lightmap reference serializer Intended to be used by TRefCountPtr's serializer, not called directly

◆ operator<<() [2/2]

FArchive & operator<< ( FArchive Ar,
FLightMapCoefficients Coefs 
)

Variable Documentation

◆ GAllowLightmapPadding

bool GAllowLightmapPadding = true

Whether to allow padding around mappings.

◆ GAllowStreamingLightmaps

ENGINE_API bool GAllowStreamingLightmaps = false

Whether to allow lighting builds to generate streaming lightmaps.

◆ GCompressLightmaps

ENGINE_API bool GCompressLightmaps = true

Whether to compress lightmaps. Reloaded from ini each lighting build.

◆ GLightingBuildQuality

ELightingBuildQuality GLightingBuildQuality = Quality_Preview

The quality level of the current lighting build

◆ GLightmapCounter

ENGINE_API int32 GLightmapCounter = 0

Counts the number of lightmap textures generated each lighting build.

◆ GLightmassDebugOptions

FLightmassDebugOptions GLightmassDebugOptions

◆ GMaxLightmapRadius

ENGINE_API float GMaxLightmapRadius = 5000.0f

Largest boundingsphere radius to use when packing lightmaps into a texture atlas.

◆ GUseBilinearLightmaps

bool GUseBilinearLightmaps = true

Whether to use bilinear filtering on lightmaps

◆ TextureMappingDownsampleFactor0

float TextureMappingDownsampleFactor0 = 1.0f

Lightmap resolution scaling factors for debugging. The defaults are to use the original resolution unchanged.

◆ TextureMappingDownsampleFactor1

float TextureMappingDownsampleFactor1 = 1.0f

◆ TextureMappingDownsampleFactor2

float TextureMappingDownsampleFactor2 = 1.0f

◆ TextureMappingMinDownsampleSize0

int32 TextureMappingMinDownsampleSize0 = 16

◆ TextureMappingMinDownsampleSize1

int32 TextureMappingMinDownsampleSize1 = 128

◆ TextureMappingMinDownsampleSize2

int32 TextureMappingMinDownsampleSize2 = 256