Function nanogui::frustum

Function Documentation

Matrix4f nanogui::frustum(float left, float right, float bottom, float top, float nearVal, float farVal)

Creates a perspective projection matrix.

Parameters
  • left: The left border of the viewport.

  • right: The right border of the viewport.

  • bottom: The bottom border of the viewport.

  • top: The top border of the viewport.

  • nearVal: The near plane.

  • farVal: The far plane.