Class: PerspectiveCamera

PerspectiveCamera

PerspectiveCamera is a Camera used for rendering with perspective.


new PerspectiveCamera()

Properties:
Name Type Description
verticalFOV number

The vertical field of view in radians.

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

Extends

Methods


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: