CLASSES
TagsA - Z

PostProcessRenderEffect

PostProcess

Description

class PostProcessRenderEffect

A render effect is a smart postprocess which can manage its own instances itself.

A tutorial about the render pipeline can be found here : https://doc.babylonjs.com/tutorials/using_standard_rendering_pipeline

Constructor

new PostProcessRenderEffect(engine, name, getPostProcess, singleInstance)

Builds a PostProcessRenderEffect object

Parameters

Name Type Description
engine Engine The used engine
name string The name of the postprocess rendrer effect
getPostProcess () => PostProcess The function has to return a new instance of the postprocess which will be used

Members

applyParameters : PostProcess) => void

Applies given postProcess object to the rendrer effect

isSupported : boolean

Methods

addPass(renderPass) void

Adds a new pass to the effect

Parameters

Name Type Description
renderPass PostProcessRenderPass The pass to remove

removePass(renderPass) void

Removes a pass from the effect

Parameters

Name Type Description
renderPass PostProcessRenderPass The pass to remove

addRenderEffectAsPass(renderEffect) void

Adds a render effect as a pass

Parameters

Name Type Description
renderEffect PostProcessRenderEffect The effect to add

getPass(passName) void

Returns a pass using its name

Parameters

Name Type Description
passName string The given name

emptyPasses() void

Delete all passes

getPostProcess(camera) PostProcess

Parameters

Name Type Description
optional camera Camera default : this camera