Skip to content

Commit 3674dc4

Browse files
Peregrine05leMaik
authored andcommitted
Prevent view speed from scaling with FOV in parallel projection (#1587)
1 parent c3ca424 commit 3674dc4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • chunky/src/java/se/llbit/chunky/renderer/scene

chunky/src/java/se/llbit/chunky/renderer/scene/Camera.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,8 @@ private void onViewChange() {
422422
* Rotate the camera
423423
*/
424424
public synchronized void rotateView(double yaw, double pitch) {
425-
double fovRad = QuickMath.degToRad(fov / 2);
425+
double fovRad = (this.projectionMode == ProjectionMode.PARALLEL) ? 0.5 : QuickMath.degToRad(fov / 2);
426+
426427
this.yaw += yaw * fovRad;
427428
this.pitch += pitch * fovRad;
428429

0 commit comments

Comments
 (0)