Skip to content

Documentation / @ripl/3d / mat4Perspective

Function: mat4Perspective() ​

mat4Perspective(fovRadians, aspect, near, far): Matrix4

Defined in: 3d/src/math/matrix.ts:148

Constructs a perspective projection matrix.

Parameters ​

ParameterType
fovRadiansnumber
aspectnumber
nearnumber
farnumber

Returns ​

Matrix4