Guest User

Untitled

a guest
Jan 20th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. mat4 perspective_matrix(T fovy, T aspect, T n, T f)
  2. {
  3. T y = n*std::tan(fovy / 2), x = y*aspect;
  4. return frustum_matrix(-x, x, -y, y, n, f);
  5. }
Add Comment
Please, Sign In to add comment