StereoCamera

Dual PerspectiveCameras used for effects such as 3D Anaglyph or Parallax Barrier.

Example

effects / anaglyph

effects / parallaxbarrier

effects / stereo

This class is used internally in the files

examples/js/effects/AnaglyphEffect.js

examples/js/effects/ParallaxBarrierEffect.js

examples/js/effects/StereoEffect.js

used in the above examples.

Constructor

StereoCamera()

Properties

.aspect : Float

Default is 1.

.eyeSep : Float

Default is 0.064.

.cameraL : PerspectiveCamera

Left camera. This is added to layer 1 - objects to be rendered by the left camera must also be added to this layer.

.cameraR : PerspectiveCamera

Right camera.This is added to layer 2 - objects to be rendered by the right camera must also be added to this layer.

Methods

.update (camera : PerspectiveCamera) : null

Update the stereo cameras based on the camera passed in.

Source

For more info on how to obtain the source code of this module see this page.