pub fn perspective_lh_zo<N: Real>(aspect: N, fovy: N, near: N, far: N) -> TMat4<N>
Expand description

Creates a matrix for a left hand perspective-view frustum with a depth range of 0 to 1

Parameters

  • fovy - Field of view, in radians
  • aspect - Ratio of viewport width to height (width/height)
  • near - Distance from the viewer to the near clipping plane
  • far - Distance from the viewer to the far clipping plane

Important note

The aspect and fovy argument are interchanged compared to the original GLM API.