setToPerspective

fun setToPerspective(fovy: Float, aspect: Float, near: Float, far: Float): Mat4

Sets the matrix to a perspective projection

Return

this matrix

Parameters

fovy

the field of value of the height in degrees

aspect

the "width over height" aspect ratio

near

the near plane

far

the far plane