API

Class FrameGraphLightingVolumeTask

Task used to create a lighting volume from a directional light's shadow generator.

Hierarchy (View Summary)

Index
dependencies?: Set<FrameGraphTextureHandle>

The (texture) dependencies of the task (optional).

lightingVolume: LightingVolume

The lighting volume created by this task.

onAfterTaskExecute: Observable<FrameGraphTask> = ...

An observable that is triggered after the task is executed.

onBeforeTaskExecute: Observable<FrameGraphTask> = ...

An observable that is triggered before the task is executed.

onTexturesAllocatedObservable: Observable<FrameGraphRenderContext> = ...

An observable that is triggered after the textures have been allocated.

outputMeshLightingVolume: FrameGraphObjectList

The output object list containing the lighting volume mesh. You can get the mesh by doing outputMeshLightingVolume.meshes[0]

shadowGenerator: FrameGraphShadowGeneratorTask

The shadow generator used to create the lighting volume.

  • This function is called once after the task has been added to the frame graph and before the frame graph is built for the first time. This allows you to initialize asynchronous resources, which is not possible in the constructor.

    Returns Promise<unknown>

    A promise that resolves when the initialization is complete.