perspective

fun perspective(fov: Float, ratio: Float, near: Float, far: Float): Mat4

Returns a perspective projection matrix.

Return

the perspective projection matrix

Parameters

fov

the vertical field of view in degrees

ratio

the aspect ratio (width / height)

near

the near clip plane distance

far

the far clip plane distance