File: StereoCompositePassNode.md | Updated: 11/15/2025
A special (abstract) render pass node that renders the scene as a stereoscopic image. Unlike StereoPassNode, this node merges the image for the left and right eye into a single one. That is required for effects like anaglyph or parallax barrier.
StereoCompositePassNode is an addon, and must be imported explicitly, see Installation#Addons.
import { StereoCompositePassNode } from 'three/addons/tsl/display/StereoCompositePassNode.js';
Constructs a new stereo composite pass node.
scene | The scene to render.
---|---
camera | The camera to render the scene with.
This flag can be used for type testing.
Default is true.
The internal stereo camera that is used to render the scene.
Frees internal resources. This method should be called when the pass is no longer required.
Overrides: PassNode#dispose
Sets the size of the pass.
width | The width of the pass.
---|---
height | The height of the pass.
Overrides: PassNode#setSize
This method is used to render the effect once per frame.
frame | The current node frame.
---|---
Overrides: PassNode#updateBefore
Updates the internal stereo camera.
coordinateSystem | The current coordinate system.
---|---