Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float aspectRatio;
- if(width > height)
- {
- aspectRatio = (float)width/(float)height;
- Matrix.frustumM(projectionMatrix, 0, -aspectRatio, aspectRatio, -1, 1, 1, 150);
- }
- else
- {
- aspectRatio = (float)height/(float)width;
- Matrix.frustumM(projectionMatrix, 0, -1, 1, -aspectRatio, aspectRatio, 1, 150);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement