diff options
Diffstat (limited to 'src/camera.cpp')
| -rw-r--r-- | src/camera.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/camera.cpp b/src/camera.cpp index c7866d6..592f3d5 100644 --- a/src/camera.cpp +++ b/src/camera.cpp @@ -16,8 +16,8 @@ camera::camera( up = forward.cross(right).unit(); auto h = tan(deg_to_rad(v_fov) / 2.0); - auto viewport_height = 2.0 * h; - auto viewport_width = viewport_height * aspect_ratio; + viewport_height = 2.0 * h; + viewport_width = viewport_height * aspect_ratio; horizontal = focus_dist * viewport_width * right; vertical = focus_dist * viewport_height * up; |
