Skip to content

Commit

Permalink
swapped the lines so that defaultEyeZ's value of 800 applies in the c…
Browse files Browse the repository at this point in the history
…alculations for defaultCameraFOV
  • Loading branch information
RandomGamingDev committed Oct 25, 2023
1 parent 055e133 commit 9858a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webgl/p5.Camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -1946,12 +1946,12 @@ p5.Camera = class Camera {
// @TODO: combine this function with _setDefaultCamera to compute these values
// as-needed
_computeCameraDefaultSettings() {
this.defaultCameraFOV =
2 * Math.atan(this._renderer.height / 2 / this.defaultEyeZ);
this.defaultAspectRatio = this._renderer.width / this._renderer.height;
this.defaultEyeX = 0;
this.defaultEyeY = 0;
this.defaultEyeZ = 800;
this.defaultCameraFOV =
2 * Math.atan(this._renderer.height / 2 / this.defaultEyeZ);
this.defaultCenterX = 0;
this.defaultCenterY = 0;
this.defaultCenterZ = 0;
Expand Down

0 comments on commit 9858a68

Please sign in to comment.