UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FTranslucentLightInjectionCollector Struct Reference

#include <TranslucentLighting.h>

Classes

struct  FInjectionData
 
struct  FPerViewData
 

Public Types

typedef TArray< FInjectionData, SceneRenderingAllocatorFInjectionDataArray
 

Public Member Functions

 FTranslucentLightInjectionCollector (FRDGBuilder &GraphBuilder, TArrayView< const FViewInfo > Views, bool bAreLightsInLightGrid)
 
void AddLightForInjection (const FViewInfo &View, const uint32 ViewIndex, TArrayView< const FVisibleLightInfo > VisibleLightInfos, const FLightSceneInfo &LightSceneInfo, const FProjectedShadowInfo *InProjectedShadowInfo=nullptr)
 

Public Attributes

TArray< FPerViewData, SceneRenderingAllocator > & InjectionDataPerView
 

Detailed Description

Utility for batching together multiple lighting injections

Member Typedef Documentation

◆ FInjectionDataArray

Constructor & Destructor Documentation

◆ FTranslucentLightInjectionCollector()

FTranslucentLightInjectionCollector::FTranslucentLightInjectionCollector ( FRDGBuilder GraphBuilder,
TArrayView< const FViewInfo Views,
bool  bAreLightsInLightGrid 
)

Member Function Documentation

◆ AddLightForInjection()

void FTranslucentLightInjectionCollector::AddLightForInjection ( const FViewInfo View,
const uint32  ViewIndex,
TArrayView< const FVisibleLightInfo VisibleLightInfos,
const FLightSceneInfo LightSceneInfo,
const FProjectedShadowInfo InProjectedShadowInfo = nullptr 
)

Adds a light to LightInjectionData if it should be injected into the translucent volume, and caches relevant information in a FTranslucentLightInjectionData.

Parameters
InProjectedShadowInfois 0 for unshadowed lights

Member Data Documentation

◆ InjectionDataPerView

TArray<FPerViewData, SceneRenderingAllocator>& FTranslucentLightInjectionCollector::InjectionDataPerView

The documentation for this struct was generated from the following files: