Import
StereoPassNode is an addon, and must be imported explicitly, see Installation#Addons.
import { stereoPass } from 'three/addons/tsl/display/StereoPassNode.js';
Constructor
new StereoPassNode( scene : Scene, camera : Camera )
Constructs a new stereo pass node.
| scene |
The scene to render. |
| camera |
The camera to render the scene with. |
Properties
.isStereoPassNode : boolean (readonly)
This flag can be used for type testing.
Default is true.
.stereo : StereoCamera
The internal stereo camera that is used to render the scene.
Methods
.updateBefore( frame : NodeFrame )
This method is used to render the stereo effect once per frame.
| frame |
The current node frame. |
- Overrides: PassNode#updateBefore