Capítulo 484 de 859

Chapter 484: StereoPassNode

Core Idea

A special render pass node that renders the scene as a stereoscopic image.

Key Concepts

  • isStereoPassNode : boolean (readonly): This flag can be used for type testing.
  • stereo : StereoCamera: The internal stereo camera that is used to render the scene.

Code Examples

import { stereoPass } from 'three/addons/tsl/display/StereoPassNode.js';
  • What it demonstrates: Typical usage of StereoPassNode.

Reference Tables

Constructor

Signature
new StereoPassNode( scene : Scene, camera : Camera )

Properties

PropertyDescription
.isStereoPassNode : boolean (readonly)This flag can be used for type testing.
.stereo : StereoCameraThe internal stereo camera that is used to render the scene.

Methods

MethodDescription
.updateBefore( frame : NodeFrame )This method is used to render the stereo effect once per frame.

Key Takeaways

  1. StereoPassNode extends: EventDispatcher → Node → TempNode → PassNode
  2. Most relevant properties: isStereoPassNode, stereo.
  3. Key methods: updateBefore.

Connects To