API

Class FrameGraphSSAO2RenderingPipelineTask

Task which applies a SSAO2 post process.

Hierarchy (View Summary)

Index
dependencies?: Set<FrameGraphTextureHandle>

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

depthTexture: FrameGraphTextureHandle

The depth texture used by the SSAO2 effect (Z coordinate in camera view space).

normalTexture: FrameGraphTextureHandle

The normal texture used by the SSAO2 effect (normal vector in camera view space).

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.

outputTexture: FrameGraphTextureHandle

The output texture of the SSAO2 effect.

ratioBlur: number

The ratio between the SSAO blur texture size and the source texture size

ratioSSAO: number

The ratio between the SSAO texture size and the source texture size

sourceSamplingMode: any = Constants.TEXTURE_BILINEAR_SAMPLINGMODE

The sampling mode to use for the source texture.

sourceTexture: FrameGraphTextureHandle

The source texture to apply the SSAO2 effect on.

ssao: ThinSSAO2RenderingPipeline

The SSAO2 Rendering pipeline.

targetTexture?: any

The target texture to render the SSAO2 effect to.

textureType: number

The texture type used by the different post processes created by SSAO2. It's a read-only property. If you want to change it, you must recreate the task and pass the appropriate texture type to the constructor.

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