StereoCamera
Dual PerspectiveCameras used for effects such as 3D Anaglyph or Parallax Barrier.
Examples
[example:webgl_effects_anaglyph effects / anaglyph ]
[example:webgl_effects_parallaxbarrier effects / parallaxbarrier ]
[example:webgl_effects_stereo effects / stereo ]
Constructor
StereoCamera
function StereoCamera( ): void;
Properties
aspect
aspect: Float;
Default is 1.
eyeSep
eyeSep: Float;
Default is 0.064.
cameraL
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
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
function update( camera: PerspectiveCamera ): undefined;
Update the stereo cameras based on the camera passed in.