Provides a set of post effects shaders and materials that can be used with the DeferredRendering and ForwardRendering objects.
Currently it provides the following simple effects:
See ForwardRendering.draw and DeferredRendering.draw for how to use post effects.
Required scripts
The PostEffects object requires:
/*{{ javascript("jslib/posteffects.js") }}*/
Summary
Syntax
var postEffects = PostEffects.create(graphicsDevice, shaderManager);
Summary
Updates the shaders used for the effects.
Syntax
postEffects.updateShader(shaderManager);
If the required shaders were not ready when the renderer was created this method can be used to update them.
Summary
Returns the effect setup callback for the requested effect.
Syntax
postEffects.getEffectSetupCB(name);
This setup callback can be passed as the postFXsetupFn parameter on the DeferredRendering draw method.
Summary
Releases the PostEffects object and all the resources it allocated.
Syntax
postEffects.destroy();