OrthographicCamera - Camera with orthographic projection

Constructor

class OrthographicCamera(left, right, top, bottom, near, far)

Camera with orthographic projection

Part of scene graph

Inherits from Object3D() Camera()

Arguments:
  • left (float) – left
  • right (float) – right
  • top (float) – top
  • bottom (float) – bottom
  • near (float) – near
  • far (float) – far

Attributes

OrthographicCamera.left

Camera frustum left plane

OrthographicCamera.right

Camera frustum right plane

OrthographicCamera.top

Camera frustum top plane

OrthographicCamera.bottom

Camera frustum bottom plane

OrthographicCamera.near

Camera frustum near plane

OrthographicCamera.far

Camera frustum far plane

Method

OrthographicCamera.updateProjectionMatrix()

Updates camera’s projection matrix. Must be called after change of parameters.

Example

var camera = new THREE.OrthographicCamera(  window.innerWidth / - 2, window.innerWidth / 2, window.innerHeight / 2, window.innerHeight / - 2, 1, 1000 );
scene.add( camera );

Previous topic

Camera - Abstract base class for cameras

Next topic

PerspectiveCamera - Camera with perspective projection

This Page