We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3ca424 commit 3674dc4Copy full SHA for 3674dc4
1 file changed
chunky/src/java/se/llbit/chunky/renderer/scene/Camera.java
@@ -422,7 +422,8 @@ private void onViewChange() {
422
* Rotate the camera
423
*/
424
public synchronized void rotateView(double yaw, double pitch) {
425
- double fovRad = QuickMath.degToRad(fov / 2);
+ double fovRad = (this.projectionMode == ProjectionMode.PARALLEL) ? 0.5 : QuickMath.degToRad(fov / 2);
426
+
427
this.yaw += yaw * fovRad;
428
this.pitch += pitch * fovRad;
429
0 commit comments