PostProcessStageCollection

open external class PostProcessStageCollection(source)

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
external var exposure: Double

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
external val fxaa: PostProcessStage

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

Link copied to clipboard
external val length: Int

The number of post-process stages in this collection.

Link copied to clipboard
external val ready: Boolean

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

Link copied to clipboard
external var tonemapper: Tonemapper

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

Functions

Link copied to clipboard
external fun add(stage: PostProcessStage): PostProcessStage

Adds the post-process stage to the collection.

Link copied to clipboard
external fun contains(stage: PostProcessStage): Boolean

Returns whether the collection contains a post-process stage.

Link copied to clipboard
external 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
external fun get(index: Int): JsAny

Gets the post-process stage at index.

Link copied to clipboard
external fun isDestroyed(): Boolean

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

Link copied to clipboard
external fun remove(stage: PostProcessStage): Boolean

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

Link copied to clipboard
external fun removeAll()

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