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

Macros

#define LOCTEXT_NAMESPACE   "SkyLightComponent"
 

Functions

void OnUpdateSkylights (UWorld *InWorld)
 
FAutoConsoleVariableRef CVarSkylightIntensityMultiplier (TEXT("r.SkylightIntensityMultiplier"), GSkylightIntensityMultiplier, TEXT("Intensity scale on Stationary and Movable skylights. This is useful to control overall lighting contrast in dynamically lit games with scalability levels which disable Ambient Occlusion. For example, if medium quality disables SSAO and DFAO, reduce skylight intensity."), ECVF_Scalability|ECVF_RenderThreadSafe)
 
void OnChangeSkylightRealTimeReflectionCapture (IConsoleVariable *Var)
 
FAutoConsoleVariableRef CVarSkylightRealTimeReflectionCapture (TEXT("r.SkyLight.RealTimeReflectionCapture"), GSkylightRealTimeReflectionCapture, TEXT("Make sure the sky light real time capture is not run on platform where it is considered out of budget. Cannot be changed at runtime."), FConsoleVariableDelegate::CreateStatic(&OnChangeSkylightRealTimeReflectionCapture), ECVF_Scalability)
 

Variables

FAutoConsoleCommandWithWorld CaptureConsoleCommand (TEXT("r.SkylightRecapture"), TEXT("Updates all stationary and movable skylights, useful for debugging the capture pipeline"), FConsoleCommandWithWorldDelegate::CreateStatic(OnUpdateSkylights))
 
int32 GUpdateSkylightsEveryFrame = 0
 
FAutoConsoleVariableRef CVarUpdateSkylightsEveryFrame (TEXT("r.SkylightUpdateEveryFrame"), GUpdateSkylightsEveryFrame, TEXT("Whether to update all skylights every frame. Useful for debugging."), ECVF_Default)
 
float GSkylightIntensityMultiplier = 1.0f
 
int32 GSkylightRealTimeReflectionCapture = 1
 
int32 GSkylightCubemapMaxResolution = -1
 
FAutoConsoleVariableRef CVarSkylightCubemapMaxResolution (TEXT("r.SkyLight.CubemapMaxResolution"), GSkylightCubemapMaxResolution,)
 
constexpr EPixelFormat SKYLIGHT_CUBEMAP_FORMAT = PF_FloatRGBA
 

Macro Definition Documentation

◆ LOCTEXT_NAMESPACE

#define LOCTEXT_NAMESPACE   "SkyLightComponent"

Function Documentation

◆ CVarSkylightIntensityMultiplier()

FAutoConsoleVariableRef CVarSkylightIntensityMultiplier ( TEXT("r.SkylightIntensityMultiplier")  ,
GSkylightIntensityMultiplier  ,
TEXT("Intensity scale on Stationary and Movable skylights. This is useful to control overall lighting contrast in dynamically lit games with scalability levels which disable Ambient Occlusion. For example, if medium quality disables SSAO and DFAO, reduce skylight intensity." ,
ECVF_Scalability ECVF_RenderThreadSafe 
)

◆ CVarSkylightRealTimeReflectionCapture()

FAutoConsoleVariableRef CVarSkylightRealTimeReflectionCapture ( TEXT("r.SkyLight.RealTimeReflectionCapture")  ,
GSkylightRealTimeReflectionCapture  ,
TEXT("Make sure the sky light real time capture is not run on platform where it is considered out of budget. Cannot be changed at runtime." ,
FConsoleVariableDelegate::CreateStatic &  OnChangeSkylightRealTimeReflectionCapture,
ECVF_Scalability   
)

◆ OnChangeSkylightRealTimeReflectionCapture()

void OnChangeSkylightRealTimeReflectionCapture ( IConsoleVariable Var)

◆ OnUpdateSkylights()

void OnUpdateSkylights ( UWorld InWorld)

Variable Documentation

◆ CaptureConsoleCommand

FAutoConsoleCommandWithWorld CaptureConsoleCommand(TEXT("r.SkylightRecapture"), TEXT("Updates all stationary and movable skylights, useful for debugging the capture pipeline"), FConsoleCommandWithWorldDelegate::CreateStatic(OnUpdateSkylights)) ( TEXT("r.SkylightRecapture")  ,
TEXT("Updates all stationary and movable skylights, useful for debugging the capture pipeline" ,
FConsoleCommandWithWorldDelegate::CreateStatic(OnUpdateSkylights  
)

◆ CVarSkylightCubemapMaxResolution

FAutoConsoleVariableRef CVarSkylightCubemapMaxResolution(TEXT("r.SkyLight.CubemapMaxResolution"), GSkylightCubemapMaxResolution,) ( TEXT("r.SkyLight.CubemapMaxResolution")  ,
GSkylightCubemapMaxResolution   
)

◆ CVarUpdateSkylightsEveryFrame

FAutoConsoleVariableRef CVarUpdateSkylightsEveryFrame(TEXT("r.SkylightUpdateEveryFrame"), GUpdateSkylightsEveryFrame, TEXT("Whether to update all skylights every frame. Useful for debugging."), ECVF_Default) ( TEXT("r.SkylightUpdateEveryFrame")  ,
GUpdateSkylightsEveryFrame  ,
TEXT("Whether to update all skylights every frame. Useful for debugging." ,
ECVF_Default   
)

◆ GSkylightCubemapMaxResolution

int32 GSkylightCubemapMaxResolution = -1

◆ GSkylightIntensityMultiplier

float GSkylightIntensityMultiplier = 1.0f

◆ GSkylightRealTimeReflectionCapture

int32 GSkylightRealTimeReflectionCapture = 1

◆ GUpdateSkylightsEveryFrame

int32 GUpdateSkylightsEveryFrame = 0

◆ SKYLIGHT_CUBEMAP_FORMAT

constexpr EPixelFormat SKYLIGHT_CUBEMAP_FORMAT = PF_FloatRGBA
constexpr