Class PostProcessRenderEffect
Hierarchy (View Summary)
- PostProcessRenderEffect
Index
Constructors
constructor
-
new PostProcessRenderEffect(
engine: AbstractEngine,
name: string,
getPostProcesses: () => Nullable<PostProcess | PostProcess[]>,
singleInstance?: boolean,
): PostProcessRenderEffectInstantiates a post process render effect. A post process can be used to apply a shader to a texture after it is rendered.
Parameters
- engine: AbstractEngine
The engine the effect is tied to
- name: string
The name of the effect
- getPostProcesses: () => Nullable<PostProcess | PostProcess[]>
A function that returns a set of post processes which the effect will run in order to be run.
- singleInstance: boolean = true
False if this post process can be run on multiple cameras. (default: true)
Returns PostProcessRenderEffect
- engine: AbstractEngine
Accessors
is Supported
-
get isSupported(): boolean
Checks if all the post processes in the effect are supported.
Returns boolean
Methods
get Post Processes
-
Gets a list of the post processes contained in the effect.
Parameters
Optionalcamera: CameraThe camera to get the post processes on.
Returns Nullable<PostProcess[]>
The list of the post processes in the effect.
This represents a set of one or more post processes in Babylon. A post process can be used to apply a shader to a texture after it is rendered.
Example