![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ScenePrivate.h>
Inheritance diagram for FIndirectLightingCache:Friends | |
| class | FUpdateCachePrimitivesTask |
Implements a volume texture atlas for caching indirect lighting on a per-object basis. The indirect lighting is interpolated from Lightmass SH volume lighting samples.
| FIndirectLightingCache::FIndirectLightingCache | ( | ERHIFeatureLevel::Type | InFeatureLevel | ) |
true for the editor case where we want a better preview for object that have no valid lightmaps
| FIndirectLightingCacheAllocation * FIndirectLightingCache::AllocatePrimitive | ( | const FPrimitiveSceneInfo * | PrimitiveSceneInfo, |
| bool | bUnbuiltPreview | ||
| ) |
Allocates a block in the volume texture atlas for a primitive.
| void FIndirectLightingCache::FinalizeCacheUpdates | ( | FScene * | Scene, |
| FSceneRenderer & | Renderer, | ||
| FILCUpdatePrimTaskData & | TaskData | ||
| ) |
Wait on a previously started task and complete any block updates and debug draw
| FIndirectLightingCacheAllocation * FIndirectLightingCache::FindPrimitiveAllocation | ( | FPrimitiveComponentId | PrimitiveId | ) | const |
|
inline |
|
inline |
|
inline |
|
virtual |
Initializes the RHI resources used by this resource. Called when entering the state where both the resource and the RHI have been initialized. This is only called by the rendering thread.
Reimplemented from FRenderResource.
| void FIndirectLightingCache::ReleasePrimitive | ( | FPrimitiveComponentId | PrimitiveId | ) |
Releases the indirect lighting allocation for the given primitive.
|
virtual |
Releases the RHI resources used by this resource. Called when leaving the state where both the resource and the RHI have been initialized. This is only called by the rendering thread.
Reimplemented from FRenderResource.
| void FIndirectLightingCache::SetLightingCacheDirty | ( | FScene * | Scene, |
| const FPrecomputedLightVolume * | Volume | ||
| ) |
Force all primitive allocations to be re-interpolated.
| void FIndirectLightingCache::StartUpdateCachePrimitivesTask | ( | FScene * | Scene, |
| FSceneRenderer & | Renderer, | ||
| bool | bAllowUnbuiltPreview, | ||
| FILCUpdatePrimTaskData & | OutTaskData | ||
| ) |
Starts a task to update the cache primitives. Results and task ref returned in the FILCUpdatePrimTaskData structure
| void FIndirectLightingCache::UpdateCache | ( | FScene * | Scene, |
| FSceneRenderer & | Renderer, | ||
| bool | bAllowUnbuiltPreview | ||
| ) |
Updates indirect lighting in the cache based on visibility synchronously.
|
friend |