Object3D → Camera →
OrthographicCamera
Camera with orthographic projection.
Example
var camera = new THREE.OrthographicCamera( width / - 2, width / 2, height / 2, height / - 2, 1, 1000 ); scene.add( camera );
Constructor
left — Camera frustum left plane.
right — Camera frustum right plane.
top — Camera frustum top plane.
bottom — Camera frustum bottom plane.
near — Camera frustum near plane.
far — Camera frustum far plane.
Properties
Gets or sets the zoom factor of the camera.
Camera frustum left plane.
Camera frustum right plane.
Camera frustum top plane.
Camera frustum bottom plane.
Camera frustum near plane.
Camera frustum far plane.
Methods
fullWidth — full width of multiview setup
fullHeight — full height of multiview setup
x — horizontal offset of subcamera
y — vertical offset of subcamera
width — width of subcamera
height — height of subcamera
Sets an offset in a larger frustum. This is useful for multi-window or multi-monitor/multi-machine setups. For an example on how to use it see
PerspectiveCamera.
Removes any offset set by the .setViewOffset method.
Updates the camera projection matrix. Must be called after change of parameters.
It returns a clone of OrthographicCamera.
Return camera data in JSON format.
Source
src/cameras/OrthographicCamera.js
Edit