fun perspective(result: ZMatrix4, fov: Float, aspect: Float, near: Float, far: Float)(source)

Computes the perspective projection matrix

Parameters

result

Matrix where the result of the operation will be stored

fov

Angle in degrees providing the Field Of View

aspect

Desired aspect ratio

near

Near clip plane

far

Far clip plane