Import
StereoCompositePassNode is an addon, and must be imported explicitly, see Installation#Addons.
import { StereoCompositePassNode } from 'three/addons/tsl/display/StereoCompositePassNode.js';
Constructor
new StereoCompositePassNode( scene : Scene, camera : Camera ) (abstract)
Constructs a new stereo composite pass node.
scene |
The scene to render. |
camera |
The camera to render the scene with. |
Properties
._mapLeft : TextureNode
A texture node representing the left's eye view.
._mapRight : TextureNode
A texture node representing the right's eye view.
._material : NodeMaterial
The node material that implements the composite. All derived effect passes must provide an instance for rendering.
._renderTargetL : RenderTarget
The render target for rendering the left eye's view.
._renderTargetR : RenderTarget
The render target for rendering the right eye's view.
.isStereoCompositePassNode : 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
.dispose()
Frees internal resources. This method should be called when the pass is no longer required.
- Overrides: PassNode#dispose
.setSize( width : number, height : number )
Sets the size of the pass.
width |
The width of the pass. |
height |
The height of the pass. |
- Overrides: PassNode#setSize
.updateBefore( frame : NodeFrame )
This method is used to render the effect once per frame.
frame |
The current node frame. |
- Overrides: PassNode#updateBefore
.updateStereoCamera( coordinateSystem : number )
Updates the internal stereo camera.
coordinateSystem |
The current coordinate system. |