perspective

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

Vertical field of view angle in radians (full angle, not half-angle)

aspect

Desired aspect ratio

near

Near clip plane

far

Far clip plane