Class FrameGraphGlowLayerTask
Hierarchy
- FrameGraphBaseLayerTask
- FrameGraphGlowLayerTask
Constructors
constructor
-
new FrameGraphGlowLayerTask(
name: string,
frameGraph: FrameGraph,
scene: Scene,
options?: any,
): FrameGraphGlowLayerTaskConstructs a new glow layer task.
Parameters
- name: string
Name of the task.
- frameGraph: FrameGraph
The frame graph this task is associated with.
- scene: Scene
The scene to render the glow layer in.
Optionaloptions: anyOptions for the glow layer.
Returns FrameGraphGlowLayerTask
- name: string
Properties
Optionaldependencies
The (texture) dependencies of the task (optional).
Readonlylayer
The glow layer object. Use this object to update the glow layer properties (e.g. intensity, blur kernel size).
Optionallayer Texture
The layer texture to render the effect into. If not provided, a default texture will be created.
object Renderer Task
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.
on After Task Execute
An observable that is triggered after the task is executed.
on Before Task Execute
An observable that is triggered before the task is executed.
on Textures Allocated Observable
An observable that is triggered after the textures have been allocated.
Readonlyoutput Texture
The output texture of the task (same as targetTexture, but the handle will be different).
target Texture
The target texture to apply the effect layer to. The effect will be blended with the contents of this texture.
Accessors
disabled
-
get disabled(): boolean
Whether the task is disabled.
Returns boolean
-
set disabled(value: boolean): void
Parameters
- value: boolean
Returns void
name
-
get name(): string
The name of the task.
Returns string
-
set name(name: string): void
The name of the task.
Parameters
- name: string
Returns void
object Renderer For Layer
-
Gets the object renderer used to render the layer.
Returns FrameGraphObjectRendererTask
passes
-
get passes(): IFrameGraphPass[]
Gets the passes of the task.
Returns IFrameGraphPass[]
passes Disabled
-
get passesDisabled(): IFrameGraphPass[]
Gets the disabled passes of the task.
Returns IFrameGraphPass[]
Methods
dispose
-
Disposes the layer task and its dependent tasks.
Returns void
get Class Name
-
Gets the current class name.
Returns string
the class name
init Async
-
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.
is Ready
-
Checks whether the layer task is ready.
Returns any
true if the layer task is ready
record
-
record(
_skipCreationOfDisabledPasses?: boolean,
additionalComposeBindings?: (
context: FrameGraphRenderContext,
effect: Effect,
) => void,
): voidRecords the layer task into the frame graph.
Parameters
Optional_skipCreationOfDisabledPasses: booleandefines whether disabled passes should be skipped
OptionaladditionalComposeBindings: (context: FrameGraphRenderContext, effect: Effect) => voiddefines an optional callback used to bind extra compose resources
Returns void
Task which applies a glowing effect to a texture.