diff options
Diffstat (limited to 'include/camera.hpp')
| -rw-r--r-- | include/camera.hpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/camera.hpp b/include/camera.hpp index 0b3d20e..88ece6f 100644 --- a/include/camera.hpp +++ b/include/camera.hpp @@ -5,15 +5,27 @@ class camera { public: - camera(point3 position, point3 target, double v_fov, double aspect_ratio); + camera( + point3 position, + point3 target, + double v_fov, + double aspect_ratio, + double aperture, + double focus_dist + ); ray get_ray(double u, double v) const; point3 position; + double lens_radius; vec3 horizontal; vec3 vertical; + vec3 forward; + vec3 right; + vec3 up; + point3 bottom_left_pixel; }; |
