[]
Creates a perspective projection matrix based on a field of view, aspect ratio, and near and far view plane distances.
public static Matrix4x4 PerspectiveFieldOfView(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance)
Public Shared Function PerspectiveFieldOfView(fieldOfView As Single, aspectRatio As Single, nearPlaneDistance As Single, farPlaneDistance As Single) As Matrix4x4
| Type | Name | Description |
|---|---|---|
| float | fieldOfView | The field of view in the y direction, in radians. |
| float | aspectRatio | The aspect ratio, defined as view space width divided by height. |
| float | nearPlaneDistance | The distance to the near view plane. |
| float | farPlaneDistance | The distance to the far view plane. |
| Type | Description |
|---|---|
| Matrix4x4 | The perspective projection matrix. |