PostProcessStageCollection

A collection of PostProcessStages and/or PostProcessStageComposites.

The input texture for each post-process stage is the texture rendered to by the scene or the texture rendered to by the previous stage in the collection.

If the ambient occlusion or bloom stages are enabled, they will execute before all other stages.

If the FXAA stage is enabled, it will execute after all other stages.

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

A post-process stage that applies Horizon-based Ambient Occlusion (HBAO) to the input texture.

Link copied to clipboard

A post-process stage for a bloom effect.

Link copied to clipboard

Control the exposure when HDR is on. Less than 1.0 makes the tonemapping darker while greater than 1.0 makes it brighter.

Link copied to clipboard

A post-process stage for Fast Approximate Anti-aliasing.

Link copied to clipboard
val length: Int

The number of post-process stages in this collection.

Link copied to clipboard

Determines if all of the post-process stages in the collection are ready to be executed.

Link copied to clipboard

Specifies the tonemapping algorithm used when rendering with high dynamic range. Sandcastle Demo

Functions

Link copied to clipboard

Adds the post-process stage to the collection.

Link copied to clipboard

Returns whether the collection contains a post-process stage.

Link copied to clipboard
fun destroy()

Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object.

Link copied to clipboard
operator fun get(index: Int): Any

Gets the post-process stage at index.

Link copied to clipboard

Returns true if this object was destroyed; otherwise, false.

Link copied to clipboard

Removes a post-process stage from the collection and destroys it.

Link copied to clipboard
fun removeAll()

Removes all post-process stages from the collection and destroys them.