UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MegaLightsInternal.h File Reference
#include "CoreMinimal.h"
#include "RendererPrivate.h"
#include "BlueNoise.h"
#include "MegaLightsDefinitions.h"

Go to the source code of this file.

Classes

class  FMegaLightsViewContext
 

Namespaces

namespace  MegaLights
 
namespace  MegaLightsVolume
 
namespace  MegaLightsTranslucencyVolume
 

Enumerations

enum class  EMegaLightsInput : uint8 { GBuffer , HairStrands , Count }
 
enum class  MegaLights::ETileType : uint8 {
  MegaLights::SimpleShading = TILE_MODE_SIMPLE_SHADING , MegaLights::ComplexShading = TILE_MODE_COMPLEX_SHADING , MegaLights::SimpleShading_Rect = TILE_MODE_SIMPLE_SHADING_RECT , MegaLights::ComplexShading_Rect = TILE_MODE_COMPLEX_SHADING_RECT ,
  MegaLights::SimpleShading_Rect_Textured = TILE_MODE_SIMPLE_SHADING_RECT_TEXTURED , MegaLights::ComplexShading_Rect_Textured = TILE_MODE_COMPLEX_SHADING_RECT_TEXTURED , MegaLights::SHADING_MAX_LEGACY = TILE_MODE_EMPTY , MegaLights::Empty = TILE_MODE_EMPTY ,
  MegaLights::MAX_LEGACY = TILE_MODE_MAX_LEGACY , MegaLights::SHADING_MIN_SUBSTRATE = TILE_MODE_SINGLE_SHADING , MegaLights::SingleShading = TILE_MODE_SINGLE_SHADING , MegaLights::ComplexSpecialShading = TILE_MODE_COMPLEX_SPECIAL_SHADING ,
  MegaLights::SingleShading_Rect = TILE_MODE_SINGLE_SHADING_RECT , MegaLights::ComplexSpecialShading_Rect = TILE_MODE_COMPLEX_SPECIAL_SHADING_RECT , MegaLights::SingleShading_Rect_Textured = TILE_MODE_SINGLE_SHADING_RECT_TEXTURED , MegaLights::ComplexSpecialShading_Rect_Textured = TILE_MODE_COMPLEX_SPECIAL_SHADING_RECT_TEXTURED ,
  MegaLights::SHADING_MAX_SUBSTRATE = TILE_MODE_MAX , MegaLights::MAX_SUBSTRATE = TILE_MODE_MAX
}
 

Functions

void MegaLights::RayTraceLightSamples (const FSceneViewFamily &ViewFamily, const FViewInfo &View, int32 ViewIndex, FRDGBuilder &GraphBuilder, const FSceneTextures &SceneTextures, const FVirtualShadowMapArray *VirtualShadowMapArray, const TArrayView< FRDGTextureRef > NaniteShadingMasks, const FIntPoint SampleBufferSize, FRDGTextureRef LightSamples, FRDGTextureRef LightSampleRays, FIntVector VolumeSampleBufferSize, FRDGTextureRef VolumeLightSamples, FRDGTextureRef VolumeLightSampleRays, FIntVector TranslucencyVolumeSampleBufferSize, TArrayView< FRDGTextureRef > TranslucencyVolumeLightSamples, TArrayView< FRDGTextureRef > TranslucencyVolumeLightSampleRays, const FMegaLightsParameters &MegaLightsParameters, const FMegaLightsVolumeParameters &MegaLightsVolumeParameters, const FMegaLightsVolumeParameters &MegaLightsTranslucencyVolumeParameters, EMegaLightsInput InputType, bool bDebug)
 
void MegaLights::MarkVSMPages (const FViewInfo &View, int32 ViewIndex, FRDGBuilder &GraphBuilder, const FVirtualShadowMapArray &VirtualShadowMapArray, const FIntPoint SampleBufferSize, FRDGTextureRef LightSamples, FRDGTextureRef LightSampleRays, const FMegaLightsParameters &MegaLightsParameters, EMegaLightsInput InputType)
 
bool MegaLights::UseWaveOps (EShaderPlatform ShaderPlatform)
 
EPixelFormat MegaLights::GetLightingDataFormat ()
 
bool MegaLights::IsDebugEnabledForShadingPass (int32 ShadingPassIndex, EShaderPlatform InPlatform)
 
int32 MegaLights::GetDebugMode (EMegaLightsInput InputType)
 
FIntPoint MegaLights::GetNumSamplesPerPixel2d (EMegaLightsInput InputType)
 
FIntPoint MegaLights::GetNumSamplesPerPixel2d (int32 NumSamplesPerPixel1d)
 
FIntVector MegaLights::GetNumSamplesPerVoxel3d (int32 NumSamplesPerVoxel1d)
 
bool MegaLights::SupportsSpatialFilter (EMegaLightsInput InputType)
 
bool MegaLights::UseSpatialFilter ()
 
bool MegaLights::UseTemporalFilter ()
 
void MegaLights::ModifyCompilationEnvironment (EShaderPlatform Platform, FShaderCompilerEnvironment &OutEnvironment)
 
bool MegaLights::IsRectLightTileType (ETileType TileType)
 
bool MegaLights::IsTexturedLightTileType (ETileType TileType)
 
bool MegaLights::IsComplexTileType (ETileType TileType)
 
TArray< int32MegaLights::GetShadingTileTypes (EMegaLightsInput InputType)
 
const TCHARMegaLights::GetTileTypeString (ETileType TileType)
 
int32 MegaLightsVolume::GetDebugMode ()
 
bool MegaLightsVolume::UsesLightFunction ()
 
int32 MegaLightsTranslucencyVolume::GetDebugMode ()
 
bool MegaLightsTranslucencyVolume::UsesLightFunction ()
 

Enumeration Type Documentation

◆ EMegaLightsInput

enum class EMegaLightsInput : uint8
strong
Enumerator
GBuffer 
HairStrands 
Count