UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MegaLightsSampling.cpp File Reference
#include "MegaLights.h"
#include "MegaLightsInternal.h"
#include "RendererPrivate.h"
#include "HairStrandsInterface.h"

Classes

class  FGenerateLightSamplesCS
 
class  FVolumeGenerateLightSamplesCS
 
class  FClearLightSamplesCS
 

Namespaces

namespace  MegaLights
 

Functions

float MegaLights::GetDirectionalLightSampleRatio ()
 
 IMPLEMENT_GLOBAL_SHADER (FGenerateLightSamplesCS, "/Engine/Private/MegaLights/MegaLightsSampling.usf", "GenerateLightSamplesCS", SF_Compute)
 
 IMPLEMENT_GLOBAL_SHADER (FVolumeGenerateLightSamplesCS, "/Engine/Private/MegaLights/MegaLightsVolumeSampling.usf", "VolumeGenerateLightSamplesCS", SF_Compute)
 
 IMPLEMENT_GLOBAL_SHADER (FClearLightSamplesCS, "/Engine/Private/MegaLights/MegaLightsSampling.usf", "ClearLightSamplesCS", SF_Compute)
 

Function Documentation

◆ IMPLEMENT_GLOBAL_SHADER() [1/3]

IMPLEMENT_GLOBAL_SHADER ( FClearLightSamplesCS  ,
"/Engine/Private/MegaLights/MegaLightsSampling.usf"  ,
"ClearLightSamplesCS"  ,
SF_Compute   
)

◆ IMPLEMENT_GLOBAL_SHADER() [2/3]

IMPLEMENT_GLOBAL_SHADER ( FGenerateLightSamplesCS  ,
"/Engine/Private/MegaLights/MegaLightsSampling.usf"  ,
"GenerateLightSamplesCS"  ,
SF_Compute   
)

◆ IMPLEMENT_GLOBAL_SHADER() [3/3]

IMPLEMENT_GLOBAL_SHADER ( FVolumeGenerateLightSamplesCS  ,
"/Engine/Private/MegaLights/MegaLightsVolumeSampling.usf"  ,
"VolumeGenerateLightSamplesCS"  ,
SF_Compute   
)