kopia lustrzana https://github.com/jameshball/osci-render
Removed unused fov parameter
rodzic
fb81288f87
commit
3a7f2c8d0a
|
@ -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();
|
||||
|
|
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue