API

Class FrameGraphSSRRenderingPipelineTask

Task which applies a SSR post process.

Hierarchy (View Summary)

Index
backDepthTexture?: any

The back depth texture used by the SSR effect (optional). This is used when automatic thickness computation is enabled. The back depth texture is the depth texture of the scene rendered for the back side of the objects (that is, front faces are culled).

dependencies?: Set<FrameGraphTextureHandle>

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

depthTexture: FrameGraphTextureHandle

The depth texture used by the SSR effect.

normalTexture: FrameGraphTextureHandle

The normal texture used by the SSR effect.

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 SSR effect.

reflectivityTexture: FrameGraphTextureHandle

The reflectivity texture used by the SSR effect

sourceSamplingMode: any = Constants.TEXTURE_BILINEAR_SAMPLINGMODE

The sampling mode to use for the source texture.

sourceTexture: FrameGraphTextureHandle

The source texture to apply the SSR effect on.

ssr: ThinSSRRenderingPipeline

The SSR Rendering pipeline.

targetTexture?: any

The target texture to render the SSR effect to.

textureType: number

The texture type used by the different post processes created by SSR. 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.