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

Macros

#define FREE_LIST_GROW_SIZE   ( 16384 / sizeof(FLightPrimitiveInteraction) )
 

Functions

FAutoConsoleVariableRef CVarUnbuiltPreviewShadowsInGame (TEXT("r.Shadow.UnbuiltPreviewInGame"), GUnbuiltPreviewShadowsInGame, TEXT("Whether to render unbuilt preview shadows in game. When enabled and lighting is not built, expensive preview shadows will be rendered in game. When disabled, lighting in game and editor won't match which can appear to be a bug."), ECVF_Scalability|ECVF_RenderThreadSafe)
 
bool ShouldCreateObjectShadowForStationaryLight (const FLightSceneInfo *LightSceneInfo, const FPrimitiveSceneProxy *PrimitiveSceneProxy, bool bInteractionShadowMapped)
 

Variables

int32 GUnbuiltPreviewShadowsInGame = 1
 
TAllocatorFixedSizeFreeList< sizeof(FLightPrimitiveInteraction), FREE_LIST_GROW_SIZEGLightPrimitiveInteractionAllocator
 

Macro Definition Documentation

◆ FREE_LIST_GROW_SIZE

#define FREE_LIST_GROW_SIZE   ( 16384 / sizeof(FLightPrimitiveInteraction) )

Fixed Size pool allocator for FLightPrimitiveInteractions

Function Documentation

◆ CVarUnbuiltPreviewShadowsInGame()

FAutoConsoleVariableRef CVarUnbuiltPreviewShadowsInGame ( TEXT("r.Shadow.UnbuiltPreviewInGame")  ,
GUnbuiltPreviewShadowsInGame  ,
TEXT("Whether to render unbuilt preview shadows in game. When enabled and lighting is not built, expensive preview shadows will be rendered in game. When disabled, lighting in game and editor won't match which can appear to be a bug." ,
ECVF_Scalability ECVF_RenderThreadSafe 
)

◆ ShouldCreateObjectShadowForStationaryLight()

bool ShouldCreateObjectShadowForStationaryLight ( const FLightSceneInfo LightSceneInfo,
const FPrimitiveSceneProxy PrimitiveSceneProxy,
bool  bInteractionShadowMapped 
)
extern

Variable Documentation

◆ GLightPrimitiveInteractionAllocator

◆ GUnbuiltPreviewShadowsInGame

int32 GUnbuiltPreviewShadowsInGame = 1