Removed unused fov parameter

pull/35/head
James Ball 2020-02-11 21:33:33 +00:00
rodzic fb81288f87
commit 3a7f2c8d0a
2 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -16,7 +16,7 @@ public class AudioClient {
AudioPlayer player = new AudioPlayer();
AudioPlayer.FORMAT = AudioPlayer.defaultFormat(SAMPLE_RATE);
Camera camera = new Camera(0.6, new Vector3(0, 0, -2), 60);
Camera camera = new Camera(0.6, new Vector3(0, 0, -2));
WorldObject cube = new WorldObject(args[0], new Vector3(0,0,0), new Vector3());
player.start();

Wyświetl plik

@ -15,12 +15,10 @@ public class Camera extends Renderer{
private double focalLength;
private double clipping = 0.001;
private Vector3 position;
private double fov;
public Camera(double focalLength, Vector3 position, double fov) {
public Camera(double focalLength, Vector3 position) {
this.focalLength = focalLength;
this.position = position;
this.fov = fov;
}
public List<Line> draw(WorldObject worldObject) {