Class: OrthographicCamera

OrthographicCamera

OrthographicCamera is a Camera used for rendering with orthographic projection.


new OrthographicCamera()

Properties:
Name Type Description
height number

The height of the projection. Width is calculated based on aspect ratio.

Author:
  • derschmale <http://www.derschmale.com>

Extends

Methods


_setScene()

Inherited From:

clone()


destroy()

Inherited From:

getRay(x, y)

Returns a ray in world space at the given coordinates.

Parameters:
Name Type Description
x

The x-coordinate in NDC [-1, 1] range.

y

The y-coordinate in NDC [-1, 1] range.

Inherited From:

setJitterOffset(v)

Offsets the projection matrix. Is called by the renderer AFTER updating the resolution.

Parameters:
Name Type Description
v Float2

A Float2 object with components in range from [-1, 1]. 0 represents the center of the subpixel, 1 to the right.

Inherited From: