API

Class FrameGraphGlowLayerTask

Task which applies a glowing effect to a texture.

Hierarchy

  • FrameGraphBaseLayerTask
    • FrameGraphGlowLayerTask
Index
dependencies?: Set<FrameGraphTextureHandle>

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

layer: ThinGlowLayer

The glow layer object. Use this object to update the glow layer properties (e.g. intensity, blur kernel size).

layerTexture?: any

The layer texture to render the effect into. If not provided, a default texture will be created.

objectRendererTask: FrameGraphObjectRendererTask

The object renderer task used to render the objects in the texture to which the layer will be applied. This is needed because the layer may have to inject code in the rendering manager used by object renderer 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.

outputTexture: FrameGraphTextureHandle

The output texture of the task (same as targetTexture, but the handle will be different).

targetTexture: FrameGraphTextureHandle

The target texture to apply the effect layer to. The effect will be blended with the contents of this texture.

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

  • Records the layer task into the frame graph.

    Parameters

    • Optional_skipCreationOfDisabledPasses: boolean

      defines whether disabled passes should be skipped

    • OptionaladditionalComposeBindings: (context: FrameGraphRenderContext, effect: Effect) => void

      defines an optional callback used to bind extra compose resources

    Returns void