Advertisement
Guest User

Untitled

a guest
Jul 19th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         float aspectRatio;
  2.         if(width > height)
  3.         {
  4.             aspectRatio = (float)width/(float)height;
  5.             Matrix.frustumM(projectionMatrix, 0, -aspectRatio, aspectRatio, -1, 1, 1, 150);
  6.         }
  7.         else
  8.         {
  9.             aspectRatio = (float)height/(float)width;
  10.             Matrix.frustumM(projectionMatrix, 0, -1, 1, -aspectRatio, aspectRatio, 1, 150);
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement