Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void resize(int width, int height)
- {
- float aspectRatio = (float) width / (float) height;
- camera = new PerspectiveCamera(67, 2.0f * aspectRatio, 2.0f);
- camera.translate(0,0,10);
- camera.near = 0.1f;
- }
Advertisement
Add Comment
Please, Sign In to add comment