Camera.SetPerspectiveMode

Camera.SetPerspectiveMode method

Configures this Camera to use perspective projection.

public void SetPerspectiveMode(float? aspectRatio, float yfov, float znear, float zfar)
ParameterTypeDescription
aspectRatioNullable`1The aspect ratio between horizontal and vertical. (optional)
yfovSingleThe vertical field of view, in radians.
znearSingleDistance to the near pane in the Z axis.
zfarSingleDistance to the far plane in the Z axis.

See Also