initPerspective

fun initPerspective(fovy: Float, aspect: Float, zNear: Float, zFar: Float): Matrix

Initializes a #graphene_matrix_t with a perspective projection.

Return

the initialized matrix

Since

1.0

Parameters

fovy

the field of view angle, in degrees

aspect

the aspect value

zNear

the near Z plane

zFar

the far Z plane