Class FrameGraphSSAO2RenderingPipelineTask
Hierarchy (View Summary)
- FrameGraphTask
- FrameGraphSSAO2RenderingPipelineTask
Constructors
constructor
-
new FrameGraphSSAO2RenderingPipelineTask(
name: string,
frameGraph: FrameGraph,
ratioSSAO: number,
ratioBlur: number,
textureType?: any,
): FrameGraphSSAO2RenderingPipelineTaskConstructs a SSAO2 rendering pipeline task.
Parameters
- name: string
The name of the task.
- frameGraph: FrameGraph
The frame graph this task belongs to.
- ratioSSAO: number
The ratio between the SSAO texture size and the source texture size
- ratioBlur: number
The ratio between the SSAO blur texture size and the source texture size
- textureType: any = Constants.TEXTURETYPE_UNSIGNED_BYTE
The texture type used by the different post processes created by SSAO2 (default: Constants.TEXTURETYPE_UNSIGNED_BYTE)
Returns FrameGraphSSAO2RenderingPipelineTask
- name: string
Properties
Optionaldependencies
The (texture) dependencies of the task (optional).
depth Texture
The depth texture used by the SSAO2 effect (Z coordinate in camera view space).
normal Texture
The normal texture used by the SSAO2 effect (normal vector in camera view space).
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 SSAO2 effect.
Readonlyratio Blur
The ratio between the SSAO blur texture size and the source texture size
Readonlyratio SSAO
The ratio between the SSAO texture size and the source texture size
source Sampling Mode
The sampling mode to use for the source texture.
source Texture
The source texture to apply the SSAO2 effect on.
Readonlyssao
The SSAO2 Rendering pipeline.
Optionaltarget Texture
The target texture to render the SSAO2 effect to.
Readonlytexture Type
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.
Accessors
alpha Mode
-
get alphaMode(): number
The alpha mode to use when applying the SSAO2 effect.
Returns number
-
set alphaMode(mode: number): void
Parameters
- mode: number
Returns void
camera
-
get camera(): Camera
The camera used to render the scene.
Returns Camera
-
set camera(camera: Camera): void
Parameters
- camera: Camera
Returns void
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
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 of the task.
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 if the task is ready to be executed.
Returns any
True if the task is ready to be executed, else false.
record
-
Records the task in the frame graph. Use this function to add content (render passes, ...) to the task.
Returns void
Task which applies a SSAO2 post process.