File: PostProcessing.md | Updated: 11/15/2025
This module is responsible to manage the post processing setups in apps. You usually create a single instance of this class and use it to define the output of your post processing effect chain.
Note: This module can only be used with WebGPURenderer.
const postProcessing = new PostProcessing( renderer );
const scenePass = pass( scene, camera );
postProcessing.outputNode = scenePass;
Constructs a new post processing management module.
renderer | A reference to the renderer.
---|---
outputNode | An optional output node.
Returns the current context of the post processing stack.
Must be set to true when the output node changes.
Whether the default output tone mapping and color space transformation should be enabled or not.
It is enabled by default by it must be disabled when effects must be executed after tone mapping and color space conversion. A typical example is FXAA which requires sRGB input.
When set to false, the app must control the output transformation with RenderOutputNode.
const outputPass = renderOutput( scenePass );
A node which defines the final output of the post processing. This is usually the last node in a chain of effect nodes.
A reference to the renderer.
Frees internal resources.
When PostProcessing is used to apply post processing effects, the application must use this version of render() inside its animation loop (not the one from the renderer).
When PostProcessing is used to apply post processing effects, the application must use this version of renderAsync() inside its animation loop (not the one from the renderer).
Deprecated: Yes
Returns: A Promise that resolves when the render has been finished.