Capítulo 602 de 859
A class that creates an stereo effect.
Note that this class can only be used with WebGLRenderer. When using WebGPURenderer, use StereoPassNode.
import { StereoEffect } from 'three/addons/effects/StereoEffect.js';
Constructor
| Signature |
|---|
new StereoEffect( renderer : WebGLRenderer ) |
Methods
| Method | Description |
|---|---|
.render( scene : Object3D, camera : Camera ) | When using this effect, this method should be called instead of the default WebGLRenderer#render. |
.setEyeSeparation( eyeSep : number ) | Sets the given eye separation. |
.setSize( width : number, height : number ) | Resizes the effect. |