Inheritance: EventDispatcher → Node → TempNode →
Normally, tone mapping and color conversion happens automatically just before outputting a pixel to the default (screen) framebuffer. In certain post processing setups this is too late because some effects such as FXAA require e.g. sRGB input. For such scenarios, RenderOutputNode can be used to apply tone mapping and color space conversion at an arbitrary point in the effect chain.
When applying tone mapping and color space conversion manually with this node, you have to set RenderPipeline#outputColorTransform to false.
const postProcessing = new RenderPipeline( renderer );
postProcessing.outputColorTransform = false;
const scenePass = pass( scene, camera );
const outputPass = renderOutput( scenePass );
postProcessing.outputNode = outputPass;
Constructs a new render output node.
colorNode
The color node to process.
toneMapping
The tone mapping type.
outputColorSpace
The output color space.
The color node to process.
This flag can be used for type testing.
Default is true.
The output color space.
Gets the tone mapping type.
Returns: The tone mapping type.
Sets the tone mapping type.
value
The tone mapping type.
Returns: A reference to this node.