[]
Creates a view matrix.
public static void LookAtRef(out Matrix4x4 result, ref Vector3 cameraPosition, ref Vector3 cameraTarget, ref Vector3 cameraUpVector)
Type | Name | Description |
---|---|---|
Matrix4x4 | result | The view matrix. |
Vector3 | cameraPosition | The position of the camera. |
Vector3 | cameraTarget | The target towards which the camera is pointing. |
Vector3 | cameraUpVector | The direction that is "up" from the camera's point of view. |