Phaser API Documentation

  Version: 

Member of: Phaser.Math.Matrix4

perspective(fovy, aspect, near, far)

Description:

Generate a perspective projection matrix with the given bounds.

Parameters:

name type description
fovy number

Vertical field of view in radians

aspect number

Aspect ratio. Typically viewport width /height.

near number

Near bound of the frustum.

far number

Far bound of the frustum.

Returns:
Description:

This Matrix4.

Since: 3.0.0
Source: src/math/Matrix4.js (Line 1205)