perspective
fun perspective( fovY: Angle, aspect: Float, near: Float, far: Float): Mat4
Content copied to clipboard
Creates a projection matrix for a perspective projection defined by a given frustum.
The frustum is defined by its near and far depth clipping planes, and its field of view angle in the Y direction and aspect ratio between X and Y field of view.