perspective

fun perspective(fov: Degrees, aspect: Float, near: Float, far: Float): Mat4

Parameters

fov

: Field Of View in angle.

aspect

: Aspect of the projection. Most of the time it's a ratio width/height.

near

: start of the frustrum.

far

: end of the frustum.