API

Class FrameGraphCullObjectsTask

Task used to cull objects that are not visible.

Hierarchy (View Summary)

Index
camera: Camera

The camera to use for culling.

dependencies?: Set<FrameGraphTextureHandle>

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

objectList: FrameGraphObjectList

The object list to cull.

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.

outputObjectList: FrameGraphObjectList

The output object list containing the culled objects.

  • 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.